@react-email/ui 6.0.0-canary.0 → 6.0.0-canary.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +3 -3
  3. package/.next/diagnostics/route-bundle-stats.json +8 -8
  4. package/.next/fallback-build-manifest.json +3 -3
  5. package/.next/prerender-manifest.json +3 -3
  6. package/.next/required-server-files.js +4 -4
  7. package/.next/required-server-files.json +4 -4
  8. package/.next/server/app/_global-error.html +1 -1
  9. package/.next/server/app/_global-error.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  13. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  14. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  15. package/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
  16. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  17. package/.next/server/app/page/server-reference-manifest.json +1 -1
  18. package/.next/server/app/page_client-reference-manifest.js +1 -1
  19. package/.next/server/app/preview/[...slug]/page/server-reference-manifest.json +7 -7
  20. package/.next/server/app/preview/[...slug]/page_client-reference-manifest.js +1 -1
  21. package/.next/server/chunks/ssr/[root-of-the-server]__0czw.7k._.js +1 -1
  22. package/.next/server/chunks/ssr/[root-of-the-server]__0jqbvod._.js +1 -1
  23. package/.next/server/chunks/ssr/[root-of-the-server]__0jqbvod._.js.map +1 -1
  24. package/.next/server/chunks/ssr/[root-of-the-server]__0x-mqi-._.js +2 -2
  25. package/.next/server/chunks/ssr/_0e0fp~1._.js +1 -1
  26. package/.next/server/chunks/ssr/_0e0fp~1._.js.map +1 -1
  27. package/.next/server/chunks/ssr/_0gi1ztp._.js +2 -2
  28. package/.next/server/chunks/ssr/_0gi1ztp._.js.map +1 -1
  29. package/.next/server/chunks/ssr/_0n_p9le._.js +1 -1
  30. package/.next/server/chunks/ssr/_0n_p9le._.js.map +1 -1
  31. package/.next/server/chunks/ssr/_0r.le61._.js +1 -1
  32. package/.next/server/chunks/ssr/_0r.le61._.js.map +1 -1
  33. package/.next/server/chunks/ssr/_0~pxorv._.js +1 -1
  34. package/.next/server/chunks/ssr/_0~pxorv._.js.map +1 -1
  35. package/.next/server/chunks/ssr/_12etw_o._.js +1 -1
  36. package/.next/server/chunks/ssr/_12etw_o._.js.map +1 -1
  37. package/.next/server/middleware-build-manifest.js +3 -3
  38. package/.next/server/pages/500.html +1 -1
  39. package/.next/server/server-reference-manifest.js +1 -1
  40. package/.next/server/server-reference-manifest.json +8 -8
  41. package/.next/static/chunks/{0jixkovke0_q~.js → 02gufv8.mi8m5.js} +2 -2
  42. package/.next/static/chunks/{00r.6ppmzcqch.js → 05rroxvp349_k.js} +1 -1
  43. package/.next/static/chunks/0jm_61zwo5jpy.css +3 -0
  44. package/.next/static/chunks/{0b88p~-e~y4ls.js → 10k~hcyigfr3n.js} +1 -1
  45. package/.next/static/chunks/{0vsc5kqtr4pkd.js → 13opy~eu7pt61.js} +1 -1
  46. package/.next/trace +1 -1
  47. package/.next/trace-build +1 -1
  48. package/package.json +2 -2
  49. package/src/components/send.tsx +2 -2
  50. package/src/components/sidebar/file-tree-directory-children.tsx +4 -1
  51. package/src/components/sidebar/file-tree-directory.tsx +1 -1
  52. package/src/utils/caniemail/tailwind/get-tailwind-metadata.spec.ts +1 -1
  53. package/src/utils/get-emails-directory-metadata.spec.ts +118 -78
  54. package/.next/dev/build-manifest.json +0 -13
  55. package/.next/dev/cache/.rscinfo +0 -1
  56. package/.next/dev/cache/turbopack/c573e8c4/00000001.sst +0 -0
  57. package/.next/dev/cache/turbopack/c573e8c4/00000002.sst +0 -0
  58. package/.next/dev/cache/turbopack/c573e8c4/00000003.sst +0 -0
  59. package/.next/dev/cache/turbopack/c573e8c4/00000004.sst +0 -0
  60. package/.next/dev/cache/turbopack/c573e8c4/00000005.meta +0 -0
  61. package/.next/dev/cache/turbopack/c573e8c4/00000006.meta +0 -0
  62. package/.next/dev/cache/turbopack/c573e8c4/00000007.meta +0 -0
  63. package/.next/dev/cache/turbopack/c573e8c4/00000008.meta +0 -0
  64. package/.next/dev/cache/turbopack/c573e8c4/CURRENT +0 -0
  65. package/.next/dev/cache/turbopack/c573e8c4/LOG +0 -7
  66. package/.next/dev/fallback-build-manifest.json +0 -13
  67. package/.next/dev/logs/next-development.log +0 -1
  68. package/.next/dev/package.json +0 -3
  69. package/.next/dev/prerender-manifest.json +0 -11
  70. package/.next/dev/routes-manifest.json +0 -1
  71. package/.next/dev/server/app-paths-manifest.json +0 -1
  72. package/.next/dev/server/interception-route-rewrite-manifest.js +0 -1
  73. package/.next/dev/server/middleware-build-manifest.js +0 -13
  74. package/.next/dev/server/middleware-manifest.json +0 -6
  75. package/.next/dev/server/next-font-manifest.js +0 -1
  76. package/.next/dev/server/next-font-manifest.json +0 -6
  77. package/.next/dev/server/pages-manifest.json +0 -1
  78. package/.next/dev/server/server-reference-manifest.js +0 -1
  79. package/.next/dev/server/server-reference-manifest.json +0 -5
  80. package/.next/dev/static/development/_ssgManifest.js +0 -1
  81. package/.next/dev/trace +0 -1
  82. package/.next/dev/types/cache-life.d.ts +0 -145
  83. package/.next/dev/types/routes.d.ts +0 -58
  84. package/.next/dev/types/validator.ts +0 -70
  85. package/.next/static/chunks/0y8gd9jcdx0d4.css +0 -3
  86. package/.next/static/s073gowLXwMdXISr_vmD3/_buildManifest.js +0 -11
  87. package/.next/static/s073gowLXwMdXISr_vmD3/_clientMiddlewareManifest.js +0 -1
  88. /package/.next/{dev/static/development → static/U0GuBlOclsMtT8JbtyWoh}/_buildManifest.js +0 -0
  89. /package/.next/{dev/static/development → static/U0GuBlOclsMtT8JbtyWoh}/_clientMiddlewareManifest.js +0 -0
  90. /package/.next/static/{s073gowLXwMdXISr_vmD3 → U0GuBlOclsMtT8JbtyWoh}/_ssgManifest.js +0 -0
@@ -6,7 +6,7 @@
6
6
  ${h}px !important;
7
7
  top: ${n}px !important;
8
8
  }
9
- `),()=>{m.contains(p)&&m.removeChild(p)}},[r]),(0,t.jsx)(P,{isPresent:r,childRef:o,sizeRef:l,children:M.cloneElement(e,{ref:u})})}let R=({children:e,initial:r,isPresent:i,onExitComplete:s,custom:a,presenceAffectsLayout:o,mode:l,anchorX:c,root:u})=>{let d=(0,k.useConstant)(O),h=(0,n.useId)(),p=!0,m=(0,n.useMemo)(()=>(p=!1,{id:h,initial:r,isPresent:i,custom:a,onExitComplete:e=>{for(let t of(d.set(e,!0),d.values()))if(!t)return;s&&s()},register:e=>(d.set(e,!1),()=>d.delete(e))}),[i,d,s]);return o&&p&&(m={...m}),(0,n.useMemo)(()=>{d.forEach((e,t)=>d.set(t,!1))},[i]),n.useEffect(()=>{i||d.size||!s||s()},[i]),"popLayout"===l&&(e=(0,t.jsx)(I,{isPresent:i,anchorX:c,root:u,children:e})),(0,t.jsx)(S.PresenceContext.Provider,{value:m,children:e})};function O(){return new Map}var F=e.i(95918);let D=e=>e.key||"";function j(e){let t=[];return n.Children.forEach(e,e=>{(0,n.isValidElement)(e)&&t.push(e)}),t}e.s(["AnimatePresence",0,({children:e,custom:r,initial:i=!0,onExitComplete:s,presenceAffectsLayout:a=!0,mode:o="sync",propagate:l=!1,anchorX:c="left",root:u})=>{let[d,h]=(0,F.usePresence)(l),p=(0,n.useMemo)(()=>j(e),[e]),m=l&&!d?[]:p.map(D),f=(0,n.useRef)(!0),g=(0,n.useRef)(p),y=(0,k.useConstant)(()=>new Map),[_,b]=(0,n.useState)(p),[v,w]=(0,n.useState)(p);(0,E.useIsomorphicLayoutEffect)(()=>{f.current=!1,g.current=p;for(let e=0;e<v.length;e++){let t=D(v[e]);m.includes(t)?y.delete(t):!0!==y.get(t)&&y.set(t,!1)}},[v,m.length,m.join("-")]);let x=[];if(p!==_){let e=[...p];for(let t=0;t<v.length;t++){let n=v[t],r=D(n);m.includes(r)||(e.splice(t,0,n),x.push(n))}return"wait"===o&&x.length&&(e=x),w(j(e)),b(p),null}let{forceRender:S}=(0,n.useContext)(C.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:v.map(e=>{let n=D(e),_=(!l||!!d)&&(p===v||m.includes(n));return(0,t.jsx)(R,{isPresent:_,initial:(!f.current||!!i)&&void 0,custom:r,presenceAffectsLayout:a,mode:o,root:u,onExitComplete:_?void 0:()=>{if(!y.has(n))return;y.set(n,!0);let e=!0;y.forEach(t=>{t||(e=!1)}),e&&(S?.(),w(g.current),l&&h?.(),s&&s())},anchorX:c,children:e},n)})})}],77887);var N=e.i(37289);let B=n.forwardRef(({...e},n)=>(0,t.jsx)(N.IconBase,{ref:n,...e,children:(0,t.jsx)("path",{clipRule:"evenodd",d:"M7.75 4C6.23122 4 5 5.23122 5 6.75V17.25C5 18.7688 6.23122 20 7.75 20H16.25C17.7688 20 19 18.7688 19 17.25V9C19 8.80109 18.921 8.61032 18.7803 8.46967L14.5303 4.21967C14.3897 4.07902 14.1989 4 14 4H7.75ZM6.5 6.75C6.5 6.05964 7.05964 5.5 7.75 5.5H13V9.25C13 9.66421 13.3358 10 13.75 10H17.5V17.25C17.5 17.9404 16.9404 18.5 16.25 18.5H7.75C7.05964 18.5 6.5 17.9404 6.5 17.25V6.75ZM16.6893 8.5L14.5 6.31066V8.5H16.6893Z",fill:"currentColor",fillOpacity:"0.927",fillRule:"evenodd"})}));B.displayName="IconFile",e.s(["IconFile",0,B],64369)},70903,88380,56696,e=>{"use strict";let t,n,r,i;var s=e.i(18960);function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t=>{let n=!1,r=e.map(e=>{let r=a(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():a(e[t],null)}}}}e.s(["composeRefs",0,o,"useComposedRefs",0,function(...e){return s.useCallback(o(...e),e)}],88380);var l=e.i(50270),c=Symbol.for("react.lazy"),u=s[" use ".trim().toString()];function d(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===c&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var h=((i=s.forwardRef((e,t)=>{let{children:n,...r}=e;if(d(n)&&"function"==typeof u&&(n=u(n._payload)),s.isValidElement(n)){var i;let e,a,l=(i=n,(a=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(a=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),c=function(e,t){let n={...t};for(let r in t){let i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...e)=>{let t=s(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...s}:"className"===r&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==s.Fragment&&(c.ref=t?o(t,l):l),s.cloneElement(n,c)}return s.Children.count(n)>1?s.Children.only(null):null})).displayName="Slot.SlotClone",t=i,(n=s.forwardRef((e,n)=>{let{children:r,...i}=e;d(r)&&"function"==typeof u&&(r=u(r._payload));let a=s.Children.toArray(r),o=a.find(f);if(o){let e=o.props.children,r=a.map(t=>t!==o?t:s.Children.count(e)>1?s.Children.only(null):s.isValidElement(e)?e.props.children:null);return(0,l.jsx)(t,{...i,ref:n,children:s.isValidElement(e)?s.cloneElement(e,void 0,r):null})}return(0,l.jsx)(t,{...i,ref:n,children:r})})).displayName="Slot.Slot",n),p=Symbol("radix.slottable"),m=((r=({children:e})=>(0,l.jsx)(l.Fragment,{children:e})).displayName="Slottable.Slottable",r.__radixId=p,r);function f(e){return s.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===p}e.s(["Slot",0,h,"Slottable",0,m],70903),e.s(["unreachable",0,(e,t=`Entered unreachable code. Received '${"string"==typeof e?e:JSON.stringify(e)}'.`)=>{throw TypeError(t)}],56696)},2884,e=>{"use strict";var t=e.i(50270),n=e.i(70903),r=e.i(18960),i=e.i(64618),s=e.i(56696);let a=r.forwardRef(({as:e="h1",size:r="3",className:s,color:a="white",children:u,weight:d="bold",...h},p)=>(0,t.jsx)(n.Slot,{className:(0,i.cn)(s,o(r),l(a),c(d)),ref:p,...h,children:(0,t.jsx)(e,{children:u})})),o=e=>{switch(e){case"1":return"text-xs";case"2":return"text-sm";case void 0:case"3":return"text-base";case"4":return"text-lg";case"5":return"text-xl tracking-[-0.16px]";case"6":return"text-2xl tracking-[-0.288px]";case"7":return"text-[28px] leading-[34px] tracking-[-0.416px]";case"8":return"text-[35px] leading-[42px] tracking-[-0.64px]";case"9":return"text-6xl leading-[73px] tracking-[-0.896px]";case"10":return["text-[38px] leading-[46px]","md:text-[70px] md:leading-[85px] tracking-[-1.024px;]"];default:return(0,s.unreachable)(e)}},l=e=>{switch(e){case"gray":return"text-slate-11";case"white":case void 0:return"text-slate-12";default:return(0,s.unreachable)(e)}},c=e=>{switch(e){case"medium":return"font-medium";case"bold":case void 0:return"font-bold";default:return(0,s.unreachable)(e)}};a.displayName="Heading",e.s(["Heading",0,a])},91967,74074,55914,44028,87465,75485,96507,63403,60340,38412,35027,90460,12064,53183,95918,98804,36002,37289,9334,e=>{"use strict";let t,n,r;"u">typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",0,function(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}],91967);var i,s=e.i(18960),a=e.i(50270);e.s(["createContextScope",0,function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>s.createContext(e));return function(n){let r=n?.[e]||t;return s.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=s.createContext(r),o=n.length;n=[...n,r];let l=t=>{let{scope:n,children:r,...l}=t,c=n?.[e]?.[o]||i,u=s.useMemo(()=>l,Object.values(l));return(0,a.jsx)(c.Provider,{value:u,children:r})};return l.displayName=t+"Provider",[l,function(n,a){let l=a?.[e]?.[o]||i,c=s.useContext(l);if(c)return c;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}],74074);var o=globalThis?.document?s.useLayoutEffect:()=>{};e.s(["useLayoutEffect",0,o],55914),s[" useEffectEvent ".trim().toString()],s[" useInsertionEffect ".trim().toString()];var l=s[" useInsertionEffect ".trim().toString()]||o;Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",0,function({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=function({defaultProp:e,onChange:t}){let[n,r]=s.useState(e),i=s.useRef(n),a=s.useRef(t);return l(()=>{a.current=t},[t]),s.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}({defaultProp:t,onChange:n}),c=void 0!==e,u=c?e:i;{let t=s.useRef(void 0!==e);s.useEffect(()=>{let e=t.current;if(e!==c){let t=c?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=c},[c,r])}return[u,s.useCallback(t=>{if(c){let n="function"==typeof t?t(e):t;n!==e&&o.current?.(n)}else a(t)},[c,e,a,o])]}],44028);var c=e.i(4918),u=e.i(88380);function d(e){var t;let n,r=(t=e,(n=s.forwardRef((e,t)=>{let{children:n,...r}=e;if(s.isValidElement(n)){var i;let e,a,o=(i=n,(a=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(a=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),l=function(e,t){let n={...t};for(let r in t){let i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...e)=>{let t=s(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...s}:"className"===r&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==s.Fragment&&(l.ref=t?(0,u.composeRefs)(t,o):o),s.cloneElement(n,l)}return s.Children.count(n)>1?s.Children.only(null):null})).displayName=`${t}.SlotClone`,n),i=s.forwardRef((e,t)=>{let{children:n,...i}=e,o=s.Children.toArray(n),l=o.find(p);if(l){let e=l.props.children,n=o.map(t=>t!==l?t:s.Children.count(e)>1?s.Children.only(null):s.isValidElement(e)?e.props.children:null);return(0,a.jsx)(r,{...i,ref:t,children:s.isValidElement(e)?s.cloneElement(e,void 0,n):null})}return(0,a.jsx)(r,{...i,ref:t,children:n})});return i.displayName=`${e}.Slot`,i}var h=Symbol("radix.slottable");function p(e){return s.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===h}e.s(["createSlot",0,d,"createSlottable",0,function(e){let t=({children:e})=>(0,a.jsx)(a.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=h,t}],87465);var m=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=d(`Primitive.${t}`),r=s.forwardRef((e,r)=>{let{asChild:i,...s}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(i?n:t,{...s,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});e.s(["Primitive",0,m,"dispatchDiscreteCustomEvent",0,function(e,t){e&&c.flushSync(()=>e.dispatchEvent(t))}],75485);var f=e=>{var t;let n,r,{present:i,children:a}=e,l=function(e){var t,n;let[r,i]=s.useState(),a=s.useRef(null),l=s.useRef(e),c=s.useRef("none"),[u,d]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},s.useReducer((e,t)=>n[e][t]??e,t));return s.useEffect(()=>{let e=g(a.current);c.current="mounted"===u?e:"none"},[u]),o(()=>{let t=a.current,n=l.current;if(n!==e){let r=c.current,i=g(t);e?d("MOUNT"):"none"===i||t?.display==="none"?d("UNMOUNT"):n&&r!==i?d("ANIMATION_OUT"):d("UNMOUNT"),l.current=e}},[e,d]),o(()=>{if(r){let e,t=r.ownerDocument.defaultView??window,n=n=>{let i=g(a.current).includes(CSS.escape(n.animationName));if(n.target===r&&i&&(d("ANIMATION_END"),!l.current)){let n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},i=e=>{e.target===r&&(c.current=g(a.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}d("ANIMATION_END")},[r,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:s.useCallback(e=>{a.current=e?getComputedStyle(e):null,i(e)},[])}}(i),c="function"==typeof a?a({present:l.isPresent}):s.Children.only(a),d=(0,u.useComposedRefs)(l.ref,(t=c,(r=(n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.ref:(r=(n=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof a||l.isPresent?s.cloneElement(c,{ref:d}):null};function g(e){return e?.animationName||"none"}f.displayName="Presence",e.s(["Presence",0,f],96507);var y=s[" useId ".trim().toString()]||(()=>void 0),_=0;e.s(["useId",0,function(e){let[t,n]=s.useState(y());return o(()=>{e||n(e=>e??String(_++))},[e]),e||(t?`radix-${t}`:"")}],63403);let b=(0,s.createContext)({});function v(e){let t=(0,s.useRef)(null);return null===t.current&&(t.current=e()),t.current}e.s(["LayoutGroupContext",0,b],60340),e.s(["useConstant",0,v],38412);let w="u">typeof window,x=w?s.useLayoutEffect:s.useEffect;e.s(["useIsomorphicLayoutEffect",0,x],35027);let C=(0,s.createContext)(null);function k(e){return"object"==typeof e&&null!==e}function E(e){return k(e)&&"offsetHeight"in e}e.s(["PresenceContext",0,C],90460),e.s(["isHTMLElement",0,E],12064);let S=(0,s.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function L(e=!0){let t=(0,s.useContext)(C);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,s.useId)();(0,s.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,s.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}e.s(["MotionConfigContext",0,S],53183),e.s(["usePresence",0,L],95918);let M=(0,s.createContext)(null),A=e=>e,T={},P=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function I(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=P.reduce((e,n)=>(e[n]=function(e,t){let n=new Set,r=new Set,i=!1,s=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function c(t){a.has(t)&&(u.schedule(t),e()),l++,t(o)}let u={schedule:(e,t=!1,s=!1)=>{let o=s&&i?n:r;return t&&a.add(e),o.has(e)||o.add(e),e},cancel:e=>{r.delete(e),a.delete(e)},process:e=>{if(o=e,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(c),t,l=0,n.clear(),i=!1,s&&(s=!1,u.process(e))}};return u}(s,t?n:void 0),e),{}),{setup:o,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:h,render:p,postRender:m}=a,f=()=>{let s=T.useManualTiming?i.timestamp:performance.now();n=!1,T.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(s-i.timestamp,40),1)),i.timestamp=s,i.isProcessing=!0,o.process(i),l.process(i),c.process(i),u.process(i),d.process(i),h.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(f))};return{schedule:P.reduce((t,s)=>{let o=a[s];return t[s]=(t,s=!1,a=!1)=>(!n&&(n=!0,r=!0,i.isProcessing||e(f)),o.schedule(t,s,a)),t},{}),cancel:e=>{for(let t=0;t<P.length;t++)a[P[t]].cancel(e)},state:i,steps:a}}let{schedule:R,cancel:O,state:F,steps:D}=I("u">typeof requestAnimationFrame?requestAnimationFrame:A,!0),j=e=>!e.isLayoutDirty&&e.willUpdate(!1);e.s(["LayoutGroup",0,({children:e,id:t,inherit:n=!0})=>{let r=(0,s.useContext)(b),i=(0,s.useContext)(M),[o,l]=function(){let e,t=(e=(0,s.useRef)(!1),x(()=>(e.current=!0,()=>{e.current=!1}),[]),e),[n,r]=(0,s.useState)(0),i=(0,s.useCallback)(()=>{t.current&&r(n+1)},[n]);return[(0,s.useCallback)(()=>R.postRender(i),[i]),n]}(),c=(0,s.useRef)(null),u=r.id||i;if(null===c.current){let e,i,s,a;(!0==(!0===(a=n))||"id"===a)&&u&&(t=t?u+"-"+t:u),c.current={id:t,group:!0===n&&r.group||(e=new Set,i=new WeakMap,{add:t=>{e.add(t),i.set(t,t.addEventListener("willUpdate",s))},remove:t=>{e.delete(t);let n=i.get(t);n&&(n(),i.delete(t)),s()},dirty:s=()=>e.forEach(j)})}}let d=(0,s.useMemo)(()=>({...c.current,forceRender:o}),[l]);return(0,a.jsx)(b.Provider,{value:d,children:e})}],98804);let N=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],B=new Set(N),V=e=>180*e/Math.PI,$=e=>U(V(Math.atan2(e[1],e[0]))),z={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:$,rotateZ:$,skewX:e=>V(Math.atan(e[1])),skewY:e=>V(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},U=e=>((e%=360)<0&&(e+=360),e),H=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),W=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),G={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:H,scaleY:W,scale:e=>(H(e)+W(e))/2,rotateX:e=>U(V(Math.atan2(e[6],e[5]))),rotateY:e=>U(V(Math.atan2(-e[2],e[0]))),rotateZ:$,rotate:$,skewX:e=>V(Math.atan(e[4])),skewY:e=>V(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Z(e){return+!!e.includes("scale")}function q(e,t){let n,r;if(!e||"none"===e)return Z(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)n=G,r=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=z,r=t}if(!r)return Z(t);let s=n[t],a=r[1].split(",").map(Y);return"function"==typeof s?s(a):a[s]}function Y(e){return parseFloat(e.trim())}let X=e=>t=>"string"==typeof t&&t.startsWith(e),K=X("--"),J=X("var(--"),Q=e=>!!J(e)&&ee.test(e.split("/*")[0].trim()),ee=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function et({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}let en=(e,t,n)=>e+(t-e)*n;function er(e){return void 0===e||1===e}function ei({scale:e,scaleX:t,scaleY:n}){return!er(e)||!er(t)||!er(n)}function es(e){return ei(e)||ea(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ea(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function eo(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function el(e,t=0,n=1,r,i){e.min=eo(e.min,t,n,r,i),e.max=eo(e.max,t,n,r,i)}function ec(e,{x:t,y:n}){el(e.x,t.translate,t.scale,t.originPoint),el(e.y,n.translate,n.scale,n.originPoint)}function eu(e,t){e.min=e.min+t,e.max=e.max+t}function ed(e,t,n,r,i=.5){let s=en(e.min,e.max,i);el(e,t,n,s,r)}function eh(e,t){ed(e.x,t.x,t.scaleX,t.scale,t.originX),ed(e.y,t.y,t.scaleY,t.scale,t.originY)}function ep(e,t){return et(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let em=new Set(["width","height","top","left","right","bottom",...N]),ef=(e,t,n)=>n>t?t:n<e?e:n,eg={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},ey={...eg,transform:e=>ef(0,1,e)},e_={...eg,default:1},eb=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ev=eb("deg"),ew=eb("%"),ex=eb("px"),eC=eb("vh"),ek=eb("vw"),eE={...ew,parse:e=>ew.parse(e)/100,transform:e=>ew.transform(100*e)},eS=e=>t=>t.test(e),eL=[eg,ex,ew,ev,ek,eC,{test:e=>"auto"===e,parse:e=>e}],eM=e=>eL.find(eS(e));e.i(96293);let eA=()=>{},eT=()=>{},eP=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,eI=e=>e===eg||e===ex,eR=new Set(["x","y","z"]),eO=N.filter(e=>!eR.has(e)),eF={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>q(t,"x"),y:(e,{transform:t})=>q(t,"y")};eF.translateX=eF.x,eF.translateY=eF.y;let eD=new Set,ej=!1,eN=!1,eB=!1;function eV(){if(eN){let e=Array.from(eD).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t,r=(t=[],eO.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(+!!n.startsWith("scale")))}),t);r.length&&(n.set(e,r),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eN=!1,ej=!1,eD.forEach(e=>e.complete(eB)),eD.clear()}function e$(){eD.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eN=!0)})}class ez{constructor(e,t,n,r,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(eD.add(this),ej||(ej=!0,R.read(e$),R.resolveKeyframes(eV))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){let i=r?.get(),s=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,s);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=s),r&&void 0===i&&r.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),eD.delete(this)}cancel(){"scheduled"===this.state&&(eD.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let eU=e=>Math.round(1e5*e)/1e5,eH=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,eW=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,eG=(e,t)=>n=>!!("string"==typeof n&&eW.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),eZ=(e,t,n)=>r=>{if("string"!=typeof r)return r;let[i,s,a,o]=r.match(eH);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},eq={...eg,transform:e=>Math.round(ef(0,255,e))},eY={test:eG("rgb","red"),parse:eZ("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+eq.transform(e)+", "+eq.transform(t)+", "+eq.transform(n)+", "+eU(ey.transform(r))+")"},eX={test:eG("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:eY.transform},eK={test:eG("hsl","hue"),parse:eZ("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ew.transform(eU(t))+", "+ew.transform(eU(n))+", "+eU(ey.transform(r))+")"},eJ={test:e=>eY.test(e)||eX.test(e)||eK.test(e),parse:e=>eY.test(e)?eY.parse(e):eK.test(e)?eK.parse(e):eX.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?eY.transform(e):eK.transform(e),getAnimatableNone:e=>{let t=eJ.parse(e);return t.alpha=0,eJ.transform(t)}},eQ=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,e1="number",e0="color",e4=/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 e6(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],s=0,a=t.replace(e4,e=>(eJ.test(e)?(r.color.push(s),i.push(e0),n.push(eJ.parse(e))):e.startsWith("var(")?(r.var.push(s),i.push("var"),n.push(e)):(r.number.push(s),i.push(e1),n.push(parseFloat(e))),++s,"${}")).split("${}");return{values:n,split:a,indexes:r,types:i}}function e9(e){return e6(e).values}function e5(e){let{split:t,types:n}=e6(e),r=t.length;return e=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],void 0!==e[s]){let t=n[s];t===e1?i+=eU(e[s]):t===e0?i+=eJ.transform(e[s]):i+=e[s]}return i}}let e2=e=>"number"==typeof e?0:eJ.test(e)?eJ.getAnimatableNone(e):e,e7={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(eH)?.length||0)+(e.match(eQ)?.length||0)>0},parse:e9,createTransformer:e5,getAnimatableNone:function(e){let t=e9(e);return e5(e)(t.map(e2))}},e3=new Set(["brightness","contrast","saturate","opacity"]);function e8(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(eH)||[];if(!r)return e;let i=n.replace(r,""),s=+!!e3.has(t);return r!==n&&(s*=100),t+"("+s+i+")"}let te=/\b([a-z-]*)\(.*?\)/gu,tt={...e7,getAnimatableNone:e=>{let t=e.match(te);return t?t.map(e8).join(" "):e}},tn={...eg,transform:Math.round},tr={borderWidth:ex,borderTopWidth:ex,borderRightWidth:ex,borderBottomWidth:ex,borderLeftWidth:ex,borderRadius:ex,radius:ex,borderTopLeftRadius:ex,borderTopRightRadius:ex,borderBottomRightRadius:ex,borderBottomLeftRadius:ex,width:ex,maxWidth:ex,height:ex,maxHeight:ex,top:ex,right:ex,bottom:ex,left:ex,padding:ex,paddingTop:ex,paddingRight:ex,paddingBottom:ex,paddingLeft:ex,margin:ex,marginTop:ex,marginRight:ex,marginBottom:ex,marginLeft:ex,backgroundPositionX:ex,backgroundPositionY:ex,rotate:ev,rotateX:ev,rotateY:ev,rotateZ:ev,scale:e_,scaleX:e_,scaleY:e_,scaleZ:e_,skew:ev,skewX:ev,skewY:ev,distance:ex,translateX:ex,translateY:ex,translateZ:ex,x:ex,y:ex,z:ex,perspective:ex,transformPerspective:ex,opacity:ey,originX:eE,originY:eE,originZ:ex,zIndex:tn,fillOpacity:ey,strokeOpacity:ey,numOctaves:tn},ti={...tr,color:eJ,backgroundColor:eJ,outlineColor:eJ,fill:eJ,stroke:eJ,borderColor:eJ,borderTopColor:eJ,borderRightColor:eJ,borderBottomColor:eJ,borderLeftColor:eJ,filter:tt,WebkitFilter:tt},ts=e=>ti[e];function ta(e,t){let n=ts(e);return n!==tt&&(n=e7),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let to=new Set(["auto","none","0"]);class tl extends ez{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&Q(r=r.trim())){let i=function e(t,n,r=1){eT(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[i,s]=function(e){let t=eP.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}(t);if(!i)return;let a=window.getComputedStyle(n).getPropertyValue(i);if(a){let e=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return Q(s)?e(s,n,r+1):s}(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!em.has(n)||2!==e.length)return;let[r,i]=e,s=eM(r),a=eM(i);if(s!==a)if(eI(s)&&eI(a))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else eF[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&n.push(t);n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!to.has(t)&&e6(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=ta(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eF[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,s=n[i];n[i]=eF[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let tc=e=>!!(e&&e.getVelocity);function tu(){t=void 0}let td={now:()=>(void 0===t&&td.set(F.isProcessing||T.useManualTiming?F.timestamp:performance.now()),t),set:e=>{t=e,queueMicrotask(tu)}};function th(e,t){-1===e.indexOf(t)&&e.push(t)}function tp(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class tm{constructor(){this.subscriptions=[]}add(e){return th(this.subscriptions,e),()=>tp(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class tf{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=td.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=td.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new tm);let n=this.events[e].add(t);return"change"===e?()=>{n(),R.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return r&&r.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=td.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function tg(e,t){return new tf(e,t)}let ty=[...eL,eJ,e7],{schedule:t_}=I(queueMicrotask,!1),tb={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"]},tv={};for(let e in tb)tv[e]={isEnabled:t=>tb[e].some(e=>!!t[e])};let tw=()=>({translate:0,scale:1,origin:0,originPoint:0}),tx=()=>({x:tw(),y:tw()}),tC=()=>({min:0,max:0}),tk=()=>({x:tC(),y:tC()}),tE={current:null},tS={current:!1},tL=new WeakMap;function tM(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function tA(e){return"string"==typeof e||Array.isArray(e)}let tT=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tP=["initial",...tT];function tI(e){return tM(e.animate)||tP.some(t=>tA(e[t]))}function tR(e){return!!(tI(e)||e.variants)}function tO(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function tF(e,t,n,r){if("function"==typeof t){let[i,s]=tO(r);t=t(void 0!==n?n:e.custom,i,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,s]=tO(r);t=t(void 0!==n?n:e.custom,i,s)}return t}let tD=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class tj{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ez,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 e=td.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,R.render(this.render,!1,!0))};const{latestValues:o,renderState:l}=s;this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=tI(t),this.isVariantNode=tR(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in u){const t=u[e];void 0!==o[e]&&tc(t)&&t.set(o[e])}}mount(e){this.current=e,tL.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),tS.current||function(){if(tS.current=!0,w)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tE.current=e.matches;e.addEventListener("change",t),t()}else tE.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||tE.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),O(this.notifyUpdate),O(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let n;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let r=B.has(e);r&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&R.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in tv){let t=tv[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):tk()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<tD.length;t++){let n=tD[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let i=t[r],s=n[r];if(tc(i))e.addValue(r,i);else if(tc(s))e.addValue(r,tg(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,tg(void 0!==t?t:i,{owner:e}))}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=tg(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=n){let r,i;if("string"==typeof n&&(r=n,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r)||(i=n,/^0[^.\s]+$/u.test(i))))n=parseFloat(n);else{let r;r=n,!ty.find(eS(r))&&e7.test(t)&&(n=ta(e,t))}this.setBaseTarget(e,tc(n)?n.get():n)}return tc(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=tF(this.props,n,this.presenceContext?.custom);r&&(t=r[e])}if(n&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||tc(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new tm),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){t_.render(this.render)}}class tN extends tj{constructor(){super(...arguments),this.KeyframeResolver=tl}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;tc(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}let tB=(e,t)=>t&&"number"==typeof e?t.transform(e):e,tV={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},t$=N.length;function tz(e,t,n){let{style:r,vars:i,transformOrigin:s}=e,a=!1,o=!1;for(let e in t){let n=t[e];if(B.has(e)){a=!0;continue}if(K(e)){i[e]=n;continue}{let t=tB(n,tr[e]);e.startsWith("origin")?(o=!0,s[e]=t):r[e]=t}}if(!t.transform&&(a||n?r.transform=function(e,t,n){let r="",i=!0;for(let s=0;s<t$;s++){let a=N[s],o=e[a];if(void 0===o)continue;let l=!0;if(!(l="number"==typeof o?o===+!!a.startsWith("scale"):0===parseFloat(o))||n){let e=tB(o,tr[a]);if(!l){i=!1;let t=tV[a]||a;r+=`${t}(${e}) `}n&&(t[a]=e)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),o){let{originX:e="50%",originY:t="50%",originZ:n=0}=s;r.transformOrigin=`${e} ${t} ${n}`}}function tU(e,{style:t,vars:n},r,i){let s,a=e.style;for(s in t)a[s]=t[s];for(s in i?.applyProjectionStyles(a,r),n)a.setProperty(s,n[s])}let tH={};function tW(e,{layout:t,layoutId:n}){return B.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!tH[e]||"opacity"===e)}function tG(e,t,n){let{style:r}=e,i={};for(let s in r)(tc(r[s])||t.style&&tc(t.style[s])||tW(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(i[s]=r[s]);return i}class tZ extends tN{constructor(){super(...arguments),this.type="html",this.renderInstance=tU}readValueFromInstance(e,t){if(B.has(t))return this.projection?.isProjecting?Z(t):((e,t)=>{let{transform:n="none"}=getComputedStyle(e);return q(n,t)})(e,t);{let n=window.getComputedStyle(e),r=(K(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return ep(e,t)}build(e,t,n){tz(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return tG(e,t,n)}}let tq=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),tY={offset:"stroke-dashoffset",array:"stroke-dasharray"},tX={offset:"strokeDashoffset",array:"strokeDasharray"};function tK(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:a=0,...o},l,c,u){if(tz(e,o,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete d.transformBox),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==r&&(d.scale=r),void 0!==i&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let s=i?tY:tX;e[s.offset]=ex.transform(-r);let a=ex.transform(t),o=ex.transform(n);e[s.array]=`${a} ${o}`}(d,i,s,a,!1)}let tJ=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"]),tQ=e=>"string"==typeof e&&"svg"===e.toLowerCase();function t1(e,t,n){let r=tG(e,t,n);for(let n in e)(tc(e[n])||tc(t[n]))&&(r[-1!==N.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}class t0 extends tN{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=tk}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(B.has(t)){let e=ts(t);return e&&e.default||0}return t=tJ.has(t)?t:tq(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return t1(e,t,n)}build(e,t,n){tK(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){for(let n in tU(e,t,void 0,r),t.attrs)e.setAttribute(tJ.has(n)?n:tq(n),t.attrs[n])}mount(e){this.isSVGTag=tQ(e.tagName),super.mount(e)}}let t4=["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 t6(e){if("string"!=typeof e||e.includes("-"));else if(t4.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let t9=(0,s.createContext)({strict:!1}),t5=(0,s.createContext)({});function t2(e){return Array.isArray(e)?e.join(" "):e}let t7=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function t3(e,t,n){for(let r in t)tc(t[r])||tW(r,n)||(e[r]=t[r])}let t8=()=>({...t7(),attrs:{}}),ne=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 nt(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ne.has(e)}let nn=e=>!nt(e);try{i=(()=>{let e=Error("Cannot find module '@emotion/is-prop-valid'");throw e.code="MODULE_NOT_FOUND",e})().default,"function"==typeof i&&(nn=e=>e.startsWith("on")?!nt(e):i(e))}catch{}function nr(e){return tc(e)?e.get():e}let ni=e=>(t,n)=>{let r=(0,s.useContext)(t5),i=(0,s.useContext)(C),a=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:function(e,t,n,r){let i={},s=r(e,{});for(let e in s)i[e]=nr(s[e]);let{initial:a,animate:o}=e,l=tI(e),c=tR(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===o&&(o=t.animate));let u=!!n&&!1===n.initial,d=(u=u||!1===a)?o:a;if(d&&"boolean"!=typeof d&&!tM(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=tF(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}(n,r,i,e),renderState:t()}})(e,t,r,i);return n?a():v(a)},ns=ni({scrapeMotionValuesFromProps:tG,createRenderState:t7}),na=ni({scrapeMotionValuesFromProps:t1,createRenderState:t8}),no=Symbol.for("motionComponentSymbol");function nl(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let nc="data-"+tq("framerAppearId"),nu=(0,s.createContext)({});function nd(e,{forwardMotionProps:t=!1}={},n,r){n&&function(e){for(let t in e)tv[t]={...tv[t],...e[t]}}(n);let i=t6(e)?na:ns;function o(n,o){var l;let c,u={...(0,s.useContext)(S),...n,layoutId:function({layoutId:e}){let t=(0,s.useContext)(b).id;return t&&void 0!==e?t+"-"+e:e}(n)},{isStatic:d}=u,h=function(e){let{initial:t,animate:n}=function(e,t){if(tI(e)){let{initial:t,animate:n}=e;return{initial:!1===t||tA(t)?t:void 0,animate:tA(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,s.useContext)(t5));return(0,s.useMemo)(()=>({initial:t,animate:n}),[t2(t),t2(n)])}(n),p=i(n,d);if(!d&&w){(0,s.useContext)(t9).strict;let t=function(e){let{drag:t,layout:n}=tv;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(u);c=t.MeasureLayout,h.visualElement=function(e,t,n,r,i){let{visualElement:a}=(0,s.useContext)(t5),o=(0,s.useContext)(t9),l=(0,s.useContext)(C),c=(0,s.useContext)(S).reducedMotion,u=(0,s.useRef)(null);r=r||o.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:a,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:c}));let d=u.current,h=(0,s.useContext)(nu);d&&!d.projection&&i&&("html"===d.type||"svg"===d.type)&&function(e,t,n,r){let{layoutId:i,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!a||o&&nl(o),visualElement:e,animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:c})}(u.current,n,i,h);let p=(0,s.useRef)(!1);(0,s.useInsertionEffect)(()=>{d&&p.current&&d.update(n,l)});let m=n[nc],f=(0,s.useRef)(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return x(()=>{d&&(p.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),f.current&&d.animationState&&d.animationState.animateChanges())}),(0,s.useEffect)(()=>{d&&(!f.current&&d.animationState&&d.animationState.animateChanges(),f.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),f.current=!1),d.enteringChildren=void 0)}),d}(e,p,u,r,t.ProjectionNode)}return(0,a.jsxs)(t5.Provider,{value:h,children:[c&&h.visualElement?(0,a.jsx)(c,{visualElement:h.visualElement,...u}):null,function(e,t,n,{latestValues:r},i,a=!1){let o=(t6(e)?function(e,t,n,r){let i=(0,s.useMemo)(()=>{let n=t8();return tK(n,t,tQ(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};t3(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n,r,i={},a=(n=e.style||{},t3(r={},n,e),Object.assign(r,function({transformTemplate:e},t){return(0,s.useMemo)(()=>{let n=t7();return tz(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=a,i})(t,r,i,e),l=function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(nn(i)||!0===n&&nt(i)||!t&&!nt(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(t,"string"==typeof e,a),c=e!==s.Fragment?{...l,...o,ref:n}:{},{children:u}=t,d=(0,s.useMemo)(()=>tc(u)?u.get():u,[u]);return(0,s.createElement)(e,{...c,children:d})}(e,n,(l=h.visualElement,(0,s.useCallback)(e=>{e&&p.onMount&&p.onMount(e),l&&(e?l.mount(e):l.unmount()),o&&("function"==typeof o?o(e):nl(o)&&(o.current=e))},[l])),p,d,t)]})}o.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let l=(0,s.forwardRef)(o);return l[no]=e,l}function nh(e,t,n){let r=e.getProps();return tF(r,t,void 0!==n?n:r.custom,e)}function np(e,t){return e?.[t]??e?.default??e}let nm=e=>Array.isArray(e);function nf(e,t){let n=e.getValue("willChange");if(tc(n)&&n.add)return n.add(t);if(!n&&T.WillChange){let n=new T.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function ng(e){e.duration=0,e.type="keyframes"}let ny=(e,t)=>n=>t(e(n)),n_=(...e)=>e.reduce(ny),nb=e=>1e3*e,nv={layout:0,mainThread:0,waapi:0};function nw(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function nx(e,t){return n=>n>0?t:e}let nC=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},nk=[eX,eY,eK];function nE(e){let t=nk.find(t=>t.test(e));if(eA(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===eK&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,s=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,o=2*n-r;i=nw(o,r,e+1/3),s=nw(o,r,e),a=nw(o,r,e-1/3)}else i=s=a=n;return{red:Math.round(255*i),green:Math.round(255*s),blue:Math.round(255*a),alpha:r}}(n)),n}let nS=(e,t)=>{let n=nE(e),r=nE(t);if(!n||!r)return nx(e,t);let i={...n};return e=>(i.red=nC(n.red,r.red,e),i.green=nC(n.green,r.green,e),i.blue=nC(n.blue,r.blue,e),i.alpha=en(n.alpha,r.alpha,e),eY.transform(i))},nL=new Set(["none","hidden"]);function nM(e,t){return n=>en(e,t,n)}function nA(e){return"number"==typeof e?nM:"string"==typeof e?Q(e)?nx:eJ.test(e)?nS:nI:Array.isArray(e)?nT:"object"==typeof e?eJ.test(e)?nS:nP:nx}function nT(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>nA(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function nP(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=nA(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let nI=(e,t)=>{let n=e7.createTransformer(t),r=e6(e),i=e6(t);if(!(r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length))return eA(!0,`Complex values '${e}' and '${t}' 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.`,"complex-values-different"),nx(e,t);if(nL.has(e)&&!i.values.length||nL.has(t)&&!r.values.length)return nL.has(e)?n=>n<=0?e:t:n=>n>=1?t:e;return n_(nT(function(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let s=t.types[i],a=e.indexes[s][r[s]],o=e.values[a]??0;n[i]=o,r[s]++}return n}(r,i),i.values),n)};function nR(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?en(e,t,n):nA(e)(e,t)}let nO=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>R.update(t,e),stop:()=>O(t),now:()=>F.isProcessing?F.timestamp:td.now()}},nF=(e,t,n=10)=>{let r="",i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`};function nD(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function nj(e,t,n){var r,i;let s=Math.max(t-5,0);return r=n-e(s),(i=t-s)?1e3/i*r:0}let nN=.01,nB=2,nV=.005,n$=.5;function nz(e,t){return e*Math.sqrt(1-t*t)}let nU=["duration","bounce"],nH=["stiffness","damping","mass"];function nW(e,t){return t.some(t=>void 0!==e[t])}function nG(e=.3,t=.3){let n,r="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:i,restDelta:s}=r,a=r.keyframes[0],o=r.keyframes[r.keyframes.length-1],l={done:!1,value:a},{stiffness:c,damping:u,mass:d,duration:h,velocity:p,isResolvedFromDuration:m}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!nW(e,nH)&&nW(e,nU))if(e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,i=2*ef(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:1,stiffness:r,damping:i}}else{let n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let i,s;eA(e<=nb(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=ef(.05,1,a),e=ef(.01,10,e/1e3),a<1?(i=t=>{let r=t*a,i=r*e;return .001-(r-n)/nz(t,a)*Math.exp(-i)},s=t=>{let r=t*a*e,s=Math.pow(a,2)*Math.pow(t,2)*e,o=Math.exp(-r),l=nz(Math.pow(t,2),a);return(r*n+n-s)*o*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),s=t=>e*e*(n-t)*Math.exp(-t*e));let o=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,s,5/e);if(e=nb(e),isNaN(o))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(o,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...r,velocity:-((r.velocity||0)/1e3)}),f=p||0,g=u/(2*Math.sqrt(c*d)),y=o-a,_=Math.sqrt(c/d)/1e3,b=5>Math.abs(y);if(i||(i=b?nN:nB),s||(s=b?nV:n$),g<1){let e=nz(_,g);n=t=>o-Math.exp(-g*_*t)*((f+g*_*y)/e*Math.sin(e*t)+y*Math.cos(e*t))}else if(1===g)n=e=>o-Math.exp(-_*e)*(y+(f+_*y)*e);else{let e=_*Math.sqrt(g*g-1);n=t=>{let n=Math.exp(-g*_*t),r=Math.min(e*t,300);return o-n*((f+g*_*y)*Math.sinh(r)+e*y*Math.cosh(r))/e}}let v={calculatedDuration:m&&h||null,next:e=>{let t=n(e);if(m)l.done=e>=h;else{let r=0===e?f:0;g<1&&(r=0===e?nb(f):nj(n,e,t));let a=Math.abs(o-t)<=s;l.done=Math.abs(r)<=i&&a}return l.value=l.done?o:t,l},toString:()=>{let e=Math.min(nD(v),2e4),t=nF(t=>v.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return v}function nZ({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:c=.5,restSpeed:u}){let d,h,p=e[0],m={done:!1,value:p},f=n*t,g=p+f,y=void 0===a?g:a(g);y!==g&&(f=y-p);let _=e=>-f*Math.exp(-e/r),b=e=>y+_(e),v=e=>{let t=_(e),n=b(e);m.done=Math.abs(t)<=c,m.value=m.done?y:n},w=e=>{let t;if(t=m.value,void 0!==o&&t<o||void 0!==l&&t>l){var n;d=e,h=nG({keyframes:[m.value,(n=m.value,void 0===o?l:void 0===l||Math.abs(o-n)<Math.abs(l-n)?o:l)],velocity:nj(b,e,m.value),damping:i,stiffness:s,restDelta:c,restSpeed:u})}};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,v(e),w(e)),void 0!==d&&e>=d)?h.next(e-d):(t||v(e),m)}}}nG.applyToOptions=e=>{let t=function(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(nD(r),2e4);return{type:"keyframes",ease:e=>r.next(i*e).value/t,duration:i/1e3}}(e,100,nG);return e.ease=t.ease,e.duration=nb(t.duration),e.type="keyframes",e};let nq=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function nY(e,t,n,r){return e===t&&n===r?A:i=>0===i||1===i?i:nq(function(e,t,n,r,i){let s,a,o=0;do(s=nq(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a;while(Math.abs(s)>1e-7&&++o<12)return a}(i,0,1,e,n),t,r)}let nX=nY(.42,0,1,1),nK=nY(0,0,.58,1),nJ=nY(.42,0,.58,1),nQ=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,n1=e=>t=>1-e(1-t),n0=nY(.33,1.53,.69,.99),n4=n1(n0),n6=nQ(n4),n9=e=>(e*=2)<1?.5*n4(e):.5*(2-Math.pow(2,-10*(e-1))),n5=e=>1-Math.sin(Math.acos(e)),n2=n1(n5),n7=nQ(n5),n3=e=>Array.isArray(e)&&"number"==typeof e[0],n8={linear:A,easeIn:nX,easeInOut:nJ,easeOut:nK,circIn:n5,circInOut:n7,circOut:n2,backIn:n4,backInOut:n6,backOut:n0,anticipate:n9},re=e=>{if(n3(e)){eT(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,n,r,i]=e;return nY(t,n,r,i)}return"string"==typeof e?(eT(void 0!==n8[e],`Invalid easing type '${e}'`,"invalid-easing-type"),n8[e]):e},rt=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r};function rn({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){var i;let s,a=Array.isArray(r)&&"number"!=typeof r[0]?r.map(re):re(r),o={done:!1,value:t[0]},l=function(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let s=e.length;if(eT(s===t.length,"Both input and output ranges must be the same length","range-length"),1===s)return()=>t[0];if(2===s&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());let o=function(e,t,n){let r=[],i=n||T.mix||nR,s=e.length-1;for(let n=0;n<s;n++){let s=i(e[n],e[n+1]);t&&(s=n_(Array.isArray(t)?t[n]||A:t,s)),r.push(s)}return r}(t,r,i),l=o.length,c=n=>{if(a&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=rt(e[r],e[r+1],n);return o[r](i)};return n?t=>c(ef(e[0],e[s-1],t)):c}((i=n&&n.length===t.length?n:(!function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=rt(0,t,r);e.push(en(n,1,i))}}(s=[0],t.length-1),s),i.map(t=>t*e)),t,{ease:Array.isArray(a)?a:t.map(()=>a||nJ).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=l(t),o.done=t>=e,o)}}let rr=e=>null!==e;function ri(e,{repeat:t,repeatType:n="loop"},r,i=1){let s=e.filter(rr),a=i<0||t&&"loop"!==n&&t%2==1?0:s.length-1;return a&&void 0!==r?r:s[a]}let rs={decay:nZ,inertia:nZ,tween:rn,keyframes:rn,spring:nG};function ra(e){"string"==typeof e.type&&(e.type=rs[e.type])}class ro{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let rl=e=>e/100;class rc extends ro{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==td.now()&&this.tick(td.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},nv.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;ra(e);let{type:t=rn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:s=0}=e,{keyframes:a}=e,o=t||rn;o!==rn&&"number"!=typeof a[0]&&(this.mixKeyframes=n_(rl,nR(a[0],a[1])),a=[0,100]);let l=o({...e,keyframes:a});"mirror"===i&&(this.mirroredGenerator=o({...e,keyframes:[...a].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=nD(l));let{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:o}=this;if(null===this.startTime)return n.next(0);let{delay:l=0,keyframes:c,repeat:u,repeatType:d,repeatDelay:h,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let _=this.currentTime,b=n;if(u){let e=Math.min(this.currentTime,r)/a,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,u+1))%2&&("reverse"===d?(n=1-n,h&&(n-=h/a)):"mirror"===d&&(b=s)),_=ef(0,1,n)*a}let v=y?{done:!1,value:c[0]}:b.next(_);i&&(v.value=i(v.value));let{done:w}=v;y||null===o||(w=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let x=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return x&&p!==nZ&&(v.value=ri(c,this.options,f,this.speed)),m&&m(v.value),x&&this.finish(),v}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=nb(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(td.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=nO,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(td.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,nv.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function ru(e){let t;return()=>(void 0===t&&(t=e()),t)}let rd=ru(()=>void 0!==window.ScrollTimeline),rh={},rp=(n=ru(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),()=>rh.linearEasing??n()),rm=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,rf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:rm([0,.65,.55,1]),circOut:rm([.55,0,1,.45]),backIn:rm([.31,.01,.66,-.59]),backOut:rm([.33,1.53,.69,.99])};function rg(e){return"function"==typeof e&&"applyToOptions"in e}class ry extends ro{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:o}=e;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=e,eT("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return rg(e)&&rp()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:a="loop",ease:o="easeOut",times:l}={},c){let u={[t]:n};l&&(u.offset=l);let d=function e(t,n){if(t)return"function"==typeof t?rp()?nF(t,n):"ease-out":n3(t)?rm(t):Array.isArray(t)?t.map(t=>e(t,n)||rf.easeOut):rf[t]}(o,i);Array.isArray(d)&&(u.easing=d);let h={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:"reverse"===a?"alternate":"normal"};c&&(h.pseudoElement=c);let p=e.animate(u,h);return p}(t,n,r,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=ri(r,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(e):n.startsWith("--")?t.style.setProperty(n,e):t.style[n]=e,this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){this.finishedTime=null,this.animation.currentTime=nb(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&rd())?(this.animation.timeline=e,A):t(this)}}let r_={anticipate:n9,backInOut:n6,circInOut:n7};class rb extends ry{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in r_&&(e.ease=r_[e.ease])}(e),ra(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...s}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let a=new rc({...s,autoplay:!1}),o=nb(this.finishedTime??this.time);t.setWithVelocity(a.sample(o-10).value,a.sample(o).value,10),a.stop()}}let rv=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(e7.test(e)||"0"===e)&&!e.startsWith("url(")),rw=new Set(["opacity","clipPath","filter","transform"]),rx=ru(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class rC extends ro{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:o,motionValue:l,element:c,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=td.now();const d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:s,name:o,motionValue:l,element:c,...u},h=c?.KeyframeResolver||ez;this.keyframeResolver=new h(a,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),o,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:s,velocity:a,delay:o,isHandoff:l,onUpdate:c}=n;this.resolvedAt=td.now(),!function(e,t,n,r){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let s=e[e.length-1],a=rv(i,t),o=rv(s,t);return eA(a===o,`You are trying to animate ${t} from "${i}" to "${s}". "${a?s:i}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||rg(n))&&r)}(e,i,s,a)&&((T.instantAnimations||!o)&&c?.(ri(e,n,t)),e[0]=e[e.length-1],ng(n),n.repeat=0);let u={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},d=!l&&function(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:o,transformTemplate:l}=t.owner.getProps();return rx()&&n&&rw.has(n)&&("transform"!==n||!l)&&!o&&!r&&"mirror"!==i&&0!==s&&"inertia"!==a}(u)?new rb({...u,element:u.motionValue.owner.current}):new rc(u);d.finished.then(()=>this.notifyFinished()).catch(A),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eB=!0,e$(),eV(),eB=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let rk=e=>null!==e,rE={type:"spring",stiffness:500,damping:25,restSpeed:10},rS={type:"keyframes",duration:.8},rL={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rM=(e,t,n,r={},i,s)=>a=>{let o=np(r,e)||{},l=o.delay||r.delay||0,{elapsed:c=0}=r;c-=nb(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-c,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:i};!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(o)&&Object.assign(u,((e,{keyframes:t})=>t.length>2?rS:B.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:rE:rL)(e,u)),u.duration&&(u.duration=nb(u.duration)),u.repeatDelay&&(u.repeatDelay=nb(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if(!1!==u.type&&(0!==u.duration||u.repeatDelay)||(ng(u),0===u.delay&&(d=!0)),(T.instantAnimations||T.skipAnimations)&&(d=!0,ng(u),u.delay=0),u.allowFlatten=!o.type&&!o.ease,d&&!s&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:n="loop"}){let r=e.filter(rk),i=t&&"loop"!==n&&t%2==1?0:r.length-1;return r[i]}(u.keyframes,o);if(void 0!==e)return void R.update(()=>{u.onUpdate(e),u.onComplete()})}return o.isSync?new rc(u):new rC(u)};function rA(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:a,...o}=t;r&&(s=r);let l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(let t in o){let r=e.getValue(t,e.latestValues[t]??null),i=o[t];if(void 0===i||c&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(c,t))continue;let a={delay:n,...np(s||{},t)},u=r.get();if(void 0!==u&&!r.isAnimating&&!Array.isArray(i)&&i===u&&!a.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let n=e.props[nc];if(n){let e=window.MotionHandoffAnimation(n,t,R);null!==e&&(a.startTime=e,d=!0)}}nf(e,t),r.start(rM(t,r,i,e.shouldReduceMotion&&em.has(t)?{type:!1}:a,e,d));let h=r.animation;h&&l.push(h)}return a&&Promise.all(l).then(()=>{R.update(()=>{a&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=nh(e,t)||{};for(let t in i={...i,...n}){var s;let n=nm(s=i[t])?s[s.length-1]||0:s;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,tg(n))}}(e,a)})}),l}function rT(e,t,n,r=0,i=1){let s=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),a=e.size,o=(a-1)*r;return"function"==typeof n?n(s,a):1===i?s*r:o-s*r}function rP(e,t,n={}){let r=nh(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let s=r?()=>Promise.all(rA(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:s=0,staggerChildren:a,staggerDirection:o}=i;return function(e,t,n=0,r=0,i=0,s=1,a){let o=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),o.push(rP(l,t,{...a,delay:n+("function"==typeof r?0:r)+rT(e.variantChildren,l,r,i,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(o)}(e,t,r,s,a,o,n)}:()=>Promise.resolve(),{when:o}=i;if(!o)return Promise.all([s(),a(n.delay)]);{let[e,t]="beforeChildren"===o?[s,a]:[a,s];return e().then(()=>t())}}function rI(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}let rR=tP.length,rO=[...tT].reverse(),rF=tT.length;function rD(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rj(){return{animate:rD(!0),whileInView:rD(),whileHover:rD(),whileTap:rD(),whileDrag:rD(),whileFocus:rD(),exit:rD()}}class rN{constructor(e){this.isMounted=!1,this.node=e}update(){}}let rB=0,rV={x:!1,y:!1};function r$(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}let rz=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function rU(e){return{point:{x:e.pageX,y:e.pageY}}}function rH(e,t,n,r){return r$(e,t,e=>rz(e)&&n(e,rU(e)),r)}function rW(e){return e.max-e.min}function rG(e,t,n,r=.5){e.origin=r,e.originPoint=en(t.min,t.max,e.origin),e.scale=rW(n)/rW(t),e.translate=en(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function rZ(e,t,n,r){rG(e.x,t.x,n.x,r?r.originX:void 0),rG(e.y,t.y,n.y,r?r.originY:void 0)}function rq(e,t,n){e.min=n.min+t.min,e.max=e.min+rW(t)}function rY(e,t,n){e.min=t.min-n.min,e.max=e.min+rW(t)}function rX(e,t,n){rY(e.x,t.x,n.x),rY(e.y,t.y,n.y)}function rK(e){return[e("x"),e("y")]}let rJ=({current:e})=>e?e.ownerDocument.defaultView:null,rQ=(e,t)=>Math.abs(e-t);class r1{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=r6(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(e=n.offset,t={x:0,y:0},Math.sqrt(rQ(e.x,t.x)**2+rQ(e.y,t.y)**2)>=this.distanceThreshold);if(!r&&!i)return;let{point:s}=n,{timestamp:a}=F;this.history.push({...s,timestamp:a});let{onStart:o,onMove:l}=this.handlers;r||(o&&o(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=r0(t,this.transformPagePoint),R.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=r6("pointercancel"===e.type?this.lastMoveEventInfo:r0(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,s),r&&r(e,s)},!rz(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=s,this.contextWindow=r||window;const a=r0(rU(e),this.transformPagePoint),{point:o}=a,{timestamp:l}=F;this.history=[{...o,timestamp:l}];const{onSessionStart:c}=t;c&&c(e,r6(a,this.history)),this.removeListeners=n_(rH(this.contextWindow,"pointermove",this.handlePointerMove),rH(this.contextWindow,"pointerup",this.handlePointerUp),rH(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),O(this.updatePoint)}}function r0(e,t){return t?{point:t(e.point)}:e}function r4(e,t){return{x:e.x-t.x,y:e.y-t.y}}function r6({point:e},t){return{point:e,delta:r4(e,r9(t)),offset:r4(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,n=null,r=r9(e);for(;t>=0&&(n=e[t],!(r.timestamp-n.timestamp>nb(.1)));)t--;if(!n)return{x:0,y:0};let i=(r.timestamp-n.timestamp)/1e3;if(0===i)return{x:0,y:0};let s={x:(r.x-n.x)/i,y:(r.y-n.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t)}}function r9(e){return e[e.length-1]}function r5(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function r2(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function r7(e,t,n){return{min:r3(e,t),max:r3(e,n)}}function r3(e,t){return"number"==typeof e?e:e[t]||0}let r8=new WeakMap;class ie{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=tk(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let i=e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(rU(e).point)},s=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(rV[e])return null;else return rV[e]=!0,()=>{rV[e]=!1};return rV.x||rV.y?null:(rV.x=rV.y=!0,()=>{rV.x=rV.y=!1})}(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rK(e=>{let t=this.getAxisMotionValue(e).get()||0;if(ew.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=rW(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&R.postRender(()=>i(e,t)),nf(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:s}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),s&&s(e,t)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>rK(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new r1(e,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:n,contextWindow:rJ(this.visualElement)})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:s}=r;this.startAnimation(s);let{onDragEnd:a}=this.getProps();a&&R.postRender(()=>a(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!it(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),s=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(s=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?en(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?en(n,e,r.max):Math.min(e,n)),e}(s,this.constraints[e],this.elastic[e])),i.set(s)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&nl(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:r5(e.x,n,i),y:r5(e.y,t,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:r7(e,"left","right"),y:r7(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&rK(e=>{var t,r;let i;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=n.layoutBox[e],r=this.constraints[e],i={},void 0!==r.min&&(i.min=r.min-t.min),void 0!==r.max&&(i.max=r.max-t.min),i))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nl(t))return!1;let r=t.current;eT(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let s=function(e,t,n){let r=ep(e,n),{scroll:i}=t;return i&&(eu(r.x,i.offset.x),eu(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a=(e=i.layout.layoutBox,{x:r2(e.x,s.x),y:r2(e.y,s.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=et(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(rK(a=>{if(!it(a,t,this.currentDirection))return;let l=o&&o[a]||{};s&&(l={min:0,max:0});let c={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,c)})).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return nf(this.visualElement,e),n.start(rM(e,n,0,t,this.visualElement,!1))}stopAnimation(){rK(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){rK(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){rK(t=>{let{drag:n}=this.getProps();if(!it(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:s}=r.layout.layoutBox[t];i.set(e[t]-en(n,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!nl(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};rK(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var n,i;let s,a,o,l=t.get();r[e]=(n={min:l,max:l},i=this.constraints[e],s=.5,a=rW(n),(o=rW(i))>a?s=rt(i.min,i.max-a,n.min):a>o&&(s=rt(n.min,n.max-o,i.min)),ef(0,1,s))}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),rK(t=>{if(!it(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:s}=this.constraints[t];n.set(en(i,s,r[t]))})}addListeners(){if(!this.visualElement.current)return;r8.set(this.visualElement,this);let e=rH(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();nl(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),R.read(t);let i=r$(window,"resize",()=>this.scalePositionWithinConstraints()),s=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rK(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),r(),s&&s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:s=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function it(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let ir=e=>(t,n)=>{e&&R.postRender(()=>e(t,n))};var ii=s;let is={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ia(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let io={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!ex.test(e))return e;else e=parseFloat(e);let n=ia(e,t.target.x),r=ia(e,t.target.y);return`${n}% ${r}%`}},il=!1;class ic extends ii.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;for(let e in id)tH[e]=id[e],K(e)&&(tH[e].isCSSVariable=!0);i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),il&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),is.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:s}=n;return s&&(s.isPresent=i,il=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?s.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?s.promote():s.relegate()||R.postRender(()=>{let e=s.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),t_.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;il=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function iu(e){let[t,n]=L(),r=(0,ii.useContext)(b);return(0,a.jsx)(ic,{...e,layoutGroup:r,switchLayoutGroup:(0,ii.useContext)(nu),isPresent:t,safeToRemove:n})}let id={borderRadius:{...io,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:io,borderTopRightRadius:io,borderBottomLeftRadius:io,borderBottomRightRadius:io,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e7.parse(e);if(r.length>5)return e;let i=e7.createTransformer(e),s=+("number"!=typeof r[0]),a=n.x.scale*t.x,o=n.y.scale*t.y;r[0+s]/=a,r[1+s]/=o;let l=en(a,o,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),i(r)}}};function ih(e){return k(e)&&"ownerSVGElement"in e}let ip=(e,t)=>e.depth-t.depth;class im{constructor(){this.children=[],this.isDirty=!1}add(e){th(this.children,e),this.isDirty=!0}remove(e){tp(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ip),this.isDirty=!1,this.children.forEach(e)}}let ig=["TopLeft","TopRight","BottomLeft","BottomRight"],iy=ig.length,i_=e=>"string"==typeof e?parseFloat(e):e,ib=e=>"number"==typeof e||ex.test(e);function iv(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let iw=iC(0,.5,n2),ix=iC(.5,.95,A);function iC(e,t,n){return r=>r<e?0:r>t?1:n(rt(e,t,r))}function ik(e,t){e.min=t.min,e.max=t.max}function iE(e,t){ik(e.x,t.x),ik(e.y,t.y)}function iS(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function iL(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function iM(e,t,[n,r,i],s,a){!function(e,t=0,n=1,r=.5,i,s=e,a=e){if(ew.test(t)&&(t=parseFloat(t),t=en(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let o=en(s.min,s.max,r);e===s&&(o-=t),e.min=iL(e.min,t,n,o,i),e.max=iL(e.max,t,n,o,i)}(e,t[n],t[r],t[i],t.scale,s,a)}let iA=["x","scaleX","originX"],iT=["y","scaleY","originY"];function iP(e,t,n,r){iM(e.x,t,iA,n?n.x:void 0,r?r.x:void 0),iM(e.y,t,iT,n?n.y:void 0,r?r.y:void 0)}function iI(e){return 0===e.translate&&1===e.scale}function iR(e){return iI(e.x)&&iI(e.y)}function iO(e,t){return e.min===t.min&&e.max===t.max}function iF(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function iD(e,t){return iF(e.x,t.x)&&iF(e.y,t.y)}function ij(e){return rW(e.x)/rW(e.y)}function iN(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class iB{constructor(){this.members=[]}add(e){th(this.members,e),e.scheduleRender()}remove(e){if(tp(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let iV=["","X","Y","Z"],i$=0;function iz(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function iU({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=i$++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(iG),this.nodes.forEach(iQ),this.nodes.forEach(i1),this.nodes.forEach(iZ)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new im)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new tm),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=ih(t)&&!(ih(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;R.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==r){let t,s;r=e,this.root.updateBlockedByResize=!0,n&&n(),t=td.now(),s=({timestamp:e})=>{let n=e-t;n>=250&&(O(s),i(n-250))},R.setup(s,!0),n=()=>O(s),is.hasAnimatedSinceResize&&(is.hasAnimatedSinceResize=!1,this.nodes.forEach(iJ))}})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||i.getDefaultTransition()||i2,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=i.getProps(),l=!this.targetLayout||!iD(this.targetLayout,r),c=!t&&n;if(this.options.layoutRoot||this.resumeFrom||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...np(s,"layout"),onPlay:a,onComplete:o};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c)}else t||iJ(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),O(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(i0),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=n.props[nc];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",R,!(e||n))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(iY);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(iX);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(iK),this.nodes.forEach(iH),this.nodes.forEach(iW)):this.nodes.forEach(iX),this.clearAllSnapshots();let e=td.now();F.delta=ef(0,1e3/60,e-F.timestamp),F.timestamp=e,F.isProcessing=!0,D.update.process(F),D.preRender.process(F),D.render.process(F),F.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,t_.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iq),this.sharedNodes.forEach(i4)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,R.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){R.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||rW(this.snapshot.measuredBox.x)||rW(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=tk(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!iR(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||es(this.latestValues)||s)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),i8((t=r).x),i8(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return tk();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(st))){let{scroll:e}=this.root;e&&(eu(t.x,e.offset.x),eu(t.y,e.offset.y))}return t}removeElementScroll(e){let t=tk();if(iE(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:s}=r;r!==this.root&&i&&s.layoutScroll&&(i.wasRoot&&iE(t,e),eu(t.x,i.offset.x),eu(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=tk();iE(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&eh(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),es(r.latestValues)&&eh(n,r.latestValues)}return es(this.latestValues)&&eh(n,this.latestValues),n}removeTransform(e){let t=tk();iE(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!es(n.latestValues))continue;ei(n.latestValues)&&n.updateSnapshot();let r=tk();iE(r,n.measurePageBox()),iP(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return es(this.latestValues)&&iP(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.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!==F.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(this.layout&&(r||i)){if(this.resolvedRelativeTargetAt=F.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tk(),this.relativeTargetOrigin=tk(),rX(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),iE(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=tk(),this.targetWithTransforms=tk()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var s,a,o;this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,o=this.relativeParent.target,rq(s.x,a.x,o.x),rq(s.y,a.y,o.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):iE(this.target,this.layout.layoutBox),ec(this.target,this.targetDelta)):iE(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tk(),this.relativeTargetOrigin=tk(),rX(this.relativeTargetOrigin,this.target,e.target),iE(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}}getClosestProjectingParent(){if(!(!this.parent||ei(this.parent.latestValues)||ea(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===F.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=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||i))return;iE(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){let i,s,a=n.length;if(a){t.x=t.y=1;for(let o=0;o<a;o++){s=(i=n[o]).projectionDelta;let{visualElement:a}=i.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&eh(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,ec(e,s)),r&&es(i.latestValues)&&eh(e,i.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=tk());let{target:o}=e;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(iS(this.prevProjectionDelta.x,this.projectionDelta.x),iS(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rZ(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&iN(this.projectionDelta.x,this.prevProjectionDelta.x)&&iN(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=tx(),this.projectionDelta=tx(),this.projectionDeltaWithTransform=tx()}setAnimationOrigin(e,t=!1){let n,r=this.snapshot,i=r?r.latestValues:{},s={...this.latestValues},a=tx();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=tk(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),u=!c||c.members.length<=1,d=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(i5));this.animationProgress=0,this.mixTargetDelta=t=>{let r=t/1e3;if(i6(a.x,e.x,r),i6(a.y,e.y,r),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,h,p,m,f,g;rX(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=o,g=r,i9(p.x,m.x,f.x,g),i9(p.y,m.y,f.y,g),n&&(c=this.relativeTarget,h=n,iO(c.x,h.x)&&iO(c.y,h.y))&&(this.isProjectionDirty=!1),n||(n=tk()),iE(n,this.relativeTarget)}l&&(this.animationValues=s,function(e,t,n,r,i,s){i?(e.opacity=en(0,n.opacity??1,iw(r)),e.opacityExit=en(t.opacity??1,0,ix(r))):s&&(e.opacity=en(t.opacity??1,n.opacity??1,r));for(let i=0;i<iy;i++){let s=`border${ig[i]}Radius`,a=iv(t,s),o=iv(n,s);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||ib(a)===ib(o)?(e[s]=Math.max(en(i_(a),i_(o),r),0),(ew.test(o)||ew.test(a))&&(e[s]+="%")):e[s]=o)}(t.rotate||n.rotate)&&(e.rotate=en(t.rotate||0,n.rotate||0,r))}(s,i,this.latestValues,r,d,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(O(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=R.update(()=>{var t,n,r;let i;is.hasAnimatedSinceResize=!0,nv.layout++,this.motionValue||(this.motionValue=tg(0)),this.currentAnimation=(t=this.motionValue,n=[0,1e3],r={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{nv.layout--},onComplete:()=>{nv.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}},(i=tc(t)?t:tg(t)).start(rM("",i,n,r)),i.animation),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 e=this.getStack();e&&e.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 e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&se(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||tk();let t=rW(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=rW(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}iE(t,n),eh(t,i),rZ(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new iB),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&iz("z",e,r,this.animationValues);for(let t=0;t<iV.length;t++)iz(`rotate${iV[t]}`,e,r,this.animationValues),iz(`skew${iV[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=nr(t?.pointerEvents)||"",e.transform=n?n(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=nr(t?.pointerEvents)||""),this.hasProjected&&!es(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1);return}e.visibility="";let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let s=function(e,t,n){let r="",i=e.x.translate/t.x,s=e.y.translate/t.y,a=n?.z||0;if((i||s||a)&&(r=`translate3d(${i}px, ${s}px, ${a}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:s,skewX:a,skewY:o}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),s&&(r+=`rotateY(${s}deg) `),a&&(r+=`skewX(${a}deg) `),o&&(r+=`skewY(${o}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(r+=`scale(${o}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);n&&(s=n(i,s)),e.transform=s;let{x:a,y:o}=this.projectionDelta;for(let t in e.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,tH){if(void 0===i[t])continue;let{correct:n,applyTo:a,isCSSVariable:o}=tH[t],l="none"===s?i[t]:n(i[t],r);if(a){let t=a.length;for(let n=0;n<t;n++)e[a[n]]=l}else o?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?nr(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(iY),this.root.sharedNodes.clear()}}}function iH(e){e.updateLayout()}function iW(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,s=t.source!==e.layout.source;"size"===i?rK(e=>{let r=s?t.measuredBox[e]:t.layoutBox[e],i=rW(r);r.min=n[e].min,r.max=r.min+i}):se(i,t.layoutBox,n)&&rK(r=>{let i=s?t.measuredBox[r]:t.layoutBox[r],a=rW(n[r]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});let a=tx();rZ(a,n,t.layoutBox);let o=tx();s?rZ(o,e.applyTransform(r,!0),t.measuredBox):rZ(o,n,t.layoutBox);let l=!iR(a),c=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:s}=r;if(i&&s){let a=tk();rX(a,t.layoutBox,i.layoutBox);let o=tk();rX(o,n,s.layoutBox),iD(a,o)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=o,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function iG(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function iZ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iq(e){e.clearSnapshot()}function iY(e){e.clearMeasurements()}function iX(e){e.isLayoutDirty=!1}function iK(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function iJ(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function iQ(e){e.resolveTargetDelta()}function i1(e){e.calcProjection()}function i0(e){e.resetSkewAndRotation()}function i4(e){e.removeLeadSnapshot()}function i6(e,t,n){e.translate=en(t.translate,0,n),e.scale=en(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function i9(e,t,n,r){e.min=en(t.min,n.min,r),e.max=en(t.max,n.max,r)}function i5(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let i2={duration:.45,ease:[.4,0,.1,1]},i7=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),i3=i7("applewebkit/")&&!i7("chrome/")?Math.round:A;function i8(e){e.min=i3(e.min),e.max=i3(e.max)}function se(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(ij(t)-ij(n)))}function st(e){return e!==e.root&&e.scroll?.wasRoot}let sn=iU({attachResizeListener:(e,t)=>r$(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sr={current:void 0},si=iU({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sr.current){let e=new sn({});e.mount(window),e.setOptions({layoutScroll:!0}),sr.current=e}return sr.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function ss(e,t){let n=function(e){if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document,n=(void 0)??t.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function sa(e){return!("touch"===e.pointerType||rV.x||rV.y)}function so(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&R.postRender(()=>i(t,rU(t)))}let sl=(e,t)=>!!t&&(e===t||sl(e,t.parentElement)),sc=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),su=new WeakSet;function sd(e){return t=>{"Enter"===t.key&&e(t)}}function sh(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function sp(e){return rz(e)&&!(rV.x||rV.y)}function sm(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=r["onTap"+("End"===n?"":n)];i&&R.postRender(()=>i(t,rU(t)))}let sf=new WeakMap,sg=new WeakMap,sy=e=>{let t=sf.get(e.target);t&&t(e)},s_=e=>{e.forEach(sy)},sb={some:0,all:1},sv=function(e,t){if("u"<typeof Proxy)return nd;let n=new Map,r=(n,r)=>nd(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,s)=>"create"===s?r:(n.has(s)||n.set(s,nd(s,void 0,e,t)),n.get(s))})}({animation:{Feature:class extends rN{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>rP(e,t,n)));else if("string"==typeof t)r=rP(e,t,n);else{let i="function"==typeof t?nh(e,t,n.custom):t;r=Promise.all(rA(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=rj(),r=!0,i=t=>(n,r)=>{let i=nh(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function s(s){let{props:a}=e,o=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<rR;e++){let r=tP[e],i=t.props[r];(tA(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},l=[],c=new Set,u={},d=1/0;for(let t=0;t<rF;t++){var h,p;let m=rO[t],f=n[m],g=void 0!==a[m]?a[m]:o[m],y=tA(g),_=m===s?f.isActive:null;!1===_&&(d=t);let b=g===o[m]&&g!==a[m]&&y;if(b&&r&&e.manuallyAnimateOnMount&&(b=!1),f.protectedKeys={...u},!f.isActive&&null===_||!g&&!f.prevProp||tM(g)||"boolean"==typeof g)continue;let v=(h=f.prevProp,"string"==typeof(p=g)?p!==h:!!Array.isArray(p)&&!rI(p,h)),w=v||m===s&&f.isActive&&!b&&y||t>d&&y,x=!1,C=Array.isArray(g)?g:[g],k=C.reduce(i(m),{});!1===_&&(k={});let{prevResolvedValues:E={}}=f,S={...E,...k},L=t=>{w=!0,c.has(t)&&(x=!0,c.delete(t)),f.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in S){let t=k[e],n=E[e];if(!u.hasOwnProperty(e))(nm(t)&&nm(n)?rI(t,n):t===n)?void 0!==t&&c.has(e)?L(e):f.protectedKeys[e]=!0:null!=t?L(e):c.add(e)}f.prevProp=g,f.prevResolvedValues=k,f.isActive&&(u={...u,...k}),r&&e.blockInitialAnimation&&(w=!1);let M=b&&v,A=!M||x;w&&A&&l.push(...C.map(t=>{let n={type:m};if("string"==typeof t&&r&&!M&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=nh(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=rT(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(c.size){let t={};if("boolean"!=typeof a.initial){let n=nh(e,Array.isArray(a.initial)?a.initial[0]:a.initial);n&&n.transition&&(t.transition=n.transition)}c.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let m=!!l.length;return r&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(l):Promise.resolve()}return{animateChanges:s,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=rj(),r=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();tM(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends rN{constructor(){super(...arguments),this.id=rB++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends rN{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.unmount();let{viewport:n={}}=this.node.getProps(),{root:r,margin:i,amount:s="some",once:a}=n,o={root:r?r.current:void 0,rootMargin:i,threshold:"number"==typeof s?s:sb[s]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,a&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)};return e=this.node.current,t=function({root:e,...t}){let n=e||document;sg.has(n)||sg.set(n,{});let r=sg.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(s_,{root:e,...t})),r[i]}(o),sf.set(e,l),t.observe(e),()=>{sf.delete(e),t.unobserve(e)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends rN{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,s]=ss(e,n),a=e=>{let r=e.currentTarget;if(!sp(e))return;su.add(r);let s=t(r,e),a=(e,t)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),su.has(r)&&su.delete(r),sp(e)&&"function"==typeof s&&s(e,{success:t})},o=e=>{a(e,r===window||r===document||n.useGlobalTarget||sl(r,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",o,i),window.addEventListener("pointercancel",l,i)};return r.forEach(e=>{((n.useGlobalTarget?window:e).addEventListener("pointerdown",a,i),E(e))&&(e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let r=sd(()=>{if(su.has(n))return;sh(n,"down");let e=sd(()=>{sh(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>sh(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,i)),sc.has(e.tagName)||-1!==e.tabIndex||e.hasAttribute("tabindex")||(e.tabIndex=0))}),s}(e,(e,t)=>(sm(this.node,t,"Start"),(e,{success:t})=>sm(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends rN{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&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=n_(r$(this.node.current,"focus",()=>this.onFocus()),r$(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends rN{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,s]=ss(e,n),a=e=>{if(!sa(e))return;let{target:n}=e,r=t(n,e);if("function"!=typeof r||!n)return;let s=e=>{sa(e)&&(r(e),n.removeEventListener("pointerleave",s))};n.addEventListener("pointerleave",s,i)};return r.forEach(e=>{e.addEventListener("pointerenter",a,i)}),s}(e,(e,t)=>(so(this.node,t,"Start"),e=>so(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends rN{constructor(){super(...arguments),this.removePointerDownListener=A}onPointerDown(e){this.session=new r1(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rJ(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:ir(e),onStart:ir(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&R.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=rH(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends rN{constructor(e){super(e),this.removeGroupControls=A,this.removeListeners=A,this.controls=new ie(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||A}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:si,MeasureLayout:iu},layout:{ProjectionNode:si,MeasureLayout:iu}},(e,t)=>t6(e)?new t0(t):new tZ(t,{allowProjection:e!==s.Fragment}));e.s(["motion",0,sv],36002);let sw=s.forwardRef(({size:e=20,children:t,...n},r)=>(0,a.jsx)("svg",{fill:"none",height:e,ref:r,viewBox:"0 0 24 24",width:e,xmlns:"http://www.w3.org/2000/svg",...n,children:t}));sw.displayName="IconBase",e.s(["IconBase",0,sw],37289);let sx=s.forwardRef(({...e},t)=>(0,a.jsx)(sw,{ref:t,...e,children:(0,a.jsx)("path",{d:"M12 16L6 9.85966L6.84 9L12 14.2808L17.16 9L18 9.85966L12 16Z",fill:"currentColor"})}));sx.displayName="IconArrowDown",e.s(["IconArrowDown",0,sx],9334)},68645,e=>{"use strict";var t=e.i(50270),n=e.i(7284),r=e.i(80319),i=e.i(64618),s=e.i(20764),a=e.i(602),o=e.i(18960),l=e.i(77887),c=e.i(98804),u=e.i(36002),d=e.i(69159),h=e.i(89137),p=e.i(64369),m=e.i(2884),f=e.i(9334),g=e.i(37289);let y=o.forwardRef(({...e},n)=>(0,t.jsx)(g.IconBase,{ref:n,...e,children:(0,t.jsx)("path",{clipRule:"evenodd",d:"M6.75 4C5.23122 4 4 5.23122 4 6.75V7.75V8V17.25C4 18.7688 5.23122 20 6.75 20H17.25C18.7688 20 20 18.7688 20 17.25V9.75C20 8.23122 18.7688 7 17.25 7H14.0816L13.227 5.43322C12.7451 4.54965 11.819 4 10.8127 4H6.75ZM12.3729 7L11.9101 6.15145L11.91 6.15138C11.6911 5.74989 11.2702 5.5 10.8127 5.5H6.75C6.05964 5.5 5.5 6.05964 5.5 6.75V7H12.3729ZM5.5 17.25V8.5H17.25C17.9404 8.5 18.5 9.05964 18.5 9.75V17.25C18.5 17.9404 17.9404 18.5 17.25 18.5H6.75C6.05964 18.5 5.5 17.9404 5.5 17.25Z",fill:"currentColor",fillRule:"evenodd"})}));y.displayName="IconFolder";let _=o.forwardRef(({...e},n)=>(0,t.jsx)(g.IconBase,{ref:n,...e,children:(0,t.jsx)("path",{clipRule:"evenodd",d:"M6.75 4C5.23122 4 4 5.23122 4 6.75V17.25V17.5C4 17.5933 4.01702 17.6825 4.04812 17.7649C4.28918 19.0376 5.4072 20 6.75 20H17.25C17.9905 20 18.6283 19.7404 19.111 19.2387C19.5681 18.7636 19.836 18.1241 19.9792 17.4279L21.4711 12.206C21.4903 12.139 21.5 12.0697 21.5 12C21.5 10.652 20.5301 9.53047 19.25 9.29534V8.5C19.25 7.5335 18.4665 6.75 17.5 6.75H13.9452L13.227 5.43322C12.7451 4.54965 11.819 4 10.8127 4H6.75ZM17.75 9.25V8.5C17.75 8.36193 17.6381 8.25 17.5 8.25H13.5C13.2255 8.25 12.973 8.10009 12.8416 7.85915L11.9101 6.15145L11.91 6.15138C11.6911 5.74989 11.2702 5.5 10.8127 5.5H6.75C6.05964 5.5 5.5 6.05964 5.5 6.75V13.158L6.79875 9.73401C6.90926 9.44267 7.1884 9.25 7.5 9.25H17.75ZM5.50587 17.372L8.01766 10.75H18.5H18.75C19.4091 10.75 19.949 11.26 19.9966 11.9069L18.5289 17.044C18.5233 17.0634 18.5185 17.0831 18.5146 17.1029C18.4062 17.6448 18.2275 17.9934 18.03 18.1988C17.8513 18.3846 17.6141 18.5 17.25 18.5H6.75C6.10079 18.5 5.56718 18.0051 5.50587 17.372Z",fill:"currentColor",fillRule:"evenodd"})}));_.displayName="IconFolderOpen";let b=new Set,v=({emailsDirectoryMetadata:e,className:n,currentEmailOpenSlug:r})=>{let s=!!r&&r.includes(e.relativePath),l=0===e.emailFilenames.length&&0===e.subDirectories.length,[c,u]=o.useState(b.has(e.absolutePath)||s);return(0,t.jsxs)(a.Root,{className:(0,i.cn)("group",n),onOpenChange:t=>{t?b.add(e.absolutePath):b.delete(e.absolutePath),u(t)},open:c,children:[(0,t.jsxs)(a.Trigger,{className:(0,i.cn)("mt-1 mb-1.5 flex w-full items-center text-start justify-between gap-2 font-medium text-[14px]",{"cursor-pointer":!l}),children:[c?(0,t.jsx)(_,{className:"w-[20px]",height:"20",width:"20"}):(0,t.jsx)(y,{height:"20",width:"20"}),(0,t.jsx)(m.Heading,{as:"h3",className:"transition grow w-[calc(100%-40px)] truncate duration-200 ease-in-out hover:text-slate-12",color:"gray",size:"2",weight:"medium",children:e.directoryName}),l?null:(0,t.jsx)(f.IconArrowDown,{width:"20",height:"20",className:"ml-auto opacity-60 transition-transform data-[open=true]:rotate-180","data-open":c})]}),l?null:(0,t.jsx)(w,{currentEmailOpenSlug:r,emailsDirectoryMetadata:e,open:c})]})},w=e=>{let n=(0,h.useSearchParams)(),r=(0,h.useRouter)(),s=o.useId();return(0,t.jsx)(l.AnimatePresence,{initial:!1,children:e.open?(0,t.jsx)(a.Content,{asChild:!0,className:"relative overflow-y-hidden pl-1",forceMount:!0,children:(0,t.jsxs)(u.motion.div,{animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},initial:{opacity:0,height:0},children:[e.isRoot?null:(0,t.jsx)("div",{className:"line absolute left-2.5 h-full w-px bg-slate-6"}),(0,t.jsx)("div",{className:"flex flex-col truncate",children:(0,t.jsxs)(c.LayoutGroup,{id:`sidebar-${s}`,children:[e.emailsDirectoryMetadata.subDirectories.map(n=>(0,t.jsx)(v,{className:"p-0 data-[state=open]:mb-2",currentEmailOpenSlug:e.currentEmailOpenSlug,emailsDirectoryMetadata:n},n.absolutePath)),e.emailsDirectoryMetadata.emailFilenames.map((s,a)=>{var o;let l=e.isRoot?s:`${e.emailsDirectoryMetadata.relativePath}/${s}`,c=!!e.currentEmailOpenSlug&&("tsx"===(o=e.currentEmailOpenSlug).split(".").pop()||"jsx"===o.split(".").pop()||"js"===o.split(".").pop()?o.split(".").slice(0,-1).join("."):o)===l;return(0,t.jsx)(d.default,{href:{pathname:`/preview/${l}`,search:n.toString()},onMouseOver:()=>{r.prefetch(`/preview/${l}?${n.toString()}`)},children:(0,t.jsxs)(u.motion.span,{animate:{x:0,opacity:1},className:(0,i.cn)("relative flex h-8 w-full items-center text-start gap-2 rounded-md align-middle text-slate-11 text-sm transition-colors duration-100 ease-[cubic-bezier(.6,.12,.34,.96)]",e.isRoot?void 0:"pl-3",{"text-cyan-11":c,"hover:text-slate-12":e.currentEmailOpenSlug!==l}),initial:{x:-10+-(1.5*a),opacity:0},transition:{x:{delay:.03*a,duration:.2},opacity:{delay:.03*a,duration:.2}},children:[c?(0,t.jsx)(u.motion.span,{animate:{opacity:1},className:"absolute inset-0 rounded-md bg-cyan-5 opacity-0 transition-all duration-200 ease-[cubic-bezier(.6,.12,.34,.96)]",exit:{opacity:0},initial:{opacity:0},children:e.isRoot?null:(0,t.jsx)(u.motion.div,{className:"absolute top-1 left-[0.4rem] inset-0 h-6 w-px rounded-xs bg-cyan-11",layoutId:"active-file",transition:{type:"spring",bounce:.2,duration:.6}})}):null,(0,t.jsx)(p.IconFile,{className:"h-5 w-5",height:"20",width:"20"}),(0,t.jsx)("span",{className:"truncate w-[calc(100%-1.25rem)]",children:s})]})},l)})]})})]})}):null})},x=({currentEmailOpenSlug:e,emailsDirectoryMetadata:n})=>(0,t.jsx)("div",{className:"flex w-full h-full flex-col lg:w-full lg:min-w-58",children:(0,t.jsx)("nav",{className:"flex grow flex-col p-4 pr-0 pl-0",children:(0,t.jsx)(a.Root,{open:!0,children:(0,t.jsx)(o.Suspense,{children:(0,t.jsx)(w,{currentEmailOpenSlug:e,emailsDirectoryMetadata:n,isRoot:!0,open:!0})})})})});e.s(["Sidebar",0,({className:e,currentEmailOpenSlug:a})=>{let{emailsDirectoryMetadata:o}=(0,r.useEmails)();return(0,t.jsx)("aside",{className:(0,i.cn)("overflow-hidden","lg:static lg:z-auto lg:max-h-screen lg:w-[16rem]",e),children:(0,t.jsxs)("div",{className:"flex w-full h-full overflow-hidden flex-col border-slate-6 border-r",children:[(0,t.jsx)("div",{className:(0,n.clsx)("hidden min-h-14 shrink items-center py-2 px-3 lg:flex border-b border-slate-4"),children:(0,t.jsx)("h2",{children:(0,t.jsx)(s.Logo,{})})}),(0,t.jsx)("div",{className:"relative grow w-full h-full overflow-y-auto overflow-x-hidden px-4 pb-3",children:(0,t.jsx)(x,{currentEmailOpenSlug:a,emailsDirectoryMetadata:o})})]})})}],68645)},27818,39730,e=>{"use strict";var t=e.i(50270),n=e.i(18960),r=e.i(64618),i=e.i(20764),s=e.i(68645);e.s([],39730);let a=n.createContext(void 0);e.s(["Shell",0,({children:e,currentEmailOpenSlug:o})=>{let[l,c]=n.useState(!0);return(0,t.jsxs)(a.Provider,{value:{toggleSidebar:()=>c(e=>!e),sidebarToggled:l},children:[(0,t.jsxs)("div",{className:"flex h-17.5 items-center justify-between border-slate-6 border-b px-6 lg:hidden",children:[(0,t.jsx)("div",{className:"flex h-17.5 items-center",children:(0,t.jsx)(i.Logo,{})}),(0,t.jsx)("button",{className:"flex h-6 w-6 items-center justify-center rounded-sm text-white",onClick:()=>{c(e=>!e)},type:"button",children:(0,t.jsxs)("svg",{fill:"none",height:"16",stroke:"white",viewBox:"0 0 15 15",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("title",{children:"Menu"}),(0,t.jsx)("path",{clipRule:"evenodd",d:"M1.5 3C1.22386 3 1 3.22386 1 3.5C1 3.77614 1.22386 4 1.5 4H13.5C13.7761 4 14 3.77614 14 3.5C14 3.22386 13.7761 3 13.5 3H1.5ZM1 7.5C1 7.22386 1.22386 7 1.5 7H13.5C13.7761 7 14 7.22386 14 7.5C14 7.77614 13.7761 8 13.5 8H1.5C1.22386 8 1 7.77614 1 7.5ZM1 11.5C1 11.2239 1.22386 11 1.5 11H13.5C13.7761 11 14 11.2239 14 11.5C14 11.7761 13.7761 12 13.5 12H1.5C1.22386 12 1 11.7761 1 11.5Z",fill:"currentColor",fillRule:"evenodd"})]})})]}),(0,t.jsxs)("div",{className:"w-dvw flex h-[calc(100dvh-4.375rem)] lg:h-dvh",children:[(0,t.jsx)(n.Suspense,{children:(0,t.jsx)(s.Sidebar,{className:(0,r.cn)("fixed top-17.5 left-0 z-9999 h-full max-h-full w-full max-w-full will-change-auto [transition:width_0.2s_ease-in-out]","lg:static lg:inline-block lg:z-auto lg:max-h-full lg:w-[16rem]",{"-translate-x-full lg:translate-x-0":l,"lg:w-0":!l}),currentEmailOpenSlug:o})}),(0,t.jsx)("main",{className:(0,r.cn)("inline-block relative overflow-hidden will-change-[width]","w-full h-full","[transition:width_0.2s_ease-in-out,transform_0.2s_ease-in-out]",{"lg:w-[calc(100%-16rem)]":l,"opacity-0 lg:opacity-100":!l}),children:e})]})]})},"ShellContext",0,a],27818)},90216,(e,t,n)=>{t.exports={v:"5.12.1",fr:60,ip:0,op:150,w:144,h:144,nm:"system-regular-716-spinner-three-dots",ddd:0,assets:[{id:"comp_1",nm:"hover-trapdoor",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"Ellipse 31",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.085,y:1},o:{x:.333,y:0},t:46,s:[120,72,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.085,y:.085},o:{x:.373,y:.373},t:76,s:[120,23,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.631,y:1},o:{x:.658,y:0},t:83.572,s:[120,23,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.352,y:1},o:{x:.333,y:0},t:104.715,s:[120,87,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.58,y:1},o:{x:.333,y:0},t:128.572,s:[120,67,0],to:[0,0,0],ti:[0,0,0]},{t:150,s:[120,72,0]}],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[27,27],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[0,0,0,1],ix:3,x:"var $bm_rt;\n$bm_rt = comp('system-regular-716-spinner-three-dots').layer('control').effect('primary')('Color');"},o:{a:0,k:100,ix:4},w:{a:0,k:9,ix:5},lc:2,lj:1,ml:4,bm:0,nm:".primary",mn:"ADBE Vector Graphic - Stroke",hd:!1,cl:"primary"},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 28",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:1800,st:0,ct:1,bm:0},{ddd:0,ind:2,ty:4,nm:"Ellipse 30",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.085,y:1},o:{x:.333,y:0},t:23,s:[72,72,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.085,y:.085},o:{x:.373,y:.373},t:53,s:[72,23,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.631,y:1},o:{x:.658,y:0},t:76,s:[72,23,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.352,y:1},o:{x:.333,y:0},t:97.143,s:[72,87,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.58,y:1},o:{x:.333,y:0},t:121,s:[72,67,0],to:[0,0,0],ti:[0,0,0]},{t:142.427734375,s:[72,72,0]}],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[27,27],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[0,0,0,1],ix:3,x:"var $bm_rt;\n$bm_rt = comp('system-regular-716-spinner-three-dots').layer('control').effect('primary')('Color');"},o:{a:0,k:100,ix:4},w:{a:0,k:9,ix:5},lc:2,lj:1,ml:4,bm:0,nm:".primary",mn:"ADBE Vector Graphic - Stroke",hd:!1,cl:"primary"},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 28",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:1800,st:0,ct:1,bm:0},{ddd:0,ind:3,ty:4,nm:"Ellipse 29",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.085,y:1},o:{x:.333,y:0},t:0,s:[24,72,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.085,y:.085},o:{x:.373,y:.373},t:30,s:[24,23,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.631,y:1},o:{x:.658,y:0},t:70.572,s:[24,23,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.352,y:1},o:{x:.333,y:0},t:91.715,s:[24,87,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.58,y:1},o:{x:.333,y:0},t:115.572,s:[24,67,0],to:[0,0,0],ti:[0,0,0]},{t:137,s:[24,72,0]}],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[27,27],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[0,0,0,1],ix:3,x:"var $bm_rt;\n$bm_rt = comp('system-regular-716-spinner-three-dots').layer('control').effect('primary')('Color');"},o:{a:0,k:100,ix:4},w:{a:0,k:9,ix:5},lc:2,lj:1,ml:4,bm:0,nm:".primary",mn:"ADBE Vector Graphic - Stroke",hd:!1,cl:"primary"},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 28",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:1799,st:-1,ct:1,bm:0}]}],layers:[{ddd:0,ind:1,ty:3,nm:"control",sr:1,ks:{o:{a:0,k:0,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[0,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,ef:[{ty:5,nm:"primary",np:3,mn:"ADBE Color Control",ix:1,en:1,ef:[{ty:2,nm:"Color",mn:"ADBE Color Control-0001",ix:1,v:{a:0,k:[0,0,0],ix:1}}]}],ip:0,op:2112,st:0,bm:0},{ddd:0,ind:3,ty:0,nm:"hover-trapdoor",refId:"comp_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[72,72,0],ix:2,l:2},a:{a:0,k:[72,72,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,w:144,h:144,ip:0,op:160,st:0,bm:0}],markers:[{tm:0,cm:"default:hover-trapdoor",dr:150}],props:{}}},81831,e=>{"use strict";let t,n,r;var i,s,a=e.i(50270),o=e.i(18960);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t,n){var r;return(r=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==l(r)?r:r+"")in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=class{requestAnimationFrame(e){return requestAnimationFrame(e)}cancelAnimationFrame(e){cancelAnimationFrame(e)}},d=class{constructor(){c(this,"_lastHandleId",0),c(this,"_lastImmediate",null)}requestAnimationFrame(e){return this._lastHandleId>=0x20000000000000-1&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{e(Date.now())}),this._lastHandleId}cancelAnimationFrame(e){this._lastImmediate&&clearImmediate(this._lastImmediate)}},h=class{constructor(){c(this,"_strategy",void 0),this._strategy="function"==typeof requestAnimationFrame?new u:new d}requestAnimationFrame(e){return this._strategy.requestAnimationFrame(e)}cancelAnimationFrame(e){this._strategy.cancelAnimationFrame(e)}};let p="u">typeof window&&void 0!==window.document,m=new Uint8Array([80,75,3,4]),f=["v","ip","op","layers","fr","w","h"],g="0.69.0",y="@lottiefiles/dotlottie-web",_="u">typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"u">typeof TextDecoder&&_.decode();let b=null;function v(){return(null===b||0===b.byteLength)&&(b=new Uint8Array(t.memory.buffer)),b}function w(e,t){return e>>>=0,_.decode(v().subarray(e,e+t))}function x(e){let n=t.__externref_table_alloc_command_export();return t.__wbindgen_export_3.set(n,e),n}let C=0,k="u">typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},E="function"==typeof k.encodeInto?function(e,t){return k.encodeInto(e,t)}:function(e,t){let n=k.encode(e);return t.set(n),{read:e.length,written:n.length}};function S(e,t,n){if(void 0===n){let n=k.encode(e),r=t(n.length,1)>>>0;return v().subarray(r,r+n.length).set(n),C=n.length,r}let r=e.length,i=t(r,1)>>>0,s=v(),a=0;for(;a<r;a++){let t=e.charCodeAt(a);if(t>127)break;s[i+a]=t}if(a!==r){0!==a&&(e=e.slice(a)),i=n(i,r,r=a+3*e.length,1)>>>0;let t=E(e,v().subarray(i+a,i+r));a+=t.written,i=n(i,r,a,1)>>>0}return C=a,i}let L=null;function M(){return(null===L||!0===L.buffer.detached||void 0===L.buffer.detached&&L.buffer!==t.memory.buffer)&&(L=new DataView(t.memory.buffer)),L}function A(e){return null==e}let T=null;function P(e,t){let n=t(+e.length,1)>>>0;return v().set(e,n/1),C=e.length,n}let I=Object.freeze({Forward:0,0:"Forward",Reverse:1,1:"Reverse",Bounce:2,2:"Bounce",ReverseBounce:3,3:"ReverseBounce"}),R=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>t.__wbg_dotlottieplayerwasm_free(e>>>0,1));var O=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,R.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_dotlottieplayerwasm_free(e,0)}clear_slot(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C;return 0!==t.dotlottieplayerwasm_clear_slot(this.__wbg_ptr,n,r)}is_playing(){return 0!==t.dotlottieplayerwasm_is_playing(this.__wbg_ptr)}is_stopped(){return 0!==t.dotlottieplayerwasm_is_stopped(this.__wbg_ptr)}layout_fit(){let e,n;try{let r=t.dotlottieplayerwasm_layout_fit(this.__wbg_ptr);return e=r[0],n=r[1],w(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}loop_count(){return t.dotlottieplayerwasm_loop_count(this.__wbg_ptr)>>>0}poll_event(){return t.dotlottieplayerwasm_poll_event(this.__wbg_ptr)}reset_slot(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C;return 0!==t.dotlottieplayerwasm_reset_slot(this.__wbg_ptr,n,r)}set_layout(e,n,r){let i=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),s=C;return 0!==t.dotlottieplayerwasm_set_layout(this.__wbg_ptr,i,s,n,r)}set_marker(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C;t.dotlottieplayerwasm_set_marker(this.__wbg_ptr,n,r)}tween_stop(){return 0!==t.dotlottieplayerwasm_tween_stop(this.__wbg_ptr)}clear_slots(){return 0!==t.dotlottieplayerwasm_clear_slots(this.__wbg_ptr)}has_segment(){return 0!==t.dotlottieplayerwasm_has_segment(this.__wbg_ptr)}is_complete(){return 0!==t.dotlottieplayerwasm_is_complete(this.__wbg_ptr)}is_tweening(){return 0!==t.dotlottieplayerwasm_is_tweening(this.__wbg_ptr)}reset_slots(){return 0!==t.dotlottieplayerwasm_reset_slots(this.__wbg_ptr)}reset_theme(){return 0!==t.dotlottieplayerwasm_reset_theme(this.__wbg_ptr)}segment_end(){return t.dotlottieplayerwasm_segment_end(this.__wbg_ptr)}set_quality(e){return 0!==t.dotlottieplayerwasm_set_quality(this.__wbg_ptr,e)}set_segment(e,n){return 0!==t.dotlottieplayerwasm_set_segment(this.__wbg_ptr,e,n)}static unload_font(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C;return 0!==t.dotlottieplayerwasm_unload_font(n,r)}animation_id(){let e=t.dotlottieplayerwasm_animation_id(this.__wbg_ptr),n;return 0!==e[0]&&(n=w(e[0],e[1]).slice(),t.__wbindgen_free_command_export(e[0],+e[1],1)),n}clear_marker(){t.dotlottieplayerwasm_clear_marker(this.__wbg_ptr)}emit_on_loop(){t.dotlottieplayerwasm_emit_on_loop(this.__wbg_ptr)}get_slot_ids(){return t.dotlottieplayerwasm_get_slot_ids(this.__wbg_ptr)}get_slot_str(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C,i=t.dotlottieplayerwasm_get_slot_str(this.__wbg_ptr,n,r),s;return 0!==i[0]&&(s=w(i[0],i[1]).slice(),t.__wbindgen_free_command_export(i[0],+i[1],1)),s}marker_names(){return t.dotlottieplayerwasm_marker_names(this.__wbg_ptr)}set_autoplay(e){t.dotlottieplayerwasm_set_autoplay(this.__wbg_ptr,e)}set_slot_str(e,n){let r=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=C,s=S(n,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=C;return 0!==t.dotlottieplayerwasm_set_slot_str(this.__wbg_ptr,r,i,s,a)}set_viewport(e,n,r,i){return 0!==t.dotlottieplayerwasm_set_viewport(this.__wbg_ptr,e,n,r,i)}total_frames(){return t.dotlottieplayerwasm_total_frames(this.__wbg_ptr)}tween_update(e){return 0!==t.dotlottieplayerwasm_tween_update(this.__wbg_ptr,A(e)?0x100000001:Math.fround(e))}clear_segment(){return 0!==t.dotlottieplayerwasm_clear_segment(this.__wbg_ptr)}current_frame(){return t.dotlottieplayerwasm_current_frame(this.__wbg_ptr)}get_slot_type(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C,i=t.dotlottieplayerwasm_get_slot_type(this.__wbg_ptr,n,r),s;return 0!==i[0]&&(s=w(i[0],i[1]).slice(),t.__wbindgen_free_command_export(i[0],+i[1],1)),s}get_slots_str(){let e,n;try{let r=t.dotlottieplayerwasm_get_slots_str(this.__wbg_ptr);return e=r[0],n=r[1],w(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}get_transform(){return t.dotlottieplayerwasm_get_transform(this.__wbg_ptr)}request_frame(){return t.dotlottieplayerwasm_request_frame(this.__wbg_ptr)}segment_start(){return t.dotlottieplayerwasm_segment_start(this.__wbg_ptr)}set_slots_str(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C;return 0!==t.dotlottieplayerwasm_set_slots_str(this.__wbg_ptr,n,r)}set_text_slot(e,n){let r=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=C,s=S(n,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=C;return 0!==t.dotlottieplayerwasm_set_text_slot(this.__wbg_ptr,r,i,s,a)}set_transform(e){let n,r=(n=(0,t.__wbindgen_malloc_command_export)(4*e.length,4)>>>0,((null===T||0===T.byteLength)&&(T=new Float32Array(t.memory.buffer)),T).set(e,n/4),C=e.length,n),i=C;return 0!==t.dotlottieplayerwasm_set_transform(this.__wbg_ptr,r,i)}sm_get_inputs(){return t.dotlottieplayerwasm_sm_get_inputs(this.__wbg_ptr)}sm_poll_event(){return t.dotlottieplayerwasm_sm_poll_event(this.__wbg_ptr)}sm_post_click(e,n){t.dotlottieplayerwasm_sm_post_click(this.__wbg_ptr,e,n)}animation_size(){return t.dotlottieplayerwasm_animation_size(this.__wbg_ptr)}current_marker(){let e=t.dotlottieplayerwasm_current_marker(this.__wbg_ptr),n;return 0!==e[0]&&(n=w(e[0],e[1]).slice(),t.__wbindgen_free_command_export(e[0],+e[1],1)),n}layout_align_x(){return t.dotlottieplayerwasm_layout_align_x(this.__wbg_ptr)}layout_align_y(){return t.dotlottieplayerwasm_layout_align_y(this.__wbg_ptr)}load_animation(e,n,r){let i=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),s=C;return 0!==t.dotlottieplayerwasm_load_animation(this.__wbg_ptr,i,s,n,r)}loop_animation(){return 0!==t.dotlottieplayerwasm_loop_animation(this.__wbg_ptr)}set_color_slot(e,n,r,i){let s=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=C;return 0!==t.dotlottieplayerwasm_set_color_slot(this.__wbg_ptr,s,a,n,r,i)}set_loop_count(e){t.dotlottieplayerwasm_set_loop_count(this.__wbg_ptr,e)}set_theme_data(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C;return 0!==t.dotlottieplayerwasm_set_theme_data(this.__wbg_ptr,n,r)}sm_reset_input(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C;t.dotlottieplayerwasm_sm_reset_input(this.__wbg_ptr,n,r)}manifest_string(){let e,n;try{let r=t.dotlottieplayerwasm_manifest_string(this.__wbg_ptr);return e=r[0],n=r[1],w(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}set_scalar_slot(e,n){let r=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=C;return 0!==t.dotlottieplayerwasm_set_scalar_slot(this.__wbg_ptr,r,i,n)}set_vector_slot(e,n,r){let i=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),s=C;return 0!==t.dotlottieplayerwasm_set_vector_slot(this.__wbg_ptr,i,s,n,r)}tween_to_marker(e,n){let r=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=C;return 0!==t.dotlottieplayerwasm_tween_to_marker(this.__wbg_ptr,r,i,A(n)?0x100000001:Math.fround(n))}background_color(){return t.dotlottieplayerwasm_background_color(this.__wbg_ptr)>>>0}get_layer_bounds(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C;return t.dotlottieplayerwasm_get_layer_bounds(this.__wbg_ptr,n,r)}get_pixel_buffer(){return t.dotlottieplayerwasm_get_pixel_buffer(this.__wbg_ptr)}segment_duration(){return t.dotlottieplayerwasm_segment_duration(this.__wbg_ptr)}sm_current_state(){let e,n;try{let r=t.dotlottieplayerwasm_sm_current_state(this.__wbg_ptr);return e=r[0],n=r[1],w(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}state_machine_id(){let e=t.dotlottieplayerwasm_state_machine_id(this.__wbg_ptr),n;return 0!==e[0]&&(n=w(e[0],e[1]).slice(),t.__wbindgen_free_command_export(e[0],+e[1],1)),n}get_state_machine(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C,i=t.dotlottieplayerwasm_get_state_machine(this.__wbg_ptr,n,r),s;return 0!==i[0]&&(s=w(i[0],i[1]).slice(),t.__wbindgen_free_command_export(i[0],+i[1],1)),s}set_position_slot(e,n,r){let i=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),s=C;return 0!==t.dotlottieplayerwasm_set_position_slot(this.__wbg_ptr,i,s,n,r)}tween_with_easing(e,n,r,i,s,a){return 0!==t.dotlottieplayerwasm_tween_with_easing(this.__wbg_ptr,e,A(n)?0x100000001:Math.fround(n),r,i,s,a)}current_loop_count(){return t.dotlottieplayerwasm_current_loop_count(this.__wbg_ptr)>>>0}sm_framework_setup(){return t.dotlottieplayerwasm_sm_framework_setup(this.__wbg_ptr)}sm_post_pointer_up(e,n){t.dotlottieplayerwasm_sm_post_pointer_up(this.__wbg_ptr,e,n)}state_machine_load(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C;return 0!==t.dotlottieplayerwasm_state_machine_load(this.__wbg_ptr,n,r)}load_dotlottie_data(e,n,r){let i=P(e,t.__wbindgen_malloc_command_export),s=C;return 0!==t.dotlottieplayerwasm_load_dotlottie_data(this.__wbg_ptr,i,s,n,r)}sm_get_string_input(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C,i=t.dotlottieplayerwasm_sm_get_string_input(this.__wbg_ptr,n,r),s;return 0!==i[0]&&(s=w(i[0],i[1]).slice(),t.__wbindgen_free_command_export(i[0],+i[1],1)),s}sm_set_string_input(e,n){let r=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=C,s=S(n,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=C;return 0!==t.dotlottieplayerwasm_sm_set_string_input(this.__wbg_ptr,r,i,s,a)}set_background_color(e){return 0!==t.dotlottieplayerwasm_set_background_color(this.__wbg_ptr,e)}sm_get_boolean_input(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C,i=t.dotlottieplayerwasm_sm_get_boolean_input(this.__wbg_ptr,n,r);return 0xffffff===i?void 0:0!==i}sm_get_numeric_input(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C,i=t.dotlottieplayerwasm_sm_get_numeric_input(this.__wbg_ptr,n,r);return 0x100000001===i?void 0:i}sm_post_pointer_down(e,n){t.dotlottieplayerwasm_sm_post_pointer_down(this.__wbg_ptr,e,n)}sm_post_pointer_exit(e,n){t.dotlottieplayerwasm_sm_post_pointer_exit(this.__wbg_ptr,e,n)}sm_post_pointer_move(e,n){t.dotlottieplayerwasm_sm_post_pointer_move(this.__wbg_ptr,e,n)}sm_set_boolean_input(e,n){let r=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=C;return 0!==t.dotlottieplayerwasm_sm_set_boolean_input(this.__wbg_ptr,r,i,n)}sm_set_numeric_input(e,n){let r=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=C;return 0!==t.dotlottieplayerwasm_sm_set_numeric_input(this.__wbg_ptr,r,i,n)}state_machine_unload(){t.dotlottieplayerwasm_state_machine_unload(this.__wbg_ptr)}sm_post_pointer_enter(e,n){t.dotlottieplayerwasm_sm_post_pointer_enter(this.__wbg_ptr,e,n)}clear_background_color(){return 0!==t.dotlottieplayerwasm_clear_background_color(this.__wbg_ptr)}load_animation_from_id(e,n,r){let i=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),s=C;return 0!==t.dotlottieplayerwasm_load_animation_from_id(this.__wbg_ptr,i,s,n,r)}sm_poll_internal_event(){return t.dotlottieplayerwasm_sm_poll_internal_event(this.__wbg_ptr)}use_frame_interpolation(){return 0!==t.dotlottieplayerwasm_use_frame_interpolation(this.__wbg_ptr)}reset_current_loop_count(){t.dotlottieplayerwasm_reset_current_loop_count(this.__wbg_ptr)}sm_override_current_state(e,n){let r=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=C;return 0!==t.dotlottieplayerwasm_sm_override_current_state(this.__wbg_ptr,r,i,n)}state_machine_load_from_id(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C;return 0!==t.dotlottieplayerwasm_state_machine_load_from_id(this.__wbg_ptr,n,r)}set_use_frame_interpolation(e){t.dotlottieplayerwasm_set_use_frame_interpolation(this.__wbg_ptr,e)}constructor(){return this.__wbg_ptr=t.dotlottieplayerwasm_new()>>>0,R.register(this,this.__wbg_ptr,this),this}mode(){return t.dotlottieplayerwasm_mode(this.__wbg_ptr)}play(){return 0!==t.dotlottieplayerwasm_play(this.__wbg_ptr)}seek(e){return 0!==t.dotlottieplayerwasm_seek(this.__wbg_ptr,e)}stop(){return 0!==t.dotlottieplayerwasm_stop(this.__wbg_ptr)}tick(){return 0!==t.dotlottieplayerwasm_tick(this.__wbg_ptr)}clear(){t.dotlottieplayerwasm_clear(this.__wbg_ptr)}pause(){return 0!==t.dotlottieplayerwasm_pause(this.__wbg_ptr)}speed(){return t.dotlottieplayerwasm_speed(this.__wbg_ptr)}tween(e,n){return 0!==t.dotlottieplayerwasm_tween(this.__wbg_ptr,e,A(n)?0x100000001:Math.fround(n))}width(){return t.dotlottieplayerwasm_width(this.__wbg_ptr)>>>0}height(){return t.dotlottieplayerwasm_height(this.__wbg_ptr)>>>0}render(){return 0!==t.dotlottieplayerwasm_render(this.__wbg_ptr)}resize(e,n){return 0!==t.dotlottieplayerwasm_resize(this.__wbg_ptr,e,n)}markers(){return t.dotlottieplayerwasm_markers(this.__wbg_ptr)}sm_fire(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C;return 0!==t.dotlottieplayerwasm_sm_fire(this.__wbg_ptr,n,r)}sm_stop(){return 0!==t.dotlottieplayerwasm_sm_stop(this.__wbg_ptr)}sm_tick(){return 0!==t.dotlottieplayerwasm_sm_tick(this.__wbg_ptr)}autoplay(){return 0!==t.dotlottieplayerwasm_autoplay(this.__wbg_ptr)}duration(){return t.dotlottieplayerwasm_duration(this.__wbg_ptr)}set_loop(e){t.dotlottieplayerwasm_set_loop(this.__wbg_ptr,e)}set_mode(e){t.dotlottieplayerwasm_set_mode(this.__wbg_ptr,e)}sm_start(e,n){let r=function(e,t){let n=t(4*e.length,4)>>>0;for(let t=0;t<e.length;t++){let r=x(e[t]);M().setUint32(n+4*t,r,!0)}return C=e.length,n}(n,t.__wbindgen_malloc_command_export),i=C;return 0!==t.dotlottieplayerwasm_sm_start(this.__wbg_ptr,e,r,i)}theme_id(){let e=t.dotlottieplayerwasm_theme_id(this.__wbg_ptr),n;return 0!==e[0]&&(n=w(e[0],e[1]).slice(),t.__wbindgen_free_command_export(e[0],+e[1],1)),n}intersect(e,n,r){let i=S(r,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),s=C;return 0!==t.dotlottieplayerwasm_intersect(this.__wbg_ptr,e,n,i,s)}is_loaded(){return 0!==t.dotlottieplayerwasm_is_loaded(this.__wbg_ptr)}is_paused(){return 0!==t.dotlottieplayerwasm_is_paused(this.__wbg_ptr)}load_font(e,n){let r=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=C,s=P(n,t.__wbindgen_malloc_command_export),a=C;return 0!==t.dotlottieplayerwasm_load_font(this.__wbg_ptr,r,i,s,a)}set_frame(e){return 0!==t.dotlottieplayerwasm_set_frame(this.__wbg_ptr,e)}set_speed(e){t.dotlottieplayerwasm_set_speed(this.__wbg_ptr,e)}set_theme(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C;return 0!==t.dotlottieplayerwasm_set_theme(this.__wbg_ptr,n,r)}sm_status(){let e,n;try{let r=t.dotlottieplayerwasm_sm_status(this.__wbg_ptr);return e=r[0],n=r[1],w(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}};async function F(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if("application/wasm"!=e.headers.get("Content-Type"))console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t);else throw t}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}async function D(e){let n;if(void 0!==t)return t;if(void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===e)throw Error("WASM module URL must be provided via DotLottieWasmLoader or setWasmUrl().");let r=((n={}).wbg={},n.wbg.__wbg_buffer_609cc3eee51ed158=function(e){return e.buffer},n.wbg.__wbg_error_7534b8e9a36f1ab4=function(e,n){let r,i;try{r=e,i=n,console.error(w(e,n))}finally{t.__wbindgen_free_command_export(r,i,1)}},n.wbg.__wbg_new_405e22f390576ce2=function(){return{}},n.wbg.__wbg_new_78feb108b6472713=function(){return[]},n.wbg.__wbg_new_8a6f238a6ece86ea=function(){return Error()},n.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a=function(e,t,n){return new Uint8Array(e,t>>>0,n>>>0)},n.wbg.__wbg_newwithlength_5a5efe313cfd59f1=function(e){return new Float32Array(e>>>0)},n.wbg.__wbg_now_807e54c39636c349=function(){return Date.now()},n.wbg.__wbg_push_737cfc8c1432c2c6=function(e,t){return e.push(t)},n.wbg.__wbg_set_bb8cecf6a62b9f46=function(){return function(e,n){try{return e.apply(this,n)}catch(n){let e=x(n);t.__wbindgen_exn_store_command_export(e)}}(function(e,t,n){return Reflect.set(e,t,n)},arguments)},n.wbg.__wbg_setindex_4e73afdcd9bb95cd=function(e,t,n){e[t>>>0]=n},n.wbg.__wbg_stack_0ed75d68575b0f3c=function(e,n){let r=S(n.stack,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=C;M().setInt32(e+4,i,!0),M().setInt32(e+0,r,!0)},n.wbg.__wbindgen_init_externref_table=function(){let e=t.__wbindgen_export_3,n=e.grow(4);e.set(0,void 0),e.set(n+0,void 0),e.set(n+1,null),e.set(n+2,!0),e.set(n+3,!1)},n.wbg.__wbindgen_memory=function(){return t.memory},n.wbg.__wbindgen_number_new=function(e){return e},n.wbg.__wbindgen_string_get=function(e,n){let r="string"==typeof n?n:void 0;var i=A(r)?0:S(r,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),s=C;M().setInt32(e+4,s,!0),M().setInt32(e+0,i,!0)},n.wbg.__wbindgen_string_new=function(e,t){return w(e,t)},n.wbg.__wbindgen_throw=function(e,t){throw Error(w(e,t))},n);("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));let{instance:i,module:s}=await F(await e,r);return t=i.exports,D.__wbindgen_wasm_module=s,L=null,T=null,b=null,t.__wbindgen_start(),t}var j=class{constructor(){c(this,"_eventListeners",new Map)}addEventListener(e,t){let n=this._eventListeners.get(e);n||(n=new Set,this._eventListeners.set(e,n)),n.add(t)}removeEventListener(e,t){let n=this._eventListeners.get(e);n&&(t?(n.delete(t),0===n.size&&this._eventListeners.delete(e)):this._eventListeners.delete(e))}dispatch(e){this._eventListeners.get(e.type)?.forEach(t=>t(e))}removeAllEventListeners(){this._eventListeners.clear()}},N=class e{static _initializeObserver(){e._observer||(e._observer=new IntersectionObserver(t=>{t.forEach(t=>{let n=e._observedCanvases.get(t.target);n&&(t.isIntersecting?n.unfreeze():n.freeze())})},{threshold:0}))}static observe(t,n){e._initializeObserver(),e._observedCanvases.has(t)||(e._observedCanvases.set(t,n),e._observer?.observe(t))}static unobserve(t){e._observer?.unobserve(t),e._observedCanvases.delete(t),0===e._observedCanvases.size&&(e._observer?.disconnect(),e._observer=null)}};c(N,"_observer",null),c(N,"_observedCanvases",new Map);var B=class e{static _initializeObserver(){e._observer||(e._observer=new ResizeObserver(t=>{t.forEach(t=>{let n=e._observedCanvases.get(t.target);if(!n)return;let[r,i]=n;clearTimeout(i);let s=setTimeout(()=>{r.resize()},100);e._observedCanvases.set(t.target,[r,s])})}))}static observe(t,n){e._initializeObserver(),e._observedCanvases.has(t)||(e._observedCanvases.set(t,[n,0]),e._observer?.observe(t))}static unobserve(t){let n=e._observedCanvases.get(t);if(n){let e=n[1];e&&clearTimeout(e)}e._observer?.unobserve(t),e._observedCanvases.delete(t),!e._observedCanvases.size&&e._observer&&(e._observer.disconnect(),e._observer=null)}};function V(e){if(e.byteLength<4)return!1;let t=new Uint8Array(e.slice(0,m.byteLength));for(let e=0;e<m.length;e+=1)if(m[e]!==t[e])return!1;return!0}function $(e){return f.every(t=>Object.hasOwn(e,t))}function z(e){if("string"!=typeof e)return $(e);try{return $(JSON.parse(e))}catch{return!1}}function U(){return 1+((p?window.devicePixelRatio:1)-1)*.75}function H(e){let t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth;return!(t.bottom<0||t.top>n||t.right<0||t.left>r)}function W(e){let t=e.target;if(t instanceof HTMLCanvasElement){let n=t.getBoundingClientRect();if(0===n.width||0===n.height||0===t.width||0===t.height)return null;let r=t.width/n.width,i=t.height/n.height,s=(e.clientX-n.left)*r,a=(e.clientY-n.top)*i;return!Number.isFinite(s)||!Number.isFinite(a)||Number.isNaN(s)||Number.isNaN(a)?null:{x:s,y:a}}return null}function G(e){let t=e.replace("OpenUrl: ",""),n=t.indexOf(" | Target: "),r,i;-1===n?(r=t,i="_blank"):(r=t.substring(0,n),i=t.substring(n+11)),window.open(r,i)}c(B,"_observer",null),c(B,"_observedCanvases",new Map);let Z=(i=`https://cdn.jsdelivr.net/npm/${y}@${g}/dist/dotlottie-player.wasm`,s=`https://unpkg.com/${y}@${g}/dist/dotlottie-player.wasm`,n=null,r=i,{load:()=>(n||(n=D({module_or_path:r}).then(()=>void 0).catch(async e=>{console.warn(`Primary WASM load failed from ${r}: ${e.message}`),console.warn(`Attempting to load WASM from backup URL: ${s}`);try{await D({module_or_path:s})}catch(t){throw console.error(`Primary WASM URL failed: ${e.message}`),console.error(`Backup WASM URL failed: ${t.message}`),n=null,Error("WASM loading failed from all sources.")}})),n),setWasmUrl(e){e!==r&&(r=e,n=null)}}),q=e=>{switch(e){case"reverse":return I.Reverse;case"bounce":return I.Bounce;case"reverse-bounce":return I.ReverseBounce;default:return I.Forward}};var Y=class{constructor(e){c(this,"_canvas",null),c(this,"_pendingLoad",null),c(this,"_context",null),c(this,"_eventManager",void 0),c(this,"_animationFrameId",null),c(this,"_frameManager",void 0),c(this,"_dotLottieCore",null),c(this,"_stateMachineId",""),c(this,"_stateMachineConfig",null),c(this,"_isStateMachineRunning",!1),c(this,"_renderConfig",{}),c(this,"_isFrozen",!1),c(this,"_backgroundColor",null),c(this,"_boundOnClick",null),c(this,"_boundOnPointerUp",null),c(this,"_boundOnPointerDown",null),c(this,"_boundOnPointerMove",null),c(this,"_boundOnPointerEnter",null),c(this,"_boundOnPointerLeave",null),c(this,"_bufferMismatchCount",0),c(this,"_lastExpectedBufferSize",0),c(this,"_marker",""),this._canvas=e.canvas??null,this._eventManager=new j,this._frameManager=new h,this._renderConfig={...e.renderConfig,devicePixelRatio:e.renderConfig?.devicePixelRatio||U(),freezeOnOffscreen:e.renderConfig?.freezeOnOffscreen??!0},this._initWasm().then(()=>{this._dotLottieCore=this._createCore(),this._dotLottieCore.set_autoplay(e.autoplay??!1),this._dotLottieCore.set_loop(e.loop??!1),this._dotLottieCore.set_loop_count(e.loopCount??0),this._dotLottieCore.set_mode(q(e.mode??"forward")),this._dotLottieCore.set_speed(e.speed??1),this._dotLottieCore.set_use_frame_interpolation(e.useFrameInterpolation??!0),e.segment&&2===e.segment.length&&this._dotLottieCore.set_segment(e.segment[0],e.segment[1]),this._marker=e.marker??"",this._marker&&this._dotLottieCore.set_marker(this._marker),this._dotLottieCore.set_layout(e.layout?.fit??"contain",e.layout?.align?.[0]??.5,e.layout?.align?.[1]??.5),this._stateMachineId=e.stateMachineId??"",this._stateMachineConfig=e.stateMachineConfig??null,this._onCoreCreated(),this._eventManager.dispatch({type:"ready"}),e.data?this._canvas?this._loadFromData(e.data):this._pendingLoad={data:e.data}:e.src&&(this._canvas?this._loadFromSrc(e.src):this._pendingLoad={src:e.src}),e.backgroundColor&&this.setBackgroundColor(e.backgroundColor)}).catch(e=>{console.error("[dotlottie-web] Initialization failed:",e),this._eventManager.dispatch({type:"loadError",error:Error(`Failed to load wasm module: ${e}`)})})}async _initWasm(){return Z.load()}_createCore(){return new O}_onCoreCreated(){}_drainPlayerEvents(){let e;if(this._dotLottieCore)for(;null!=(e=this._dotLottieCore.poll_event());){let t=e;switch(t.type){case"Load":setTimeout(()=>this._eventManager.dispatch({type:"load"}),0);break;case"LoadError":setTimeout(()=>this._eventManager.dispatch({type:"loadError",error:Error("failed to load")}),0);break;case"Play":setTimeout(()=>this._eventManager.dispatch({type:"play"}),0);break;case"Pause":setTimeout(()=>this._eventManager.dispatch({type:"pause"}),0);break;case"Stop":setTimeout(()=>this._eventManager.dispatch({type:"stop"}),0);break;case"Frame":setTimeout(()=>this._eventManager.dispatch({type:"frame",currentFrame:t.frameNo??0}),0);break;case"Render":setTimeout(()=>this._eventManager.dispatch({type:"render",currentFrame:t.frameNo??0}),0);break;case"Loop":setTimeout(()=>this._eventManager.dispatch({type:"loop",loopCount:t.loopCount??0}),0);break;case"Complete":setTimeout(()=>this._eventManager.dispatch({type:"complete"}),0)}}}_drainSmEvents(){let e,t;if(this._dotLottieCore){for(;null!=(e=this._dotLottieCore.sm_poll_event());){let t=e;switch(t.type){case"Start":setTimeout(()=>{this._isStateMachineRunning=!0,this._eventManager.dispatch({type:"stateMachineStart"}),this._startAnimationLoop()},0);break;case"Stop":setTimeout(()=>{this._isStateMachineRunning=!1,this._eventManager.dispatch({type:"stateMachineStop"}),this._dotLottieCore?.is_playing()||this._stopAnimationLoop()},0);break;case"CustomEvent":this._eventManager.dispatch({type:"stateMachineCustomEvent",eventName:t.message??""});break;case"BooleanInputChange":this._eventManager.dispatch({type:"stateMachineBooleanInputValueChange",inputName:t.name??"",newValue:t.newValue,oldValue:t.oldValue});break;case"NumericInputChange":this._eventManager.dispatch({type:"stateMachineNumericInputValueChange",inputName:t.name??"",newValue:t.newValue,oldValue:t.oldValue});break;case"StringInputChange":this._eventManager.dispatch({type:"stateMachineStringInputValueChange",inputName:t.name??"",newValue:t.newValue,oldValue:t.oldValue});break;case"InputFired":this._eventManager.dispatch({type:"stateMachineInputFired",inputName:t.name??""});break;case"Transition":this._eventManager.dispatch({type:"stateMachineTransition",fromState:t.previousState??"",toState:t.newState??""});break;case"StateEntered":this._eventManager.dispatch({type:"stateMachineStateEntered",state:t.state??""});break;case"StateExit":this._eventManager.dispatch({type:"stateMachineStateExit",state:t.state??""});break;case"Error":this._eventManager.dispatch({type:"stateMachineError",error:t.message??""})}}for(;null!=(t=this._dotLottieCore.sm_poll_internal_event());){let e=t;if("Message"===e.type){let t=e.message??"";p&&t.startsWith("OpenUrl: ")?G(t):this._eventManager.dispatch({type:"stateMachineInternalMessage",message:t})}}}}_dispatchError(e){console.error(e),this._eventManager.dispatch({type:"loadError",error:Error(e)})}async _fetchData(e){let t=await fetch(e);if(!t.ok)throw Error(`Failed to fetch animation data from URL: ${e}. ${t.status}: ${t.statusText}`);let n=await t.arrayBuffer();return V(n)?n:new TextDecoder().decode(n)}_loadFromData(e){if(null===this._dotLottieCore)return;if(!this._canvas)return void console.warn("[dotlottie-web] Cannot load animation without canvas. Call setCanvas() first.");let t=this._canvas.width,n=this._canvas.height,r=!1;if("string"==typeof e){if(!z(e))return void this._dispatchError("Invalid Lottie JSON string: The provided string does not conform to the Lottie JSON format.");r=this._dotLottieCore.load_animation(e,t,n)}else if(e instanceof ArrayBuffer){if(!V(e))return void this._dispatchError("Invalid dotLottie ArrayBuffer: The provided ArrayBuffer does not conform to the dotLottie format.");r=this._dotLottieCore.load_dotlottie_data(new Uint8Array(e),t,n)}else{if("object"!=typeof e)return void this._dispatchError(`Unsupported data type for animation data. Expected:
9
+ `),()=>{m.contains(p)&&m.removeChild(p)}},[r]),(0,t.jsx)(P,{isPresent:r,childRef:o,sizeRef:l,children:M.cloneElement(e,{ref:u})})}let R=({children:e,initial:r,isPresent:i,onExitComplete:s,custom:a,presenceAffectsLayout:o,mode:l,anchorX:c,root:u})=>{let d=(0,k.useConstant)(O),h=(0,n.useId)(),p=!0,m=(0,n.useMemo)(()=>(p=!1,{id:h,initial:r,isPresent:i,custom:a,onExitComplete:e=>{for(let t of(d.set(e,!0),d.values()))if(!t)return;s&&s()},register:e=>(d.set(e,!1),()=>d.delete(e))}),[i,d,s]);return o&&p&&(m={...m}),(0,n.useMemo)(()=>{d.forEach((e,t)=>d.set(t,!1))},[i]),n.useEffect(()=>{i||d.size||!s||s()},[i]),"popLayout"===l&&(e=(0,t.jsx)(I,{isPresent:i,anchorX:c,root:u,children:e})),(0,t.jsx)(S.PresenceContext.Provider,{value:m,children:e})};function O(){return new Map}var F=e.i(95918);let D=e=>e.key||"";function j(e){let t=[];return n.Children.forEach(e,e=>{(0,n.isValidElement)(e)&&t.push(e)}),t}e.s(["AnimatePresence",0,({children:e,custom:r,initial:i=!0,onExitComplete:s,presenceAffectsLayout:a=!0,mode:o="sync",propagate:l=!1,anchorX:c="left",root:u})=>{let[d,h]=(0,F.usePresence)(l),p=(0,n.useMemo)(()=>j(e),[e]),m=l&&!d?[]:p.map(D),f=(0,n.useRef)(!0),g=(0,n.useRef)(p),y=(0,k.useConstant)(()=>new Map),[_,b]=(0,n.useState)(p),[v,w]=(0,n.useState)(p);(0,E.useIsomorphicLayoutEffect)(()=>{f.current=!1,g.current=p;for(let e=0;e<v.length;e++){let t=D(v[e]);m.includes(t)?y.delete(t):!0!==y.get(t)&&y.set(t,!1)}},[v,m.length,m.join("-")]);let x=[];if(p!==_){let e=[...p];for(let t=0;t<v.length;t++){let n=v[t],r=D(n);m.includes(r)||(e.splice(t,0,n),x.push(n))}return"wait"===o&&x.length&&(e=x),w(j(e)),b(p),null}let{forceRender:S}=(0,n.useContext)(C.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:v.map(e=>{let n=D(e),_=(!l||!!d)&&(p===v||m.includes(n));return(0,t.jsx)(R,{isPresent:_,initial:(!f.current||!!i)&&void 0,custom:r,presenceAffectsLayout:a,mode:o,root:u,onExitComplete:_?void 0:()=>{if(!y.has(n))return;y.set(n,!0);let e=!0;y.forEach(t=>{t||(e=!1)}),e&&(S?.(),w(g.current),l&&h?.(),s&&s())},anchorX:c,children:e},n)})})}],77887);var N=e.i(37289);let B=n.forwardRef(({...e},n)=>(0,t.jsx)(N.IconBase,{ref:n,...e,children:(0,t.jsx)("path",{clipRule:"evenodd",d:"M7.75 4C6.23122 4 5 5.23122 5 6.75V17.25C5 18.7688 6.23122 20 7.75 20H16.25C17.7688 20 19 18.7688 19 17.25V9C19 8.80109 18.921 8.61032 18.7803 8.46967L14.5303 4.21967C14.3897 4.07902 14.1989 4 14 4H7.75ZM6.5 6.75C6.5 6.05964 7.05964 5.5 7.75 5.5H13V9.25C13 9.66421 13.3358 10 13.75 10H17.5V17.25C17.5 17.9404 16.9404 18.5 16.25 18.5H7.75C7.05964 18.5 6.5 17.9404 6.5 17.25V6.75ZM16.6893 8.5L14.5 6.31066V8.5H16.6893Z",fill:"currentColor",fillOpacity:"0.927",fillRule:"evenodd"})}));B.displayName="IconFile",e.s(["IconFile",0,B],64369)},70903,88380,56696,e=>{"use strict";let t,n,r,i;var s=e.i(18960);function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t=>{let n=!1,r=e.map(e=>{let r=a(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():a(e[t],null)}}}}e.s(["composeRefs",0,o,"useComposedRefs",0,function(...e){return s.useCallback(o(...e),e)}],88380);var l=e.i(50270),c=Symbol.for("react.lazy"),u=s[" use ".trim().toString()];function d(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===c&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var h=((i=s.forwardRef((e,t)=>{let{children:n,...r}=e;if(d(n)&&"function"==typeof u&&(n=u(n._payload)),s.isValidElement(n)){var i;let e,a,l=(i=n,(a=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(a=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),c=function(e,t){let n={...t};for(let r in t){let i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...e)=>{let t=s(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...s}:"className"===r&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==s.Fragment&&(c.ref=t?o(t,l):l),s.cloneElement(n,c)}return s.Children.count(n)>1?s.Children.only(null):null})).displayName="Slot.SlotClone",t=i,(n=s.forwardRef((e,n)=>{let{children:r,...i}=e;d(r)&&"function"==typeof u&&(r=u(r._payload));let a=s.Children.toArray(r),o=a.find(f);if(o){let e=o.props.children,r=a.map(t=>t!==o?t:s.Children.count(e)>1?s.Children.only(null):s.isValidElement(e)?e.props.children:null);return(0,l.jsx)(t,{...i,ref:n,children:s.isValidElement(e)?s.cloneElement(e,void 0,r):null})}return(0,l.jsx)(t,{...i,ref:n,children:r})})).displayName="Slot.Slot",n),p=Symbol("radix.slottable"),m=((r=({children:e})=>(0,l.jsx)(l.Fragment,{children:e})).displayName="Slottable.Slottable",r.__radixId=p,r);function f(e){return s.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===p}e.s(["Slot",0,h,"Slottable",0,m],70903),e.s(["unreachable",0,(e,t=`Entered unreachable code. Received '${"string"==typeof e?e:JSON.stringify(e)}'.`)=>{throw TypeError(t)}],56696)},2884,e=>{"use strict";var t=e.i(50270),n=e.i(70903),r=e.i(18960),i=e.i(64618),s=e.i(56696);let a=r.forwardRef(({as:e="h1",size:r="3",className:s,color:a="white",children:u,weight:d="bold",...h},p)=>(0,t.jsx)(n.Slot,{className:(0,i.cn)(s,o(r),l(a),c(d)),ref:p,...h,children:(0,t.jsx)(e,{children:u})})),o=e=>{switch(e){case"1":return"text-xs";case"2":return"text-sm";case void 0:case"3":return"text-base";case"4":return"text-lg";case"5":return"text-xl tracking-[-0.16px]";case"6":return"text-2xl tracking-[-0.288px]";case"7":return"text-[28px] leading-[34px] tracking-[-0.416px]";case"8":return"text-[35px] leading-[42px] tracking-[-0.64px]";case"9":return"text-6xl leading-[73px] tracking-[-0.896px]";case"10":return["text-[38px] leading-[46px]","md:text-[70px] md:leading-[85px] tracking-[-1.024px;]"];default:return(0,s.unreachable)(e)}},l=e=>{switch(e){case"gray":return"text-slate-11";case"white":case void 0:return"text-slate-12";default:return(0,s.unreachable)(e)}},c=e=>{switch(e){case"medium":return"font-medium";case"bold":case void 0:return"font-bold";default:return(0,s.unreachable)(e)}};a.displayName="Heading",e.s(["Heading",0,a])},91967,74074,55914,44028,87465,75485,96507,63403,60340,38412,35027,90460,12064,53183,95918,98804,36002,37289,9334,e=>{"use strict";let t,n,r;"u">typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",0,function(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}],91967);var i,s=e.i(18960),a=e.i(50270);e.s(["createContextScope",0,function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>s.createContext(e));return function(n){let r=n?.[e]||t;return s.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=s.createContext(r),o=n.length;n=[...n,r];let l=t=>{let{scope:n,children:r,...l}=t,c=n?.[e]?.[o]||i,u=s.useMemo(()=>l,Object.values(l));return(0,a.jsx)(c.Provider,{value:u,children:r})};return l.displayName=t+"Provider",[l,function(n,a){let l=a?.[e]?.[o]||i,c=s.useContext(l);if(c)return c;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}],74074);var o=globalThis?.document?s.useLayoutEffect:()=>{};e.s(["useLayoutEffect",0,o],55914),s[" useEffectEvent ".trim().toString()],s[" useInsertionEffect ".trim().toString()];var l=s[" useInsertionEffect ".trim().toString()]||o;Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",0,function({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=function({defaultProp:e,onChange:t}){let[n,r]=s.useState(e),i=s.useRef(n),a=s.useRef(t);return l(()=>{a.current=t},[t]),s.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}({defaultProp:t,onChange:n}),c=void 0!==e,u=c?e:i;{let t=s.useRef(void 0!==e);s.useEffect(()=>{let e=t.current;if(e!==c){let t=c?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=c},[c,r])}return[u,s.useCallback(t=>{if(c){let n="function"==typeof t?t(e):t;n!==e&&o.current?.(n)}else a(t)},[c,e,a,o])]}],44028);var c=e.i(4918),u=e.i(88380);function d(e){var t;let n,r=(t=e,(n=s.forwardRef((e,t)=>{let{children:n,...r}=e;if(s.isValidElement(n)){var i;let e,a,o=(i=n,(a=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(a=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),l=function(e,t){let n={...t};for(let r in t){let i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...e)=>{let t=s(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...s}:"className"===r&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==s.Fragment&&(l.ref=t?(0,u.composeRefs)(t,o):o),s.cloneElement(n,l)}return s.Children.count(n)>1?s.Children.only(null):null})).displayName=`${t}.SlotClone`,n),i=s.forwardRef((e,t)=>{let{children:n,...i}=e,o=s.Children.toArray(n),l=o.find(p);if(l){let e=l.props.children,n=o.map(t=>t!==l?t:s.Children.count(e)>1?s.Children.only(null):s.isValidElement(e)?e.props.children:null);return(0,a.jsx)(r,{...i,ref:t,children:s.isValidElement(e)?s.cloneElement(e,void 0,n):null})}return(0,a.jsx)(r,{...i,ref:t,children:n})});return i.displayName=`${e}.Slot`,i}var h=Symbol("radix.slottable");function p(e){return s.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===h}e.s(["createSlot",0,d,"createSlottable",0,function(e){let t=({children:e})=>(0,a.jsx)(a.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=h,t}],87465);var m=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=d(`Primitive.${t}`),r=s.forwardRef((e,r)=>{let{asChild:i,...s}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(i?n:t,{...s,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});e.s(["Primitive",0,m,"dispatchDiscreteCustomEvent",0,function(e,t){e&&c.flushSync(()=>e.dispatchEvent(t))}],75485);var f=e=>{var t;let n,r,{present:i,children:a}=e,l=function(e){var t,n;let[r,i]=s.useState(),a=s.useRef(null),l=s.useRef(e),c=s.useRef("none"),[u,d]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},s.useReducer((e,t)=>n[e][t]??e,t));return s.useEffect(()=>{let e=g(a.current);c.current="mounted"===u?e:"none"},[u]),o(()=>{let t=a.current,n=l.current;if(n!==e){let r=c.current,i=g(t);e?d("MOUNT"):"none"===i||t?.display==="none"?d("UNMOUNT"):n&&r!==i?d("ANIMATION_OUT"):d("UNMOUNT"),l.current=e}},[e,d]),o(()=>{if(r){let e,t=r.ownerDocument.defaultView??window,n=n=>{let i=g(a.current).includes(CSS.escape(n.animationName));if(n.target===r&&i&&(d("ANIMATION_END"),!l.current)){let n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},i=e=>{e.target===r&&(c.current=g(a.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}d("ANIMATION_END")},[r,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:s.useCallback(e=>{a.current=e?getComputedStyle(e):null,i(e)},[])}}(i),c="function"==typeof a?a({present:l.isPresent}):s.Children.only(a),d=(0,u.useComposedRefs)(l.ref,(t=c,(r=(n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.ref:(r=(n=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof a||l.isPresent?s.cloneElement(c,{ref:d}):null};function g(e){return e?.animationName||"none"}f.displayName="Presence",e.s(["Presence",0,f],96507);var y=s[" useId ".trim().toString()]||(()=>void 0),_=0;e.s(["useId",0,function(e){let[t,n]=s.useState(y());return o(()=>{e||n(e=>e??String(_++))},[e]),e||(t?`radix-${t}`:"")}],63403);let b=(0,s.createContext)({});function v(e){let t=(0,s.useRef)(null);return null===t.current&&(t.current=e()),t.current}e.s(["LayoutGroupContext",0,b],60340),e.s(["useConstant",0,v],38412);let w="u">typeof window,x=w?s.useLayoutEffect:s.useEffect;e.s(["useIsomorphicLayoutEffect",0,x],35027);let C=(0,s.createContext)(null);function k(e){return"object"==typeof e&&null!==e}function E(e){return k(e)&&"offsetHeight"in e}e.s(["PresenceContext",0,C],90460),e.s(["isHTMLElement",0,E],12064);let S=(0,s.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function L(e=!0){let t=(0,s.useContext)(C);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,s.useId)();(0,s.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,s.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}e.s(["MotionConfigContext",0,S],53183),e.s(["usePresence",0,L],95918);let M=(0,s.createContext)(null),A=e=>e,T={},P=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function I(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=P.reduce((e,n)=>(e[n]=function(e,t){let n=new Set,r=new Set,i=!1,s=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function c(t){a.has(t)&&(u.schedule(t),e()),l++,t(o)}let u={schedule:(e,t=!1,s=!1)=>{let o=s&&i?n:r;return t&&a.add(e),o.has(e)||o.add(e),e},cancel:e=>{r.delete(e),a.delete(e)},process:e=>{if(o=e,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(c),t,l=0,n.clear(),i=!1,s&&(s=!1,u.process(e))}};return u}(s,t?n:void 0),e),{}),{setup:o,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:h,render:p,postRender:m}=a,f=()=>{let s=T.useManualTiming?i.timestamp:performance.now();n=!1,T.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(s-i.timestamp,40),1)),i.timestamp=s,i.isProcessing=!0,o.process(i),l.process(i),c.process(i),u.process(i),d.process(i),h.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(f))};return{schedule:P.reduce((t,s)=>{let o=a[s];return t[s]=(t,s=!1,a=!1)=>(!n&&(n=!0,r=!0,i.isProcessing||e(f)),o.schedule(t,s,a)),t},{}),cancel:e=>{for(let t=0;t<P.length;t++)a[P[t]].cancel(e)},state:i,steps:a}}let{schedule:R,cancel:O,state:F,steps:D}=I("u">typeof requestAnimationFrame?requestAnimationFrame:A,!0),j=e=>!e.isLayoutDirty&&e.willUpdate(!1);e.s(["LayoutGroup",0,({children:e,id:t,inherit:n=!0})=>{let r=(0,s.useContext)(b),i=(0,s.useContext)(M),[o,l]=function(){let e,t=(e=(0,s.useRef)(!1),x(()=>(e.current=!0,()=>{e.current=!1}),[]),e),[n,r]=(0,s.useState)(0),i=(0,s.useCallback)(()=>{t.current&&r(n+1)},[n]);return[(0,s.useCallback)(()=>R.postRender(i),[i]),n]}(),c=(0,s.useRef)(null),u=r.id||i;if(null===c.current){let e,i,s,a;(!0==(!0===(a=n))||"id"===a)&&u&&(t=t?u+"-"+t:u),c.current={id:t,group:!0===n&&r.group||(e=new Set,i=new WeakMap,{add:t=>{e.add(t),i.set(t,t.addEventListener("willUpdate",s))},remove:t=>{e.delete(t);let n=i.get(t);n&&(n(),i.delete(t)),s()},dirty:s=()=>e.forEach(j)})}}let d=(0,s.useMemo)(()=>({...c.current,forceRender:o}),[l]);return(0,a.jsx)(b.Provider,{value:d,children:e})}],98804);let N=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],B=new Set(N),V=e=>180*e/Math.PI,$=e=>U(V(Math.atan2(e[1],e[0]))),z={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:$,rotateZ:$,skewX:e=>V(Math.atan(e[1])),skewY:e=>V(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},U=e=>((e%=360)<0&&(e+=360),e),H=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),W=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),G={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:H,scaleY:W,scale:e=>(H(e)+W(e))/2,rotateX:e=>U(V(Math.atan2(e[6],e[5]))),rotateY:e=>U(V(Math.atan2(-e[2],e[0]))),rotateZ:$,rotate:$,skewX:e=>V(Math.atan(e[4])),skewY:e=>V(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Z(e){return+!!e.includes("scale")}function q(e,t){let n,r;if(!e||"none"===e)return Z(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)n=G,r=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=z,r=t}if(!r)return Z(t);let s=n[t],a=r[1].split(",").map(Y);return"function"==typeof s?s(a):a[s]}function Y(e){return parseFloat(e.trim())}let X=e=>t=>"string"==typeof t&&t.startsWith(e),K=X("--"),J=X("var(--"),Q=e=>!!J(e)&&ee.test(e.split("/*")[0].trim()),ee=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function et({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}let en=(e,t,n)=>e+(t-e)*n;function er(e){return void 0===e||1===e}function ei({scale:e,scaleX:t,scaleY:n}){return!er(e)||!er(t)||!er(n)}function es(e){return ei(e)||ea(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ea(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function eo(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function el(e,t=0,n=1,r,i){e.min=eo(e.min,t,n,r,i),e.max=eo(e.max,t,n,r,i)}function ec(e,{x:t,y:n}){el(e.x,t.translate,t.scale,t.originPoint),el(e.y,n.translate,n.scale,n.originPoint)}function eu(e,t){e.min=e.min+t,e.max=e.max+t}function ed(e,t,n,r,i=.5){let s=en(e.min,e.max,i);el(e,t,n,s,r)}function eh(e,t){ed(e.x,t.x,t.scaleX,t.scale,t.originX),ed(e.y,t.y,t.scaleY,t.scale,t.originY)}function ep(e,t){return et(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let em=new Set(["width","height","top","left","right","bottom",...N]),ef=(e,t,n)=>n>t?t:n<e?e:n,eg={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},ey={...eg,transform:e=>ef(0,1,e)},e_={...eg,default:1},eb=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ev=eb("deg"),ew=eb("%"),ex=eb("px"),eC=eb("vh"),ek=eb("vw"),eE={...ew,parse:e=>ew.parse(e)/100,transform:e=>ew.transform(100*e)},eS=e=>t=>t.test(e),eL=[eg,ex,ew,ev,ek,eC,{test:e=>"auto"===e,parse:e=>e}],eM=e=>eL.find(eS(e));e.i(96293);let eA=()=>{},eT=()=>{},eP=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,eI=e=>e===eg||e===ex,eR=new Set(["x","y","z"]),eO=N.filter(e=>!eR.has(e)),eF={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>q(t,"x"),y:(e,{transform:t})=>q(t,"y")};eF.translateX=eF.x,eF.translateY=eF.y;let eD=new Set,ej=!1,eN=!1,eB=!1;function eV(){if(eN){let e=Array.from(eD).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t,r=(t=[],eO.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(+!!n.startsWith("scale")))}),t);r.length&&(n.set(e,r),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eN=!1,ej=!1,eD.forEach(e=>e.complete(eB)),eD.clear()}function e$(){eD.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eN=!0)})}class ez{constructor(e,t,n,r,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(eD.add(this),ej||(ej=!0,R.read(e$),R.resolveKeyframes(eV))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){let i=r?.get(),s=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,s);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=s),r&&void 0===i&&r.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),eD.delete(this)}cancel(){"scheduled"===this.state&&(eD.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let eU=e=>Math.round(1e5*e)/1e5,eH=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,eW=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,eG=(e,t)=>n=>!!("string"==typeof n&&eW.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),eZ=(e,t,n)=>r=>{if("string"!=typeof r)return r;let[i,s,a,o]=r.match(eH);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},eq={...eg,transform:e=>Math.round(ef(0,255,e))},eY={test:eG("rgb","red"),parse:eZ("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+eq.transform(e)+", "+eq.transform(t)+", "+eq.transform(n)+", "+eU(ey.transform(r))+")"},eX={test:eG("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:eY.transform},eK={test:eG("hsl","hue"),parse:eZ("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ew.transform(eU(t))+", "+ew.transform(eU(n))+", "+eU(ey.transform(r))+")"},eJ={test:e=>eY.test(e)||eX.test(e)||eK.test(e),parse:e=>eY.test(e)?eY.parse(e):eK.test(e)?eK.parse(e):eX.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?eY.transform(e):eK.transform(e),getAnimatableNone:e=>{let t=eJ.parse(e);return t.alpha=0,eJ.transform(t)}},eQ=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,e1="number",e0="color",e4=/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 e6(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],s=0,a=t.replace(e4,e=>(eJ.test(e)?(r.color.push(s),i.push(e0),n.push(eJ.parse(e))):e.startsWith("var(")?(r.var.push(s),i.push("var"),n.push(e)):(r.number.push(s),i.push(e1),n.push(parseFloat(e))),++s,"${}")).split("${}");return{values:n,split:a,indexes:r,types:i}}function e9(e){return e6(e).values}function e5(e){let{split:t,types:n}=e6(e),r=t.length;return e=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],void 0!==e[s]){let t=n[s];t===e1?i+=eU(e[s]):t===e0?i+=eJ.transform(e[s]):i+=e[s]}return i}}let e2=e=>"number"==typeof e?0:eJ.test(e)?eJ.getAnimatableNone(e):e,e7={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(eH)?.length||0)+(e.match(eQ)?.length||0)>0},parse:e9,createTransformer:e5,getAnimatableNone:function(e){let t=e9(e);return e5(e)(t.map(e2))}},e3=new Set(["brightness","contrast","saturate","opacity"]);function e8(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(eH)||[];if(!r)return e;let i=n.replace(r,""),s=+!!e3.has(t);return r!==n&&(s*=100),t+"("+s+i+")"}let te=/\b([a-z-]*)\(.*?\)/gu,tt={...e7,getAnimatableNone:e=>{let t=e.match(te);return t?t.map(e8).join(" "):e}},tn={...eg,transform:Math.round},tr={borderWidth:ex,borderTopWidth:ex,borderRightWidth:ex,borderBottomWidth:ex,borderLeftWidth:ex,borderRadius:ex,radius:ex,borderTopLeftRadius:ex,borderTopRightRadius:ex,borderBottomRightRadius:ex,borderBottomLeftRadius:ex,width:ex,maxWidth:ex,height:ex,maxHeight:ex,top:ex,right:ex,bottom:ex,left:ex,padding:ex,paddingTop:ex,paddingRight:ex,paddingBottom:ex,paddingLeft:ex,margin:ex,marginTop:ex,marginRight:ex,marginBottom:ex,marginLeft:ex,backgroundPositionX:ex,backgroundPositionY:ex,rotate:ev,rotateX:ev,rotateY:ev,rotateZ:ev,scale:e_,scaleX:e_,scaleY:e_,scaleZ:e_,skew:ev,skewX:ev,skewY:ev,distance:ex,translateX:ex,translateY:ex,translateZ:ex,x:ex,y:ex,z:ex,perspective:ex,transformPerspective:ex,opacity:ey,originX:eE,originY:eE,originZ:ex,zIndex:tn,fillOpacity:ey,strokeOpacity:ey,numOctaves:tn},ti={...tr,color:eJ,backgroundColor:eJ,outlineColor:eJ,fill:eJ,stroke:eJ,borderColor:eJ,borderTopColor:eJ,borderRightColor:eJ,borderBottomColor:eJ,borderLeftColor:eJ,filter:tt,WebkitFilter:tt},ts=e=>ti[e];function ta(e,t){let n=ts(e);return n!==tt&&(n=e7),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let to=new Set(["auto","none","0"]);class tl extends ez{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&Q(r=r.trim())){let i=function e(t,n,r=1){eT(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[i,s]=function(e){let t=eP.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}(t);if(!i)return;let a=window.getComputedStyle(n).getPropertyValue(i);if(a){let e=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return Q(s)?e(s,n,r+1):s}(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!em.has(n)||2!==e.length)return;let[r,i]=e,s=eM(r),a=eM(i);if(s!==a)if(eI(s)&&eI(a))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else eF[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&n.push(t);n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!to.has(t)&&e6(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=ta(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eF[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,s=n[i];n[i]=eF[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let tc=e=>!!(e&&e.getVelocity);function tu(){t=void 0}let td={now:()=>(void 0===t&&td.set(F.isProcessing||T.useManualTiming?F.timestamp:performance.now()),t),set:e=>{t=e,queueMicrotask(tu)}};function th(e,t){-1===e.indexOf(t)&&e.push(t)}function tp(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class tm{constructor(){this.subscriptions=[]}add(e){return th(this.subscriptions,e),()=>tp(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class tf{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=td.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=td.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new tm);let n=this.events[e].add(t);return"change"===e?()=>{n(),R.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return r&&r.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=td.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function tg(e,t){return new tf(e,t)}let ty=[...eL,eJ,e7],{schedule:t_}=I(queueMicrotask,!1),tb={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"]},tv={};for(let e in tb)tv[e]={isEnabled:t=>tb[e].some(e=>!!t[e])};let tw=()=>({translate:0,scale:1,origin:0,originPoint:0}),tx=()=>({x:tw(),y:tw()}),tC=()=>({min:0,max:0}),tk=()=>({x:tC(),y:tC()}),tE={current:null},tS={current:!1},tL=new WeakMap;function tM(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function tA(e){return"string"==typeof e||Array.isArray(e)}let tT=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tP=["initial",...tT];function tI(e){return tM(e.animate)||tP.some(t=>tA(e[t]))}function tR(e){return!!(tI(e)||e.variants)}function tO(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function tF(e,t,n,r){if("function"==typeof t){let[i,s]=tO(r);t=t(void 0!==n?n:e.custom,i,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,s]=tO(r);t=t(void 0!==n?n:e.custom,i,s)}return t}let tD=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class tj{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ez,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 e=td.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,R.render(this.render,!1,!0))};const{latestValues:o,renderState:l}=s;this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=tI(t),this.isVariantNode=tR(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in u){const t=u[e];void 0!==o[e]&&tc(t)&&t.set(o[e])}}mount(e){this.current=e,tL.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),tS.current||function(){if(tS.current=!0,w)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tE.current=e.matches;e.addEventListener("change",t),t()}else tE.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||tE.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),O(this.notifyUpdate),O(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let n;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let r=B.has(e);r&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&R.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in tv){let t=tv[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):tk()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<tD.length;t++){let n=tD[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let i=t[r],s=n[r];if(tc(i))e.addValue(r,i);else if(tc(s))e.addValue(r,tg(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,tg(void 0!==t?t:i,{owner:e}))}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=tg(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=n){let r,i;if("string"==typeof n&&(r=n,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r)||(i=n,/^0[^.\s]+$/u.test(i))))n=parseFloat(n);else{let r;r=n,!ty.find(eS(r))&&e7.test(t)&&(n=ta(e,t))}this.setBaseTarget(e,tc(n)?n.get():n)}return tc(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=tF(this.props,n,this.presenceContext?.custom);r&&(t=r[e])}if(n&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||tc(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new tm),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){t_.render(this.render)}}class tN extends tj{constructor(){super(...arguments),this.KeyframeResolver=tl}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;tc(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}let tB=(e,t)=>t&&"number"==typeof e?t.transform(e):e,tV={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},t$=N.length;function tz(e,t,n){let{style:r,vars:i,transformOrigin:s}=e,a=!1,o=!1;for(let e in t){let n=t[e];if(B.has(e)){a=!0;continue}if(K(e)){i[e]=n;continue}{let t=tB(n,tr[e]);e.startsWith("origin")?(o=!0,s[e]=t):r[e]=t}}if(!t.transform&&(a||n?r.transform=function(e,t,n){let r="",i=!0;for(let s=0;s<t$;s++){let a=N[s],o=e[a];if(void 0===o)continue;let l=!0;if(!(l="number"==typeof o?o===+!!a.startsWith("scale"):0===parseFloat(o))||n){let e=tB(o,tr[a]);if(!l){i=!1;let t=tV[a]||a;r+=`${t}(${e}) `}n&&(t[a]=e)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),o){let{originX:e="50%",originY:t="50%",originZ:n=0}=s;r.transformOrigin=`${e} ${t} ${n}`}}function tU(e,{style:t,vars:n},r,i){let s,a=e.style;for(s in t)a[s]=t[s];for(s in i?.applyProjectionStyles(a,r),n)a.setProperty(s,n[s])}let tH={};function tW(e,{layout:t,layoutId:n}){return B.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!tH[e]||"opacity"===e)}function tG(e,t,n){let{style:r}=e,i={};for(let s in r)(tc(r[s])||t.style&&tc(t.style[s])||tW(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(i[s]=r[s]);return i}class tZ extends tN{constructor(){super(...arguments),this.type="html",this.renderInstance=tU}readValueFromInstance(e,t){if(B.has(t))return this.projection?.isProjecting?Z(t):((e,t)=>{let{transform:n="none"}=getComputedStyle(e);return q(n,t)})(e,t);{let n=window.getComputedStyle(e),r=(K(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return ep(e,t)}build(e,t,n){tz(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return tG(e,t,n)}}let tq=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),tY={offset:"stroke-dashoffset",array:"stroke-dasharray"},tX={offset:"strokeDashoffset",array:"strokeDasharray"};function tK(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:a=0,...o},l,c,u){if(tz(e,o,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete d.transformBox),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==r&&(d.scale=r),void 0!==i&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let s=i?tY:tX;e[s.offset]=ex.transform(-r);let a=ex.transform(t),o=ex.transform(n);e[s.array]=`${a} ${o}`}(d,i,s,a,!1)}let tJ=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"]),tQ=e=>"string"==typeof e&&"svg"===e.toLowerCase();function t1(e,t,n){let r=tG(e,t,n);for(let n in e)(tc(e[n])||tc(t[n]))&&(r[-1!==N.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}class t0 extends tN{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=tk}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(B.has(t)){let e=ts(t);return e&&e.default||0}return t=tJ.has(t)?t:tq(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return t1(e,t,n)}build(e,t,n){tK(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){for(let n in tU(e,t,void 0,r),t.attrs)e.setAttribute(tJ.has(n)?n:tq(n),t.attrs[n])}mount(e){this.isSVGTag=tQ(e.tagName),super.mount(e)}}let t4=["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 t6(e){if("string"!=typeof e||e.includes("-"));else if(t4.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let t9=(0,s.createContext)({strict:!1}),t5=(0,s.createContext)({});function t2(e){return Array.isArray(e)?e.join(" "):e}let t7=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function t3(e,t,n){for(let r in t)tc(t[r])||tW(r,n)||(e[r]=t[r])}let t8=()=>({...t7(),attrs:{}}),ne=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 nt(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ne.has(e)}let nn=e=>!nt(e);try{i=(()=>{let e=Error("Cannot find module '@emotion/is-prop-valid'");throw e.code="MODULE_NOT_FOUND",e})().default,"function"==typeof i&&(nn=e=>e.startsWith("on")?!nt(e):i(e))}catch{}function nr(e){return tc(e)?e.get():e}let ni=e=>(t,n)=>{let r=(0,s.useContext)(t5),i=(0,s.useContext)(C),a=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:function(e,t,n,r){let i={},s=r(e,{});for(let e in s)i[e]=nr(s[e]);let{initial:a,animate:o}=e,l=tI(e),c=tR(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===o&&(o=t.animate));let u=!!n&&!1===n.initial,d=(u=u||!1===a)?o:a;if(d&&"boolean"!=typeof d&&!tM(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=tF(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}(n,r,i,e),renderState:t()}})(e,t,r,i);return n?a():v(a)},ns=ni({scrapeMotionValuesFromProps:tG,createRenderState:t7}),na=ni({scrapeMotionValuesFromProps:t1,createRenderState:t8}),no=Symbol.for("motionComponentSymbol");function nl(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let nc="data-"+tq("framerAppearId"),nu=(0,s.createContext)({});function nd(e,{forwardMotionProps:t=!1}={},n,r){n&&function(e){for(let t in e)tv[t]={...tv[t],...e[t]}}(n);let i=t6(e)?na:ns;function o(n,o){var l;let c,u={...(0,s.useContext)(S),...n,layoutId:function({layoutId:e}){let t=(0,s.useContext)(b).id;return t&&void 0!==e?t+"-"+e:e}(n)},{isStatic:d}=u,h=function(e){let{initial:t,animate:n}=function(e,t){if(tI(e)){let{initial:t,animate:n}=e;return{initial:!1===t||tA(t)?t:void 0,animate:tA(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,s.useContext)(t5));return(0,s.useMemo)(()=>({initial:t,animate:n}),[t2(t),t2(n)])}(n),p=i(n,d);if(!d&&w){(0,s.useContext)(t9).strict;let t=function(e){let{drag:t,layout:n}=tv;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(u);c=t.MeasureLayout,h.visualElement=function(e,t,n,r,i){let{visualElement:a}=(0,s.useContext)(t5),o=(0,s.useContext)(t9),l=(0,s.useContext)(C),c=(0,s.useContext)(S).reducedMotion,u=(0,s.useRef)(null);r=r||o.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:a,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:c}));let d=u.current,h=(0,s.useContext)(nu);d&&!d.projection&&i&&("html"===d.type||"svg"===d.type)&&function(e,t,n,r){let{layoutId:i,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!a||o&&nl(o),visualElement:e,animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:l,layoutRoot:c})}(u.current,n,i,h);let p=(0,s.useRef)(!1);(0,s.useInsertionEffect)(()=>{d&&p.current&&d.update(n,l)});let m=n[nc],f=(0,s.useRef)(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return x(()=>{d&&(p.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),f.current&&d.animationState&&d.animationState.animateChanges())}),(0,s.useEffect)(()=>{d&&(!f.current&&d.animationState&&d.animationState.animateChanges(),f.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),f.current=!1),d.enteringChildren=void 0)}),d}(e,p,u,r,t.ProjectionNode)}return(0,a.jsxs)(t5.Provider,{value:h,children:[c&&h.visualElement?(0,a.jsx)(c,{visualElement:h.visualElement,...u}):null,function(e,t,n,{latestValues:r},i,a=!1){let o=(t6(e)?function(e,t,n,r){let i=(0,s.useMemo)(()=>{let n=t8();return tK(n,t,tQ(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};t3(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n,r,i={},a=(n=e.style||{},t3(r={},n,e),Object.assign(r,function({transformTemplate:e},t){return(0,s.useMemo)(()=>{let n=t7();return tz(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=a,i})(t,r,i,e),l=function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(nn(i)||!0===n&&nt(i)||!t&&!nt(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(t,"string"==typeof e,a),c=e!==s.Fragment?{...l,...o,ref:n}:{},{children:u}=t,d=(0,s.useMemo)(()=>tc(u)?u.get():u,[u]);return(0,s.createElement)(e,{...c,children:d})}(e,n,(l=h.visualElement,(0,s.useCallback)(e=>{e&&p.onMount&&p.onMount(e),l&&(e?l.mount(e):l.unmount()),o&&("function"==typeof o?o(e):nl(o)&&(o.current=e))},[l])),p,d,t)]})}o.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let l=(0,s.forwardRef)(o);return l[no]=e,l}function nh(e,t,n){let r=e.getProps();return tF(r,t,void 0!==n?n:r.custom,e)}function np(e,t){return e?.[t]??e?.default??e}let nm=e=>Array.isArray(e);function nf(e,t){let n=e.getValue("willChange");if(tc(n)&&n.add)return n.add(t);if(!n&&T.WillChange){let n=new T.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function ng(e){e.duration=0,e.type="keyframes"}let ny=(e,t)=>n=>t(e(n)),n_=(...e)=>e.reduce(ny),nb=e=>1e3*e,nv={layout:0,mainThread:0,waapi:0};function nw(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function nx(e,t){return n=>n>0?t:e}let nC=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},nk=[eX,eY,eK];function nE(e){let t=nk.find(t=>t.test(e));if(eA(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===eK&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,s=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,o=2*n-r;i=nw(o,r,e+1/3),s=nw(o,r,e),a=nw(o,r,e-1/3)}else i=s=a=n;return{red:Math.round(255*i),green:Math.round(255*s),blue:Math.round(255*a),alpha:r}}(n)),n}let nS=(e,t)=>{let n=nE(e),r=nE(t);if(!n||!r)return nx(e,t);let i={...n};return e=>(i.red=nC(n.red,r.red,e),i.green=nC(n.green,r.green,e),i.blue=nC(n.blue,r.blue,e),i.alpha=en(n.alpha,r.alpha,e),eY.transform(i))},nL=new Set(["none","hidden"]);function nM(e,t){return n=>en(e,t,n)}function nA(e){return"number"==typeof e?nM:"string"==typeof e?Q(e)?nx:eJ.test(e)?nS:nI:Array.isArray(e)?nT:"object"==typeof e?eJ.test(e)?nS:nP:nx}function nT(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>nA(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function nP(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=nA(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let nI=(e,t)=>{let n=e7.createTransformer(t),r=e6(e),i=e6(t);if(!(r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length))return eA(!0,`Complex values '${e}' and '${t}' 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.`,"complex-values-different"),nx(e,t);if(nL.has(e)&&!i.values.length||nL.has(t)&&!r.values.length)return nL.has(e)?n=>n<=0?e:t:n=>n>=1?t:e;return n_(nT(function(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let s=t.types[i],a=e.indexes[s][r[s]],o=e.values[a]??0;n[i]=o,r[s]++}return n}(r,i),i.values),n)};function nR(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?en(e,t,n):nA(e)(e,t)}let nO=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>R.update(t,e),stop:()=>O(t),now:()=>F.isProcessing?F.timestamp:td.now()}},nF=(e,t,n=10)=>{let r="",i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`};function nD(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function nj(e,t,n){var r,i;let s=Math.max(t-5,0);return r=n-e(s),(i=t-s)?1e3/i*r:0}let nN=.01,nB=2,nV=.005,n$=.5;function nz(e,t){return e*Math.sqrt(1-t*t)}let nU=["duration","bounce"],nH=["stiffness","damping","mass"];function nW(e,t){return t.some(t=>void 0!==e[t])}function nG(e=.3,t=.3){let n,r="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:i,restDelta:s}=r,a=r.keyframes[0],o=r.keyframes[r.keyframes.length-1],l={done:!1,value:a},{stiffness:c,damping:u,mass:d,duration:h,velocity:p,isResolvedFromDuration:m}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!nW(e,nH)&&nW(e,nU))if(e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,i=2*ef(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:1,stiffness:r,damping:i}}else{let n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let i,s;eA(e<=nb(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=ef(.05,1,a),e=ef(.01,10,e/1e3),a<1?(i=t=>{let r=t*a,i=r*e;return .001-(r-n)/nz(t,a)*Math.exp(-i)},s=t=>{let r=t*a*e,s=Math.pow(a,2)*Math.pow(t,2)*e,o=Math.exp(-r),l=nz(Math.pow(t,2),a);return(r*n+n-s)*o*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),s=t=>e*e*(n-t)*Math.exp(-t*e));let o=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,s,5/e);if(e=nb(e),isNaN(o))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(o,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...r,velocity:-((r.velocity||0)/1e3)}),f=p||0,g=u/(2*Math.sqrt(c*d)),y=o-a,_=Math.sqrt(c/d)/1e3,b=5>Math.abs(y);if(i||(i=b?nN:nB),s||(s=b?nV:n$),g<1){let e=nz(_,g);n=t=>o-Math.exp(-g*_*t)*((f+g*_*y)/e*Math.sin(e*t)+y*Math.cos(e*t))}else if(1===g)n=e=>o-Math.exp(-_*e)*(y+(f+_*y)*e);else{let e=_*Math.sqrt(g*g-1);n=t=>{let n=Math.exp(-g*_*t),r=Math.min(e*t,300);return o-n*((f+g*_*y)*Math.sinh(r)+e*y*Math.cosh(r))/e}}let v={calculatedDuration:m&&h||null,next:e=>{let t=n(e);if(m)l.done=e>=h;else{let r=0===e?f:0;g<1&&(r=0===e?nb(f):nj(n,e,t));let a=Math.abs(o-t)<=s;l.done=Math.abs(r)<=i&&a}return l.value=l.done?o:t,l},toString:()=>{let e=Math.min(nD(v),2e4),t=nF(t=>v.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return v}function nZ({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:c=.5,restSpeed:u}){let d,h,p=e[0],m={done:!1,value:p},f=n*t,g=p+f,y=void 0===a?g:a(g);y!==g&&(f=y-p);let _=e=>-f*Math.exp(-e/r),b=e=>y+_(e),v=e=>{let t=_(e),n=b(e);m.done=Math.abs(t)<=c,m.value=m.done?y:n},w=e=>{let t;if(t=m.value,void 0!==o&&t<o||void 0!==l&&t>l){var n;d=e,h=nG({keyframes:[m.value,(n=m.value,void 0===o?l:void 0===l||Math.abs(o-n)<Math.abs(l-n)?o:l)],velocity:nj(b,e,m.value),damping:i,stiffness:s,restDelta:c,restSpeed:u})}};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,v(e),w(e)),void 0!==d&&e>=d)?h.next(e-d):(t||v(e),m)}}}nG.applyToOptions=e=>{let t=function(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(nD(r),2e4);return{type:"keyframes",ease:e=>r.next(i*e).value/t,duration:i/1e3}}(e,100,nG);return e.ease=t.ease,e.duration=nb(t.duration),e.type="keyframes",e};let nq=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function nY(e,t,n,r){return e===t&&n===r?A:i=>0===i||1===i?i:nq(function(e,t,n,r,i){let s,a,o=0;do(s=nq(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a;while(Math.abs(s)>1e-7&&++o<12)return a}(i,0,1,e,n),t,r)}let nX=nY(.42,0,1,1),nK=nY(0,0,.58,1),nJ=nY(.42,0,.58,1),nQ=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,n1=e=>t=>1-e(1-t),n0=nY(.33,1.53,.69,.99),n4=n1(n0),n6=nQ(n4),n9=e=>(e*=2)<1?.5*n4(e):.5*(2-Math.pow(2,-10*(e-1))),n5=e=>1-Math.sin(Math.acos(e)),n2=n1(n5),n7=nQ(n5),n3=e=>Array.isArray(e)&&"number"==typeof e[0],n8={linear:A,easeIn:nX,easeInOut:nJ,easeOut:nK,circIn:n5,circInOut:n7,circOut:n2,backIn:n4,backInOut:n6,backOut:n0,anticipate:n9},re=e=>{if(n3(e)){eT(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,n,r,i]=e;return nY(t,n,r,i)}return"string"==typeof e?(eT(void 0!==n8[e],`Invalid easing type '${e}'`,"invalid-easing-type"),n8[e]):e},rt=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r};function rn({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){var i;let s,a=Array.isArray(r)&&"number"!=typeof r[0]?r.map(re):re(r),o={done:!1,value:t[0]},l=function(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let s=e.length;if(eT(s===t.length,"Both input and output ranges must be the same length","range-length"),1===s)return()=>t[0];if(2===s&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());let o=function(e,t,n){let r=[],i=n||T.mix||nR,s=e.length-1;for(let n=0;n<s;n++){let s=i(e[n],e[n+1]);t&&(s=n_(Array.isArray(t)?t[n]||A:t,s)),r.push(s)}return r}(t,r,i),l=o.length,c=n=>{if(a&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=rt(e[r],e[r+1],n);return o[r](i)};return n?t=>c(ef(e[0],e[s-1],t)):c}((i=n&&n.length===t.length?n:(!function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=rt(0,t,r);e.push(en(n,1,i))}}(s=[0],t.length-1),s),i.map(t=>t*e)),t,{ease:Array.isArray(a)?a:t.map(()=>a||nJ).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=l(t),o.done=t>=e,o)}}let rr=e=>null!==e;function ri(e,{repeat:t,repeatType:n="loop"},r,i=1){let s=e.filter(rr),a=i<0||t&&"loop"!==n&&t%2==1?0:s.length-1;return a&&void 0!==r?r:s[a]}let rs={decay:nZ,inertia:nZ,tween:rn,keyframes:rn,spring:nG};function ra(e){"string"==typeof e.type&&(e.type=rs[e.type])}class ro{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let rl=e=>e/100;class rc extends ro{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==td.now()&&this.tick(td.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},nv.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;ra(e);let{type:t=rn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:s=0}=e,{keyframes:a}=e,o=t||rn;o!==rn&&"number"!=typeof a[0]&&(this.mixKeyframes=n_(rl,nR(a[0],a[1])),a=[0,100]);let l=o({...e,keyframes:a});"mirror"===i&&(this.mirroredGenerator=o({...e,keyframes:[...a].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=nD(l));let{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:o}=this;if(null===this.startTime)return n.next(0);let{delay:l=0,keyframes:c,repeat:u,repeatType:d,repeatDelay:h,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let _=this.currentTime,b=n;if(u){let e=Math.min(this.currentTime,r)/a,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,u+1))%2&&("reverse"===d?(n=1-n,h&&(n-=h/a)):"mirror"===d&&(b=s)),_=ef(0,1,n)*a}let v=y?{done:!1,value:c[0]}:b.next(_);i&&(v.value=i(v.value));let{done:w}=v;y||null===o||(w=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let x=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return x&&p!==nZ&&(v.value=ri(c,this.options,f,this.speed)),m&&m(v.value),x&&this.finish(),v}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=nb(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(td.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=nO,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(td.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,nv.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function ru(e){let t;return()=>(void 0===t&&(t=e()),t)}let rd=ru(()=>void 0!==window.ScrollTimeline),rh={},rp=(n=ru(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),()=>rh.linearEasing??n()),rm=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,rf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:rm([0,.65,.55,1]),circOut:rm([.55,0,1,.45]),backIn:rm([.31,.01,.66,-.59]),backOut:rm([.33,1.53,.69,.99])};function rg(e){return"function"==typeof e&&"applyToOptions"in e}class ry extends ro{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:o}=e;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=e,eT("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return rg(e)&&rp()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:a="loop",ease:o="easeOut",times:l}={},c){let u={[t]:n};l&&(u.offset=l);let d=function e(t,n){if(t)return"function"==typeof t?rp()?nF(t,n):"ease-out":n3(t)?rm(t):Array.isArray(t)?t.map(t=>e(t,n)||rf.easeOut):rf[t]}(o,i);Array.isArray(d)&&(u.easing=d);let h={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:"reverse"===a?"alternate":"normal"};c&&(h.pseudoElement=c);let p=e.animate(u,h);return p}(t,n,r,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=ri(r,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(e):n.startsWith("--")?t.style.setProperty(n,e):t.style[n]=e,this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){this.finishedTime=null,this.animation.currentTime=nb(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&rd())?(this.animation.timeline=e,A):t(this)}}let r_={anticipate:n9,backInOut:n6,circInOut:n7};class rb extends ry{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in r_&&(e.ease=r_[e.ease])}(e),ra(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...s}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let a=new rc({...s,autoplay:!1}),o=nb(this.finishedTime??this.time);t.setWithVelocity(a.sample(o-10).value,a.sample(o).value,10),a.stop()}}let rv=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(e7.test(e)||"0"===e)&&!e.startsWith("url(")),rw=new Set(["opacity","clipPath","filter","transform"]),rx=ru(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class rC extends ro{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:o,motionValue:l,element:c,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=td.now();const d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:s,name:o,motionValue:l,element:c,...u},h=c?.KeyframeResolver||ez;this.keyframeResolver=new h(a,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),o,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:s,velocity:a,delay:o,isHandoff:l,onUpdate:c}=n;this.resolvedAt=td.now(),!function(e,t,n,r){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let s=e[e.length-1],a=rv(i,t),o=rv(s,t);return eA(a===o,`You are trying to animate ${t} from "${i}" to "${s}". "${a?s:i}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||rg(n))&&r)}(e,i,s,a)&&((T.instantAnimations||!o)&&c?.(ri(e,n,t)),e[0]=e[e.length-1],ng(n),n.repeat=0);let u={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},d=!l&&function(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:o,transformTemplate:l}=t.owner.getProps();return rx()&&n&&rw.has(n)&&("transform"!==n||!l)&&!o&&!r&&"mirror"!==i&&0!==s&&"inertia"!==a}(u)?new rb({...u,element:u.motionValue.owner.current}):new rc(u);d.finished.then(()=>this.notifyFinished()).catch(A),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eB=!0,e$(),eV(),eB=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let rk=e=>null!==e,rE={type:"spring",stiffness:500,damping:25,restSpeed:10},rS={type:"keyframes",duration:.8},rL={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rM=(e,t,n,r={},i,s)=>a=>{let o=np(r,e)||{},l=o.delay||r.delay||0,{elapsed:c=0}=r;c-=nb(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-c,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:i};!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(o)&&Object.assign(u,((e,{keyframes:t})=>t.length>2?rS:B.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:rE:rL)(e,u)),u.duration&&(u.duration=nb(u.duration)),u.repeatDelay&&(u.repeatDelay=nb(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if(!1!==u.type&&(0!==u.duration||u.repeatDelay)||(ng(u),0===u.delay&&(d=!0)),(T.instantAnimations||T.skipAnimations)&&(d=!0,ng(u),u.delay=0),u.allowFlatten=!o.type&&!o.ease,d&&!s&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:n="loop"}){let r=e.filter(rk),i=t&&"loop"!==n&&t%2==1?0:r.length-1;return r[i]}(u.keyframes,o);if(void 0!==e)return void R.update(()=>{u.onUpdate(e),u.onComplete()})}return o.isSync?new rc(u):new rC(u)};function rA(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:a,...o}=t;r&&(s=r);let l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(let t in o){let r=e.getValue(t,e.latestValues[t]??null),i=o[t];if(void 0===i||c&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(c,t))continue;let a={delay:n,...np(s||{},t)},u=r.get();if(void 0!==u&&!r.isAnimating&&!Array.isArray(i)&&i===u&&!a.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let n=e.props[nc];if(n){let e=window.MotionHandoffAnimation(n,t,R);null!==e&&(a.startTime=e,d=!0)}}nf(e,t),r.start(rM(t,r,i,e.shouldReduceMotion&&em.has(t)?{type:!1}:a,e,d));let h=r.animation;h&&l.push(h)}return a&&Promise.all(l).then(()=>{R.update(()=>{a&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=nh(e,t)||{};for(let t in i={...i,...n}){var s;let n=nm(s=i[t])?s[s.length-1]||0:s;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,tg(n))}}(e,a)})}),l}function rT(e,t,n,r=0,i=1){let s=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),a=e.size,o=(a-1)*r;return"function"==typeof n?n(s,a):1===i?s*r:o-s*r}function rP(e,t,n={}){let r=nh(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let s=r?()=>Promise.all(rA(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:s=0,staggerChildren:a,staggerDirection:o}=i;return function(e,t,n=0,r=0,i=0,s=1,a){let o=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),o.push(rP(l,t,{...a,delay:n+("function"==typeof r?0:r)+rT(e.variantChildren,l,r,i,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(o)}(e,t,r,s,a,o,n)}:()=>Promise.resolve(),{when:o}=i;if(!o)return Promise.all([s(),a(n.delay)]);{let[e,t]="beforeChildren"===o?[s,a]:[a,s];return e().then(()=>t())}}function rI(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}let rR=tP.length,rO=[...tT].reverse(),rF=tT.length;function rD(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rj(){return{animate:rD(!0),whileInView:rD(),whileHover:rD(),whileTap:rD(),whileDrag:rD(),whileFocus:rD(),exit:rD()}}class rN{constructor(e){this.isMounted=!1,this.node=e}update(){}}let rB=0,rV={x:!1,y:!1};function r$(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}let rz=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function rU(e){return{point:{x:e.pageX,y:e.pageY}}}function rH(e,t,n,r){return r$(e,t,e=>rz(e)&&n(e,rU(e)),r)}function rW(e){return e.max-e.min}function rG(e,t,n,r=.5){e.origin=r,e.originPoint=en(t.min,t.max,e.origin),e.scale=rW(n)/rW(t),e.translate=en(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function rZ(e,t,n,r){rG(e.x,t.x,n.x,r?r.originX:void 0),rG(e.y,t.y,n.y,r?r.originY:void 0)}function rq(e,t,n){e.min=n.min+t.min,e.max=e.min+rW(t)}function rY(e,t,n){e.min=t.min-n.min,e.max=e.min+rW(t)}function rX(e,t,n){rY(e.x,t.x,n.x),rY(e.y,t.y,n.y)}function rK(e){return[e("x"),e("y")]}let rJ=({current:e})=>e?e.ownerDocument.defaultView:null,rQ=(e,t)=>Math.abs(e-t);class r1{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=r6(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(e=n.offset,t={x:0,y:0},Math.sqrt(rQ(e.x,t.x)**2+rQ(e.y,t.y)**2)>=this.distanceThreshold);if(!r&&!i)return;let{point:s}=n,{timestamp:a}=F;this.history.push({...s,timestamp:a});let{onStart:o,onMove:l}=this.handlers;r||(o&&o(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=r0(t,this.transformPagePoint),R.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=r6("pointercancel"===e.type?this.lastMoveEventInfo:r0(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,s),r&&r(e,s)},!rz(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=s,this.contextWindow=r||window;const a=r0(rU(e),this.transformPagePoint),{point:o}=a,{timestamp:l}=F;this.history=[{...o,timestamp:l}];const{onSessionStart:c}=t;c&&c(e,r6(a,this.history)),this.removeListeners=n_(rH(this.contextWindow,"pointermove",this.handlePointerMove),rH(this.contextWindow,"pointerup",this.handlePointerUp),rH(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),O(this.updatePoint)}}function r0(e,t){return t?{point:t(e.point)}:e}function r4(e,t){return{x:e.x-t.x,y:e.y-t.y}}function r6({point:e},t){return{point:e,delta:r4(e,r9(t)),offset:r4(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,n=null,r=r9(e);for(;t>=0&&(n=e[t],!(r.timestamp-n.timestamp>nb(.1)));)t--;if(!n)return{x:0,y:0};let i=(r.timestamp-n.timestamp)/1e3;if(0===i)return{x:0,y:0};let s={x:(r.x-n.x)/i,y:(r.y-n.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t)}}function r9(e){return e[e.length-1]}function r5(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function r2(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function r7(e,t,n){return{min:r3(e,t),max:r3(e,n)}}function r3(e,t){return"number"==typeof e?e:e[t]||0}let r8=new WeakMap;class ie{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=tk(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let i=e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(rU(e).point)},s=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(rV[e])return null;else return rV[e]=!0,()=>{rV[e]=!1};return rV.x||rV.y?null:(rV.x=rV.y=!0,()=>{rV.x=rV.y=!1})}(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rK(e=>{let t=this.getAxisMotionValue(e).get()||0;if(ew.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=rW(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&R.postRender(()=>i(e,t)),nf(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:s}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),s&&s(e,t)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>rK(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new r1(e,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:n,contextWindow:rJ(this.visualElement)})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:s}=r;this.startAnimation(s);let{onDragEnd:a}=this.getProps();a&&R.postRender(()=>a(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!it(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),s=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(s=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?en(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?en(n,e,r.max):Math.min(e,n)),e}(s,this.constraints[e],this.elastic[e])),i.set(s)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&nl(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:r5(e.x,n,i),y:r5(e.y,t,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:r7(e,"left","right"),y:r7(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&rK(e=>{var t,r;let i;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=n.layoutBox[e],r=this.constraints[e],i={},void 0!==r.min&&(i.min=r.min-t.min),void 0!==r.max&&(i.max=r.max-t.min),i))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nl(t))return!1;let r=t.current;eT(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let s=function(e,t,n){let r=ep(e,n),{scroll:i}=t;return i&&(eu(r.x,i.offset.x),eu(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a=(e=i.layout.layoutBox,{x:r2(e.x,s.x),y:r2(e.y,s.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=et(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(rK(a=>{if(!it(a,t,this.currentDirection))return;let l=o&&o[a]||{};s&&(l={min:0,max:0});let c={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,c)})).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return nf(this.visualElement,e),n.start(rM(e,n,0,t,this.visualElement,!1))}stopAnimation(){rK(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){rK(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){rK(t=>{let{drag:n}=this.getProps();if(!it(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:s}=r.layout.layoutBox[t];i.set(e[t]-en(n,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!nl(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};rK(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var n,i;let s,a,o,l=t.get();r[e]=(n={min:l,max:l},i=this.constraints[e],s=.5,a=rW(n),(o=rW(i))>a?s=rt(i.min,i.max-a,n.min):a>o&&(s=rt(n.min,n.max-o,i.min)),ef(0,1,s))}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),rK(t=>{if(!it(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:s}=this.constraints[t];n.set(en(i,s,r[t]))})}addListeners(){if(!this.visualElement.current)return;r8.set(this.visualElement,this);let e=rH(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();nl(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),R.read(t);let i=r$(window,"resize",()=>this.scalePositionWithinConstraints()),s=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rK(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),r(),s&&s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:s=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function it(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let ir=e=>(t,n)=>{e&&R.postRender(()=>e(t,n))};var ii=s;let is={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ia(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let io={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!ex.test(e))return e;else e=parseFloat(e);let n=ia(e,t.target.x),r=ia(e,t.target.y);return`${n}% ${r}%`}},il=!1;class ic extends ii.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;for(let e in id)tH[e]=id[e],K(e)&&(tH[e].isCSSVariable=!0);i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),il&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),is.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:s}=n;return s&&(s.isPresent=i,il=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?s.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?s.promote():s.relegate()||R.postRender(()=>{let e=s.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),t_.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;il=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function iu(e){let[t,n]=L(),r=(0,ii.useContext)(b);return(0,a.jsx)(ic,{...e,layoutGroup:r,switchLayoutGroup:(0,ii.useContext)(nu),isPresent:t,safeToRemove:n})}let id={borderRadius:{...io,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:io,borderTopRightRadius:io,borderBottomLeftRadius:io,borderBottomRightRadius:io,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e7.parse(e);if(r.length>5)return e;let i=e7.createTransformer(e),s=+("number"!=typeof r[0]),a=n.x.scale*t.x,o=n.y.scale*t.y;r[0+s]/=a,r[1+s]/=o;let l=en(a,o,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),i(r)}}};function ih(e){return k(e)&&"ownerSVGElement"in e}let ip=(e,t)=>e.depth-t.depth;class im{constructor(){this.children=[],this.isDirty=!1}add(e){th(this.children,e),this.isDirty=!0}remove(e){tp(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ip),this.isDirty=!1,this.children.forEach(e)}}let ig=["TopLeft","TopRight","BottomLeft","BottomRight"],iy=ig.length,i_=e=>"string"==typeof e?parseFloat(e):e,ib=e=>"number"==typeof e||ex.test(e);function iv(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let iw=iC(0,.5,n2),ix=iC(.5,.95,A);function iC(e,t,n){return r=>r<e?0:r>t?1:n(rt(e,t,r))}function ik(e,t){e.min=t.min,e.max=t.max}function iE(e,t){ik(e.x,t.x),ik(e.y,t.y)}function iS(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function iL(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function iM(e,t,[n,r,i],s,a){!function(e,t=0,n=1,r=.5,i,s=e,a=e){if(ew.test(t)&&(t=parseFloat(t),t=en(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let o=en(s.min,s.max,r);e===s&&(o-=t),e.min=iL(e.min,t,n,o,i),e.max=iL(e.max,t,n,o,i)}(e,t[n],t[r],t[i],t.scale,s,a)}let iA=["x","scaleX","originX"],iT=["y","scaleY","originY"];function iP(e,t,n,r){iM(e.x,t,iA,n?n.x:void 0,r?r.x:void 0),iM(e.y,t,iT,n?n.y:void 0,r?r.y:void 0)}function iI(e){return 0===e.translate&&1===e.scale}function iR(e){return iI(e.x)&&iI(e.y)}function iO(e,t){return e.min===t.min&&e.max===t.max}function iF(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function iD(e,t){return iF(e.x,t.x)&&iF(e.y,t.y)}function ij(e){return rW(e.x)/rW(e.y)}function iN(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class iB{constructor(){this.members=[]}add(e){th(this.members,e),e.scheduleRender()}remove(e){if(tp(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let iV=["","X","Y","Z"],i$=0;function iz(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function iU({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=i$++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(iG),this.nodes.forEach(iQ),this.nodes.forEach(i1),this.nodes.forEach(iZ)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new im)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new tm),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=ih(t)&&!(ih(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;R.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==r){let t,s;r=e,this.root.updateBlockedByResize=!0,n&&n(),t=td.now(),s=({timestamp:e})=>{let n=e-t;n>=250&&(O(s),i(n-250))},R.setup(s,!0),n=()=>O(s),is.hasAnimatedSinceResize&&(is.hasAnimatedSinceResize=!1,this.nodes.forEach(iJ))}})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||i.getDefaultTransition()||i2,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=i.getProps(),l=!this.targetLayout||!iD(this.targetLayout,r),c=!t&&n;if(this.options.layoutRoot||this.resumeFrom||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...np(s,"layout"),onPlay:a,onComplete:o};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c)}else t||iJ(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),O(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(i0),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=n.props[nc];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",R,!(e||n))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(iY);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(iX);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(iK),this.nodes.forEach(iH),this.nodes.forEach(iW)):this.nodes.forEach(iX),this.clearAllSnapshots();let e=td.now();F.delta=ef(0,1e3/60,e-F.timestamp),F.timestamp=e,F.isProcessing=!0,D.update.process(F),D.preRender.process(F),D.render.process(F),F.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,t_.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iq),this.sharedNodes.forEach(i4)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,R.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){R.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||rW(this.snapshot.measuredBox.x)||rW(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=tk(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!iR(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||es(this.latestValues)||s)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),i8((t=r).x),i8(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return tk();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(st))){let{scroll:e}=this.root;e&&(eu(t.x,e.offset.x),eu(t.y,e.offset.y))}return t}removeElementScroll(e){let t=tk();if(iE(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:s}=r;r!==this.root&&i&&s.layoutScroll&&(i.wasRoot&&iE(t,e),eu(t.x,i.offset.x),eu(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=tk();iE(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&eh(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),es(r.latestValues)&&eh(n,r.latestValues)}return es(this.latestValues)&&eh(n,this.latestValues),n}removeTransform(e){let t=tk();iE(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!es(n.latestValues))continue;ei(n.latestValues)&&n.updateSnapshot();let r=tk();iE(r,n.measurePageBox()),iP(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return es(this.latestValues)&&iP(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.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!==F.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(this.layout&&(r||i)){if(this.resolvedRelativeTargetAt=F.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tk(),this.relativeTargetOrigin=tk(),rX(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),iE(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=tk(),this.targetWithTransforms=tk()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var s,a,o;this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,o=this.relativeParent.target,rq(s.x,a.x,o.x),rq(s.y,a.y,o.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):iE(this.target,this.layout.layoutBox),ec(this.target,this.targetDelta)):iE(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tk(),this.relativeTargetOrigin=tk(),rX(this.relativeTargetOrigin,this.target,e.target),iE(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}}getClosestProjectingParent(){if(!(!this.parent||ei(this.parent.latestValues)||ea(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===F.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=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||i))return;iE(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){let i,s,a=n.length;if(a){t.x=t.y=1;for(let o=0;o<a;o++){s=(i=n[o]).projectionDelta;let{visualElement:a}=i.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&eh(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,ec(e,s)),r&&es(i.latestValues)&&eh(e,i.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=tk());let{target:o}=e;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(iS(this.prevProjectionDelta.x,this.projectionDelta.x),iS(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rZ(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&iN(this.projectionDelta.x,this.prevProjectionDelta.x)&&iN(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=tx(),this.projectionDelta=tx(),this.projectionDeltaWithTransform=tx()}setAnimationOrigin(e,t=!1){let n,r=this.snapshot,i=r?r.latestValues:{},s={...this.latestValues},a=tx();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=tk(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),u=!c||c.members.length<=1,d=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(i5));this.animationProgress=0,this.mixTargetDelta=t=>{let r=t/1e3;if(i6(a.x,e.x,r),i6(a.y,e.y,r),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,h,p,m,f,g;rX(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=o,g=r,i9(p.x,m.x,f.x,g),i9(p.y,m.y,f.y,g),n&&(c=this.relativeTarget,h=n,iO(c.x,h.x)&&iO(c.y,h.y))&&(this.isProjectionDirty=!1),n||(n=tk()),iE(n,this.relativeTarget)}l&&(this.animationValues=s,function(e,t,n,r,i,s){i?(e.opacity=en(0,n.opacity??1,iw(r)),e.opacityExit=en(t.opacity??1,0,ix(r))):s&&(e.opacity=en(t.opacity??1,n.opacity??1,r));for(let i=0;i<iy;i++){let s=`border${ig[i]}Radius`,a=iv(t,s),o=iv(n,s);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||ib(a)===ib(o)?(e[s]=Math.max(en(i_(a),i_(o),r),0),(ew.test(o)||ew.test(a))&&(e[s]+="%")):e[s]=o)}(t.rotate||n.rotate)&&(e.rotate=en(t.rotate||0,n.rotate||0,r))}(s,i,this.latestValues,r,d,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(O(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=R.update(()=>{var t,n,r;let i;is.hasAnimatedSinceResize=!0,nv.layout++,this.motionValue||(this.motionValue=tg(0)),this.currentAnimation=(t=this.motionValue,n=[0,1e3],r={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{nv.layout--},onComplete:()=>{nv.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}},(i=tc(t)?t:tg(t)).start(rM("",i,n,r)),i.animation),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 e=this.getStack();e&&e.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 e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&se(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||tk();let t=rW(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=rW(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}iE(t,n),eh(t,i),rZ(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new iB),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&iz("z",e,r,this.animationValues);for(let t=0;t<iV.length;t++)iz(`rotate${iV[t]}`,e,r,this.animationValues),iz(`skew${iV[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=nr(t?.pointerEvents)||"",e.transform=n?n(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=nr(t?.pointerEvents)||""),this.hasProjected&&!es(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1);return}e.visibility="";let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let s=function(e,t,n){let r="",i=e.x.translate/t.x,s=e.y.translate/t.y,a=n?.z||0;if((i||s||a)&&(r=`translate3d(${i}px, ${s}px, ${a}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:s,skewX:a,skewY:o}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),s&&(r+=`rotateY(${s}deg) `),a&&(r+=`skewX(${a}deg) `),o&&(r+=`skewY(${o}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(r+=`scale(${o}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);n&&(s=n(i,s)),e.transform=s;let{x:a,y:o}=this.projectionDelta;for(let t in e.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,tH){if(void 0===i[t])continue;let{correct:n,applyTo:a,isCSSVariable:o}=tH[t],l="none"===s?i[t]:n(i[t],r);if(a){let t=a.length;for(let n=0;n<t;n++)e[a[n]]=l}else o?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?nr(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(iY),this.root.sharedNodes.clear()}}}function iH(e){e.updateLayout()}function iW(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,s=t.source!==e.layout.source;"size"===i?rK(e=>{let r=s?t.measuredBox[e]:t.layoutBox[e],i=rW(r);r.min=n[e].min,r.max=r.min+i}):se(i,t.layoutBox,n)&&rK(r=>{let i=s?t.measuredBox[r]:t.layoutBox[r],a=rW(n[r]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});let a=tx();rZ(a,n,t.layoutBox);let o=tx();s?rZ(o,e.applyTransform(r,!0),t.measuredBox):rZ(o,n,t.layoutBox);let l=!iR(a),c=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:s}=r;if(i&&s){let a=tk();rX(a,t.layoutBox,i.layoutBox);let o=tk();rX(o,n,s.layoutBox),iD(a,o)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=o,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function iG(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function iZ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iq(e){e.clearSnapshot()}function iY(e){e.clearMeasurements()}function iX(e){e.isLayoutDirty=!1}function iK(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function iJ(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function iQ(e){e.resolveTargetDelta()}function i1(e){e.calcProjection()}function i0(e){e.resetSkewAndRotation()}function i4(e){e.removeLeadSnapshot()}function i6(e,t,n){e.translate=en(t.translate,0,n),e.scale=en(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function i9(e,t,n,r){e.min=en(t.min,n.min,r),e.max=en(t.max,n.max,r)}function i5(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let i2={duration:.45,ease:[.4,0,.1,1]},i7=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),i3=i7("applewebkit/")&&!i7("chrome/")?Math.round:A;function i8(e){e.min=i3(e.min),e.max=i3(e.max)}function se(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(ij(t)-ij(n)))}function st(e){return e!==e.root&&e.scroll?.wasRoot}let sn=iU({attachResizeListener:(e,t)=>r$(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sr={current:void 0},si=iU({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sr.current){let e=new sn({});e.mount(window),e.setOptions({layoutScroll:!0}),sr.current=e}return sr.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function ss(e,t){let n=function(e){if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document,n=(void 0)??t.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function sa(e){return!("touch"===e.pointerType||rV.x||rV.y)}function so(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&R.postRender(()=>i(t,rU(t)))}let sl=(e,t)=>!!t&&(e===t||sl(e,t.parentElement)),sc=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),su=new WeakSet;function sd(e){return t=>{"Enter"===t.key&&e(t)}}function sh(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function sp(e){return rz(e)&&!(rV.x||rV.y)}function sm(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=r["onTap"+("End"===n?"":n)];i&&R.postRender(()=>i(t,rU(t)))}let sf=new WeakMap,sg=new WeakMap,sy=e=>{let t=sf.get(e.target);t&&t(e)},s_=e=>{e.forEach(sy)},sb={some:0,all:1},sv=function(e,t){if("u"<typeof Proxy)return nd;let n=new Map,r=(n,r)=>nd(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,s)=>"create"===s?r:(n.has(s)||n.set(s,nd(s,void 0,e,t)),n.get(s))})}({animation:{Feature:class extends rN{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>rP(e,t,n)));else if("string"==typeof t)r=rP(e,t,n);else{let i="function"==typeof t?nh(e,t,n.custom):t;r=Promise.all(rA(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=rj(),r=!0,i=t=>(n,r)=>{let i=nh(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function s(s){let{props:a}=e,o=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<rR;e++){let r=tP[e],i=t.props[r];(tA(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},l=[],c=new Set,u={},d=1/0;for(let t=0;t<rF;t++){var h,p;let m=rO[t],f=n[m],g=void 0!==a[m]?a[m]:o[m],y=tA(g),_=m===s?f.isActive:null;!1===_&&(d=t);let b=g===o[m]&&g!==a[m]&&y;if(b&&r&&e.manuallyAnimateOnMount&&(b=!1),f.protectedKeys={...u},!f.isActive&&null===_||!g&&!f.prevProp||tM(g)||"boolean"==typeof g)continue;let v=(h=f.prevProp,"string"==typeof(p=g)?p!==h:!!Array.isArray(p)&&!rI(p,h)),w=v||m===s&&f.isActive&&!b&&y||t>d&&y,x=!1,C=Array.isArray(g)?g:[g],k=C.reduce(i(m),{});!1===_&&(k={});let{prevResolvedValues:E={}}=f,S={...E,...k},L=t=>{w=!0,c.has(t)&&(x=!0,c.delete(t)),f.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in S){let t=k[e],n=E[e];if(!u.hasOwnProperty(e))(nm(t)&&nm(n)?rI(t,n):t===n)?void 0!==t&&c.has(e)?L(e):f.protectedKeys[e]=!0:null!=t?L(e):c.add(e)}f.prevProp=g,f.prevResolvedValues=k,f.isActive&&(u={...u,...k}),r&&e.blockInitialAnimation&&(w=!1);let M=b&&v,A=!M||x;w&&A&&l.push(...C.map(t=>{let n={type:m};if("string"==typeof t&&r&&!M&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=nh(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=rT(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(c.size){let t={};if("boolean"!=typeof a.initial){let n=nh(e,Array.isArray(a.initial)?a.initial[0]:a.initial);n&&n.transition&&(t.transition=n.transition)}c.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let m=!!l.length;return r&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(l):Promise.resolve()}return{animateChanges:s,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=rj(),r=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();tM(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends rN{constructor(){super(...arguments),this.id=rB++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends rN{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.unmount();let{viewport:n={}}=this.node.getProps(),{root:r,margin:i,amount:s="some",once:a}=n,o={root:r?r.current:void 0,rootMargin:i,threshold:"number"==typeof s?s:sb[s]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,a&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)};return e=this.node.current,t=function({root:e,...t}){let n=e||document;sg.has(n)||sg.set(n,{});let r=sg.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(s_,{root:e,...t})),r[i]}(o),sf.set(e,l),t.observe(e),()=>{sf.delete(e),t.unobserve(e)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends rN{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,s]=ss(e,n),a=e=>{let r=e.currentTarget;if(!sp(e))return;su.add(r);let s=t(r,e),a=(e,t)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),su.has(r)&&su.delete(r),sp(e)&&"function"==typeof s&&s(e,{success:t})},o=e=>{a(e,r===window||r===document||n.useGlobalTarget||sl(r,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",o,i),window.addEventListener("pointercancel",l,i)};return r.forEach(e=>{((n.useGlobalTarget?window:e).addEventListener("pointerdown",a,i),E(e))&&(e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let r=sd(()=>{if(su.has(n))return;sh(n,"down");let e=sd(()=>{sh(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>sh(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,i)),sc.has(e.tagName)||-1!==e.tabIndex||e.hasAttribute("tabindex")||(e.tabIndex=0))}),s}(e,(e,t)=>(sm(this.node,t,"Start"),(e,{success:t})=>sm(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends rN{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&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=n_(r$(this.node.current,"focus",()=>this.onFocus()),r$(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends rN{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,s]=ss(e,n),a=e=>{if(!sa(e))return;let{target:n}=e,r=t(n,e);if("function"!=typeof r||!n)return;let s=e=>{sa(e)&&(r(e),n.removeEventListener("pointerleave",s))};n.addEventListener("pointerleave",s,i)};return r.forEach(e=>{e.addEventListener("pointerenter",a,i)}),s}(e,(e,t)=>(so(this.node,t,"Start"),e=>so(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends rN{constructor(){super(...arguments),this.removePointerDownListener=A}onPointerDown(e){this.session=new r1(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rJ(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:ir(e),onStart:ir(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&R.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=rH(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends rN{constructor(e){super(e),this.removeGroupControls=A,this.removeListeners=A,this.controls=new ie(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||A}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:si,MeasureLayout:iu},layout:{ProjectionNode:si,MeasureLayout:iu}},(e,t)=>t6(e)?new t0(t):new tZ(t,{allowProjection:e!==s.Fragment}));e.s(["motion",0,sv],36002);let sw=s.forwardRef(({size:e=20,children:t,...n},r)=>(0,a.jsx)("svg",{fill:"none",height:e,ref:r,viewBox:"0 0 24 24",width:e,xmlns:"http://www.w3.org/2000/svg",...n,children:t}));sw.displayName="IconBase",e.s(["IconBase",0,sw],37289);let sx=s.forwardRef(({...e},t)=>(0,a.jsx)(sw,{ref:t,...e,children:(0,a.jsx)("path",{d:"M12 16L6 9.85966L6.84 9L12 14.2808L17.16 9L18 9.85966L12 16Z",fill:"currentColor"})}));sx.displayName="IconArrowDown",e.s(["IconArrowDown",0,sx],9334)},68645,e=>{"use strict";var t=e.i(50270),n=e.i(7284),r=e.i(80319),i=e.i(64618),s=e.i(20764),a=e.i(602),o=e.i(18960),l=e.i(77887),c=e.i(98804),u=e.i(36002),d=e.i(69159),h=e.i(89137),p=e.i(64369),m=e.i(2884),f=e.i(9334),g=e.i(37289);let y=o.forwardRef(({...e},n)=>(0,t.jsx)(g.IconBase,{ref:n,...e,children:(0,t.jsx)("path",{clipRule:"evenodd",d:"M6.75 4C5.23122 4 4 5.23122 4 6.75V7.75V8V17.25C4 18.7688 5.23122 20 6.75 20H17.25C18.7688 20 20 18.7688 20 17.25V9.75C20 8.23122 18.7688 7 17.25 7H14.0816L13.227 5.43322C12.7451 4.54965 11.819 4 10.8127 4H6.75ZM12.3729 7L11.9101 6.15145L11.91 6.15138C11.6911 5.74989 11.2702 5.5 10.8127 5.5H6.75C6.05964 5.5 5.5 6.05964 5.5 6.75V7H12.3729ZM5.5 17.25V8.5H17.25C17.9404 8.5 18.5 9.05964 18.5 9.75V17.25C18.5 17.9404 17.9404 18.5 17.25 18.5H6.75C6.05964 18.5 5.5 17.9404 5.5 17.25Z",fill:"currentColor",fillRule:"evenodd"})}));y.displayName="IconFolder";let _=o.forwardRef(({...e},n)=>(0,t.jsx)(g.IconBase,{ref:n,...e,children:(0,t.jsx)("path",{clipRule:"evenodd",d:"M6.75 4C5.23122 4 4 5.23122 4 6.75V17.25V17.5C4 17.5933 4.01702 17.6825 4.04812 17.7649C4.28918 19.0376 5.4072 20 6.75 20H17.25C17.9905 20 18.6283 19.7404 19.111 19.2387C19.5681 18.7636 19.836 18.1241 19.9792 17.4279L21.4711 12.206C21.4903 12.139 21.5 12.0697 21.5 12C21.5 10.652 20.5301 9.53047 19.25 9.29534V8.5C19.25 7.5335 18.4665 6.75 17.5 6.75H13.9452L13.227 5.43322C12.7451 4.54965 11.819 4 10.8127 4H6.75ZM17.75 9.25V8.5C17.75 8.36193 17.6381 8.25 17.5 8.25H13.5C13.2255 8.25 12.973 8.10009 12.8416 7.85915L11.9101 6.15145L11.91 6.15138C11.6911 5.74989 11.2702 5.5 10.8127 5.5H6.75C6.05964 5.5 5.5 6.05964 5.5 6.75V13.158L6.79875 9.73401C6.90926 9.44267 7.1884 9.25 7.5 9.25H17.75ZM5.50587 17.372L8.01766 10.75H18.5H18.75C19.4091 10.75 19.949 11.26 19.9966 11.9069L18.5289 17.044C18.5233 17.0634 18.5185 17.0831 18.5146 17.1029C18.4062 17.6448 18.2275 17.9934 18.03 18.1988C17.8513 18.3846 17.6141 18.5 17.25 18.5H6.75C6.10079 18.5 5.56718 18.0051 5.50587 17.372Z",fill:"currentColor",fillRule:"evenodd"})}));_.displayName="IconFolderOpen";let b=new Set,v=({emailsDirectoryMetadata:e,className:n,currentEmailOpenSlug:r})=>{let s=!!r&&r.includes(e.relativePath),l=0===e.emailFilenames.length&&0===e.subDirectories.length,[c,u]=o.useState(b.has(e.absolutePath)||s);return(0,t.jsxs)(a.Root,{className:(0,i.cn)("group",n),onOpenChange:t=>{t?b.add(e.absolutePath):b.delete(e.absolutePath),u(t)},open:c,children:[(0,t.jsxs)(a.Trigger,{className:(0,i.cn)("flex h-8 w-full items-center text-start justify-between gap-2 font-medium text-[14px]",{"cursor-pointer":!l}),children:[c?(0,t.jsx)(_,{className:"w-[20px]",height:"20",width:"20"}):(0,t.jsx)(y,{height:"20",width:"20"}),(0,t.jsx)(m.Heading,{as:"h3",className:"transition grow w-[calc(100%-40px)] truncate duration-200 ease-in-out hover:text-slate-12",color:"gray",size:"2",weight:"medium",children:e.directoryName}),l?null:(0,t.jsx)(f.IconArrowDown,{width:"20",height:"20",className:"ml-auto opacity-60 transition-transform data-[open=true]:rotate-180","data-open":c})]}),l?null:(0,t.jsx)(w,{currentEmailOpenSlug:r,emailsDirectoryMetadata:e,open:c})]})},w=e=>{let n=(0,h.useSearchParams)(),r=(0,h.useRouter)(),s=o.useId();return(0,t.jsx)(l.AnimatePresence,{initial:!1,children:e.open?(0,t.jsx)(a.Content,{asChild:!0,className:"relative overflow-y-hidden pl-1",forceMount:!0,children:(0,t.jsxs)(u.motion.div,{animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},initial:{opacity:0,height:0},children:[e.isRoot?null:(0,t.jsx)("div",{className:"line absolute left-2.5 h-full w-px bg-slate-6"}),(0,t.jsx)("div",{className:"flex flex-col truncate",children:(0,t.jsxs)(c.LayoutGroup,{id:`sidebar-${s}`,children:[e.emailsDirectoryMetadata.subDirectories.map(n=>(0,t.jsx)(v,{className:(0,i.cn)("data-[state=open]:mb-2",!e.isRoot&&"pl-3"),currentEmailOpenSlug:e.currentEmailOpenSlug,emailsDirectoryMetadata:n},n.absolutePath)),e.emailsDirectoryMetadata.emailFilenames.map((s,a)=>{var o;let l=e.isRoot?s:`${e.emailsDirectoryMetadata.relativePath}/${s}`,c=!!e.currentEmailOpenSlug&&("tsx"===(o=e.currentEmailOpenSlug).split(".").pop()||"jsx"===o.split(".").pop()||"js"===o.split(".").pop()?o.split(".").slice(0,-1).join("."):o)===l;return(0,t.jsx)(d.default,{href:{pathname:`/preview/${l}`,search:n.toString()},onMouseOver:()=>{r.prefetch(`/preview/${l}?${n.toString()}`)},children:(0,t.jsxs)(u.motion.span,{animate:{x:0,opacity:1},className:(0,i.cn)("relative flex h-8 w-full items-center text-start gap-2 rounded-md align-middle text-slate-11 text-sm transition-colors duration-100 ease-[cubic-bezier(.6,.12,.34,.96)]",e.isRoot?void 0:"pl-3",{"text-cyan-11":c,"hover:text-slate-12":e.currentEmailOpenSlug!==l}),initial:{x:-10+-(1.5*a),opacity:0},transition:{x:{delay:.03*a,duration:.2},opacity:{delay:.03*a,duration:.2}},children:[c?(0,t.jsx)(u.motion.span,{animate:{opacity:1},className:"absolute inset-0 rounded-md bg-cyan-5 opacity-0 transition-all duration-200 ease-[cubic-bezier(.6,.12,.34,.96)]",exit:{opacity:0},initial:{opacity:0},children:e.isRoot?null:(0,t.jsx)(u.motion.div,{className:"absolute top-1 left-[0.4rem] inset-0 h-6 w-px rounded-xs bg-cyan-11",layoutId:"active-file",transition:{type:"spring",bounce:.2,duration:.6}})}):null,(0,t.jsx)(p.IconFile,{className:"h-5 w-5",height:"20",width:"20"}),(0,t.jsx)("span",{className:"truncate w-[calc(100%-1.25rem)]",children:s})]})},l)})]})})]})}):null})},x=({currentEmailOpenSlug:e,emailsDirectoryMetadata:n})=>(0,t.jsx)("div",{className:"flex w-full h-full flex-col lg:w-full lg:min-w-58",children:(0,t.jsx)("nav",{className:"flex grow flex-col p-4 pr-0 pl-0",children:(0,t.jsx)(a.Root,{open:!0,children:(0,t.jsx)(o.Suspense,{children:(0,t.jsx)(w,{currentEmailOpenSlug:e,emailsDirectoryMetadata:n,isRoot:!0,open:!0})})})})});e.s(["Sidebar",0,({className:e,currentEmailOpenSlug:a})=>{let{emailsDirectoryMetadata:o}=(0,r.useEmails)();return(0,t.jsx)("aside",{className:(0,i.cn)("overflow-hidden","lg:static lg:z-auto lg:max-h-screen lg:w-[16rem]",e),children:(0,t.jsxs)("div",{className:"flex w-full h-full overflow-hidden flex-col border-slate-6 border-r",children:[(0,t.jsx)("div",{className:(0,n.clsx)("hidden min-h-14 shrink items-center py-2 px-3 lg:flex border-b border-slate-4"),children:(0,t.jsx)("h2",{children:(0,t.jsx)(s.Logo,{})})}),(0,t.jsx)("div",{className:"relative grow w-full h-full overflow-y-auto overflow-x-hidden px-4 pb-3",children:(0,t.jsx)(x,{currentEmailOpenSlug:a,emailsDirectoryMetadata:o})})]})})}],68645)},27818,39730,e=>{"use strict";var t=e.i(50270),n=e.i(18960),r=e.i(64618),i=e.i(20764),s=e.i(68645);e.s([],39730);let a=n.createContext(void 0);e.s(["Shell",0,({children:e,currentEmailOpenSlug:o})=>{let[l,c]=n.useState(!0);return(0,t.jsxs)(a.Provider,{value:{toggleSidebar:()=>c(e=>!e),sidebarToggled:l},children:[(0,t.jsxs)("div",{className:"flex h-17.5 items-center justify-between border-slate-6 border-b px-6 lg:hidden",children:[(0,t.jsx)("div",{className:"flex h-17.5 items-center",children:(0,t.jsx)(i.Logo,{})}),(0,t.jsx)("button",{className:"flex h-6 w-6 items-center justify-center rounded-sm text-white",onClick:()=>{c(e=>!e)},type:"button",children:(0,t.jsxs)("svg",{fill:"none",height:"16",stroke:"white",viewBox:"0 0 15 15",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("title",{children:"Menu"}),(0,t.jsx)("path",{clipRule:"evenodd",d:"M1.5 3C1.22386 3 1 3.22386 1 3.5C1 3.77614 1.22386 4 1.5 4H13.5C13.7761 4 14 3.77614 14 3.5C14 3.22386 13.7761 3 13.5 3H1.5ZM1 7.5C1 7.22386 1.22386 7 1.5 7H13.5C13.7761 7 14 7.22386 14 7.5C14 7.77614 13.7761 8 13.5 8H1.5C1.22386 8 1 7.77614 1 7.5ZM1 11.5C1 11.2239 1.22386 11 1.5 11H13.5C13.7761 11 14 11.2239 14 11.5C14 11.7761 13.7761 12 13.5 12H1.5C1.22386 12 1 11.7761 1 11.5Z",fill:"currentColor",fillRule:"evenodd"})]})})]}),(0,t.jsxs)("div",{className:"w-dvw flex h-[calc(100dvh-4.375rem)] lg:h-dvh",children:[(0,t.jsx)(n.Suspense,{children:(0,t.jsx)(s.Sidebar,{className:(0,r.cn)("fixed top-17.5 left-0 z-9999 h-full max-h-full w-full max-w-full will-change-auto [transition:width_0.2s_ease-in-out]","lg:static lg:inline-block lg:z-auto lg:max-h-full lg:w-[16rem]",{"-translate-x-full lg:translate-x-0":l,"lg:w-0":!l}),currentEmailOpenSlug:o})}),(0,t.jsx)("main",{className:(0,r.cn)("inline-block relative overflow-hidden will-change-[width]","w-full h-full","[transition:width_0.2s_ease-in-out,transform_0.2s_ease-in-out]",{"lg:w-[calc(100%-16rem)]":l,"opacity-0 lg:opacity-100":!l}),children:e})]})]})},"ShellContext",0,a],27818)},90216,(e,t,n)=>{t.exports={v:"5.12.1",fr:60,ip:0,op:150,w:144,h:144,nm:"system-regular-716-spinner-three-dots",ddd:0,assets:[{id:"comp_1",nm:"hover-trapdoor",fr:60,layers:[{ddd:0,ind:1,ty:4,nm:"Ellipse 31",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.085,y:1},o:{x:.333,y:0},t:46,s:[120,72,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.085,y:.085},o:{x:.373,y:.373},t:76,s:[120,23,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.631,y:1},o:{x:.658,y:0},t:83.572,s:[120,23,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.352,y:1},o:{x:.333,y:0},t:104.715,s:[120,87,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.58,y:1},o:{x:.333,y:0},t:128.572,s:[120,67,0],to:[0,0,0],ti:[0,0,0]},{t:150,s:[120,72,0]}],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[27,27],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[0,0,0,1],ix:3,x:"var $bm_rt;\n$bm_rt = comp('system-regular-716-spinner-three-dots').layer('control').effect('primary')('Color');"},o:{a:0,k:100,ix:4},w:{a:0,k:9,ix:5},lc:2,lj:1,ml:4,bm:0,nm:".primary",mn:"ADBE Vector Graphic - Stroke",hd:!1,cl:"primary"},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 28",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:1800,st:0,ct:1,bm:0},{ddd:0,ind:2,ty:4,nm:"Ellipse 30",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.085,y:1},o:{x:.333,y:0},t:23,s:[72,72,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.085,y:.085},o:{x:.373,y:.373},t:53,s:[72,23,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.631,y:1},o:{x:.658,y:0},t:76,s:[72,23,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.352,y:1},o:{x:.333,y:0},t:97.143,s:[72,87,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.58,y:1},o:{x:.333,y:0},t:121,s:[72,67,0],to:[0,0,0],ti:[0,0,0]},{t:142.427734375,s:[72,72,0]}],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[27,27],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[0,0,0,1],ix:3,x:"var $bm_rt;\n$bm_rt = comp('system-regular-716-spinner-three-dots').layer('control').effect('primary')('Color');"},o:{a:0,k:100,ix:4},w:{a:0,k:9,ix:5},lc:2,lj:1,ml:4,bm:0,nm:".primary",mn:"ADBE Vector Graphic - Stroke",hd:!1,cl:"primary"},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 28",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:1800,st:0,ct:1,bm:0},{ddd:0,ind:3,ty:4,nm:"Ellipse 29",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.085,y:1},o:{x:.333,y:0},t:0,s:[24,72,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.085,y:.085},o:{x:.373,y:.373},t:30,s:[24,23,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.631,y:1},o:{x:.658,y:0},t:70.572,s:[24,23,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.352,y:1},o:{x:.333,y:0},t:91.715,s:[24,87,0],to:[0,0,0],ti:[0,0,0]},{i:{x:.58,y:1},o:{x:.333,y:0},t:115.572,s:[24,67,0],to:[0,0,0],ti:[0,0,0]},{t:137,s:[24,72,0]}],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[27,27],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[0,0,0,1],ix:3,x:"var $bm_rt;\n$bm_rt = comp('system-regular-716-spinner-three-dots').layer('control').effect('primary')('Color');"},o:{a:0,k:100,ix:4},w:{a:0,k:9,ix:5},lc:2,lj:1,ml:4,bm:0,nm:".primary",mn:"ADBE Vector Graphic - Stroke",hd:!1,cl:"primary"},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 28",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:1799,st:-1,ct:1,bm:0}]}],layers:[{ddd:0,ind:1,ty:3,nm:"control",sr:1,ks:{o:{a:0,k:0,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[0,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,ef:[{ty:5,nm:"primary",np:3,mn:"ADBE Color Control",ix:1,en:1,ef:[{ty:2,nm:"Color",mn:"ADBE Color Control-0001",ix:1,v:{a:0,k:[0,0,0],ix:1}}]}],ip:0,op:2112,st:0,bm:0},{ddd:0,ind:3,ty:0,nm:"hover-trapdoor",refId:"comp_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[72,72,0],ix:2,l:2},a:{a:0,k:[72,72,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,w:144,h:144,ip:0,op:160,st:0,bm:0}],markers:[{tm:0,cm:"default:hover-trapdoor",dr:150}],props:{}}},81831,e=>{"use strict";let t,n,r;var i,s,a=e.i(50270),o=e.i(18960);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t,n){var r;return(r=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==l(r)?r:r+"")in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=class{requestAnimationFrame(e){return requestAnimationFrame(e)}cancelAnimationFrame(e){cancelAnimationFrame(e)}},d=class{constructor(){c(this,"_lastHandleId",0),c(this,"_lastImmediate",null)}requestAnimationFrame(e){return this._lastHandleId>=0x20000000000000-1&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{e(Date.now())}),this._lastHandleId}cancelAnimationFrame(e){this._lastImmediate&&clearImmediate(this._lastImmediate)}},h=class{constructor(){c(this,"_strategy",void 0),this._strategy="function"==typeof requestAnimationFrame?new u:new d}requestAnimationFrame(e){return this._strategy.requestAnimationFrame(e)}cancelAnimationFrame(e){this._strategy.cancelAnimationFrame(e)}};let p="u">typeof window&&void 0!==window.document,m=new Uint8Array([80,75,3,4]),f=["v","ip","op","layers","fr","w","h"],g="0.69.0",y="@lottiefiles/dotlottie-web",_="u">typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"u">typeof TextDecoder&&_.decode();let b=null;function v(){return(null===b||0===b.byteLength)&&(b=new Uint8Array(t.memory.buffer)),b}function w(e,t){return e>>>=0,_.decode(v().subarray(e,e+t))}function x(e){let n=t.__externref_table_alloc_command_export();return t.__wbindgen_export_3.set(n,e),n}let C=0,k="u">typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},E="function"==typeof k.encodeInto?function(e,t){return k.encodeInto(e,t)}:function(e,t){let n=k.encode(e);return t.set(n),{read:e.length,written:n.length}};function S(e,t,n){if(void 0===n){let n=k.encode(e),r=t(n.length,1)>>>0;return v().subarray(r,r+n.length).set(n),C=n.length,r}let r=e.length,i=t(r,1)>>>0,s=v(),a=0;for(;a<r;a++){let t=e.charCodeAt(a);if(t>127)break;s[i+a]=t}if(a!==r){0!==a&&(e=e.slice(a)),i=n(i,r,r=a+3*e.length,1)>>>0;let t=E(e,v().subarray(i+a,i+r));a+=t.written,i=n(i,r,a,1)>>>0}return C=a,i}let L=null;function M(){return(null===L||!0===L.buffer.detached||void 0===L.buffer.detached&&L.buffer!==t.memory.buffer)&&(L=new DataView(t.memory.buffer)),L}function A(e){return null==e}let T=null;function P(e,t){let n=t(+e.length,1)>>>0;return v().set(e,n/1),C=e.length,n}let I=Object.freeze({Forward:0,0:"Forward",Reverse:1,1:"Reverse",Bounce:2,2:"Bounce",ReverseBounce:3,3:"ReverseBounce"}),R=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>t.__wbg_dotlottieplayerwasm_free(e>>>0,1));var O=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,R.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_dotlottieplayerwasm_free(e,0)}clear_slot(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C;return 0!==t.dotlottieplayerwasm_clear_slot(this.__wbg_ptr,n,r)}is_playing(){return 0!==t.dotlottieplayerwasm_is_playing(this.__wbg_ptr)}is_stopped(){return 0!==t.dotlottieplayerwasm_is_stopped(this.__wbg_ptr)}layout_fit(){let e,n;try{let r=t.dotlottieplayerwasm_layout_fit(this.__wbg_ptr);return e=r[0],n=r[1],w(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}loop_count(){return t.dotlottieplayerwasm_loop_count(this.__wbg_ptr)>>>0}poll_event(){return t.dotlottieplayerwasm_poll_event(this.__wbg_ptr)}reset_slot(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C;return 0!==t.dotlottieplayerwasm_reset_slot(this.__wbg_ptr,n,r)}set_layout(e,n,r){let i=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),s=C;return 0!==t.dotlottieplayerwasm_set_layout(this.__wbg_ptr,i,s,n,r)}set_marker(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C;t.dotlottieplayerwasm_set_marker(this.__wbg_ptr,n,r)}tween_stop(){return 0!==t.dotlottieplayerwasm_tween_stop(this.__wbg_ptr)}clear_slots(){return 0!==t.dotlottieplayerwasm_clear_slots(this.__wbg_ptr)}has_segment(){return 0!==t.dotlottieplayerwasm_has_segment(this.__wbg_ptr)}is_complete(){return 0!==t.dotlottieplayerwasm_is_complete(this.__wbg_ptr)}is_tweening(){return 0!==t.dotlottieplayerwasm_is_tweening(this.__wbg_ptr)}reset_slots(){return 0!==t.dotlottieplayerwasm_reset_slots(this.__wbg_ptr)}reset_theme(){return 0!==t.dotlottieplayerwasm_reset_theme(this.__wbg_ptr)}segment_end(){return t.dotlottieplayerwasm_segment_end(this.__wbg_ptr)}set_quality(e){return 0!==t.dotlottieplayerwasm_set_quality(this.__wbg_ptr,e)}set_segment(e,n){return 0!==t.dotlottieplayerwasm_set_segment(this.__wbg_ptr,e,n)}static unload_font(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C;return 0!==t.dotlottieplayerwasm_unload_font(n,r)}animation_id(){let e=t.dotlottieplayerwasm_animation_id(this.__wbg_ptr),n;return 0!==e[0]&&(n=w(e[0],e[1]).slice(),t.__wbindgen_free_command_export(e[0],+e[1],1)),n}clear_marker(){t.dotlottieplayerwasm_clear_marker(this.__wbg_ptr)}emit_on_loop(){t.dotlottieplayerwasm_emit_on_loop(this.__wbg_ptr)}get_slot_ids(){return t.dotlottieplayerwasm_get_slot_ids(this.__wbg_ptr)}get_slot_str(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C,i=t.dotlottieplayerwasm_get_slot_str(this.__wbg_ptr,n,r),s;return 0!==i[0]&&(s=w(i[0],i[1]).slice(),t.__wbindgen_free_command_export(i[0],+i[1],1)),s}marker_names(){return t.dotlottieplayerwasm_marker_names(this.__wbg_ptr)}set_autoplay(e){t.dotlottieplayerwasm_set_autoplay(this.__wbg_ptr,e)}set_slot_str(e,n){let r=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=C,s=S(n,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=C;return 0!==t.dotlottieplayerwasm_set_slot_str(this.__wbg_ptr,r,i,s,a)}set_viewport(e,n,r,i){return 0!==t.dotlottieplayerwasm_set_viewport(this.__wbg_ptr,e,n,r,i)}total_frames(){return t.dotlottieplayerwasm_total_frames(this.__wbg_ptr)}tween_update(e){return 0!==t.dotlottieplayerwasm_tween_update(this.__wbg_ptr,A(e)?0x100000001:Math.fround(e))}clear_segment(){return 0!==t.dotlottieplayerwasm_clear_segment(this.__wbg_ptr)}current_frame(){return t.dotlottieplayerwasm_current_frame(this.__wbg_ptr)}get_slot_type(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C,i=t.dotlottieplayerwasm_get_slot_type(this.__wbg_ptr,n,r),s;return 0!==i[0]&&(s=w(i[0],i[1]).slice(),t.__wbindgen_free_command_export(i[0],+i[1],1)),s}get_slots_str(){let e,n;try{let r=t.dotlottieplayerwasm_get_slots_str(this.__wbg_ptr);return e=r[0],n=r[1],w(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}get_transform(){return t.dotlottieplayerwasm_get_transform(this.__wbg_ptr)}request_frame(){return t.dotlottieplayerwasm_request_frame(this.__wbg_ptr)}segment_start(){return t.dotlottieplayerwasm_segment_start(this.__wbg_ptr)}set_slots_str(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C;return 0!==t.dotlottieplayerwasm_set_slots_str(this.__wbg_ptr,n,r)}set_text_slot(e,n){let r=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=C,s=S(n,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=C;return 0!==t.dotlottieplayerwasm_set_text_slot(this.__wbg_ptr,r,i,s,a)}set_transform(e){let n,r=(n=(0,t.__wbindgen_malloc_command_export)(4*e.length,4)>>>0,((null===T||0===T.byteLength)&&(T=new Float32Array(t.memory.buffer)),T).set(e,n/4),C=e.length,n),i=C;return 0!==t.dotlottieplayerwasm_set_transform(this.__wbg_ptr,r,i)}sm_get_inputs(){return t.dotlottieplayerwasm_sm_get_inputs(this.__wbg_ptr)}sm_poll_event(){return t.dotlottieplayerwasm_sm_poll_event(this.__wbg_ptr)}sm_post_click(e,n){t.dotlottieplayerwasm_sm_post_click(this.__wbg_ptr,e,n)}animation_size(){return t.dotlottieplayerwasm_animation_size(this.__wbg_ptr)}current_marker(){let e=t.dotlottieplayerwasm_current_marker(this.__wbg_ptr),n;return 0!==e[0]&&(n=w(e[0],e[1]).slice(),t.__wbindgen_free_command_export(e[0],+e[1],1)),n}layout_align_x(){return t.dotlottieplayerwasm_layout_align_x(this.__wbg_ptr)}layout_align_y(){return t.dotlottieplayerwasm_layout_align_y(this.__wbg_ptr)}load_animation(e,n,r){let i=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),s=C;return 0!==t.dotlottieplayerwasm_load_animation(this.__wbg_ptr,i,s,n,r)}loop_animation(){return 0!==t.dotlottieplayerwasm_loop_animation(this.__wbg_ptr)}set_color_slot(e,n,r,i){let s=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=C;return 0!==t.dotlottieplayerwasm_set_color_slot(this.__wbg_ptr,s,a,n,r,i)}set_loop_count(e){t.dotlottieplayerwasm_set_loop_count(this.__wbg_ptr,e)}set_theme_data(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C;return 0!==t.dotlottieplayerwasm_set_theme_data(this.__wbg_ptr,n,r)}sm_reset_input(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C;t.dotlottieplayerwasm_sm_reset_input(this.__wbg_ptr,n,r)}manifest_string(){let e,n;try{let r=t.dotlottieplayerwasm_manifest_string(this.__wbg_ptr);return e=r[0],n=r[1],w(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}set_scalar_slot(e,n){let r=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=C;return 0!==t.dotlottieplayerwasm_set_scalar_slot(this.__wbg_ptr,r,i,n)}set_vector_slot(e,n,r){let i=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),s=C;return 0!==t.dotlottieplayerwasm_set_vector_slot(this.__wbg_ptr,i,s,n,r)}tween_to_marker(e,n){let r=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=C;return 0!==t.dotlottieplayerwasm_tween_to_marker(this.__wbg_ptr,r,i,A(n)?0x100000001:Math.fround(n))}background_color(){return t.dotlottieplayerwasm_background_color(this.__wbg_ptr)>>>0}get_layer_bounds(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C;return t.dotlottieplayerwasm_get_layer_bounds(this.__wbg_ptr,n,r)}get_pixel_buffer(){return t.dotlottieplayerwasm_get_pixel_buffer(this.__wbg_ptr)}segment_duration(){return t.dotlottieplayerwasm_segment_duration(this.__wbg_ptr)}sm_current_state(){let e,n;try{let r=t.dotlottieplayerwasm_sm_current_state(this.__wbg_ptr);return e=r[0],n=r[1],w(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}state_machine_id(){let e=t.dotlottieplayerwasm_state_machine_id(this.__wbg_ptr),n;return 0!==e[0]&&(n=w(e[0],e[1]).slice(),t.__wbindgen_free_command_export(e[0],+e[1],1)),n}get_state_machine(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C,i=t.dotlottieplayerwasm_get_state_machine(this.__wbg_ptr,n,r),s;return 0!==i[0]&&(s=w(i[0],i[1]).slice(),t.__wbindgen_free_command_export(i[0],+i[1],1)),s}set_position_slot(e,n,r){let i=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),s=C;return 0!==t.dotlottieplayerwasm_set_position_slot(this.__wbg_ptr,i,s,n,r)}tween_with_easing(e,n,r,i,s,a){return 0!==t.dotlottieplayerwasm_tween_with_easing(this.__wbg_ptr,e,A(n)?0x100000001:Math.fround(n),r,i,s,a)}current_loop_count(){return t.dotlottieplayerwasm_current_loop_count(this.__wbg_ptr)>>>0}sm_framework_setup(){return t.dotlottieplayerwasm_sm_framework_setup(this.__wbg_ptr)}sm_post_pointer_up(e,n){t.dotlottieplayerwasm_sm_post_pointer_up(this.__wbg_ptr,e,n)}state_machine_load(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C;return 0!==t.dotlottieplayerwasm_state_machine_load(this.__wbg_ptr,n,r)}load_dotlottie_data(e,n,r){let i=P(e,t.__wbindgen_malloc_command_export),s=C;return 0!==t.dotlottieplayerwasm_load_dotlottie_data(this.__wbg_ptr,i,s,n,r)}sm_get_string_input(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C,i=t.dotlottieplayerwasm_sm_get_string_input(this.__wbg_ptr,n,r),s;return 0!==i[0]&&(s=w(i[0],i[1]).slice(),t.__wbindgen_free_command_export(i[0],+i[1],1)),s}sm_set_string_input(e,n){let r=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=C,s=S(n,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),a=C;return 0!==t.dotlottieplayerwasm_sm_set_string_input(this.__wbg_ptr,r,i,s,a)}set_background_color(e){return 0!==t.dotlottieplayerwasm_set_background_color(this.__wbg_ptr,e)}sm_get_boolean_input(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C,i=t.dotlottieplayerwasm_sm_get_boolean_input(this.__wbg_ptr,n,r);return 0xffffff===i?void 0:0!==i}sm_get_numeric_input(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C,i=t.dotlottieplayerwasm_sm_get_numeric_input(this.__wbg_ptr,n,r);return 0x100000001===i?void 0:i}sm_post_pointer_down(e,n){t.dotlottieplayerwasm_sm_post_pointer_down(this.__wbg_ptr,e,n)}sm_post_pointer_exit(e,n){t.dotlottieplayerwasm_sm_post_pointer_exit(this.__wbg_ptr,e,n)}sm_post_pointer_move(e,n){t.dotlottieplayerwasm_sm_post_pointer_move(this.__wbg_ptr,e,n)}sm_set_boolean_input(e,n){let r=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=C;return 0!==t.dotlottieplayerwasm_sm_set_boolean_input(this.__wbg_ptr,r,i,n)}sm_set_numeric_input(e,n){let r=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=C;return 0!==t.dotlottieplayerwasm_sm_set_numeric_input(this.__wbg_ptr,r,i,n)}state_machine_unload(){t.dotlottieplayerwasm_state_machine_unload(this.__wbg_ptr)}sm_post_pointer_enter(e,n){t.dotlottieplayerwasm_sm_post_pointer_enter(this.__wbg_ptr,e,n)}clear_background_color(){return 0!==t.dotlottieplayerwasm_clear_background_color(this.__wbg_ptr)}load_animation_from_id(e,n,r){let i=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),s=C;return 0!==t.dotlottieplayerwasm_load_animation_from_id(this.__wbg_ptr,i,s,n,r)}sm_poll_internal_event(){return t.dotlottieplayerwasm_sm_poll_internal_event(this.__wbg_ptr)}use_frame_interpolation(){return 0!==t.dotlottieplayerwasm_use_frame_interpolation(this.__wbg_ptr)}reset_current_loop_count(){t.dotlottieplayerwasm_reset_current_loop_count(this.__wbg_ptr)}sm_override_current_state(e,n){let r=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=C;return 0!==t.dotlottieplayerwasm_sm_override_current_state(this.__wbg_ptr,r,i,n)}state_machine_load_from_id(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C;return 0!==t.dotlottieplayerwasm_state_machine_load_from_id(this.__wbg_ptr,n,r)}set_use_frame_interpolation(e){t.dotlottieplayerwasm_set_use_frame_interpolation(this.__wbg_ptr,e)}constructor(){return this.__wbg_ptr=t.dotlottieplayerwasm_new()>>>0,R.register(this,this.__wbg_ptr,this),this}mode(){return t.dotlottieplayerwasm_mode(this.__wbg_ptr)}play(){return 0!==t.dotlottieplayerwasm_play(this.__wbg_ptr)}seek(e){return 0!==t.dotlottieplayerwasm_seek(this.__wbg_ptr,e)}stop(){return 0!==t.dotlottieplayerwasm_stop(this.__wbg_ptr)}tick(){return 0!==t.dotlottieplayerwasm_tick(this.__wbg_ptr)}clear(){t.dotlottieplayerwasm_clear(this.__wbg_ptr)}pause(){return 0!==t.dotlottieplayerwasm_pause(this.__wbg_ptr)}speed(){return t.dotlottieplayerwasm_speed(this.__wbg_ptr)}tween(e,n){return 0!==t.dotlottieplayerwasm_tween(this.__wbg_ptr,e,A(n)?0x100000001:Math.fround(n))}width(){return t.dotlottieplayerwasm_width(this.__wbg_ptr)>>>0}height(){return t.dotlottieplayerwasm_height(this.__wbg_ptr)>>>0}render(){return 0!==t.dotlottieplayerwasm_render(this.__wbg_ptr)}resize(e,n){return 0!==t.dotlottieplayerwasm_resize(this.__wbg_ptr,e,n)}markers(){return t.dotlottieplayerwasm_markers(this.__wbg_ptr)}sm_fire(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C;return 0!==t.dotlottieplayerwasm_sm_fire(this.__wbg_ptr,n,r)}sm_stop(){return 0!==t.dotlottieplayerwasm_sm_stop(this.__wbg_ptr)}sm_tick(){return 0!==t.dotlottieplayerwasm_sm_tick(this.__wbg_ptr)}autoplay(){return 0!==t.dotlottieplayerwasm_autoplay(this.__wbg_ptr)}duration(){return t.dotlottieplayerwasm_duration(this.__wbg_ptr)}set_loop(e){t.dotlottieplayerwasm_set_loop(this.__wbg_ptr,e)}set_mode(e){t.dotlottieplayerwasm_set_mode(this.__wbg_ptr,e)}sm_start(e,n){let r=function(e,t){let n=t(4*e.length,4)>>>0;for(let t=0;t<e.length;t++){let r=x(e[t]);M().setUint32(n+4*t,r,!0)}return C=e.length,n}(n,t.__wbindgen_malloc_command_export),i=C;return 0!==t.dotlottieplayerwasm_sm_start(this.__wbg_ptr,e,r,i)}theme_id(){let e=t.dotlottieplayerwasm_theme_id(this.__wbg_ptr),n;return 0!==e[0]&&(n=w(e[0],e[1]).slice(),t.__wbindgen_free_command_export(e[0],+e[1],1)),n}intersect(e,n,r){let i=S(r,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),s=C;return 0!==t.dotlottieplayerwasm_intersect(this.__wbg_ptr,e,n,i,s)}is_loaded(){return 0!==t.dotlottieplayerwasm_is_loaded(this.__wbg_ptr)}is_paused(){return 0!==t.dotlottieplayerwasm_is_paused(this.__wbg_ptr)}load_font(e,n){let r=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=C,s=P(n,t.__wbindgen_malloc_command_export),a=C;return 0!==t.dotlottieplayerwasm_load_font(this.__wbg_ptr,r,i,s,a)}set_frame(e){return 0!==t.dotlottieplayerwasm_set_frame(this.__wbg_ptr,e)}set_speed(e){t.dotlottieplayerwasm_set_speed(this.__wbg_ptr,e)}set_theme(e){let n=S(e,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),r=C;return 0!==t.dotlottieplayerwasm_set_theme(this.__wbg_ptr,n,r)}sm_status(){let e,n;try{let r=t.dotlottieplayerwasm_sm_status(this.__wbg_ptr);return e=r[0],n=r[1],w(r[0],r[1])}finally{t.__wbindgen_free_command_export(e,n,1)}}};async function F(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if("application/wasm"!=e.headers.get("Content-Type"))console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t);else throw t}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}async function D(e){let n;if(void 0!==t)return t;if(void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===e)throw Error("WASM module URL must be provided via DotLottieWasmLoader or setWasmUrl().");let r=((n={}).wbg={},n.wbg.__wbg_buffer_609cc3eee51ed158=function(e){return e.buffer},n.wbg.__wbg_error_7534b8e9a36f1ab4=function(e,n){let r,i;try{r=e,i=n,console.error(w(e,n))}finally{t.__wbindgen_free_command_export(r,i,1)}},n.wbg.__wbg_new_405e22f390576ce2=function(){return{}},n.wbg.__wbg_new_78feb108b6472713=function(){return[]},n.wbg.__wbg_new_8a6f238a6ece86ea=function(){return Error()},n.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a=function(e,t,n){return new Uint8Array(e,t>>>0,n>>>0)},n.wbg.__wbg_newwithlength_5a5efe313cfd59f1=function(e){return new Float32Array(e>>>0)},n.wbg.__wbg_now_807e54c39636c349=function(){return Date.now()},n.wbg.__wbg_push_737cfc8c1432c2c6=function(e,t){return e.push(t)},n.wbg.__wbg_set_bb8cecf6a62b9f46=function(){return function(e,n){try{return e.apply(this,n)}catch(n){let e=x(n);t.__wbindgen_exn_store_command_export(e)}}(function(e,t,n){return Reflect.set(e,t,n)},arguments)},n.wbg.__wbg_setindex_4e73afdcd9bb95cd=function(e,t,n){e[t>>>0]=n},n.wbg.__wbg_stack_0ed75d68575b0f3c=function(e,n){let r=S(n.stack,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),i=C;M().setInt32(e+4,i,!0),M().setInt32(e+0,r,!0)},n.wbg.__wbindgen_init_externref_table=function(){let e=t.__wbindgen_export_3,n=e.grow(4);e.set(0,void 0),e.set(n+0,void 0),e.set(n+1,null),e.set(n+2,!0),e.set(n+3,!1)},n.wbg.__wbindgen_memory=function(){return t.memory},n.wbg.__wbindgen_number_new=function(e){return e},n.wbg.__wbindgen_string_get=function(e,n){let r="string"==typeof n?n:void 0;var i=A(r)?0:S(r,t.__wbindgen_malloc_command_export,t.__wbindgen_realloc_command_export),s=C;M().setInt32(e+4,s,!0),M().setInt32(e+0,i,!0)},n.wbg.__wbindgen_string_new=function(e,t){return w(e,t)},n.wbg.__wbindgen_throw=function(e,t){throw Error(w(e,t))},n);("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));let{instance:i,module:s}=await F(await e,r);return t=i.exports,D.__wbindgen_wasm_module=s,L=null,T=null,b=null,t.__wbindgen_start(),t}var j=class{constructor(){c(this,"_eventListeners",new Map)}addEventListener(e,t){let n=this._eventListeners.get(e);n||(n=new Set,this._eventListeners.set(e,n)),n.add(t)}removeEventListener(e,t){let n=this._eventListeners.get(e);n&&(t?(n.delete(t),0===n.size&&this._eventListeners.delete(e)):this._eventListeners.delete(e))}dispatch(e){this._eventListeners.get(e.type)?.forEach(t=>t(e))}removeAllEventListeners(){this._eventListeners.clear()}},N=class e{static _initializeObserver(){e._observer||(e._observer=new IntersectionObserver(t=>{t.forEach(t=>{let n=e._observedCanvases.get(t.target);n&&(t.isIntersecting?n.unfreeze():n.freeze())})},{threshold:0}))}static observe(t,n){e._initializeObserver(),e._observedCanvases.has(t)||(e._observedCanvases.set(t,n),e._observer?.observe(t))}static unobserve(t){e._observer?.unobserve(t),e._observedCanvases.delete(t),0===e._observedCanvases.size&&(e._observer?.disconnect(),e._observer=null)}};c(N,"_observer",null),c(N,"_observedCanvases",new Map);var B=class e{static _initializeObserver(){e._observer||(e._observer=new ResizeObserver(t=>{t.forEach(t=>{let n=e._observedCanvases.get(t.target);if(!n)return;let[r,i]=n;clearTimeout(i);let s=setTimeout(()=>{r.resize()},100);e._observedCanvases.set(t.target,[r,s])})}))}static observe(t,n){e._initializeObserver(),e._observedCanvases.has(t)||(e._observedCanvases.set(t,[n,0]),e._observer?.observe(t))}static unobserve(t){let n=e._observedCanvases.get(t);if(n){let e=n[1];e&&clearTimeout(e)}e._observer?.unobserve(t),e._observedCanvases.delete(t),!e._observedCanvases.size&&e._observer&&(e._observer.disconnect(),e._observer=null)}};function V(e){if(e.byteLength<4)return!1;let t=new Uint8Array(e.slice(0,m.byteLength));for(let e=0;e<m.length;e+=1)if(m[e]!==t[e])return!1;return!0}function $(e){return f.every(t=>Object.hasOwn(e,t))}function z(e){if("string"!=typeof e)return $(e);try{return $(JSON.parse(e))}catch{return!1}}function U(){return 1+((p?window.devicePixelRatio:1)-1)*.75}function H(e){let t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth;return!(t.bottom<0||t.top>n||t.right<0||t.left>r)}function W(e){let t=e.target;if(t instanceof HTMLCanvasElement){let n=t.getBoundingClientRect();if(0===n.width||0===n.height||0===t.width||0===t.height)return null;let r=t.width/n.width,i=t.height/n.height,s=(e.clientX-n.left)*r,a=(e.clientY-n.top)*i;return!Number.isFinite(s)||!Number.isFinite(a)||Number.isNaN(s)||Number.isNaN(a)?null:{x:s,y:a}}return null}function G(e){let t=e.replace("OpenUrl: ",""),n=t.indexOf(" | Target: "),r,i;-1===n?(r=t,i="_blank"):(r=t.substring(0,n),i=t.substring(n+11)),window.open(r,i)}c(B,"_observer",null),c(B,"_observedCanvases",new Map);let Z=(i=`https://cdn.jsdelivr.net/npm/${y}@${g}/dist/dotlottie-player.wasm`,s=`https://unpkg.com/${y}@${g}/dist/dotlottie-player.wasm`,n=null,r=i,{load:()=>(n||(n=D({module_or_path:r}).then(()=>void 0).catch(async e=>{console.warn(`Primary WASM load failed from ${r}: ${e.message}`),console.warn(`Attempting to load WASM from backup URL: ${s}`);try{await D({module_or_path:s})}catch(t){throw console.error(`Primary WASM URL failed: ${e.message}`),console.error(`Backup WASM URL failed: ${t.message}`),n=null,Error("WASM loading failed from all sources.")}})),n),setWasmUrl(e){e!==r&&(r=e,n=null)}}),q=e=>{switch(e){case"reverse":return I.Reverse;case"bounce":return I.Bounce;case"reverse-bounce":return I.ReverseBounce;default:return I.Forward}};var Y=class{constructor(e){c(this,"_canvas",null),c(this,"_pendingLoad",null),c(this,"_context",null),c(this,"_eventManager",void 0),c(this,"_animationFrameId",null),c(this,"_frameManager",void 0),c(this,"_dotLottieCore",null),c(this,"_stateMachineId",""),c(this,"_stateMachineConfig",null),c(this,"_isStateMachineRunning",!1),c(this,"_renderConfig",{}),c(this,"_isFrozen",!1),c(this,"_backgroundColor",null),c(this,"_boundOnClick",null),c(this,"_boundOnPointerUp",null),c(this,"_boundOnPointerDown",null),c(this,"_boundOnPointerMove",null),c(this,"_boundOnPointerEnter",null),c(this,"_boundOnPointerLeave",null),c(this,"_bufferMismatchCount",0),c(this,"_lastExpectedBufferSize",0),c(this,"_marker",""),this._canvas=e.canvas??null,this._eventManager=new j,this._frameManager=new h,this._renderConfig={...e.renderConfig,devicePixelRatio:e.renderConfig?.devicePixelRatio||U(),freezeOnOffscreen:e.renderConfig?.freezeOnOffscreen??!0},this._initWasm().then(()=>{this._dotLottieCore=this._createCore(),this._dotLottieCore.set_autoplay(e.autoplay??!1),this._dotLottieCore.set_loop(e.loop??!1),this._dotLottieCore.set_loop_count(e.loopCount??0),this._dotLottieCore.set_mode(q(e.mode??"forward")),this._dotLottieCore.set_speed(e.speed??1),this._dotLottieCore.set_use_frame_interpolation(e.useFrameInterpolation??!0),e.segment&&2===e.segment.length&&this._dotLottieCore.set_segment(e.segment[0],e.segment[1]),this._marker=e.marker??"",this._marker&&this._dotLottieCore.set_marker(this._marker),this._dotLottieCore.set_layout(e.layout?.fit??"contain",e.layout?.align?.[0]??.5,e.layout?.align?.[1]??.5),this._stateMachineId=e.stateMachineId??"",this._stateMachineConfig=e.stateMachineConfig??null,this._onCoreCreated(),this._eventManager.dispatch({type:"ready"}),e.data?this._canvas?this._loadFromData(e.data):this._pendingLoad={data:e.data}:e.src&&(this._canvas?this._loadFromSrc(e.src):this._pendingLoad={src:e.src}),e.backgroundColor&&this.setBackgroundColor(e.backgroundColor)}).catch(e=>{console.error("[dotlottie-web] Initialization failed:",e),this._eventManager.dispatch({type:"loadError",error:Error(`Failed to load wasm module: ${e}`)})})}async _initWasm(){return Z.load()}_createCore(){return new O}_onCoreCreated(){}_drainPlayerEvents(){let e;if(this._dotLottieCore)for(;null!=(e=this._dotLottieCore.poll_event());){let t=e;switch(t.type){case"Load":setTimeout(()=>this._eventManager.dispatch({type:"load"}),0);break;case"LoadError":setTimeout(()=>this._eventManager.dispatch({type:"loadError",error:Error("failed to load")}),0);break;case"Play":setTimeout(()=>this._eventManager.dispatch({type:"play"}),0);break;case"Pause":setTimeout(()=>this._eventManager.dispatch({type:"pause"}),0);break;case"Stop":setTimeout(()=>this._eventManager.dispatch({type:"stop"}),0);break;case"Frame":setTimeout(()=>this._eventManager.dispatch({type:"frame",currentFrame:t.frameNo??0}),0);break;case"Render":setTimeout(()=>this._eventManager.dispatch({type:"render",currentFrame:t.frameNo??0}),0);break;case"Loop":setTimeout(()=>this._eventManager.dispatch({type:"loop",loopCount:t.loopCount??0}),0);break;case"Complete":setTimeout(()=>this._eventManager.dispatch({type:"complete"}),0)}}}_drainSmEvents(){let e,t;if(this._dotLottieCore){for(;null!=(e=this._dotLottieCore.sm_poll_event());){let t=e;switch(t.type){case"Start":setTimeout(()=>{this._isStateMachineRunning=!0,this._eventManager.dispatch({type:"stateMachineStart"}),this._startAnimationLoop()},0);break;case"Stop":setTimeout(()=>{this._isStateMachineRunning=!1,this._eventManager.dispatch({type:"stateMachineStop"}),this._dotLottieCore?.is_playing()||this._stopAnimationLoop()},0);break;case"CustomEvent":this._eventManager.dispatch({type:"stateMachineCustomEvent",eventName:t.message??""});break;case"BooleanInputChange":this._eventManager.dispatch({type:"stateMachineBooleanInputValueChange",inputName:t.name??"",newValue:t.newValue,oldValue:t.oldValue});break;case"NumericInputChange":this._eventManager.dispatch({type:"stateMachineNumericInputValueChange",inputName:t.name??"",newValue:t.newValue,oldValue:t.oldValue});break;case"StringInputChange":this._eventManager.dispatch({type:"stateMachineStringInputValueChange",inputName:t.name??"",newValue:t.newValue,oldValue:t.oldValue});break;case"InputFired":this._eventManager.dispatch({type:"stateMachineInputFired",inputName:t.name??""});break;case"Transition":this._eventManager.dispatch({type:"stateMachineTransition",fromState:t.previousState??"",toState:t.newState??""});break;case"StateEntered":this._eventManager.dispatch({type:"stateMachineStateEntered",state:t.state??""});break;case"StateExit":this._eventManager.dispatch({type:"stateMachineStateExit",state:t.state??""});break;case"Error":this._eventManager.dispatch({type:"stateMachineError",error:t.message??""})}}for(;null!=(t=this._dotLottieCore.sm_poll_internal_event());){let e=t;if("Message"===e.type){let t=e.message??"";p&&t.startsWith("OpenUrl: ")?G(t):this._eventManager.dispatch({type:"stateMachineInternalMessage",message:t})}}}}_dispatchError(e){console.error(e),this._eventManager.dispatch({type:"loadError",error:Error(e)})}async _fetchData(e){let t=await fetch(e);if(!t.ok)throw Error(`Failed to fetch animation data from URL: ${e}. ${t.status}: ${t.statusText}`);let n=await t.arrayBuffer();return V(n)?n:new TextDecoder().decode(n)}_loadFromData(e){if(null===this._dotLottieCore)return;if(!this._canvas)return void console.warn("[dotlottie-web] Cannot load animation without canvas. Call setCanvas() first.");let t=this._canvas.width,n=this._canvas.height,r=!1;if("string"==typeof e){if(!z(e))return void this._dispatchError("Invalid Lottie JSON string: The provided string does not conform to the Lottie JSON format.");r=this._dotLottieCore.load_animation(e,t,n)}else if(e instanceof ArrayBuffer){if(!V(e))return void this._dispatchError("Invalid dotLottie ArrayBuffer: The provided ArrayBuffer does not conform to the dotLottie format.");r=this._dotLottieCore.load_dotlottie_data(new Uint8Array(e),t,n)}else{if("object"!=typeof e)return void this._dispatchError(`Unsupported data type for animation data. Expected:
10
10
  - string (Lottie JSON),
11
11
  - ArrayBuffer (dotLottie),
12
12
  - object (Lottie JSON).