PageSourceSearch

https://luzclimbing.com/_next/static/immutable/chunks/1z94utphdwolo.js

js luzclimbing.com collected 2026-10-09 22:58:21 UTC 168,217 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31586,e=>{"use strict";var t=e.i(15020),i=e.i(76434),s=e.i(73116),n=e.i(73300),r=e.i(85264);e.s(["Community",0,function(){let e=(0,n.useTranslations)("community");return(0,t.jsx)("section",{id:"community",className:"py-24 md:py-32",children:(0,t.jsx)("div",{className:"container-width",children:(0,t.jsxs)(r.AnimatedSection,{animation:"fade-up",className:"max-w-3xl",children:[(0,t.jsx)("p",{className:"text-xs font-mono uppercase tracking-[0.2em] text-ink-soft dark:text-ink-deep-soft mb-6",children:e("badge")}),(0,t.jsx)("h2",{className:"font-display text-4xl md:text-5xl lg:text-6xl text-ink dark:text-ink-deep leading-[1.1] tracking-tight mb-6",children:e("title")}),(0,t.jsx)("p",{className:"text-lg md:text-xl text-ink-soft dark:text-ink-deep-soft leading-relaxed mb-8",children:e("description")}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2 mb-10",children:["chip_beta","chip_feedback","chip_vibe","chip_pets"].map(i=>(0,t.jsx)("span",{className:"inline-flex items-center px-3 py-1 rounded-full border border-rule dark:border-rule-deep text-sm text-ink-soft dark:text-ink-deep-soft",children:e(i)},i))}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3",children:[(0,t.jsxs)(i.default,{href:e("discord_url"),target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 px-6 py-3.5 rounded-full bg-blaze hover:bg-blaze-deep text-paper-raised text-base font-medium transition-colors",children:[(0,t.jsx)(s.default,{src:"/discord-icon.svg",alt:"",width:18,height:18,className:"w-[18px] h-[18px] brightness-0 invert"}),e("cta_discord")]}),(0,t.jsxs)(i.default,{href:e("telegram_url"),target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 px-6 py-3.5 rounded-full border border-rule dark:border-rule-deep text-ink dark:text-ink-deep hover:border-ink dark:hover:border-ink-deep text-base transition-colors",children:[(0,t.jsx)("svg",{className:"w-[18px] h-[18px]",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("path",{d:"M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"})}),e("cta_telegram")]})]})]})})})}])},93212,e=>{"use strict";var t=e.i(15020),i=e.i(73300),s=e.i(85264);let n=["point1","point2","point3"];function r(){let e=(0,i.useTranslations)("whyClimbingPartner");return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("p",{className:"text-base text-ink-soft dark:text-ink-deep-soft leading-relaxed",children:e("description")}),(0,t.jsx)("div",{className:"divide-y divide-rule dark:divide-rule-deep border-y border-rule dark:border-rule-deep",children:n.map(i=>(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-6 gap-y-1 py-3",children:[(0,t.jsxs)("p",{className:"text-sm text-ink-soft dark:text-ink-deep-soft",children:[(0,t.jsxs)("span",{className:"font-medium text-ink-soft/70 dark:text-ink-deep-soft/70",children:[e("genericLabel"),":"]})," ",e(`${i}.generic`)]}),(0,t.jsxs)("p",{className:"flex items-start gap-2 text-sm text-ink dark:text-ink-deep",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"mt-0.5 text-blaze",children:"✓"}),(0,t.jsx)("span",{children:e(`${i}.product`)})]})]},i))}),(0,t.jsx)("p",{className:"text-sm md:text-base font-medium text-ink dark:text-ink-deep",children:e("closing")})]})}let a=["q1","q2","q3","q4","q7","q6","q5"];e.s(["FAQ",0,function(){let e=(0,i.useTranslations)("faq"),n=(0,i.useTranslations)("community"),o=(0,i.useTranslations)("whyClimbingPartner"),l="text-blaze hover:text-blaze-deep transition-colors underline underline-offset-2 decoration-blaze/40";return(0,t.jsx)("section",{id:"faq",className:"py-24 md:py-32 bg-paper-raised dark:bg-paper-deep-raised",children:(0,t.jsxs)("div",{className:"container-width",children:[(0,t.jsxs)(s.AnimatedSection,{animation:"fade-up",className:"max-w-3xl mb-8 md:mb-12",children:[(0,t.jsx)("p",{className:"text-xs font-mono uppercase tracking-[0.2em] text-ink-soft dark:text-ink-deep-soft mb-4",children:e("badge")}),(0,t.jsx)("h2",{className:"font-display text-4xl md:text-5xl lg:text-6xl text-ink dark:text-ink-deep leading-[1.1] tracking-tight mb-4",children:e("title")}),(0,t.jsx)("p",{className:"text-lg md:text-xl text-ink-soft dark:text-ink-deep-soft leading-relaxed",children:e("description")})]}),(0,t.jsx)(s.AnimatedSection,{animation:"fade-up",children:(0,t.jsxs)("div",{className:"max-w-3xl divide-y divide-rule dark:divide-rule-deep border-t border-rule dark:border-rule-deep",children:[(0,t.jsxs)("div",{className:"py-8",children:[(0,t.jsx)("h3",{className:"font-display text-xl md:text-2xl text-ink dark:text-ink-deep leading-tight mb-4",children:o("badge")}),(0,t.jsx)(r,{})]}),a.map(i=>(0,t.jsxs)("div",{className:"py-8",children:[(0,t.jsx)("h3",{className:"font-display text-xl md:text-2xl text-ink dark:text-ink-deep leading-tight mb-3",children:e(`${i}.question`)}),(0,t.jsx)("p",{className:"text-base text-ink-soft dark:text-ink-deep-soft leading-relaxed",children:"q5"===i?e.rich(`${i}.answer`,{email:e=>(0,t.jsx)("a",{href:"mailto:[email protected]",className:l,children:e}),telegram:e=>(0,t.jsx)("a",{href:n("telegram_url"),target:"_blank",rel:"noopener noreferrer",className:l,children:e}),discord:e=>(0,t.jsx)("a",{href:n("discord_url"),target:"_blank",rel:"noopener noreferrer",className:l,children:e})}):e(`${i}.answer`)})]},i))]})})]})})}],93212)},89267,e=>{"use strict";var t=e.i(15020),i=e.i(73300),s=e.i(85264);let n=[{id:"plan",labelKey:"plan_label",items:[{titleKey:"plan_training_title",descKey:"plan_training_desc"},{titleKey:"plan_conditions_title",descKey:"plan_conditions_desc"},{titleKey:"plan_competitions_title",descKey:"plan_competitions_desc"}]},{id:"climb",labelKey:"climb_label",items:[{titleKey:"climb_logbook_title",descKey:"climb_logbook_desc"},{titleKey:"climb_projects_title",descKey:"climb_projects_desc"},{titleKey:"climb_hangboard_title",descKey:"climb_hangboard_desc"},{titleKey:"climb_media_title",descKey:"climb_media_desc"}]},{id:"reflect",labelKey:"reflect_label",items:[{titleKey:"reflect_chat_title",descKey:"reflect_chat_desc"},{titleKey:"reflect_reports_title",descKey:"reflect_reports_desc"},{titleKey:"reflect_wellbeing_title",descKey:"reflect_wellbeing_desc"}]}];e.s(["Features",0,function(){let e=(0,i.useTranslations)("features");return(0,t.jsx)("section",{id:"features",className:"py-24 md:py-32",children:(0,t.jsxs)("div",{className:"container-width",children:[(0,t.jsxs)(s.AnimatedSection,{animation:"fade-up",className:"max-w-3xl mb-16 md:mb-24",children:[(0,t.jsx)("p",{className:"text-xs font-mono uppercase tracking-[0.2em] text-ink-soft dark:text-ink-deep-soft mb-6",children:e("eyebrow")}),(0,t.jsx)("h2",{className:"font-display text-4xl md:text-5xl lg:text-6xl text-ink dark:text-ink-deep leading-[1.1] tracking-tight mb-6",children:e("title")}),(0,t.jsx)("p",{className:"text-lg md:text-xl text-ink-soft dark:text-ink-deep-soft leading-relaxed",children:e("subtitle")})]}),(0,t.jsx)(s.AnimatedSection,{animation:"fade-up",children:(0,t.jsx)("div",{className:"grid md:grid-cols-3 gap-14 md:gap-10 lg:gap-16",children:n.map(i=>(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs font-mono uppercase tracking-[0.2em] text-blaze mb-6",children:e(i.labelKey)}),(0,t.jsx)("div",{className:"space-y-8",children:i.items.map(i=>(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"font-display text-2xl text-ink dark:text-ink-deep mb-2 leading-tight",children:e(i.titleKey)}),(0,t.jsx)("p",{className:"text-base text-ink-soft dark:text-ink-deep-soft leading-relaxed",children:e(i.descKey)})]},i.titleKey))})]},i.id))})})]})})}])},97581,e=>{"use strict";var t=e.i(15020),i=e.i(76434),s=e.i(73116),n=e.i(91457),r=e.i(73300),a=e.i(1956),o=e.i(85264);let l=({isOpen:e,onClose:n})=>{let o=(0,a.useRef)(null),l=(0,r.useTranslations)("founderModal");return((0,a.useEffect)(()=>{let t=e=>{"Escape"===e.key&&n()},i=e=>{o.current&&!o.current.contains(e.target)&&n()};return e&&(document.addEventListener("keydown",t),document.addEventListener("mousedown",i),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",t),document.removeEventListener("mousedown",i),document.body.style.overflow="unset"}},[e,n]),e)?(0,t.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-paper-deep/80 backdrop-blur-sm animate-fade-in",children:(0,t.jsxs)("div",{ref:o,className:"relative w-full max-w-4xl max-h-[90vh] bg-paper dark:bg-paper-deep border border-rule dark:border-rule-deep rounded-md overflow-hidden animate-scale-in",children:[(0,t.jsx)("button",{onClick:n,className:"absolute top-4 right-4 z-10 p-2 text-ink-soft dark:text-ink-deep-soft hover:text-blaze transition-colors cursor-pointer","aria-label":"Close modal",children:(0,t.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M6 18L18 6M6 6l12 12"})})}),(0,t.jsxs)("div",{className:"flex flex-col md:flex-row max-h-[90vh]",children:[(0,t.jsx)("div",{className:"relative w-full md:w-1/2 aspect-[4/3] md:aspect-square overflow-hidden shrink-0 bg-paper-raised dark:bg-paper-deep-raised",children:(0,t.jsx)(s.default,{src:"/founder/roman-founder.jpg",alt:l("photo_alt"),fill:!0,className:"object-cover animate-gentle-zoom-out",sizes:"(max-width: 768px) 100vw, 50vw"})}),(0,t.jsxs)("div",{className:"flex-1 p-6 md:p-10 overflow-y-auto bg-paper-raised dark:bg-paper-deep-raised",children:[(0,t.jsx)("p",{className:"text-xs font-mono uppercase tracking-[0.2em] text-ink-soft dark:text-ink-deep-soft mb-6",children:l("badge")}),(0,t.jsx)("h3",{className:"font-display text-3xl md:text-4xl text-ink dark:text-ink-deep leading-tight mb-6",children:l("title")}),(0,t.jsxs)("div",{className:"space-y-4 text-ink-soft dark:text-ink-deep-soft text-base leading-relaxed",children:[(0,t.jsx)("p",{children:l("message_1")}),(0,t.jsx)("p",{children:l("message_2")}),(0,t.jsx)("p",{className:"text-ink dark:text-ink-deep",children:l("message_3")})]}),(0,t.jsx)("div",{className:"mt-8 pt-6 border-t border-rule dark:border-rule-deep",children:(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium text-ink dark:text-ink-deep",children:l("founder_name")}
1),(0,t.jsx)("p",{className:"text-sm text-ink-soft dark:text-ink-deep-soft",children:l("founder_role")})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3 ml-auto",children:[(0,t.jsx)(i.default,{href:"https://www.instagram.com/rbatsenko/",target:"_blank",rel:"noopener noreferrer",className:"text-ink-soft dark:text-ink-deep-soft hover:text-blaze transition-colors","aria-label":"Instagram",children:(0,t.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"})})}),(0,t.jsx)(i.default,{href:"https://www.youtube.com/@rbatsenko",target:"_blank",rel:"noopener noreferrer",className:"text-ink-soft dark:text-ink-deep-soft hover:text-blaze transition-colors","aria-label":"YouTube",children:(0,t.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})})})]})]})}),(0,t.jsxs)("div",{className:"mt-6 pt-6 border-t border-rule dark:border-rule-deep",children:[(0,t.jsx)("p",{className:"text-sm text-ink-soft dark:text-ink-deep-soft mb-4",children:l("discord_message")}),(0,t.jsxs)(i.default,{href:"https://discord.gg/dzwU3VjSzH",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-sm text-ink dark:text-ink-deep border border-rule dark:border-rule-deep hover:border-ink dark:hover:border-ink-deep px-4 py-2 rounded-md transition-colors",children:[l("discord_cta"),(0,t.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]})]})]})]})]})}):null};var d=e.i(91761),h=e.i(79410);e.s(["Hero",0,()=>{let e=(0,r.useTranslations)("hero"),c=(0,n.useLocale)(),[u,p]=(0,a.useState)(!1);return(0,t.jsxs)("section",{className:"relative",children:[(0,t.jsxs)("div",{className:`relative ${"uk"===c?"pt-12":"pt-32 md:pt-44"} pb-32 md:pb-48 overflow-hidden`,children:[(0,t.jsxs)("div",{className:"absolute inset-0 z-0",children:[(0,t.jsx)(s.default,{src:"/images/hero-flatanger.jpg",alt:e("hero_screenshot_alt"),fill:!0,sizes:"100vw",priority:!0,className:"object-cover object-[85%_center] md:translate-x-[15%]"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-paper from-20% via-paper/85 via-60% to-paper/0 dark:from-paper-deep dark:via-paper-deep/85 dark:to-paper-deep/0"}),(0,t.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-40 bg-gradient-to-t from-paper to-paper/0 dark:from-paper-deep dark:to-paper-deep/0"})]}),(0,t.jsxs)("div",{className:"container-width relative z-10",children:[(0,t.jsx)("div",{className:"max-w-2xl",children:(0,t.jsxs)(o.AnimatedSection,{animation:"fade-up",children:[(0,t.jsx)("button",{onClick:()=>p(!0),className:"inline-flex items-center text-xs font-mono uppercase tracking-[0.2em] text-ink-soft dark:text-ink-deep-soft hover:text-blaze dark:hover:text-blaze transition-colors mb-8 cursor-pointer",children:e("eyebrow")}),(0,t.jsx)("h1",{className:`font-display ${"pl"===c?"text-3xl sm:text-4xl md:text-5xl lg:text-6xl":"text-4xl sm:text-5xl md:text-6xl lg:text-7xl"} text-ink dark:text-ink-deep leading-[1.05] tracking-tight mb-8`,children:e.rich("title",{em:e=>(0,t.jsx)("em",{className:"italic",children:e})})}),(0,t.jsx)("p",{className:"text-lg md:text-xl text-ink-soft dark:text-ink-deep-soft leading-relaxed mb-10 max-w-xl",children:e("subtitle")}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center gap-4 sm:gap-6 mb-8",children:[(0,t.jsxs)(i.default,{href:"https://app.luzclimbing.com/signup?redirect=/settings/subscription",className:"inline-flex items-center justify-center bg-blaze hover:bg-blaze-deep text-paper-raised px-7 py-3.5 rounded-full text-base font-medium transition-colors",children:[e("cta_primary"),(0,t.jsx)("span",{"aria-hidden":!0,
1className:"ml-2",children:"→"})]}),(0,t.jsx)("button",{onClick:()=>p(!0),className:"inline-flex items-center justify-center px-6 py-3.5 rounded-full border border-rule dark:border-rule-deep text-ink dark:text-ink-deep hover:border-ink dark:hover:border-ink-deep transition-colors text-base cursor-pointer",children:e("cta_secondary")})]}),(0,t.jsx)("p",{className:"text-sm text-ink-soft dark:text-ink-deep-soft max-w-xl",children:e("payment_note")})]})}),(0,t.jsxs)("div",{className:"flex gap-3 md:hidden mt-12",children:[(0,t.jsx)(d.AppStoreBadge,{width:135,height:45}),(0,t.jsx)(h.GooglePlayBadge,{width:152,height:45})]})]}),(0,t.jsx)("div",{className:"absolute bottom-6 right-6 md:right-10 z-10",children:(0,t.jsx)("p",{className:"text-xs font-mono uppercase tracking-[0.2em] text-ink-soft dark:text-ink-deep-soft",children:"Flatanger · Photo: Mateusz Haładaj"})})]}),(0,t.jsx)("div",{className:"container-width",children:(0,t.jsx)("hr",{className:"border-t border-rule dark:border-rule-deep"})}),(0,t.jsx)(l,{isOpen:u,onClose:()=>p(!1)})]})}],97581)},32714,e=>{"use strict";let t,i,s;var n=e.i(15020),r=e.i(1956),a=e.i(73300),o=e.i(85264);let l=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],d=new Set([...l,"pathRotation"]),h=(e,t,i)=>i>t?t:i<e?e:i,c={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},u={...c,transform:e=>h(0,1,e)},p={...c,default:1},m=e=>Math.round(1e5*e)/1e5,f=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,x=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,g=(e,t)=>i=>!!("string"==typeof i&&x.test(i)&&i.startsWith(e)||t&&null!=i&&Object.prototype.hasOwnProperty.call(i,t)),y=(e,t,i)=>s=>{if("string"!=typeof s)return s;let[n,r,a,o]=s.match(f);return{[e]:parseFloat(n),[t]:parseFloat(r),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},v={...c,transform:e=>Math.round(h(0,255,e))},b={test:g("rgb","red"),parse:y("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:s=1})=>"rgba("+v.transform(e)+", "+v.transform(t)+", "+v.transform(i)+", "+m(u.transform(s))+")"},k={test:g("#"),parse:function(e){let t="",i="",s="",n="";return e.length>5?(t=e.substring(1,3),i=e.substring(3,5),s=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),i=e.substring(2,3),s=e.substring(3,4),n=e.substring(4,5),t+=t,i+=i,s+=s,n+=n),{red:parseInt(t,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:n?parseInt(n,16)/255:1}},transform:b.transform},w=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),j=w("deg"),S=w("%"),T=w("px"),P=w("vh"),N=w("vw"),A={...S,parse:e=>S.parse(e)/100,transform:e=>S.transform(100*e)},E={test:g("hsl","hue"),parse:y("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:s=1})=>"hsla("+Math.round(e)+", "+S.transform(m(t))+", "+S.transform(m(i))+", "+m(u.transform(s))+")"},C={test:e=>b.test(e)||k.test(e)||E.test(e),parse:e=>b.test(e)?b.parse(e):E.test(e)?E.parse(e):k.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?b.transform(e):E.transform(e),getAnimatableNone:e=>{let t=C.parse(e);return t.alpha=0,C.transform(t)}},M=new RegExp(f.source),_=RegExp(/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu.source,"i"),V="number",D="color",R=/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 L(e){let t=e.toString(),i=[],s={color:[],number:[],var:[]},n=[],r=0,a=t.replace(R,e=>(C.test(e)?(s.color.push(r),n.push(D),i.push(C.parse(e))):e.startsWith("var(")?(s.var.push(r),n.push("var"),i.push(e)):(s.number.push(r),n.push(V),i.push(parseFloat(e))),++r,"${}")).split("${}");return{values:i,split:a,indexes:s,types:n}}function B({split:e,types:t}){let i=e.length;return s=>{let n="";for(let r=0;r<i;r++)if(n+=e[r],void 0!==s[r]){let e=t[r];e===V?n+=m(s[r]):e===D?n+=C.transform(s[r]):n+=s[r]}return n}}let F={test:function(e){return isNaN(e)&&"string"==typeof e&&(M.test(e)||_.test(e))},parse:function(e){return L(e).values},createTransformer:function(e){return B(L(e))},getAnimatableNone:function(e){let t=L(e);return B(t)(t.values.map((e,i)=>((e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof e?0:C.test(e)?C.getAnimatableNone(e):e)(e,t.split[i])))}},z=new Set(["brightness","contrast","saturate","opacity"]);function I(e){let[t,i]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[s]=i.match(f)||[];if(!s)return e;let n=i.replace(s,""),r=+!!z.has(t);return s!==i&&(r*=100),t+"("+r+n+")"}let $=/\b([a-z-]*)\(.*?\)/gu,O={...F,getAnimatableNone:e=>{let t=e.match($);return t?t.map(I).join(" "):e}},U={...F,getAnimatableNone:e=>{let t=F.parse(e);return F.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},K={...c,transform:Math.round},W={borderWidth:T,borderTopWidth:T,borderRightWidth:T,borderBottomWidth:T,borderLeftWidth:T,borderRadius:T,borderTopLeftRadius:T,borderTopRightRadius:T,borderBottomRightRadius:T,borderBottomLeftRadius:T,width:T,maxWidth:T,height:T,maxHeight:T,top:T,right:T,bottom:T,left:T,inset:T,insetBlock:T,insetBlockStart:T,insetBlockEnd:T,insetInline:T,insetInlineStart:T,insetInlineEnd:T,padding:T,paddingTop:T,paddingRight:T,paddingBottom:T,paddingLeft:T,paddingBlock:T,paddingBlockStart:T,paddingBlockEnd:T,paddingInline:T,paddingInlineStart:T,paddingInlineEnd:T,margin:T,marginTop:T,marginRight:T,marginBottom:T,marginLeft:T,marginBlock:T,marginBlockStart:T,marginBlockEnd:T,marginInline:T,marginInlineStart:T,marginInlineEnd:T,fontSize:T,backgroundPositionX:T,backgroundPositionY:T,rotate:j,pathRotation:j,rotateX:j,rotateY:j,rotateZ:j,scale:p,scaleX:p,scaleY:p,scaleZ:p,skew:j,skewX:j,skewY:j,distance:T,translateX:T,translateY:T,translateZ:T,x:T,y:T,z:T,perspective:T,transformPerspective:T,opacity:u,originX:A,originY:A,originZ:T,zIndex:K,fillOpacity:u,strokeOpacity:u,numOctaves:K},H={...W,color:C,backgroundColor:C,outlineColor:C,fill:C,stroke:C,borderColor:C,borderTopColor:C,borderRightColor:C,borderBottomColor:C,borderLeftColor:C,filter:O,WebkitFilter:O,mask:U,WebkitMask:U},Y=e=>H[e],X=()=>({translate:0,scale:1,origin:0,originPoint:0}),q=()=>({x:X(),y:X()}),G=()=>({min:0,max:0}),Z=()=>({x:G(),y:G()}),J=e=>!!(e&&e.getVelocity),Q=new Set(["width","height","top","left","right","bottom",...l]),ee=[c,T,S,j,N,P,{test:e=>"auto"===e,parse:e=>e}],et=e=>ee.find(t=>t.test(e)),ei=()=>{},es=()=>{},en=e=>t=>"string"==typeof t&&t.startsWith(e),er=en("--"),ea=en("var(--"),eo=e=>!!ea(e)&&el.test(e.split("/*")[0].trim()),el=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ed(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let eh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ec=new Set([O,U]);function eu(e,t){let i=Y(e);return ec.has(i)||(i=F),i.getAnimatableNone?i.getAnimatableNone(t):void 0}let ep=e=>180*e/Math.PI,em=e=>ex(ep(Math.atan2(e[1],e[0]))),ef={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:em,rotateZ:em,skewX:e=>ep(Math.atan(e[1])),skewY:e=>ep(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ex=e=>((e%=360)<0&&(e+=360),e),eg=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ey=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ev={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:eg,scaleY:ey,scale:e=>(eg(e)+ey(e))/2,rotateX:e=>ex(ep(Math.atan2(e[6],e[5]))),rotateY:e=>ex(ep(Math.atan2(-e[2],e[0]))),rotateZ:em,rotate:em,skewX:e=>ep(Math.atan(e[4])),skewY:e=>ep(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function eb(e){return+!!e.includes("scale")}function ek(e,t){let i,s;if(!e||"none"===e)return eb(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)i=ev,s=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=ef,s=t}if(!s)return eb(t);let r=i[t],a=s[1].split(",").map(ew);return"function"==typeof r?r(a):a[r]}function ew(e){return parseFloat(e.trim())}let ej=e=>e===c||e===T,eS=new Set(["x","y","z"]),eT=l.filter(e=>!eS.has(e)),eP=new Set(["bottom","right"]);function eN(e,t,i,s,n,r){let a=parseFloat(e);
1if(!isNaN(a))return a;let{min:o,max:l}=t()[i],d=l-o;return"border-box"===r?d:d-parseFloat(s)-parseFloat(n)}let eA={width:({width:e,paddingLeft:t="0",paddingRight:i="0",boxSizing:s},n)=>eN(e,n,"x",t,i,s),height:({height:e,paddingTop:t="0",paddingBottom:i="0",boxSizing:s},n)=>eN(e,n,"y",t,i,s),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:i}=t();return parseFloat(e)+(i.max-i.min)},right:({left:e},t)=>{let{x:i}=t();return parseFloat(e)+(i.max-i.min)},x:({transform:e})=>ek(e,"x"),y:({transform:e})=>ek(e,"y")};eA.translateX=eA.x,eA.translateY=eA.y;let eE=e=>e,eC={},eM=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function e_(e,t,i={delta:0,timestamp:0,isProcessing:!1}){let s=!1,n=!0,r=()=>s=!0,a=eM.reduce((e,t)=>(e[t]=function(e){let t=new Set,i=new Set,s=!1,n=!1,r=new Set,a={delta:0,timestamp:0,isProcessing:!1};function o(t){r.has(t)&&(i.add(t),e()),t(a)}let l={schedule:(e,n=!1,a=!1)=>{let o=a&&s?t:i;return n&&r.add(e),o.add(e),e},cancel:e=>{i.delete(e),r.delete(e)},process:e=>{if(a=e,s){n=!0;return}s=!0;let r=t;t=i,i=r,t.forEach(o),t.clear(),s=!1,n&&(n=!1,l.process(e))}};return l}(r),e),{}),{setup:o,read:l,resolveKeyframes:d,preUpdate:h,update:c,preRender:u,render:p,postRender:m}=a,f=()=>{let r=eC.useManualTiming,a=r?i.timestamp:performance.now();s=!1,r||(i.delta=n?1e3/60:Math.max(Math.min(a-i.timestamp,40),1)),i.timestamp=a,i.isProcessing=!0,o.process(i),l.process(i),d.process(i),h.process(i),c.process(i),u.process(i),p.process(i),m.process(i),i.isProcessing=!1,s&&t&&(n=!1,e(f))};return{schedule:eM.reduce((t,r)=>{let o=a[r];return t[r]=(t,r=!1,a=!1)=>(!s&&(s=!0,n=!0,i.isProcessing||e(f)),o.schedule(t,r,a)),t},{}),cancel:e=>{for(let t=0;t<eM.length;t++)a[eM[t]].cancel(e)},state:i,steps:a}}let eV={delta:0,timestamp:0,isProcessing:!1},{schedule:eD,cancel:eR,steps:eL}=e_("u">typeof requestAnimationFrame?requestAnimationFrame:eE,!0,eV),eB=new Set,eF=!1,ez=!1,eI=!1;function e$(){if(ez){let e=[],t=new Set,i=new Set;eB.forEach(s=>{s.needsMeasurement&&(e.push(s),t.add(s.element),eP.has(s.name)&&i.add(s.element))});let s=new Map;i.forEach(e=>{let t,i=(t=[],eT.forEach(i=>{let s=e.getValue(i);if(void 0!==s){let e=s.get(),n=+!!i.startsWith("scale");if(e===n)return;t.push([i,e]),s.set(n)}}),t);i.length&&(s.set(e,i),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=s.get(e);t&&t.forEach(([t,i])=>{e.getValue(t)?.set(i)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}ez=!1,eF=!1,eB.forEach(e=>e.complete(eI)),eB.clear()}function eO(){eB.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ez=!0)})}class eU{constructor(e,t,i,s,n,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=i,this.motionValue=s,this.element=n,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(eB.add(this),eF||(eF=!0,eD.read(eO),eD.resolveKeyframes(e$))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:i,motionValue:s}=this;if(null===e[0]){let n=s?.get(),r=e[e.length-1];if(void 0!==n)e[0]=n;else if(i&&t){let s=function(e,t,i){if("string"==typeof e){if(/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)||/^0[^.\s]+$/u.test(e))return parseFloat(e);if(!F.test(e)&&F.test(i))return eu(t,i)}return e??void 0}(i.readValue(t,r),t,r);void 0!==s&&(e[0]=s)}void 0===e[0]&&(e[0]=r),s&&void 0===n&&s.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),eB.delete(this)}cancel(){"scheduled"===this.state&&(eB.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let eK=new Set(["auto","none","0"]);class eW extends eU{constructor(e,t,i,s,n){super(e,t,i,s,n,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:i}=this;if(!t||!t.current)return;super.readKeyframes();for(let i=0;i<e.length;i++){let s=e[i];if("string"==typeof s&&eo(s=s.trim())){let n=function e(t,i,s=1){es(`Ma
1x CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[n,r]=function(e){let t=eh.exec(e);if(!t)return[,];let[,i,s,n]=t;return[`--${i??s}`,n]}(t);if(!n)return;let a=window.getComputedStyle(i).getPropertyValue(n);if(a){let e=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return eo(r)?e(r,i,s+1):r}(s,t.current);void 0!==n&&(e[i]=n),i===e.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!Q.has(i)||2!==e.length)return;let[s,n]=e;if("number"==typeof s&&"number"==typeof n)return;let r=et(s),a=et(n);if(ed(s)!==ed(n)&&eA[i]){this.needsMeasurement=!0;return}if(r!==a)if(ej(r)&&ej(a))for(let t=0;t<e.length;t++){let i=e[t];"string"==typeof i&&(e[t]=parseFloat(i))}else eA[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,i=[];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]))&&i.push(t);i.length&&function(e,t,i){let s,n=0;for(;n<e.length&&!s;){let t=e[n];"string"==typeof t&&!eK.has(t)&&function(e){let t=e.toString();return M.test(t)||_.test(t)}(t)&&(s=e[n]),n++}if(s&&i)for(let n of t)e[n]!==s&&(e[n]=eu(i,s))}(e,i,t)}measure(){let{element:e,name:t}=this;return eA[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:i}=this;if(!e||!e.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let s=t[t.length-1];void 0!==s&&this.motionValue?.jump(s,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e||!e.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let i=t.length-1,s=t[i];t[i]=this.measure(),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let eH=e=>1e3*e;function eY(e,t){-1===e.indexOf(t)&&e.push(t)}function eX(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}class eq{constructor(){this.subscriptions=[]}add(e){return eY(this.subscriptions,e),()=>this.remove(e)}remove(e){eX(this.subscriptions,e)}notify(e,t,i){let s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](e,t,i);else for(let n=0;n<s;n++){let s=this.subscriptions[n];s&&s(e,t,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function eG(e,t,i){t.startsWith("--")?e.style.setProperty(t,i):e.style[t]=i}function eZ(e){let t;return()=>(void 0===t&&(t=e()),t)}let eJ={};function eQ(e,t){let i=eZ(e);return()=>eJ[t]??i()}let e0=eQ(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),e1=e=>null!==e;function e2(e,{repeat:t,repeatType:i="loop"},s,n=1){let r=e.filter(e1),a=n<0||t&&"loop"!==i&&t%2==1?0:r.length-1;return a&&void 0!==s?s:r[a]}class e4{constructor(){this.isResolved=!1}get finished(){return this._finished||(this._finished=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e})),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}}function e3(){t=void 0}let e5={now:()=>(void 0===t&&e5.set(eV.isProcessing||eC.useManualTiming?eV.timestamp:performance.now()),t),set:e=>{t=e,queueMicrotask(e3)}};function e6(e,t){return{kind:e,animation:t,timestamp:e5.now(),frameTimestamp:eV.timestamp,frameIsProcessing:eV.isProcessing}}function e9(e,t,i){let s=globalThis.__MOTION_INSPECT__;if(s)try{s({...e6("animation-start",e),options:i?{...t,...i}:t})}catch{}}let e8=e=>Array.isArray(e)&&"number"==typeof e[0],e7=eQ(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),te=(e,t,i=10)=>{let s="",n=Math.max(Math.round(t/i),2);for(let t=0;t<n;t++)s+=Math.round(1e4*e(t/(n-1)))/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},tt=([e,t,i,s])=>`cubic-bezier(${e}, ${t}, ${i}, ${s})`,ti={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tt([0,.65,.55,1]),circOut:tt([.55,0,1,.45]),backIn:tt([.31,.01,.66,-.59]),backOut:tt([.33,1.53,.69,.99])};function ts(e){return"function"==typeof e&&"applyToOptions"in e}class tn extends e4{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:i,keyframes:s,pseudoElement:n,allowFlatten:r=!1,finalKeyframe:a,onComplete:o}=e;this.isPseudoElement=!!n,this.allowFlatten=r,this.options=e,es(e.type);const l=function({type:e,...t}){return ts(e)&&e7()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,i,{delay:s=0,duration:n=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:l}={},d){let h={[t]:i};l&&(h.offset=l);let c=function e(t,i){if(t)return"function"==typeof t?e7()?te(t,i):"ease-out":e8(t)?tt(t):Array.isArray(t)?t.map(t=>e(t,i)||ti.easeOut):ti[t]}(o,n);Array.isArray(c)&&(h.easing=c);let u={delay:s,duration:n,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};return d&&(u.pseudoElement=d),e.animate(h,u)}(t,i,s,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let e=e2(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(e),eG(t,i,e),this.animation.cancel()}o?.(),this.notifyFinished()},e9(this,e,l)}play(){this.isStopped||(this.manualStartTime=null,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(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&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){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=eH(e),t&&this.animation.pause()}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 this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,onAttach:t,observe:i,...s}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&e0())?(this.animation.timeline=e,Object.assign(this.animation,s),t?.(this.animation),eE):i(this)}}let tr=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:ta}=e_(queueMicrotask,!1),to=(e,t)=>t?1e3/t*e:0,tl;class td{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=e5.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.notifyChange(),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=e5.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){var i;return"change"===e?this.onChangeSubscribe(t):((i=this.events)[e]||(i[e]=new eq)).add(t)}onChangeSubscribe(e){let{events:t}=this;return t.change||this.changeSubscriber?(t.change||(t.change=new eq,t.change.add(this.changeSubscriber),this.changeSubscriber=void 0),t.change.add(e)):this.changeSubscriber=e,()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:t.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){eD.read(()=>{this.changeSubscriber||this.events.change?.getSize()||this.stop()})}clearListeners(){for(let e in this.changeSubscriber=void 0,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,i){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}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.notifyChange()}notifyChange(){let{current:e,changeSubscriber:t}=this;t?t(e):this.events.change?.notify(e)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return tl&&tl.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=e5.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return to(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{let i;this.hasAnimated=!0;let s=!1;i=e(()=>{s=!0,this.events.animationComplete?.notify(),this.animation===i&&this.clearAnimation(),t()}),s||(this.animation=i),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function th(e,t){return new td(e,t)}let tc=new WeakMap;function tu(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function tp(e){return"string"==typeof e||Array.isArray(e)}let tm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tf=["initial",...tm];function tx(e){if(tu(e.animate))return!0;for(let t=0;t<tf.length;t++)if(tp(e[tf[t]]))return!0;return!1}function tg(e){return!!(tx(e)||e.variants)}
1let ty={current:null},tv={current:!1},tb="u">typeof window,tk=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tw={};class tj{scrapeMotionValuesFromProps(e,t,i){return{}}constructor({parent:e,props:t,presenceContext:i,reducedMotionConfig:s,skipAnimations:n,blockInitialAnimation:r,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=eU,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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=e5.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,eD.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=d,this.parent=e,this.props=t,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=n,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=tx(t),this.isVariantNode=tg(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in c){const t=c[e];void 0!==l[e]&&J(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];if(this.current=e,tc.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.isVariantNode&&!this.isControllingVariants){let e=this;do e=!1!==e.props.inherit&&e.parent;while(e&&!e.isVariantNode)if(e){let{variantChildren:t}=e;t.add(this),this.removeFromVariantTree=()=>t.delete(this)}}this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(tv.current||function(){if(tv.current=!0,tb)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ty.current=e.matches;e.addEventListener("change",t),t()}else ty.current=!1}(),this.shouldReduceMotion=ty.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),eR(this.notifyUpdate),eR(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 i;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&tr.has(e)&&this.current instanceof HTMLElement){let{factory:i,keyframes:s,times:n,ease:r,duration:a}=t.accelerate,o=new tn({element:this.current,name:e,keyframes:s,times:n,ease:r,duration:eH(a)}),l=i(o);this.valueSubscriptions.set(e,()=>{l(),o.cancel()});return}let s=d.has(e);s&&this.onBindTransform&&this.onBindTransform();let n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eD.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{n(),i&&i()})}sortNodePosition(e){return this.current&&e.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in tw){let t=tw[e];if(!t)continue;let{isEnabled:i,Feature:s}=t;if(!this.features[e]&&s&&i(this.props)&&(this.features[e]=new s(this)),this.features[e]){let t=this.features[e];
1t.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):Z()}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<tk.length;t++){let i=tk[t];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=e["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=function(e,t,i){for(let s in t){let n=t[s],r=i[s];if(J(n))e.addValue(s,n);else if(J(r))e.addValue(s,th(n,{owner:e}));else if(r!==n)if(e.hasValue(s)){let t=e.getValue(s);!0===t.liveStyle?t.jump(n):t.hasAnimated||t.set(n)}else{let t=e.getStaticValue(s);e.addValue(s,th(void 0!==t?t:n,{owner:e}))}}for(let s in i)void 0===t[s]&&e.removeValue(s);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}addValue(e,t){let i=this.values.get(e);if(t!==i){i&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t);let s=t.get();void 0!==s&&(this.latestValues[e]=s)}}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 i=this.values.get(e);return void 0===i&&void 0!==t&&(i=th(t??this.getDefaultValue?.(e),{owner:this}),this.addValue(e,i)),i}readValue(e,t){let i=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=i){let s,n;"string"==typeof i&&(s=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(s)||(n=i,/^0[^.\s]+$/u.test(n)))?i=parseFloat(i):"number"!=typeof i&&!F.test(i)&&F.test(t)&&(i=eu(e,t)),this.setBaseTarget(e,J(i)?i.get():i)}return J(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}on(e,t){return this.events[e]||(this.events[e]=new eq),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){ta.render(this.render)}}class tS extends tj{constructor(){super(...arguments),this.KeyframeResolver=eW}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let i=e.style;return i?i[t]:void 0}removeValueFromRenderState(e,{vars:t,style:i}){delete t[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;J(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function tT(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let tP=(e,t)=>t&&"number"==typeof e?t.transform(e):e,tN={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tA=l.length;function tE(e,t,i){let{style:s,vars:n,transformOrigin:r}=e,a=!1,o=!1;for(let e in t){let i=t[e];if(d.has(e)){a=!0;continue}if(er(e)){n[e]=i;continue}{let t=tP(i,W[e]);e.startsWith("origin")?(o=!0,r[e]=t):s[e]=t}}if(!t.transform&&(a||i?s.transform=function(e,t,i){let s="",n=!0;for(let r=0;r<tA;r++){let a=l[r],o=e[a];if(void 0===o)continue;let d=!0;if("number"==typeof o)d=o===+!!a.startsWith("scale");else{let e=parseFloat(o);d=a.startsWith("scale")?1===e:0===e}if(!d||i){let e=tP(o,W[a]);if(!d){n=!1;let t=tN[a]||a;s+=`${t}(${e}) `}i&&(t[a]=e)}}let r=e.pathRotation;return r&&(n=!1,s+=`rotate(${tP(r,W.pathRotation)}) `),s=s.trim(),i?s=i(t,n?"":s):n&&(s="none"),s}(t,e.transform,i):s.transform&&(s.transform="none")),o){let{originX:e="50%",originY:t="50%",originZ:i=0}=r;s.transformOrigin=`${e} ${t} ${i}`}}let tC={offset:"stroke-dashoffset",array:"stroke-dasharray"},tM={offset:"strokeDashoffset",array:"strokeDasharray"},t_=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tV(e,{attrX:t,attrY:i,attrScale:s,pathLength:n,pathSpacing:r=1,pathOffset:a=0,...o}
1,l,d,h){if(tE(e,o,d),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:c,style:u}=e;for(let e of t_)void 0!==c[e]&&(u[e]=c[e],delete c[e]);(u.transform||c.transformOrigin)&&(u.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),u.transform&&(u.transformBox=h?.transformBox??"fill-box",delete c.transformBox),void 0!==t&&(c.x=t),void 0!==i&&(c.y=i),void 0!==s&&(c.scale=s),void 0!==n&&function(e,t,i=1,s=0,n=!0){e.pathLength=1;let r=n?tC:tM;e[r.offset]=`${-s}`,e[r.array]=`${t} ${i}`}(c,n,r,a,!1)}let tD=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"]),tR=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tL(e,{style:t,vars:i},s,n){let r,a=e.style;for(r in t)a[r]=t[r];for(r in n?.applyProjectionStyles(a,s),i)a.setProperty(r,i[r])}let tB={};function tF(e,{layout:t,layoutId:i}){return d.has(e)||e.startsWith("origin")||(t||void 0!==i)&&(!!tB[e]||"opacity"===e)}function tz(e,t,i){let s=e.style,n=t?.style,r={};if(!s)return r;for(let t in s)(J(s[t])||n&&J(n[t])||tF(t,e)||i?.getValue(t)?.liveStyle!==void 0)&&(r[t]=s[t]);return r}function tI(e,t,i){let s=tz(e,t,i);for(let i in e)(J(e[i])||J(t[i]))&&(s[-1!==l.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]);return s}class t$ extends tS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Z}getBaseTargetFromProps(e,t){return d.has(t)?super.getBaseTargetFromProps(e,t)??eb(t):e[t]}getDefaultValue(e){return d.has(e)?this.latestValues[e]??eb(e):void 0}readValueFromInstance(e,t){if(d.has(t)){let e=Y(t);return e&&e.default||0}if(t_.includes(t)){let i=getComputedStyle(e)[t];if("string"==typeof i&&i)return i.trim()}return t=tD.has(t)?t:tT(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,i){return tI(e,t,i)}build(e,t,i){tV(e,t,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,t,i,s){for(let i in tL(e,t,void 0,s),t.attrs)e.setAttribute(tD.has(i)?i:tT(i),t.attrs[i])}mount(e){this.isSVGTag=tR(e.tagName),super.mount(e)}}function tO({top:e,left:t,right:i,bottom:s}){return{x:{min:t,max:i},y:{min:e,max:s}}}let tU=(e,t,i)=>e+(t-e)*i;function tK(e){return void 0===e||1===e}function tW({scale:e,scaleX:t,scaleY:i}){return!tK(e)||!tK(t)||!tK(i)}function tH(e){return tW(e)||tY(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function tY(e){var t,i;return(t=e.x)&&"0%"!==t||(i=e.y)&&"0%"!==i}function tX(e,t,i,s,n){return void 0!==n&&(e=s+n*(e-s)),s+i*(e-s)+t}function tq(e,t=0,i=1,s,n){e.min=tX(e.min,t,i,s,n),e.max=tX(e.max,t,i,s,n)}function tG(e,{x:t,y:i}){tq(e.x,t.translate,t.scale,t.originPoint),tq(e.y,i.translate,i.scale,i.originPoint)}function tZ(e,t){e.min+=t,e.max+=t}function tJ(e,t,i,s,n=.5){let r=tU(e.min,e.max,n);tq(e,t,i,r,s)}function tQ(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function t0(e,t,i){let s=i??e;tJ(e.x,tQ(t.x,s.x),t.scaleX,t.scale,t.originX),tJ(e.y,tQ(t.y,s.y),t.scaleY,t.scale,t.originY)}function t1(e,t){return tO(function(e,t){if(!t)return e;let i=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}(e.getBoundingClientRect(),t))}class t2 extends tS{constructor(){super(...arguments),this.type="html",this.renderInstance=tL}mount(e){es(e.style),super.mount(e)}readValueFromInstance(e,t){if(d.has(t))return this.projection?.isProjecting?eb(t):((e,t)=>{let{transform:i="none"}=getComputedStyle(e);return ek(i,t)})(e,t);{let i=window.getComputedStyle(e),s=(er(t)?i.getPropertyValue(t):i[t])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:t}){return t1(e,t)}build(e,t,i){tE(e,t,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,i){return tz(e,t,i)}}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 t3(e){if("string"!=typeof e||e.includes("-"));else if(t4.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let t5=(0,r.createContext)({}),t6=(0,r.createContext)({strict:!1}),t9=(0,r.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),t8=(0,r.createContext)({});function t7(e){return Array.isArray(e)?e.join(" "):e}let ie=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function it(e,t,i){for(let s in t)J(t[s])||tF(s,i)||(e[s]=t[s])}let ii=()=>({...ie(),attrs:{}}),is=new Set(["animate","exit","variants","initial","style","values","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function ir(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||is.has(e)}function ia(e){return J(e)?e.get():e}function io(e,t,i,s){let n=t=>{let n;return"function"==typeof t?t(void 0!==i?i:e.custom,...(n=[{},{}
1],s?.values.forEach((e,t)=>{n[0][t]=e.get(),n[1][t]=e.getVelocity()}),n)):t};return"string"==typeof(t=n(t))&&(t=e.variants&&e.variants[t]),n(t)}let il=(0,r.createContext)(null);function id(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}let ih=e=>(t,i)=>{let s=(0,r.useContext)(t8),n=(0,r.useContext)(il),a=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},i,s,n){return{latestValues:function(e,t,i,s){let n={},r=s(e,{});for(let e in r)n[e]=ia(r[e]);let{initial:a,animate:o}=e,l=tx(e),d=tg(e);t&&d&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===o&&(o=t.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===a)?o:a;if(c&&"boolean"!=typeof c&&!tu(c)){let t=Array.isArray(c)?c:[c];for(let i=0;i<t.length;i++){let s=io(e,t[i]);if(s){let{transitionEnd:e,transition:t,...i}=s;for(let e in i){let t=i[e];if(Array.isArray(t)){let e=h?t.length-1:0;t=t[e]}null!==t&&(n[e]=t)}for(let t in e)n[t]=e[t]}}}return n}(i,s,n,e),renderState:t()}})(e,t,s,n);return i?a():id(a)},ic=ih({scrapeMotionValuesFromProps:tz,createRenderState:ie}),iu=ih({scrapeMotionValuesFromProps:tI,createRenderState:ii}),ip={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"]},im=!1;function ix(){return!function(){if(im)return;let e={};for(let t in ip)e[t]={isEnabled:e=>ip[t].some(t=>!!e[t])};tw=e,im=!0}(),tw}let ig=Symbol.for("motionComponentSymbol"),iy="data-"+tT("framerAppearId"),iv=(0,r.createContext)({});function ib(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let ik="u">typeof window?r.useLayoutEffect:r.useEffect;function iw(e,{forwardMotionProps:t=!1,type:i}={},s,a){s&&function(e){let t=ix();for(let i in e)t[i]={...t[i],...e[i]};tw=t}(s);let o=i?"svg"===i:t3(e),l=o?iu:ic;function d(i,s){var d;let h,c,u,p={...(0,r.useContext)(t9),...i,layoutId:function({layoutId:e}){let t=(0,r.useContext)(t5).id;return t&&void 0!==e?t+"-"+e:e}(i)},{isStatic:m,isValidProp:f}=p,x=function(e){let{initial:t,animate:i}=function(e,t){if(tx(e)){let{initial:t,animate:i}=e;return{initial:!1===t||tp(t)?t:void 0,animate:tp(i)?i:void 0}}return!1!==e.inherit?t:{}}(e,(0,r.useContext)(t8));return(0,r.useMemo)(()=>({initial:t,animate:i}),[t7(t),t7(i)])}(i),g=l(i,m);if(!m&&"u">typeof window){(0,r.useContext)(t6).strict;let t=function(e){let{drag:t,layout:i}=ix();if(!t&&!i)return{};let s={...t,...i};return{MeasureLayout:t?.isEnabled(e)||i?.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(p);h=t.MeasureLayout,x.visualElement=function(e,t,i,s,n,a){let{visualElement:o}=(0,r.useContext)(t8),l=(0,r.useContext)(t6),d=(0,r.useContext)(il),h=(0,r.useContext)(t9),c=h.reducedMotion,u=h.skipAnimations,p=(0,r.useRef)(null),m=(0,r.useRef)(!1);s=s||l.renderer,!p.current&&s&&(p.current=s(e,{visualState:t,parent:o,props:i,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:c,skipAnimations:u,isSVG:a}),m.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));let f=p.current,x=(0,r.useContext)(iv);f&&!f.projection&&n&&("html"===f.type||"svg"===f.type)&&function(e,t,i,s){let{layoutId:n,layout:r,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:d,layoutAnchor:h,layoutCrossfade:c}=t;e.projection=new i(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:n,layout:r,alwaysMeasureLayout:!!a||o&&ib(o),visualElement:e,animationType:"string"==typeof r?r:"both",initialPromotionConfig:s,crossfade:c,layoutScroll:l,layoutRoot:d,layoutAnchor:h})}(p.current,i,n,x);let g=(0,r.useRef)(!1);(0,r.useInsertionEffect)(()=>{f&&g.current&&f.update(i,d)});let y=i[iy],v=(0,r.useRef)(!!y&&"u">typeof window&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return ik(()=>{m.current&&f&&(f.animationState?.animateChanges(),f.enteringChildren=void 0)},[]),ik(()=>{m.current=!0,f&&(g.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),v.current&&f.animationState&&f.animationState.animateChanges())}),(0,r.useEffect)(()=>{f&&(!v.current&&f.animationState&&f.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),v.current=!1),f.enteringChildren=void 0)}),f}(e,g,p,a,t.ProjectionNode,o)}return(0,n.jsxs)(t8.Provider,{value:x,children:[h&&x.visualElement?(0,n.jsx)(h,{visualElement:x.visualElement,...p}):null,function(e,t,i,{latestValues:s},n,a=!1,o,l){let d=(o??t3(e)?function(e,t,i,s){let n=(0,r.useMemo)(()=>{let i=ii();return tV(i,t,tR(s),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let t={};it(t,e.style,e),n.style={...t,...n.style}}return n}:function(e,t){let i,s,n={},a=(i=e.style||{},it(s={},i,e),Object.assign(s,function({transformTemplate:e},t){return(0,r.useMemo)(()=>{let i=ie();return tE(i,t,e),Object.assign({},i.vars,i.style)},[t])}(e,t)),s);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}
1`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=a,n})(t,s,n,e),h=function(e,t,i,s){let n={};for(let r in e)("values"!==r||"object"!=typeof e.values)&&!J(e[r])&&((r.startsWith("on")?!ir(r):s?.(r)??!ir(r))||!0===i&&ir(r)||!t&&!ir(r)||e.draggable&&r.startsWith("onDrag"))&&(n[r]=e[r]);return n}(t,"string"==typeof e,a,l),c=e!==r.Fragment?{...h,...d,ref:i}:{},{children:u}=t,p=(0,r.useMemo)(()=>J(u)?u.get():u,[u]);return(0,r.createElement)(e,{...c,children:p})}(e,i,(d=x.visualElement,c=(0,r.useRef)(s),(0,r.useInsertionEffect)(()=>{c.current=s}),u=(0,r.useRef)(null),(0,r.useCallback)(e=>{e&&g.onMount?.(e),d&&(e?d.mount(e):d.unmount());let t=c.current;if("function"==typeof t)if(e){let i=t(e);"function"==typeof i&&(u.current=i)}else u.current?(u.current(),u.current=null):t(e);else t&&(t.current=e)},[d])),g,m,t,o,f)]})}d.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let h=(0,r.forwardRef)(d);return h[ig]=e,h}class ij{constructor(e){this.isMounted=!1,this.node=e}update(){}}function iS(e,t,i){return io(e.getProps(),t,i,e)}let iT=(e,t)=>"exit"===t?e.presenceContext?.custom:void 0;function iP(e,t){if(e?.inherit&&t){let{inherit:i,...s}=e;return{...t,...s}}return e}function iN(e,t){let i=e?.[t]??e?.default??e;return i!==e?iP(i,e):i}function iA(e,t){let i=e.getValue("willChange");if(J(i)&&i.add)return i.add(t);if(!i&&eC.WillChange){let i=new eC.WillChange("auto");e.addValue("willChange",i),i.add(t)}}let iE=(...e)=>e.reduce((e,t)=>i=>t(e(i)));function iC(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function iM(e,t){return i=>i>0?t:e}let i_=(e,t,i)=>{let s=e*e,n=i*(t*t-s)+s;return n<0?0:Math.sqrt(n)},iV=[k,b,E];function iD(e){let t=iV.find(t=>t.test(e));if(!t)return ei(`'${e}' is not an animatable color. Use the equivalent color code instead.`),!1;let i=t.parse(e);return t===E&&(i=function({hue:e,saturation:t,lightness:i,alpha:s}){e/=360,i/=100;let n=0,r=0,a=0;if(t/=100){let s=i<.5?i*(1+t):i+t-i*t,o=2*i-s;n=iC(o,s,e+1/3),r=iC(o,s,e),a=iC(o,s,e-1/3)}else n=r=a=i;return{red:Math.round(255*n),green:Math.round(255*r),blue:Math.round(255*a),alpha:s}}(i)),i}let iR=(e,t)=>{let i=iD(e),s=iD(t);if(!i||!s)return iM(e,t);let n={...i};return e=>(n.red=i_(i.red,s.red,e),n.green=i_(i.green,s.green,e),n.blue=i_(i.blue,s.blue,e),n.alpha=tU(i.alpha,s.alpha,e),b.transform(n))},iL=new Set(["none","hidden"]);function iB(e,t){return i=>tU(e,t,i)}function iF(e){return"number"==typeof e?iB:"string"==typeof e?eo(e)?iM:C.test(e)?iR:i$:Array.isArray(e)?iz:"object"==typeof e?C.test(e)?iR:iI:iM}function iz(e,t){let i=[...e],s=i.length,n=e.map((e,i)=>iF(e)(e,t[i]));return e=>{for(let t=0;t<s;t++)i[t]=n[t](e);return i}}function iI(e,t){let i={...e,...t},s={};for(let n in i)void 0!==e[n]&&void 0!==t[n]&&(s[n]=iF(e[n])(e[n],t[n]));return e=>{for(let t in s)i[t]=s[t](e);return i}}let i$=(e,t)=>{let i=F.createTransformer(t),s=L(e),n=L(t);if(!(s.indexes.var.length===n.indexes.var.length&&s.indexes.color.length===n.indexes.color.length&&s.indexes.number.length>=n.indexes.number.length))return ei(`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.`),iM(e,t);if(iL.has(e)&&!n.values.length||iL.has(t)&&!s.values.length)return iL.has(e)?i=>i<=0?e:t:i=>i>=1?t:e;return iE(iz(function(e,t){let i=[],s={color:0,var:0,number:0};for(let n=0;n<t.values.length;n++){let r=t.types[n],a=e.indexes[r][s[r]],o=e.values[a]??0;i[n]=o,s[r]++}return i}(s,n),n.values),i)},iO=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function iU(e,t,i){if("number"==typeof e&&"number"==typeof t&&"number"==typeof i)return tU(e,t,i);if("string"==typeof e&&"string"==typeof t){let i=function(e,t){let i=iO.exec(e);if(!i)return;let s=iO.exec(t);if(!s||i[2]!==s[2])return;let n=i[2],r=parseFloat(i[1]),a=parseFloat(s[1]);return e=>m(tU(r,a,e))+n}(e,t);if(i)return i}return iF(e)(e,t)}let iK=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>eD.update(t,e),stop:()=>eR(t),now:()=>eV.isProcessing?eV.timestamp:e5.now()}};
1function iW(e,t=50,i=2e4,s){let n=0,r=e.next(n);for(s?.push(r.value);!r.done&&n<i;)n+=t,r=e.next(n),s?.push(r.value);return n>=i?1/0:n}let iH=.01,iY=2,iX=.005,iq=.5,iG=e=>e<0?1/Math.max(1+e,.05):Math.max(1-e,.05);function iZ(e,t){if(!(e>1))return 1;let i=Math.sqrt(e*e-1),s=e-i,n=e+i,r=2*i*Math.exp(-t)*(1+t);return iQ(e=>n*Math.exp(-s*e)-s*Math.exp(-n*e)-r,e=>Math.exp(-n*e)-Math.exp(-s*e),t)/t}function iJ(e,t){return e*Math.sqrt(1-t*t)}function iQ(e,t,i){let s=i;for(let i=1;i<12;i++)s-=e(s)/t(s);return s}let i0=(e,t)=>(t?e>=0:e>0)&&e<1/0;function i1(e,t){if(i0(e,t))return e}function i2(e=.3,t=.3){let i,s,n,r="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,a=r.keyframes[0],o=r.keyframes[r.keyframes.length-1],l={done:!1,value:a},{stiffness:d,damping:c,mass:u,duration:p,isResolvedFromDuration:m,isTimeDefined:f}=function(e){let t=i1(e.stiffness),i=i1(e.damping,!0),s=i1(e.mass),n={...e,stiffness:t??100,damping:i??10,mass:s??1,isResolvedFromDuration:!1,isTimeDefined:(t??i??s)===void 0&&(void 0!==e.duration||void 0!==e.bounce)};if(n.isTimeDefined){if(e.visualDuration){let t=iG(e.bounce||0),i=2*Math.PI/(1.2*e.visualDuration)*iZ(t,2*Math.PI/1.2);n.stiffness=i*i,n.damping=2*t*Math.sqrt(n.stiffness)}else Object.assign(n,function({duration:e=800,bounce:t=.3}){let i,s;ei(eH(10));let n=iG(t);e=h(.01,10,e/1e3),n<1?(i=t=>{let i=t*n,s=i*e;return .001-i/iJ(t,n)*Math.exp(-s)},s=t=>{let s=t*n*e,r=n*n*t*t*e,a=Math.exp(-s),o=iJ(t*t,n);return-((-i(t)+.001>0?-1:1)*r)*a/o}):(i=t=>-.001+Math.exp(-t*e)*(t*e+1),s=t=>-(e*e*t*Math.exp(-t*e)));let r=iQ(i,s,5/e),a=r*iZ(n,r*e),o=a*a;return{stiffness:o,damping:2*n*Math.sqrt(o),duration:eH(e)}}(n)),n.isResolvedFromDuration=!0;i0(n.stiffness)&&i0(n.damping,!0)||(n.stiffness=100,n.damping=10)}return n}({...r}),x=e=>f?0:-(e/1e3),g=c/(2*Math.sqrt(d*u)),y=Math.sqrt(d/u)/1e3,v=g*y,b={target:o,delta:o-a,velocity:x(r.velocity||0)||0,restSpeed:0,restDelta:0},k=()=>{let e=5>Math.abs(b.delta);b.restSpeed=r.restSpeed||(e?iH:iY),b.restDelta=r.restDelta||(e?iX:iq)};if(k(),g<1){let e=iJ(y,g),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};n=()=>{t.A=(b.velocity+v*b.delta)/e,t.sinC=v*t.A+b.delta*e,t.cosC=v*b.delta-t.A*e};let r=i=>{i!==t.t&&(t.t=i,t.env=Math.exp(-v*i),t.sin=Math.sin(e*i),t.cos=Math.cos(e*i))};i=e=>(r(e),b.target-t.env*(t.A*t.sin+b.delta*t.cos)),s=e=>(r(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(1===g){i=e=>b.target-Math.exp(-y*e)*(b.delta+(b.velocity+y*b.delta)*e);let e={C:0};n=()=>{e.C=b.velocity+y*b.delta},s=t=>Math.exp(-y*t)*(y*e.C*t-b.velocity)}else{let e=y*Math.sqrt(g*g-1),t=v-e,r=v+e,a=f?1/0:300/e,o=(e,t)=>Math.exp(t>a?-e*a-v*(t-a):-e*t),l={S:0,F:0};n=()=>{let t=(b.velocity+v*b.delta)/e;l.S=(b.delta+t)/2,l.F=(b.delta-t)/2},i=e=>b.target-l.S*o(t,e)-l.F*o(r,e),s=e=>t*l.S*o(t,e)+r*l.F*o(r,e)}n();let w=m&&p||null,j={calculatedDuration:w,retarget:(e,t)=>{b.target=e[e.length-1],b.delta=b.target-e[0],b.velocity=x(t),r.restSpeed&&r.restDelta||k(),j.calculatedDuration=w,l.done=!1,n()},velocity:e=>eH(s(e)),next:e=>{let t=i(e);return m?l.done=e>=p:l.done=Math.abs(eH(s(e)))<=b.restSpeed&&Math.abs(b.target-t)<=b.restDelta,l.value=l.done?b.target:t,l},toString:()=>{let e=Math.min(iW(j),2e4),t=te(t=>j.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return j}function i4({keyframes:e,velocity:t=0,power:i=.8,timeConstant:s=325,bounceDamping:n=10,bounceStiffness:r=500,modifyTarget:a,min:o,max:l,restDelta:d=.5,restSpeed:h}){let c,u,p=e[0],m={done:!1,value:p},f=i*t,x=p+f,g=void 0===a?x:a(x);g!==x&&(f=g-p);let y=e=>-f*Math.exp(-e/s),v=e=>{let t=y(e);m.done=Math.abs(t)<=d,m.value=m.done?g:g+t},b=e=>{let t;if((t=m.value)<o||t>l){var i;c=e,u=i2({keyframes:[m.value,(i=m.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:-y(e)/s*1e3,damping:n,stiffness:r,restDelta:d,restSpeed:h})}};return b(0),{calculatedDuration:null,next:e=>{let t=!1;return(u||void 0!==c||(t=!0,v(e),b(e)),void 0!==c&&e>=c)?u.next(e-c):(t||v(e),m)}}}i2.applyToOptions=e=>{let t=function(e,t=100,i){let s=i({...e,keyframes:[0,t]}),n=Math.min(iW(s),2e4);return{type:"keyframes",ease:e=>s.next(n*e).value/t,duration:n/1e3}}(e,100,i2);return e.ease=t.ease,e.duration=eH(t.duration),e.type="keyframes",e};let i3=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e;function i5(e,t,i,s){return e===t&&i===s?eE:n=>0===n||1===n?n:i3(function(e,t,i,s,n){let r,a,o=0;do(r=i3(a=t+(i-t)/2,s,n)-e)>0?i=a:t=a;while(Math.abs(r)>1e-7&&++o<12)return a}(n,0,1,e,i),t,s)}let i6=i5(.42,0,1,1),i9=i5(0,0,.58,1),i8=i5(.42,0,.58,1),i7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,se=e=>t=>1-e(1-t),st=i5(.33,1.53,.69,.99),si=se(st),ss=i7(si),sn=e=>e>=1?1:(e*=2)<1?.5*si(e):.5*(2-Math.pow(2,-10*(e-1))),sr=e=>1-Math.sin(Math.acos(e)),sa=se(sr),so=i7(sr),sl={linear:eE,easeIn:i6,easeInOut:i8,easeOut:i9,circIn:sr,circInOut:so,circOut:sa,backIn:si,backInOut:ss,backOut:st,anticipate:sn},sd=e=>{if(e8(e)){es(e.length);let[t,i,s,n]=e;return i5(t,i,s,n)}return"string"==typeof e?(es(sl[e],`Invalid easing type '${e}'`),sl[e]):e},sh=(e,t,i)=>{let s=t-e;return s?(i-e)/s:1};function sc({duration:e=300,keyframes:t,times:i,ease:s="easeInOut"}){var n;let r,a=Array.isArray(s)&&"number"!=typeof s[0]?s.map(sd):sd(s)||i8,o={done:!1,value:t[0]};if(2===t.length&&!Array.isArray(a)&&(!i||2!==i.length||0===i[0]&&1===i[1])){let[i,s]=t,n=i===s?void 0:(eC.mix||iU)(i,s);return{calculatedDuration:e,next:t=>(o.value=n?n(a(e>0?h(0,1,t/e):1)):s,o.done=t>=e,o)}}let l=function(e,t,{clamp:i=!0,ease:s,mixer:n}={}){let r=e.length;if(es(t.length),1===r)return()=>t[0];if(2===r&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>
1e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());let o=function(e,t,i){let s=[],n=i||eC.mix||iU,r=e.length-1;for(let i=0;i<r;i++){let r=n(e[i],e[i+1]);t&&(r=iE(Array.isArray(t)?t[i]||eE:t,r)),s.push(r)}return s}(t,s,n),l=o.length,d=i=>{if(a&&i<e[0])return t[0];let s=0;if(l>1)for(;s<e.length-2&&!(i<e[s+1]);s++);let n=sh(e[s],e[s+1],i);return o[s](n)};return i?t=>d(h(e[0],e[r-1],t)):d}((n=i&&i.length===t.length?i:(!function(e,t){let i=e[e.length-1];for(let s=1;s<=t;s++){let n=sh(0,t,s);e.push(tU(i,1,n))}}(r=[0],t.length-1),r),n.map(t=>t*e)),t,{ease:Array.isArray(a)?a:t.map(()=>a||i8).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=l(t),o.done=t>=e,o)}}let su={decay:i4,inertia:i4,tween:sc,keyframes:sc,spring:i2};function sp(e){"string"==typeof e.type&&(e.type=su[e.type])}let sm=e=>e/100;class sf extends e4{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==e5.now()&&this.tick(e5.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause(),e9(this,this.options)}initAnimation(){let{options:e}=this;sp(e);let{type:t=sc,repeat:i=0,repeatDelay:s=0,repeatType:n,velocity:r=0}=e,{keyframes:a}=e,o=t||sc;o!==sc&&"number"!=typeof a[0]&&(this.mixKeyframes=iE(sm,iU(a[0],a[1])),a=[0,100]);let l=o(a===e.keyframes?e:{...e,keyframes:a});"mirror"===n&&(this.mirroredGenerator=o({...e,keyframes:[...a].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=iW(l));let{calculatedDuration:d}=l;this.calculatedDuration=d,this.resolvedDuration=d+s,this.totalDuration=this.resolvedDuration*(i+1)-s,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 i,{generator:s,totalDuration:n,mixKeyframes:r,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:l}=this;if(null===this.startTime)return s.next(0);let{delay:d=0,keyframes:c,repeat:u,repeatType:p,repeatDelay:m,type:f,onUpdate:x,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-n/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let y=this.currentTime-d*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?y<0:y>n;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let b=this.currentTime,k=s;if(u){let e=Math.min(this.currentTime,n)/o,t=Math.floor(e),i=e%1;!i&&e>=1&&(i=1),1===i&&t--,(t=Math.min(t,u+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/o)):"mirror"===p&&(k=a)),b=h(0,1,i)*o}v?(this.delayState.value=c[0],i=this.delayState):i=k.next(b),r&&!v&&(i.value=r(i.value));let{done:w}=i;v||null===l||(w=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let j=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return j&&f!==i4&&(i.value=e2(c,this.options,g,this.speed)),x&&x(i.value),j&&this.finish(),i}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=eH(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?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){return function(e,t,i=0){var s,n;let r;return t<=0?i:e.velocity?e.velocity(t):(s=t=>e.next(t).value,n=e.next(t).value,to(n-s(r=Math.max(t-5,0)),t-r))}(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(e5.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=iK,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=t??i),"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(e5.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}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)}}let sx={anticipate:sn,backInOut:ss,circInOut:so};class sg extends tn{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in sx&&(e.ease=sx[e.ease])}(e),sp(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:i,onComplete:s,element:n,...r}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let a=new sf({...r,autoplay:!1}),o=Math.max(10,e5.now()-this.startTime),l=h(0,10,o-10),d=a.sample(o).value,{name:c}=this.options;n&&c&&eG(n,c,d),t.setWithVelocity(a.sample(Math.max(0,o-l)).value,d,l),a.stop()}}let sy=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(F.test(e)||"0"===e)&&!e.startsWith("url("));function sv(e){e.duration=0,e.type="keyframes"}let sb=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,sk=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),sw=eZ(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class sj extends e4{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=e5.now();const{keyframes:t,name:i,motionValue:s,element:n}=e;e.autoplay??(e.autoplay=!0),e.delay??(e.delay=0),e.type??(e.type="keyframes"),e.repeat??(e.repeat=0),e.repeatDelay??(e.repeatDelay=0),e.repeatType??(e.repeatType="loop");const r=n?.KeyframeResolver||eU;this.keyframeResolver=new r(t,(t,i,s)=>this.onKeyframesResolved(t,i,e,!s),i,s,n),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,i,s){let n;this.keyframeResolver=void 0;let{name:r,type:a,velocity:o,delay:l,isHandoff:d,onUpdate:h}=i;this.resolvedAt=e5.now();let c=!0;!function(e,t,i,s){let n=e[0];if(null===n)return!1;if("display"===t||"visibility"===t)return!0;let r=e[e.length-1],a=sy(n,t),o=sy(r,t);return a&&o?function(e){let t=e[0];if(1===e.length)return!0;for(let i=0;i<e.length;i++)if(e[i]!==t)return!0}(e)||("spring"===i||ts(i))&&s:(a!==o&&ei(`You are trying to animate ${t} from "${n}" to "${r}". "${a?r:n}" is not an animatable value.`),!1)}(e,r,a,o)&&(c=!1,(eC.instantAnimations||!l)&&h?.(e2(e,i,t)),e[0]=e[e.length-1],sv(i),i.repeat=0);let u=s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,{onComplete:p}=i;if(i.startTime??(i.startTime=u),i.finalKeyframe=t,i.keyframes=e,i.onComplete=()=>{p?.(),this.notifyFinished()},c&&!d&&function(e){let{motionValue:t,name:i,repeatDelay:s,repeatType:n,damping:r,type:a,keyframes:o}=e;if(!i||!(tr.has(i)||sk.has(i)))return!1;let l=t?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;
1let{onUpdate:d,transformTemplate:h}=t.owner.getProps();return sw()&&(tr.has(i)||sk.has(i)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&sb.test(e[t]))return!0;return!1}(o))&&("transform"!==i||!h)&&!d&&!s&&"mirror"!==n&&0!==r&&"inertia"!==a}(i)){i.element=i.motionValue?.owner?.current;try{n=new sg(i)}catch{n=new sf(i)}}else n=new sf(i);this.pendingTimeline&&(this.stopTimeline=n.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=n}get finished(){return this._animation?this._animation.finished:super.finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eI=!0,eO(),e$(),eI=!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 sS={type:"spring",stiffness:500,damping:25,restSpeed:10},sT={type:"keyframes",duration:.8},sP={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sN=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),sA=(e,t,i,s={},n,r)=>a=>{let o=iN(s,e)||{},l=o.delay||s.delay||0,{elapsed:h=0}=s;h-=eH(l);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-h,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:r?void 0:n};!function(e){for(let t in e)if(!sN.has(t))return!0;return!1}(o)&&Object.assign(c,((e,{keyframes:t})=>t.length>2?sT:d.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:sS:sP)(e,c)),c.duration&&(c.duration=eH(c.duration)),c.repeatDelay&&(c.repeatDelay=eH(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let u=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(sv(c),0===c.delay&&(u=!0)),(eC.instantAnimations||eC.skipAnimations||n?.shouldSkipAnimations||o.skipAnimations)&&(u=!0,sv(c),c.delay=0),c.allowFlatten=!o.type&&!o.ease,u&&!r&&void 0!==t.get()){let e=e2(c.keyframes,o);if(void 0!==e)return void eD.update(()=>{c.onUpdate(e),c.onComplete()})}return o.isSync?new sf(c):new sj(c)},sE="u">typeof window;function sC(e,t,{delay:i=0,transitionOverride:s,type:n}={}){let{transition:r,transitionEnd:a,...o}=t,l=e.getDefaultTransition();r=r?iP(r,l):l;let d=r?.reduceMotion,h=r?.skipAnimations;s&&(r=s);let c=[],u=n&&e.animationState?.getState()[n],p=r?.path;for(let t in p&&p.animateVisualElement(e,o,r,i,c),o){let s=e.getValue(t,e.latestValues[t]??null),n=o[t];if(void 0===n||u&&function({protectedKeys:e,needsAnimating:t},i){let s=i in e&&!t[i];return t[i]=!1,s}(u,t))continue;let a={delay:i,...iN(r||{},t)};h&&(a.skipAnimations=!0);let l=s.get();if(void 0!==l&&!s.isAnimating()&&!Array.isArray(n)&&n===l&&!a.velocity){eD.update(()=>s.set(n));continue}let p=!1;if(sE&&window.MotionHandoffAnimation){let i=e.props[iy];if(i){let e=window.MotionHandoffAnimation(i,t,eD);null!==e&&(a.startTime=e,p=!0)}}iA(e,t);let m=d??e.shouldReduceMotion;s.start(sA(t,s,n,m&&Q.has(t)?{type:!1}:a,e,p));let f=s.animation;f&&c.push(f)}if(a){let t=()=>eD.update(()=>{a&&function(e,t){let{transitionEnd:i={},transition:s={},...n}=iS(e,t)||{};for(let t in n={...n,...i}){var r;let i=Array.isArray(r=n[t])?r[r.length-1]||0:r;e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,th(i))}}(e,a)});c.length?Promise.all(c).then(t):t()}return c}function sM(e,t,i,s=0,n=1){let r=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),a=e.size,o=(a-1)*s;return"function"==typeof i?i(r,a):1===n?r*s:o-r*s}function s_(e,t,i={}){let s=iS(e,t,iT(e,i.type)),n=i.transitionOverride||(s?.transition??(e.getDefaultTransition()||{})),r=()=>Promise.all(s?sC(e,s,i):[]),a=(s=0)=>{let{variantChildren:r}=e,{delayChildren:a=0,staggerChildren:o,staggerDirection:l}=n,d=[];
1return r?.forEach(e=>{e.notify("AnimationStart",t),d.push(s_(e,t,{...i,delay:s+("function"==typeof a?0:a)+sM(r,e,a,o,l)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(d)},{when:o}=n;return o?"beforeChildren"===o?r().then(()=>a()):a().then(r):Promise.all([r(),a(i.delay)])}function sV(e,t){if(!Array.isArray(t))return!1;let i=t.length;if(i!==e.length)return!1;for(let s=0;s<i;s++)if(t[s]!==e[s])return!1;return!0}let sD=[...tm].reverse();function sR(){let e={};for(let t of tm)e[t]={isActive:"animate"===t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}};return e}let sL=0;function sB(e){return[e("x"),e("y")]}function sF(e,t,i,s={passive:!0}){return e.addEventListener(t,i,s),()=>e.removeEventListener(t,i,s)}let sz={x:!1,y:!1};function sI(e){return e.max-e.min}function s$(e,t,i,s=.5){e.origin=s,e.originPoint=tU(t.min,t.max,e.origin),e.scale=sI(i)/sI(t),e.translate=tU(i.min,i.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 sO(e,t,i,s){s$(e.x,t.x,i.x,s?s.originX:void 0),s$(e.y,t.y,i.y,s?s.originY:void 0)}function sU(e,t,i,s=0){e.min=(s?tU(i.min,i.max,s):i.min)+t.min,e.max=e.min+sI(t)}function sK(e,t,i,s=0){let n=s?tU(i.min,i.max,s):i.min;e.min=t.min-n,e.max=e.min+sI(t)}function sW(e,t,i,s){sK(e.x,t.x,i.x,s?.x),sK(e.y,t.y,i.y,s?.y)}let sH=e=>"object"==typeof e&&null!==e;function sY(e){return sH(e)&&"ownerSVGElement"in e}function sX(e,t,i){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let s=document;t&&(s=t.current);let n=i?.[e]??s.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e).filter(e=>null!=e)}let sq=new WeakMap,sG=(e,t,i)=>(s,n)=>n&&n[0]?n[0][e+"Size"]:sY(s)&&"getBBox"in s?s.getBBox()[t]:s[i],sZ=sG("inline","width","offsetWidth"),sJ=sG("block","height","offsetHeight");function sQ({target:e,borderBoxSize:t}){sq.get(e)?.forEach(i=>{i(e,{get width(){return sZ(e,t)},get height(){return sJ(e,t)}})})}function s0(e){e.forEach(sQ)}let s1=new Set;function s2(e,t){let n;return"function"==typeof e?(s1.add(e),s||(s=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};s1.forEach(t=>t(e))},window.addEventListener("resize",s)),()=>{s1.delete(e),s1.size||"function"!=typeof s||(window.removeEventListener("resize",s),s=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(s0)),(n=sX(e)).forEach(e=>{let s=sq.get(e);s||(s=new Set,sq.set(e,s)),s.add(t),i?.observe(e)}),()=>{n.forEach(e=>{let s=sq.get(e);s?.delete(t),s?.size||i?.unobserve(e)})})}let s4=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),s3=new Set(["INPUT","SELECT","TEXTAREA"]),s5=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function s6(e){return{point:{x:e.pageX,y:e.pageY}}}function s9(e,t,i,s){return sF(e,t,e=>s5(e)&&i(e,s6(e)),s)}let s8=({current:e})=>e?e.ownerDocument.defaultView:null,s7=(e,t)=>Math.abs(e-t),ne=new Set(["auto","scroll"]);class nt{constructor(e,t,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:n=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ni(this.lastRawMoveEventInfo,this.transformPagePoint));let i=nn(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,n=(e=i.offset,t={x:0,y:0},Math.sqrt(s7(e.x,t.x)**2+s7(e.y,t.y)**2)>=this.distanceThreshold);if(!s&&!n)return;let{point:r}=i;this.history.push({...r,timestamp:e5.now()});let{onStart:a,onMove:o}=this.handlers;s||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,i)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=ni(t,this.transformPagePoint),this.hasPendingMove=!0,eD.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=nn("pointercancel"===e.type?this.lastMoveEventInfo:ni(t,this.transformPagePoint),this.history);this.startEvent&&i&&i(e,r),s&&s(e,r)},!s5(e))return;this.dragSnapToOrigin=n,this.handlers=t,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=s||window;const o=ni(s6(e),this.transformPagePoint),{point:l}=o,{timestamp:d}=eV;this.history=[{...l,timestamp:d}];const{onSessionStart:h}=t;h&&h(e,nn(o,this.history));const c={passive:!0,capture:!0};this.removeListeners=iE(s9(this.contextWindow,"pointermove",this.handlePointerMove,c),s9(this.contextWindow,"pointerup",this.handlePointerUp,c),s9(this.contextWindow,"pointercancel",this.handlePointerUp,c)),a&&this.startScrollTracking(a)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(ne.has(e.overflowX)||ne.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let i=e===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},n={x:s.x-t.x,y:s.y-t.y};(0!==n.x||0!==n.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(e,s),eD.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),eR(this.updatePoint)}}function ni(e,t){return t?{point:t(e.point)}:e}function ns(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nn({point:e},t){return{point:e,delta:ns(e,nr(t)),offset:ns(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};
1let t=e.length-1,i=null,s=nr(e);for(;t>=0&&(i=e[t],!(s.timestamp-i.timestamp>eH(.1)));)t--;if(!i)return{x:0,y:0};i===e[0]&&e.length>2&&s.timestamp-i.timestamp>2*eH(.1)&&(i=e[1]);let n=(s.timestamp-i.timestamp)/1e3;if(0===n)return{x:0,y:0};let r={x:(s.x-i.x)/n,y:(s.y-i.y)/n};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(t)}}function nr(e){return e[e.length-1]}function na(e,t,i){return{min:void 0!==t?e.min+t:void 0,max:void 0!==i?e.max+i-(e.max-e.min):void 0}}function no(e,t){let i=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([i,s]=[s,i]),{min:i,max:s}}function nl(e,t,i){return{min:nd(e,t),max:nd(e,i)}}function nd(e,t){return"number"==typeof e?e:e[t]||0}let nh=new WeakMap;class nc{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=Z(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:i}={}){let{presenceContext:s}=this.visualElement;if(s&&!1===s.isPresent)return;let n=e=>{t&&this.snapToCursor(e),this.stopAnimation()},r=(e,t)=>{let{drag:i,dragPropagation:s,onDragStart:n}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(sz[e])return null;else return sz[e]=!0,()=>{sz[e]=!1};return sz.x||sz.y?null:(sz.x=sz.y=!0,()=>{sz.x=sz.y=!1})}(i),!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),sB(e=>{let t=this.getAxisMotionValue(e).get()||0;if(S.test(t)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[e];s&&(t=sI(s)*(parseFloat(t)/100))}}this.originPoint[e]=t}),n&&eD.update(()=>n(e,t),!1,!0),iA(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:n,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=t;if(s&&null===this.currentDirection){this.currentDirection=function(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}(a),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),r&&eD.update(()=>r(e,t),!1,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:d}=this.getProps();this.panSession=new nt(e,{onSessionStart:n,onStart:r,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:i,contextWindow:s8(this.visualElement),element:this.visualElement.current})}stop(e,t){let i=e||this.latestPointerEvent,s=t||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!s||!i)return;let{velocity:r}=s;this.startAnimation(r);let{onDragEnd:a}=this.getProps();a&&eD.postRender(()=>a(i,s))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,i){let{drag:s}=this.getProps();if(!i||!np(e,s,this.currentDirection))return;let n=this.getAxisMotionValue(e),r=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(r=function(e,{min:t,max:i},s){return void 0!==t&&e<t?e=s?tU(t,e,s.min):Math.max(e,t):void 0!==i&&e>i&&(e=s?tU(i,e,s.max):Math.min(e,i)),e}(r,this.constraints[e],this.elastic[e])),n.set(r)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;e&&ib(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=function(e,{top:t,left:i,bottom:s,right:n}){return{x:na(e.x,i,n),y:na(e.y,t,s)}}(i.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:nl(e,"left","right"),y:nl(e,"top","bottom")}}(t),s!==this.constraints&&!ib(e)&&i&&this.constraints&&!this.hasMutatedConstraints&&sB(e=>{var t,s;let n;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=i.layoutBox[e],s=this.constraints[e],n={},void 0!==s.min&&(n.min=s.min-t.min),void 0!==s.max&&(n.max=s.max-t.min),n))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!ib(t))return!1;let s=t.current;es();let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;n.root&&(n.root.scroll=void 0,n.root.updateScroll());let r=function(e,t,i){let s=t1(e,i),{scroll:n}=t;return n&&(tZ(s.x,n.offset.x),tZ(s.y,n.offset.y)),s}(s,n.root,this.visualElement.getTransformPagePoint()),a=(e=n.layout.layoutBox,{x:no(e.x,r.x),y:no(e.y,r.y)});if(i){let e=i(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=tO(e))}return a}startAnimation(e){let{drag:t,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(sB(a=>{if(!np(a,t,this.currentDirection))return;let l=o&&o[a]||{};(!0===r||r===a)&&(l={min:0,max:0});let d={type:"inertia",velocity:i?e[a]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(a,d)})).then(a)}startAxisValueAnimation(e,t){let i=this.getAxisMotionValue(e);return iA(this.visualElement,e),i.start(sA(e,i,0,t,this.visualElement,!1))}stopAnimation(){sB(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor({clientX:e,clientY:t}){let{drag:i}=this.getProps(),s={x:e,y:t},n=this.visualElement.getTransformPagePoint()?.(s)||s,r=this.visualElement.measureViewportBox();sB(e=>{if(!np(e,i,this.currentDirection))return;let t=this.getAxisMotionValue(e),{min:s,max:a}=r[e];t.set((t.get()||0)+n[e]-tU(s,a,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!ib(t)||!i||!this.constraints)return;this.stopAnimation();let s=this.constraints,n={x:0,y:0};sB(e=>{var t,i;let r,a,o,l=this.getAxisMotionValue(e).get();n[e]=(t={min:l,max:l},i=s[e],r=.5,a=sI(t),(o=sI(i))>a?r=sh(i.min,i.max-a,t.min):a>o&&(r=sh(t.min,t.max-o,i.min)),h(0,1,r))});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),sB(t=>{let i=this.getAxisMotionValue(t);if(!np(t,e,null)||!i.get())return;let{min:s,max:r}=this.constraints[t];i.set(tU(s,r,n[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;nh.set(this.visualElement,this);let t=this.visualElement.current,i=s9(t,"pointerdown",e=>{let{drag:i,dragListener:s=!0}
1=this.getProps(),n=e.target,r=n!==t&&(s3.has(n.tagName)||!0===n.isContentEditable);i&&s&&!r&&this.start(e)}),s=()=>{var i,s,n;let r,a,{dragConstraints:o}=this.getProps();ib(o)&&o.current&&(this.constraints=this.resolveRefConstraints(),e||(i=t,s=o.current,r=s2(i,nu(n=()=>this.scalePositionWithinConstraints())),a=s2(s,nu(n)),e=()=>{r(),a()}))},{projection:n}=this.visualElement,r=n.addEventListener("measure",s);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),eD.read(s);let a=sF(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(sB(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),i(),r(),o&&o(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:r=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:r,dragMomentum:a}}}function nu(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function np(e,t,i){return(!0===t||t===e)&&(null===i||i===e)}let nm=e=>(t,i)=>{e&&eD.update(()=>e(t,i),!1,!0)},nf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var nx=r;let ng=!1;class ny extends nx.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=e;n&&(t.group&&t.group.add(n),i&&i.register&&s&&i.register(n),ng&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),nf.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:i,drag:s,isPresent:n}=this.props,{projection:r}=i;return r&&(r.isPresent=n,e.layoutDependency!==t&&r.setOptions({...r.options,layoutDependency:t}),ng=!0,s||e.layoutDependency!==t||void 0===t||e.isPresent!==n?r.willUpdate():this.safeToRemove(),e.isPresent!==n&&(n?r.promote():r.relegate()||eD.postRender(()=>{let e=r.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:i}=e;i&&(i.options.layoutAnchor=t,i.root.didUpdate(),ta.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:s}=e;ng=!0,s&&(s.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nv(e){let[t,i]=function(e=!0){let t=(0,r.useContext)(il);if(null===t)return[!0,null];let{isPresent:i,onExitComplete:s,register:n}=t,a=(0,r.useId)();(0,r.useEffect)(()=>{if(e)return n(a)},[e]);let o=(0,r.useCallback)(()=>e&&s&&s(a),[a,s,e]);return!i&&s?[!1,o]:[!0]}(),s=(0,nx.useContext)(t5);return(0,n.jsx)(ny,{...e,layoutGroup:s,switchLayoutGroup:(0,nx.useContext)(iv),isPresent:t,safeToRemove:i})}let nb=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],nk=e=>"number"==typeof e?e:parseFloat(e),nw=nb.length,nj=e=>"number"==typeof e||T.test(e);function nS(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let nT=nN(0,.5,sa),nP=nN(.5,.95,eE);function nN(e,t,i){return s=>s<e?0:s>t?1:i(sh(e,t,s))}function nA(e,t){e.min=t.min,e.max=t.max}function nE(e,t){nA(e.x,t.x),nA(e.y,t.y)}function nC(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nM(e,t,i,s,n){return e-=t,e=s+1/i*(e-s),void 0!==n&&(e=s+1/n*(e-s)),e}function n_(e,t,[i,s,n],r,a){!function(e,t=0,i=1,s=.5,n,r=e,a=e){if(S.test(t)&&(t=parseFloat(t),t=tU(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let o=tU(r.min,r.max,s);e===r&&(o-=t),e.min=nM(e.min,t,i,o,n),e.max=nM(e.max,t,i,o,n)}(e,t[i],t[s],t[n],t.scale,r,a)}let nV=["x","scaleX","originX"],nD=["y","scaleY","originY"];function nR(e,t,i,s){n_(e.x,t,nV,i?i.x:void 0,s?s.x:void 0),n_(e.y,t,nD,i?i.y:void 0,s?s.y:void 0)}function nL(e){return 0===e.translate&&1===e.scale}function nB(e){return nL(e.x)&&nL(e.y)}function nF(e,t){return e.min===t.min&&e.max===t.max}function nz(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function nI(e,t){return nz(e.x,t.x)&&nz(e.y,t.y)}function n$(e){return sI(e.x)/sI(e.y)}function nO(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class nU{constructor(){this.members=[]}add(e){eY(this.members,e);for(let t=this.members.length-1;t>=0;t--){let i=this.members[t];if(i===e||i===this.lead||i===this.prevLead)continue;let s=i.instance;s&&!1!==s.isConnected||i.snapshot||(eX(this.members,i),i.unmount())}e.scheduleRender()}remove(e){if(eX(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){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.updateSnapshot(),e.scheduleRender();let{layoutDependency:s}=i.options,{layoutDependency:n}=e.options;(void 0===s||s!==n)&&(e.resumeFrom=i,t&&(i.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root?.isU
1pdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}function nK(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let nW={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!T.test(e))return e;else e=parseFloat(e);let i=nK(e,t.target.x),s=nK(e,t.target.y);return`${i}% ${s}%`}},nH={borderRadius:{...nW,applyTo:[...nb]},borderTopLeftRadius:nW,borderTopRightRadius:nW,borderBottomLeftRadius:nW,borderBottomRightRadius:nW,boxShadow:{correct:(e,{treeScale:t,projectionDelta:i})=>{let s=F.parse(e);if(s.length>5)return e;let n=F.createTransformer(e),r=+("number"!=typeof s[0]),a=i.x.scale*t.x,o=i.y.scale*t.y;s[0+r]/=a,s[1+r]/=o;let l=tU(a,o,.5);return"number"==typeof s[2+r]&&(s[2+r]/=l),"number"==typeof s[3+r]&&(s[3+r]/=l),n(s)}}},nY=(e,t)=>e.depth-t.depth;class nX{constructor(){this.children=[],this.isDirty=!1}add(e){eY(this.children,e),this.isDirty=!0}remove(e){eX(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(nY),this.isDirty=!1,this.children.forEach(e)}}Object.assign(tB,{...nH,...tB});let nq=["","X","Y","Z"],nG=0;function nZ(e,t,i,s){let{latestValues:n}=t;n[e]&&(i[e]=n[e],t.setStaticValue(e,0),s&&(s[e]=0))}function nJ({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(e={},i=t?.()){this.id=nG++,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(n1),this.nodes.forEach(rt),this.nodes.forEach(ri),this.nodes.forEach(n2)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new nX)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new eq),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let i=this.eventHandlers.get(e);i&&i.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=sY(t)&&!(sY(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:i,layout:s,visualElement:n}=this.options;if(n&&!n.current&&n.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),e){let i,s=0,n=()=>this.root.updateBlockedByResize=!1;eD.read(()=>{s=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==s){let t,r;s=e,this.root.updateBlockedByResize=!0,i&&i(),t=e5.now(),r=({timestamp:e})=>{let i=e-t;i>=250&&(eR(r),n())},eD.setup(r,!0),i=()=>eR(r),nf.hasAnimatedSinceResize&&(nf.hasAnimatedSinceResize=!1,this.nodes.forEach(re))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||s)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||n.getDefaultTransition()||rl,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=n.getProps(),l=!this.targetLayout||!nI(this.targetLayout,s),d=!t&&i;if(this.options.layoutRoot||this.resumeFrom||d||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...iN(r,"layout"),onPlay:a,onComplete:o};(n.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,d,t.path)}else t||re(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}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(),eR(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.forEac
1h(rs),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:i}=t.options;if(!i)return;let s=i.props[iy];if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(s,"transform",eD,!(e||i))}let{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&e(n)}(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,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:i}=this.options;if(void 0===t&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(n5),this.nodes.forEach(n3);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(n6);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(n9),this.nodes.forEach(n8),this.nodes.forEach(n7),this.nodes.forEach(nQ),this.nodes.forEach(n0)):this.nodes.forEach(n6),this.clearAllSnapshots();let e=e5.now();eV.delta=h(0,1e3/60,e-eV.timestamp),eV.timestamp=e,eV.isProcessing=!0,eL.update.process(eV),eL.preRender.process(eV),eL.render.process(eV),eV.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ta.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(n4),this.sharedNodes.forEach(rn)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eD.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eD.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||sI(this.snapshot.measuredBox.x)||sI(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||(this.layoutCorrected=Z()),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=s(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!n)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!nB(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,r=s!==this.prevTransformTemplateValue;e&&this.instance&&(t||tH(this.latestValues)||r)&&(n(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let i=this.measurePageBox(),s=this.removeElementScroll(i);return e&&(s=this.removeTransform(s)),rc((t=s).x),rc(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Z();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rp))){let{scroll:e}=this.root;e&&(tZ(t.x,e.offset.x),tZ(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Z();if(nE(t,e),this.scroll?.wasRoot)return t;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:n,options:r}=s;s!==this.root&&n&&r.layoutScroll&&(n.wasRoot&&nE(t,e),tZ(t.x,n.offset.x),tZ(t.y,n.offset.y))}return t}applyTransform(e,t=!1,i){let s=i||Z();nE(s,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(tZ(s.x,-i.scroll.offset.x),tZ(s.y,-i.scroll.offset.y)),tH(i.latestValues)&&t0(s,i.latestValues,i.layout?.layoutBox)}return tH(this.latestValues)&&t0(s,this.latestValues,this.layout?.layoutBox),s}removeTransform(e){let t=Z();nE(t,e);for(let e=0;e<this.path.length;e++){let i,s=this.path[e];tH(s.latestValues)&&(s.instance&&(tW(s.latestValues)&&s.updateSnapshot(),nE(i=Z(),s.measurePageBox())),nR(t,s.latestValues,s.snapshot?.layoutBox,i))}return tH(this.latestValues)&&nR(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!==eV.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
1isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==t;if(!(e||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:n}=this.options;if(!this.layout||!(s||n))return;this.resolvedRelativeTargetAt=eV.timestamp;let r=this.getClosestProjectingParent();if(this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&r&&r.layout?this.createRelativeTarget(r,this.layout.layoutBox,r.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=Z(),this.targetWithTransforms=Z()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,o,l,d;this.forceRelativeParentToResolveTarget(),a=this.target,o=this.relativeTarget,l=this.relativeParent.target,d=this.options.layoutAnchor||void 0,sU(a.x,o.x,l.x,d?.x),sU(a.y,o.y,l.y,d?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):nE(this.target,this.layout.layoutBox),tG(this.target,this.targetDelta)):nE(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&r&&!!r.resumingFrom==!!this.resumingFrom&&!r.options.layoutScroll&&r.target&&1!==this.animationProgress?this.createRelativeTarget(r,this.target,r.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||tW(this.parent.latestValues)||tY(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)}createRelativeTarget(e,t,i){this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Z(),this.relativeTargetOrigin=Z(),sW(this.relativeTargetOrigin,t,i,this.options.layoutAnchor||void 0),nE(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===eV.timestamp&&(i=!1),i)return;let{layout:s,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||n))return;nE(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;!function(e,t,i,s=!1){let n,r,a=i.length;if(a){t.x=t.y=1;for(let o=0;o<a;o++){r=(n=i[o]).projectionDelta;let{visualElement:a}=n.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(tZ(e.x,-n.scroll.offset.x),tZ(e.y,-n.scroll.offset.y)),r&&(t.x*=r.x.scale,t.y*=r.y.scale,tG(e,r)),s&&tH(n.latestValues)&&t0(e,n.latestValues,n.layout?.layoutBox))}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=Z());let{target:o}=e;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nC(this.prevProjectionDelta.x,this.projectionDelta.x),nC(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),sO(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&nO(this.projectionDelta.x,this.prevProjectionDelta.x)&&nO(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=q(),this.projectionDelta=q(),this.projectionDeltaWithTransform=q()}setAnimationOrigin(e,t=!1,i){let s,n=this.snapshot,r=n?n.latestValues:{},a={...this.latestValues},o=q();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=Z(),d=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),c=!h||h.members.length<=1,u=!!(d&&!c&&!0===this.options.crossfade&&!this.path.some(ro));this.animationProgress=0;let p=i?.interpolateProjection(e);this.mixTargetDelta=t=>{let i=t/1e3,n=p?.(i);if(n?(o.x.translate=n.x,o.x.scale=tU(e.x.scale,1,i),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=n.y,o.y.scale=tU(e.y.scale,1,i),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(rr(o.x,e.x,i),rr(o.y,e.y,i)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,m,f,x,g,y;sW(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,x=this.relativeTargetOrigin,g=l,y=i,ra(f.x,x.x,g.x,y),ra(f.y,x.y,g.y,y),s&&(h=this.relativeTarget,m=s,nF(h.x,m.x)&&nF(h.y,m.y))&&(this.isProjectionDirty=!1),s||(s=Z()),nE(s,this.relativeTarget)}d&&(this.animationValues=a,function(e,t,i,s,n,r){n?(e.opacity=tU(0,i.opacity??1,nT(s)),e.opacityExit=tU(t.opacity??1,0,nP(s))):r&&(e.opacity=tU(t.opacity??1,i.opacity??1,s));for(let n=0;n<nw;n++){let r=nb[n],a=nS(t,r),o=nS(i,r);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||nj(a)===nj(o)?(e[r]=Math.max(tU(nk(a),nk(o),s),0),(S.test(o)||S.test(a))&&(e[r]+="%")):e[r]=o)}(t.rotate||i.rotate)&&(e.rotate=tU(t.rotate||0,i.rotate||0,s))}(a,r,this.latestValues,i,u,c)),n&&void 0!==n.rotate&&(this.animationValues||(this.animationValues=a),this.animationValues.pathRotation=n.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(eR(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eD.update(()=>{var t,i,s;let n;nf.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=th(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,i=[0,1e3],s={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}},(n=J(t)?t:th(t)).start(sA("",n,i,s)),n.animation),function(e,t){let i=globalThis.__MOTION_INSPECT__;if(i)try{i({...e6("layout-animation-start",e),node:t})}catch{}}(this.currentAnimation,this),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,layout:i,latestValues:s}=e,{target:n}=e;
1if(t&&n&&i){if(this!==e&&this.layout&&i&&ru(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||Z();let t=sI(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let i=sI(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+i}nE(t,n),t0(t,s),sO(this.projectionDeltaWithTransform,this.layoutCorrected,t,s)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new nU),this.sharedNodes.get(e).add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.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:i}={}){let s=this.getStack();s&&s.promote(this,i),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:i}=e;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(t=!0),!t)return;let s={};i.z&&nZ("z",e,s,this.animationValues);for(let t=0;t<nq.length;t++)nZ(`rotate${nq[t]}`,e,s,this.animationValues),nZ(`skew${nq[t]}`,e,s,this.animationValues);for(let t in e.render(),s)e.setStaticValue(t,s[t]),this.animationValues&&(this.animationValues[t]=s[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=ia(t?.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none";return}let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=ia(t?.pointerEvents)||""),this.hasProjected&&!tH(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1);return}e.visibility="";let n=s.animationValues||s.latestValues;this.applyTransformsToTarget();let r=function(e,t,i){let s="",n=e.x.translate/t.x,r=e.y.translate/t.y,a=i?.z||0;if((n||r||a)&&(s=`translate3d(${n}px, ${r}px, ${a}px) `),(1!==t.x||1!==t.y)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),i){let{transformPerspective:e,rotate:t,pathRotation:n,rotateX:r,rotateY:a,skewX:o,skewY:l}=i;e&&(s=`perspective(${e}px) ${s}`),t&&(s+=`rotate(${t}deg) `),n&&(s+=`rotate(${n}deg) `),r&&(s+=`rotateX(${r}deg) `),a&&(s+=`rotateY(${a}deg) `),o&&(s+=`skewX(${o}deg) `),l&&(s+=`skewY(${l}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(s+=`scale(${o}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(r=i(n,r)),e.transform=r;let{x:a,y:o}=this.projectionDelta;for(let t in e.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,s.animationValues?e.opacity=s===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:e.opacity=s===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,tB){if(void 0===n[t])continue;let{correct:i,applyTo:a,isCSSVariable:o}=tB[t],l="none"===r?n[t]:i(n[t],s);if(a){let t=a.length;for(let i=0;i<t;i++)e[a[i]]=l}else o?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=s===this?ia(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(n3),this.root.sharedNodes.clear()}}}function nQ(e){e.updateLayout()}function n0(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=e.layout,{animationType:n}=e.options,r=t.source!==e.layout.source;if("size"===n)sB(e=>{let s=r?t.measuredBox[e]:t.layoutBox[e],n=sI(s);s.min=i[e].min,s.max=s.min+n});else if("x"===n||"y"===n){let e="x"===n?"y":"x";nA(r?t.measuredBox[e]:t.layoutBox[e],i[e])}else ru(n,t.layoutBox,i)&&sB(s=>{let n=r?t.measuredBox[s]:t.layoutBox[s],a=sI(i[s]);n.max=n.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[s].max=e.relativeTarget[s].min+a)});let a=q();sO(a,i,t.layoutBox);let o=q();r?sO(o,e.applyTransform(s,!0),t.measuredBox):sO(o,i,t.layoutBox);let l=!nB(a),d=!1;if(!e.resumeFrom){let s=e.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:r}=s;if(n&&r){let a=e.options.layoutAnchor||void 0,o=Z();sW(o,t.layoutBox,n.layoutBox,a);let l=Z();sW(l,i,r.layoutBox,a),nI(o,l)||(d=!0),s.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=o,e.relativeParent=s)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:d})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function n1(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 n2(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function n4(e){e.clearSnapshot()}function n3(e){e.clearMeasurements()}function n5(e){e.isLayoutDirty=!0,e.updateLayout()}function n6(e){e.isLayoutDirty=!1}function n9(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function n8(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function n7(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function re(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function rt(e){e.resolveTargetDelta()}function ri(e){e.calcProjection()}
1function rs(e){e.resetSkewAndRotation()}function rn(e){e.removeLeadSnapshot()}function rr(e,t,i){e.translate=tU(t.translate,0,i),e.scale=tU(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function ra(e,t,i,s){e.min=tU(t.min,i.min,s),e.max=tU(t.max,i.max,s)}function ro(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let rl={duration:.45,ease:[.4,0,.1,1]},rd=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),rh=rd("applewebkit/")&&!rd("chrome/")?Math.round:eE;function rc(e){e.min=rh(e.min),e.max=rh(e.max)}function ru(e,t,i){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(n$(t)-n$(i)))}function rp(e){return e!==e.root&&e.scroll?.wasRoot}let rm=nJ({attachResizeListener:(e,t)=>sF(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),rf={current:void 0},rx=nJ({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rf.current){let e=new rm({});e.mount(window),e.setOptions({layoutScroll:!0}),rf.current=e}return rf.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function rg(e,t){let i=sX(e),s=new AbortController;return[i,{passive:!0,...t,signal:s.signal},()=>s.abort()]}function ry(e,t,i){let{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover","Start"===i);let n=s["onHover"+i];n&&eD.postRender(()=>n(t,s6(t)))}let rv=(e,t)=>!!t&&(e===t||rv(e,t.parentElement)),rb=new WeakSet;function rk(e){return t=>{"Enter"===t.key&&e(t)}}function rw(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function rj(e){return s5(e)&&!(sz.x||sz.y)}let rS=new WeakSet;function rT(e,t,i){let{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap","Start"===i);let n=s["onTap"+("End"===i?"":i)];n&&eD.postRender(()=>n(t,s6(t)))}let rP=new WeakMap,rN=new WeakMap,rA=e=>{let t=rP.get(e.target);t&&t(e)},rE=e=>{e.forEach(rA)},rC={some:0,all:1},rM=function(e,t){if("u"<typeof Proxy)return iw;let i=new Map,s=(i,s)=>iw(i,s,e,t);return new Proxy((e,t)=>s(e,t),{get:(n,r)=>"create"===r?s:(i.has(r)||i.set(r,iw(r,void 0,e,t)),i.get(r))})}({animation:{Feature:class extends ij{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:i})=>(function(e,t,i={}){return e.notify("AnimationStart",t),(Array.isArray(t)?Promise.all(t.map(t=>s_(e,t,i))):"string"==typeof t?s_(e,t,i):Promise.all(sC(e,iS(e,t,i.custom),i))).then(()=>{e.notify("AnimationComplete",t)})})(e,t,i))),i=sR(),s=!0,n=!1;function r(r){let{props:a,parent:o,manuallyAnimateOnMount:l}=e,d=s||n,h=[],c=new Set,u={},p=1/0,m=e;do m=!1!==m.props.inherit&&m.parent;while(m&&!m.isControllingVariants)if(sD.forEach((t,s)=>{var n,f;let x=i[t],g=a[t],y=m&&m.props[t],v=void 0!==g?g:tp(y)||!1===y?y:void 0,b=tp(v),k=t===r?x.isActive:null;!1===k&&(p=s);let w=b&&void 0===g&&!(d&&l);if(x.protectedKeys={...u},!x.isActive&&null===k||!v&&!x.prevProp||tu(v)||"boolean"==typeof v)return;if("exit"===t&&x.isActive&&!0!==k){u={...u,...x.prevResolvedValues};return}let j=(n=x.prevProp,"string"==typeof(f=v)?f!==n:!!Array.isArray(f)&&!sV(f,n)),S=j||b&&(k&&!w||s>p),T=!1,P=Array.isArray(v)?v:[v],N={};if(!1!==k)for(let i of P){let{transition:s,transitionEnd:n,...r}=iS(e,i,iT(e,t))||{};N={...N,...r,...n}}let{prevResolvedValues:A}=x;for(let t in{...A,...N}){if(t in u)continue;let i=N[t],s=A[t],n=Array.isArray(i)&&Array.isArray(s)?!sV(i,s)||j:i!==s;if(n&&null==i)c.add(t);else if(n||void 0!==i&&c.has(t)){S=!0,c.delete(t)&&(T=!0),x.needsAnimating[t]=!0;let i=e.getValue(t);i&&(i.liveStyle=!1)}else x.protectedKeys[t]=!0}if(x.prevProp=v,x.prevResolvedValues=N,x.isActive&&(u={...u,...N}),S&&(!(w&&j)||T))for(let i of P){let s={type:t};if("string"==typeof i&&d&&l&&o?.enteringChildren){let t=iS(o,i)?.transition?.delayChildren;s.delay=sM(o.enteringChildren,e,t)}h.push({animation:i,options:s})}}),c.size){let{initial:t}=a,i={},s="boolean"!=typeof t&&iS(e,Array.isArray(t)?t[0]:t,e.presenceContext?.custom);
1s&&s.transition&&(i.transition=s.transition),c.forEach(n=>{let r=e.getValue(n);r&&(r.liveStyle=!0);let o=s&&!Array.isArray(t)?s[n]:void 0,l=e.getBaseTargetFromProps(a,n);i[n]=(void 0!==o?o:void 0===l||J(l)?void 0===e.initialValues[n]?e.baseTarget[n]:void 0:l)??null}),h.push({animation:i})}let f=d&&e.blockInitialAnimation||s&&!l&&(!1===a.initial||a.initial===a.animate);return s=n=!1,!f&&h.length?t(h):Promise.resolve()}return{animateChanges:r,setActive:function(t,s){if(i[t].isActive===s)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,s)),i[t].isActive=s;let n=r(t);for(let e in i)i[e].protectedKeys={};return n},setAnimateFunction:i=>{t=i(e)},getState:()=>i,reset:()=>{i=sR(),n=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();tu(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 ij{constructor(){super(...arguments),this.id=sL++}update(){let{presenceContext:e,prevPresenceContext:t,animationState:i}=this.node;if(!e||!i)return;let{isPresent:s,onExitComplete:n}=e,r=t?.isPresent;if(s===r)return;if(s&&!1===r){if(!0===this.exit){let{initial:e}=this.node.getProps();if(e&&!Array.isArray(e)){let{transition:t,transitionEnd:i,...s}=iS(this.node,e)||{};for(let e in s)this.node.getValue(e)?.jump(s[e])}this.node.blockInitialAnimation=!1,i.reset(),i.animateChanges()}else i.setActive("exit",!1);this.exit=void 0;return}let a=this.exit=i.setActive("exit",!s);n&&!s&&a.then(()=>{this.exit===a&&(this.exit=!0,n(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 ij{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:s,margin:n,amount:r="some",once:a}=i,o={root:s?s.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:rC[r]},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:i,onViewportLeave:s}=this.node.getProps(),n=t?i:s;n&&n(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let i=e||document;rN.has(i)||rN.set(i,{});let s=rN.get(i),n=JSON.stringify(t);return s[n]||(s[n]=new IntersectionObserver(rE,{root:e,...t})),s[n]}(o),rP.set(e,l),t.observe(e),()=>{rP.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 i=>e[i]!==t[i]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends ij{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:i}=this.node.props;this.unmount=function(e,t,i={}){let[s,n,r]=rg(e,i),a=e=>{let s=e.currentTarget;if(!rj(e)||rS.has(e))return;rb.add(s),i.stopPropagation&&rS.add(e);let r=t(s,e),a={...n,capture:!0},o=(e,t)=>{window.removeEventListener("pointerup",l,a),window.removeEventListener("pointercancel",d,a),rb.has(s)&&rb.delete(s),rj(e)&&"function"==typeof r&&r(e,{success:t})},l=e=>{o(e,s===window||s===document||i.useGlobalTarget||rv(s,e.target))},d=e=>{o(e,!1)};window.addEventListener("pointerup",l,a),window.addEventListener("pointercancel",d,a)};return s.forEach(e=>{(i.useGlobalTarget?window:e).addEventListener("pointerdown",a,n),sH(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)&&(e.addEventListener("focus",e=>((e,t)=>{let i=e.currentTarget;if(!i)return;let s=rk(()=>{if(rb.has(i))return;rw(i,"down");let e=rk(()=>{rw(i,"up")});i.addEventListener("keyup",e,t),i.addEventListener("blur",()=>rw(i,"cancel"),t)});i.addEventListener("keydown",s,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),t)}
1)(e,n)),s4.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),r}(e,(e,t)=>(rT(this.node,t,"Start"),(e,{success:t})=>rT(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends ij{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=iE(sF(this.node.current,"focus",()=>this.onFocus()),sF(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends ij{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[s,n,r]=rg(e,i);return s.forEach(e=>{let i,s=!1,r=!1,a=t=>{i&&(i(t),i=void 0),e.removeEventListener("pointerleave",l)},o=e=>{s=!1,window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",o),r&&(r=!1,a(e))},l=e=>{if("touch"!==e.pointerType){if(s){r=!0;return}a(e)}};e.addEventListener("pointerenter",s=>
1{if("touch"===s.pointerType||sz.x||sz.y)return;r=!1;let a=t(e,s);"function"==typeof a&&(i=a,e.addEventListener("pointerleave",l,n))},n),e.addEventListener("pointerdown",()=>{s=!0,window.addEventListener("pointerup",o,n),window.addEventListener("pointercancel",o,n)},n)}),r}(e,(e,t)=>(ry(this.node,t,"Start"),e=>ry(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends ij{constructor(){super(...arguments),this.removePointerDownListener=eE}onPointerDown(e){this.session=new nt(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:s8(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:nm(e),onStart:nm(t),onMove:nm(i),onEnd:(e,t)=>{delete this.session,s&&eD.postRender(()=>s(e,t))}}}mount(){this.removePointerDownListener=s9(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 ij{constructor(e){super(e),this.removeGroupControls=eE,this.removeListeners=eE,this.controls=new nc(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eE}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:rx,MeasureLayout:nv},layout:{ProjectionNode:rx,MeasureLayout:nv}},(e,t)=>t.isSVG??t3(e)?new t$(t):new t2(t,{allowProjection:e!==r.Fragment}));function r_(e){let t=id(()=>th(e)),{isStatic:i}=(0,r.useContext)(t9);if(i){let[,i]=(0,r.useState)(e);(0,r.useEffect)(()=>t.on("change",i),[])}return t}let rV={sm:"text-sm leading-tight",base:"text-base leading-snug",lg:"text-lg leading-snug",xl:"text-xl leading-6"},rD=10,rR="cp-v2";function rL(e,t){try{localStorage.setItem(`${rR}-note-${e}`,JSON.stringify(t))}catch{}}let rB=(0,r.memo)(function({index:e,w:t,h:i,cx:s,cy:a,rot:o,color:l,text:d,fontSize:h="lg",constraintsRef:c}){let[u,p]=(0,r.useState)(d),[m,f]=(0,r.useState)(!1),x=(0,r.useRef)(null),g=(0,r.useRef)(null),y=r_(0),v=r_(0);(0,r.useEffect)(()=>{let t=function(e){try{let t=localStorage.getItem(`${rR}-note-${e}`);if(t)return JSON.parse(t)}catch{}return null}(e);t&&(y.set(t.x),v.set(t.y),p(t.text))},[e]),(0,r.useEffect)(()=>{m&&g.current&&(g.current.textContent=u,g.current.focus())},[m]);let b=(0,r.useCallback)(()=>{rL(e,{x:y.get(),y:v.get(),text:u})},[e,y,v,u]),k=(0,r.useCallback)(t=>{let i=t.currentTarget.innerText;p(i),f(!1),rL(e,{x:y.get(),y:v.get(),text:i})},[e,y,v]),w=(0,r.useCallback)(()=>{x.current&&(rD+=1,x.current.style.zIndex=String(rD))},[]);return(0,n.jsxs)(rM.div,{ref:x,className:`absolute select-none ${m?"cursor-text":"cursor-grab active:cursor-grabbing"}`,drag:!m,dragConstraints:c,dragElastic:.05,dragMomentum:!1,dragTransition:{bounceStiffness:300,bounceDamping:30},onDragStart:w,onDragEnd:b,onPointerDown:w,onDoubleClick:()=>f(!0),initial:{opacity:0,scale:.4},animate:{opacity:1,scale:1},whileDrag:{scale:1.03,boxShadow:"0 12px 28px rgba(0,0,0,0.18), 0 4px 10px rgba(0,0,0,0.08)",transition:{duration:0}},transition:{duration:.4,delay:.15+e%20*.05,ease:"easeOut"},style:{x:y,y:v,width:`${t}px`,height:`${i}px`,left:`calc(50% + ${s}px - ${t/2}px)`,top:`calc(50% + ${a}px - ${i/2}px)`,rotate:`${o}deg`,zIndex:10,backgroundColor:l,borderRadius:"4px",boxShadow:"0 4px 14px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04)",willChange:"transform"},children:[(0,n.jsx)("div",{className:"absolute -top-2.5 left-1/2 w-8 h-3.5 bg-white/50 backdrop-blur-[1px] shadow-sm",style:{transform:`translateX(-50%) rotate(${e%2==0?-2:1}deg)`}}),(0,n.jsx)("div",{ref:g,contentEditable:m,suppressContentEditableWarning:!0,spellCheck:!1,onBlur:k,className:`w-full h-full p-3 font-handwritten ${rV[h]} text-[#1f1b16] outline-none overflow-hidden whitespace-pre-wrap`,style:{pointerEvents:m?"auto":"none",caretColor:"rgba(0,0,0,0.5)"},children:!m&&u})]})});var rF=e.i(73116);let rz=8,rI="cp-v1";function r$(e,t){try{localStorage.setItem(`${rI}-polaroid-${e}`,JSON.stringify(t))}catch{}}let rO=(0,r.memo)(function({index:e,src:t,alt:i,caption:s,cx:a,cy:o,rot:l,small:d=!1,constraintsRef:h}){let[c,u]=(0,r.useState)(s),[p,m]=(0,r.useState)(!1),f=(0,r.useRef)(null),x=(0,r.useRef)(null),g=r_(0),y=r_(0);(0,r.useEffect)(()=>{let t=function(e){try{let t=localStorage.getItem(`${rI}-polaroid-${e}`);if(t)return JSON.parse(t)}catch{}return null}(e);t&&(g.set(t.x),y.set(t.y),u(t.caption))},[e]),(0,r.useEffect)(()=>{p&&x.current&&(x.current.textContent=c,x.current.focus())},[p]);let v=d?140:200,b=(0,r.useCallback)(()=>{f.current&&(rz+=1,f.current.style.zIndex=String(rz))},[]),k=(0,r.useCallback)(()=>{r$(e,{x:g.get(),y:y.get(),caption:c})},[e,g,y,c]),w=(0,r.useCallback)(t=>{let i=t.currentTarget.innerText;u(i),m(!1),r$(e,{x:g.get(),y:y.get(),caption:i})},[e,g,y]);return(0,n.jsxs)(rM.div,{ref:f,className:`absolute select-none ${p?"cursor-text":"cursor-grab active:cursor-grabbing"}`,drag:!p,dragConstraints:h,dragElastic:.05,dragMomentum:!1,dragTransition:{bounceStiffness:300,bounceDamping:30},onDragStart:b,onDragEnd:k,onPointerDown:b,onDoubleClick:()=>m(!0),initial:{opacity:0,scale:.4}
1,animate:{opacity:1,scale:1},whileDrag:{scale:1.03,boxShadow:"0 14px 30px rgba(0,0,0,0.2), 0 4px 10px rgba(0,0,0,0.1)",transition:{duration:0}},transition:{duration:.45,delay:.3+e%20*.08,ease:"easeOut"},style:{x:g,y,left:`calc(50% + ${a}px - ${v/2}px)`,top:`calc(50% + ${o}px - ${d?90:130}px)`,rotate:`${l}deg`,zIndex:9,willChange:"transform"},children:[(0,n.jsx)("div",{className:"absolute -top-2.5 left-1/2 w-10 h-3.5 bg-white/50 backdrop-blur-[1px] shadow-sm z-10",style:{transform:`translateX(-50%) rotate(${e%2==0?2:-1}deg)`}}),(0,n.jsxs)("div",{className:`bg-paper-raised dark:bg-paper-deep-raised ${d?"p-1.5 pb-7":"p-2 pb-12"}`,style:{width:`${v}px`,boxShadow:"0 4px 14px rgba(0,0,0,0.1), 0 1px 4px rgba(0,0,0,0.05)"},children:[(0,n.jsx)("div",{className:"relative w-full aspect-square overflow-hidden bg-rule dark:bg-rule-deep",children:(0,n.jsx)(rF.default,{src:t,alt:i,fill:!0,className:"object-cover object-center",sizes:`${v}px`,draggable:!1})}),(0,n.jsx)("div",{ref:x,contentEditable:p,suppressContentEditableWarning:!0,spellCheck:!1,onBlur:w,className:`mt-1.5 font-handwritten text-ink dark:text-ink-deep text-center outline-none whitespace-pre-wrap ${d?"text-base":"text-lg"}`,style:{pointerEvents:p?"auto":"none",caretColor:"rgba(0,0,0,0.4)",minHeight:d?"20px":"28px"},children:!p&&c})]})]})}),rU="#F0E4A8",rK="#D5DCC8",rW="#EDE8DA",rH=[{w:150,h:130,cx:-480,cy:-180,rot:-5,color:rU,textKey:"note_1",fontSize:"lg"},{w:150,h:135,cx:-510,cy:-10,rot:6,color:rK,textKey:"note_2",fontSize:"sm"},{w:150,h:125,cx:-460,cy:150,rot:-3,color:rW,textKey:"note_3",fontSize:"lg"},{w:145,h:115,cx:-260,cy:200,rot:-7,color:rK,textKey:"note_5",fontSize:"base"},{w:145,h:120,cx:250,cy:-260,rot:5,color:rU,textKey:"note_6",fontSize:"base"},{w:140,h:120,cx:480,cy:-50,rot:-4,color:"#EFC5BC",textKey:"note_7",fontSize:"base"},{w:140,h:115,cx:480,cy:90,rot:-6,color:rU,textKey:"note_9",fontSize:"base"},{w:140,h:125,cx:250,cy:230,rot:7,color:rK,textKey:"note_10",fontSize:"sm"}],rY=[{w:120,h:95,cx:-120,cy:-200,rot:-7,color:rU,textKey:"note_1",fontSize:"base"},{w:115,h:100,cx:110,cy:-190,rot:8,color:rK,textKey:"note_4",fontSize:"sm"},{w:115,h:100,cx:-130,cy:180,rot:5,color:"#F5C9A8",textKey:"note_6",fontSize:"sm"},{w:115,h:95,cx:100,cy:190,rot:-6,color:rW,textKey:"note_9",fontSize:"sm"}],rX=[{src:"/images/hero-flatanger.jpg",altKey:"polaroid_alt",captionKey:"polaroid_caption",cx:-180,cy:200,rot:-3},{src:"/images/font-dog.jpg",altKey:"polaroid_font_alt",captionKey:"polaroid_font_caption",cx:280,cy:180,rot:4},{src:"/images/el-cap.jpg",altKey:"polaroid_elcap_alt",captionKey:"polaroid_elcap_caption",cx:-100,cy:-240,rot:-5},{src:"/images/korona-gym.jpg",altKey:"polaroid_korona_alt",captionKey:"polaroid_korona_caption",cx:360,cy:-120,rot:6},{src:"/images/night-send.jpg",altKey:"polaroid_night_alt",captionKey:"polaroid_night_caption",cx:70,cy:60,rot:-2}];e.s(["Memos",0,()=>{let e=(0,a.useTranslations)("memos"),t=(0,r.useRef)(null);return(0,n.jsxs)("section",{id:"memos",className:"py-24 md:py-32",children:[(0,n.jsx)("div",{className:"container-width",children:(0,n.jsxs)(o.AnimatedSection,{animation:"fade-up",className:"max-w-3xl mb-12 md:mb-16",children:[(0,n.jsx)("p",{className:"text-xs font-mono uppercase tracking-[0.2em] text-ink-soft dark:text-ink-deep-soft mb-6",children:e("eyebrow")}),(0,n.jsx)("h2",{className:"font-display text-4xl md:text-5xl lg:text-6xl text-ink dark:text-ink-deep leading-[1.1] tracking-tight mb-6",children:e("title")}),(0,n.jsx)("p",{className:"text-lg md:text-xl text-ink-soft dark:text-ink-deep-soft leading-relaxed",children:e("subtitle")})]})}),(0,n.jsxs)("div",{ref:t,className:"relative h-[640px] md:h-[760px] overflow-hidden",children:[(0,n.jsxs)("div",{className:"hidden md:block",children:[rX.map((i,s)=>(0,n.jsx)(rO,{index:50+s,constraintsRef:t,src:i.src,alt:e(i.altKey),caption:e(i.captionKey),cx:i.cx,cy:i.cy,rot:i.rot},`d-pol-${s}`)),rH.map((i,s)=>(0,n.jsx)(rB,{index:s,constraintsRef:t,...i,text:e(i.textKey)},`d-${s}`))]}),(0,n.jsxs)("div",{className:"md:hidden",children:[(0,n.jsx)(rO,{index:150,constraintsRef:t,src:"/images/hero-flatanger.jpg",alt:e("polaroid_alt"),caption:e("polaroid_caption"),cx:0,cy:0,rot:-3,small:!0}),rY.map((i,s)=>(0,n.jsx)(rB,{index:s+100,constraintsRef:t,...i,text:e(i.textKey)},`m-${s}`))]})]}),(0,n.jsx)("div",{className:"container-width mt-8",children:(0,n.jsx)("p",{className:"text-xs font-mono uppercase tracking-[0.2em] text-ink-soft dark:text-ink-deep-soft text-center",children:e("footnote")})})]})}],32714)},93560,e=>{"use strict";var t=e.i(15020),i=e.i(1956),s=e.i(73116),n=e.i(73300),r=e.i(84095),a=e.i(85264);let o=["chat","calendar","dashboard"],l=["workout","menu","timers"],d={workout:"/app-screenshots/watch/cp-ai-apple-watch-apps.png",menu:"/app-screenshots/watch/cp-ai-apple-watch-app-menu.png",timers:"/app-screenshots/watch/cp-ai-apple-watch-repeaters.png"};e.s(["PlatformShowcase",0,()=>{let e=(0,n.useTranslations)("platformShowcase"),{resolvedTheme:h}=(0,r.useTheme)(),[c,u]=(0,i.useState)(!1);(0,i.useEffect)(()=>{u(!0)},[]);let p=c&&"light"===h?"light":"dark",m={chat:`/app-screenshots/mobile/cp-ai-ios-chat-${p}.png`,calendar:`/app-screenshots/mobile/cp-ai-ios-calendar-${p}.png`,dashboard:`/app-screenshots/mobile/cp-ai-ios-dashboard-${p}.png`};return(0,t.jsx)("section",{className:"py-24 md:py-32 bg-paper-raised dark:bg-paper-deep-raised",children:(0,t.jsxs)("div",{className:"container-width",children:[(0,t.jsxs)(a.AnimatedSection,{animation:"fade-up",className:"max-w-3xl mb-16 md:mb-20",children:[(0,t.jsx)("p",{className:"text-xs font-mono uppercase tracking-[0.2em] text-ink-soft dark:text-ink-deep-soft mb-6",children:e("eyebrow")}),(0,t.jsx)("h2",{className:"font-display text-4xl md:text-5xl lg:text-6xl text-ink dark:text-ink-deep leading-[1.1] tracking-tight mb-6",children:e("title")}),(0,t.jsx)("p",{className:"text-lg md:text-xl text-ink-soft dark:text-ink-deep-soft leading-relaxed",children:e("subtitle")})]}),(0,t.jsxs)(a.AnimatedSection,{animation:"fade-up",className:"mb-20 md:mb-28",children:[(0,t.jsx)("p",{className:"text-xs font-mono uppercase tracking-[0.2em] text-blaze mb-10",children:e("phone_label")}),(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-12 md:gap-10 lg:gap-16",children:o.map(i=>(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"mb-6 flex justify-center",children:(0,t.jsx)(s.default,{src:m[i],alt:e(`ph
1one_${i}_title`),width:390,height:844,className:"w-auto h-auto max-w-[260px] md:max-w-full"})}),(0,t.jsx)("h4",{className:"font-display text-xl text-ink dark:text-ink-deep mb-2",children:e(`phone_${i}_title`)}),(0,t.jsx)("p",{className:"text-base text-ink-soft dark:text-ink-deep-soft leading-relaxed",children:e(`phone_${i}_desc`)})]},i))})]}),(0,t.jsxs)(a.AnimatedSection,{animation:"fade-up",className:"mb-20 md:mb-28",children:[(0,t.jsxs)("div",{className:"mb-10",children:[(0,t.jsx)("p",{className:"text-xs font-mono uppercase tracking-[0.2em] text-blaze mb-2",children:e("watch_label")}),(0,t.jsx)("p",{className:"text-xs italic text-ink-soft dark:text-ink-deep-soft",children:e("watch_footnote")})]}),(0,t.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-8 max-w-3xl",children:l.map(i=>(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"mb-4 flex justify-center",children:(0,t.jsx)(s.default,{src:d[i],alt:e(`watch_${i}_title`),width:180,height:225,className:"w-[160px] md:w-[180px] h-auto"})}),(0,t.jsx)("h4",{className:"font-display text-lg text-ink dark:text-ink-deep mb-1",children:e(`watch_${i}_title`)}),(0,t.jsx)("p",{className:"text-sm text-ink-soft dark:text-ink-deep-soft",children:e(`watch_${i}_desc`)})]},i))})]}),(0,t.jsx)(a.AnimatedSection,{animation:"fade-up",children:(0,t.jsxs)("div",{className:"max-w-2xl border-t border-rule dark:border-rule-deep pt-12",children:[(0,t.jsx)("p",{className:"text-xs font-mono uppercase tracking-[0.2em] text-blaze mb-4",children:e("inclusivity_label")}),(0,t.jsx)("p",{className:"text-lg text-ink dark:text-ink-deep leading-relaxed",children:e("inclusivity_desc")})]})})]})})}])},57539,e=>{"use strict";var t=e.i(15020),i=e.i(76434),s=e.i(73300),n=e.i(1956);e.i(57331);var r=e.i(52903),a=e.i(27957),o=e.i(85336),l=e.i(82355);let d=({selectedCountry:e,onCountryChange:i,className:d=""})=>
1{let h=(0,s.useTranslations)("pricing"),[c,u]=(0,n.useState)(!1),[p,m]=(0,n.useState)(""),f=(0,n.useRef)(null),x=(0,o.getCountryData)(e),g=(0,r.getCountryFlagEmoji)(e);(0,n.useEffect)(()=>{let e=e=>{f.current&&!f.current.contains(e.target)&&(u(!1),m(""))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,n.useEffect)(()=>{let e=e=>{"Escape"===e.key&&c&&(u(!1),m(""))};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[c]);let y=(()=>{let e,t=(e=[],Object.entries(r.countryRegions).forEach(([t,i])=>{let s=i.filter(e=>a.pppData.country_codes[e]).map(e=>{let t=a.pppData.country_codes[e];return{code:e,name:t.name,currency:t.currency,flag:(0,r.getCountryFlagEmoji)(e)}}).toSorted((e,t)=>e.name.localeCompare(t.name));s.length>0&&e.push({region:t,countries:s})}),e);if(!p.trim())return t;let i=p.toLowerCase();return t.map(e=>({...e,countries:e.countries.filter(e=>{let t=`${e.name} ${e.currency} ${e.code}`.toLowerCase();return"gb"===e.code&&(t+=" uk"),"us"===e.code&&(t+=" usa america"),"ae"===e.code&&(t+=" uae"),"kr"===e.code&&(t+=" korea"),"cn"===e.code&&(t+=" china"),t.includes(i)||t.split(" ").some(e=>e.startsWith(i))})})).filter(e=>e.countries.length>0)})();return(0,t.jsxs)("div",{className:(0,l.cn)("relative",d),ref:f,children:[(0,t.jsxs)("button",{onClick:()=>u(!c),className:"inline-flex items-center justify-center w-full rounded-full border border-rule dark:border-rule-deep px-4 py-2 text-xs sm:text-sm text-ink dark:text-ink-deep hover:border-ink dark:hover:border-ink-deep transition-colors","aria-label":"Select country","aria-expanded":c,"aria-haspopup":"listbox",children:[(0,t.jsx)("span",{className:"mr-1 sm:mr-2 text-base sm:text-lg",children:g}),(0,t.jsxs)("span",{className:"mr-1 sm:mr-2 truncate",children:[(0,t.jsx)("span",{className:"hidden sm:inline",children:x?.name||"United States"}),(0,t.jsx)("span",{className:"sm:hidden",children:(x?.name||"United States").length>12?(x?.name||"US").substring(0,12)+"...":x?.name||"United States"}),(0,t.jsxs)("span",{className:"ml-1",children:["(",x?.currency||"USD",")"]})]}),(0,t.jsx)("svg",{className:(0,l.cn)("ml-2 -mr-1 h-5 w-5 transition-transform duration-200",c?"rotate-180":"rotate-0"),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z",clipRule:"evenodd"})})]}),c&&(0,t.jsxs)("div",{className:"dropdown-overlay absolute left-1/2 -translate-x-1/2 mt-3 w-[90vw] max-w-xs sm:w-80 sm:max-w-none sm:left-auto sm:right-0 sm:translate-x-0 rounded-md bg-paper-raised dark:bg-paper-deep-raised border border-rule dark:border-rule-deep focus:outline-none z-50",style:{zIndex:100},role:"listbox",children:[(0,t.jsx)("div",{className:"p-3 border-b border-rule dark:border-rule-deep",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("svg",{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-ink-soft dark:text-ink-deep-soft",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),(0,t.jsx)("input",{type:"text",placeholder:h("search_countries"),value:p,onChange:e=>m(e.target.value),className:"w-full pl-9 pr-3 py-2 bg-paper dark:bg-paper-deep border border-rule dark:border-rule-deep rounded-md text-sm text-ink dark:text-ink-deep placeholder-ink-soft dark:placeholder-ink-deep-soft focus:outline-none focus:border-blaze transition-colors",autoComplete:"off","aria-label":h("search_countries")})]})}),(0,t.jsx)("div",{className:"px-4 py-2 text-xs text-ink-soft dark:text-ink-deep-soft border-b border-rule dark:border-rule-deep",children:h("country_selector_help")}),(0,t.jsx)("div",{className:"max-h-96 overflow-y-auto",children:0===y.length?(0,t.jsx)("div",{className:"px-3 py-4 text-ink-soft dark:text-ink-deep-soft text-center text-sm",children:h("no_countries_found")}):y.map(({region:s,countries:n})=>(0,t.jsxs)("div",{className:"country-region",children:[(0,t.jsx)("div",{className:"px-4 py-2 text-xs font-mono uppercase tracking-[0.18em] text-ink-soft dark:text-ink-deep-soft bg-paper/50 dark:bg-paper-deep/50 border-b border-rule dark:border-rule-deep",children:s}),(0,t.jsx)("div",{className:"py-1",children:n.map(s=>(0,t.jsxs)("button",{onClick:()=>{i(s.code),u(!1),m("")},className:(0,l.cn)("country-item w-full text-left px-4 py-2.5 text-sm hover:bg-paper dark:hover:bg-paper-deep flex items-center transition-colors",e===s.co
1de?"text-blaze font-medium":"text-ink dark:text-ink-deep"),role:"option","aria-selected":e===s.code,children:[(0,t.jsx)("span",{className:"mr-3 text-base",children:s.flag}),(0,t.jsxs)("span",{className:"flex-1",children:[(0,t.jsx)("span",{children:s.name}),(0,t.jsxs)("span",{className:"text-ink-soft dark:text-ink-deep-soft ml-1",children:["(",s.currency,")"]})]}),e===s.code&&(0,t.jsx)("svg",{className:"w-4 h-4 ml-2 text-blaze",fill:"currentColor",viewBox:"0 0 20 20","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z"})})]},s.code))})]},s))})]})]})};var h=e.i(85264);function c(){let e=(0,s.useTranslations)("whyClimbingPartner");return(0,t.jsxs)(h.AnimatedSection,{animation:"fade-up",className:"mb-10 md:mb-14 max-w-2xl",children:[(0,t.jsx)("p",{className:"text-xs font-mono uppercase tracking-[0.2em] text-ink-soft dark:text-ink-deep-soft mb-2",children:e("badge")}),(0,t.jsxs)("a",{href:"#faq",className:"group inline-flex items-start gap-2 text-lg md:text-xl text-ink dark:text-ink-deep leading-snug transition-colors hover:text-blaze dark:hover:text-blaze",children:[(0,t.jsx)("span",{children:e("title")}),(0,t.jsx)("span",{"aria-hidden":"true",className:"text-blaze transition-transform group-hover:translate-x-0.5",children:"→"})]})]})}var u=e.i(60243),p=e.i(93757),m=e.i(36853);let f=({tone:e="soft"})=>(0,t.jsx)("svg",{className:`w-4 h-4 mr-2 mt-1 shrink-0 ${"blaze"===e?"text-blaze":"text-ink-soft dark:text-ink-deep-soft"}`,fill:"currentColor",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),x=(e,t)=>e>0?Math.round((1-t/(12*e))*100):0,g=({label:e})=>(0,t.jsx)("span",{className:"shrink-0 text-[0.625rem] font-mono uppercase tracking-[0.15em] text-ink-soft dark:text-ink-deep-soft border border-rule dark:border-rule-deep rounded-full px-2.5 py-1",children:e});e.s(["Pricing",0,()=>{let e=(0,s.useTranslations)("pricing"),{country:n,isAnnual:r,setIsAnnual:a,personalPriceData:o,personalAnnualPriceData:l,proPriceData:y,setCountry:v}=(0,p.usePricing)(),b=(0,m.foundingLifetimePrice)(n),k=Math.round(l.price/12),w=x(o.price,l.price),j=Math.round(10*y.price),S=Math.round(j/12),T=x(y.price,j);return(0,t.jsx)("section",{id:"pricing",className:"py-24 md:py-32",children:(0,t.jsxs)("div",{className:"container-width",children:[(0,t.jsxs)(h.AnimatedSection,{animation:"fade-up",className:"max-w-3xl mb-8 md:mb-10",children:[(0,t.jsx)("p",{className:"text-xs font-mono uppercase tracking-[0.2em] text-ink-soft dark:text-ink-deep-soft mb-4",children:e("eyebrow")}),(0,t.jsx)("h2",{className:"font-display text-4xl md:text-5xl lg:text-6xl text-ink dark:text-ink-deep leading-[1.1] tracking-tight mb-4",children:e("title")}),(0,t.jsx)("p",{className:"text-lg md:text-xl text-ink-soft dark:text-ink-deep-soft leading-relaxed",children:e("subtitle")})]}),(0,t.jsx)(c,{}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 mb-10 md:mb-12",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("span",{className:"text-sm text-ink dark:text-ink-deep",children:e("monthly")}),(0,t.jsx)("button",{onClick:()=>a(!r),className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors ${r?"bg-blaze":"bg-rule dark:bg-rule-deep"}`,role:"switch","aria-checked":r,children:(0,t.jsx)("span",{className:`${r?"translate-x-[22px]":"translate-x-0.5"} inline-block h-5 w-5 transform rounded-full bg-paper-raised transition-transform`})}),(0,t.jsx)("span",{className:"text-sm text-ink dark:text-ink-deep",children:e("annual")})]}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3",children:[(0,t.jsx)("p",{className:"text-sm text-ink-soft dark:text-ink-deep-soft",children:e("ppp_note")}),(0,t.jsx)(d,{selectedCountry:n,onCountryChange:e=>v(e),className:"relative"})]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6 items-stretch",children:[(0,t.jsxs)("div",{className:"bg-paper-raised dark:bg-paper-deep-raised border border-rule dark:border-rule-deep rounded-xl p-8 flex flex-col",children:[(0,t.jsxs)("div",{className:"mb-8",children:[(0,t.jsx)("h3",{className:"font-display text-2xl text-ink dark:text-ink-deep mb-3",children:e("free_tier_title")}),(0,t.jsxs)("div",{className:"font-display text-4xl text-ink dark:text-ink-deep mb-3",children:[y.symbol,"0"]}),(0,t.jsx)("p",{className:"text-sm text-ink-soft dark:text-ink-deep-soft mb-3",children:e("free_tier_desc")}),(0,t.jsx)("p",{className:"text-sm text-ink-soft dark:text-ink-deep-soft border-t border-rule dark:border-rule-deep pt-3",children:e("free_tier_no_ai_note")})]}),(0,t.jsxs)("ul",{className:"space-y-2 mb-8 text-sm text-ink-soft dark:text-ink-deep-soft flex-1",children:[[1,2,3,4,5,6,7].map(i=>(0,t.jsxs)("li",{className:"flex items-start",children:[(0,t.jsx)(f,{}),(0,t.jsx)("span",{children:e(`free_tier_bullet${i}`)})]},i)),(0,t.jsxs)("li",{className:"flex items-start",children:[(0,t.jsx)(f,{}),(0,t.jsxs)("span",{children:[(0,t.jsx)("a",{href:"https://discord.gg/dzwU3VjSzH",target:"_blank",rel:"noopener noreferrer",className:"text-blaze hover:text-blaze-deep transition-colors underline underline-offset-2 decoration-blaze/40",children:e("free_tier_bullet6_link")})," ",e("free_tier_bullet6_text")]})]})]}),(0,t.jsx)(i.default,{href:"https://app.luzclimbing.com/signup?redirect=/settings/subscription",className:"block w-full text-center px-6 py-3 rounded-full border border-rule dark:border-rule-deep text-ink dark:text-ink-deep hover:border-ink dark:hover:border-ink-deep transition-colors text-sm font-medium",children:e("free_tier_cta")})]}),(0,t.jsxs)("div",{className:"bg-paper-raised dark:bg-paper-deep-raised border border-rule dark:border-rule-deep rounded-xl p-8 flex flex-col",children:[(0,t.jsxs)("div",{className:"mb-8",children:[(0,t.jsx)("div",{className:"flex items-center gap-3 mb-3",children:(0,t.jsx)("h3",{className:"font-display text-2xl text-ink dark:text-ink-deep",children:e("personal_tier_title")})}),(0,t.jsx)("div",{className:"mb-3",children:r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"font-display text-4xl text-ink dark:text-ink-deep",children:[l.symbol,l.price,(0,t.jsx)("span",{className:"text-base text-ink-soft dark:text-ink-deep-soft font-sans",children:e("personal_tier_annual_freq")})]}),(0,t.jsxs)("p",{className:"text-sm text-blaze mt-1",children:[l.symbol,k,(0,t.jsx)("span",{children:e("per_month")}),(0,t.jsxs)("span",{className:"ml-2",children:["-",w,"%"]})]})]}):(0,t.jsxs)("div",{className:"font-display text-4xl text-ink dark:text-ink-deep",children:[o.symbol,o.price,(0,t.jsx)("span",{className:"text-base text-ink-soft dark:text-ink-deep-soft font-sans",children:e("personal_tier_freq")})]})}),(0,t.jsxs)(u.Link,{href:"/founding",className:"group block mb-3",children:[(0,t.jsx)("span",{className:"block text-sm text-ink dark:text-ink-deep mb-1",children:e("personal_tier_lifetime",{price:`${b.symbol}${b.price}`})}),(0,t.jsx)("span",{className:"block text-xs text-blaze group-hover:text-blaze-deep transition-colors underline underline-offset-2 decoration-blaze/40",children:e("personal_tier_lifetime_note")})]}),(0,t.jsx)("p",{className:"text-sm text-ink-soft dark:text-ink-deep-soft mb-3",children:e("personal_tier_desc")}),(0,t.jsx)("p",{className:"text-sm text-ink-soft dark:text-ink-deep-soft border-t border-rule dark:border-rule-deep pt-3",children:e("personal_tier_no_ai_note")})]}),(0,t.jsxs)("ul",{className:"space-y-2 mb-8 text-sm text-ink-soft dark:text-ink-deep-soft flex-1",children:[(0,t.jsx)("li",{className:"font-medium text-ink dark:text-ink-deep",children:e("personal_tier_bullet1_prefix")}),[2,3,4,5,6,7].map(i=>(0,t.jsxs)("li",{className:"flex items-start",children:[(0,t.jsx)(f,{}),(0,t.jsx)("span",{children:e(`personal_tier_bullet${i}`)})]},i))]}),(0,t.jsx)(i.default,{href:"https://app.luzclimbing.com/signup?redirect=/settings/subscription",className:"block w-full text-center px-6 py-3 rounded-full border border-rule dark:border-rule-deep text-ink dark:text-ink-deep hover:border-ink dark:hover:border-ink-deep transition-colors text-sm font-medium",children:e("personal_tier_cta")})]}),(0,t.jsxs)("div",{className:"bg-paper-raised dark:bg-paper-deep-raised border-2 border-blaze rounded-xl p-8 flex flex-col",children:[(0,t.jsxs)("div",{className:"mb-8",children:[(0,t.jsx)("h3",{className:"font-display text-2xl text-ink dark:text-ink-deep mb-3",children:e("pro_tier_title")}),(0,t.jsx)("div",{className:"mb-3",children:r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"font-display text-4xl text-ink dark:text-ink-deep",children:[y.symbol,j,(0,t.jsx)("span",{className:"text-base text-ink-soft dark:text-ink-deep-soft font-sans",children:e("pro_tier_annual_freq")})]}),(0,t.jsxs)("p",{className:"text-sm text-blaze mt-1",children:[y.symbol,S,(0,t.jsx)("span",{children:e("per_month")}),(0,t.jsxs)("span",{className:"ml-2",children:["-",T,"%"]})]})]}):(0,t.jsxs)("div",{className:"font-display text-4xl text-ink dark:text-ink-deep",children:[y.symbol,y.price,(0,t.jsx)("span",{className:"text-base text-ink-soft dark:text-ink-deep-soft font-sans",children:e("pro_tier_freq")})]})}),(0,t.jsx)("p",{className:"text-sm text-ink-soft dark:text-ink-deep-soft",children:e("pro_tier_desc")})]}),(0,t.jsxs)("ul",{className:"space-y-2 mb-8 text-sm text-ink dark:text-ink-deep flex-1",children:[(0,t.jsx)("li",{className:"font-medium",children:e("pro_tier_bullet1_prefix")}),[2,3,4,5,6,7,8,9].map(i=>(0,t.jsxs)("li",{className:"flex items-start",children:[(0,t.jsx)(f,{tone:"blaze"}),(0,t.jsx)("span",{children:e(`pro_tier_bullet${i}`)})]},i))]}),(0,t.jsx)(i.default,{href:"https://app.luzclimbing.com/signup?redirect=/settings/subscription",className:"block w-full text-center px-6 py-3 rounded-full bg-blaze hover:bg-blaze-deep text-paper-raised text-sm font-medium transition-colors",children:e("pro_tier_cta")})]})]}),(0,t.jsxs)("div",{className:"mt-6 bg-paper-raised dark:bg-paper-deep-raised border border-rule dark:border-rule-deep rounded-xl p-8 opacity-75",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8 items-start",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 mb-3",children:[(0,t.jsx)("h3",{className:"font-display text-2xl text-ink dark:text-ink-deep",children:e("premium_tier_title")}),(0,t.jsx)(g,{label:e("coming_soon_badge")})]}),(0,t.jsx)("div",{className:"font-display text-4xl text-ink dark:text-ink-deep mb-3",children:e("premium_tier_custom_price")}),(0,t.jsx)("p",{className:"text-sm text-ink-soft dark:text-ink-deep-soft",children:e("premium_tier_desc")})]}),(0,t.jsxs)("ul",{className:"lg:col-span-2 space-y-2 text-sm text-ink-soft dark:text-ink-deep-soft sm:columns-2 sm:gap-8",children:[(0,t.jsx)("li",{className:"font-medium text-ink dark:text-ink-deep break-inside-avoid",children:e("premium_tier_bullet1_prefix")}),[2,3,4,5].map(i=>(0,t.jsxs)("li",{className:"flex items-start break-inside-avoid",children:[(0,t.jsx)(f,{}),(0,t.jsx)("span",{children:e(`premium_tier_bullet${i}`)})]},i))]})]}),(0,t.jsx)("button",{disabled:!0,className:"mt-8 block w-full lg:w-auto lg:px-10 text-center px-6 py-3 rounded-full border border-rule dark:border-rule-deep text-ink-soft dark:text-ink-deep-soft text-sm cursor-not-allowed",children:e("premium_tier_cta")})]}),(0,t.jsxs)(h.AnimatedSection,{animation:"fade-up",className:"mt-12 md:mt-16 max-w-3xl",children:[(0,t.jsx)("p",{className:"text-sm text-ink-soft dark:text-ink-deep-soft",children:e("pricing_footer_note1")}),(0,t.jsx)("p",{className:"text-sm text-ink-soft dark:text-ink-deep-soft mt-2",children:e("pricing_footer_note2")})]})]})})}],57539)},6831,e=>{"use strict";var t=e.i(15020),i=e.i(73300),s=e.i(85264),n=e.i(60243);let r=["process","truth","holistic","authenticity","adaptation","inclusive"];
1e.s(["Values",0,function(){let e=(0,i.useTranslations)("values");return(0,t.jsx)("section",{id:"values",className:"py-24 md:py-32 bg-paper-raised dark:bg-paper-deep-raised",children:(0,t.jsxs)("div",{className:"container-width",children:[(0,t.jsxs)(s.AnimatedSection,{animation:"fade-up",className:"max-w-3xl mb-16 md:mb-20",children:[(0,t.jsx)("p",{className:"text-xs font-mono uppercase tracking-[0.2em] text-ink-soft dark:text-ink-deep-soft mb-6",children:e("eyebrow")}),(0,t.jsx)("h2",{className:"font-display text-4xl md:text-5xl lg:text-6xl text-ink dark:text-ink-deep leading-[1.1] tracking-tight",children:e("title")})]}),(0,t.jsx)(s.AnimatedSection,{animation:"fade-up",children:(0,t.jsx)("ol",{className:"grid md:grid-cols-2 gap-x-12 lg:gap-x-20 gap-y-12 md:gap-y-16",children:r.map((i,s)=>(0,t.jsxs)("li",{className:"flex gap-6",children:[(0,t.jsxs)("span",{className:"font-display text-xl text-blaze tabular-nums shrink-0 pt-1",children:[String(s+1).padStart(2,"0"),"."]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"font-display text-2xl md:text-[1.625rem] text-ink dark:text-ink-deep leading-tight mb-3",children:e(`card_${i}_title`)}),(0,t.jsxs)("p",{className:"text-base text-ink-soft dark:text-ink-deep-soft leading-relaxed",children:[e(`card_${i}_desc`),"inclusive"===i&&(0,t.jsxs)(t.Fragment,{children:[" ",(0,t.jsx)(n.Link,{href:"/impact",className:"text-blaze hover:text-blaze-deep underline underline-offset-2 decoration-blaze/40 hover:decoration-blaze transition-colors",children:e("card_inclusive_impact_link")}),"."]})]})]})]},i))})})]})})}])}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.