"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3214],{43353:function(t,e,n){n.d(e,{useCallbackRef:function(){return i}});var r=n(40690);function i(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,r.useRef)(t);return(0,r.useEffect)(()=>{n.current=t}),(0,r.useCallback)(function(){for(var t,e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return null===(t=n.current)||void 0===t?void 0:t.call(n,...r)},e)}},66106:function(t,e,n){n.d(e,{useControllableProp:function(){return o},useControllableState:function(){return s}});var r=n(40690),i=n(43353);function o(t,e){let n=void 0!==t,i=n?t:e;return(0,r.useMemo)(()=>[n,i],[n,i])}function s(t){let{value:e,defaultValue:n,onChange:o,shouldUpdate:s=(t,e)=>t!==e}=t,a=(0,i.useCallbackRef)(o),l=(0,i.useCallbackRef)(s),[u,c]=(0,r.useState)(n),d=void 0!==e,h=d?e:u,f=(0,i.useCallbackRef)(t=>{let e="function"==typeof t?t(h):t;l(h,e)&&(d||c(e),a(e))},[d,a,h,l]);return[h,f]}},75742:function(t,e,n){n.d(e,{useDisclosure:function(){return o}});var r=n(43353),i=n(40690);function o(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{onClose:e,onOpen:n,isOpen:o,id:s}=t,a=(0,r.useCallbackRef)(n),l=(0,r.useCallbackRef)(e),[u,c]=(0,i.useState)(t.defaultIsOpen||!1),d=void 0!==o?o:u,h=void 0!==o,f=(0,i.useId)(),p=null!=s?s:"disclosure-".concat(f),m=(0,i.useCallback)(()=>{h||c(!1),null==l||l()},[h,l]),v=(0,i.useCallback)(()=>{h||c(!0),null==a||a()},[h,a]),g=(0,i.useCallback)(()=>{d?m():v()},[d,v,m]);return{isOpen:d,onOpen:v,onClose:m,onToggle:g,isControlled:h,getButtonProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...t,"aria-expanded":d,"aria-controls":p,onClick(e){var n;null===(n=t.onClick)||void 0===n||n.call(t,e),g()}}},getDisclosureProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...t,hidden:!d,id:p}}}}},9488:function(t,e,n){n.d(e,{useEventListener:function(){return o}});var r=n(40690),i=n(43353);function o(t,e,n,o){let s=(0,i.useCallbackRef)(n);return(0,r.useEffect)(()=>{let r="function"==typeof t?t():null!=t?t:document;if(n&&r)return r.addEventListener(e,s,o),()=>{r.removeEventListener(e,s,o)}},[e,t,o,s,n]),()=>{let n="function"==typeof t?t():null!=t?t:document;null==n||n.removeEventListener(e,s,o)}}},62600:function(t,e,n){n.d(e,{useFocusOnPointerDown:function(){return u}});var r=n(9488);let i=()=>"undefined"!=typeof window,o=t=>i()&&t.test(navigator.vendor),s=t=>i()&&t.test(function(){var t;let e=navigator.userAgentData;return null!==(t=null==e?void 0:e.platform)&&void 0!==t?t:navigator.platform}()),a=()=>s(/mac|iphone|ipad|ipod/i),l=()=>a()&&o(/apple/i);function u(t){let{ref:e,elements:n,enabled:i}=t,o=()=>{var t,n;return null!==(n=null===(t=e.current)||void 0===t?void 0:t.ownerDocument)&&void 0!==n?n:document};(0,r.useEventListener)(o,"pointerdown",t=>{var r,s,a;if(!l()||!i)return;let u=null!==(a=null===(s=t.composedPath)||void 0===s?void 0:null===(r=s.call(t))||void 0===r?void 0:r[0])&&void 0!==a?a:t.target,c=(null!=n?n:[e]).some(t=>{let e="current"in t?t.current:t;return(null==e?void 0:e.contains(u))||e===u});o().activeElement!==u&&c&&(t.preventDefault(),u.focus())})}},81533:function(t,e,n){n.d(e,{useTimeout:function(){return o}});var r=n(40690),i=n(43353);function o(t,e){let n=(0,i.useCallbackRef)(t);(0,r.useEffect)(()=>{if(null==e)return;let t=null;return t=window.setTimeout(()=>{n()},e),()=>{t&&window.clearTimeout(t)}},[e,n])}},62258:function(t,e,n){n.d(e,{useUpdateEffect:function(){return i}});var r=n(40690);let i=(t,e)=>{let n=(0,r.useRef)(!1),i=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(n.current&&i.current)return t();i.current=!0},e),(0,r.useEffect)(()=>(n.current=!0,()=>{n.current=!1}),[])}},66809:function(t,e,n){n.d(e,{Z:function(){return r},useAvatarStyles:function(){return i}});let[r,i]=(0,n(87957).k)({name:"AvatarStylesContext",hookName:"useAvatarStyles",providerName:"<Avatar/>"})},90783:function(t,e,n){n.d(e,{Avatar:function(){return b},O:function(){return x}});var r=n(12661),i=n(8418),o=n(19496),s=n(48141),a=n(50422),l=n(89385),u=n(40690),c=n(66809),d=n(38655);function h(t){var e;let n=t.trim().split(" "),r=null!==(e=n[0])&&void 0!==e?e:"",i=n.length>1?n[n.length-1]:"";return r&&i?"".concat(r.charAt(0)).concat(i.charAt(0)):r.charAt(0)}function f(t){let{name:e,getInitials:n,...i}=t,o=(0,c.useAvatarStyles)();return(0,r.jsx)(d.chakra.div,{role:"img","aria-label":e,...i,__css:o.label,children:e?null==n?void 0:n(e):null})}f.displayName="AvatarName";var p=n(1955),m=n(64418);function v(t){let{src:e,srcSet:n,onError:i,onLoad:o,getInitials:s,name:a,borderRadius:l,loading:c,iconLabel:h,icon:v=(0,r.jsx)(p.GenericAvatarIcon,{}),ignoreFallback:g,referrerPolicy:y,crossOrigin:x}=t,b=(0,m.useImage)({src:e,onError:i,crossOrigin:x,ignoreFallback:g});return e&&"loaded"===b?(0,r.jsx)(d.chakra.img,{src:e,srcSet:n,alt:null!=a?a:h,onLoad:o,referrerPolicy:y,crossOrigin:null!=x?x:void 0,className:"chakra-avatar__img",loading:c,__css:{width:"100%",height:"100%",objectFit:"cover",borderRadius:l}}):a?(0,r.jsx)(f,{className:"chakra-avatar__initials",getInitials:s,name:a}):(0,u.cloneElement)(v,{role:"img","aria-label":h})}v.displayName="AvatarImage";var g=n(90655),y=n(47381);let x=(0,i.k0)({display:"inline-flex",alignItems:"center",justifyContent:"center",textAlign:"center",textTransform:"uppercase",fontWeight:"medium",position:"relative",flexShrink:0}),b=(0,g.forwardRef)((t,e)=>{let n=(0,y.useMultiStyleConfig)("Avatar",t),[i,f]=(0,u.useState)(!1),{src:m,srcSet:g,name:b,showBorder:w,borderRadius:S="full",onError:P,onLoad:C,getInitials:E=h,icon:T=(0,r.jsx)(p.GenericAvatarIcon,{}),iconLabel:k=" avatar",loading:A,children:M,borderColor:R,ignoreFallback:j,crossOrigin:O,referrerPolicy:D,...F}=(0,o.L)(t),V={borderRadius:S,borderWidth:w?"2px":void 0,...x,...n.container};return R&&(V.borderColor=R),(0,r.jsx)(d.chakra.span,{ref:e,...F,className:(0,s.cx)("chakra-avatar",t.className),"data-loaded":(0,a.P)(i),__css:V,children:(0,r.jsxs)(c.Z,{value:n,children:[(0,r.jsx)(v,{src:m,srcSet:g,loading:A,onLoad:(0,l.v)(C,()=>{f(!0)}),onError:P,getInitials:E,name:b,borderRadius:S,icon:T,iconLabel:k,ignoreFallback:j,crossOrigin:O,referrerPolicy:D}),M]})})});b.displayName="Avatar"},1955:function(t,e,n){n.d(e,{GenericAvatarIcon:function(){return o}});var r=n(12661),i=n(38655);let o=t=>(0,r.jsxs)(i.chakra.svg,{viewBox:"0 0 128 128",color:"#fff",width:"100%",height:"100%",className:"chakra-avatar__svg",...t,children:[(0,r.jsx)("path",{fill:"currentColor",d:"M103,102.1388 C93.094,111.92 79.3504,118 64.1638,118 C48.8056,118 34.9294,111.768 25,101.7892 L25,95.2 C25,86.8096 31.981,80 40.6,80 L87.4,80 C96.019,80 103,86.8096 103,95.2 L103,102.1388 Z"}),(0,r.jsx)("path",{fill:"currentColor",d:"M63.9961647,24 C51.2938136,24 41,34.2938136 41,46.9961647 C41,59.7061864 51.2938136,70 63.9961647,70 C76.6985159,70 87,59.7061864 87,46.9961647 C87,34.2938136 76.6985159,24 63.9961647,24"})]})},10015:function(t,e,n){n.d(e,{CloseButton:function(){return c}});var r=n(12661),i=n(19496),o=n(86682),s=n(90655),a=n(47381),l=n(38655);function u(t){return(0,r.jsx)(o.Icon,{focusable:"false","aria-hidden":!0,...t,children:(0,r.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}let c=(0,s.forwardRef)(function(t,e){let n=(0,a.useStyleConfig)("CloseButton",t),{children:o,isDisabled:s,__css:c,...d}=(0,i.L)(t);return(0,r.jsx)(l.chakra.button,{type:"button","aria-label":"Close",ref:e,disabled:s,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...n,...c},...d,children:o||(0,r.jsx)(u,{width:"1em",height:"1em"})})});c.displayName="CloseButton"},65018:function(t,e,n){n.d(e,{M:function(){return i},Z:function(){return s},useEditableContext:function(){return a},useEditableStyles:function(){return o}});var r=n(87957);let[i,o]=(0,r.k)({name:"EditableStylesContext",errorMessage:"useEditableStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Editable />\" "}),[s,a]=(0,r.k)({name:"EditableContext",errorMessage:"useEditableContext: context is undefined. Seems you forgot to wrap the editable components in `<Editable />`"})},17899:function(t,e,n){n.d(e,{EditableInput:function(){return u}});var r=n(12661),i=n(48141),o=n(65018),s=n(79235),a=n(90655),l=n(38655);let u=(0,a.forwardRef)(function(t,e){let{getInputProps:n}=(0,o.useEditableContext)(),a=(0,o.useEditableStyles)(),u=n(t,e),c=(0,i.cx)("chakra-editable__input",t.className);return(0,r.jsx)(l.chakra.input,{...u,__css:{outline:0,...s.i,...a.input},className:c})});u.displayName="EditableInput"},29920:function(t,e,n){n.d(e,{EditablePreview:function(){return u}});var r=n(12661),i=n(48141),o=n(65018),s=n(79235),a=n(90655),l=n(38655);let u=(0,a.forwardRef)(function(t,e){let{getPreviewProps:n}=(0,o.useEditableContext)(),a=(0,o.useEditableStyles)(),u=n(t,e),c=(0,i.cx)("chakra-editable__preview",t.className);return(0,r.jsx)(l.chakra.span,{...u,__css:{cursor:"text",display:"inline-block",...s.i,...a.preview},className:c})});u.displayName="EditablePreview"},91642:function(t,e,n){n.d(e,{Editable:function(){return h}});var r=n(12661),i=n(19496),o=n(48141),s=n(60369),a=n(65018),l=n(21803),u=n(90655),c=n(47381),d=n(38655);let h=(0,u.forwardRef)(function(t,e){let n=(0,c.useMultiStyleConfig)("Editable",t),u=(0,i.L)(t),{htmlProps:h,...f}=(0,l.useEditable)(u),{isEditing:p,onSubmit:m,onCancel:v,onEdit:g}=f,y=(0,o.cx)("chakra-editable",t.className),x=(0,s.P)(t.children,{isEditing:p,onSubmit:m,onCancel:v,onEdit:g});return(0,r.jsx)(a.Z,{value:f,children:(0,r.jsx)(a.M,{value:n,children:(0,r.jsx)(d.chakra.div,{ref:e,...h,className:y,children:x})})})});h.displayName="Editable"},79235:function(t,e,n){n.d(e,{i:function(){return r}});let r={fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent"}},21803:function(t,e,n){n.d(e,{useEditable:function(){return f}});var r=n(43353),i=n(66106),o=n(62600),s=n(75543),a=n(62258),l=n(15750),u=n(50422),c=n(89385),d=n(40690);function h(t,e){return!!t&&(t===e||t.contains(e))}function f(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{onChange:e,onCancel:n,onSubmit:f,onBlur:p,value:m,isDisabled:v,defaultValue:g,startWithEditView:y,isPreviewFocusable:x=!0,submitOnBlur:b=!0,selectAllOnFocus:w=!0,placeholder:S,onEdit:P,finalFocusRef:C,...E}=t,T=(0,r.useCallbackRef)(P),k=!!(y&&!v),[A,M]=(0,d.useState)(k),[R,j]=(0,i.useControllableState)({defaultValue:g||"",value:m,onChange:e}),[O,D]=(0,d.useState)(R),F=(0,d.useRef)(null),V=(0,d.useRef)(null),L=(0,d.useRef)(null),N=(0,d.useRef)(null),I=(0,d.useRef)(null);(0,o.useFocusOnPointerDown)({ref:F,enabled:A,elements:[N,I]});let B=!A&&!v;(0,s.useSafeLayoutEffect)(()=>{if(A){var t,e;null===(t=F.current)||void 0===t||t.focus(),w&&(null===(e=F.current)||void 0===e||e.select())}},[]),(0,a.useUpdateEffect)(()=>{var t,e,n,r;if(!A){C?null===(e=C.current)||void 0===e||e.focus():null===(n=L.current)||void 0===n||n.focus();return}null===(t=F.current)||void 0===t||t.focus(),w&&(null===(r=F.current)||void 0===r||r.select()),null==T||T()},[A,T,w]);let _=(0,d.useCallback)(()=>{B&&M(!0)},[B]),W=(0,d.useCallback)(()=>{D(R)},[R]),U=(0,d.useCallback)(()=>{M(!1),j(O),null==n||n(O),null==p||p(O)},[n,p,j,O]),z=(0,d.useCallback)(()=>{M(!1),D(R),null==f||f(R),null==p||p(O)},[R,f,p,O]);(0,d.useEffect)(()=>{if(A)return;let t=F.current;(null==t?void 0:t.ownerDocument.activeElement)===t&&(null==t||t.blur())},[A]);let H=(0,d.useCallback)(t=>{j(t.currentTarget.value)},[j]),$=(0,d.useCallback)(t=>{let e={Escape:U,Enter:t=>{t.shiftKey||t.metaKey||z()}}[t.key];e&&(t.preventDefault(),e(t))},[U,z]),Z=(0,d.useCallback)(t=>{let e={Escape:U}[t.key];e&&(t.preventDefault(),e(t))},[U]),q=0===R.length,Y=(0,d.useCallback)(t=>{var e;if(!A)return;let n=t.currentTarget.ownerDocument,r=null!==(e=t.relatedTarget)&&void 0!==e?e:n.activeElement,i=h(N.current,r),o=h(I.current,r);i||o||(b?z():U())},[b,z,U,A]),K=(0,d.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=B&&x?0:void 0;return{...t,ref:(0,l.mergeRefs)(e,V),children:q?S:R,hidden:A,"aria-disabled":(0,u.Q)(v),tabIndex:n,onFocus:(0,c.v)(t.onFocus,_,W)}},[v,A,B,x,q,_,W,S,R]),G=(0,d.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...t,hidden:!A,placeholder:S,ref:(0,l.mergeRefs)(e,F),disabled:v,"aria-disabled":(0,u.Q)(v),value:R,onBlur:(0,c.v)(t.onBlur,Y),onChange:(0,c.v)(t.onChange,H),onKeyDown:(0,c.v)(t.onKeyDown,$),onFocus:(0,c.v)(t.onFocus,W)}},[v,A,Y,H,$,W,S,R]),X=(0,d.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...t,hidden:!A,placeholder:S,ref:(0,l.mergeRefs)(e,F),disabled:v,"aria-disabled":(0,u.Q)(v),value:R,onBlur:(0,c.v)(t.onBlur,Y),onChange:(0,c.v)(t.onChange,H),onKeyDown:(0,c.v)(t.onKeyDown,Z),onFocus:(0,c.v)(t.onFocus,W)}},[v,A,Y,H,Z,W,S,R]),Q=(0,d.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{"aria-label":"Edit",...t,type:"button",onClick:(0,c.v)(t.onClick,_),ref:(0,l.mergeRefs)(e,L),disabled:v}},[_,v]),J=(0,d.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...t,"aria-label":"Submit",ref:(0,l.mergeRefs)(I,e),type:"button",onClick:(0,c.v)(t.onClick,z),disabled:v}},[z,v]),tt=(0,d.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{"aria-label":"Cancel",id:"cancel",...t,ref:(0,l.mergeRefs)(N,e),type:"button",onClick:(0,c.v)(t.onClick,U),disabled:v}},[U,v]);return{isEditing:A,isDisabled:v,isValueEmpty:q,value:R,onEdit:_,onCancel:U,onSubmit:z,getPreviewProps:K,getInputProps:G,getTextareaProps:X,getEditButtonProps:Q,getSubmitButtonProps:J,getCancelButtonProps:tt,htmlProps:E}}},87286:function(t,e,n){n.d(e,{Flex:function(){return s}});var r=n(12661),i=n(90655),o=n(38655);let s=(0,i.forwardRef)(function(t,e){let{direction:n,align:i,justify:s,wrap:a,basis:l,grow:u,shrink:c,...d}=t;return(0,r.jsx)(o.chakra.div,{ref:e,__css:{display:"flex",flexDirection:n,alignItems:i,justifyContent:s,flexWrap:a,flexBasis:l,flexGrow:u,flexShrink:c},...d})});s.displayName="Flex"},82703:function(t,e,n){n.d(e,{FocusLock:function(){return tK}});var r,i,o,s=n(12661),a=n(69985),l=n(78941),u=n(40690),c="data-focus-lock",d="data-focus-lock-disabled",h=n(42653),f={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},p=n(97594),m=(0,p.s)({},function(t){return{target:t.target,currentTarget:t.currentTarget}}),v=(0,p.s)(),g=(0,p.s)(),y=(0,p._)({async:!0,ssr:"undefined"!=typeof document}),x=(0,u.createContext)(void 0),b=[],w=u.forwardRef(function(t,e){var n,r=u.useState(),i=r[0],o=r[1],s=u.useRef(),a=u.useRef(!1),p=u.useRef(null),g=u.useState({})[1],w=t.children,S=t.disabled,P=void 0!==S&&S,C=t.noFocusGuards,E=void 0!==C&&C,T=t.persistentFocus,k=t.crossFrame,A=t.autoFocus,M=(t.allowTextSelection,t.group),R=t.className,j=t.whiteList,O=t.hasPositiveIndices,D=t.shards,F=void 0===D?b:D,V=t.as,L=t.lockProps,N=t.sideCar,I=t.returnFocus,B=void 0!==I&&I,_=t.focusOptions,W=t.onActivation,U=t.onDeactivation,z=u.useState({})[0],H=u.useCallback(function(t){var e=t.captureFocusRestore;if(!p.current){var n,r=null==(n=document)?void 0:n.activeElement;p.current=r,r!==document.body&&(p.current=e(r))}s.current&&W&&W(s.current),a.current=!0,g()},[W]),$=u.useCallback(function(){a.current=!1,U&&U(s.current),g()},[U]),Z=u.useCallback(function(t){var e=p.current;if(e){var n=("function"==typeof e?e():e)||document.body,r="function"==typeof B?B(n):B;if(r){var i="object"==typeof r?r:void 0;p.current=null,t?Promise.resolve().then(function(){return n.focus(i)}):n.focus(i)}}},[B]),q=u.useCallback(function(t){a.current&&m.useMedium(t)},[]),Y=v.useMedium,K=u.useCallback(function(t){s.current!==t&&(s.current=t,o(t))},[]),G=(0,l.Z)(((n={})[d]=P&&"disabled",n[c]=M,n),void 0===L?{}:L),X=!0!==E,Q=X&&"tail"!==E,J=(0,h.q)([e,K]),tt=u.useMemo(function(){return{observed:s,shards:F,enabled:!P,active:a.current}},[P,a.current,F,i]);return u.createElement(u.Fragment,null,X&&[u.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:P?-1:0,style:f}),O?u.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:P?-1:1,style:f}):null],!P&&u.createElement(N,{id:z,sideCar:y,observed:i,disabled:P,persistentFocus:void 0!==T&&T,crossFrame:void 0===k||k,autoFocus:void 0===A||A,whiteList:j,shards:F,onActivation:H,onDeactivation:$,returnFocus:Z,focusOptions:_}),u.createElement(void 0===V?"div":V,(0,l.Z)({ref:J},G,{className:R,onBlur:Y,onFocus:q}),u.createElement(x.Provider,{value:tt},w)),Q&&u.createElement("div",{"data-focus-guard":!0,tabIndex:P?-1:0,style:f}))});w.propTypes={};var S=n(80406),P=n(9892),C=function(t){for(var e=Array(t.length),n=0;n<t.length;++n)e[n]=t[n];return e},E=function(t){return Array.isArray(t)?t:[t]},T=function(t){return Array.isArray(t)?t[0]:t},k=function(t){if(t.nodeType!==Node.ELEMENT_NODE)return!1;var e=window.getComputedStyle(t,null);return!!e&&!!e.getPropertyValue&&("none"===e.getPropertyValue("display")||"hidden"===e.getPropertyValue("visibility"))},A=function(t){return t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?t.parentNode.host:t.parentNode},M=function(t){return t===document||t&&t.nodeType===Node.DOCUMENT_NODE},R=function(t,e){var n,r=t.get(e);if(void 0!==r)return r;var i=(n=R.bind(void 0,t),!e||M(e)||!k(e)&&!e.hasAttribute("inert")&&n(A(e)));return t.set(e,i),i},j=function(t,e){var n,r=t.get(e);if(void 0!==r)return r;var i=(n=j.bind(void 0,t),!e||!!M(e)||!!V(e)&&n(A(e)));return t.set(e,i),i},O=function(t){return t.dataset},D=function(t){return"INPUT"===t.tagName},F=function(t){return D(t)&&"radio"===t.type},V=function(t){return![!0,"true",""].includes(t.getAttribute("data-no-autofocus"))},L=function(t){var e;return!!(t&&(null===(e=O(t))||void 0===e?void 0:e.focusGuard))},N=function(t){return!L(t)},I=function(t){return!!t},B=function(t,e){var n=Math.max(0,t.tabIndex),r=Math.max(0,e.tabIndex),i=n-r,o=t.index-e.index;if(i){if(!n)return 1;if(!r)return -1}return i||o},_=function(t,e,n){return C(t).map(function(t,e){var r=t.tabIndex<0&&!t.hasAttribute("tabindex")?0:t.tabIndex;return{node:t,index:e,tabIndex:n&&-1===r?(t.dataset||{}).focusGuard?0:-1:r}}).filter(function(t){return!e||t.tabIndex>=0}).sort(B)},W="button:enabled,select:enabled,textarea:enabled,input:enabled,a[href],area[href],summary,iframe,object,embed,audio[controls],video[controls],[tabindex],[contenteditable],[autofocus]",U="".concat(W,", [data-focus-guard]"),z=function(t,e){return C((t.shadowRoot||t).children).reduce(function(t,n){return t.concat(n.matches(e?U:W)?[n]:[],z(n))},[])},H=function(t,e){var n;return t instanceof HTMLIFrameElement&&(null===(n=t.contentDocument)||void 0===n?void 0:n.body)?$([t.contentDocument.body],e):[t]},$=function(t,e){return t.reduce(function(t,n){var r,i=z(n,e),o=(r=[]).concat.apply(r,i.map(function(t){return H(t,e)}));return t.concat(o,n.parentNode?C(n.parentNode.querySelectorAll(W)).filter(function(t){return t===n}):[])},[])},Z=function(t,e){return C(t).filter(function(t){return R(e,t)}).filter(function(t){return!((D(t)||"BUTTON"===t.tagName)&&("hidden"===t.type||t.disabled))})},q=function(t,e){return void 0===e&&(e=new Map),C(t).filter(function(t){return j(e,t)})},Y=function(t,e,n){return _(Z($(t,n),e),!0,n)},K=function(t,e){return _(Z($(t),e),!1)},G=function(t,e){return t.shadowRoot?G(t.shadowRoot,e):!!(void 0!==Object.getPrototypeOf(t).contains&&Object.getPrototypeOf(t).contains.call(t,e))||C(t.children).some(function(t){var n;if(t instanceof HTMLIFrameElement){var r=null===(n=t.contentDocument)||void 0===n?void 0:n.body;return!!r&&G(r,e)}return G(t,e)})},X=function(t){try{return t()}catch(t){return}},Q=function(t){if(void 0===t&&(t=document),t&&t.activeElement){var e=t.activeElement;return e.shadowRoot?Q(e.shadowRoot):e instanceof HTMLIFrameElement&&X(function(){return e.contentWindow.document})?Q(e.contentWindow.document):e}},J=function(t){void 0===t&&(t=document);var e=Q(t);return!!e&&C(t.querySelectorAll("[".concat("data-no-focus-lock","]"))).some(function(t){return G(t,e)})},tt=function(t){for(var e=new Set,n=t.length,r=0;r<n;r+=1)for(var i=r+1;i<n;i+=1){var o=t[r].compareDocumentPosition(t[i]);(o&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&e.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&e.add(r)}return t.filter(function(t,n){return!e.has(n)})},te=function(t){return t.parentNode?te(t.parentNode):t},tn=function(t){return E(t).filter(Boolean).reduce(function(t,e){var n=e.getAttribute(c);return t.push.apply(t,n?tt(C(te(e).querySelectorAll("[".concat(c,'="').concat(n,'"]:not([').concat(d,'="disabled"])')))):[e]),t},[])},tr=function(t,e){return void 0===e&&(e=Q(T(t).ownerDocument)),!!e&&(!e.dataset||!e.dataset.focusGuard)&&tn(t).some(function(t){var n;return G(t,e)||(n=e,!!C(t.querySelectorAll("iframe")).some(function(t){return t===n}))})},ti=function(t,e){t&&("focus"in t&&t.focus(e),"contentWindow"in t&&t.contentWindow&&t.contentWindow.focus())},to=function(t,e){return F(t)&&t.name&&e.filter(F).filter(function(e){return e.name===t.name}).filter(function(t){return t.checked})[0]||t},ts=function(t){var e=new Set;return t.forEach(function(n){return e.add(to(n,t))}),t.filter(function(t){return e.has(t)})},ta=function(t){return t[0]&&t.length>1?to(t[0],t):t[0]},tl=function(t,e){return t.indexOf(to(e,t))},tu="NEW_FOCUS",tc=function(t,e,n,r,i){var o=t.length,s=t[0],a=t[o-1],l=L(r);if(!(r&&t.indexOf(r)>=0)){var u=void 0!==r?n.indexOf(r):-1,c=i?n.indexOf(i):u,d=i?t.indexOf(i):-1;if(-1===u)return -1!==d?d:tu;if(-1===d)return tu;var h=u-c,f=n.indexOf(s),p=n.indexOf(a),m=ts(n),v=(void 0!==r?m.indexOf(r):-1)-(i?m.indexOf(i):u);if(!h&&d>=0||0===e.length)return d;var g=tl(t,e[0]),y=tl(t,e[e.length-1]);if(u<=f&&l&&Math.abs(h)>1)return y;if(u>=p&&l&&Math.abs(h)>1)return g;if(h&&Math.abs(v)>1)return d;if(u<=f)return y;if(u>p)return g;if(h)return Math.abs(h)>1?d:(o+d+h)%o}},td=function(t,e,n){var r=q(t.map(function(t){return t.node}).filter(function(t){var e,r=null===(e=O(t))||void 0===e?void 0:e.autofocus;return t.autofocus||void 0!==r&&"false"!==r||n.indexOf(t)>=0}));return r&&r.length?ta(r):ta(q(e))},th=function(t,e){return void 0===e&&(e=[]),e.push(t),t.parentNode&&th(t.parentNode.host||t.parentNode,e),e},tf=function(t,e){for(var n=th(t),r=th(e),i=0;i<n.length;i+=1){var o=n[i];if(r.indexOf(o)>=0)return o}return!1},tp=function(t,e,n){var r=E(t),i=E(e),o=r[0],s=!1;return i.filter(Boolean).forEach(function(t){s=tf(s||t,t)||s,n.filter(Boolean).forEach(function(t){var e=tf(o,t);e&&(s=!s||G(e,s)?e:tf(e,s))})}),s},tm=function(t,e){return t.reduce(function(t,n){return t.concat(Z(C(n.querySelectorAll("[".concat("data-autofocus-inside","]"))).map(function(t){return $([t])}).reduce(function(t,e){return t.concat(e)},[]),e))},[])},tv=function(t,e){var n=new Map;return e.forEach(function(t){return n.set(t.node,t)}),t.map(function(t){return n.get(t)}).filter(I)},tg=function(t,e){var n=Q(E(t).length>0?document:T(t).ownerDocument),r=tn(t).filter(N),i=tp(n||t,t,r),o=new Map,s=K(r,o),a=s.filter(function(t){return N(t.node)});if(a[0]){var l=K([i],o).map(function(t){return t.node}),u=tv(l,a),c=u.map(function(t){return t.node}),d=u.filter(function(t){return t.tabIndex>=0}).map(function(t){return t.node}),h=tc(c,d,l,n,e);if(h===tu){var f=td(s,d,tm(r,o))||td(s,c,tm(r,o));return f?{node:f}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===h?h:u[h]}},ty=0,tx=!1,tb=function(t,e,n){void 0===n&&(n={});var r=tg(t,e);if(!tx&&r){if(ty>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),tx=!0,setTimeout(function(){tx=!1},1);return}ty++,ti(r.node,n.focusOptions),ty--}},tw=function(t){var e=tn(t).filter(N),n=_($([tp(t,t,e)],!0),!0,!0),r=$(e,!1);return n.map(function(t){var e=t.node;return{node:e,index:t.index,lockItem:r.indexOf(e)>=0,guard:L(e)}})},tS=function(t,e,n){if(!t||!e)return console.error("no element or scope given"),{};var r=E(e);if(r.every(function(e){return!G(e,t)}))return console.error("Active element is not contained in the scope"),{};var i=n?Y(r,new Map):K(r,new Map),o=i.findIndex(function(e){return e.node===t});if(-1!==o)return{prev:i[o-1],next:i[o+1],first:i[0],last:i[i.length-1]}},tP=function(t,e){var n=e?Y(E(t),new Map):K(E(t),new Map);return{first:n[0],last:n[n.length-1]}},tC=function(t,e,n){void 0===e&&(e={});var r,i=(r=e,Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},r)),o=tS(t,i.scope,i.onlyTabbable);if(o){var s=n(o,i.cycle);s&&ti(s.node,i.focusOptions)}},tE=function(t,e,n){var r,i=tP(t,null===(r=e.onlyTabbable)||void 0===r||r)[n];i&&ti(i.node,e.focusOptions)};function tT(t){if(!t)return null;if("undefined"==typeof WeakRef)return function(){return t||null};var e=t?new WeakRef(t):null;return function(){return(null==e?void 0:e.deref())||null}}var tk=function(t){if(!t)return null;for(var e=[],n=t;n&&n!==document.body;)e.push({current:tT(n),parent:tT(n.parentElement),left:tT(n.previousElementSibling),right:tT(n.nextElementSibling)}),n=n.parentElement;return{element:tT(t),stack:e,ownerDocument:t.ownerDocument}},tA=function(t){if(t)for(var e,n,r,i,o,s=t.stack,a=t.ownerDocument,l=new Map,u=0;u<s.length;u++){var c=s[u],d=null===(e=c.parent)||void 0===e?void 0:e.call(c);if(d&&a.contains(d)){for(var h=null===(n=c.left)||void 0===n?void 0:n.call(c),f=c.current(),p=d.contains(f)?f:void 0,m=null===(r=c.right)||void 0===r?void 0:r.call(c),v=Y([d],l),g=null!==(o=null!==(i=null!=p?p:null==h?void 0:h.nextElementSibling)&&void 0!==i?i:m)&&void 0!==o?o:h;g;){for(var y=0;y<v.length;y++){var x=v[y];if(null==g?void 0:g.contains(x.node))return x.node}g=g.nextElementSibling}if(v.length)return v[0].node}}};function tM(t){setTimeout(t,1)}var tR=function(t){return t&&"current"in t?t.current:t},tj=null,tO=null,tD=null,tF=!1,tV=function(t,e){tD={observerNode:t,portaledElement:e}};function tL(t,e,n,r){var i=null,o=t;do{var s=r[o];if(s.guard)s.node.dataset.focusAutoGuard&&(i=s);else if(s.lockItem){if(o!==t)return;i=null}else break}while((o+=n)!==e);i&&(i.node.tabIndex=0)}var tN=function(){var t=!1;if(tj){var e=tj,n=e.observed,r=e.persistentFocus,i=e.autoFocus,o=e.shards,s=e.crossFrame,a=e.focusOptions,l=n||tD&&tD.portaledElement,u=document&&document.activeElement;if(l){var c=[l].concat(o.map(tR).filter(Boolean));if((!u||(tj.whiteList||function(){return!0})(u))&&(r||(s?!!tF:"meanwhile"===tF)||!(document&&document.activeElement===document.body||J())||!tO&&i)&&(l&&!(tr(c)||u&&c.some(function(t){return function t(e,n,r){return n&&(n.host===e&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&t(e,n.parentNode,r))}(u,t,t)})||tD&&tD.portaledElement===u)&&(document&&!tO&&u&&!i?(u.blur&&u.blur(),document.body.focus()):(t=tb(c,tO,{focusOptions:a}),tD={})),tF=!1,tO=document&&document.activeElement),document&&u!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var d=document&&document.activeElement,h=tw(c),f=h.map(function(t){return t.node}).indexOf(d);f>-1&&(h.filter(function(t){var e=t.guard,n=t.node;return e&&n.dataset.focusAutoGuard}).forEach(function(t){return t.node.removeAttribute("tabIndex")}),tL(f,h.length,1,h),tL(f,-1,-1,h))}}}return t},tI=function(t){tN()&&t&&(t.stopPropagation(),t.preventDefault())},tB=function(){return tM(tN)},t_=function(){tF="just",tM(function(){tF="meanwhile"})},tW=function(){document.addEventListener("focusin",tI),document.addEventListener("focusout",tB),window.addEventListener("blur",t_)},tU=function(){document.removeEventListener("focusin",tI),document.removeEventListener("focusout",tB),window.removeEventListener("blur",t_)},tz={moveFocusInside:tb,focusInside:tr,focusNextElement:function(t,e){void 0===e&&(e={}),tC(t,e,function(t,e){var n=t.next,r=t.first;return n||e&&r})},focusPrevElement:function(t,e){void 0===e&&(e={}),tC(t,e,function(t,e){var n=t.prev,r=t.last;return n||e&&r})},focusFirstElement:function(t,e){void 0===e&&(e={}),tE(t,e,"first")},focusLastElement:function(t,e){void 0===e&&(e={}),tE(t,e,"last")},captureFocusRestore:function(t){var e=tk(t);return function(){return tA(e)}}};m.assignSyncMedium(function(t){var e=t.target,n=t.currentTarget;n.contains(e)||tV(n,e)}),v.assignMedium(tB),g.assignMedium(function(t){return t(tz)});var tH=(r=function(t){return t.filter(function(t){return!t.disabled})},i=function(t){var e=t.slice(-1)[0];e&&!tj&&tW();var n=tj,r=n&&e&&e.id===n.id;tj=e,!n||r||(n.onDeactivation(),t.filter(function(t){return t.id===n.id}).length||n.returnFocus(!e)),e?(tO=null,r&&n.observed===e.observed||e.onActivation(tz),tN(!0),tM(tN)):(tU(),tO=null)},function(t){var e,n=[];function o(){i(e=r(n.map(function(t){return t.props})))}var s=function(r){function i(){return r.apply(this,arguments)||this}i.prototype=Object.create(r.prototype),i.prototype.constructor=i,(0,S.Z)(i,r),i.peek=function(){return e};var s=i.prototype;return s.componentDidMount=function(){n.push(this),o()},s.componentDidUpdate=function(){o()},s.componentWillUnmount=function(){var t=n.indexOf(this);n.splice(t,1),o()},s.render=function(){return u.createElement(t,this.props)},i}(u.PureComponent);return(0,P.Z)(s,"displayName","SideEffect("+(t.displayName||t.name||"Component")+")"),s})(function(){return null}),t$=u.forwardRef(function(t,e){return u.createElement(w,(0,l.Z)({sideCar:tH,ref:e},t))}),tZ=w.propTypes||{};tZ.sideCar,(0,a.Z)(tZ,["sideCar"]),t$.propTypes={};var tq=n(82675);let tY=null!==(o=t$.default)&&void 0!==o?o:t$,tK=t=>{let{initialFocusRef:e,finalFocusRef:n,contentRef:r,restoreFocus:i,children:o,isDisabled:a,autoFocus:l,persistentFocus:c,lockFocusAcrossFrames:d}=t,h=(0,u.useCallback)(()=>{(null==e?void 0:e.current)?e.current.focus():(null==r?void 0:r.current)&&0===(0,tq.t5)(r.current).length&&requestAnimationFrame(()=>{var t;null===(t=r.current)||void 0===t||t.focus()})},[e,r]),f=(0,u.useCallback)(()=>{var t;null==n||null===(t=n.current)||void 0===t||t.focus()},[n]),p=i&&!n;return(0,s.jsx)(tY,{crossFrame:d,persistentFocus:c,autoFocus:l,disabled:a,onActivation:h,onDeactivation:f,returnFocus:p,children:o})};tK.displayName="FocusLock"},88490:function(t,e,n){n.d(e,{FormControl:function(){return g},FormHelperText:function(){return y},useFormControlContext:function(){return v},useFormControlStyles:function(){return p}});var r=n(12661),i=n(15750),o=n(19496),s=n(87957),a=n(50422),l=n(48141),u=n(40690),c=n(90655),d=n(47381),h=n(38655);let[f,p]=(0,s.k)({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormControl />\" "}),[m,v]=(0,s.k)({strict:!1,name:"FormControlContext"}),g=(0,c.forwardRef)(function(t,e){let n=(0,d.useMultiStyleConfig)("Form",t),{getRootProps:s,htmlProps:c,...p}=function(t){let{id:e,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:s,...l}=t,c=(0,u.useId)(),d=e||"field-".concat(c),h="".concat(d,"-label"),f="".concat(d,"-feedback"),p="".concat(d,"-helptext"),[m,v]=(0,u.useState)(!1),[g,y]=(0,u.useState)(!1),[x,b]=(0,u.useState)(!1),w=(0,u.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{id:p,...t,ref:(0,i.mergeRefs)(e,t=>{t&&y(!0)})}},[p]),S=(0,u.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...t,ref:e,"data-focus":(0,a.P)(x),"data-disabled":(0,a.P)(o),"data-invalid":(0,a.P)(r),"data-readonly":(0,a.P)(s),id:void 0!==t.id?t.id:h,htmlFor:void 0!==t.htmlFor?t.htmlFor:d}},[d,o,x,r,s,h]),P=(0,u.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{id:f,...t,ref:(0,i.mergeRefs)(e,t=>{t&&v(!0)}),"aria-live":"polite"}},[f]),C=(0,u.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...t,...l,ref:e,role:"group","data-focus":(0,a.P)(x),"data-disabled":(0,a.P)(o),"data-invalid":(0,a.P)(r),"data-readonly":(0,a.P)(s)}},[l,o,x,r,s]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!s,isDisabled:!!o,isFocused:!!x,onFocus:()=>b(!0),onBlur:()=>b(!1),hasFeedbackText:m,setHasFeedbackText:v,hasHelpText:g,setHasHelpText:y,id:d,labelId:h,feedbackId:f,helpTextId:p,htmlProps:l,getHelpTextProps:w,getErrorMessageProps:P,getRootProps:C,getLabelProps:S,getRequiredIndicatorProps:(0,u.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...t,ref:e,role:"presentation","aria-hidden":!0,children:t.children||"*"}},[])}}((0,o.L)(t)),v=(0,l.cx)("chakra-form-control",t.className);return(0,r.jsx)(m,{value:p,children:(0,r.jsx)(f,{value:n,children:(0,r.jsx)(h.chakra.div,{...s({},e),className:v,__css:n.container})})})});g.displayName="FormControl";let y=(0,c.forwardRef)(function(t,e){let n=v(),i=p(),o=(0,l.cx)("chakra-form__helper-text",t.className);return(0,r.jsx)(h.chakra.div,{...null==n?void 0:n.getHelpTextProps(t,e),__css:i.helperText,className:o})});y.displayName="FormHelperText"},15682:function(t,e,n){n.d(e,{FormErrorIcon:function(){return m},FormErrorMessage:function(){return p},useFormErrorStyles:function(){return f}});var r=n(12661),i=n(19496),o=n(87957),s=n(48141),a=n(88490),l=n(86682),u=n(90655),c=n(47381),d=n(38655);let[h,f]=(0,o.k)({name:"FormErrorStylesContext",errorMessage:"useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormError />\" "}),p=(0,u.forwardRef)((t,e)=>{let n=(0,c.useMultiStyleConfig)("FormError",t),o=(0,i.L)(t),l=(0,a.useFormControlContext)();return(null==l?void 0:l.isInvalid)?(0,r.jsx)(h,{value:n,children:(0,r.jsx)(d.chakra.div,{...null==l?void 0:l.getErrorMessageProps(o,e),className:(0,s.cx)("chakra-form__error-message",t.className),__css:{display:"flex",alignItems:"center",...n.text}})}):null});p.displayName="FormErrorMessage";let m=(0,u.forwardRef)((t,e)=>{let n=f(),i=(0,a.useFormControlContext)();if(!(null==i?void 0:i.isInvalid))return null;let o=(0,s.cx)("chakra-form__error-icon",t.className);return(0,r.jsx)(l.Icon,{ref:e,"aria-hidden":!0,...t,__css:n.icon,className:o,children:(0,r.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})});m.displayName="FormErrorIcon"},92847:function(t,e,n){n.d(e,{FormLabel:function(){return c},RequiredIndicator:function(){return d}});var r=n(12661),i=n(19496),o=n(48141),s=n(88490),a=n(90655),l=n(47381),u=n(38655);let c=(0,a.forwardRef)(function(t,e){var n;let a=(0,l.useStyleConfig)("FormLabel",t),c=(0,i.L)(t),{className:h,children:f,requiredIndicator:p=(0,r.jsx)(d,{}),optionalIndicator:m=null,...v}=c,g=(0,s.useFormControlContext)(),y=null!==(n=null==g?void 0:g.getLabelProps(v,e))&&void 0!==n?n:{ref:e,...v};return(0,r.jsxs)(u.chakra.label,{...y,className:(0,o.cx)("chakra-form__label",c.className),__css:{display:"block",textAlign:"start",...a},children:[f,(null==g?void 0:g.isRequired)?p:m]})});c.displayName="FormLabel";let d=(0,a.forwardRef)(function(t,e){let n=(0,s.useFormControlContext)(),i=(0,s.useFormControlStyles)();if(!(null==n?void 0:n.isRequired))return null;let a=(0,o.cx)("chakra-form__required-indicator",t.className);return(0,r.jsx)(u.chakra.span,{...null==n?void 0:n.getRequiredIndicatorProps(t,e),__css:i.requiredIndicator,className:a})});d.displayName="RequiredIndicator"},7042:function(t,e,n){n.d(e,{useFormControl:function(){return s},useFormControlProps:function(){return a}});var r=n(50422),i=n(89385),o=n(88490);function s(t){let{isDisabled:e,isInvalid:n,isReadOnly:i,isRequired:o,...s}=a(t);return{...s,disabled:e,readOnly:i,required:o,"aria-invalid":(0,r.Q)(n),"aria-required":(0,r.Q)(o),"aria-readonly":(0,r.Q)(i)}}function a(t){var e,n,r;let s=(0,o.useFormControlContext)(),{id:a,disabled:l,readOnly:u,required:c,isRequired:d,isInvalid:h,isReadOnly:f,isDisabled:p,onFocus:m,onBlur:v,...g}=t,y=t["aria-describedby"]?[t["aria-describedby"]]:[];return(null==s?void 0:s.hasFeedbackText)&&(null==s?void 0:s.isInvalid)&&y.push(s.feedbackId),(null==s?void 0:s.hasHelpText)&&y.push(s.helpTextId),{...g,"aria-describedby":y.join(" ")||void 0,id:null!=a?a:null==s?void 0:s.id,isDisabled:null!==(e=null!=l?l:p)&&void 0!==e?e:null==s?void 0:s.isDisabled,isReadOnly:null!==(n=null!=u?u:f)&&void 0!==n?n:null==s?void 0:s.isReadOnly,isRequired:null!==(r=null!=c?c:d)&&void 0!==r?r:null==s?void 0:s.isRequired,isInvalid:null!=h?h:null==s?void 0:s.isInvalid,onFocus:(0,i.v)(null==s?void 0:s.onFocus,m),onBlur:(0,i.v)(null==s?void 0:s.onBlur,v)}}},84396:function(t,e,n){n.d(e,{Grid:function(){return s}});var r=n(12661),i=n(90655),o=n(38655);let s=(0,i.forwardRef)(function(t,e){let{templateAreas:n,gap:i,rowGap:s,columnGap:a,column:l,row:u,autoFlow:c,autoRows:d,templateRows:h,autoColumns:f,templateColumns:p,...m}=t;return(0,r.jsx)(o.chakra.div,{ref:e,__css:{display:"grid",gridTemplateAreas:n,gridGap:i,gridRowGap:s,gridColumnGap:a,gridAutoColumns:f,gridColumn:l,gridRow:u,gridAutoFlow:c,gridAutoRows:d,gridTemplateRows:h,gridTemplateColumns:p},...m})});s.displayName="Grid"},64418:function(t,e,n){n.d(e,{useImage:function(){return o},z:function(){return s}});var r=n(75543),i=n(40690);function o(t){let{loading:e,src:n,srcSet:o,onLoad:s,onError:a,crossOrigin:l,sizes:u,ignoreFallback:c}=t,[d,h]=(0,i.useState)("pending");(0,i.useEffect)(()=>{h(n?"loading":"pending")},[n]);let f=(0,i.useRef)(),p=(0,i.useCallback)(()=>{if(!n)return;m();let t=new Image;t.src=n,l&&(t.crossOrigin=l),o&&(t.srcset=o),u&&(t.sizes=u),e&&(t.loading=e),t.onload=t=>{m(),h("loaded"),null==s||s(t)},t.onerror=t=>{m(),h("failed"),null==a||a(t)},f.current=t},[n,l,o,u,s,a,e]),m=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return(0,r.useSafeLayoutEffect)(()=>{if(!c)return"loading"===d&&p(),()=>{m()}},[d,p,c]),c?"loaded":d}let s=(t,e)=>"loaded"!==t&&"beforeLoadOrError"===e||"failed"===t&&"onError"===e},86649:function(t,e,n){n.d(e,{Input:function(){return c}});var r=n(12661),i=n(19496),o=n(48141),s=n(7042),a=n(90655),l=n(47381),u=n(38655);let c=(0,a.forwardRef)(function(t,e){let{htmlSize:n,...a}=t,c=(0,l.useMultiStyleConfig)("Input",a),d=(0,i.L)(a),h=(0,s.useFormControl)(d),f=(0,o.cx)("chakra-input",t.className);return(0,r.jsx)(u.chakra.input,{size:n,...h,__css:c.field,ref:e,className:f})});c.displayName="Input",c.id="Input"},46224:function(t,e,n){n.d(e,{ModalBody:function(){return u}});var r=n(12661),i=n(48141),o=n(40690),s=n(31912),a=n(90655),l=n(38655);let u=(0,a.forwardRef)((t,e)=>{let{className:n,...a}=t,{bodyId:u,setBodyMounted:c}=(0,s.useModalContext)();(0,o.useEffect)(()=>(c(!0),()=>c(!1)),[c]);let d=(0,i.cx)("chakra-modal__body",n),h=(0,s.useModalStyles)();return(0,r.jsx)(l.chakra.div,{ref:e,className:d,id:u,...a,__css:h.body})});u.displayName="ModalBody"},29353:function(t,e,n){n.d(e,{ModalCloseButton:function(){return l}});var r=n(12661),i=n(48141),o=n(89385),s=n(31912),a=n(10015);let l=(0,n(90655).forwardRef)((t,e)=>{let{onClick:n,className:l,...u}=t,{onClose:c}=(0,s.useModalContext)(),d=(0,i.cx)("chakra-modal__close-btn",l),h=(0,s.useModalStyles)();return(0,r.jsx)(a.CloseButton,{ref:e,__css:h.closeButton,className:d,onClick:(0,o.v)(n,t=>{t.stopPropagation(),c()}),...u})});l.displayName="ModalCloseButton"},43852:function(t,e,n){n.d(e,{ModalContent:function(){return g}});var r=n(12661),i=n(8418),o=n(48141),s=n(31912),a=n(78259),l=n(55470),u=n(40690),c=n(64938),d=n(9571),h=n(38655);let f={slideInBottom:{...c.slideFadeConfig,custom:{offsetY:16,reverse:!0}},slideInRight:{...c.slideFadeConfig,custom:{offsetX:16,reverse:!0}},slideInTop:{...c.slideFadeConfig,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...c.slideFadeConfig,custom:{offsetX:-16,reverse:!0}},scale:{...d.scaleFadeConfig,custom:{initialScale:.95,reverse:!0}},none:{}},p=(0,h.chakra)(l.E.section),m=t=>f[t||"none"],v=(0,u.forwardRef)((t,e)=>{let{preset:n,motionProps:i=m(n),...o}=t;return(0,r.jsx)(p,{ref:e,...i,...o})});v.displayName="ModalTransition";let g=(0,n(90655).forwardRef)((t,e)=>{let{className:n,children:l,containerProps:u,motionProps:c,...d}=t,{getDialogProps:f,getDialogContainerProps:p}=(0,s.useModalContext)(),m=f(d,e),g=p(u),y=(0,o.cx)("chakra-modal__content",n),x=(0,s.useModalStyles)(),b=(0,i.k0)({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...x.dialog}),w=(0,i.k0)({display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...x.dialogContainer}),{motionPreset:S}=(0,s.useModalContext)();return(0,r.jsx)(a.ModalFocusScope,{children:(0,r.jsx)(h.chakra.div,{...g,className:"chakra-modal__content-container",tabIndex:-1,__css:w,children:(0,r.jsx)(v,{preset:S,motionProps:c,className:y,...m,__css:b,children:l})})})});g.displayName="ModalContent"},78259:function(t,e,n){n.d(e,{ModalFocusScope:function(){return q}});var r,i,o=n(12661),s=n(43193),a=n(40690),l=n(32819),u="right-scroll-bar-position",c="width-before-scroll-bar",d=n(42653),h=(0,n(97594)._)(),f=function(){},p=a.forwardRef(function(t,e){var n=a.useRef(null),r=a.useState({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:f}),i=r[0],o=r[1],s=t.forwardProps,u=t.children,c=t.className,p=t.removeScrollBar,m=t.enabled,v=t.shards,g=t.sideCar,y=t.noIsolation,x=t.inert,b=t.allowPinchZoom,w=t.as,S=t.gapMode,P=(0,l._T)(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=(0,d.q)([n,e]),E=(0,l.pi)((0,l.pi)({},P),i);return a.createElement(a.Fragment,null,m&&a.createElement(g,{sideCar:h,removeScrollBar:p,shards:v,noIsolation:y,inert:x,setCallbacks:o,allowPinchZoom:!!b,lockRef:n,gapMode:S}),s?a.cloneElement(a.Children.only(u),(0,l.pi)((0,l.pi)({},E),{ref:C})):a.createElement(void 0===w?"div":w,(0,l.pi)({},E,{className:c,ref:C}),u))});p.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},p.classNames={fullWidth:c,zeroRight:u};var m=function(t){var e=t.sideCar,n=(0,l._T)(t,["sideCar"]);if(!e)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw Error("Sidecar medium not found");return a.createElement(r,(0,l.pi)({},n))};m.isSideCarExport=!0;var v=function(){var t=0,e=null;return{add:function(r){if(0==t&&(e=function(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=i||n.nc;return e&&t.setAttribute("nonce",e),t}())){var o,s;(o=e).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),s=e,(document.head||document.getElementsByTagName("head")[0]).appendChild(s)}t++},remove:function(){--t||!e||(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},g=function(){var t=v();return function(e,n){a.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},y=function(){var t=g();return function(e){return t(e.styles,e.dynamic),null}},x={left:0,top:0,right:0,gap:0},b=function(t){return parseInt(t||"",10)||0},w=function(t){var e=window.getComputedStyle(document.body),n=e["padding"===t?"paddingLeft":"marginLeft"],r=e["padding"===t?"paddingTop":"marginTop"],i=e["padding"===t?"paddingRight":"marginRight"];return[b(n),b(r),b(i)]},S=function(t){if(void 0===t&&(t="margin"),"undefined"==typeof window)return x;var e=w(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},P=y(),C="data-scroll-locked",E=function(t,e,n,r){var i=t.left,o=t.top,s=t.right,a=t.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(a,"px ").concat(r,";\n  }\n  body[").concat(C,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([e&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(i,"px;\n    padding-top: ").concat(o,"px;\n    padding-right: ").concat(s,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(a,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(u," {\n    right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(c," {\n    margin-right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(u," .").concat(u," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(c," .").concat(c," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(C,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n  }\n")},T=function(){var t=parseInt(document.body.getAttribute(C)||"0",10);return isFinite(t)?t:0},k=function(){a.useEffect(function(){return document.body.setAttribute(C,(T()+1).toString()),function(){var t=T()-1;t<=0?document.body.removeAttribute(C):document.body.setAttribute(C,t.toString())}},[])},A=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,i=void 0===r?"margin":r;k();var o=a.useMemo(function(){return S(i)},[i]);return a.createElement(P,{styles:E(o,!e,i,n?"":"!important")})},M=!1;if("undefined"!=typeof window)try{var R=Object.defineProperty({},"passive",{get:function(){return M=!0,!0}});window.addEventListener("test",R,R),window.removeEventListener("test",R,R)}catch(t){M=!1}var j=!!M&&{passive:!1},O=function(t,e){var n=window.getComputedStyle(t);return"hidden"!==n[e]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==t.tagName&&"visible"===n[e])},D=function(t,e){var n=e.ownerDocument,r=e;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),F(t,r)){var i=V(t,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},F=function(t,e){return"v"===t?O(e,"overflowY"):O(e,"overflowX")},V=function(t,e){return"v"===t?[e.scrollTop,e.scrollHeight,e.clientHeight]:[e.scrollLeft,e.scrollWidth,e.clientWidth]},L=function(t,e,n,r,i){var o,s=(o=window.getComputedStyle(e).direction,"h"===t&&"rtl"===o?-1:1),a=s*r,l=n.target,u=e.contains(l),c=!1,d=a>0,h=0,f=0;do{var p=V(t,l),m=p[0],v=p[1]-p[2]-s*m;(m||v)&&F(t,l)&&(h+=v,f+=m),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!u&&l!==document.body||u&&(e.contains(l)||e===l));return d&&(i&&1>Math.abs(h)||!i&&a>h)?c=!0:!d&&(i&&1>Math.abs(f)||!i&&-a>f)&&(c=!0),c},N=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},I=function(t){return[t.deltaX,t.deltaY]},B=function(t){return t&&"current"in t?t.current:t},_=0,W=[],U=(r=function(t){var e=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),i=a.useState(_++)[0],o=a.useState(y)[0],s=a.useRef(t);a.useEffect(function(){s.current=t},[t]),a.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=(0,l.ev)([t.lockRef.current],(t.shards||[]).map(B),!0).filter(Boolean);return e.forEach(function(t){return t.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach(function(t){return t.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var u=a.useCallback(function(t,e){if("touches"in t&&2===t.touches.length)return!s.current.allowPinchZoom;var i,o=N(t),a=n.current,l="deltaX"in t?t.deltaX:a[0]-o[0],u="deltaY"in t?t.deltaY:a[1]-o[1],c=t.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in t&&"h"===d&&"range"===c.type)return!1;var h=D(d,c);if(!h)return!0;if(h?i=d:(i="v"===d?"h":"v",h=D(d,c)),!h)return!1;if(!r.current&&"changedTouches"in t&&(l||u)&&(r.current=i),!i)return!0;var f=r.current||i;return L(f,e,t,"h"===f?l:u,!0)},[]),c=a.useCallback(function(t){if(W.length&&W[W.length-1]===o){var n="deltaY"in t?I(t):N(t),r=e.current.filter(function(e){var r;return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(r=e.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){t.cancelable&&t.preventDefault();return}if(!r){var i=(s.current.shards||[]).map(B).filter(Boolean).filter(function(e){return e.contains(t.target)});(i.length>0?u(t,i[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),d=a.useCallback(function(t,n,r,i){var o={name:t,delta:n,target:r,should:i,shadowParent:function(t){for(var e=null;null!==t;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}(r)};e.current.push(o),setTimeout(function(){e.current=e.current.filter(function(t){return t!==o})},1)},[]),h=a.useCallback(function(t){n.current=N(t),r.current=void 0},[]),f=a.useCallback(function(e){d(e.type,I(e),e.target,u(e,t.lockRef.current))},[]),p=a.useCallback(function(e){d(e.type,N(e),e.target,u(e,t.lockRef.current))},[]);a.useEffect(function(){return W.push(o),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,j),document.addEventListener("touchmove",c,j),document.addEventListener("touchstart",h,j),function(){W=W.filter(function(t){return t!==o}),document.removeEventListener("wheel",c,j),document.removeEventListener("touchmove",c,j),document.removeEventListener("touchstart",h,j)}},[]);var m=t.removeScrollBar,v=t.inert;return a.createElement(a.Fragment,null,v?a.createElement(o,{styles:"\n  .block-interactivity-".concat(i," {pointer-events: none;}\n  .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,m?a.createElement(A,{gapMode:t.gapMode}):null)},h.useMedium(r),m),z=a.forwardRef(function(t,e){return a.createElement(p,(0,l.pi)({},t,{ref:e,sideCar:U}))});z.classNames=p.classNames;var H=n(31912),$=n(56158),Z=n(82703);function q(t){let{autoFocus:e,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:l,allowPinchZoom:u,finalFocusRef:c,returnFocusOnClose:d,preserveScrollBarGap:h,lockFocusAcrossFrames:f,isOpen:p}=(0,H.useModalContext)(),[m,v]=(0,s.oO)();(0,a.useEffect)(()=>{!m&&v&&setTimeout(v)},[m,v]);let g=(0,$.useModalManager)(r,p);return(0,o.jsx)(Z.FocusLock,{autoFocus:e,isDisabled:!n,initialFocusRef:i,finalFocusRef:c,restoreFocus:d,contentRef:r,lockFocusAcrossFrames:f,children:(0,o.jsx)(z,{removeScrollBar:!h,allowPinchZoom:u,enabled:1===g&&l,forwardProps:!0,children:t.children})})}},99531:function(t,e,n){n.d(e,{ModalHeader:function(){return c}});var r=n(12661),i=n(8418),o=n(48141),s=n(40690),a=n(31912),l=n(90655),u=n(38655);let c=(0,l.forwardRef)((t,e)=>{let{className:n,...l}=t,{headerId:c,setHeaderMounted:d}=(0,a.useModalContext)();(0,s.useEffect)(()=>(d(!0),()=>d(!1)),[d]);let h=(0,o.cx)("chakra-modal__header",n),f=(0,a.useModalStyles)(),p=(0,i.k0)({flex:0,...f.header});return(0,r.jsx)(u.chakra.header,{ref:e,className:h,id:c,...l,__css:p})});c.displayName="ModalHeader"},56158:function(t,e,n){n.d(e,{m:function(){return l},useModalManager:function(){return u}});var r=n(40690),i=Object.defineProperty,o=(t,e,n)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,s=(t,e,n)=>(o(t,"symbol"!=typeof e?e+"":e,n),n);class a{add(t){return this.modals.add(t),this.modals.size}remove(t){this.modals.delete(t)}isTopModal(t){return!!t&&t===Array.from(this.modals)[this.modals.size-1]}constructor(){s(this,"modals"),this.modals=new Set}}let l=new a;function u(t,e){let[n,i]=(0,r.useState)(0);return(0,r.useEffect)(()=>{let n=t.current;if(n)return e&&i(l.add(n)),()=>{l.remove(n),i(0)}},[e,t]),n}},54304:function(t,e,n){n.d(e,{ModalOverlay:function(){return d}});var r=n(12661),i=n(48141),o=n(55470),s=n(31912),a=n(78106),l=n(38655),u=n(90655);let c=(0,l.chakra)(o.E.div),d=(0,u.forwardRef)((t,e)=>{let{className:n,transition:o,motionProps:l,...u}=t,d=(0,i.cx)("chakra-modal__overlay",n),h={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...(0,s.useModalStyles)().overlay},{motionPreset:f}=(0,s.useModalContext)(),p="none"===f?{}:a.fadeConfig;return(0,r.jsx)(c,{...l||p,__css:h,ref:e,className:d,...u})});d.displayName="ModalOverlay"},31912:function(t,e,n){n.d(e,{Modal:function(){return f},ModalContextProvider:function(){return d},useModalContext:function(){return h},useModalStyles:function(){return c}});var r=n(12661),i=n(87957),o=n(53900),s=n(35080),a=n(12235),l=n(47381);let[u,c]=(0,i.k)({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Modal />\" "}),[d,h]=(0,i.k)({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),f=t=>{let e={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,preserveScrollBarGap:!0,motionPreset:"scale",...t,lockFocusAcrossFrames:t.lockFocusAcrossFrames||!0},{portalProps:n,children:i,autoFocus:c,trapFocus:h,initialFocusRef:f,finalFocusRef:p,returnFocusOnClose:m,blockScrollOnMount:v,allowPinchZoom:g,preserveScrollBarGap:y,motionPreset:x,lockFocusAcrossFrames:b,animatePresenceProps:w,onCloseComplete:S}=e,P=(0,l.useMultiStyleConfig)("Modal",e),C={...(0,s.useModal)(e),autoFocus:c,trapFocus:h,initialFocusRef:f,finalFocusRef:p,returnFocusOnClose:m,blockScrollOnMount:v,allowPinchZoom:g,preserveScrollBarGap:y,motionPreset:x,lockFocusAcrossFrames:b};return(0,r.jsx)(d,{value:C,children:(0,r.jsx)(u,{value:P,children:(0,r.jsx)(o.M,{...w,onExitComplete:S,children:C.isOpen&&(0,r.jsx)(a.Portal,{...n,children:i})})})})};f.displayName="Modal"},35080:function(t,e,n){n.d(e,{useModal:function(){return p}});var r=n(15750),i=n(89385),o=new WeakMap,s=new WeakMap,a={},l=0,u=function(t){return t&&(t.host||u(t.parentNode))},c=function(t,e,n,r){var i=(Array.isArray(t)?t:[t]).map(function(t){if(e.contains(t))return t;var n=u(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return!!t});a[n]||(a[n]=new WeakMap);var c=a[n],d=[],h=new Set,f=new Set(i),p=function(t){!t||h.has(t)||(h.add(t),p(t.parentNode))};i.forEach(p);var m=function(t){!t||f.has(t)||Array.prototype.forEach.call(t.children,function(t){if(h.has(t))m(t);else try{var e=t.getAttribute(r),i=null!==e&&"false"!==e,a=(o.get(t)||0)+1,l=(c.get(t)||0)+1;o.set(t,a),c.set(t,l),d.push(t),1===a&&i&&s.set(t,!0),1===l&&t.setAttribute(n,"true"),i||t.setAttribute(r,"true")}catch(e){console.error("aria-hidden: cannot operate on ",t,e)}})};return m(e),h.clear(),l++,function(){d.forEach(function(t){var e=o.get(t)-1,i=c.get(t)-1;o.set(t,e),c.set(t,i),e||(s.has(t)||t.removeAttribute(r),s.delete(t)),i||t.removeAttribute(n)}),--l||(o=new WeakMap,o=new WeakMap,s=new WeakMap,a={})}},d=function(t,e,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),i=e||("undefined"==typeof document?null:(Array.isArray(t)?t[0]:t).ownerDocument.body);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),c(r,i,n,"aria-hidden")):function(){return null}},h=n(40690),f=n(56158);function p(t){let{isOpen:e,onClose:n,id:o,closeOnOverlayClick:s=!0,closeOnEsc:a=!0,useInert:l=!0,onOverlayClick:u,onEsc:c}=t,p=(0,h.useRef)(null),m=(0,h.useRef)(null),[v,g,y]=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let i=(0,h.useId)(),o=t||i;return(0,h.useMemo)(()=>n.map(t=>"".concat(t,"-").concat(o)),[o,n])}(o,"chakra-modal","chakra-modal--header","chakra-modal--body");!function(t,e){let n=t.current;(0,h.useEffect)(()=>{if(t.current&&e)return d(t.current)},[e,t,n])}(p,e&&l);let x=(0,f.useModalManager)(p,e),b=(0,h.useRef)(null),w=(0,h.useCallback)(t=>{b.current=t.target},[]),S=(0,h.useCallback)(t=>{"Escape"===t.key&&(t.stopPropagation(),a&&(null==n||n()),null==c||c())},[a,n,c]),[P,C]=(0,h.useState)(!1),[E,T]=(0,h.useState)(!1),k=(0,h.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{role:"dialog",...t,ref:(0,r.mergeRefs)(e,p),id:v,tabIndex:-1,"aria-modal":!0,"aria-labelledby":P?g:void 0,"aria-describedby":E?y:void 0,onClick:(0,i.v)(t.onClick,t=>t.stopPropagation())}},[y,E,v,g,P]),A=(0,h.useCallback)(t=>{t.stopPropagation(),b.current===t.target&&f.m.isTopModal(p.current)&&(s&&(null==n||n()),null==u||u())},[n,s,u]),M=(0,h.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...t,ref:(0,r.mergeRefs)(e,m),onClick:(0,i.v)(t.onClick,A),onKeyDown:(0,i.v)(t.onKeyDown,S),onMouseDown:(0,i.v)(t.onMouseDown,w)}},[S,w,A]);return{isOpen:e,onClose:n,headerId:g,bodyId:y,setBodyMounted:T,setHeaderMounted:C,dialogRef:p,overlayRef:m,getDialogProps:k,getDialogContainerProps:M,index:x}}},63896:function(t,e,n){n.d(e,{usePopper:function(){return tP}});var r,i,o,s,a,l=n(15750);function u(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function c(t){var e=u(t).Element;return t instanceof e||t instanceof Element}function d(t){var e=u(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function h(t){if("undefined"==typeof ShadowRoot)return!1;var e=u(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var f=Math.max,p=Math.min,m=Math.round;function v(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function g(){return!/^((?!chrome|android).)*safari/i.test(v())}function y(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var r=t.getBoundingClientRect(),i=1,o=1;e&&d(t)&&(i=t.offsetWidth>0&&m(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&m(r.height)/t.offsetHeight||1);var s=(c(t)?u(t):window).visualViewport,a=!g()&&n,l=(r.left+(a&&s?s.offsetLeft:0))/i,h=(r.top+(a&&s?s.offsetTop:0))/o,f=r.width/i,p=r.height/o;return{width:f,height:p,top:h,right:l+f,bottom:h+p,left:l,x:l,y:h}}function x(t){var e=u(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function b(t){return t?(t.nodeName||"").toLowerCase():null}function w(t){return((c(t)?t.ownerDocument:t.document)||window.document).documentElement}function S(t){return y(w(t)).left+x(t).scrollLeft}function P(t){return u(t).getComputedStyle(t)}function C(t){var e=P(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function E(t){var e=y(t),n=t.offsetWidth,r=t.offsetHeight;return 1>=Math.abs(e.width-n)&&(n=e.width),1>=Math.abs(e.height-r)&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function T(t){return"html"===b(t)?t:t.assignedSlot||t.parentNode||(h(t)?t.host:null)||w(t)}function k(t,e){void 0===e&&(e=[]);var n,r=function t(e){return["html","body","#document"].indexOf(b(e))>=0?e.ownerDocument.body:d(e)&&C(e)?e:t(T(e))}(t),i=r===(null==(n=t.ownerDocument)?void 0:n.body),o=u(r),s=i?[o].concat(o.visualViewport||[],C(r)?r:[]):r,a=e.concat(s);return i?a:a.concat(k(T(s)))}function A(t){return d(t)&&"fixed"!==P(t).position?t.offsetParent:null}function M(t){for(var e=u(t),n=A(t);n&&["table","td","th"].indexOf(b(n))>=0&&"static"===P(n).position;)n=A(n);return n&&("html"===b(n)||"body"===b(n)&&"static"===P(n).position)?e:n||function(t){var e=/firefox/i.test(v());if(/Trident/i.test(v())&&d(t)&&"fixed"===P(t).position)return null;var n=T(t);for(h(n)&&(n=n.host);d(n)&&0>["html","body"].indexOf(b(n));){var r=P(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||e&&"filter"===r.willChange||e&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(t)||e}var R="bottom",j="right",O="left",D="auto",F=["top",R,j,O],V="start",L="viewport",N="popper",I=F.reduce(function(t,e){return t.concat([e+"-"+V,e+"-end"])},[]),B=[].concat(F,[D]).reduce(function(t,e){return t.concat([e,e+"-"+V,e+"-end"])},[]),_=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],W={placement:"bottom",modifiers:[],strategy:"absolute"};function U(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}var z={passive:!0};function H(t){return t.split("-")[0]}function $(t){return t.split("-")[1]}function Z(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function q(t){var e,n=t.reference,r=t.element,i=t.placement,o=i?H(i):null,s=i?$(i):null,a=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case"top":e={x:a,y:n.y-r.height};break;case R:e={x:a,y:n.y+n.height};break;case j:e={x:n.x+n.width,y:l};break;case O:e={x:n.x-r.width,y:l};break;default:e={x:n.x,y:n.y}}var u=o?Z(o):null;if(null!=u){var c="y"===u?"height":"width";switch(s){case V:e[u]=e[u]-(n[c]/2-r[c]/2);break;case"end":e[u]=e[u]+(n[c]/2-r[c]/2)}}return e}var Y={top:"auto",right:"auto",bottom:"auto",left:"auto"};function K(t){var e,n,r,i,o,s,a,l=t.popper,c=t.popperRect,d=t.placement,h=t.variation,f=t.offsets,p=t.position,v=t.gpuAcceleration,g=t.adaptive,y=t.roundOffsets,x=t.isFixed,b=f.x,S=void 0===b?0:b,C=f.y,E=void 0===C?0:C,T="function"==typeof y?y({x:S,y:E}):{x:S,y:E};S=T.x,E=T.y;var k=f.hasOwnProperty("x"),A=f.hasOwnProperty("y"),D=O,F="top",V=window;if(g){var L=M(l),N="clientHeight",I="clientWidth";L===u(l)&&"static"!==P(L=w(l)).position&&"absolute"===p&&(N="scrollHeight",I="scrollWidth"),("top"===d||(d===O||d===j)&&"end"===h)&&(F=R,E-=(x&&L===V&&V.visualViewport?V.visualViewport.height:L[N])-c.height,E*=v?1:-1),(d===O||("top"===d||d===R)&&"end"===h)&&(D=j,S-=(x&&L===V&&V.visualViewport?V.visualViewport.width:L[I])-c.width,S*=v?1:-1)}var B=Object.assign({position:p},g&&Y),_=!0===y?(e={x:S,y:E},n=u(l),r=e.x,i=e.y,{x:m(r*(o=n.devicePixelRatio||1))/o||0,y:m(i*o)/o||0}):{x:S,y:E};return(S=_.x,E=_.y,v)?Object.assign({},B,((a={})[F]=A?"0":"",a[D]=k?"0":"",a.transform=1>=(V.devicePixelRatio||1)?"translate("+S+"px, "+E+"px)":"translate3d("+S+"px, "+E+"px, 0)",a)):Object.assign({},B,((s={})[F]=A?E+"px":"",s[D]=k?S+"px":"",s.transform="",s))}var G={left:"right",right:"left",bottom:"top",top:"bottom"};function X(t){return t.replace(/left|right|bottom|top/g,function(t){return G[t]})}var Q={start:"end",end:"start"};function J(t){return t.replace(/start|end/g,function(t){return Q[t]})}function tt(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&h(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function te(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function tn(t,e,n){var r,i,o,s,a,l,d,h,p,m;return e===L?te(function(t,e){var n=u(t),r=w(t),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var c=g();(c||!c&&"fixed"===e)&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+S(t),y:l}}(t,n)):c(e)?((r=y(e,!1,"fixed"===n)).top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r):te((i=w(t),s=w(i),a=x(i),l=null==(o=i.ownerDocument)?void 0:o.body,d=f(s.scrollWidth,s.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),h=f(s.scrollHeight,s.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),p=-a.scrollLeft+S(i),m=-a.scrollTop,"rtl"===P(l||s).direction&&(p+=f(s.clientWidth,l?l.clientWidth:0)-d),{width:d,height:h,x:p,y:m}))}function tr(){return{top:0,right:0,bottom:0,left:0}}function ti(t){return Object.assign({},tr(),t)}function to(t,e){return e.reduce(function(e,n){return e[n]=t,e},{})}function ts(t,e){void 0===e&&(e={});var n,r,i,o,s,a,l,u,h=e,m=h.placement,v=void 0===m?t.placement:m,g=h.strategy,x=void 0===g?t.strategy:g,S=h.boundary,C=h.rootBoundary,E=h.elementContext,A=void 0===E?N:E,O=h.altBoundary,D=h.padding,V=void 0===D?0:D,I=ti("number"!=typeof V?V:to(V,F)),B=t.rects.popper,_=t.elements[void 0!==O&&O?A===N?"reference":N:A],W=(n=c(_)?_:_.contextElement||w(t.elements.popper),r=void 0===S?"clippingParents":S,i=void 0===C?L:C,l=(a=[].concat("clippingParents"===r?(o=k(T(n)),c(s=["absolute","fixed"].indexOf(P(n).position)>=0&&d(n)?M(n):n)?o.filter(function(t){return c(t)&&tt(t,s)&&"body"!==b(t)}):[]):[].concat(r),[i]))[0],(u=a.reduce(function(t,e){var r=tn(n,e,x);return t.top=f(r.top,t.top),t.right=p(r.right,t.right),t.bottom=p(r.bottom,t.bottom),t.left=f(r.left,t.left),t},tn(n,l,x))).width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u),U=y(t.elements.reference),z=q({reference:U,element:B,strategy:"absolute",placement:v}),H=te(Object.assign({},B,z)),$=A===N?H:U,Z={top:W.top-$.top+I.top,bottom:$.bottom-W.bottom+I.bottom,left:W.left-$.left+I.left,right:$.right-W.right+I.right},Y=t.modifiersData.offset;if(A===N&&Y){var K=Y[v];Object.keys(Z).forEach(function(t){var e=[j,R].indexOf(t)>=0?1:-1,n=["top",R].indexOf(t)>=0?"y":"x";Z[t]+=K[n]*e})}return Z}function ta(t,e,n){return f(t,p(e,n))}function tl(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function tu(t){return["top",j,R,O].some(function(e){return t[e]>=0})}var tc=(o=void 0===(i=(r={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=void 0===i||i,s=r.resize,a=void 0===s||s,l=u(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach(function(t){t.addEventListener("scroll",n.update,z)}),a&&l.addEventListener("resize",n.update,z),function(){o&&c.forEach(function(t){t.removeEventListener("scroll",n.update,z)}),a&&l.removeEventListener("resize",n.update,z)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=q({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=n.adaptive,o=n.roundOffsets,s=void 0===o||o,a={placement:H(e.placement),variation:$(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,K(Object.assign({},a,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:void 0===i||i,roundOffsets:s})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,K(Object.assign({},a,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var n=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];d(i)&&b(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(t){var e=r[t];!1===e?i.removeAttribute(t):i.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(t){var r=e.elements[t],i=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce(function(t,e){return t[e]="",t},{});d(r)&&b(r)&&(Object.assign(r.style,o),Object.keys(i).forEach(function(t){r.removeAttribute(t)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,r=t.name,i=n.offset,o=void 0===i?[0,0]:i,s=B.reduce(function(t,n){var r,i,s,a,l,u;return t[n]=(r=e.rects,s=[O,"top"].indexOf(i=H(n))>=0?-1:1,l=(a="function"==typeof o?o(Object.assign({},r,{placement:n})):o)[0],u=a[1],l=l||0,u=(u||0)*s,[O,j].indexOf(i)>=0?{x:u,y:l}:{x:l,y:u}),t},{}),a=s[e.placement],l=a.x,u=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,p=void 0===f||f,m=n.allowedAutoPlacements,v=e.options.placement,g=H(v)===v,y=l||(g||!p?[X(v)]:function(t){if(H(t)===D)return[];var e=X(t);return[J(t),e,J(e)]}(v)),x=[v].concat(y).reduce(function(t,n){var r,i,o,s,a,l,h,f,v,g,y,x;return t.concat(H(n)===D?(i=(r={placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:m}).placement,o=r.boundary,s=r.rootBoundary,a=r.padding,l=r.flipVariations,f=void 0===(h=r.allowedAutoPlacements)?B:h,0===(y=(g=(v=$(i))?l?I:I.filter(function(t){return $(t)===v}):F).filter(function(t){return f.indexOf(t)>=0})).length&&(y=g),Object.keys(x=y.reduce(function(t,n){return t[n]=ts(e,{placement:n,boundary:o,rootBoundary:s,padding:a})[H(n)],t},{})).sort(function(t,e){return x[t]-x[e]})):n)},[]),b=e.rects.reference,w=e.rects.popper,S=new Map,P=!0,C=x[0],E=0;E<x.length;E++){var T=x[E],k=H(T),A=$(T)===V,M=["top",R].indexOf(k)>=0,L=M?"width":"height",N=ts(e,{placement:T,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),_=M?A?j:O:A?R:"top";b[L]>w[L]&&(_=X(_));var W=X(_),U=[];if(o&&U.push(N[k]<=0),a&&U.push(N[_]<=0,N[W]<=0),U.every(function(t){return t})){C=T,P=!1;break}S.set(T,U)}if(P)for(var z=p?3:1,Z=function(t){var e=x.find(function(e){var n=S.get(e);if(n)return n.slice(0,t).every(function(t){return t})});if(e)return C=e,"break"},q=z;q>0&&"break"!==Z(q);q--);e.placement!==C&&(e.modifiersData[r]._skip=!0,e.placement=C,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=n.altAxis,s=n.boundary,a=n.rootBoundary,l=n.altBoundary,u=n.padding,c=n.tether,d=void 0===c||c,h=n.tetherOffset,m=void 0===h?0:h,v=ts(e,{boundary:s,rootBoundary:a,padding:u,altBoundary:l}),g=H(e.placement),y=$(e.placement),x=!y,b=Z(g),w="x"===b?"y":"x",S=e.modifiersData.popperOffsets,P=e.rects.reference,C=e.rects.popper,T="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,k="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),A=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,D={x:0,y:0};if(S){if(void 0===i||i){var F,L="y"===b?"top":O,N="y"===b?R:j,I="y"===b?"height":"width",B=S[b],_=B+v[L],W=B-v[N],U=d?-C[I]/2:0,z=y===V?P[I]:C[I],q=y===V?-C[I]:-P[I],Y=e.elements.arrow,K=d&&Y?E(Y):{width:0,height:0},G=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:tr(),X=G[L],Q=G[N],J=ta(0,P[I],K[I]),tt=x?P[I]/2-U-J-X-k.mainAxis:z-J-X-k.mainAxis,te=x?-P[I]/2+U+J+Q+k.mainAxis:q+J+Q+k.mainAxis,tn=e.elements.arrow&&M(e.elements.arrow),ti=tn?"y"===b?tn.clientTop||0:tn.clientLeft||0:0,to=null!=(F=null==A?void 0:A[b])?F:0,tl=ta(d?p(_,B+tt-to-ti):_,B,d?f(W,B+te-to):W);S[b]=tl,D[b]=tl-B}if(void 0!==o&&o){var tu,tc,td="x"===b?"top":O,th="x"===b?R:j,tf=S[w],tp="y"===w?"height":"width",tm=tf+v[td],tv=tf-v[th],tg=-1!==["top",O].indexOf(g),ty=null!=(tc=null==A?void 0:A[w])?tc:0,tx=tg?tm:tf-P[tp]-C[tp]-ty+k.altAxis,tb=tg?tf+P[tp]+C[tp]-ty-k.altAxis:tv,tw=d&&tg?(tu=ta(tx,tf,tb))>tb?tb:tu:ta(d?tx:tm,tf,d?tb:tv);S[w]=tw,D[w]=tw-tf}e.modifiersData[r]=D}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n,r=t.state,i=t.name,o=t.options,s=r.elements.arrow,a=r.modifiersData.popperOffsets,l=H(r.placement),u=Z(l),c=[O,j].indexOf(l)>=0?"height":"width";if(s&&a){var d=ti("number"!=typeof(e="function"==typeof(e=o.padding)?e(Object.assign({},r.rects,{placement:r.placement})):e)?e:to(e,F)),h=E(s),f="y"===u?"top":O,p="y"===u?R:j,m=r.rects.reference[c]+r.rects.reference[u]-a[u]-r.rects.popper[c],v=a[u]-r.rects.reference[u],g=M(s),y=g?"y"===u?g.clientHeight||0:g.clientWidth||0:0,x=d[f],b=y-h[c]-d[p],w=y/2-h[c]/2+(m/2-v/2),S=ta(x,w,b);r.modifiersData[i]=((n={})[u]=S,n.centerOffset=S-w,n)}},effect:function(t){var e=t.state,n=t.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=e.elements.popper.querySelector(r)))&&tt(e.elements.popper,r)&&(e.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,s=ts(e,{elementContext:"reference"}),a=ts(e,{altBoundary:!0}),l=tl(s,r),u=tl(a,i,o),c=tu(l),d=tu(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}).defaultModifiers)?[]:i,a=void 0===(s=r.defaultOptions)?W:s,function(t,e,n){void 0===n&&(n=a);var r,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},W,a),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],h=!1,f={state:s,setOptions:function(n){var r,i,u,d,h,m="function"==typeof n?n(s.options):n;p(),s.options=Object.assign({},a,s.options,m),s.scrollParents={reference:c(t)?k(t):t.contextElement?k(t.contextElement):[],popper:k(e)};var v=(i=Object.keys(r=[].concat(o,s.options.modifiers).reduce(function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t},{})).map(function(t){return r[t]}),u=new Map,d=new Set,h=[],i.forEach(function(t){u.set(t.name,t)}),i.forEach(function(t){d.has(t.name)||function t(e){d.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!d.has(e)){var n=u.get(e);n&&t(n)}}),h.push(e)}(t)}),_.reduce(function(t,e){return t.concat(h.filter(function(t){return t.phase===e}))},[]));return s.orderedModifiers=v.filter(function(t){return t.enabled}),s.orderedModifiers.forEach(function(t){var e=t.name,n=t.options,r=t.effect;if("function"==typeof r){var i=r({state:s,name:e,instance:f,options:void 0===n?{}:n});l.push(i||function(){})}}),f.update()},forceUpdate:function(){if(!h){var t,e,n,r,i,o,a,l,c,p,v,g,P=s.elements,T=P.reference,k=P.popper;if(U(T,k)){s.rects={reference:(e=M(k),n="fixed"===s.options.strategy,r=d(e),l=d(e)&&(o=m((i=e.getBoundingClientRect()).width)/e.offsetWidth||1,a=m(i.height)/e.offsetHeight||1,1!==o||1!==a),c=w(e),p=y(T,l,n),v={scrollLeft:0,scrollTop:0},g={x:0,y:0},(r||!r&&!n)&&(("body"!==b(e)||C(c))&&(v=(t=e)!==u(t)&&d(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:x(t)),d(e)?(g=y(e,!0),g.x+=e.clientLeft,g.y+=e.clientTop):c&&(g.x=S(c))),{x:p.left+v.scrollLeft-g.x,y:p.top+v.scrollTop-g.y,width:p.width,height:p.height}),popper:E(k)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(t){return s.modifiersData[t.name]=Object.assign({},t.data)});for(var A=0;A<s.orderedModifiers.length;A++){if(!0===s.reset){s.reset=!1,A=-1;continue}var R=s.orderedModifiers[A],j=R.fn,O=R.options,D=void 0===O?{}:O,F=R.name;"function"==typeof j&&(s=j({state:s,options:D,name:F,instance:f})||s)}}}},update:(r=function(){return new Promise(function(t){f.forceUpdate(),t(s)})},function(){return i||(i=new Promise(function(t){Promise.resolve().then(function(){i=void 0,t(r())})})),i}),destroy:function(){p(),h=!0}};if(!U(t,e))return f;function p(){l.forEach(function(t){return t()}),l=[]}return f.setOptions(n).then(function(t){!h&&n.onFirstUpdate&&n.onFirstUpdate(t)}),f}),td=n(40690),th=n(59762);let tf={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:t=>{let{state:e}=t;e.styles.popper.width="".concat(e.rects.reference.width,"px")},effect:t=>{let{state:e}=t;return()=>{let t=e.elements.reference;e.elements.popper.style.width="".concat(t.offsetWidth,"px")}}},tp={name:"transformOrigin",enabled:!0,phase:"write",fn:t=>{let{state:e}=t;tm(e)},effect:t=>{let{state:e}=t;return()=>{tm(e)}}},tm=t=>{t.elements.popper.style.setProperty(th.cssVars.transformOrigin.var,(0,th.mv)(t.placement))},tv={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:t=>{let{state:e}=t;tg(e)}},tg=t=>{var e;if(!t.placement)return;let n=ty(t.placement);if((null===(e=t.elements)||void 0===e?void 0:e.arrow)&&n){Object.assign(t.elements.arrow.style,{[n.property]:n.value,width:th.cssVars.arrowSize.varRef,height:th.cssVars.arrowSize.varRef,zIndex:-1});let e={[th.cssVars.arrowSizeHalf.var]:"calc(".concat(th.cssVars.arrowSize.varRef," / 2 - 1px)"),[th.cssVars.arrowOffset.var]:"calc(".concat(th.cssVars.arrowSizeHalf.varRef," * -1)")};for(let n in e)t.elements.arrow.style.setProperty(n,e[n])}},ty=t=>t.startsWith("top")?{property:"bottom",value:th.cssVars.arrowOffset.varRef}:t.startsWith("bottom")?{property:"top",value:th.cssVars.arrowOffset.varRef}:t.startsWith("left")?{property:"right",value:th.cssVars.arrowOffset.varRef}:t.startsWith("right")?{property:"left",value:th.cssVars.arrowOffset.varRef}:void 0,tx={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:t=>{let{state:e}=t;tb(e)},effect:t=>{let{state:e}=t;return()=>{tb(e)}}},tb=t=>{if(!t.elements.arrow)return;let e=t.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!e)return;let n=(0,th.Ke)(t.placement);n&&e.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(e.style,{transform:"rotate(45deg)",background:th.cssVars.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},tw={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},tS={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function tP(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:e=!0,modifiers:n,placement:r="bottom",strategy:i="absolute",arrowPadding:o=8,eventListeners:s=!0,offset:a,gutter:u=8,flip:c=!0,boundary:d="clippingParents",preventOverflow:h=!0,matchWidth:f,direction:p="ltr"}=t,m=(0,td.useRef)(null),v=(0,td.useRef)(null),g=(0,td.useRef)(null),y=function(t){var e,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ltr",i=(null===(e=tw[t])||void 0===e?void 0:e[r])||t;return"ltr"===r?i:null!==(n=tS[t])&&void 0!==n?n:i}(r,p),x=(0,td.useRef)(()=>{}),b=(0,td.useCallback)(()=>{var t;e&&m.current&&v.current&&(null===(t=x.current)||void 0===t||t.call(x),g.current=tc(m.current,v.current,{placement:y,modifiers:[tx,tv,tp,{...tf,enabled:!!f},{name:"eventListeners",...(0,th.$B)(s)},{name:"arrow",options:{padding:o}},{name:"offset",options:{offset:null!=a?a:[0,u]}},{name:"flip",enabled:!!c,options:{padding:8}},{name:"preventOverflow",enabled:!!h,options:{boundary:d}},...null!=n?n:[]],strategy:i}),g.current.forceUpdate(),x.current=g.current.destroy)},[y,e,n,f,s,o,a,u,c,h,d,i]);(0,td.useEffect)(()=>()=>{if(!m.current&&!v.current){var t;null===(t=g.current)||void 0===t||t.destroy(),g.current=null}},[]);let w=(0,td.useCallback)(t=>{m.current=t,b()},[b]),S=(0,td.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...t,ref:(0,l.mergeRefs)(w,e)}},[w]),P=(0,td.useCallback)(t=>{v.current=t,b()},[b]),C=(0,td.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...t,ref:(0,l.mergeRefs)(P,e),style:{...t.style,position:i,minWidth:f?void 0:"max-content",inset:"0 auto auto 0"}}},[i,P,f]),E=(0,td.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,{size:n,shadowColor:r,bg:i,style:o,...s}=t;return{...s,ref:e,"data-popper-arrow":"",style:function(t){let{size:e,shadowColor:n,bg:r,style:i}=t,o={...i,position:"absolute"};return e&&(o["--popper-arrow-size"]=e),n&&(o["--popper-arrow-shadow-color"]=n),r&&(o["--popper-arrow-bg"]=r),o}(t)}},[]),T=(0,td.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...t,ref:e,"data-popper-arrow-inner":""}},[]);return{update(){var t;null===(t=g.current)||void 0===t||t.update()},forceUpdate(){var t;null===(t=g.current)||void 0===t||t.forceUpdate()},transformOrigin:th.cssVars.transformOrigin.varRef,referenceRef:w,popperRef:P,getPopperProps:C,getArrowProps:E,getArrowInnerProps:T,getReferenceProps:S}}},59762:function(t,e,n){n.d(e,{$B:function(){return u},Ke:function(){return o},cssVars:function(){return i},mv:function(){return a}});let r=(t,e)=>({var:t,varRef:e?"var(".concat(t,", ").concat(e,")"):"var(".concat(t,")")}),i={arrowShadowColor:r("--popper-arrow-shadow-color"),arrowSize:r("--popper-arrow-size","8px"),arrowSizeHalf:r("--popper-arrow-size-half"),arrowBg:r("--popper-arrow-bg"),transformOrigin:r("--popper-transform-origin"),arrowOffset:r("--popper-arrow-offset")};function o(t){return t.includes("top")?"1px 1px 0px 0 var(--popper-arrow-shadow-color)":t.includes("bottom")?"-1px -1px 0px 0 var(--popper-arrow-shadow-color)":t.includes("right")?"-1px 1px 0px 0 var(--popper-arrow-shadow-color)":t.includes("left")?"1px -1px 0px 0 var(--popper-arrow-shadow-color)":void 0}let s={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},a=t=>s[t],l={scroll:!0,resize:!0};function u(t){return"object"==typeof t?{enabled:!0,options:{...l,...t}}:{enabled:t,options:l}}},60407:function(t,e,n){n.d(e,{PortalManager:function(){return s},usePortalManager:function(){return o}});var r=n(12661);let[i,o]=(0,n(87957).k)({strict:!1,name:"PortalManagerContext"});function s(t){let{children:e,zIndex:n}=t;return(0,r.jsx)(i,{value:{zIndex:n},children:e})}s.displayName="PortalManager"},12235:function(t,e,n){n.d(e,{Portal:function(){return m}});var r=n(12661),i=n(75543),o=n(87957),s=n(40690),a=n(99749),l=n(60407);let[u,c]=(0,o.k)({strict:!1,name:"PortalContext"}),d="chakra-portal",h=t=>(0,r.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:t.zIndex,top:0,left:0,right:0},children:t.children}),f=t=>{let{appendToParentPortal:e,children:n}=t,[o,f]=(0,s.useState)(null),p=(0,s.useRef)(null),[,m]=(0,s.useState)({});(0,s.useEffect)(()=>m({}),[]);let v=c(),g=(0,l.usePortalManager)();(0,i.useSafeLayoutEffect)(()=>{if(!o)return;let t=o.ownerDocument,n=e&&null!=v?v:t.body;if(!n)return;p.current=t.createElement("div"),p.current.className=d,n.appendChild(p.current),m({});let r=p.current;return()=>{n.contains(r)&&n.removeChild(r)}},[o]);let y=(null==g?void 0:g.zIndex)?(0,r.jsx)(h,{zIndex:null==g?void 0:g.zIndex,children:n}):n;return p.current?(0,a.createPortal)((0,r.jsx)(u,{value:p.current,children:y}),p.current):(0,r.jsx)("span",{ref:t=>{t&&f(t)}})},p=t=>{let{children:e,containerRef:n,appendToParentPortal:o}=t,l=n.current,c=null!=l?l:"undefined"!=typeof window?document.body:void 0,h=(0,s.useMemo)(()=>{let t=null==l?void 0:l.ownerDocument.createElement("div");return t&&(t.className=d),t},[l]),[,f]=(0,s.useState)({});return((0,i.useSafeLayoutEffect)(()=>f({}),[]),(0,i.useSafeLayoutEffect)(()=>{if(h&&c)return c.appendChild(h),()=>{c.removeChild(h)}},[h,c]),c&&h)?(0,a.createPortal)((0,r.jsx)(u,{value:o?h:null,children:e}),h):null};function m(t){let{containerRef:e,...n}={appendToParentPortal:!0,...t};return e?(0,r.jsx)(p,{containerRef:e,...n}):(0,r.jsx)(f,{...n})}m.className=d,m.selector=".chakra-portal",m.displayName="Portal"},38049:function(t,e,n){n.d(e,{Textarea:function(){return h}});var r=n(12661),i=n(19496),o=n(54117),s=n(48141),a=n(7042),l=n(90655),u=n(47381),c=n(38655);let d=["h","minH","height","minHeight"],h=(0,l.forwardRef)((t,e)=>{let n=(0,u.useStyleConfig)("Textarea",t),{className:l,rows:h,...f}=(0,i.L)(t),p=(0,a.useFormControl)(f),m=h?(0,o.C)(n,d):n;return(0,r.jsx)(c.chakra.textarea,{ref:e,rows:h,...p,className:(0,s.cx)("chakra-textarea",l),__css:m})});h.displayName="Textarea"},76511:function(t,e,n){n.d(e,{createToastFn:function(){return a}});var r=n(60369),i=n(2206),o=n(30512),s=n(82266);function a(t,e){let n=n=>{var r;return{...e,...n,position:(0,o.getToastPlacement)(null!==(r=null==n?void 0:n.position)&&void 0!==r?r:null==e?void 0:e.position,t)}},a=t=>{let e=n(t),r=(0,i.createRenderToast)(e);return s.toastStore.notify(r,e)};return a.update=(t,e)=>{s.toastStore.update(t,n(e))},a.promise=(t,e)=>{let n=a({...e.loading,status:"loading",duration:null});t.then(t=>a.update(n,{status:"success",duration:5e3,...(0,r.P)(e.success,t)})).catch(t=>a.update(n,{status:"error",duration:5e3,...(0,r.P)(e.error,t)}))},a.closeAll=s.toastStore.closeAll,a.close=s.toastStore.close,a.isActive=s.toastStore.isActive,a}},2206:function(t,e,n){n.d(e,{Toast:function(){return c},createRenderToast:function(){return d}});var r=n(12661),i=n(32145),o=n(43544),s=n(69335),a=n(56256),l=n(10015),u=n(38655);let c=t=>{let{status:e,variant:n="solid",id:c,title:d,isClosable:h,onClose:f,description:p,colorScheme:m,icon:v}=t,g=c?{root:"toast-".concat(c),title:"toast-".concat(c,"-title"),description:"toast-".concat(c,"-description")}:void 0;return(0,r.jsxs)(i.Alert,{addRole:!1,status:e,variant:n,id:null==g?void 0:g.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:m,children:[(0,r.jsx)(o.AlertIcon,{children:v}),(0,r.jsxs)(u.chakra.div,{flex:"1",maxWidth:"100%",children:[d&&(0,r.jsx)(s.AlertTitle,{id:null==g?void 0:g.title,children:d}),p&&(0,r.jsx)(a.AlertDescription,{id:null==g?void 0:g.description,display:"block",children:p})]}),h&&(0,r.jsx)(l.CloseButton,{size:"sm",onClick:f,position:"absolute",insetEnd:1,top:1})]})};function d(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{render:e,toastComponent:n=c}=t;return i=>"function"==typeof e?e({...i,...t}):(0,r.jsx)(n,{...i,...t})}},30512:function(t,e,n){n.d(e,{getToastPlacement:function(){return r}});function r(t,e){var n;let r=null!=t?t:"bottom",i={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[r];return null!==(n=null==i?void 0:i[e])&&void 0!==n?n:r}},65928:function(t,e,n){n.d(e,{ToastOptionProvider:function(){return y},ToastProvider:function(){return b},O:function(){return x}});var r=n(12661),i=n(87957),o=n(53900),s=n(40690),a=n(62258),l=n(81533),u=n(60369),c=n(43193),d=n(55470),h=n(65756),f=n(38655);let p={initial:t=>{let{position:e}=t,n=["top","bottom"].includes(e)?"y":"x",r=["top-right","bottom-right"].includes(e)?1:-1;return"bottom"===e&&(r=1),{opacity:0,[n]:24*r}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},m=(0,s.memo)(t=>{let{id:e,message:n,onCloseComplete:i,onRequestRemove:o,requestClose:m=!1,position:v="bottom",duration:g=5e3,containerStyle:y,motionVariants:x=p,toastSpacing:b="0.5rem"}=t,[w,S]=(0,s.useState)(g),P=(0,c.hO)();(0,a.useUpdateEffect)(()=>{P||null==i||i()},[P]),(0,a.useUpdateEffect)(()=>{S(g)},[g]);let C=()=>{P&&o()};(0,s.useEffect)(()=>{P&&m&&o()},[P,m,o]),(0,l.useTimeout)(C,w);let E=(0,s.useMemo)(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:b,...y}),[y,b]),T=(0,s.useMemo)(()=>(0,h.sv)(v),[v]);return(0,r.jsx)(d.E.div,{layout:!0,className:"chakra-toast",variants:x,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>S(null),onHoverEnd:()=>S(g),custom:{position:v},style:T,children:(0,r.jsx)(f.chakra.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:E,children:(0,u.P)(n,{id:e,onClose:C})})})});m.displayName="ToastComponent";var v=n(82266),g=n(12235);let[y,x]=(0,i.k)({name:"ToastOptionsContext",strict:!1}),b=t=>{let e=(0,s.useSyncExternalStore)(v.toastStore.subscribe,v.toastStore.getState,v.toastStore.getState),{motionVariants:n,component:i=m,portalProps:a,animatePresenceProps:l}=t,u=Object.keys(e).map(t=>{let s=e[t];return(0,r.jsx)("div",{role:"region","aria-live":"polite","aria-label":"Notifications-".concat(t),id:"chakra-toast-manager-".concat(t),style:(0,h.IW)(t),children:(0,r.jsx)(o.M,{...l,initial:!1,children:s.map(t=>(0,r.jsx)(i,{motionVariants:n,...t},t.id))})},t)});return(0,r.jsx)(g.Portal,{...a,children:u})}},82266:function(t,e,n){n.d(e,{toastStore:function(){return o}});var r=n(2206),i=n(65756);let o=function(t){let e=t,n=new Set,a=t=>{e=t(e),n.forEach(t=>t())};return{getState:()=>e,subscribe:e=>(n.add(e),()=>{a(()=>t),n.delete(e)}),removeToast:(t,e)=>{a(n=>({...n,[e]:n[e].filter(e=>e.id!=t)}))},notify:(t,e)=>{let n=function(t){var e,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s+=1;let i=null!==(e=r.id)&&void 0!==e?e:s,a=null!==(n=r.position)&&void 0!==n?n:"bottom";return{id:i,message:t,position:a,duration:r.duration,onCloseComplete:r.onCloseComplete,onRequestRemove:()=>o.removeToast(String(i),a),status:r.status,requestClose:!1,containerStyle:r.containerStyle}}(t,e),{position:r,id:i}=n;return a(t=>{var e,i;let o=r.includes("top")?[n,...null!==(e=t[r])&&void 0!==e?e:[]]:[...null!==(i=t[r])&&void 0!==i?i:[],n];return{...t,[r]:o}}),i},update:(t,e)=>{t&&a(n=>{let o={...n},{position:s,index:a}=(0,i.Dn)(o,t);return s&&-1!==a&&(o[s][a]={...o[s][a],...e,message:(0,r.createRenderToast)(e)}),o})},closeAll:function(){let{positions:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a(e=>(null!=t?t:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((t,n)=>(t[n]=e[n].map(t=>({...t,requestClose:!0})),t),{...e}))},close:t=>{a(e=>{let n=(0,i.ym)(e,t);return n?{...e,[n]:e[n].map(e=>e.id==t?{...e,requestClose:!0}:e)}:e})},isActive:t=>!!(0,i.Dn)(o.getState(),t).position}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]}),s=0},65756:function(t,e,n){n.d(e,{Dn:function(){return i},IW:function(){return a},sv:function(){return s},ym:function(){return o}});let r=(t,e)=>t.find(t=>t.id===e);function i(t,e){let n=o(t,e),r=n?t[n].findIndex(t=>t.id===e):-1;return{position:n,index:r}}function o(t,e){for(let[n,i]of Object.entries(t))if(r(i,e))return n}function s(t){let e=t.includes("right"),n=t.includes("left"),r="center";return e&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function a(t){let e=t.includes("top")?"env(safe-area-inset-top, 0px)":void 0,n=t.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,r=t.includes("left")?void 0:"env(safe-area-inset-right, 0px)",i=t.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:"top"===t||"bottom"===t?"0 auto":void 0,top:e,bottom:n,right:r,left:i}}},1797:function(t,e,n){n.d(e,{useToast:function(){return a}});var r=n(40690),i=n(76511),o=n(65928),s=n(88131);function a(t){let{theme:e}=(0,s.useChakra)(),n=(0,o.O)();return(0,r.useMemo)(()=>(0,i.createToastFn)(e.direction,{...n,...t}),[t,e.direction,n])}},47181:function(t,e,n){n.d(e,{Tooltip:function(){return x}});var r=n(12661),i=n(19496),o=n(54117),s=n(94170),a=n(55470),l=n(53900),u=n(40690);let c={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}};var d=n(17447),h=n(78446),f=n(59762),p=n(12235),m=n(38655),v=n(90655),g=n(47381);let y=(0,m.chakra)(a.E.div),x=(0,v.forwardRef)((t,e)=>{var n,a;let v;let x=(0,g.useStyleConfig)("Tooltip",t),b=(0,i.L)(t),w=(0,h.useTheme)(),{children:S,label:P,shouldWrapChildren:C,"aria-label":E,hasArrow:T,bg:k,portalProps:A,background:M,backgroundColor:R,bgColor:j,motionProps:O,animatePresenceProps:D,...F}=b,V=null!==(a=null!==(n=null!=M?M:R)&&void 0!==n?n:k)&&void 0!==a?a:j;if(V){x.bg=V;let t=w.__cssMap?.[`colors.${V}`]?.varRef??V;x[f.cssVars.arrowBg.var]=t}let L=(0,d.useTooltip)({...F,direction:w.direction});if("string"==typeof S||C)v=(0,r.jsx)(m.chakra.span,{display:"inline-block",tabIndex:0,...L.getTriggerProps(),children:S});else{let t=u.Children.only(S);v=(0,u.cloneElement)(t,L.getTriggerProps(t.props,t.ref))}let N=!!E,I=L.getTooltipProps({},e),B=N?(0,o.C)(I,["role","id"]):I,_=(0,s.e)(I,["role","id"]);return P?(0,r.jsxs)(r.Fragment,{children:[v,(0,r.jsx)(l.M,{...D,children:L.isOpen&&(0,r.jsx)(p.Portal,{...A,children:(0,r.jsx)(m.chakra.div,{...L.getTooltipPositionerProps(),__css:{zIndex:x.zIndex,pointerEvents:"none"},children:(0,r.jsxs)(y,{variants:c,initial:"exit",animate:"enter",exit:"exit",...O,...B,__css:x,children:[P,N&&(0,r.jsx)(m.chakra.span,{srOnly:!0,..._,children:E}),T&&(0,r.jsx)(m.chakra.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:(0,r.jsx)(m.chakra.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:x.bg}})})]})})})})]}):(0,r.jsx)(r.Fragment,{children:S})});x.displayName="Tooltip"},17447:function(t,e,n){n.d(e,{useTooltip:function(){return f}});var r=n(75742),i=n(9488),o=n(15750),s=n(49146),a=n(89385),l=n(40690),u=n(63896),c=n(59762);let d=t=>{var e;return(null===(e=t.current)||void 0===e?void 0:e.ownerDocument)||document},h=t=>{var e,n;return(null===(n=t.current)||void 0===n?void 0:null===(e=n.ownerDocument)||void 0===e?void 0:e.defaultView)||window};function f(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{openDelay:e=0,closeDelay:n=0,closeOnClick:f=!0,closeOnMouseDown:m,closeOnScroll:v,closeOnPointerDown:g=m,closeOnEsc:y=!0,onOpen:x,onClose:b,placement:w,id:S,isOpen:P,defaultIsOpen:C,arrowSize:E=10,arrowShadowColor:T,arrowPadding:k,modifiers:A,isDisabled:M,gutter:R,offset:j,direction:O,...D}=t,{isOpen:F,onOpen:V,onClose:L}=(0,r.useDisclosure)({isOpen:P,defaultIsOpen:C,onOpen:x,onClose:b}),{referenceRef:N,getPopperProps:I,getArrowInnerProps:B,getArrowProps:_}=(0,u.usePopper)({enabled:F,placement:w,arrowPadding:k,modifiers:A,gutter:R,offset:j,direction:O}),W=(0,l.useId)(),U="tooltip-".concat(null!=S?S:W),z=(0,l.useRef)(null),H=(0,l.useRef)(),$=(0,l.useCallback)(()=>{H.current&&(clearTimeout(H.current),H.current=void 0)},[]),Z=(0,l.useRef)(),q=(0,l.useCallback)(()=>{Z.current&&(clearTimeout(Z.current),Z.current=void 0)},[]),Y=(0,l.useCallback)(()=>{q(),L()},[L,q]),K=((0,l.useEffect)(()=>{let t=d(z);return t.addEventListener(p,Y),()=>t.removeEventListener(p,Y)},[Y,z]),()=>{let t=d(z),e=h(z);t.dispatchEvent(new e.CustomEvent(p))}),G=(0,l.useCallback)(()=>{if(!M&&!H.current){F&&K();let t=h(z);H.current=t.setTimeout(V,e)}},[K,M,F,V,e]),X=(0,l.useCallback)(()=>{$();let t=h(z);Z.current=t.setTimeout(Y,n)},[n,Y,$]),Q=(0,l.useCallback)(()=>{F&&f&&X()},[f,X,F]),J=(0,l.useCallback)(()=>{F&&g&&X()},[g,X,F]),tt=(0,l.useCallback)(t=>{F&&"Escape"===t.key&&X()},[F,X]);(0,i.useEventListener)(()=>d(z),"keydown",y?tt:void 0),(0,i.useEventListener)(()=>{if(!v)return null;let t=z.current;if(!t)return null;let e=function t(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:(0,s.Re)(e)&&function(t){let{overflow:e,overflowX:n,overflowY:r}=(t.ownerDocument.defaultView||window).getComputedStyle(t);return/auto|scroll|overlay|hidden/.test(e+r+n)}(e)?e:t("html"===e.localName?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement)}(t);return"body"===e.localName?h(z):e},"scroll",()=>{F&&v&&Y()},{passive:!0,capture:!0}),(0,l.useEffect)(()=>{M&&($(),F&&L())},[M,F,L,$]),(0,l.useEffect)(()=>()=>{$(),q()},[$,q]),(0,i.useEventListener)(()=>z.current,"pointerleave",X);let te=(0,l.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...t,ref:(0,o.mergeRefs)(z,e,N),onPointerEnter:(0,a.v)(t.onPointerEnter,t=>{"touch"!==t.pointerType&&G()}),onClick:(0,a.v)(t.onClick,Q),onPointerDown:(0,a.v)(t.onPointerDown,J),onFocus:(0,a.v)(t.onFocus,G),onBlur:(0,a.v)(t.onBlur,X),"aria-describedby":F?U:void 0}},[G,X,J,F,U,Q,N]),tn=(0,l.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return I({...t,style:{...t.style,[c.cssVars.arrowSize.var]:E?"".concat(E,"px"):void 0,[c.cssVars.arrowShadowColor.var]:T}},e)},[I,E,T]);return{isOpen:F,show:G,hide:X,getTriggerProps:te,getTooltipProps:(0,l.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={...t.style,position:"relative",transformOrigin:c.cssVars.transformOrigin.varRef};return{ref:e,...D,...t,id:U,role:"tooltip",style:n}},[D,U]),getTooltipPositionerProps:tn,getArrowProps:_,getArrowInnerProps:B}}let p="chakra-ui:close-tooltip"},78106:function(t,e,n){n.d(e,{Fade:function(){return c},fadeConfig:function(){return u}});var r=n(12661),i=n(48141),o=n(53900),s=n(55470),a=n(40690),l=n(38480);let u={initial:"exit",animate:"enter",exit:"exit",variants:{enter:function(){var t;let{transition:e,transitionEnd:n,delay:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{opacity:1,transition:null!==(t=null==e?void 0:e.enter)&&void 0!==t?t:l.withDelay.enter(l.S.enter,r),transitionEnd:null==n?void 0:n.enter}},exit:function(){var t;let{transition:e,transitionEnd:n,delay:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{opacity:0,transition:null!==(t=null==e?void 0:e.exit)&&void 0!==t?t:l.withDelay.exit(l.S.exit,r),transitionEnd:null==n?void 0:n.exit}}}},c=(0,a.forwardRef)(function(t,e){let{unmountOnExit:n,in:a,className:l,transition:c,transitionEnd:d,delay:h,animatePresenceProps:f,...p}=t,m=a||n?"enter":"exit",v=!n||a&&n,g={transition:c,transitionEnd:d,delay:h};return(0,r.jsx)(o.M,{...f,custom:g,children:v&&(0,r.jsx)(s.E.div,{ref:e,className:(0,i.cx)("chakra-fade",l),custom:g,...u,animate:m,...p})})});c.displayName="Fade"},9571:function(t,e,n){n.d(e,{ScaleFade:function(){return c},scaleFadeConfig:function(){return u}});var r=n(12661),i=n(48141),o=n(53900),s=n(55470),a=n(40690),l=n(38480);let u={initial:"exit",animate:"enter",exit:"exit",variants:{exit:t=>{var e;let{reverse:n,initialScale:r,transition:i,transitionEnd:o,delay:s}=t;return{opacity:0,...n?{scale:r,transitionEnd:null==o?void 0:o.exit}:{transitionEnd:{scale:r,...null==o?void 0:o.exit}},transition:null!==(e=null==i?void 0:i.exit)&&void 0!==e?e:l.withDelay.exit(l.S.exit,s)}},enter:t=>{var e;let{transitionEnd:n,transition:r,delay:i}=t;return{opacity:1,scale:1,transition:null!==(e=null==r?void 0:r.enter)&&void 0!==e?e:l.withDelay.enter(l.S.enter,i),transitionEnd:null==n?void 0:n.enter}}}},c=(0,a.forwardRef)(function(t,e){let{unmountOnExit:n,in:a,reverse:l=!0,initialScale:c=.95,className:d,transition:h,transitionEnd:f,delay:p,animatePresenceProps:m,...v}=t,g=!n||a&&n,y=a||n?"enter":"exit",x={initialScale:c,reverse:l,transition:h,transitionEnd:f,delay:p};return(0,r.jsx)(o.M,{...m,custom:x,children:g&&(0,r.jsx)(s.E.div,{ref:e,className:(0,i.cx)("chakra-offset-slide",d),...u,animate:y,custom:x,...v})})});c.displayName="ScaleFade"},64938:function(t,e,n){n.d(e,{SlideFade:function(){return c},slideFadeConfig:function(){return u}});var r=n(12661),i=n(48141),o=n(53900),s=n(55470),a=n(40690),l=n(38480);let u={initial:"initial",animate:"enter",exit:"exit",variants:{initial:t=>{var e;let{offsetX:n,offsetY:r,transition:i,transitionEnd:o,delay:s}=t;return{opacity:0,x:n,y:r,transition:null!==(e=null==i?void 0:i.exit)&&void 0!==e?e:l.withDelay.exit(l.S.exit,s),transitionEnd:null==o?void 0:o.exit}},enter:t=>{var e;let{transition:n,transitionEnd:r,delay:i}=t;return{opacity:1,x:0,y:0,transition:null!==(e=null==n?void 0:n.enter)&&void 0!==e?e:l.withDelay.enter(l.S.enter,i),transitionEnd:null==r?void 0:r.enter}},exit:t=>{var e;let{offsetY:n,offsetX:r,transition:i,transitionEnd:o,reverse:s,delay:a}=t,u={x:r,y:n};return{opacity:0,transition:null!==(e=null==i?void 0:i.exit)&&void 0!==e?e:l.withDelay.exit(l.S.exit,a),...s?{...u,transitionEnd:null==o?void 0:o.exit}:{transitionEnd:{...u,...null==o?void 0:o.exit}}}}}},c=(0,a.forwardRef)(function(t,e){let{unmountOnExit:n,in:a,reverse:l=!0,className:c,offsetX:d=0,offsetY:h=8,transition:f,transitionEnd:p,delay:m,animatePresenceProps:v,...g}=t,y=!n||a&&n,x=a||n?"enter":"exit",b={offsetX:d,offsetY:h,reverse:l,transition:f,transitionEnd:p,delay:m};return(0,r.jsx)(o.M,{...v,custom:b,children:y&&(0,r.jsx)(s.E.div,{ref:e,className:(0,i.cx)("chakra-offset-slide",c),custom:b,...u,animate:x,...g})})});c.displayName="SlideFade"},38480:function(t,e,n){n.d(e,{S:function(){return s},TRANSITION_EASINGS:function(){return r},getSlideTransition:function(){return o},withDelay:function(){return a}});let r={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},i={slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function o(t){var e;switch(null!==(e=null==t?void 0:t.direction)&&void 0!==e?e:"right"){case"right":default:return i.slideRight;case"left":return i.slideLeft;case"bottom":return i.slideDown;case"top":return i.slideUp}}let s={enter:{duration:.2,ease:r.easeOut},exit:{duration:.1,ease:r.easeIn}},a={enter:(t,e)=>({...t,delay:"number"==typeof e?e:null==e?void 0:e.enter}),exit:(t,e)=>({...t,delay:"number"==typeof e?e:null==e?void 0:e.exit})}},11942:function(t,e,n){n.d(e,{Heading:function(){return u}});var r=n(12661),i=n(19496),o=n(48141),s=n(90655),a=n(47381),l=n(38655);let u=(0,s.forwardRef)(function(t,e){let n=(0,a.useStyleConfig)("Heading",t),{className:s,...u}=(0,i.L)(t);return(0,r.jsx)(l.chakra.h2,{ref:e,className:(0,o.cx)("chakra-heading",t.className),...u,__css:n})});u.displayName="Heading"},89385:function(t,e,n){function r(...t){return function(...e){t.forEach(t=>t?.(...e))}}function i(...t){return function(e){t.some(t=>(t?.(e),e?.defaultPrevented))}}n.d(e,{P:function(){return r},v:function(){return i}})},82675:function(t,e,n){n.d(e,{t5:function(){return o}});var r=n(85477);let i=t=>t.offsetWidth>0&&t.offsetHeight>0;function o(t){let e=Array.from(t.querySelectorAll("input:not(:disabled):not([disabled]),select:not(:disabled):not([disabled]),textarea:not(:disabled):not([disabled]),embed,iframe,object,a[href],area[href],button:not(:disabled):not([disabled]),[tabindex],audio[controls],video[controls],*[tabindex]:not([aria-disabled]),*[contenteditable]"));return e.unshift(t),e.filter(t=>(0,r.EB)(t)&&i(t))}},49146:function(t,e,n){function r(t){return null!=t&&"object"==typeof t&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE}function i(){return!!globalThis?.document}function o(t){let e=t.getAttribute("contenteditable");return"false"!==e&&null!=e}function s(t){return!0==!!t.getAttribute("disabled")||!0==!!t.getAttribute("aria-disabled")}n.d(e,{Re:function(){return r},iU:function(){return o},jU:function(){return i},nV:function(){return s},oI:function(){return function t(e){return!!(e.parentElement&&t(e.parentElement))||e.hidden}}})},85477:function(t,e,n){n.d(e,{EB:function(){return s},Wq:function(){return a}});var r=n(49146);let i=t=>t.hasAttribute("tabindex"),o=t=>i(t)&&-1===t.tabIndex;function s(t){if(!(0,r.Re)(t)||(0,r.oI)(t)||(0,r.nV)(t))return!1;let{localName:e}=t;if(["input","select","textarea","button"].indexOf(e)>=0)return!0;let n={a:()=>t.hasAttribute("href"),audio:()=>t.hasAttribute("controls"),video:()=>t.hasAttribute("controls")};return e in n?n[e]():!!(0,r.iU)(t)||i(t)}function a(t){return!!t&&(0,r.Re)(t)&&s(t)&&!o(t)}},53900:function(t,e,n){n.d(e,{M:function(){return g}});var r=n(12661),i=n(40690),o=n(9193),s=n(51588),a=n(77046);class l extends i.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function u(t){let{children:e,isPresent:n}=t,o=(0,i.useId)(),s=(0,i.useRef)(null),u=(0,i.useRef)({width:0,height:0,top:0,left:0}),{nonce:c}=(0,i.useContext)(a._);return(0,i.useInsertionEffect)(()=>{let{width:t,height:e,top:r,left:i}=u.current;if(n||!s.current||!t||!e)return;s.current.dataset.motionPopId=o;let a=document.createElement("style");return c&&(a.nonce=c),document.head.appendChild(a),a.sheet&&a.sheet.insertRule('\n          [data-motion-pop-id="'.concat(o,'"] {\n            position: absolute !important;\n            width: ').concat(t,"px !important;\n            height: ").concat(e,"px !important;\n            top: ").concat(r,"px !important;\n            left: ").concat(i,"px !important;\n          }\n        ")),()=>{document.head.removeChild(a)}},[n]),(0,r.jsx)(l,{isPresent:n,childRef:s,sizeRef:u,children:i.cloneElement(e,{ref:s})})}let c=t=>{let{children:e,initial:n,isPresent:a,onExitComplete:l,custom:c,presenceAffectsLayout:h,mode:f}=t,p=(0,s.h)(d),m=(0,i.useId)(),v=(0,i.useCallback)(t=>{for(let e of(p.set(t,!0),p.values()))if(!e)return;l&&l()},[p,l]),g=(0,i.useMemo)(()=>({id:m,initial:n,isPresent:a,custom:c,onExitComplete:v,register:t=>(p.set(t,!1),()=>p.delete(t))}),h?[Math.random(),v]:[a,v]);return(0,i.useMemo)(()=>{p.forEach((t,e)=>p.set(e,!1))},[a]),i.useEffect(()=>{a||p.size||!l||l()},[a]),"popLayout"===f&&(e=(0,r.jsx)(u,{isPresent:a,children:e})),(0,r.jsx)(o.O.Provider,{value:g,children:e})};function d(){return new Map}var h=n(61335),f=n(61502);let p=t=>t.key||"";function m(t){let e=[];return i.Children.forEach(t,t=>{(0,i.isValidElement)(t)&&e.push(t)}),e}var v=n(73576);let g=t=>{let{children:e,exitBeforeEnter:n,custom:o,initial:a=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:d="sync"}=t;(0,f.k)(!n,"Replace exitBeforeEnter with mode='wait'");let g=(0,i.useMemo)(()=>m(e),[e]),y=g.map(p),x=(0,i.useRef)(!0),b=(0,i.useRef)(g),w=(0,s.h)(()=>new Map),[S,P]=(0,i.useState)(g),[C,E]=(0,i.useState)(g);(0,v.L)(()=>{x.current=!1,b.current=g;for(let t=0;t<C.length;t++){let e=p(C[t]);y.includes(e)?w.delete(e):!0!==w.get(e)&&w.set(e,!1)}},[C,y.length,y.join("-")]);let T=[];if(g!==S){let t=[...g];for(let e=0;e<C.length;e++){let n=C[e],r=p(n);y.includes(r)||(t.splice(e,0,n),T.push(n))}"wait"===d&&T.length&&(t=T),E(m(t)),P(g);return}let{forceRender:k}=(0,i.useContext)(h.p);return(0,r.jsx)(r.Fragment,{children:C.map(t=>{let e=p(t),n=g===C||y.includes(e);return(0,r.jsx)(c,{isPresent:n,initial:(!x.current||!!a)&&void 0,custom:n?void 0:o,presenceAffectsLayout:u,mode:d,onExitComplete:n?void 0:()=>{if(!w.has(e))return;w.set(e,!0);let t=!0;w.forEach(e=>{e||(t=!1)}),t&&(null==k||k(),E(b.current),l&&l())},children:t},e)})})}},43193:function(t,e,n){n.d(e,{hO:function(){return s},oO:function(){return o}});var r=n(40690),i=n(9193);function o(){let t=(0,r.useContext)(i.O);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:n,register:o}=t,s=(0,r.useId)();(0,r.useEffect)(()=>o(s),[]);let a=(0,r.useCallback)(()=>n&&n(s),[s,n]);return!e&&n?[!1,a]:[!0]}function s(){var t;return null===(t=(0,r.useContext)(i.O))||t.isPresent}},61335:function(t,e,n){n.d(e,{p:function(){return r}});let r=(0,n(40690).createContext)({})},77046:function(t,e,n){n.d(e,{_:function(){return r}});let r=(0,n(40690).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},9193:function(t,e,n){n.d(e,{O:function(){return r}});let r=(0,n(40690).createContext)(null)},7966:function(t,e,n){n.d(e,{Z:function(){return i}});let r=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 i(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||r.has(t)}},55470:function(t,e,n){let r;function i(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}n.d(e,{E:function(){return ou}});let o=t=>Array.isArray(t);function s(t,e){if(!Array.isArray(e))return!1;let n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function a(t){return"string"==typeof t||Array.isArray(t)}function l(t){let e=[{},{}];return null==t||t.values.forEach((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()}),e}function u(t,e,n,r){if("function"==typeof e){let[i,o]=l(r);e=e(void 0!==n?n:t.custom,i,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[i,o]=l(r);e=e(void 0!==n?n:t.custom,i,o)}return e}function c(t,e,n){let r=t.getProps();return u(r,e,void 0!==n?n:r.custom,t)}let d=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],h=["initial",...d],f=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],p=new Set(f),m=t=>1e3*t,v=t=>t/1e3,g={type:"spring",stiffness:500,damping:25,restSpeed:10},y=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),x={type:"keyframes",duration:.8},b={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},w=(t,{keyframes:e})=>e.length>2?x:p.has(t)?t.startsWith("scale")?y(e[1]):g:b;function S(t,e){return t?t[e]||t.default||t:void 0}let P={skipAnimations:!1,useManualTiming:!1},C={current:!1},E=t=>null!==t;function T(t,{repeat:e,repeatType:n="loop"},r){let i=t.filter(E),o=e&&"loop"!==n&&e%2==1?0:i.length-1;return o&&void 0!==r?r:i[o]}var k,A,M,R=n(7980);let j=["read","resolveKeyframes","update","preRender","render","postRender"];function O(t,e){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=j.reduce((t,e)=>(t[e]=function(t){let e=new Set,n=new Set,r=!1,i=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1};function a(e){o.has(e)&&(l.schedule(e),t()),e(s)}let l={schedule:(t,i=!1,s=!1)=>{let a=s&&r?e:n;return i&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(s=t,r){i=!0;return}r=!0,[e,n]=[n,e],n.clear(),e.forEach(a),r=!1,i&&(i=!1,l.process(t))}};return l}(o),t),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:h}=s,f=()=>{let o=P.useManualTiming?i.timestamp:performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,40),1),i.timestamp=o,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),d.process(i),h.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(f))},p=()=>{n=!0,r=!0,i.isProcessing||t(f)};return{schedule:j.reduce((t,e)=>{let r=s[e];return t[e]=(t,e=!1,i=!1)=>(n||p(),r.schedule(t,e,i)),t},{}),cancel:t=>{for(let e=0;e<j.length;e++)s[j[e]].cancel(t)},state:i,steps:s}}let{schedule:D,cancel:F,state:V,steps:L}=O("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:R.Z,!0),N=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function I(t,e,n,r){if(t===e&&n===r)return R.Z;let i=e=>(function(t,e,n,r,i){let o,s;let a=0;do(o=N(s=e+(n-e)/2,r,i)-t)>0?n=s:e=s;while(Math.abs(o)>1e-7&&++a<12);return s})(e,0,1,t,n);return t=>0===t||1===t?t:N(i(t),e,r)}let B=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,_=t=>e=>1-t(1-e),W=I(.33,1.53,.69,.99),U=_(W),z=B(U),H=t=>(t*=2)<1?.5*U(t):.5*(2-Math.pow(2,-10*(t-1))),$=t=>1-Math.sin(Math.acos(t)),Z=_($),q=B($),Y=t=>/^0[^.\s]+$/u.test(t);var K=n(61502);let G=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),X=t=>e=>"string"==typeof e&&e.startsWith(t),Q=X("--"),J=X("var(--"),tt=t=>!!J(t)&&te.test(t.split("/*")[0].trim()),te=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,tn=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tr=(t,e,n)=>n>e?e:n<t?t:n,ti={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},to={...ti,transform:t=>tr(0,1,t)},ts={...ti,default:1},ta=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tl=ta("deg"),tu=ta("%"),tc=ta("px"),td=ta("vh"),th=ta("vw"),tf={...tu,parse:t=>tu.parse(t)/100,transform:t=>tu.transform(100*t)},tp=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),tm=t=>t===ti||t===tc,tv=(t,e)=>parseFloat(t.split(", ")[e]),tg=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/u);if(i)return tv(i[1],e);{let e=r.match(/^matrix\((.+)\)$/u);return e?tv(e[1],t):0}},ty=new Set(["x","y","z"]),tx=f.filter(t=>!ty.has(t)),tb={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:tg(4,13),y:tg(5,14)};tb.translateX=tb.x,tb.translateY=tb.y;let tw=t=>e=>e.test(t),tS=[ti,tc,tu,tl,th,td,{test:t=>"auto"===t,parse:t=>t}],tP=t=>tS.find(tw(t)),tC=new Set,tE=!1,tT=!1;function tk(){if(tT){let t=Array.from(tC).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),n=new Map;e.forEach(t=>{let e=function(t){let e=[];return tx.forEach(n=>{let r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}(t);e.length&&(n.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=n.get(t);e&&e.forEach(([e,n])=>{var r;null===(r=t.getValue(e))||void 0===r||r.set(n)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tT=!1,tE=!1,tC.forEach(t=>t.complete()),tC.clear()}function tA(){tC.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tT=!0)})}class tM{constructor(t,e,n,r,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(tC.add(this),tE||(tE=!0,D.read(tA),D.resolveKeyframes(tk))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:n,motionValue:r}=this;for(let i=0;i<t.length;i++)if(null===t[i]){if(0===i){let i=null==r?void 0:r.get(),o=t[t.length-1];if(void 0!==i)t[0]=i;else if(n&&e){let r=n.readValue(e,o);null!=r&&(t[0]=r)}void 0===t[0]&&(t[0]=o),r&&void 0===i&&r.set(t[0])}else t[i]=t[i-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),tC.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,tC.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let tR=t=>Math.round(1e5*t)/1e5,tj=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tO=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tD=(t,e)=>n=>!!("string"==typeof n&&tO.test(n)&&n.startsWith(t)||e&&null!=n&&Object.prototype.hasOwnProperty.call(n,e)),tF=(t,e,n)=>r=>{if("string"!=typeof r)return r;let[i,o,s,a]=r.match(tj);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},tV=t=>tr(0,255,t),tL={...ti,transform:t=>Math.round(tV(t))},tN={test:tD("rgb","red"),parse:tF("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+tL.transform(t)+", "+tL.transform(e)+", "+tL.transform(n)+", "+tR(to.transform(r))+")"},tI={test:tD("#"),parse:function(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:tN.transform},tB={test:tD("hsl","hue"),parse:tF("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+tu.transform(tR(e))+", "+tu.transform(tR(n))+", "+tR(to.transform(r))+")"},t_={test:t=>tN.test(t)||tI.test(t)||tB.test(t),parse:t=>tN.test(t)?tN.parse(t):tB.test(t)?tB.parse(t):tI.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tN.transform(t):tB.transform(t)},tW=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tU="number",tz="color",tH=/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 t$(t){let e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[],o=0,s=e.replace(tH,t=>(t_.test(t)?(r.color.push(o),i.push(tz),n.push(t_.parse(t))):t.startsWith("var(")?(r.var.push(o),i.push("var"),n.push(t)):(r.number.push(o),i.push(tU),n.push(parseFloat(t))),++o,"${}")).split("${}");return{values:n,split:s,indexes:r,types:i}}function tZ(t){return t$(t).values}function tq(t){let{split:e,types:n}=t$(t),r=e.length;return t=>{let i="";for(let o=0;o<r;o++)if(i+=e[o],void 0!==t[o]){let e=n[o];e===tU?i+=tR(t[o]):e===tz?i+=t_.transform(t[o]):i+=t[o]}return i}}let tY=t=>"number"==typeof t?0:t,tK={test:function(t){var e,n;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(tj))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(tW))||void 0===n?void 0:n.length)||0)>0},parse:tZ,createTransformer:tq,getAnimatableNone:function(t){let e=tZ(t);return tq(t)(e.map(tY))}},tG=new Set(["brightness","contrast","saturate","opacity"]);function tX(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=n.match(tj)||[];if(!r)return t;let i=n.replace(r,""),o=tG.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}let tQ=/\b([a-z-]*)\(.*?\)/gu,tJ={...tK,getAnimatableNone:t=>{let e=t.match(tQ);return e?e.map(tX).join(" "):t}},t0={...ti,transform:Math.round},t1={borderWidth:tc,borderTopWidth:tc,borderRightWidth:tc,borderBottomWidth:tc,borderLeftWidth:tc,borderRadius:tc,radius:tc,borderTopLeftRadius:tc,borderTopRightRadius:tc,borderBottomRightRadius:tc,borderBottomLeftRadius:tc,width:tc,maxWidth:tc,height:tc,maxHeight:tc,top:tc,right:tc,bottom:tc,left:tc,padding:tc,paddingTop:tc,paddingRight:tc,paddingBottom:tc,paddingLeft:tc,margin:tc,marginTop:tc,marginRight:tc,marginBottom:tc,marginLeft:tc,backgroundPositionX:tc,backgroundPositionY:tc,rotate:tl,rotateX:tl,rotateY:tl,rotateZ:tl,scale:ts,scaleX:ts,scaleY:ts,scaleZ:ts,skew:tl,skewX:tl,skewY:tl,distance:tc,translateX:tc,translateY:tc,translateZ:tc,x:tc,y:tc,z:tc,perspective:tc,transformPerspective:tc,opacity:to,originX:tf,originY:tf,originZ:tc,zIndex:t0,size:tc,fillOpacity:to,strokeOpacity:to,numOctaves:t0},t5={...t1,color:t_,backgroundColor:t_,outlineColor:t_,fill:t_,stroke:t_,borderColor:t_,borderTopColor:t_,borderRightColor:t_,borderBottomColor:t_,borderLeftColor:t_,filter:tJ,WebkitFilter:tJ},t6=t=>t5[t];function t2(t,e){let n=t6(t);return n!==tJ&&(n=tK),n.getAnimatableNone?n.getAnimatableNone(e):void 0}let t9=new Set(["auto","none","0"]);class t4 extends tM{constructor(t,e,n,r,i){super(t,e,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let n=0;n<t.length;n++){let r=t[n];if("string"==typeof r&&tt(r=r.trim())){let i=function t(e,n,r=1){(0,K.k)(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[i,o]=function(t){let e=tn.exec(t);if(!e)return[,];let[,n,r,i]=e;return[`--${null!=n?n:r}`,i]}(e);if(!i)return;let s=window.getComputedStyle(n).getPropertyValue(i);if(s){let t=s.trim();return G(t)?parseFloat(t):t}return tt(o)?t(o,n,r+1):o}(r,e.current);void 0!==i&&(t[n]=i),n===t.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!tp.has(n)||2!==t.length)return;let[r,i]=t,o=tP(r),s=tP(i);if(o!==s){if(tm(o)&&tm(s))for(let e=0;e<t.length;e++){let n=t[e];"string"==typeof n&&(t[e]=parseFloat(n))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,n=[];for(let e=0;e<t.length;e++){var r;("number"==typeof(r=t[e])?0===r:null===r||"none"===r||"0"===r||Y(r))&&n.push(e)}n.length&&function(t,e,n){let r,i=0;for(;i<t.length&&!r;){let e=t[i];"string"==typeof e&&!t9.has(e)&&t$(e).values.length&&(r=t[i]),i++}if(r&&n)for(let i of e)t[i]=t2(n,r)}(t,n,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tb[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let r=e[e.length-1];void 0!==r&&t.getValue(n,r).jump(r,!1)}measureEndState(){var t;let{element:e,name:n,unresolvedKeyframes:r}=this;if(!e||!e.current)return;let i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);let o=r.length-1,s=r[o];r[o]=tb[n](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}function t3(t){return"function"==typeof t}function t8(){r=void 0}let t7={now:()=>(void 0===r&&t7.set(V.isProcessing||P.useManualTiming?V.timestamp:performance.now()),r),set:t=>{r=t,queueMicrotask(t8)}},et=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tK.test(t)||"0"===t)&&!t.startsWith("url("));class ee{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=t7.now(),this.options={autoplay:t,delay:e,type:n,repeat:r,repeatDelay:i,repeatType:o,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(tA(),tk()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=t7.now(),this.hasAttemptedResolve=!0;let{name:n,type:r,velocity:i,delay:o,onComplete:s,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,n,r){let i=t[0];if(null===i)return!1;if("display"===e||"visibility"===e)return!0;let o=t[t.length-1],s=et(i,e),a=et(o,e);return(0,K.K)(s===a,`You are trying to animate ${e} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!!s&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||t3(n))&&r)}(t,n,r,i)){if(C.current||!o){null==a||a(T(t,this.options,e)),null==s||s(),this.resolveFinishedPromise();return}this.options.duration=0}let u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function en(t,e,n){var r,i;let o=Math.max(e-5,0);return r=n-t(o),(i=e-o)?1e3/i*r:0}function er(t,e){return t*Math.sqrt(1-e*e)}let ei=["duration","bounce"],eo=["stiffness","damping","mass"];function es(t,e){return e.some(e=>void 0!==t[e])}function ea({keyframes:t,restDelta:e,restSpeed:n,...r}){let i;let o=t[0],s=t[t.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:d,velocity:h,isResolvedFromDuration:f}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!es(t,eo)&&es(t,ei)){let n=function({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,o;(0,K.K)(t<=m(10),"Spring duration must be 10 seconds or less");let s=1-e;s=tr(.05,1,s),t=tr(.01,10,v(t)),s<1?(i=e=>{let r=e*s,i=r*t;return .001-(r-n)/er(e,s)*Math.exp(-i)},o=e=>{let r=e*s*t,o=Math.pow(s,2)*Math.pow(e,2)*t,a=er(Math.pow(e,2),s);return(r*n+n-o)*Math.exp(-r)*(-i(e)+.001>0?-1:1)/a}):(i=e=>-.001+Math.exp(-e*t)*((e-n)*t+1),o=e=>t*t*(n-e)*Math.exp(-e*t));let a=function(t,e,n){let r=n;for(let n=1;n<12;n++)r-=t(r)/e(r);return r}(i,o,5/t);if(t=m(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*r;return{stiffness:e,damping:2*s*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...n,mass:1}).isResolvedFromDuration=!0}return e}({...r,velocity:-v(r.velocity||0)}),p=h||0,g=u/(2*Math.sqrt(l*c)),y=s-o,x=v(Math.sqrt(l/c)),b=5>Math.abs(y);if(n||(n=b?.01:2),e||(e=b?.005:.5),g<1){let t=er(x,g);i=e=>s-Math.exp(-g*x*e)*((p+g*x*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===g)i=t=>s-Math.exp(-x*t)*(y+(p+x*y)*t);else{let t=x*Math.sqrt(g*g-1);i=e=>{let n=Math.exp(-g*x*e),r=Math.min(t*e,300);return s-n*((p+g*x*y)*Math.sinh(r)+t*y*Math.cosh(r))/t}}return{calculatedDuration:f&&d||null,next:t=>{let r=i(t);if(f)a.done=t>=d;else{let o=0;g<1&&(o=0===t?m(p):en(i,t,r));let l=Math.abs(o)<=n,u=Math.abs(s-r)<=e;a.done=l&&u}return a.value=a.done?s:r,a}}}function el({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){let d,h;let f=t[0],p={done:!1,value:f},m=t=>void 0!==a&&t<a||void 0!==l&&t>l,v=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,g=n*e,y=f+g,x=void 0===s?y:s(y);x!==y&&(g=x-f);let b=t=>-g*Math.exp(-t/r),w=t=>x+b(t),S=t=>{let e=b(t),n=w(t);p.done=Math.abs(e)<=u,p.value=p.done?x:n},P=t=>{m(p.value)&&(d=t,h=ea({keyframes:[p.value,v(p.value)],velocity:en(w,t,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return P(0),{calculatedDuration:null,next:t=>{let e=!1;return(h||void 0!==d||(e=!0,S(t),P(t)),void 0!==d&&t>=d)?h.next(t-d):(e||S(t),p)}}}let eu=I(.42,0,1,1),ec=I(0,0,.58,1),ed=I(.42,0,.58,1),eh=t=>Array.isArray(t)&&"number"!=typeof t[0],ef=t=>Array.isArray(t)&&"number"==typeof t[0],ep={linear:R.Z,easeIn:eu,easeInOut:ed,easeOut:ec,circIn:$,circInOut:q,circOut:Z,backIn:U,backInOut:z,backOut:W,anticipate:H},em=t=>{if(ef(t)){(0,K.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,n,r,i]=t;return I(e,n,r,i)}return"string"==typeof t?((0,K.k)(void 0!==ep[t],`Invalid easing type '${t}'`),ep[t]):t},ev=(t,e)=>n=>e(t(n)),eg=(...t)=>t.reduce(ev),ey=(t,e,n)=>{let r=e-t;return 0===r?1:(n-t)/r},ex=(t,e,n)=>t+(e-t)*n;function eb(t,e,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function ew(t,e){return n=>n>0?e:t}let eS=(t,e,n)=>{let r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},eP=[tI,tN,tB],eC=t=>eP.find(e=>e.test(t));function eE(t){let e=eC(t);if((0,K.K)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===tB&&(n=function({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let i=0,o=0,s=0;if(e/=100){let r=n<.5?n*(1+e):n+e-n*e,a=2*n-r;i=eb(a,r,t+1/3),o=eb(a,r,t),s=eb(a,r,t-1/3)}else i=o=s=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:r}}(n)),n}let eT=(t,e)=>{let n=eE(t),r=eE(e);if(!n||!r)return ew(t,e);let i={...n};return t=>(i.red=eS(n.red,r.red,t),i.green=eS(n.green,r.green,t),i.blue=eS(n.blue,r.blue,t),i.alpha=ex(n.alpha,r.alpha,t),tN.transform(i))},ek=new Set(["none","hidden"]);function eA(t,e){return n=>ex(t,e,n)}function eM(t){return"number"==typeof t?eA:"string"==typeof t?tt(t)?ew:t_.test(t)?eT:eO:Array.isArray(t)?eR:"object"==typeof t?t_.test(t)?eT:ej:ew}function eR(t,e){let n=[...t],r=n.length,i=t.map((t,n)=>eM(t)(t,e[n]));return t=>{for(let e=0;e<r;e++)n[e]=i[e](t);return n}}function ej(t,e){let n={...t,...e},r={};for(let i in n)void 0!==t[i]&&void 0!==e[i]&&(r[i]=eM(t[i])(t[i],e[i]));return t=>{for(let e in r)n[e]=r[e](t);return n}}let eO=(t,e)=>{let n=tK.createTransformer(e),r=t$(t),i=t$(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?ek.has(t)&&!i.values.length||ek.has(e)&&!r.values.length?ek.has(t)?n=>n<=0?t:e:n=>n>=1?e:t:eg(eR(function(t,e){var n;let r=[],i={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){let s=e.types[o],a=t.indexes[s][i[s]],l=null!==(n=t.values[a])&&void 0!==n?n:0;r[o]=l,i[s]++}return r}(r,i),i.values),n):((0,K.K)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),ew(t,e))};function eD(t,e,n){return"number"==typeof t&&"number"==typeof e&&"number"==typeof n?ex(t,e,n):eM(t)(t,e)}function eF({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){let i=eh(r)?r.map(em):em(r),o={done:!1,value:e[0]},s=function(t,e,{clamp:n=!0,ease:r,mixer:i}={}){let o=t.length;if((0,K.k)(o===e.length,"Both input and output ranges must be the same length"),1===o)return()=>e[0];if(2===o&&t[0]===t[1])return()=>e[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());let s=function(t,e,n){let r=[],i=n||eD,o=t.length-1;for(let n=0;n<o;n++){let o=i(t[n],t[n+1]);e&&(o=eg(Array.isArray(e)?e[n]||R.Z:e,o)),r.push(o)}return r}(e,r,i),a=s.length,l=e=>{let n=0;if(a>1)for(;n<t.length-2&&!(e<t[n+1]);n++);let r=ey(t[n],t[n+1],e);return s[n](r)};return n?e=>l(tr(t[0],t[o-1],e)):l}((n&&n.length===e.length?n:function(t){let e=[0];return function(t,e){let n=t[t.length-1];for(let r=1;r<=e;r++){let i=ey(0,e,r);t.push(ex(n,1,i))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(i)?i:e.map(()=>i||ed).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=s(e),o.done=e>=t,o)}}let eV=t=>{let e=({timestamp:e})=>t(e);return{start:()=>D.update(e,!0),stop:()=>F(e),now:()=>V.isProcessing?V.timestamp:t7.now()}},eL={decay:el,inertia:el,tween:eF,keyframes:eF,spring:ea},eN=t=>t/100;class eI extends ee{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:e,motionValue:n,element:r,keyframes:i}=this.options,o=(null==r?void 0:r.KeyframeResolver)||tM;this.resolver=new o(i,(t,e)=>this.onKeyframesResolved(t,e),e,n,r),this.resolver.scheduleResolve()}initPlayback(t){let e,n;let{type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s,velocity:a=0}=this.options,l=t3(r)?r:eL[r]||eF;l!==eF&&"number"!=typeof t[0]&&(e=eg(eN,eD(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===s&&(n=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=function(t){let e=0,n=t.next(e);for(;!n.done&&e<2e4;)e+=50,n=t.next(e);return e>=2e4?1/0:e}(u));let{calculatedDuration:c}=u,d=c+o;return{generator:u,mirroredGenerator:n,mapPercentToKeyframes:e,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(i+1)-o}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:n}=this;if(!n){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:r,generator:i,mirroredGenerator:o,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return i.next(0);let{delay:d,repeat:h,repeatType:f,repeatDelay:p,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let v=this.currentTime-d*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=i;if(h){let t=Math.min(this.currentTime,u)/c,e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,(e=Math.min(e,h+1))%2&&("reverse"===f?(n=1-n,p&&(n-=p/c)):"mirror"===f&&(x=o)),y=tr(0,1,n)*c}let b=g?{done:!1,value:a[0]}:x.next(y);s&&(b.value=s(b.value));let{done:w}=b;g||null===l||(w=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return S&&void 0!==r&&(b.value=T(a,this.options,r)),m&&m(b.value),S&&this.finish(),b}get duration(){let{resolved:t}=this;return t?v(t.calculatedDuration):0}get time(){return v(this.currentTime)}set time(t){t=m(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=v(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=eV,onPlay:e,startTime:n}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&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=null!==(t=this.currentTime)&&void 0!==t?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&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)}}let eB=new Set(["opacity","clipPath","filter","transform"]),e_=(t,e)=>{let n="",r=Math.max(Math.round(e/10),2);for(let e=0;e<r;e++)n+=t(ey(0,r-1,e))+", ";return`linear(${n.substring(0,n.length-2)})`};function eW(t){let e;return()=>(void 0===e&&(e=t()),e)}let eU={linearEasing:void 0},ez=function(t,e){let n=eW(t);return()=>{var t;return null!==(t=eU[e])&&void 0!==t?t:n()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),eH=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,e$={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:eH([0,.65,.55,1]),circOut:eH([.55,0,1,.45]),backIn:eH([.31,.01,.66,-.59]),backOut:eH([.33,1.53,.69,.99])};function eZ(t,e){t.timeline=e,t.onfinish=null}let eq=eW(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),eY={anticipate:H,backInOut:z,circInOut:q};class eK extends ee{constructor(t){super(t);let{name:e,motionValue:n,element:r,keyframes:i}=this.options;this.resolver=new t4(i,(t,e)=>this.onKeyframesResolved(t,e),e,n,r),this.resolver.scheduleResolve()}initPlayback(t,e){var n,r;let{duration:i=300,times:o,ease:s,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(null===(n=l.owner)||void 0===n?void 0:n.current))return!1;if("string"==typeof s&&ez()&&s in eY&&(s=eY[s]),t3((r=this.options).type)||"spring"===r.type||!function t(e){return!!("function"==typeof e&&ez()||!e||"string"==typeof e&&(e in e$||ez())||ef(e)||Array.isArray(e)&&e.every(t))}(r.ease)){let{onComplete:e,onUpdate:n,motionValue:r,element:l,...u}=this.options,c=function(t,e){let n=new eI({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:t[0]},i=[],o=0;for(;!r.done&&o<2e4;)i.push((r=n.sample(o)).value),o+=10;return{times:void 0,keyframes:i,duration:o-10,ease:"linear"}}(t,u);1===(t=c.keyframes).length&&(t[1]=t[0]),i=c.duration,o=c.times,s=c.ease,a="keyframes"}let d=function(t,e,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){let u={[e]:n};l&&(u.offset=l);let c=function t(e,n){if(e)return"function"==typeof e&&ez()?e_(e,n):ef(e)?eH(e):Array.isArray(e)?e.map(e=>t(e,n)||e$.easeOut):e$[e]}(a,i);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(l.owner.current,u,t,{...this.options,duration:i,times:o,ease:s});return d.startTime=null!=c?c:this.calcStartTime(),this.pendingTimeline?(eZ(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:n}=this.options;l.set(T(t,this.options,e)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:i,times:o,type:a,ease:s,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return v(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return v(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:n}=e;n.currentTime=m(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:n}=e;n.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return R.Z;let{animation:n}=e;eZ(n,t)}else this.pendingTimeline=t;return R.Z}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:n,duration:r,type:i,ease:o,times:s}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,c=new eI({...u,keyframes:n,duration:r,type:i,ease:o,times:s,isGenerator:!0}),d=m(this.time);t.setWithVelocity(c.sample(d-10).value,c.sample(d).value,10)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:n,repeatDelay:r,repeatType:i,damping:o,type:s}=t;return eq()&&n&&eB.has(n)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!r&&"mirror"!==i&&0!==o&&"inertia"!==s}}let eG=eW(()=>void 0!==window.ScrollTimeline);class eX{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,e){return Promise.all(this.animations).then(t).catch(e)}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=e}attachTimeline(t,e){let n=this.animations.map(n=>eG()&&n.attachTimeline?n.attachTimeline(t):e(n));return()=>{n.forEach((t,e)=>{t&&t(),this.animations[e].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 startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}let eQ=(t,e,n,r={},i,o)=>s=>{let a=S(r,t)||{},l=a.delay||r.delay||0,{elapsed:u=0}=r;u-=m(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};!function({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(a)&&(c={...c,...w(t,c)}),c.duration&&(c.duration=m(c.duration)),c.repeatDelay&&(c.repeatDelay=m(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(c.duration=0,0!==c.delay||(d=!0)),(C.current||P.skipAnimations)&&(d=!0,c.duration=0,c.delay=0),d&&!o&&void 0!==e.get()){let t=T(c.keyframes,a);if(void 0!==t)return D.update(()=>{c.onUpdate(t),c.onComplete()}),new eX([])}return!o&&eK.supports(c)?new eK(c):new eI(c)},eJ=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),e0=t=>o(t)?t[t.length-1]||0:t;function e1(t,e){-1===t.indexOf(e)&&t.push(e)}function e5(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}class e6{constructor(){this.subscriptions=[]}add(t){return e1(this.subscriptions,t),()=>e5(this.subscriptions,t)}notify(t,e,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](t,e,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(t,e,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let e2=t=>!isNaN(parseFloat(t)),e9={current:void 0};class e4{constructor(t,e={}){this.version="11.11.9",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let n=t7.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=t7.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=e2(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new e6);let n=this.events[t].add(e);return"change"===t?()=>{n(),D.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return e9.current&&e9.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=t7.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),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 e3(t,e){return new e4(t,e)}let e8=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),e7="data-"+e8("framerAppearId"),nt=t=>!!(t&&t.getVelocity);function ne(t,e){if(!t.applyWillChange)return;let n=t.getValue("willChange");if(nt(n)&&n.add)return n.add(e)}function nn(t,e,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=t.getDefaultTransition(),transitionEnd:a,...l}=e;r&&(s=r);let u=[],d=i&&t.animationState&&t.animationState.getState()[i];for(let e in l){let r=t.getValue(e,null!==(o=t.latestValues[e])&&void 0!==o?o:null),i=l[e];if(void 0===i||d&&function({protectedKeys:t,needsAnimating:e},n){let r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}(d,e))continue;let a={delay:n,...S(s||{},e)},c=!1;if(window.MotionHandoffAnimation){let n=t.props[e7];if(n){let t=window.MotionHandoffAnimation(n,e,D);null!==t&&(a.startTime=t,c=!0)}}ne(t,e),r.start(eQ(e,r,i,t.shouldReduceMotion&&p.has(e)?{type:!1}:a,t,c));let h=r.animation;h&&u.push(h)}return a&&Promise.all(u).then(()=>{D.update(()=>{a&&function(t,e){let{transitionEnd:n={},transition:r={},...i}=c(t,e)||{};for(let e in i={...i,...n}){let n=e0(i[e]);t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,e3(n))}}(t,a)})}),u}function nr(t,e,n={}){var r;let i=c(t,e,"exit"===n.type?null===(r=t.presenceContext)||void 0===r?void 0:r.custom:void 0),{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);let s=i?()=>Promise.all(nn(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=o;return function(t,e,n=0,r=0,i=1,o){let s=[],a=(t.variantChildren.size-1)*r,l=1===i?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(ni).forEach((t,r)=>{t.notify("AnimationStart",e),s.push(nr(t,e,{...o,delay:n+l(r)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(s)}(t,e,i+r,s,a,n)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([s(),a(n.delay)]);{let[t,e]="beforeChildren"===l?[s,a]:[a,s];return t().then(()=>e())}}function ni(t,e){return t.sortNodePosition(e)}let no=h.length,ns=[...d].reverse(),na=d.length;function nl(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nu(){return{animate:nl(!0),whileInView:nl(),whileHover:nl(),whileTap:nl(),whileDrag:nl(),whileFocus:nl(),exit:nl()}}class nc{constructor(t){this.isMounted=!1,this.node=t}update(){}}class nd extends nc{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:n})=>(function(t,e,n={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>nr(t,e,n)));else if("string"==typeof e)r=nr(t,e,n);else{let i="function"==typeof e?c(t,e,n.custom):e;r=Promise.all(nn(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})})(t,e,n))),n=nu(),r=!0,l=e=>(n,r)=>{var i;let o=c(t,r,"exit"===e?null===(i=t.presenceContext)||void 0===i?void 0:i.custom:void 0);if(o){let{transition:t,transitionEnd:e,...r}=o;n={...n,...r,...e}}return n};function u(u){let{props:c}=t,d=function t(e){if(!e)return;if(!e.isControllingVariants){let n=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(n.initial=e.props.initial),n}let n={};for(let t=0;t<no;t++){let r=h[t],i=e.props[r];(a(i)||!1===i)&&(n[r]=i)}return n}(t.parent)||{},f=[],p=new Set,m={},v=1/0;for(let e=0;e<na;e++){var g;let h=ns[e],y=n[h],x=void 0!==c[h]?c[h]:d[h],b=a(x),w=h===u?y.isActive:null;!1===w&&(v=e);let S=x===d[h]&&x!==c[h]&&b;if(S&&r&&t.manuallyAnimateOnMount&&(S=!1),y.protectedKeys={...m},!y.isActive&&null===w||!x&&!y.prevProp||i(x)||"boolean"==typeof x)continue;let P=(g=y.prevProp,"string"==typeof x?x!==g:!!Array.isArray(x)&&!s(x,g)),C=P||h===u&&y.isActive&&!S&&b||e>v&&b,E=!1,T=Array.isArray(x)?x:[x],k=T.reduce(l(h),{});!1===w&&(k={});let{prevResolvedValues:A={}}=y,M={...A,...k},R=e=>{C=!0,p.has(e)&&(E=!0,p.delete(e)),y.needsAnimating[e]=!0;let n=t.getValue(e);n&&(n.liveStyle=!1)};for(let t in M){let e=k[t],n=A[t];if(!m.hasOwnProperty(t))(o(e)&&o(n)?s(e,n):e===n)?void 0!==e&&p.has(t)?R(t):y.protectedKeys[t]=!0:null!=e?R(t):p.add(t)}y.prevProp=x,y.prevResolvedValues=k,y.isActive&&(m={...m,...k}),r&&t.blockInitialAnimation&&(C=!1);let j=!(S&&P)||E;C&&j&&f.push(...T.map(t=>({animation:t,options:{type:h}})))}if(p.size){let e={};p.forEach(n=>{let r=t.getBaseTarget(n),i=t.getValue(n);i&&(i.liveStyle=!0),e[n]=null!=r?r:null}),f.push({animation:e})}let y=!!f.length;return r&&(!1===c.initial||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(y=!1),r=!1,y?e(f):Promise.resolve()}return{animateChanges:u,setActive:function(e,r){var i;if(n[e].isActive===r)return Promise.resolve();null===(i=t.variantChildren)||void 0===i||i.forEach(t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,r)}),n[e].isActive=r;let o=u(e);for(let t in n)n[t].protectedKeys={};return o},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=nu(),r=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();i(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}let nh=0;class nf extends nc{constructor(){super(...arguments),this.id=nh++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;let r=this.node.animationState.setActive("exit",!t);e&&!t&&r.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}let np=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function nm(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}let nv=t=>e=>np(e)&&t(e,nm(e));function ng(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function ny(t,e,n,r){return ng(t,e,nv(n),r)}let nx=(t,e)=>Math.abs(t-e);class nb{constructor(t,e,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=nP(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(t=n.offset,e={x:0,y:0},Math.sqrt(nx(t.x,e.x)**2+nx(t.y,e.y)**2)>=3);if(!r&&!i)return;let{point:o}=n,{timestamp:s}=V;this.history.push({...o,timestamp:s});let{onStart:a,onMove:l}=this.handlers;r||(a&&a(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=nw(e,this.transformPagePoint),D.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=nP("pointercancel"===t.type?this.lastMoveEventInfo:nw(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),r&&r(t,o)},!np(t))return;this.dragSnapToOrigin=i,this.handlers=e,this.transformPagePoint=n,this.contextWindow=r||window;let o=nw(nm(t),this.transformPagePoint),{point:s}=o,{timestamp:a}=V;this.history=[{...s,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,nP(o,this.history)),this.removeListeners=eg(ny(this.contextWindow,"pointermove",this.handlePointerMove),ny(this.contextWindow,"pointerup",this.handlePointerUp),ny(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),F(this.updatePoint)}}function nw(t,e){return e?{point:e(t.point)}:t}function nS(t,e){return{x:t.x-e.x,y:t.y-e.y}}function nP({point:t},e){return{point:t,delta:nS(t,nC(e)),offset:nS(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null,i=nC(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>m(.1)));)n--;if(!r)return{x:0,y:0};let o=v(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};let s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e,0)}}function nC(t){return t[t.length-1]}function nE(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let nT=nE("dragHorizontal"),nk=nE("dragVertical");function nA(t){let e=!1;if("y"===t)e=nk();else if("x"===t)e=nT();else{let t=nT(),n=nk();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function nM(){let t=nA(!0);return!t||(t(),!1)}function nR(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function nj(t){return t.max-t.min}function nO(t,e,n,r=.5){t.origin=r,t.originPoint=ex(e.min,e.max,t.origin),t.scale=nj(n)/nj(e),t.translate=ex(n.min,n.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function nD(t,e,n,r){nO(t.x,e.x,n.x,r?r.originX:void 0),nO(t.y,e.y,n.y,r?r.originY:void 0)}function nF(t,e,n){t.min=n.min+e.min,t.max=t.min+nj(e)}function nV(t,e,n){t.min=e.min-n.min,t.max=t.min+nj(e)}function nL(t,e,n){nV(t.x,e.x,n.x),nV(t.y,e.y,n.y)}function nN(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function nI(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function nB(t,e,n){return{min:n_(t,e),max:n_(t,n)}}function n_(t,e){return"number"==typeof t?t:t[e]||0}let nW=()=>({translate:0,scale:1,origin:0,originPoint:0}),nU=()=>({x:nW(),y:nW()}),nz=()=>({min:0,max:0}),nH=()=>({x:nz(),y:nz()});function n$(t){return[t("x"),t("y")]}function nZ({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function nq(t){return void 0===t||1===t}function nY({scale:t,scaleX:e,scaleY:n}){return!nq(t)||!nq(e)||!nq(n)}function nK(t){return nY(t)||nG(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function nG(t){var e,n;return(e=t.x)&&"0%"!==e||(n=t.y)&&"0%"!==n}function nX(t,e,n,r,i){return void 0!==i&&(t=r+i*(t-r)),r+n*(t-r)+e}function nQ(t,e=0,n=1,r,i){t.min=nX(t.min,e,n,r,i),t.max=nX(t.max,e,n,r,i)}function nJ(t,{x:e,y:n}){nQ(t.x,e.translate,e.scale,e.originPoint),nQ(t.y,n.translate,n.scale,n.originPoint)}function n0(t,e){t.min=t.min+e,t.max=t.max+e}function n1(t,e,n,r,i=.5){let o=ex(t.min,t.max,i);nQ(t,e,n,o,r)}function n5(t,e){n1(t.x,e.x,e.scaleX,e.scale,e.originX),n1(t.y,e.y,e.scaleY,e.scale,e.originY)}function n6(t,e){return nZ(function(t,e){if(!e)return t;let n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}let n2=({current:t})=>t?t.ownerDocument.defaultView:null,n9=new WeakMap;class n4{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=nH(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new nb(t,{onSessionStart:t=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(nm(t,"page").point)},onStart:(t,e)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=nA(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),n$(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tu.test(e)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[t];if(r){let t=nj(r);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),i&&D.postRender(()=>i(t,e)),ne(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:s}=e;if(r&&null===this.currentDirection){this.currentDirection=function(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}(s),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>n$(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:n2(this.visualElement)})}stop(t,e){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=e;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&D.postRender(()=>i(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){let{drag:r}=this.getProps();if(!n||!n3(t,r,this.currentDirection))return;let i=this.getAxisMotionValue(t),o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},r){return void 0!==e&&t<e?t=r?ex(e,t,r.min):Math.max(t,e):void 0!==n&&t>n&&(t=r?ex(n,t,r.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,i=this.constraints;e&&nR(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(t,{top:e,left:n,bottom:r,right:i}){return{x:nN(t.x,n,i),y:nN(t.y,e,r)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:nB(t,"left","right"),y:nB(t,"top","bottom")}}(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&n$(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(r.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!nR(e))return!1;let r=e.current;(0,K.k)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(t,e,n){let r=n6(t,n),{scroll:i}=e;return i&&(n0(r.x,i.offset.x),n0(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),s={x:nI((t=i.layout.layoutBox).x,o.x),y:nI(t.y,o.y)};if(n){let t=n(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(s));this.hasMutatedConstraints=!!t,t&&(s=nZ(t))}return s}startAnimation(t){let{drag:e,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(n$(s=>{if(!n3(s,e,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?t[s]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(t,e){let n=this.getAxisMotionValue(t);return ne(this.visualElement,t),n.start(eQ(t,n,0,e,this.visualElement,!1))}stopAnimation(){n$(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){n$(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps();return n[e]||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){n$(e=>{let{drag:n}=this.getProps();if(!n3(e,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(e);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[e];i.set(t[e]-ex(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!nR(e)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};n$(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let n=e.get();r[t]=function(t,e){let n=.5,r=nj(t),i=nj(e);return i>r?n=ey(e.min,e.max-r,t.min):r>i&&(n=ey(t.min,t.max-i,e.min)),tr(0,1,n)}({min:n,max:n},this.constraints[t])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),n$(e=>{if(!n3(e,t,null))return;let n=this.getAxisMotionValue(e),{min:i,max:o}=this.constraints[e];n.set(ex(i,o,r[e]))})}addListeners(){if(!this.visualElement.current)return;n9.set(this.visualElement,this);let t=ny(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();nR(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),D.read(e);let i=ng(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(n$(e=>{let n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{i(),t(),r(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:s}}}function n3(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}class n8 extends nc{constructor(t){super(t),this.removeGroupControls=R.Z,this.removeListeners=R.Z,this.controls=new n4(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||R.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let n7=t=>(e,n)=>{t&&D.postRender(()=>t(e,n))};class rt extends nc{constructor(){super(...arguments),this.removePointerDownListener=R.Z}onPointerDown(t){this.session=new nb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:n2(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:n7(t),onStart:n7(e),onMove:n,onEnd:(t,e)=>{delete this.session,r&&D.postRender(()=>r(t,e))}}}mount(){this.removePointerDownListener=ny(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var re=n(12661),rn=n(40690),rr=n(43193),ri=n(61335);let ro=(0,rn.createContext)({}),rs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ra(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let rl={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!tc.test(t))return t;t=parseFloat(t)}let n=ra(t,e.target.x),r=ra(t,e.target.y);return`${n}% ${r}%`}},ru={},{schedule:rc,cancel:rd}=O(queueMicrotask,!1);class rh extends rn.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=t;Object.assign(ru,rp),i&&(e.group&&e.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),rs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,r||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent===i||(i?o.promote():o.relegate()||D.postRender(()=>{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),rc.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function rf(t){let[e,n]=(0,rr.oO)(),r=(0,rn.useContext)(ri.p);return(0,re.jsx)(rh,{...t,layoutGroup:r,switchLayoutGroup:(0,rn.useContext)(ro),isPresent:e,safeToRemove:n})}let rp={borderRadius:{...rl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rl,borderTopRightRadius:rl,borderBottomLeftRadius:rl,borderBottomRightRadius:rl,boxShadow:{correct:(t,{treeScale:e,projectionDelta:n})=>{let r=tK.parse(t);if(r.length>5)return t;let i=tK.createTransformer(t),o="number"!=typeof r[0]?1:0,s=n.x.scale*e.x,a=n.y.scale*e.y;r[0+o]/=s,r[1+o]/=a;let l=ex(s,a,.5);return"number"==typeof r[2+o]&&(r[2+o]/=l),"number"==typeof r[3+o]&&(r[3+o]/=l),i(r)}}},rm=["TopLeft","TopRight","BottomLeft","BottomRight"],rv=rm.length,rg=t=>"string"==typeof t?parseFloat(t):t,ry=t=>"number"==typeof t||tc.test(t);function rx(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rb=rS(0,.5,Z),rw=rS(.5,.95,R.Z);function rS(t,e,n){return r=>r<t?0:r>e?1:n(ey(t,e,r))}function rP(t,e){t.min=e.min,t.max=e.max}function rC(t,e){rP(t.x,e.x),rP(t.y,e.y)}function rE(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function rT(t,e,n,r,i){return t-=e,t=r+1/n*(t-r),void 0!==i&&(t=r+1/i*(t-r)),t}function rk(t,e,[n,r,i],o,s){!function(t,e=0,n=1,r=.5,i,o=t,s=t){if(tu.test(e)&&(e=parseFloat(e),e=ex(s.min,s.max,e/100)-s.min),"number"!=typeof e)return;let a=ex(o.min,o.max,r);t===o&&(a-=e),t.min=rT(t.min,e,n,a,i),t.max=rT(t.max,e,n,a,i)}(t,e[n],e[r],e[i],e.scale,o,s)}let rA=["x","scaleX","originX"],rM=["y","scaleY","originY"];function rR(t,e,n,r){rk(t.x,e,rA,n?n.x:void 0,r?r.x:void 0),rk(t.y,e,rM,n?n.y:void 0,r?r.y:void 0)}function rj(t){return 0===t.translate&&1===t.scale}function rO(t){return rj(t.x)&&rj(t.y)}function rD(t,e){return t.min===e.min&&t.max===e.max}function rF(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rV(t,e){return rF(t.x,e.x)&&rF(t.y,e.y)}function rL(t){return nj(t.x)/nj(t.y)}function rN(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class rI{constructor(){this.members=[]}add(t){e1(this.members,t),t.scheduleRender()}remove(t){if(e5(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let n=this.members.findIndex(e=>t===e);if(0===n)return!1;for(let t=n;t>=0;t--){let n=this.members[t];if(!1!==n.isPresent){e=n;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:r}=t.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let rB=(t,e)=>t.depth-e.depth;class r_{constructor(){this.children=[],this.isDirty=!1}add(t){e1(this.children,t),this.isDirty=!0}remove(t){e5(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rB),this.isDirty=!1,this.children.forEach(t)}}function rW(t){let e=nt(t)?t.get():t;return eJ(e)?e.toValue():e}let rU={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},rz="undefined"!=typeof window&&void 0!==window.MotionDebug,rH=["","X","Y","Z"],r$={visibility:"hidden"},rZ=0;function rq(t,e,n,r){let{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function rY({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(t={},n=null==e?void 0:e()){this.id=rZ++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,rz&&(rU.totalNodes=rU.resolvedTargetDeltas=rU.recalculatedProjection=0),this.nodes.forEach(rX),this.nodes.forEach(r2),this.nodes.forEach(r9),this.nodes.forEach(rQ),rz&&window.MotionDebug.record(rU)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new r_)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new e6),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,n=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:r,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||r)&&(this.isLayoutDirty=!0),t){let n;let r=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){let n=t7.now(),r=({timestamp:e})=>{let i=e-n;i>=250&&(F(r),t(i-250))};return D.read(r,!0),()=>F(r)}(r,0),rs.hasAnimatedSinceResize&&(rs.hasAnimatedSinceResize=!1,this.nodes.forEach(r6))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&o&&(r||i)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||o.getDefaultTransition()||ie,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!rV(this.targetLayout,r)||n,u=!e&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...S(i,"layout"),onPlay:s,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||r6(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,F(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(r4),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:n}=e.options;if(!n)return;let r=n.props[e7];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:t,layoutId:n}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",D,!(t||n))}let{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&t(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(r0);return}this.isUpdating||this.nodes.forEach(r1),this.isUpdating=!1,this.nodes.forEach(r5),this.nodes.forEach(rK),this.nodes.forEach(rG),this.clearAllSnapshots();let t=t7.now();V.delta=tr(0,1e3/60,t-V.timestamp),V.timestamp=t,V.isProcessing=!0,L.update.process(V),L.preRender.process(V),L.render.process(V),V.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,rc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rJ),this.sharedNodes.forEach(r3)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,D.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){D.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=nH(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=r(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!i)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!rO(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;t&&(e||nK(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let n=this.measurePageBox(),r=this.removeElementScroll(n);return t&&(r=this.removeTransform(r)),io((e=r).x),io(e.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return nH();let n=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(ia))){let{scroll:t}=this.root;t&&(n0(n.x,t.offset.x),n0(n.y,t.offset.y))}return n}removeElementScroll(t){var e;let n=nH();if(rC(n,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return n;for(let e=0;e<this.path.length;e++){let r=this.path[e],{scroll:i,options:o}=r;r!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&rC(n,t),n0(n.x,i.offset.x),n0(n.y,i.offset.y))}return n}applyTransform(t,e=!1){let n=nH();rC(n,t);for(let t=0;t<this.path.length;t++){let r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&n5(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),nK(r.latestValues)&&n5(n,r.latestValues)}return nK(this.latestValues)&&n5(n,this.latestValues),n}removeTransform(t){let e=nH();rC(e,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];if(!n.instance||!nK(n.latestValues))continue;nY(n.latestValues)&&n.updateSnapshot();let r=nH();rC(r,n.measurePageBox()),rR(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return nK(this.latestValues)&&rR(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==V.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,n,r,i;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let s=!!this.resumingFrom||this!==o;if(!(t||s&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=V.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nH(),this.relativeTargetOrigin=nH(),nL(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),rC(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=nH(),this.targetWithTransforms=nH()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),n=this.target,r=this.relativeTarget,i=this.relativeParent.target,nF(n.x,r.x,i.x),nF(n.y,r.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rC(this.target,this.layout.layoutBox),nJ(this.target,this.targetDelta)):rC(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nH(),this.relativeTargetOrigin=nH(),nL(this.relativeTargetOrigin,this.target,t.target),rC(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}rz&&rU.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||nY(this.parent.latestValues)||nG(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),n=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===V.timestamp&&(r=!1),r)return;let{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||o))return;rC(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(t,e,n,r=!1){let i,o;let s=n.length;if(s){e.x=e.y=1;for(let a=0;a<s;a++){o=(i=n[a]).projectionDelta;let{visualElement:s}=i.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&n5(t,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,nJ(t,o)),r&&nK(i.latestValues)&&n5(t,i.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,n),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=nH());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rE(this.prevProjectionDelta.x,this.projectionDelta.x),rE(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nD(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&rN(this.projectionDelta.x,this.prevProjectionDelta.x)&&rN(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),rz&&rU.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=nU(),this.projectionDelta=nU(),this.projectionDeltaWithTransform=nU()}setAnimationOrigin(t,e=!1){let n;let r=this.snapshot,i=r?r.latestValues:{},o={...this.latestValues},s=nU();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=nH(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(it));this.animationProgress=0,this.mixTargetDelta=e=>{let r=e/1e3;if(r8(s.x,t.x,r),r8(s.y,t.y,r),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,h,f,p;nL(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,r7(f.x,p.x,a.x,r),r7(f.y,p.y,a.y,r),n&&(u=this.relativeTarget,h=n,rD(u.x,h.x)&&rD(u.y,h.y))&&(this.isProjectionDirty=!1),n||(n=nH()),rC(n,this.relativeTarget)}l&&(this.animationValues=o,function(t,e,n,r,i,o){i?(t.opacity=ex(0,void 0!==n.opacity?n.opacity:1,rb(r)),t.opacityExit=ex(void 0!==e.opacity?e.opacity:1,0,rw(r))):o&&(t.opacity=ex(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let i=0;i<rv;i++){let o=`border${rm[i]}Radius`,s=rx(e,o),a=rx(n,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||ry(s)===ry(a)?(t[o]=Math.max(ex(rg(s),rg(a),r),0),(tu.test(a)||tu.test(s))&&(t[o]+="%")):t[o]=a)}(e.rotate||n.rotate)&&(t.rotate=ex(e.rotate||0,n.rotate||0,r))}(o,i,this.latestValues,r,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(F(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=D.update(()=>{rs.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){let r=nt(0)?0:e3(0);return r.start(eQ("",r,1e3,n)),r.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:n,layout:r,latestValues:i}=t;if(e&&n&&r){if(this!==t&&this.layout&&r&&is(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||nH();let e=nj(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;let r=nj(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+r}rC(e,n),n5(e,i),nD(this.projectionDeltaWithTransform,this.layoutCorrected,e,i)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rI),this.sharedNodes.get(t).add(e);let n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;let r={};n.z&&rq("z",t,r,this.animationValues);for(let e=0;e<rH.length;e++)rq(`rotate${rH[e]}`,t,r,this.animationValues),rq(`skew${rH[e]}`,t,r,this.animationValues);for(let e in t.render(),r)t.setStaticValue(e,r[e]),this.animationValues&&(this.animationValues[e]=r[e]);t.scheduleRender()}getProjectionStyles(t){var e,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return r$;let r={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=rW(null==t?void 0:t.pointerEvents)||"",r.transform=i?i(this.latestValues,""):"none",r;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=rW(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!nK(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1),e}let s=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=function(t,e,n){let r="",i=t.x.translate/e.x,o=t.y.translate/e.y,s=(null==n?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(1!==e.x||1!==e.y)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){let{transformPerspective:t,rotate:e,rotateX:i,rotateY:o,skewX:s,skewY:a}=n;t&&(r=`perspective(${t}px) ${r}`),e&&(r+=`rotate(${e}deg) `),i&&(r+=`rotateX(${i}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),a&&(r+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,s),i&&(r.transform=i(s,r.transform));let{x:a,y:l}=this.projectionDelta;for(let t in r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?r.opacity=o===this?null!==(n=null!==(e=s.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=o===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,ru){if(void 0===s[t])continue;let{correct:e,applyTo:n}=ru[t],i="none"===r.transform?s[t]:e(s[t],o);if(n){let t=n.length;for(let e=0;e<t;e++)r[n[e]]=i}else r[t]=i}return this.options.layoutId&&(r.pointerEvents=o===this?rW(null==t?void 0:t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(r0),this.root.sharedNodes.clear()}}}function rK(t){t.updateLayout()}function rG(t){var e;let n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:r}=t.layout,{animationType:i}=t.options,o=n.source!==t.layout.source;"size"===i?n$(t=>{let r=o?n.measuredBox[t]:n.layoutBox[t],i=nj(r);r.min=e[t].min,r.max=r.min+i}):is(i,n.layoutBox,e)&&n$(r=>{let i=o?n.measuredBox[r]:n.layoutBox[r],s=nj(e[r]);i.max=i.min+s,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+s)});let s=nU();nD(s,e,n.layoutBox);let a=nU();o?nD(a,t.applyTransform(r,!0),n.measuredBox):nD(a,e,n.layoutBox);let l=!rO(s),u=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let s=nH();nL(s,n.layoutBox,i.layoutBox);let a=nH();nL(a,e,o.layoutBox),rV(s,a)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=s,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function rX(t){rz&&rU.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function rQ(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function rJ(t){t.clearSnapshot()}function r0(t){t.clearMeasurements()}function r1(t){t.isLayoutDirty=!1}function r5(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function r6(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function r2(t){t.resolveTargetDelta()}function r9(t){t.calcProjection()}function r4(t){t.resetSkewAndRotation()}function r3(t){t.removeLeadSnapshot()}function r8(t,e,n){t.translate=ex(e.translate,0,n),t.scale=ex(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function r7(t,e,n,r){t.min=ex(e.min,n.min,r),t.max=ex(e.max,n.max,r)}function it(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ie={duration:.45,ease:[.4,0,.1,1]},ir=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ii=ir("applewebkit/")&&!ir("chrome/")?Math.round:R.Z;function io(t){t.min=ii(t.min),t.max=ii(t.max)}function is(t,e,n){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(rL(e)-rL(n)))}function ia(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}let il=rY({attachResizeListener:(t,e)=>ng(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),iu={current:void 0},ic=rY({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!iu.current){let t=new il({});t.mount(window),t.setOptions({layoutScroll:!0}),iu.current=t}return iu.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function id(t,e){let n=e?"onHoverStart":"onHoverEnd";return ny(t.current,e?"pointerenter":"pointerleave",(r,i)=>{if("touch"===r.pointerType||nM())return;let o=t.getProps();t.animationState&&o.whileHover&&t.animationState.setActive("whileHover",e);let s=o[n];s&&D.postRender(()=>s(r,i))},{passive:!t.getProps()[n]})}class ih extends nc{mount(){this.unmount=eg(id(this.node,!0),id(this.node,!1))}unmount(){}}class ip extends nc{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){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=eg(ng(this.node.current,"focus",()=>this.onFocus()),ng(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let im=(t,e)=>!!e&&(t===e||im(t,e.parentElement));function iv(t,e){if(!e)return;let n=new PointerEvent("pointer"+t);e(n,nm(n))}class ig extends nc{constructor(){super(...arguments),this.removeStartListeners=R.Z,this.removeEndListeners=R.Z,this.removeAccessibleListeners=R.Z,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let n=this.node.getProps(),r=ny(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:r,globalTapTarget:i}=this.node.getProps(),o=i||im(this.node.current,t.target)?n:r;o&&D.update(()=>o(t,e))},{passive:!(n.onTap||n.onPointerUp)}),i=ny(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=eg(r,i),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=ng(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=ng(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&iv("up",(t,e)=>{let{onTap:n}=this.node.getProps();n&&D.postRender(()=>n(t,e))})}),iv("down",(t,e)=>{this.startPress(t,e)}))}),e=ng(this.node.current,"blur",()=>{this.isPressing&&iv("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=eg(t,e)}}startPress(t,e){this.isPressing=!0;let{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&D.postRender(()=>n(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!nM()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&D.postRender(()=>n(t,e))}mount(){let t=this.node.getProps(),e=ny(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=ng(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=eg(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let iy=new WeakMap,ix=new WeakMap,ib=t=>{let e=iy.get(t.target);e&&e(t)},iw=t=>{t.forEach(ib)},iS={some:0,all:1};class iP extends nc{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:r="some",once:i}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:iS[r]};return function(t,e,n){let r=function({root:t,...e}){let n=t||document;ix.has(n)||ix.set(n,{});let r=ix.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(iw,{root:t,...e})),r[i]}(e);return iy.set(t,n),r.observe(t),()=>{iy.delete(t),r.unobserve(t)}}(this.node.current,o,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,i&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=e?n:r;o&&o(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}var iC=n(77046);let iE=(0,rn.createContext)({});var iT=n(9193),ik=n(73576);let iA=(0,rn.createContext)({strict:!1});function iM(t){return i(t.animate)||h.some(e=>a(t[e]))}function iR(t){return!!(iM(t)||t.variants)}function ij(t){return Array.isArray(t)?t.join(" "):t}let iO={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"]},iD={};for(let t in iO)iD[t]={isEnabled:e=>iO[t].some(t=>!!e[t])};var iF=n(16047);let iV=Symbol.for("motionComponentSymbol"),iL=["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 iN(t){if("string"!=typeof t||t.includes("-"));else if(iL.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}function iI(t,{style:e,vars:n},r,i){for(let o in Object.assign(t.style,e,i&&i.getProjectionStyles(r)),n)t.style.setProperty(o,n[o])}let iB=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 i_(t,e,n,r){for(let n in iI(t,e,void 0,r),e.attrs)t.setAttribute(iB.has(n)?n:e8(n),e.attrs[n])}function iW(t,{layout:e,layoutId:n}){return p.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!ru[t]||"opacity"===t)}function iU(t,e,n){var r;let{style:i}=t,o={};for(let s in i)(nt(i[s])||e.style&&nt(e.style[s])||iW(s,t)||(null===(r=null==n?void 0:n.getValue(s))||void 0===r?void 0:r.liveStyle)!==void 0)&&(o[s]=i[s]);return n&&i&&"string"==typeof i.willChange&&(n.applyWillChange=!1),o}function iz(t,e,n){let r=iU(t,e,n);for(let n in t)(nt(t[n])||nt(e[n]))&&(r[-1!==f.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=t[n]);return r}var iH=n(51588);let i$=t=>(e,n)=>{let r=(0,rn.useContext)(iE),o=(0,rn.useContext)(iT.O),s=()=>(function({applyWillChange:t=!1,scrapeMotionValuesFromProps:e,createRenderState:n,onMount:r},o,s,a,l){let u={latestValues:function(t,e,n,r,o){var s;let a={},l=new Set,u=r&&(null===(s=t.style)||void 0===s?void 0:s.willChange)===void 0,c=o(t,{});for(let t in c)a[t]=rW(c[t]);let{initial:d,animate:h}=t,f=iM(t),m=iR(t);e&&m&&!f&&!1!==t.inherit&&(void 0===d&&(d=e.initial),void 0===h&&(h=e.animate));let v=!!n&&!1===n.initial,g=(v=v||!1===d)?h:d;return g&&"boolean"!=typeof g&&!i(g)&&iZ(t,g,(t,e)=>{for(let e in t){let n=t[e];if(Array.isArray(n)){let t=v?n.length-1:0;n=n[t]}null!==n&&(a[e]=n)}for(let t in e)a[t]=e[t]}),u&&(h&&!1!==d&&!i(h)&&iZ(t,h,t=>{for(let e in t){let t=p.has(e)?"transform":eB.has(e)?e8(e):void 0;t&&l.add(t)}}),l.size&&(a.willChange=Array.from(l).join(","))),a}(o,s,a,!l&&t,e),renderState:n()};return r&&(u.mount=t=>r(o,t,u)),u})(t,e,r,o,n);return n?s():(0,iH.h)(s)};function iZ(t,e,n){let r=Array.isArray(e)?e:[e];for(let e=0;e<r.length;e++){let i=u(t,r[e]);if(i){let{transitionEnd:t,transition:e,...r}=i;n(r,t)}}}let iq=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),iY=()=>({...iq(),attrs:{}}),iK=(t,e)=>e&&"number"==typeof t?e.transform(t):t,iG={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iX=f.length;function iQ(t,e,n){let{style:r,vars:i,transformOrigin:o}=t,s=!1,a=!1;for(let t in e){let n=e[t];if(p.has(t)){s=!0;continue}if(Q(t)){i[t]=n;continue}{let e=iK(n,t1[t]);t.startsWith("origin")?(a=!0,o[t]=e):r[t]=e}}if(!e.transform&&(s||n?r.transform=function(t,e,n){let r="",i=!0;for(let o=0;o<iX;o++){let s=f[o],a=t[s];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===(s.startsWith("scale")?1:0):0===parseFloat(a))||n){let t=iK(a,t1[s]);if(!l){i=!1;let e=iG[s]||s;r+=`${e}(${t}) `}n&&(e[s]=t)}}return r=r.trim(),n?r=n(e,i?"":r):i&&(r="none"),r}(e,t.transform,n):r.transform&&(r.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:n=0}=o;r.transformOrigin=`${t} ${e} ${n}`}}function iJ(t,e,n){return"string"==typeof t?t:tc.transform(e+n*t)}let i0={offset:"stroke-dashoffset",array:"stroke-dasharray"},i1={offset:"strokeDashoffset",array:"strokeDasharray"};function i5(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d){if(iQ(t,u,d),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:h,style:f,dimensions:p}=t;h.transform&&(p&&(f.transform=h.transform),delete h.transform),p&&(void 0!==i||void 0!==o||f.transform)&&(f.transformOrigin=function(t,e,n){let r=iJ(e,t.x,t.width),i=iJ(n,t.y,t.height);return`${r} ${i}`}(p,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==e&&(h.x=e),void 0!==n&&(h.y=n),void 0!==r&&(h.scale=r),void 0!==s&&function(t,e,n=1,r=0,i=!0){t.pathLength=1;let o=i?i0:i1;t[o.offset]=tc.transform(-r);let s=tc.transform(e),a=tc.transform(n);t[o.array]=`${s} ${a}`}(h,s,a,l,!1)}let i6=t=>"string"==typeof t&&"svg"===t.toLowerCase(),i2={useVisualState:i$({scrapeMotionValuesFromProps:iz,createRenderState:iY,onMount:(t,e,{renderState:n,latestValues:r})=>{D.read(()=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}}),D.render(()=>{i5(n,r,i6(e.tagName),t.transformTemplate),i_(e,n)})}})},i9={useVisualState:i$({applyWillChange:!0,scrapeMotionValuesFromProps:iU,createRenderState:iq})};function i4(t,e,n){for(let r in e)nt(e[r])||iW(r,n)||(t[r]=e[r])}var i3=n(7966);let i8=t=>!(0,i3.Z)(t);try{(k=n(67148).Z)&&(i8=t=>t.startsWith("on")?!(0,i3.Z)(t):k(t))}catch(t){}let i7={current:null},ot={current:!1},oe=new WeakMap,on=[...tS,t_,tK],or=t=>on.find(tw(t)),oi=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class oo{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},s={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tM,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=t7.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,D.render(this.render,!1,!0))};let{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=iM(e),this.isVariantNode=iR(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:u,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in c){let e=c[t];void 0!==a[t]&&nt(e)&&e.set(a[t],!1)}}mount(t){this.current=t,oe.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((t,e)=>this.bindToMotionValue(e,t)),ot.current||function(){if(ot.current=!0,iF.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>i7.current=t.matches;t.addListener(e),e()}else i7.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||i7.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in oe.delete(this.current),this.projection&&this.projection.unmount(),F(this.notifyUpdate),F(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let n;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let r=p.has(t),i=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&D.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{i(),o(),n&&n(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in iD){let e=iD[t];if(!e)continue;let{isEnabled:n,Feature:r}=e;if(!this.features[t]&&r&&n(this.props)&&(this.features[t]=new r(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):nH()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<oi.length;e++){let n=oi[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=t["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(t,e,n){for(let r in e){let i=e[r],o=n[r];if(nt(i))t.addValue(r,i);else if(nt(o))t.addValue(r,e3(i,{owner:t}));else if(o!==i){if(t.hasValue(r)){let e=t.getValue(r);!0===e.liveStyle?e.jump(i):e.hasAnimated||e.set(i)}else{let e=t.getStaticValue(r);t.addValue(r,e3(void 0!==e?e:i,{owner:t}))}}}for(let r in n)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=e3(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){var n;let r=void 0===this.latestValues[t]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,t))&&void 0!==n?n:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=r&&("string"==typeof r&&(G(r)||Y(r))?r=parseFloat(r):!or(r)&&tK.test(e)&&(r=t2(t,e)),this.setBaseTarget(t,nt(r)?r.get():r)),nt(r)?r.get():r}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let n;let{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let i=u(this.props,r,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);i&&(n=i[t])}if(r&&void 0!==n)return n;let i=this.getBaseTargetFromProps(this.props,t);return void 0===i||nt(i)?void 0!==this.initialValues[t]&&void 0===n?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new e6),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class os extends oo{constructor(){super(...arguments),this.KeyframeResolver=t4}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}}class oa extends os{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=iI}readValueFromInstance(t,e){if(p.has(e)){let t=t6(e);return t&&t.default||0}{let n=window.getComputedStyle(t),r=(Q(e)?n.getPropertyValue(e):n[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return n6(t,e)}build(t,e,n){iQ(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return iU(t,e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;nt(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class ol extends os{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=nH}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(p.has(e)){let t=t6(e);return t&&t.default||0}return e=iB.has(e)?e:e8(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return iz(t,e,n)}build(t,e,n){i5(t,e,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,n,r){i_(t,e,n,r)}mount(t){this.isSVGTag=i6(t.tagName),super.mount(t)}}let ou=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(n,r)=>"create"===r?t:(e.has(r)||e.set(r,t(r)),e.get(r))})}((A={animation:{Feature:nd},exit:{Feature:nf},inView:{Feature:iP},tap:{Feature:ig},focus:{Feature:ip},hover:{Feature:ih},pan:{Feature:rt},drag:{Feature:n8,ProjectionNode:ic,MeasureLayout:rf},layout:{ProjectionNode:ic,MeasureLayout:rf}},M=(t,e)=>iN(t)?new ol(e):new oa(e,{allowProjection:t!==rn.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function(t){let{preloadedFeatures:e,createVisualElement:n,useRender:r,useVisualState:i,Component:o}=t;e&&function(t){for(let e in t)iD[e]={...iD[e],...t[e]}}(e);let s=(0,rn.forwardRef)(function(t,e){var s;let l;let u={...(0,rn.useContext)(iC._),...t,layoutId:function(t){let{layoutId:e}=t,n=(0,rn.useContext)(ri.p).id;return n&&void 0!==e?n+"-"+e:e}(t)},{isStatic:c}=u,d=function(t){let{initial:e,animate:n}=function(t,e){if(iM(t)){let{initial:e,animate:n}=t;return{initial:!1===e||a(e)?e:void 0,animate:a(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,rn.useContext)(iE));return(0,rn.useMemo)(()=>({initial:e,animate:n}),[ij(e),ij(n)])}(t),h=i(t,c);if(!c&&iF.j){(0,rn.useContext)(iA).strict;let t=function(t){let{drag:e,layout:n}=iD;if(!e&&!n)return{};let r={...e,...n};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==n?void 0:n.isEnabled(t))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(u);l=t.MeasureLayout,d.visualElement=function(t,e,n,r,i){var o,s;let{visualElement:a}=(0,rn.useContext)(iE),l=(0,rn.useContext)(iA),u=(0,rn.useContext)(iT.O),c=(0,rn.useContext)(iC._).reducedMotion,d=(0,rn.useRef)();r=r||l.renderer,!d.current&&r&&(d.current=r(t,{visualState:e,parent:a,props:n,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:c}));let h=d.current,f=(0,rn.useContext)(ro);h&&!h.projection&&i&&("html"===h.type||"svg"===h.type)&&function(t,e,n,r){let{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&nR(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}(d.current,n,i,f),(0,rn.useInsertionEffect)(()=>{h&&h.update(n,u)});let p=n[e7],m=(0,rn.useRef)(!!p&&!(null===(o=window.MotionHandoffIsComplete)||void 0===o?void 0:o.call(window,p))&&(null===(s=window.MotionHasOptimisedAnimation)||void 0===s?void 0:s.call(window,p)));return(0,ik.L)(()=>{h&&(window.MotionIsMounted=!0,h.updateFeatures(),rc.render(h.render),m.current&&h.animationState&&h.animationState.animateChanges())}),(0,rn.useEffect)(()=>{h&&(!m.current&&h.animationState&&h.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,p)}),m.current=!1))}),h}(o,h,u,n,t.ProjectionNode)}return(0,re.jsxs)(iE.Provider,{value:d,children:[l&&d.visualElement?(0,re.jsx)(l,{visualElement:d.visualElement,...u}):null,r(o,t,(s=d.visualElement,(0,rn.useCallback)(t=>{t&&h.mount&&h.mount(t),s&&(t?s.mount(t):s.unmount()),e&&("function"==typeof e?e(t):nR(e)&&(e.current=t))},[s])),h,c,d.visualElement)]})});return s[iV]=o,s}({...iN(t)?i2:i9,preloadedFeatures:A,useRender:function(t=!1){return(e,n,r,{latestValues:i},o)=>{let s=(iN(e)?function(t,e,n,r){let i=(0,rn.useMemo)(()=>{let n=iY();return i5(n,e,i6(r),t.transformTemplate),{...n.attrs,style:{...n.style}}},[e]);if(t.style){let e={};i4(e,t.style,t),i.style={...e,...i.style}}return i}:function(t,e){let n={},r=function(t,e){let n=t.style||{},r={};return i4(r,n,t),Object.assign(r,function({transformTemplate:t},e){return(0,rn.useMemo)(()=>{let n=iq();return iQ(n,e,t),Object.assign({},n.vars,n.style)},[e])}(t,e)),r}(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n})(n,i,o,e),a=function(t,e,n){let r={};for(let i in t)("values"!==i||"object"!=typeof t.values)&&(i8(i)||!0===n&&(0,i3.Z)(i)||!e&&!(0,i3.Z)(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}(n,"string"==typeof e,t),l=e!==rn.Fragment?{...a,...s,ref:r}:{},{children:u}=n,c=(0,rn.useMemo)(()=>nt(u)?u.get():u,[u]);return(0,rn.createElement)(e,{...l,children:c})}}(e),createVisualElement:M,Component:t})}))},61502:function(t,e,n){n.d(e,{K:function(){return i},k:function(){return o}});var r=n(7980);let i=r.Z,o=r.Z},16047:function(t,e,n){n.d(e,{j:function(){return r}});let r="undefined"!=typeof window},7980:function(t,e,n){n.d(e,{Z:function(){return r}});let r=t=>t},51588:function(t,e,n){n.d(e,{h:function(){return i}});var r=n(40690);function i(t){let e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}},73576:function(t,e,n){n.d(e,{L:function(){return i}});var r=n(40690);let i=n(16047).j?r.useLayoutEffect:r.useEffect},32819:function(t,e,n){n.d(e,{ZT:function(){return i},_T:function(){return s},ev:function(){return a},pi:function(){return o}});var r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function s(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function a(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError},42653:function(t,e,n){n.d(e,{q:function(){return a}});var r=n(40690);function i(t,e){return"function"==typeof t?t(e):t&&(t.current=e),t}var o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,s=new WeakMap;function a(t,e){var n,a,l,u=(n=e||null,a=function(e){return t.forEach(function(t){return i(t,e)})},(l=(0,r.useState)(function(){return{value:n,callback:a,facade:{get current(){return l.value},set current(value){var t=l.value;t!==value&&(l.value=value,l.callback(value,t))}}}})[0]).callback=a,l.facade);return o(function(){var e=s.get(u);if(e){var n=new Set(e),r=new Set(t),o=u.current;n.forEach(function(t){r.has(t)||i(t,null)}),r.forEach(function(t){n.has(t)||i(t,o)})}s.set(u,t)},[t]),u}},97594:function(t,e,n){n.d(e,{_:function(){return a},s:function(){return s}});var r=n(32819);function i(t){return t}function o(t,e){void 0===e&&(e=i);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(t){var i=e(t,r);return n.push(i),function(){n=n.filter(function(t){return t!==i})}},assignSyncMedium:function(t){for(r=!0;n.length;){var e=n;n=[],e.forEach(t)}n={push:function(e){return t(e)},filter:function(){return n}}},assignMedium:function(t){r=!0;var e=[];if(n.length){var i=n;n=[],i.forEach(t),e=n}var o=function(){var n=e;e=[],n.forEach(t)},s=function(){return Promise.resolve().then(o)};s(),n={push:function(t){e.push(t),s()},filter:function(t){return e=e.filter(t),n}}}}}function s(t,e){return void 0===e&&(e=i),o(t,e)}function a(t){void 0===t&&(t={});var e=o(null);return e.options=(0,r.pi)({async:!0,ssr:!1},t),e}},9892:function(t,e,n){n.d(e,{Z:function(){return i}});var r=n(57180);function i(t,e,n){return(e=(0,r.Z)(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},69985:function(t,e,n){n.d(e,{Z:function(){return r}});function r(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}},80406:function(t,e,n){n.d(e,{Z:function(){return r}});function r(t,e){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}},57180:function(t,e,n){n.d(e,{Z:function(){return i}});var r=n(34037);function i(t){var e=function(t,e){if("object"!=(0,r.Z)(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=(0,r.Z)(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==(0,r.Z)(e)?e:e+""}},34037:function(t,e,n){n.d(e,{Z:function(){return r}});function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}}}]);