(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[686],{4410:function(t,e,i){"use strict";i.d(e,{VY:function(){return tm},h4:function(){return tp},ck:function(){return td},fC:function(){return th},xz:function(){return tf}});var n=i(2265),r=i.t(n,2),s=i(7437);function o(t,e=[]){let i=[],r=()=>{let e=i.map(t=>n.createContext(t));return function(i){let r=i?.[t]||e;return n.useMemo(()=>({[`__scope${t}`]:{...i,[t]:r}}),[i,r])}};return r.scopeName=t,[function(e,r){let o=n.createContext(r),a=i.length;i=[...i,r];let l=e=>{let{scope:i,children:r,...l}=e,u=i?.[t]?.[a]||o,c=n.useMemo(()=>l,Object.values(l));return(0,s.jsx)(u.Provider,{value:c,children:r})};return l.displayName=e+"Provider",[l,function(i,s){let l=s?.[t]?.[a]||o,u=n.useContext(l);if(u)return u;if(void 0!==r)return r;throw Error(`\`${i}\` must be used within \`${e}\``)}]},function(...t){let e=t[0];if(1===t.length)return e;let i=()=>{let i=t.map(t=>({useScope:t(),scopeName:t.scopeName}));return function(t){let r=i.reduce((e,{useScope:i,scopeName:n})=>{let r=i(t)[`__scope${n}`];return{...e,...r}},{});return n.useMemo(()=>({[`__scope${e.scopeName}`]:r}),[r])}};return i.scopeName=e.scopeName,i}(r,...e)]}function a(...t){return e=>t.forEach(t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)})}function l(...t){return n.useCallback(a(...t),t)}var u=n.forwardRef((t,e)=>{let{children:i,...r}=t,o=n.Children.toArray(i),a=o.find(d);if(a){let t=a.props.children,i=o.map(e=>e!==a?e:n.Children.count(t)>1?n.Children.only(null):n.isValidElement(t)?t.props.children:null);return(0,s.jsx)(c,{...r,ref:e,children:n.isValidElement(t)?n.cloneElement(t,void 0,i):null})}return(0,s.jsx)(c,{...r,ref:e,children:i})});u.displayName="Slot";var c=n.forwardRef((t,e)=>{let{children:i,...r}=t;if(n.isValidElement(i)){let t,s;let o=(t=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?i.ref:(t=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?i.props.ref:i.props.ref||i.ref;return n.cloneElement(i,{...function(t,e){let i={...e};for(let n in e){let r=t[n],s=e[n];/^on[A-Z]/.test(n)?r&&s?i[n]=(...t)=>{s(...t),r(...t)}:r&&(i[n]=r):"style"===n?i[n]={...r,...s}:"className"===n&&(i[n]=[r,s].filter(Boolean).join(" "))}return{...t,...i}}(r,i.props),ref:e?a(e,o):o})}return n.Children.count(i)>1?n.Children.only(null):null});c.displayName="SlotClone";var h=({children:t})=>(0,s.jsx)(s.Fragment,{children:t});function d(t){return n.isValidElement(t)&&t.type===h}function p(t,e,{checkForDefaultPrevented:i=!0}={}){return function(n){if(t?.(n),!1===i||!n.defaultPrevented)return e?.(n)}}function f(t){let e=n.useRef(t);return n.useEffect(()=>{e.current=t}),n.useMemo(()=>(...t)=>e.current?.(...t),[])}function m({prop:t,defaultProp:e,onChange:i=()=>{}}){let[r,s]=function({defaultProp:t,onChange:e}){let i=n.useState(t),[r]=i,s=n.useRef(r),o=f(e);return n.useEffect(()=>{s.current!==r&&(o(r),s.current=r)},[r,s,o]),i}({defaultProp:e,onChange:i}),o=void 0!==t,a=o?t:r,l=f(i);return[a,n.useCallback(e=>{if(o){let i="function"==typeof e?e(t):e;i!==t&&l(i)}else s(e)},[o,t,s,l])]}i(4887);var v=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((t,e)=>{let i=n.forwardRef((t,i)=>{let{asChild:n,...r}=t,o=n?u:e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(o,{...r,ref:i})});return i.displayName=`Primitive.${e}`,{...t,[e]:i}},{}),g=globalThis?.document?n.useLayoutEffect:()=>{},y=t=>{var e,i;let r,s;let{present:o,children:a}=t,u=function(t){var e,i;let[r,s]=n.useState(),o=n.useRef({}),a=n.useRef(t),l=n.useRef("none"),[u,c]=(e=t?"mounted":"unmounted",i={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((t,e)=>{let n=i[t][e];return null!=n?n:t},e));return n.useEffect(()=>{let t=x(o.current);l.current="mounted"===u?t:"none"},[u]),g(()=>{let e=o.current,i=a.current;if(i!==t){let n=l.current,r=x(e);t?c("MOUNT"):"none"===r||(null==e?void 0:e.display)==="none"?c("UNMOUNT"):i&&n!==r?c("ANIMATION_OUT"):c("UNMOUNT"),a.current=t}},[t,c]),g(()=>{if(r){var t;let e;let i=null!==(t=r.ownerDocument.defaultView)&&void 0!==t?t:window,n=t=>{let n=x(o.current).includes(t.animationName);if(t.target===r&&n&&(c("ANIMATION_END"),!a.current)){let t=r.style.animationFillMode;r.style.animationFillMode="forwards",e=i.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=t)})}},s=t=>{t.target===r&&(l.current=x(o.current))};return r.addEventListener("animationstart",s),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{i.clearTimeout(e),r.removeEventListener("animationstart",s),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:n.useCallback(t=>{t&&(o.current=getComputedStyle(t)),s(t)},[])}}(o),c="function"==typeof a?a({present:u.isPresent}):n.Children.only(a),h=l(u.ref,(r=null===(e=Object.getOwnPropertyDescriptor(c.props,"ref"))||void 0===e?void 0:e.get)&&"isReactWarning"in r&&r.isReactWarning?c.ref:(r=null===(i=Object.getOwnPropertyDescriptor(c,"ref"))||void 0===i?void 0:i.get)&&"isReactWarning"in r&&r.isReactWarning?c.props.ref:c.props.ref||c.ref);return"function"==typeof a||u.isPresent?n.cloneElement(c,{ref:h}):null};function x(t){return(null==t?void 0:t.animationName)||"none"}y.displayName="Presence";var w=r["useId".toString()]||(()=>void 0),P=0;function b(t){let[e,i]=n.useState(w());return g(()=>{t||i(t=>t??String(P++))},[t]),t||(e?`radix-${e}`:"")}var T="Collapsible",[A,S]=o(T),[C,R]=A(T),E=n.forwardRef((t,e)=>{let{__scopeCollapsible:i,open:r,defaultOpen:o,disabled:a,onOpenChange:l,...u}=t,[c=!1,h]=m({prop:r,defaultProp:o,onChange:l});return(0,s.jsx)(C,{scope:i,disabled:a,contentId:b(),open:c,onOpenToggle:n.useCallback(()=>h(t=>!t),[h]),children:(0,s.jsx)(v.div,{"data-state":L(c),"data-disabled":a?"":void 0,...u,ref:e})})});E.displayName=T;var M="CollapsibleTrigger",k=n.forwardRef((t,e)=>{let{__scopeCollapsible:i,...n}=t,r=R(M,i);return(0,s.jsx)(v.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":L(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...n,ref:e,onClick:p(t.onClick,r.onOpenToggle)})});k.displayName=M;var V="CollapsibleContent",D=n.forwardRef((t,e)=>{let{forceMount:i,...n}=t,r=R(V,t.__scopeCollapsible);return(0,s.jsx)(y,{present:i||r.open,children:t=>{let{present:i}=t;return(0,s.jsx)(j,{...n,ref:e,present:i})}})});D.displayName=V;var j=n.forwardRef((t,e)=>{let{__scopeCollapsible:i,present:r,children:o,...a}=t,u=R(V,i),[c,h]=n.useState(r),d=n.useRef(null),p=l(e,d),f=n.useRef(0),m=f.current,y=n.useRef(0),x=y.current,w=u.open||c,P=n.useRef(w),b=n.useRef();return n.useEffect(()=>{let t=requestAnimationFrame(()=>P.current=!1);return()=>cancelAnimationFrame(t)},[]),g(()=>{let t=d.current;if(t){b.current=b.current||{transitionDuration:t.style.transitionDuration,animationName:t.style.animationName},t.style.transitionDuration="0s",t.style.animationName="none";let e=t.getBoundingClientRect();f.current=e.height,y.current=e.width,P.current||(t.style.transitionDuration=b.current.transitionDuration,t.style.animationName=b.current.animationName),h(r)}},[u.open,r]),(0,s.jsx)(v.div,{"data-state":L(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!w,...a,ref:p,style:{"--radix-collapsible-content-height":m?"".concat(m,"px"):void 0,"--radix-collapsible-content-width":x?"".concat(x,"px"):void 0,...t.style},children:w&&o})});function L(t){return t?"open":"closed"}var O=n.createContext(void 0),F="Accordion",N=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[B,I,W]=function(t){let e=t+"CollectionProvider",[i,r]=function(t,e=[]){let i=[],r=()=>{let e=i.map(t=>n.createContext(t));return function(i){let r=i?.[t]||e;return n.useMemo(()=>({[`__scope${t}`]:{...i,[t]:r}}),[i,r])}};return r.scopeName=t,[function(e,r){let o=n.createContext(r),a=i.length;function l(e){let{scope:i,children:r,...l}=e,u=i?.[t][a]||o,c=n.useMemo(()=>l,Object.values(l));return(0,s.jsx)(u.Provider,{value:c,children:r})}return i=[...i,r],l.displayName=e+"Provider",[l,function(i,s){let l=s?.[t][a]||o,u=n.useContext(l);if(u)return u;if(void 0!==r)return r;throw Error(`\`${i}\` must be used within \`${e}\``)}]},function(...t){let e=t[0];if(1===t.length)return e;let i=()=>{let i=t.map(t=>({useScope:t(),scopeName:t.scopeName}));return function(t){let r=i.reduce((e,{useScope:i,scopeName:n})=>{let r=i(t)[`__scope${n}`];return{...e,...r}},{});return n.useMemo(()=>({[`__scope${e.scopeName}`]:r}),[r])}};return i.scopeName=e.scopeName,i}(r,...e)]}(e),[o,a]=i(e,{collectionRef:{current:null},itemMap:new Map}),c=t=>{let{scope:e,children:i}=t,r=n.useRef(null),a=n.useRef(new Map).current;return(0,s.jsx)(o,{scope:e,itemMap:a,collectionRef:r,children:i})};c.displayName=e;let h=t+"CollectionSlot",d=n.forwardRef((t,e)=>{let{scope:i,children:n}=t,r=l(e,a(h,i).collectionRef);return(0,s.jsx)(u,{ref:r,children:n})});d.displayName=h;let p=t+"CollectionItemSlot",f="data-radix-collection-item",m=n.forwardRef((t,e)=>{let{scope:i,children:r,...o}=t,c=n.useRef(null),h=l(e,c),d=a(p,i);return n.useEffect(()=>(d.itemMap.set(c,{ref:c,...o}),()=>void d.itemMap.delete(c))),(0,s.jsx)(u,{[f]:"",ref:h,children:r})});return m.displayName=p,[{Provider:c,Slot:d,ItemSlot:m},function(e){let i=a(t+"CollectionConsumer",e);return n.useCallback(()=>{let t=i.collectionRef.current;if(!t)return[];let e=Array.from(t.querySelectorAll("[".concat(f,"]")));return Array.from(i.itemMap.values()).sort((t,i)=>e.indexOf(t.ref.current)-e.indexOf(i.ref.current))},[i.collectionRef,i.itemMap])},r]}(F),[$,U]=o(F,[W,S]),z=S(),_=n.forwardRef((t,e)=>{let{type:i,...n}=t;return(0,s.jsx)(B.Provider,{scope:t.__scopeAccordion,children:"multiple"===i?(0,s.jsx)(Z,{...n,ref:e}):(0,s.jsx)(G,{...n,ref:e})})});_.displayName=F;var[X,Y]=$(F),[K,H]=$(F,{collapsible:!1}),G=n.forwardRef((t,e)=>{let{value:i,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...l}=t,[u,c]=m({prop:i,defaultProp:r,onChange:o});return(0,s.jsx)(X,{scope:t.__scopeAccordion,value:u?[u]:[],onItemOpen:c,onItemClose:n.useCallback(()=>a&&c(""),[a,c]),children:(0,s.jsx)(K,{scope:t.__scopeAccordion,collapsible:a,children:(0,s.jsx)(Q,{...l,ref:e})})})}),Z=n.forwardRef((t,e)=>{let{value:i,defaultValue:r,onValueChange:o=()=>{},...a}=t,[l=[],u]=m({prop:i,defaultProp:r,onChange:o}),c=n.useCallback(t=>u(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...e,t]}),[u]),h=n.useCallback(t=>u(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.filter(e=>e!==t)}),[u]);return(0,s.jsx)(X,{scope:t.__scopeAccordion,value:l,onItemOpen:c,onItemClose:h,children:(0,s.jsx)(K,{scope:t.__scopeAccordion,collapsible:!0,children:(0,s.jsx)(Q,{...a,ref:e})})})}),[q,J]=$(F),Q=n.forwardRef((t,e)=>{let{__scopeAccordion:i,disabled:r,dir:o,orientation:a="vertical",...u}=t,c=l(n.useRef(null),e),h=I(i),d="ltr"===function(t){let e=n.useContext(O);return t||e||"ltr"}(o),f=p(t.onKeyDown,t=>{var e;if(!N.includes(t.key))return;let i=t.target,n=h().filter(t=>{var e;return!(null===(e=t.ref.current)||void 0===e?void 0:e.disabled)}),r=n.findIndex(t=>t.ref.current===i),s=n.length;if(-1===r)return;t.preventDefault();let o=r,l=s-1,u=()=>{(o=r+1)>l&&(o=0)},c=()=>{(o=r-1)<0&&(o=l)};switch(t.key){case"Home":o=0;break;case"End":o=l;break;case"ArrowRight":"horizontal"===a&&(d?u():c());break;case"ArrowDown":"vertical"===a&&u();break;case"ArrowLeft":"horizontal"===a&&(d?c():u());break;case"ArrowUp":"vertical"===a&&c()}null===(e=n[o%s].ref.current)||void 0===e||e.focus()});return(0,s.jsx)(q,{scope:i,disabled:r,direction:o,orientation:a,children:(0,s.jsx)(B.Slot,{scope:i,children:(0,s.jsx)(v.div,{...u,"data-orientation":a,ref:c,onKeyDown:r?void 0:f})})})}),tt="AccordionItem",[te,ti]=$(tt),tn=n.forwardRef((t,e)=>{let{__scopeAccordion:i,value:n,...r}=t,o=J(tt,i),a=Y(tt,i),l=z(i),u=b(),c=n&&a.value.includes(n)||!1,h=o.disabled||t.disabled;return(0,s.jsx)(te,{scope:i,open:c,disabled:h,triggerId:u,children:(0,s.jsx)(E,{"data-orientation":o.orientation,"data-state":tc(c),...l,...r,ref:e,disabled:h,open:c,onOpenChange:t=>{t?a.onItemOpen(n):a.onItemClose(n)}})})});tn.displayName=tt;var tr="AccordionHeader",ts=n.forwardRef((t,e)=>{let{__scopeAccordion:i,...n}=t,r=J(F,i),o=ti(tr,i);return(0,s.jsx)(v.h3,{"data-orientation":r.orientation,"data-state":tc(o.open),"data-disabled":o.disabled?"":void 0,...n,ref:e})});ts.displayName=tr;var to="AccordionTrigger",ta=n.forwardRef((t,e)=>{let{__scopeAccordion:i,...n}=t,r=J(F,i),o=ti(to,i),a=H(to,i),l=z(i);return(0,s.jsx)(B.ItemSlot,{scope:i,children:(0,s.jsx)(k,{"aria-disabled":o.open&&!a.collapsible||void 0,"data-orientation":r.orientation,id:o.triggerId,...l,...n,ref:e})})});ta.displayName=to;var tl="AccordionContent",tu=n.forwardRef((t,e)=>{let{__scopeAccordion:i,...n}=t,r=J(F,i),o=ti(tl,i),a=z(i);return(0,s.jsx)(D,{role:"region","aria-labelledby":o.triggerId,"data-orientation":r.orientation,...a,...n,ref:e,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...t.style}})});function tc(t){return t?"open":"closed"}tu.displayName=tl;var th=_,td=tn,tp=ts,tf=ta,tm=tu},5178:function(t,e,i){"use strict";i.d(e,{iP:function(){return s},xE:function(){return r}});var n=i(2265);function r(){let[t,e]=n.useState({width:null,height:null}),i=n.useRef(null);return[n.useCallback(t=>{if(i.current&&(i.current.disconnect(),i.current=null),t?.nodeType===Node.ELEMENT_NODE){let n=new ResizeObserver(([t])=>{if(t&&t.borderBoxSize){let{inlineSize:i,blockSize:n}=t.borderBoxSize[0];e({width:i,height:n})}});n.observe(t),i.current=n}},[]),t]}function s(){let[t,e]=n.useState({width:null,height:null});return n.useLayoutEffect(()=>{let t=()=>{e({width:window.innerWidth,height:window.innerHeight})};return t(),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[]),t}},4772:function(t,e){var i;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var t="",e=0;e<arguments.length;e++){var i=arguments[e];i&&(t=s(t,function(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return r.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var i in t)n.call(t,i)&&t[i]&&(e=s(e,i));return e}(i)))}return t}function s(t,e){return e?t?t+" "+e:t+e:t}t.exports?(r.default=r,t.exports=r):void 0!==(i=(function(){return r}).apply(e,[]))&&(t.exports=i)}()},6708:function(t,e,i){"use strict";i.d(e,{s:function(){return r}});let n=(0,i(3698).X)(()=>void 0!==window.ScrollTimeline);class r{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 i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t,e){let i=this.animations.map(i=>n()&&i.attachTimeline?i.attachTimeline(t):e(i));return()=>{i.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")}}},8984:function(t,e,i){"use strict";i.d(e,{j:function(){return B}});var n,r=i(6708),s=i(6939),o=i(1484),a=i(3046),l=i(8467),u=i(5503),c=i(7189),h=i(2300),d=i(541);function p(t){return"object"==typeof t&&!Array.isArray(t)}function f(t,e,i,n){return"string"==typeof t&&p(e)?function(t,e,i){var n;if("string"==typeof t){let r=document;e&&((0,d.k)(!!e.current,"Scope provided, but no element detected."),r=e.current),i?(null!==(n=i[t])&&void 0!==n||(i[t]=r.querySelectorAll(t)),t=i[t]):t=r.querySelectorAll(t)}else t instanceof Element&&(t=[t]);return Array.from(t||[])}(t,i,n):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}var m=i(9075);function v(t,e,i,n){var r;return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?i:null!==(r=n.get(e))&&void 0!==r?r:t}let g=(t,e,i)=>{let n=e-t;return((i-t)%n+n)%n+t};var y=i(341),x=i(5992),w=i(8351);function P(t,e){return t.at!==e.at?t.at-e.at:null===t.value?1:null===e.value?-1:0}function b(t,e){return e.has(t)||e.set(t,{}),e.get(t)}function T(t,e){return e[t]||(e[t]=[]),e[t]}let A=t=>"number"==typeof t,S=t=>t.every(A);var C=i(8384),R=i(2980),E=i(7275),M=i(1085),k=i(270),V=i(1402),D=i(376);class j extends D.l{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(e in t){let i=t[e];if("string"==typeof i||"number"==typeof i)return i}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return(0,V.dO)()}build(t,e){Object.assign(t.output,e)}renderInstance(t,{output:e}){Object.assign(t,e)}sortInstanceNodePosition(){return 0}}function L(t){let e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},i=(0,E.v)(t)?new M.e(e):new k.W(e);i.mount(t),C.R.set(t,i)}function O(t){let e=new j({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});e.mount(t),C.R.set(t,e)}var F=i(1995);function N(t,e,i,n){let r=[];if((0,h.i)(t)||"number"==typeof t||"string"==typeof t&&!p(e))r.push((0,F.D)(t,p(e)&&e.default||e,i&&i.default||i));else{let s=f(t,e,n),o=s.length;(0,d.k)(!!o,"No valid elements provided.");for(let t=0;t<o;t++){let n=s[t],a=n instanceof Element?L:O;C.R.has(n)||a(n);let l=C.R.get(n),u={...i};"delay"in u&&"function"==typeof u.delay&&(u.delay=u.delay(t,o)),r.push(...(0,R.w)(l,{...e,transition:u},{}))}}return r}let B=function(t,e,i){let d=[];d=Array.isArray(t)&&Array.isArray(t[0])?function(t,e,i){let n=[];return(function(t,{defaultTransition:e={},...i}={},n,r){let s=e.duration||.3,d=new Map,p=new Map,A={},C=new Map,R=0,E=0,M=0;for(let i=0;i<t.length;i++){let c=t[i];if("string"==typeof c){C.set(c,E);continue}if(!Array.isArray(c)){C.set(c.name,v(E,c.at,R,C));continue}let[d,P,k={}]=c;void 0!==k.at&&(E=v(E,k.at,R,C));let V=0,D=(t,i,n,c=0,h=0)=>{let d=Array.isArray(t)?t:[t],{delay:p=0,times:f=(0,l.Y)(d),type:v="keyframes",...P}=i,{ease:b=e.ease||"easeOut",duration:T}=i,A="function"==typeof p?p(c,h):p,C=d.length,R=(0,m.x)(v)?v:null==r?void 0:r[v];if(C<=2&&R){let t=100;2===C&&S(d)&&(t=Math.abs(d[1]-d[0]));let e={...P};void 0!==T&&(e.duration=(0,a.w)(T));let i=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),r=Math.min((0,o.i)(n),o.E);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:(0,a.X)(r)}}(e,t,R);b=i.ease,T=i.duration}null!=T||(T=s);let k=E+A,D=k+T;1===f.length&&0===f[0]&&(f[1]=1);let j=f.length-d.length;j>0&&(0,u.c)(f,j),1===d.length&&d.unshift(null),function(t,e,i,n,r,s){!function(t,e,i){for(let n=0;n<t.length;n++){let r=t[n];r.at>e&&r.at<i&&((0,x.cl)(t,r),n--)}}(t,r,s);for(let a=0;a<e.length;a++){var o;t.push({value:e[a],at:(0,w.t)(r,s,n[a]),easing:(o=a,(0,y.N)(i)?i[g(0,i.length,o)]:i)})}}(n,d,b,f,k,D),V=Math.max(A+T,V),M=Math.max(D,M)};if((0,h.i)(d))D(P,k,T("default",b(d,p)));else{let t=f(d,P,n,A),e=t.length;for(let i=0;i<e;i++){let n=b(t[i],p);for(let t in P)D(P[t],k&&k[t]?{...k,...k[t]}:{...k},T(t,n),i,e)}}R=E,E+=V}return p.forEach((t,n)=>{for(let r in t){let s=t[r];s.sort(P);let o=[],a=[],l=[];for(let t=0;t<s.length;t++){let{at:e,value:i,easing:n}=s[t];o.push(i),a.push((0,c.Y)(0,M,e)),l.push(n||"easeOut")}0!==a[0]&&(a.unshift(0),o.unshift(o[0]),l.unshift("easeInOut")),1!==a[a.length-1]&&(a.push(1),o.push(null)),d.has(n)||d.set(n,{keyframes:{},transition:{}});let u=d.get(n);u.keyframes[r]=o,u.transition[r]={...e,duration:M,ease:l,times:a,...i}}}),d})(t,e,i,{spring:s.S}).forEach(({keyframes:t,transition:e},i)=>{n.push(...N(i,t,e))}),n}(t,e,void 0):N(t,e,i,n);let p=new r.s(d);return n&&n.animations.push(p),p}},1995:function(t,e,i){"use strict";i.d(e,{D:function(){return o}});var n=i(8247),r=i(3686),s=i(2300);function o(t,e,i){let o=(0,s.i)(t)?t:(0,r.BX)(t);return o.start((0,n.v)("",o,e,i)),o.animation}},2322:function(t,e,i){"use strict";i.d(e,{t:function(){return n}});let n=new Set(["opacity","clipPath","filter","transform"])},6939:function(t,e,i){"use strict";i.d(e,{S:function(){return h}});var n=i(3046),r=i(5232),s=i(541),o=i(5023);function a(t,e){return t*Math.sqrt(1-e*e)}let l=["duration","bounce"],u=["stiffness","damping","mass"];function c(t,e){return e.some(e=>void 0!==t[e])}function h({keyframes:t,restDelta:e,restSpeed:i,...h}){let d;let p=t[0],f=t[t.length-1],m={done:!1,value:p},{stiffness:v,damping:g,mass:y,duration:x,velocity:w,isResolvedFromDuration:P}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!c(t,u)&&c(t,l)){let i=function({duration:t=800,bounce:e=.25,velocity:i=0,mass:r=1}){let l,u;(0,s.K)(t<=(0,n.w)(10),"Spring duration must be 10 seconds or less");let c=1-e;c=(0,o.u)(.05,1,c),t=(0,o.u)(.01,10,(0,n.X)(t)),c<1?(l=e=>{let n=e*c,r=n*t;return .001-(n-i)/a(e,c)*Math.exp(-r)},u=e=>{let n=e*c*t,r=Math.pow(c,2)*Math.pow(e,2)*t,s=a(Math.pow(e,2),c);return(n*i+i-r)*Math.exp(-n)*(-l(e)+.001>0?-1:1)/s}):(l=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),u=e=>t*t*(i-e)*Math.exp(-e*t));let h=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(l,u,5/t);if(t=(0,n.w)(t),isNaN(h))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(h,2)*r;return{stiffness:e,damping:2*c*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...h,velocity:-(0,n.X)(h.velocity||0)}),b=w||0,T=g/(2*Math.sqrt(v*y)),A=f-p,S=(0,n.X)(Math.sqrt(v/y)),C=5>Math.abs(A);if(i||(i=C?.01:2),e||(e=C?.005:.5),T<1){let t=a(S,T);d=e=>f-Math.exp(-T*S*e)*((b+T*S*A)/t*Math.sin(t*e)+A*Math.cos(t*e))}else if(1===T)d=t=>f-Math.exp(-S*t)*(A+(b+S*A)*t);else{let t=S*Math.sqrt(T*T-1);d=e=>{let i=Math.exp(-T*S*e),n=Math.min(t*e,300);return f-i*((b+T*S*A)*Math.sinh(n)+t*A*Math.cosh(n))/t}}return{calculatedDuration:P&&x||null,next:t=>{let s=d(t);if(P)m.done=t>=x;else{let o=0;T<1&&(o=0===t?(0,n.w)(b):(0,r.P)(d,t,s));let a=Math.abs(o)<=i,l=Math.abs(f-s)<=e;m.done=a&&l}return m.value=m.done?f:s,m}}}},1484:function(t,e,i){"use strict";i.d(e,{E:function(){return n},i:function(){return r}});let n=2e4;function r(t){let e=0,i=t.next(e);for(;!i.done&&e<n;)e+=50,i=t.next(e);return e>=n?1/0:e}},9075:function(t,e,i){"use strict";function n(t){return"function"==typeof t}i.d(e,{x:function(){return n}})},5232:function(t,e,i){"use strict";i.d(e,{P:function(){return r}});var n=i(5743);function r(t,e,i){let r=Math.max(e-5,0);return(0,n.R)(i-t(r),e-r)}},8247:function(t,e,i){"use strict";i.d(e,{v:function(){return tD}});var n=i(3046),r=i(9697);let s={type:"spring",stiffness:500,damping:25,restSpeed:10},o=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),a={type:"keyframes",duration:.8},l={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},u=(t,{keyframes:e})=>e.length>2?a:r.G.has(t)?t.startsWith("scale")?o(e[1]):s:l;var c=i(4127),h=i(5756);let d={current:!1},p=t=>null!==t;function f(t,{repeat:e,repeatType:i="loop"},n){let r=t.filter(p),s=e&&"loop"!==i&&e%2==1?0:r.length-1;return s&&void 0!==n?n:r[s]}var m=i(9625),v=i(192);let g=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function y(t,e,i,n){if(t===e&&i===n)return v.Z;let r=e=>(function(t,e,i,n,r){let s,o;let a=0;do(s=g(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:g(r(t),e,n)}var x=i(2611),w=i(2671);let P=y(.33,1.53,.69,.99),b=(0,w.M)(P),T=(0,x.o)(b),A=t=>(t*=2)<1?.5*b(t):.5*(2-Math.pow(2,-10*(t-1)));var S=i(5555),C=i(459),R=i(9075),E=i(5858),M=i(2598),k=i(541),V=i(5561);let D=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(V.P.test(t)||"0"===t)&&!t.startsWith("url("));class j{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=E.X.now(),this.options={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(0,M.m)(),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=E.X.now(),this.hasAttemptedResolve=!0;let{name:i,type:n,velocity:r,delay:s,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=D(r,e),a=D(s,e);return(0,k.K)(o===a,`You are trying to animate ${e} from "${r}" to "${s}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${s} via the \`style\` property.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||(0,R.x)(i))&&n)}(t,i,n,r)){if(d.current||!s){null==a||a(f(t,this.options,e)),null==o||o(),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})}}var L=i(6939),O=i(5232);function F({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){let h,d;let p=t[0],f={done:!1,value:p},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=i*e,y=p+g,x=void 0===o?y:o(y);x!==y&&(g=x-p);let w=t=>-g*Math.exp(-t/n),P=t=>x+w(t),b=t=>{let e=w(t),i=P(t);f.done=Math.abs(e)<=u,f.value=f.done?x:i},T=t=>{m(f.value)&&(h=t,d=(0,L.S)({keyframes:[f.value,v(f.value)],velocity:(0,O.P)(P,t,f.value),damping:r,stiffness:s,restDelta:u,restSpeed:c}))};return T(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==h||(e=!0,b(t),T(t)),void 0!==h&&t>=h)?d.next(t-h):(e||b(t),f)}}}let N=y(.42,0,1,1),B=y(0,0,.58,1),I=y(.42,0,.58,1);var W=i(341);let $=t=>Array.isArray(t)&&"number"==typeof t[0],U={linear:v.Z,easeIn:N,easeInOut:I,easeOut:B,circIn:S.Z7,circInOut:S.X7,circOut:S.Bn,backIn:b,backInOut:T,backOut:P,anticipate:A},z=t=>{if($(t)){(0,k.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,r]=t;return y(e,i,n,r)}return"string"==typeof t?((0,k.k)(void 0!==U[t],`Invalid easing type '${t}'`),U[t]):t};var _=i(5023),X=i(4480),Y=i(7189),K=i(8351);function H(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var G=i(1236),Z=i(3481),q=i(8009);function J(t,e){return i=>i>0?e:t}let Q=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},tt=[G.$,Z.m,q.J],te=t=>tt.find(e=>e.test(t));function ti(t){let e=te(t);if((0,k.K)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===q.J&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;r=H(a,n,t+1/3),s=H(a,n,t),o=H(a,n,t-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let tn=(t,e)=>{let i=ti(t),n=ti(e);if(!i||!n)return J(t,e);let r={...i};return t=>(r.red=Q(i.red,n.red,t),r.green=Q(i.green,n.green,t),r.blue=Q(i.blue,n.blue,t),r.alpha=(0,K.t)(i.alpha,n.alpha,t),Z.m.transform(r))};var tr=i(4550),ts=i(1518);let to=new Set(["none","hidden"]);function ta(t,e){return i=>(0,K.t)(t,e,i)}function tl(t){return"number"==typeof t?ta:"string"==typeof t?(0,ts.t)(t)?J:tr.$.test(t)?tn:th:Array.isArray(t)?tu:"object"==typeof t?tr.$.test(t)?tn:tc:J}function tu(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>tl(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function tc(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=tl(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let th=(t,e)=>{let i=V.P.createTransformer(e),n=(0,V.V)(t),r=(0,V.V)(e);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?to.has(t)&&!r.values.length||to.has(e)&&!n.values.length?to.has(t)?i=>i<=0?t:e:i=>i>=1?e:t:(0,X.z)(tu(function(t,e){var i;let n=[],r={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let o=e.types[s],a=t.indexes[o][r[o]],l=null!==(i=t.values[a])&&void 0!==i?i:0;n[s]=l,r[o]++}return n}(n,r),r.values),i):((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.`),J(t,e))};function td(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,K.t)(t,e,i):tl(t)(t,e)}var tp=i(8467);function tf({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let r=(0,W.N)(n)?n.map(z):z(n),s={done:!1,value:e[0]},o=function(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;if((0,k.k)(s===e.length,"Both input and output ranges must be the same length"),1===s)return()=>e[0];if(2===s&&t[0]===t[1])return()=>e[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let n=[],r=i||td,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||v.Z:e;s=(0,X.z)(t,s)}n.push(s)}return n}(e,n,r),a=o.length,l=e=>{let i=0;if(a>1)for(;i<t.length-2&&!(e<t[i+1]);i++);let n=(0,Y.Y)(t[i],t[i+1],e);return o[i](n)};return i?e=>l((0,_.u)(t[0],t[s-1],e)):l}((i&&i.length===e.length?i:(0,tp.Y)(e)).map(e=>e*t),e,{ease:Array.isArray(r)?r:e.map(()=>r||I).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=o(e),s.done=e>=t,s)}}var tm=i(1484);let tv=t=>{let e=({timestamp:e})=>t(e);return{start:()=>m.Wi.update(e,!0),stop:()=>(0,m.Pn)(e),now:()=>m.frameData.isProcessing?m.frameData.timestamp:E.X.now()}},tg={decay:F,inertia:F,tween:tf,keyframes:tf,spring:L.S},ty=t=>t/100;class tx extends j{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:i,element:n,keyframes:r}=this.options,s=(null==n?void 0:n.KeyframeResolver)||M.e;this.resolver=new s(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}initPlayback(t){let e,i;let{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:o,velocity:a=0}=this.options,l=(0,R.x)(n)?n:tg[n]||tf;l!==tf&&"number"!=typeof t[0]&&(e=(0,X.z)(ty,td(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===o&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=(0,tm.i)(u));let{calculatedDuration:c}=u,h=c+s;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:c,resolvedDuration:h,totalDuration:h*(r+1)-s}}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:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:n,generator:r,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=i;if(null===this.startTime)return r.next(0);let{delay:h,repeat:d,repeatType:p,repeatDelay:m,onUpdate:v}=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 g=this.currentTime-h*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let x=this.currentTime,w=r;if(d){let t=Math.min(this.currentTime,u)/c,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/c)):"mirror"===p&&(w=s)),x=(0,_.u)(0,1,i)*c}let P=y?{done:!1,value:a[0]}:w.next(x);o&&(P.value=o(P.value));let{done:b}=P;y||null===l||(b=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return T&&void 0!==n&&(P.value=f(a,this.options,n)),v&&v(P.value),T&&this.finish(),P}get duration(){let{resolved:t}=this;return t?(0,n.X)(t.calculatedDuration):0}get time(){return(0,n.X)(this.currentTime)}set time(t){t=(0,n.w)(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=(0,n.X)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=tv,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=null!=i?i: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)}}var tw=i(2322);let tP=(t,e)=>{let i="",n=Math.max(Math.round(e/10),2);for(let e=0;e<n;e++)i+=t((0,Y.Y)(0,n-1,e))+", ";return`linear(${i.substring(0,i.length-2)})`};var tb=i(3698);let tT={linearEasing:void 0},tA=function(t,e){let i=(0,tb.X)(t);return()=>{var t;return null!==(t=tT[e])&&void 0!==t?t:i()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),tS=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,tC={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tS([0,.65,.55,1]),circOut:tS([.55,0,1,.45]),backIn:tS([.31,.01,.66,-.59]),backOut:tS([.33,1.53,.69,.99])};function tR(t,e){t.timeline=e,t.onfinish=null}let tE=(0,tb.X)(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),tM={anticipate:A,backInOut:T,circInOut:S.X7};class tk extends j{constructor(t){super(t);let{name:e,motionValue:i,element:n,keyframes:r}=this.options;this.resolver=new C.s(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}initPlayback(t,e){var i,n;let{duration:r=300,times:s,ease:o,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(null===(i=l.owner)||void 0===i?void 0:i.current))return!1;if("string"==typeof o&&tA()&&o in tM&&(o=tM[o]),n=this.options,(0,R.x)(n.type)||"spring"===n.type||!function t(e){return!!("function"==typeof e&&tA()||!e||"string"==typeof e&&(e in tC||tA())||$(e)||Array.isArray(e)&&e.every(t))}(n.ease)){let{onComplete:e,onUpdate:i,motionValue:n,element:l,...u}=this.options,c=function(t,e){let i=new tx({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:t[0]},r=[],s=0;for(;!n.done&&s<2e4;)r.push((n=i.sample(s)).value),s+=10;return{times:void 0,keyframes:r,duration:s-10,ease:"linear"}}(t,u);1===(t=c.keyframes).length&&(t[1]=t[0]),r=c.duration,s=c.times,o=c.ease,a="keyframes"}let h=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){let u={[e]:i};l&&(u.offset=l);let c=function t(e,i){if(e)return"function"==typeof e&&tA()?tP(e,i):$(e)?tS(e):Array.isArray(e)?e.map(e=>t(e,i)||tC.easeOut):tC[e]}(a,r);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:n,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"})}(l.owner.current,u,t,{...this.options,duration:r,times:s,ease:o});return h.startTime=null!=c?c:this.calcStartTime(),this.pendingTimeline?(tR(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{let{onComplete:i}=this.options;l.set(f(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:s,type:a,ease:o,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return(0,n.X)(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(0,n.X)(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=(0,n.w)(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:i}=e;i.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 v.Z;let{animation:i}=e;tR(i,t)}else this.pendingTimeline=t;return v.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:i,duration:r,type:s,ease:o,times:a}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:l,element:u,...c}=this.options,h=new tx({...c,keyframes:i,duration:r,type:s,ease:o,times:a,isGenerator:!0}),d=(0,n.w)(this.time);t.setWithVelocity(h.sample(d-10).value,h.sample(d).value,10)}let{onStop:l}=this.options;l&&l(),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:i,repeatDelay:n,repeatType:r,damping:s,type:o}=t;return tE()&&i&&tw.t.has(i)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}}var tV=i(6708);let tD=(t,e,i,r={},s,o)=>a=>{let l=(0,c.e)(r,t)||{},p=l.delay||r.delay||0,{elapsed:v=0}=r;v-=(0,n.w)(p);let g={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-v,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:o?void 0:s};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(l)&&(g={...g,...u(t,g)}),g.duration&&(g.duration=(0,n.w)(g.duration)),g.repeatDelay&&(g.repeatDelay=(0,n.w)(g.repeatDelay)),void 0!==g.from&&(g.keyframes[0]=g.from);let y=!1;if(!1!==g.type&&(0!==g.duration||g.repeatDelay)||(g.duration=0,0!==g.delay||(y=!0)),(d.current||h.c.skipAnimations)&&(y=!0,g.duration=0,g.delay=0),y&&!o&&void 0!==e.get()){let t=f(g.keyframes,l);if(void 0!==t)return m.Wi.update(()=>{g.onUpdate(t),g.onComplete()}),new tV.s([])}return!o&&tk.supports(g)?new tk(g):new tx(g)}},2980:function(t,e,i){"use strict";i.d(e,{w:function(){return d}});var n=i(9697),r=i(8247),s=i(4576),o=i(3686),a=i(2185),l=i(4127),u=i(7731),c=i(4330),h=i(9625);function d(t,e,{delay:i=0,transitionOverride:d,type:p}={}){var f;let{transition:m=t.getDefaultTransition(),transitionEnd:v,...g}=e;d&&(m=d);let y=[],x=p&&t.animationState&&t.animationState.getState()[p];for(let e in g){let s=t.getValue(e,null!==(f=t.latestValues[e])&&void 0!==f?f:null),o=g[e];if(void 0===o||x&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(x,e))continue;let a={delay:i,...(0,l.e)(m||{},e)},d=!1;if(window.MotionHandoffAnimation){let i=(0,u.s)(t);if(i){let t=window.MotionHandoffAnimation(i,e,h.Wi);null!==t&&(a.startTime=t,d=!0)}}(0,c.K)(t,e),s.start((0,r.v)(e,s,o,t.shouldReduceMotion&&n.G.has(e)?{type:!1}:a,t,d));let p=s.animation;p&&y.push(p)}return v&&Promise.all(y).then(()=>{h.Wi.update(()=>{v&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=(0,a.x)(t,e)||{};for(let e in r={...r,...i}){let i=(0,s.Y)(r[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,o.BX)(i))}}(t,v)})}),y}},773:function(t,e,i){"use strict";i.d(e,{M:function(){return n}});let n="data-"+(0,i(6404).D)("framerAppearId")},7731:function(t,e,i){"use strict";i.d(e,{s:function(){return r}});var n=i(773);function r(t){return t.props[n.M]}},4127:function(t,e,i){"use strict";function n(t,e){return t?t[e]||t.default||t:void 0}i.d(e,{e:function(){return n}})},7:function(t,e,i){"use strict";function n(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}i.d(e,{H:function(){return n}})},7333:function(t,e,i){"use strict";i.d(e,{C:function(){return n}});let n=t=>Array.isArray(t)},4770:function(t,e,i){"use strict";i.d(e,{M:function(){return g}});var n=i(7437),r=i(2265),s=i(8965),o=i(2443),a=i(5454);class l extends r.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:i}=t,s=(0,r.useId)(),o=(0,r.useRef)(null),u=(0,r.useRef)({width:0,height:0,top:0,left:0}),{nonce:c}=(0,r.useContext)(a._);return(0,r.useInsertionEffect)(()=>{let{width:t,height:e,top:n,left:r}=u.current;if(i||!o.current||!t||!e)return;o.current.dataset.motionPopId=s;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(s,'"] {\n            position: absolute !important;\n            width: ').concat(t,"px !important;\n            height: ").concat(e,"px !important;\n            top: ").concat(n,"px !important;\n            left: ").concat(r,"px !important;\n          }\n        ")),()=>{document.head.removeChild(a)}},[i]),(0,n.jsx)(l,{isPresent:i,childRef:o,sizeRef:u,children:r.cloneElement(e,{ref:o})})}let c=t=>{let{children:e,initial:i,isPresent:a,onExitComplete:l,custom:c,presenceAffectsLayout:d,mode:p}=t,f=(0,o.h)(h),m=(0,r.useId)(),v=(0,r.useCallback)(t=>{for(let e of(f.set(t,!0),f.values()))if(!e)return;l&&l()},[f,l]),g=(0,r.useMemo)(()=>({id:m,initial:i,isPresent:a,custom:c,onExitComplete:v,register:t=>(f.set(t,!1),()=>f.delete(t))}),d?[Math.random(),v]:[a,v]);return(0,r.useMemo)(()=>{f.forEach((t,e)=>f.set(e,!1))},[a]),r.useEffect(()=>{a||f.size||!l||l()},[a]),"popLayout"===p&&(e=(0,n.jsx)(u,{isPresent:a,children:e})),(0,n.jsx)(s.O.Provider,{value:g,children:e})};function h(){return new Map}var d=i(2608),p=i(541);let f=t=>t.key||"";function m(t){let e=[];return r.Children.forEach(t,t=>{(0,r.isValidElement)(t)&&e.push(t)}),e}var v=i(2446);let g=t=>{let{children:e,exitBeforeEnter:i,custom:s,initial:a=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:h="sync"}=t;(0,p.k)(!i,"Replace exitBeforeEnter with mode='wait'");let g=(0,r.useMemo)(()=>m(e),[e]),y=g.map(f),x=(0,r.useRef)(!0),w=(0,r.useRef)(g),P=(0,o.h)(()=>new Map),[b,T]=(0,r.useState)(g),[A,S]=(0,r.useState)(g);(0,v.L)(()=>{x.current=!1,w.current=g;for(let t=0;t<A.length;t++){let e=f(A[t]);y.includes(e)?P.delete(e):!0!==P.get(e)&&P.set(e,!1)}},[A,y.length,y.join("-")]);let C=[];if(g!==b){let t=[...g];for(let e=0;e<A.length;e++){let i=A[e],n=f(i);y.includes(n)||(t.splice(e,0,i),C.push(i))}"wait"===h&&C.length&&(t=C),S(m(t)),T(g);return}let{forceRender:R}=(0,r.useContext)(d.p);return(0,n.jsx)(n.Fragment,{children:A.map(t=>{let e=f(t),i=g===A||y.includes(e);return(0,n.jsx)(c,{isPresent:i,initial:(!x.current||!!a)&&void 0,custom:i?void 0:s,presenceAffectsLayout:u,mode:h,onExitComplete:i?void 0:()=>{if(!P.has(e))return;P.set(e,!0);let t=!0;P.forEach(e=>{e||(t=!1)}),t&&(null==R||R(),S(w.current),l&&l())},children:t},e)})})}},2608:function(t,e,i){"use strict";i.d(e,{p:function(){return n}});let n=(0,i(2265).createContext)({})},5454:function(t,e,i){"use strict";i.d(e,{_:function(){return n}});let n=(0,i(2265).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},8965:function(t,e,i){"use strict";i.d(e,{O:function(){return n}});let n=(0,i(2265).createContext)(null)},5555:function(t,e,i){"use strict";i.d(e,{Bn:function(){return o},X7:function(){return a},Z7:function(){return s}});var n=i(2611),r=i(2671);let s=t=>1-Math.sin(Math.acos(t)),o=(0,r.M)(s),a=(0,n.o)(s)},2611:function(t,e,i){"use strict";i.d(e,{o:function(){return n}});let n=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},2671:function(t,e,i){"use strict";i.d(e,{M:function(){return n}});let n=t=>e=>1-t(1-e)},341:function(t,e,i){"use strict";i.d(e,{N:function(){return n}});let n=t=>Array.isArray(t)&&"number"!=typeof t[0]},6360:function(t,e,i){"use strict";i.d(e,{Z:function(){return s}});var n=i(5756);let r=["read","resolveKeyframes","update","preRender","render","postRender"];function s(t,e){let i=!1,s=!0,o={delta:0,timestamp:0,isProcessing:!1},a=()=>i=!0,l=r.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,n=!1,r=!1,s=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){s.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,r=!1,o=!1)=>{let a=o&&n?e:i;return r&&s.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),s.delete(t)},process:t=>{if(o=t,n){r=!0;return}n=!0,[e,i]=[i,e],i.clear(),e.forEach(a),n=!1,r&&(r=!1,l.process(t))}};return l}(a),t),{}),{read:u,resolveKeyframes:c,update:h,preRender:d,render:p,postRender:f}=l,m=()=>{let r=n.c.useManualTiming?o.timestamp:performance.now();i=!1,o.delta=s?1e3/60:Math.max(Math.min(r-o.timestamp,40),1),o.timestamp=r,o.isProcessing=!0,u.process(o),c.process(o),h.process(o),d.process(o),p.process(o),f.process(o),o.isProcessing=!1,i&&e&&(s=!1,t(m))},v=()=>{i=!0,s=!0,o.isProcessing||t(m)};return{schedule:r.reduce((t,e)=>{let n=l[e];return t[e]=(t,e=!1,r=!1)=>(i||v(),n.schedule(t,e,r)),t},{}),cancel:t=>{for(let e=0;e<r.length;e++)l[r[e]].cancel(t)},state:o,steps:l}}},9625:function(t,e,i){"use strict";i.d(e,{Pn:function(){return s},Wi:function(){return r},frameData:function(){return o},yL:function(){return a}});var n=i(192);let{schedule:r,cancel:s,state:o,steps:a}=(0,i(6360).Z)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.Z,!0)},5858:function(t,e,i){"use strict";let n;i.d(e,{X:function(){return a}});var r=i(5756),s=i(9625);function o(){n=void 0}let a={now:()=>(void 0===n&&a.set(s.frameData.isProcessing||r.c.useManualTiming?s.frameData.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(o)}}},2484:function(t,e,i){"use strict";i.d(e,{featureDefinitions:function(){return r}});let n={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"]},r={};for(let t in n)r[t]={isEnabled:e=>n[t].some(t=>!!e[t])}},6743:function(t,e,i){"use strict";i.d(e,{j:function(){return s}});var n=i(2296),r=i(9697);function s(t,{layout:e,layoutId:i}){return r.G.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!n.P[t]||"opacity"===t)}},9764:function(t,e,i){"use strict";function n({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function r({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function s(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}i.d(e,{d7:function(){return s},i8:function(){return n},z2:function(){return r}})},675:function(t,e,i){"use strict";i.d(e,{D2:function(){return d},YY:function(){return u},am:function(){return c},o2:function(){return l},q2:function(){return s}});var n=i(8351),r=i(9958);function s(t,e,i){return i+e*(t-i)}function o(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function a(t,e=0,i=1,n,r){t.min=o(t.min,e,i,n,r),t.max=o(t.max,e,i,n,r)}function l(t,{x:e,y:i}){a(t.x,e.translate,e.scale,e.originPoint),a(t.y,i.translate,i.scale,i.originPoint)}function u(t,e,i,n=!1){let s,o;let a=i.length;if(a){e.x=e.y=1;for(let u=0;u<a;u++){o=(s=i[u]).projectionDelta;let{visualElement:a}=s.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&d(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,l(t,o)),n&&(0,r.ud)(s.latestValues)&&d(t,s.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function c(t,e){t.min=t.min+e,t.max=t.max+e}function h(t,e,i,r,s=.5){let o=(0,n.t)(t.min,t.max,s);a(t,e,i,o,r)}function d(t,e){h(t.x,e.x,e.scaleX,e.scale,e.originX),h(t.y,e.y,e.scaleY,e.scale,e.originY)}},1402:function(t,e,i){"use strict";i.d(e,{dO:function(){return o},wc:function(){return r}});let n=()=>({translate:0,scale:1,origin:0,originPoint:0}),r=()=>({x:n(),y:n()}),s=()=>({min:0,max:0}),o=()=>({x:s(),y:s()})},2296:function(t,e,i){"use strict";i.d(e,{B:function(){return r},P:function(){return n}});let n={};function r(t){Object.assign(n,t)}},9958:function(t,e,i){"use strict";function n(t){return void 0===t||1===t}function r({scale:t,scaleX:e,scaleY:i}){return!n(t)||!n(e)||!n(i)}function s(t){return r(t)||o(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function o(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}i.d(e,{D_:function(){return o},Lj:function(){return r},ud:function(){return s}})},4429:function(t,e,i){"use strict";i.d(e,{J:function(){return s},z:function(){return o}});var n=i(9764),r=i(675);function s(t,e){return(0,n.i8)((0,n.d7)(t.getBoundingClientRect(),e))}function o(t,e,i){let n=s(t,i),{scroll:o}=e;return o&&((0,r.am)(n.x,o.offset.x),(0,r.am)(n.y,o.offset.y)),n}},376:function(t,e,i){"use strict";i.d(e,{l:function(){return E}});var n=i(9872);let r={current:null},s={current:!1};var o=i(5140),a=i(3686),l=i(2300),u=i(9697),c=i(952),h=i(5589),d=i(2484),p=i(8384),f=i(2598),m=i(9441),v=i(4251),g=i(4550),y=i(5561),x=i(7011),w=i(3080);let P=[...x.$,g.$,y.P],b=t=>P.find((0,w.l)(t));var T=i(6530),A=i(1402),S=i(5858),C=i(9625);let R=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class E{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:r,visualState:s},o={}){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=f.e,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=S.X.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,C.Wi.render(this.render,!1,!0))};let{latestValues:a,renderState:u}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=(0,c.G)(e),this.isVariantNode=(0,c.M)(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:h,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in d){let e=d[t];void 0!==a[t]&&(0,l.i)(e)&&e.set(a[t],!1)}}mount(t){this.current=t,p.R.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)),s.current||function(){if(s.current=!0,n.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>r.current=t.matches;t.addListener(e),e()}else r.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||r.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in p.R.delete(this.current),this.projection&&this.projection.unmount(),(0,C.Pn)(this.notifyUpdate),(0,C.Pn)(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 i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=u.G.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&C.Wi.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),s(),i&&i(),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 d.featureDefinitions){let e=d.featureDefinitions[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(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):(0,A.dO)()}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<R.length;e++){let i=R[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if((0,l.i)(r))t.addValue(n,r);else if((0,l.i)(s))t.addValue(n,(0,a.BX)(r,{owner:t}));else if(s!==r){if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,(0,a.BX)(void 0!==e?e:r,{owner:t}))}}}for(let n in i)void 0===e[n]&&t.removeValue(n);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 i=this.values.get(t);e!==i&&(i&&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 i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,a.BX)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let n=void 0===this.latestValues[t]&&this.current?null!==(i=this.getBaseTargetFromProps(this.props,t))&&void 0!==i?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=n&&("string"==typeof n&&((0,m.P)(n)||(0,v.W)(n))?n=parseFloat(n):!b(n)&&y.P.test(e)&&(n=(0,T.T)(t,e)),this.setBaseTarget(t,(0,l.i)(n)?n.get():n)),(0,l.i)(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i;let{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=(0,h.o)(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);r&&(i=r[t])}if(n&&void 0!==i)return i;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||(0,l.i)(r)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new o.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}},4451:function(t,e,i){"use strict";i.d(e,{E:function(){return iC}});var n,r,s,o=i(7),a=i(7333);function l(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}var u=i(4309),c=i(2185),h=i(4609),d=i(2980);function p(t,e,i={}){var n;let r=(0,c.x)(t,e,"exit"===i.type?null===(n=t.presenceContext)||void 0===n?void 0:n.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(s=i.transitionOverride);let o=r?()=>Promise.all((0,d.w)(t,r,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,i=0,n=0,r=1,s){let o=[],a=(t.variantChildren.size-1)*n,l=1===r?(t=0)=>t*n:(t=0)=>a-t*n;return Array.from(t.variantChildren).sort(f).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(p(t,e,{...s,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,r+n,o,a,i)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}function f(t,e){return t.sortNodePosition(e)}let m=h.V.length,v=[...h.e].reverse(),g=h.e.length;function y(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function x(){return{animate:y(!0),whileInView:y(),whileHover:y(),whileTap:y(),whileDrag:y(),whileFocus:y(),exit:y()}}class w{constructor(t){this.isMounted=!1,this.node=t}update(){}}class P extends w{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>p(t,e,i)));else if("string"==typeof e)n=p(t,e,i);else{let r="function"==typeof e?(0,c.x)(t,e,i.custom):e;n=Promise.all((0,d.w)(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=x(),n=!0,r=e=>(i,n)=>{var r;let s=(0,c.x)(t,n,"exit"===e?null===(r=t.presenceContext)||void 0===r?void 0:r.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function s(s){let{props:c}=t,d=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<m;t++){let n=h.V[t],r=e.props[n];((0,u.$)(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},p=[],f=new Set,y={},x=1/0;for(let e=0;e<g;e++){var w;let h=v[e],m=i[h],g=void 0!==c[h]?c[h]:d[h],P=(0,u.$)(g),b=h===s?m.isActive:null;!1===b&&(x=e);let T=g===d[h]&&g!==c[h]&&P;if(T&&n&&t.manuallyAnimateOnMount&&(T=!1),m.protectedKeys={...y},!m.isActive&&null===b||!g&&!m.prevProp||(0,o.H)(g)||"boolean"==typeof g)continue;let A=(w=m.prevProp,"string"==typeof g?g!==w:!!Array.isArray(g)&&!l(g,w)),S=A||h===s&&m.isActive&&!T&&P||e>x&&P,C=!1,R=Array.isArray(g)?g:[g],E=R.reduce(r(h),{});!1===b&&(E={});let{prevResolvedValues:M={}}=m,k={...M,...E},V=e=>{S=!0,f.has(e)&&(C=!0,f.delete(e)),m.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in k){let e=E[t],i=M[t];if(!y.hasOwnProperty(t))((0,a.C)(e)&&(0,a.C)(i)?l(e,i):e===i)?void 0!==e&&f.has(t)?V(t):m.protectedKeys[t]=!0:null!=e?V(t):f.add(t)}m.prevProp=g,m.prevResolvedValues=E,m.isActive&&(y={...y,...E}),n&&t.blockInitialAnimation&&(S=!1);let D=!(T&&A)||C;S&&D&&p.push(...R.map(t=>({animation:t,options:{type:h}})))}if(f.size){let e={};f.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=null!=n?n:null}),p.push({animation:e})}let P=!!p.length;return n&&(!1===c.initial||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(P=!1),n=!1,P?e(p):Promise.resolve()}return{animateChanges:s,setActive:function(e,n){var r;if(i[e].isActive===n)return Promise.resolve();null===(r=t.variantChildren)||void 0===r||r.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,n)}),i[e].isActive=n;let o=s(e);for(let t in i)i[t].protectedKeys={};return o},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=x(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,o.H)(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 b=0;class T extends w{constructor(){super(...arguments),this.id=b++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}var A=i(192),S=i(541);let C=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function R(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}let E=t=>e=>C(e)&&t(e,R(e));var M=i(3046);function k(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}function V(t,e,i,n){return k(t,e,E(i),n)}var D=i(4480);let j=(t,e)=>Math.abs(t-e);var L=i(9625);class O{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:r=!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 i=B(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(j(t.x,e.x)**2+j(t.y,e.y)**2)>=3);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=L.frameData;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=F(e,this.transformPagePoint),L.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=B("pointercancel"===t.type?this.lastMoveEventInfo:F(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!C(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let s=F(R(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=L.frameData;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,B(s,this.history)),this.removeListeners=(0,D.z)(V(this.contextWindow,"pointermove",this.handlePointerMove),V(this.contextWindow,"pointerup",this.handlePointerUp),V(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,L.Pn)(this.updatePoint)}}function F(t,e){return e?{point:e(t.point)}:t}function N(t,e){return{x:t.x-e.x,y:t.y-e.y}}function B({point:t},e){return{point:t,delta:N(t,I(e)),offset:N(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=I(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>(0,M.w)(.1)));)i--;if(!n)return{x:0,y:0};let s=(0,M.X)(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function I(t){return t[t.length-1]}function W(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let $=W("dragHorizontal"),U=W("dragVertical");function z(t){let e=!1;if("y"===t)e=U();else if("x"===t)e=$();else{let t=$(),i=U();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function _(){let t=z(!0);return!t||(t(),!1)}function X(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var Y=i(7189),K=i(8351);function H(t){return t.max-t.min}function G(t,e,i,n=.5){t.origin=n,t.originPoint=(0,K.t)(e.min,e.max,t.origin),t.scale=H(i)/H(e),t.translate=(0,K.t)(i.min,i.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 Z(t,e,i,n){G(t.x,e.x,i.x,n?n.originX:void 0),G(t.y,e.y,i.y,n?n.originY:void 0)}function q(t,e,i){t.min=i.min+e.min,t.max=t.min+H(e)}function J(t,e,i){t.min=e.min-i.min,t.max=t.min+H(e)}function Q(t,e,i){J(t.x,e.x,i.x),J(t.y,e.y,i.y)}var tt=i(5023);function te(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function ti(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function tn(t,e,i){return{min:tr(t,e),max:tr(t,i)}}function tr(t,e){return"number"==typeof t?t:t[e]||0}var ts=i(1402);function to(t){return[t("x"),t("y")]}var ta=i(4429),tl=i(9764),tu=i(1278),tc=i(8247);let th=({current:t})=>t?t.ownerDocument.defaultView:null;var td=i(4330);let tp=new WeakMap;class tf{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=(0,ts.dO)(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new O(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(R(t,"page").point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=z(i),!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),to(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tu.aQ.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=H(n);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),r&&L.Wi.postRender(()=>r(t,e)),(0,td.K)(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openGlobalLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>to(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:n,contextWindow:th(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:r}=this.getProps();r&&L.Wi.postRender(()=>r(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:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!tm(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?(0,K.t)(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?(0,K.t)(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,r=this.constraints;e&&X(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:te(t.x,i,r),y:te(t.y,e,n)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:tn(t,"left","right"),y:tn(t,"top","bottom")}}(i),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&to(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!X(e))return!1;let n=e.current;(0,S.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let s=(0,ta.z)(n,r.root,this.visualElement.getTransformPagePoint()),o={x:ti((t=r.layout.layoutBox).x,s.x),y:ti(t.y,s.y)};if(i){let t=i((0,tl.z2)(o));this.hasMutatedConstraints=!!t,t&&(o=(0,tl.i8)(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(to(o=>{if(!tm(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,td.K)(this.visualElement,t),i.start((0,tc.v)(t,i,0,e,this.visualElement,!1))}stopAnimation(){to(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){to(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()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){to(e=>{let{drag:i}=this.getProps();if(!tm(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e];r.set(t[e]-(0,K.t)(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!X(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};to(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=H(t),r=H(e);return r>n?i=(0,Y.Y)(e.min,e.max-n,t.min):n>r&&(i=(0,Y.Y)(t.min,t.max-r,e.min)),(0,tt.u)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),to(e=>{if(!tm(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set((0,K.t)(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;tp.set(this.visualElement,this);let t=V(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();X(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),L.Wi.read(e);let r=k(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(to(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function tm(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class tv extends w{constructor(t){super(t),this.removeGroupControls=A.Z,this.removeListeners=A.Z,this.controls=new tf(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||A.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let tg=t=>(e,i)=>{t&&L.Wi.postRender(()=>t(e,i))};class ty extends w{constructor(){super(...arguments),this.removePointerDownListener=A.Z}onPointerDown(t){this.session=new O(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:th(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:tg(t),onStart:tg(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&L.Wi.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=V(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 tx=i(7437),tw=i(2265),tP=i(8965),tb=i(2608);let tT=(0,tw.createContext)({}),tA={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function tS(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let tC={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!tu.px.test(t))return t;t=parseFloat(t)}let i=tS(t,e.target.x),n=tS(t,e.target.y);return`${i}% ${n}%`}};var tR=i(5561),tE=i(2296);let{schedule:tM,cancel:tk}=(0,i(6360).Z)(queueMicrotask,!1);class tV extends tw.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;(0,tE.B)(tj),r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),tA.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,s=i.projection;return s&&(s.isPresent=r,n||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent===r||(r?s.promote():s.relegate()||L.Wi.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tM.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function tD(t){let[e,i]=function(){let t=(0,tw.useContext)(tP.O);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:n}=t,r=(0,tw.useId)();(0,tw.useEffect)(()=>n(r),[]);let s=(0,tw.useCallback)(()=>i&&i(r),[r,i]);return!e&&i?[!1,s]:[!0]}(),n=(0,tw.useContext)(tb.p);return(0,tx.jsx)(tV,{...t,layoutGroup:n,switchLayoutGroup:(0,tw.useContext)(tT),isPresent:e,safeToRemove:i})}let tj={borderRadius:{...tC,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tC,borderTopRightRadius:tC,borderBottomLeftRadius:tC,borderBottomRightRadius:tC,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tR.P.parse(t);if(n.length>5)return t;let r=tR.P.createTransformer(t),s="number"!=typeof n[0]?1:0,o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=(0,K.t)(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};var tL=i(5140),tO=i(5555);let tF=["TopLeft","TopRight","BottomLeft","BottomRight"],tN=tF.length,tB=t=>"string"==typeof t?parseFloat(t):t,tI=t=>"number"==typeof t||tu.px.test(t);function tW(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let t$=tz(0,.5,tO.Bn),tU=tz(.5,.95,A.Z);function tz(t,e,i){return n=>n<t?0:n>e?1:i((0,Y.Y)(t,e,n))}function t_(t,e){t.min=e.min,t.max=e.max}function tX(t,e){t_(t.x,e.x),t_(t.y,e.y)}function tY(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var tK=i(675);function tH(t,e,i,n,r){return t-=e,t=(0,tK.q2)(t,1/i,n),void 0!==r&&(t=(0,tK.q2)(t,1/r,n)),t}function tG(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(tu.aQ.test(e)&&(e=parseFloat(e),e=(0,K.t)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,K.t)(s.min,s.max,n);t===s&&(a-=e),t.min=tH(t.min,e,i,a,r),t.max=tH(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let tZ=["x","scaleX","originX"],tq=["y","scaleY","originY"];function tJ(t,e,i,n){tG(t.x,e,tZ,i?i.x:void 0,n?n.x:void 0),tG(t.y,e,tq,i?i.y:void 0,n?n.y:void 0)}var tQ=i(4127);function t0(t){return 0===t.translate&&1===t.scale}function t1(t){return t0(t.x)&&t0(t.y)}function t5(t,e){return t.min===e.min&&t.max===e.max}function t2(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function t4(t,e){return t2(t.x,e.x)&&t2(t.y,e.y)}function t3(t){return H(t.x)/H(t.y)}function t6(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var t9=i(5992);class t8{constructor(){this.members=[]}add(t){(0,t9.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,t9.cl)(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 i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var t7=i(9958);let et=(t,e)=>t.depth-e.depth;class ee{constructor(){this.children=[],this.isDirty=!1}add(t){(0,t9.y4)(this.children,t),this.isDirty=!0}remove(t){(0,t9.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(et),this.isDirty=!1,this.children.forEach(t)}}var ei=i(4576),en=i(2300);function er(t){let e=(0,en.i)(t)?t.get():t;return(0,ei.p)(e)?e.toValue():e}var es=i(5858),eo=i(7275),ea=i(1995),el=i(7731);let eu={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ec="undefined"!=typeof window&&void 0!==window.MotionDebug,eh=["","X","Y","Z"],ed={visibility:"hidden"},ep=0;function ef(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function em({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=ep++,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,ec&&(eu.totalNodes=eu.resolvedTargetDeltas=eu.recalculatedProjection=0),this.nodes.forEach(ey),this.nodes.forEach(eS),this.nodes.forEach(eC),this.nodes.forEach(ex),ec&&window.MotionDebug.record(eu)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new ee)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tL.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=(0,eo.v)(e),this.instance=e;let{layoutId:n,layout:r,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||n)&&(this.isLayoutDirty=!0),t){let i;let n=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=es.X.now(),n=({timestamp:e})=>{let r=e-i;r>=250&&((0,L.Pn)(n),t(r-250))};return L.Wi.read(n,!0),()=>(0,L.Pn)(n)}(n,0),tA.hasAnimatedSinceResize&&(tA.hasAnimatedSinceResize=!1,this.nodes.forEach(eA))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&s&&(n||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||eD,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!t4(this.targetLayout,n)||i,u=!e&&i;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={...(0,tQ.e)(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||eA(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}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,(0,L.Pn)(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(eR),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:i}=e.options;if(!i)return;let n=(0,el.s)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",L.Wi,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(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:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(eP);return}this.isUpdating||this.nodes.forEach(eb),this.isUpdating=!1,this.nodes.forEach(eT),this.nodes.forEach(ev),this.nodes.forEach(eg),this.clearAllSnapshots();let t=es.X.now();L.frameData.delta=(0,tt.u)(0,1e3/60,t-L.frameData.timestamp),L.frameData.timestamp=t,L.frameData.isProcessing=!0,L.yL.update.process(L.frameData),L.yL.preRender.process(L.frameData),L.yL.render.process(L.frameData),L.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tM.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ew),this.sharedNodes.forEach(eE)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,L.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){L.Wi.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=(0,ts.dO)(),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=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!t1(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&(e||(0,t7.ud)(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),eO((e=n).x),eO(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return(0,ts.dO)();let i=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(eN))){let{scroll:t}=this.root;t&&((0,tK.am)(i.x,t.offset.x),(0,tK.am)(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=(0,ts.dO)();if(tX(i,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let n=this.path[e],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&tX(i,t),(0,tK.am)(i.x,r.offset.x),(0,tK.am)(i.y,r.offset.y))}return i}applyTransform(t,e=!1){let i=(0,ts.dO)();tX(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(0,tK.D2)(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),(0,t7.ud)(n.latestValues)&&(0,tK.D2)(i,n.latestValues)}return(0,t7.ud)(this.latestValues)&&(0,tK.D2)(i,this.latestValues),i}removeTransform(t){let e=(0,ts.dO)();tX(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,t7.ud)(i.latestValues))continue;(0,t7.Lj)(i.latestValues)&&i.updateSnapshot();let n=(0,ts.dO)();tX(n,i.measurePageBox()),tJ(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return(0,t7.ud)(this.latestValues)&&tJ(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!==L.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,n,r;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);let o=!!this.resumingFrom||this!==s;if(!(t||o&&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=L.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,ts.dO)(),this.relativeTargetOrigin=(0,ts.dO)(),Q(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),tX(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=(0,ts.dO)(),this.targetWithTransforms=(0,ts.dO)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,n=this.relativeTarget,r=this.relativeParent.target,q(i.x,n.x,r.x),q(i.y,n.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):tX(this.target,this.layout.layoutBox),(0,tK.o2)(this.target,this.targetDelta)):tX(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=(0,ts.dO)(),this.relativeTargetOrigin=(0,ts.dO)(),Q(this.relativeTargetOrigin,this.target,t.target),tX(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ec&&eu.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||(0,t7.Lj)(this.parent.latestValues)||(0,t7.D_)(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(),i=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(n=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===L.frameData.timestamp&&(n=!1),n)return;let{layout:r,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||s))return;tX(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;(0,tK.YY)(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=(0,ts.dO)());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(tY(this.prevProjectionDelta.x,this.projectionDelta.x),tY(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Z(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&t6(this.projectionDelta.x,this.prevProjectionDelta.x)&&t6(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),ec&&eu.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=(0,ts.wc)(),this.projectionDelta=(0,ts.wc)(),this.projectionDeltaWithTransform=(0,ts.wc)()}setAnimationOrigin(t,e=!1){let i;let n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=(0,ts.wc)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=(0,ts.dO)(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,h=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(eV));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(eM(o.x,t.x,n),eM(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,f;Q(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,ek(p.x,f.x,a.x,n),ek(p.y,f.y,a.y,n),i&&(u=this.relativeTarget,d=i,t5(u.x,d.x)&&t5(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=(0,ts.dO)()),tX(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=(0,K.t)(0,void 0!==i.opacity?i.opacity:1,t$(n)),t.opacityExit=(0,K.t)(void 0!==e.opacity?e.opacity:1,0,tU(n))):s&&(t.opacity=(0,K.t)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let r=0;r<tN;r++){let s=`border${tF[r]}Radius`,o=tW(e,s),a=tW(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||tI(o)===tI(a)?(t[s]=Math.max((0,K.t)(tB(o),tB(a),n),0),(tu.aQ.test(a)||tu.aQ.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,K.t)(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,h,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},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&&((0,L.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=L.Wi.update(()=>{tA.hasAnimatedSinceResize=!0,this.currentAnimation=(0,ea.D)(0,1e3,{...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:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&eF(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,ts.dO)();let e=H(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=H(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}tX(e,i),(0,tK.D2)(e,r),Z(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new t8),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.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:i}={}){let n=this.getStack();n&&n.promote(this,i),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:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&ef("z",t,n,this.animationValues);for(let e=0;e<eh.length;e++)ef(`rotate${eh[e]}`,t,n,this.animationValues),ef(`skew${eh[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return ed;let n={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=er(null==t?void 0:t.pointerEvents)||"",n.transform=r?r(this.latestValues,""):"none",n;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=er(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!(0,t7.ud)(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let o=s.animationValues||s.latestValues;this.applyTransformsToTarget(),n.transform=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((r||s||o)&&(n=`translate3d(${r}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),r&&(n.transform=r(o,n.transform));let{x:a,y:l}=this.projectionDelta;for(let t in n.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?n.opacity=s===this?null!==(i=null!==(e=o.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:n.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,tE.P){if(void 0===o[t])continue;let{correct:e,applyTo:i}=tE.P[t],r="none"===n.transform?o[t]:e(o[t],s);if(i){let t=i.length;for(let e=0;e<t;e++)n[i[e]]=r}else n[t]=r}return this.options.layoutId&&(n.pointerEvents=s===this?er(null==t?void 0:t.pointerEvents)||"":"none"),n}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(eP),this.root.sharedNodes.clear()}}}function ev(t){t.updateLayout()}function eg(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:r}=t.options,s=i.source!==t.layout.source;"size"===r?to(t=>{let n=s?i.measuredBox[t]:i.layoutBox[t],r=H(n);n.min=e[t].min,n.max=n.min+r}):eF(r,i.layoutBox,e)&&to(n=>{let r=s?i.measuredBox[n]:i.layoutBox[n],o=H(e[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=(0,ts.wc)();Z(o,e,i.layoutBox);let a=(0,ts.wc)();s?Z(a,t.applyTransform(n,!0),i.measuredBox):Z(a,e,i.layoutBox);let l=!t1(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=(0,ts.dO)();Q(o,i.layoutBox,r.layoutBox);let a=(0,ts.dO)();Q(a,e,s.layoutBox),t4(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function ey(t){ec&&eu.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 ex(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ew(t){t.clearSnapshot()}function eP(t){t.clearMeasurements()}function eb(t){t.isLayoutDirty=!1}function eT(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function eA(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function eS(t){t.resolveTargetDelta()}function eC(t){t.calcProjection()}function eR(t){t.resetSkewAndRotation()}function eE(t){t.removeLeadSnapshot()}function eM(t,e,i){t.translate=(0,K.t)(e.translate,0,i),t.scale=(0,K.t)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function ek(t,e,i,n){t.min=(0,K.t)(e.min,i.min,n),t.max=(0,K.t)(e.max,i.max,n)}function eV(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let eD={duration:.45,ease:[.4,0,.1,1]},ej=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),eL=ej("applewebkit/")&&!ej("chrome/")?Math.round:A.Z;function eO(t){t.min=eL(t.min),t.max=eL(t.max)}function eF(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(t3(e)-t3(i)))}function eN(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}let eB=em({attachResizeListener:(t,e)=>k(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),eI={current:void 0},eW=em({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!eI.current){let t=new eB({});t.mount(window),t.setOptions({layoutScroll:!0}),eI.current=t}return eI.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function e$(t,e){let i=e?"onHoverStart":"onHoverEnd";return V(t.current,e?"pointerenter":"pointerleave",(n,r)=>{if("touch"===n.pointerType||_())return;let s=t.getProps();t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",e);let o=s[i];o&&L.Wi.postRender(()=>o(n,r))},{passive:!t.getProps()[i]})}class eU extends w{mount(){this.unmount=(0,D.z)(e$(this.node,!0),e$(this.node,!1))}unmount(){}}class ez extends w{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=(0,D.z)(k(this.node.current,"focus",()=>this.onFocus()),k(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let e_=(t,e)=>!!e&&(t===e||e_(t,e.parentElement));function eX(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,R(i))}class eY extends w{constructor(){super(...arguments),this.removeStartListeners=A.Z,this.removeEndListeners=A.Z,this.removeAccessibleListeners=A.Z,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),n=V(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:n,globalTapTarget:r}=this.node.getProps(),s=r||e_(this.node.current,t.target)?i:n;s&&L.Wi.update(()=>s(t,e))},{passive:!(i.onTap||i.onPointerUp)}),r=V(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=(0,D.z)(n,r),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=k(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=k(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&eX("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&L.Wi.postRender(()=>i(t,e))})}),eX("down",(t,e)=>{this.startPress(t,e)}))}),e=k(this.node.current,"blur",()=>{this.isPressing&&eX("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=(0,D.z)(t,e)}}startPress(t,e){this.isPressing=!0;let{onTapStart:i,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&L.Wi.postRender(()=>i(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!_()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&L.Wi.postRender(()=>i(t,e))}mount(){let t=this.node.getProps(),e=V(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=k(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,D.z)(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let eK=new WeakMap,eH=new WeakMap,eG=t=>{let e=eK.get(t.target);e&&e(t)},eZ=t=>{t.forEach(eG)},eq={some:0,all:1};class eJ extends w{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:eq[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;eH.has(i)||eH.set(i,{});let n=eH.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(eZ,{root:t,...e})),n[r]}(e);return eK.set(t,i),n.observe(t),()=>{eK.delete(t),n.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(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 i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}var eQ=i(5454);let e0=(0,tw.createContext)({});var e1=i(2446);let e5=(0,tw.createContext)({strict:!1});var e2=i(773),e4=i(952);function e3(t){return Array.isArray(t)?t.join(" "):t}var e6=i(2484),e9=i(9872);let e8=Symbol.for("motionComponentSymbol"),e7=["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 it(t){if("string"!=typeof t||t.includes("-"));else if(e7.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var ie=i(8217),ii=i(1185),ir=i(5589),is=i(2443),io=i(2322),ia=i(6404),il=i(9697);let iu=t=>(e,i)=>{let n=(0,tw.useContext)(e0),r=(0,tw.useContext)(tP.O),s=()=>(function({applyWillChange:t=!1,scrapeMotionValuesFromProps:e,createRenderState:i,onMount:n},r,s,a,l){let u={latestValues:function(t,e,i,n,r){var s;let a={},l=new Set,u=n&&(null===(s=t.style)||void 0===s?void 0:s.willChange)===void 0,c=r(t,{});for(let t in c)a[t]=er(c[t]);let{initial:h,animate:d}=t,p=(0,e4.G)(t),f=(0,e4.M)(t);e&&f&&!p&&!1!==t.inherit&&(void 0===h&&(h=e.initial),void 0===d&&(d=e.animate));let m=!!i&&!1===i.initial,v=(m=m||!1===h)?d:h;return v&&"boolean"!=typeof v&&!(0,o.H)(v)&&ic(t,v,(t,e)=>{for(let e in t){let i=t[e];if(Array.isArray(i)){let t=m?i.length-1:0;i=i[t]}null!==i&&(a[e]=i)}for(let t in e)a[t]=e[t]}),u&&(d&&!1!==h&&!(0,o.H)(d)&&ic(t,d,t=>{for(let e in t){let t=il.G.has(e)?"transform":io.t.has(e)?(0,ia.D)(e):void 0;t&&l.add(t)}}),l.size&&(a.willChange=Array.from(l).join(","))),a}(r,s,a,!l&&t,e),renderState:i()};return n&&(u.mount=t=>n(r,t,u)),u})(t,e,n,r,i);return i?s():(0,is.h)(s)};function ic(t,e,i){let n=Array.isArray(e)?e:[e];for(let e=0;e<n.length;e++){let r=(0,ir.o)(t,n[e]);if(r){let{transitionEnd:t,transition:e,...n}=r;i(n,t)}}}let ih=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),id=()=>({...ih(),attrs:{}});var ip=i(6274),im=i(3854);let iv={useVisualState:iu({scrapeMotionValuesFromProps:ii.U,createRenderState:id,onMount:(t,e,{renderState:i,latestValues:n})=>{L.Wi.read(()=>{try{i.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}}),L.Wi.render(()=>{(0,ip.i)(i,n,(0,im.a)(e.tagName),t.transformTemplate),(0,ie.K)(e,i)})}})},ig={useVisualState:iu({applyWillChange:!0,scrapeMotionValuesFromProps:i(4733).U,createRenderState:ih})};var iy=i(6743),ix=i(3460);function iw(t,e,i){for(let n in e)(0,en.i)(e[n])||(0,iy.j)(n,i)||(t[n]=e[n])}let iP=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 ib(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||iP.has(t)}let iT=t=>!ib(t);try{(n=Object(function(){var t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t}()))&&(iT=t=>t.startsWith("on")?!ib(t):n(t))}catch(t){}var iA=i(270),iS=i(1085);let iC=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}((r={animation:{Feature:P},exit:{Feature:T},inView:{Feature:eJ},tap:{Feature:eY},focus:{Feature:ez},hover:{Feature:eU},pan:{Feature:ty},drag:{Feature:tv,ProjectionNode:eW,MeasureLayout:tD},layout:{ProjectionNode:eW,MeasureLayout:tD}},s=(t,e)=>it(t)?new iS.e(e):new iA.W(e,{allowProjection:t!==tw.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function(t){let{preloadedFeatures:e,createVisualElement:i,useRender:n,useVisualState:r,Component:s}=t;e&&function(t){for(let e in t)e6.featureDefinitions[e]={...e6.featureDefinitions[e],...t[e]}}(e);let o=(0,tw.forwardRef)(function(t,e){var o;let a;let l={...(0,tw.useContext)(eQ._),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,tw.useContext)(tb.p).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:c}=l,h=function(t){let{initial:e,animate:i}=function(t,e){if((0,e4.G)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,u.$)(e)?e:void 0,animate:(0,u.$)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,tw.useContext)(e0));return(0,tw.useMemo)(()=>({initial:e,animate:i}),[e3(e),e3(i)])}(t),d=r(t,c);if(!c&&e9.j){(0,tw.useContext)(e5).strict;let t=function(t){let{drag:e,layout:i}=e6.featureDefinitions;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(l);a=t.MeasureLayout,h.visualElement=function(t,e,i,n,r){var s,o;let{visualElement:a}=(0,tw.useContext)(e0),l=(0,tw.useContext)(e5),u=(0,tw.useContext)(tP.O),c=(0,tw.useContext)(eQ._).reducedMotion,h=(0,tw.useRef)();n=n||l.renderer,!h.current&&n&&(h.current=n(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:c}));let d=h.current,p=(0,tw.useContext)(tT);d&&!d.projection&&r&&("html"===d.type||"svg"===d.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new i(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:r,layout:s,alwaysMeasureLayout:!!o||a&&X(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(h.current,i,r,p),(0,tw.useInsertionEffect)(()=>{d&&d.update(i,u)});let f=i[e2.M],m=(0,tw.useRef)(!!f&&!(null===(s=window.MotionHandoffIsComplete)||void 0===s?void 0:s.call(window,f))&&(null===(o=window.MotionHasOptimisedAnimation)||void 0===o?void 0:o.call(window,f)));return(0,e1.L)(()=>{d&&(window.MotionIsMounted=!0,d.updateFeatures(),tM.render(d.render),m.current&&d.animationState&&d.animationState.animateChanges())}),(0,tw.useEffect)(()=>{d&&(!m.current&&d.animationState&&d.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,f)}),m.current=!1))}),d}(s,d,l,i,t.ProjectionNode)}return(0,tx.jsxs)(e0.Provider,{value:h,children:[a&&h.visualElement?(0,tx.jsx)(a,{visualElement:h.visualElement,...l}):null,n(s,t,(o=h.visualElement,(0,tw.useCallback)(t=>{t&&d.mount&&d.mount(t),o&&(t?o.mount(t):o.unmount()),e&&("function"==typeof e?e(t):X(e)&&(e.current=t))},[o])),d,c,h.visualElement)]})});return o[e8]=s,o}({...it(t)?iv:ig,preloadedFeatures:r,useRender:function(t=!1){return(e,i,n,{latestValues:r},s)=>{let o=(it(e)?function(t,e,i,n){let r=(0,tw.useMemo)(()=>{let i=id();return(0,ip.i)(i,e,(0,im.a)(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};iw(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return iw(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,tw.useMemo)(()=>{let i=ih();return(0,ix.r)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(i,r,s,e),a=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(iT(r)||!0===i&&ib(r)||!e&&!ib(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(i,"string"==typeof e,t),l=e!==tw.Fragment?{...a,...o,ref:n}:{},{children:u}=i,c=(0,tw.useMemo)(()=>(0,en.i)(u)?u.get():u,[u]);return(0,tw.createElement)(e,{...l,children:c})}}(e),createVisualElement:s,Component:t})}))},459:function(t,e,i){"use strict";i.d(e,{s:function(){return f}});var n=i(4251),r=i(541),s=i(9441),o=i(1518);let a=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var l=i(2992),u=i(7011),c=i(2598),h=i(5561),d=i(6530);let p=new Set(["auto","none","0"]);class f extends c.e{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&(n=n.trim(),(0,o.t)(n))){let l=function t(e,i,n=1){(0,r.k)(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[l,u]=function(t){let e=a.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${null!=i?i:n}`,r]}(e);if(!l)return;let c=window.getComputedStyle(i).getPropertyValue(l);if(c){let t=c.trim();return(0,s.P)(t)?parseFloat(t):t}return(0,o.t)(u)?t(u,i,n+1):u}(n,e.current);void 0!==l&&(t[i]=l),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!l.z2.has(i)||2!==t.length)return;let[n,c]=t,h=(0,u.C)(n),d=(0,u.C)(c);if(h!==d){if((0,l.mP)(h)&&(0,l.mP)(d))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var r;("number"==typeof(r=t[e])?0===r:null===r||"none"===r||"0"===r||(0,n.W)(r))&&i.push(e)}i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!p.has(e)&&(0,h.V)(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=(0,d.T)(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=l.lw[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(i);r&&r.jump(this.measuredOrigin,!1);let s=n.length-1,o=n[s];n[s]=l.lw[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEach(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}},2764:function(t,e,i){"use strict";i.d(e,{J:function(){return s}});var n=i(376),r=i(459);class s extends n.l{constructor(){super(...arguments),this.KeyframeResolver=r.s}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:i}){delete e[t],delete i[t]}}},6404:function(t,e,i){"use strict";i.d(e,{D:function(){return n}});let n=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},1518:function(t,e,i){"use strict";i.d(e,{f:function(){return r},t:function(){return o}});let n=t=>e=>"string"==typeof e&&e.startsWith(t),r=n("--"),s=n("var(--"),o=t=>!!s(t)&&a.test(t.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},7275:function(t,e,i){"use strict";function n(t){return t instanceof SVGElement&&"svg"!==t.tagName}i.d(e,{v:function(){return n}})},2992:function(t,e,i){"use strict";i.d(e,{Ei:function(){return d},lw:function(){return p},mP:function(){return a},z2:function(){return o}});var n=i(9697),r=i(6236),s=i(1278);let o=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),a=t=>t===r.Rx||t===s.px,l=(t,e)=>parseFloat(t.split(", ")[e]),u=(t,e)=>(i,{transform:n})=>{if("none"===n||!n)return 0;let r=n.match(/^matrix3d\((.+)\)$/u);if(r)return l(r[1],e);{let e=n.match(/^matrix\((.+)\)$/u);return e?l(e[1],t):0}},c=new Set(["x","y","z"]),h=n._.filter(t=>!c.has(t));function d(t){let e=[];return h.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e}let p={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),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:u(4,13),y:u(5,14)};p.translateX=p.x,p.translateY=p.y},6530:function(t,e,i){"use strict";i.d(e,{T:function(){return o}});var n=i(5561),r=i(50),s=i(5027);function o(t,e){let i=(0,s.A)(t);return i!==r.h&&(i=n.P),i.getAnimatableNone?i.getAnimatableNone(e):void 0}},5027:function(t,e,i){"use strict";i.d(e,{A:function(){return o}});var n=i(4550),r=i(50);let s={...i(8008).j,color:n.$,backgroundColor:n.$,outlineColor:n.$,fill:n.$,stroke:n.$,borderColor:n.$,borderTopColor:n.$,borderRightColor:n.$,borderBottomColor:n.$,borderLeftColor:n.$,filter:r.h,WebkitFilter:r.h},o=t=>s[t]},7011:function(t,e,i){"use strict";i.d(e,{$:function(){return o},C:function(){return a}});var n=i(6236),r=i(1278),s=i(3080);let o=[n.Rx,r.px,r.aQ,r.RW,r.vw,r.vh,{test:t=>"auto"===t,parse:t=>t}],a=t=>o.find((0,s.l)(t))},8008:function(t,e,i){"use strict";i.d(e,{j:function(){return l}});var n=i(6236),r=i(1278);let s={borderWidth:r.px,borderTopWidth:r.px,borderRightWidth:r.px,borderBottomWidth:r.px,borderLeftWidth:r.px,borderRadius:r.px,radius:r.px,borderTopLeftRadius:r.px,borderTopRightRadius:r.px,borderBottomRightRadius:r.px,borderBottomLeftRadius:r.px,width:r.px,maxWidth:r.px,height:r.px,maxHeight:r.px,top:r.px,right:r.px,bottom:r.px,left:r.px,padding:r.px,paddingTop:r.px,paddingRight:r.px,paddingBottom:r.px,paddingLeft:r.px,margin:r.px,marginTop:r.px,marginRight:r.px,marginBottom:r.px,marginLeft:r.px,backgroundPositionX:r.px,backgroundPositionY:r.px},o={rotate:r.RW,rotateX:r.RW,rotateY:r.RW,rotateZ:r.RW,scale:n.bA,scaleX:n.bA,scaleY:n.bA,scaleZ:n.bA,skew:r.RW,skewX:r.RW,skewY:r.RW,distance:r.px,translateX:r.px,translateY:r.px,translateZ:r.px,x:r.px,y:r.px,z:r.px,perspective:r.px,transformPerspective:r.px,opacity:n.Fq,originX:r.$C,originY:r.$C,originZ:r.px},a={...n.Rx,transform:Math.round},l={...s,...o,zIndex:a,size:r.px,fillOpacity:n.Fq,strokeOpacity:n.Fq,numOctaves:a}},3080:function(t,e,i){"use strict";i.d(e,{l:function(){return n}});let n=t=>e=>e.test(t)},270:function(t,e,i){"use strict";i.d(e,{W:function(){return d}});var n=i(3460),r=i(1518),s=i(9697),o=i(4733),a=i(1024),l=i(5027),u=i(4429),c=i(2764),h=i(2300);class d extends c.J{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=a.N}readValueFromInstance(t,e){if(s.G.has(e)){let t=(0,l.A)(e);return t&&t.default||0}{let i=window.getComputedStyle(t),n=((0,r.f)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,u.J)(t,e)}build(t,e,i){(0,n.r)(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return(0,o.U)(t,e,i)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,h.i)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}},3460:function(t,e,i){"use strict";i.d(e,{r:function(){return u}});var n=i(9697);let r=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var s=i(8008);let o={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},a=n._.length;var l=i(1518);function u(t,e,i){let{style:u,vars:c,transformOrigin:h}=t,d=!1,p=!1;for(let t in e){let i=e[t];if(n.G.has(t)){d=!0;continue}if((0,l.f)(t)){c[t]=i;continue}{let e=r(i,s.j[t]);t.startsWith("origin")?(p=!0,h[t]=e):u[t]=e}}if(!e.transform&&(d||i?u.transform=function(t,e,i){let l="",u=!0;for(let c=0;c<a;c++){let a=n._[c],h=t[a];if(void 0===h)continue;let d=!0;if(!(d="number"==typeof h?h===(a.startsWith("scale")?1:0):0===parseFloat(h))||i){let t=r(h,s.j[a]);if(!d){u=!1;let e=o[a]||a;l+=`${e}(${t}) `}i&&(e[a]=t)}}return l=l.trim(),i?l=i(e,u?"":l):u&&(l="none"),l}(e,t.transform,i):u.transform&&(u.transform="none")),p){let{originX:t="50%",originY:e="50%",originZ:i=0}=h;u.transformOrigin=`${t} ${e} ${i}`}}},1024:function(t,e,i){"use strict";function n(t,{style:e,vars:i},n,r){for(let s in Object.assign(t.style,e,r&&r.getProjectionStyles(n)),i)t.style.setProperty(s,i[s])}i.d(e,{N:function(){return n}})},4733:function(t,e,i){"use strict";i.d(e,{U:function(){return s}});var n=i(6743),r=i(2300);function s(t,e,i){var s;let{style:o}=t,a={};for(let l in o)((0,r.i)(o[l])||e.style&&(0,r.i)(e.style[l])||(0,n.j)(l,t)||(null===(s=null==i?void 0:i.getValue(l))||void 0===s?void 0:s.liveStyle)!==void 0)&&(a[l]=o[l]);return i&&o&&"string"==typeof o.willChange&&(i.applyWillChange=!1),a}},9697:function(t,e,i){"use strict";i.d(e,{G:function(){return r},_:function(){return n}});let n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],r=new Set(n)},8384:function(t,e,i){"use strict";i.d(e,{R:function(){return n}});let n=new WeakMap},1085:function(t,e,i){"use strict";i.d(e,{e:function(){return p}});var n=i(1185),r=i(2764),s=i(6274),o=i(6404),a=i(4029),l=i(9697),u=i(8217),c=i(5027),h=i(1402),d=i(3854);class p extends r.J{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=h.dO}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(l.G.has(e)){let t=(0,c.A)(e);return t&&t.default||0}return e=a.s.has(e)?e:(0,o.D)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return(0,n.U)(t,e,i)}build(t,e,i){(0,s.i)(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,n){(0,u.K)(t,e,i,n)}mount(t){this.isSVGTag=(0,d.a)(t.tagName),super.mount(t)}}},6274:function(t,e,i){"use strict";i.d(e,{i:function(){return l}});var n=i(3460),r=i(1278);function s(t,e,i){return"string"==typeof t?t:r.px.transform(e+i*t)}let o={offset:"stroke-dashoffset",array:"stroke-dasharray"},a={offset:"strokeDashoffset",array:"strokeDasharray"};function l(t,{attrX:e,attrY:i,attrScale:l,originX:u,originY:c,pathLength:h,pathSpacing:d=1,pathOffset:p=0,...f},m,v){if((0,n.r)(t,f,v),m){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:g,style:y,dimensions:x}=t;g.transform&&(x&&(y.transform=g.transform),delete g.transform),x&&(void 0!==u||void 0!==c||y.transform)&&(y.transformOrigin=function(t,e,i){let n=s(e,t.x,t.width),r=s(i,t.y,t.height);return`${n} ${r}`}(x,void 0!==u?u:.5,void 0!==c?c:.5)),void 0!==e&&(g.x=e),void 0!==i&&(g.y=i),void 0!==l&&(g.scale=l),void 0!==h&&function(t,e,i=1,n=0,s=!0){t.pathLength=1;let l=s?o:a;t[l.offset]=r.px.transform(-n);let u=r.px.transform(e),c=r.px.transform(i);t[l.array]=`${u} ${c}`}(g,h,d,p,!1)}},4029:function(t,e,i){"use strict";i.d(e,{s:function(){return n}});let n=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"])},3854:function(t,e,i){"use strict";i.d(e,{a:function(){return n}});let n=t=>"string"==typeof t&&"svg"===t.toLowerCase()},8217:function(t,e,i){"use strict";i.d(e,{K:function(){return o}});var n=i(6404),r=i(1024),s=i(4029);function o(t,e,i,o){for(let i in(0,r.N)(t,e,void 0,o),e.attrs)t.setAttribute(s.s.has(i)?i:(0,n.D)(i),e.attrs[i])}},1185:function(t,e,i){"use strict";i.d(e,{U:function(){return o}});var n=i(2300),r=i(4733),s=i(9697);function o(t,e,i){let o=(0,r.U)(t,e,i);for(let i in t)((0,n.i)(t[i])||(0,n.i)(e[i]))&&(o[-1!==s._.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return o}},2598:function(t,e,i){"use strict";i.d(e,{e:function(){return h},m:function(){return c}});var n=i(2992),r=i(9625);let s=new Set,o=!1,a=!1;function l(){if(a){let t=Array.from(s).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=(0,n.Ei)(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var n;null===(n=t.getValue(e))||void 0===n||n.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}a=!1,o=!1,s.forEach(t=>t.complete()),s.clear()}function u(){s.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(a=!0)})}function c(){u(),l()}class h{constructor(t,e,i,n,r,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(s.add(this),o||(o=!0,r.Wi.read(u),r.Wi.resolveKeyframes(l))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;for(let r=0;r<t.length;r++)if(null===t[r]){if(0===r){let r=null==n?void 0:n.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}else t[r]=t[r-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),s.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,s.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}},952:function(t,e,i){"use strict";i.d(e,{G:function(){return o},M:function(){return a}});var n=i(7),r=i(4309),s=i(4609);function o(t){return(0,n.H)(t.animate)||s.V.some(e=>(0,r.$)(t[e]))}function a(t){return!!(o(t)||t.variants)}},4309:function(t,e,i){"use strict";function n(t){return"string"==typeof t||Array.isArray(t)}i.d(e,{$:function(){return n}})},2185:function(t,e,i){"use strict";i.d(e,{x:function(){return r}});var n=i(5589);function r(t,e,i){let r=t.getProps();return(0,n.o)(r,e,void 0!==i?i:r.custom,t)}},5589:function(t,e,i){"use strict";function n(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function r(t,e,i,r){if("function"==typeof e){let[s,o]=n(r);e=e(void 0!==i?i:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,o]=n(r);e=e(void 0!==i?i:t.custom,s,o)}return e}i.d(e,{o:function(){return r}})},4609:function(t,e,i){"use strict";i.d(e,{V:function(){return r},e:function(){return n}});let n=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],r=["initial",...n]},5756:function(t,e,i){"use strict";i.d(e,{c:function(){return n}});let n={skipAnimations:!1,useManualTiming:!1}},5992:function(t,e,i){"use strict";function n(t,e){-1===t.indexOf(e)&&t.push(e)}function r(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{cl:function(){return r},y4:function(){return n}})},5023:function(t,e,i){"use strict";i.d(e,{u:function(){return n}});let n=(t,e,i)=>i>e?e:i<t?t:i},541:function(t,e,i){"use strict";i.d(e,{K:function(){return r},k:function(){return s}});var n=i(192);let r=n.Z,s=n.Z},9872:function(t,e,i){"use strict";i.d(e,{j:function(){return n}});let n="undefined"!=typeof window},9441:function(t,e,i){"use strict";i.d(e,{P:function(){return n}});let n=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)},4251:function(t,e,i){"use strict";i.d(e,{W:function(){return n}});let n=t=>/^0[^.\s]+$/u.test(t)},3698:function(t,e,i){"use strict";function n(t){let e;return()=>(void 0===e&&(e=t()),e)}i.d(e,{X:function(){return n}})},8351:function(t,e,i){"use strict";i.d(e,{t:function(){return n}});let n=(t,e,i)=>t+(e-t)*i},192:function(t,e,i){"use strict";i.d(e,{Z:function(){return n}});let n=t=>t},8467:function(t,e,i){"use strict";i.d(e,{Y:function(){return r}});var n=i(5503);function r(t){let e=[0];return(0,n.c)(e,t.length-1),e}},5503:function(t,e,i){"use strict";i.d(e,{c:function(){return s}});var n=i(8351),r=i(7189);function s(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let o=(0,r.Y)(0,e,s);t.push((0,n.t)(i,1,o))}}},4480:function(t,e,i){"use strict";i.d(e,{z:function(){return r}});let n=(t,e)=>i=>e(t(i)),r=(...t)=>t.reduce(n)},7189:function(t,e,i){"use strict";i.d(e,{Y:function(){return n}});let n=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n}},4576:function(t,e,i){"use strict";i.d(e,{Y:function(){return s},p:function(){return r}});var n=i(7333);let r=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),s=t=>(0,n.C)(t)?t[t.length-1]||0:t},5140:function(t,e,i){"use strict";i.d(e,{L:function(){return r}});var n=i(5992);class r{constructor(){this.subscriptions=[]}add(t){return(0,n.y4)(this.subscriptions,t),()=>(0,n.cl)(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},3046:function(t,e,i){"use strict";i.d(e,{X:function(){return r},w:function(){return n}});let n=t=>1e3*t,r=t=>t/1e3},2443:function(t,e,i){"use strict";i.d(e,{h:function(){return r}});var n=i(2265);function r(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},2446:function(t,e,i){"use strict";i.d(e,{L:function(){return r}});var n=i(2265);let r=i(9872).j?n.useLayoutEffect:n.useEffect},5743:function(t,e,i){"use strict";function n(t,e){return e?1e3/e*t:0}i.d(e,{R:function(){return n}})},3686:function(t,e,i){"use strict";i.d(e,{BX:function(){return c}});var n=i(5140),r=i(5743),s=i(5858),o=i(9625);let a=t=>!isNaN(parseFloat(t)),l={current:void 0};class u{constructor(t,e={}){this.version="11.11.9",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=s.X.now();this.updatedAt!==i&&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=s.X.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=a(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 n.L);let i=this.events[t].add(e);return"change"===t?()=>{i(),o.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:i}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,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}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 l.current&&l.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=s.X.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,r.R)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}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 c(t,e){return new u(t,e)}},1236:function(t,e,i){"use strict";i.d(e,{$:function(){return r}});var n=i(3481);let r={test:(0,i(6585).i)("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:n.m.transform}},8009:function(t,e,i){"use strict";i.d(e,{J:function(){return a}});var n=i(6236),r=i(1278),s=i(8334),o=i(6585);let a={test:(0,o.i)("hsl","hue"),parse:(0,o.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:o=1})=>"hsla("+Math.round(t)+", "+r.aQ.transform((0,s.N)(e))+", "+r.aQ.transform((0,s.N)(i))+", "+(0,s.N)(n.Fq.transform(o))+")"}},4550:function(t,e,i){"use strict";i.d(e,{$:function(){return o}});var n=i(1236),r=i(8009),s=i(3481);let o={test:t=>s.m.test(t)||n.$.test(t)||r.J.test(t),parse:t=>s.m.test(t)?s.m.parse(t):r.J.test(t)?r.J.parse(t):n.$.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?s.m.transform(t):r.J.transform(t)}},3481:function(t,e,i){"use strict";i.d(e,{m:function(){return u}});var n=i(5023),r=i(6236),s=i(8334),o=i(6585);let a=t=>(0,n.u)(0,255,t),l={...r.Rx,transform:t=>Math.round(a(t))},u={test:(0,o.i)("rgb","red"),parse:(0,o.d)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+l.transform(t)+", "+l.transform(e)+", "+l.transform(i)+", "+(0,s.N)(r.Fq.transform(n))+")"}},6585:function(t,e,i){"use strict";i.d(e,{i:function(){return s},d:function(){return o}});var n=i(7083);let r=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,s=(t,e)=>i=>!!("string"==typeof i&&r.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),o=(t,e,i)=>r=>{if("string"!=typeof r)return r;let[s,o,a,l]=r.match(n.K);return{[t]:parseFloat(s),[e]:parseFloat(o),[i]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},50:function(t,e,i){"use strict";i.d(e,{h:function(){return l}});var n=i(5561),r=i(7083);let s=new Set(["brightness","contrast","saturate","opacity"]);function o(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(r.K)||[];if(!n)return t;let o=i.replace(n,""),a=s.has(e)?1:0;return n!==i&&(a*=100),e+"("+a+o+")"}let a=/\b([a-z-]*)\(.*?\)/gu,l={...n.P,getAnimatableNone:t=>{let e=t.match(a);return e?e.map(o).join(" "):t}}},5561:function(t,e,i){"use strict";i.d(e,{V:function(){return c},P:function(){return f}});var n=i(4550);let r=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var s=i(7083),o=i(8334);let a="number",l="color",u=/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 c(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]},s=[],o=0,c=e.replace(u,t=>(n.$.test(t)?(r.color.push(o),s.push(l),i.push(n.$.parse(t))):t.startsWith("var(")?(r.var.push(o),s.push("var"),i.push(t)):(r.number.push(o),s.push(a),i.push(parseFloat(t))),++o,"${}")).split("${}");return{values:i,split:c,indexes:r,types:s}}function h(t){return c(t).values}function d(t){let{split:e,types:i}=c(t),r=e.length;return t=>{let s="";for(let u=0;u<r;u++)if(s+=e[u],void 0!==t[u]){let e=i[u];e===a?s+=(0,o.N)(t[u]):e===l?s+=n.$.transform(t[u]):s+=t[u]}return s}}let p=t=>"number"==typeof t?0:t,f={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(s.K))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(r))||void 0===i?void 0:i.length)||0)>0},parse:h,createTransformer:d,getAnimatableNone:function(t){let e=h(t);return d(t)(e.map(p))}}},6236:function(t,e,i){"use strict";i.d(e,{Fq:function(){return s},Rx:function(){return r},bA:function(){return o}});var n=i(5023);let r={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s={...r,transform:t=>(0,n.u)(0,1,t)},o={...r,default:1}},1278:function(t,e,i){"use strict";i.d(e,{$C:function(){return u},RW:function(){return r},aQ:function(){return s},px:function(){return o},vh:function(){return a},vw:function(){return l}});let n=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),r=n("deg"),s=n("%"),o=n("px"),a=n("vh"),l=n("vw"),u={...s,parse:t=>s.parse(t)/100,transform:t=>s.transform(100*t)}},7083:function(t,e,i){"use strict";i.d(e,{K:function(){return n}});let n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},8334:function(t,e,i){"use strict";i.d(e,{N:function(){return n}});let n=t=>Math.round(1e5*t)/1e5},1074:function(t,e,i){"use strict";i.d(e,{c:function(){return a}});var n=i(2265),r=i(3686),s=i(5454),o=i(2443);function a(t){let e=(0,o.h)(()=>(0,r.BX)(t)),{isStatic:i}=(0,n.useContext)(s._);if(i){let[,i]=(0,n.useState)(t);(0,n.useEffect)(()=>e.on("change",i),[])}return e}},4330:function(t,e,i){"use strict";i.d(e,{K:function(){return r}});var n=i(2300);function r(t,e){if(!t.applyWillChange)return;let i=t.getValue("willChange");if((0,n.i)(i)&&i.add)return i.add(e)}},2300:function(t,e,i){"use strict";i.d(e,{i:function(){return n}});let n=t=>!!(t&&t.getVelocity)},3145:function(t,e,i){"use strict";i.d(e,{default:function(){return r.a}});var n=i(8461),r=i.n(n)},7648:function(t,e,i){"use strict";i.d(e,{default:function(){return r.a}});var n=i(2972),r=i.n(n)},257:function(t,e,i){"use strict";var n,r;t.exports=(null==(n=i.g.process)?void 0:n.env)&&"object"==typeof(null==(r=i.g.process)?void 0:r.env)?i.g.process:i(4227)},4227:function(t){!function(){var e={229:function(t){var e,i,n,r=t.exports={};function s(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===s||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(i){try{return e.call(null,t,0)}catch(i){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:s}catch(t){e=s}try{i="function"==typeof clearTimeout?clearTimeout:o}catch(t){i=o}}();var l=[],u=!1,c=-1;function h(){u&&n&&(u=!1,n.length?l=n.concat(l):c=-1,l.length&&d())}function d(){if(!u){var t=a(h);u=!0;for(var e=l.length;e;){for(n=l,l=[];++c<e;)n&&n[c].run();c=-1,e=l.length}n=null,u=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function f(){}r.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];l.push(new p(t,e)),1!==l.length||u||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(t){return[]},r.binding=function(t){throw Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw Error("process.chdir is not supported")},r.umask=function(){return 0}}},i={};function n(t){var r=i[t];if(void 0!==r)return r.exports;var s=i[t]={exports:{}},o=!0;try{e[t](s,s.exports,n),o=!1}finally{o&&delete i[t]}return s.exports}n.ab="//";var r=n(229);t.exports=r}()},8461:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{default:function(){return l},getImageProps:function(){return a}});let n=i(5287),r=i(5346),s=i(5878),o=n._(i(5084));function a(t){let{props:e}=(0,r.getImgProps)(t,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[t,i]of Object.entries(e))void 0===i&&delete e[t];return{props:e}}let l=s.Image},5238:function(t,e,i){"use strict";i.d(e,{Ip:function(){return o},y3:function(){return a}});var n=i(2265),r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function s(t){var e,i,r,s,o,a,l,u=t.className,c=t.counterClockwise,h=t.dashRatio,d=t.pathRadius,p=t.strokeWidth,f=t.style;return(0,n.createElement)("path",{className:u,style:Object.assign({},f,(i=(e={pathRadius:d,dashRatio:h,counterClockwise:c}).counterClockwise,s=(1-e.dashRatio)*(r=2*Math.PI*e.pathRadius),{strokeDasharray:r+"px "+r+"px",strokeDashoffset:(i?-s:s)+"px"})),d:"\n      M 50,50\n      m 0,-"+(a=(o={pathRadius:d,counterClockwise:c}).pathRadius)+"\n      a "+a+","+a+" "+(l=o.counterClockwise?1:0)+" 1 1 0,"+2*a+"\n      a "+a+","+a+" "+l+" 1 1 0,-"+2*a+"\n    ",strokeWidth:p,fillOpacity:0})}var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return!function(t,e){function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(e,t),e.prototype.getBackgroundPadding=function(){return this.props.background?this.props.backgroundPadding:0},e.prototype.getPathRadius=function(){return 50-this.props.strokeWidth/2-this.getBackgroundPadding()},e.prototype.getPathRatio=function(){var t=this.props,e=t.value,i=t.minValue,n=t.maxValue;return(Math.min(Math.max(e,i),n)-i)/(n-i)},e.prototype.render=function(){var t=this.props,e=t.circleRatio,i=t.className,r=t.classes,o=t.counterClockwise,a=t.styles,l=t.strokeWidth,u=t.text,c=this.getPathRadius(),h=this.getPathRatio();return(0,n.createElement)("svg",{className:r.root+" "+i,style:a.root,viewBox:"0 0 100 100","data-test-id":"CircularProgressbar"},this.props.background?(0,n.createElement)("circle",{className:r.background,style:a.background,cx:50,cy:50,r:50}):null,(0,n.createElement)(s,{className:r.trail,counterClockwise:o,dashRatio:e,pathRadius:c,strokeWidth:l,style:a.trail}),(0,n.createElement)(s,{className:r.path,counterClockwise:o,dashRatio:h*e,pathRadius:c,strokeWidth:l,style:a.path}),u?(0,n.createElement)("text",{className:r.text,style:a.text,x:50,y:50},u):null)},e.defaultProps={background:!1,backgroundPadding:0,circleRatio:1,classes:{root:"CircularProgressbar",trail:"CircularProgressbar-trail",path:"CircularProgressbar-path",text:"CircularProgressbar-text",background:"CircularProgressbar-background"},counterClockwise:!1,className:"",maxValue:100,minValue:0,strokeWidth:8,styles:{root:{},trail:{},path:{},text:{},background:{}},text:""},e}(n.Component);function a(t){var e=t.rotation,i=t.strokeLinecap,n=t.textColor,r=t.textSize,s=t.pathColor,o=t.pathTransition,a=t.pathTransitionDuration,u=t.trailColor,c=t.backgroundColor,h=null==e?void 0:"rotate("+e+"turn)",d=null==e?void 0:"center center";return{root:{},path:l({stroke:s,strokeLinecap:i,transform:h,transformOrigin:d,transition:o,transitionDuration:null==a?void 0:a+"s"}),trail:l({stroke:u,strokeLinecap:i,transform:h,transformOrigin:d}),text:l({fill:n,fontSize:r}),background:l({fill:c})}}function l(t){return Object.keys(t).forEach(function(e){null==t[e]&&delete t[e]}),t}},5125:function(){}}]);