1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,94909,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={default:function(){return h},getImageProps:function(){return u}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});let s=t.r(63141),o=t.r(8927),a=t.r(5500),l=s._(t.r(1948));function u(t){let{props:e}=(0,o.getImgProps)(t,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[t,i]of Object.entries(e))void 0===i&&delete e[t];return{props:e}}let h=a.Image},57688,(t,e,i)=>{e.exports=t.r(94909)},21961,t=>{"use strict";var e=t.i(43476),i=t.i(43384),r=t.i(71645);let n=()=>(0,e.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,e.jsx)("circle",{cx:"12",cy:"12",r:"5"}),(0,e.jsx)("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),(0,e.jsx)("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),(0,e.jsx)("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),(0,e.jsx)("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),(0,e.jsx)("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),(0,e.jsx)("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),(0,e.jsx)("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),(0,e.jsx)("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]}),s=()=>(0,e.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,e.jsx)("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})}),o=({initialTheme:t="system",mini:i=!1})=>{let[o,a]=(0,r.useState)(t),[l,u]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let t=window.matchMedia("(prefers-color-scheme: dark)");u(t.matches);let e=t=>u(t.matches);return t.addEventListener("change",e),()=>t.removeEventListener("change",e)},[]),(0,r.useEffect)(()=>{h(o)},[o,l]);let h=t=>{let e=document.documentElement,i=window.matchMedia("(prefers-color-scheme: dark)").matches;e.classList.toggle("dark","dark"===t||"system"===t&&i),e.dataset.theme=t},c="dark"===o||"system"===o&&l,d=()=>{let t=c?"light":"dark";a(t),document.cookie=`theme=${t}; path=/; max-age=31536000; SameSite=Lax`},p=c?"Modo escuro":"Modo claro";return i?(0,e.jsx)("button",{onClick:d,"aria-label":`Tema: ${p}`,title:p,className:"flex items-center justify-center w-8 h-8 text-current opacity-70 hover:opacity-100 transition-all duration-150",children:c?(0,e.jsx)(s,{}):(0,e.jsx)(n,{})}):(0,e.jsx)("button",{onClick:d,"aria-label":`Tema atual: ${p}. Clique para alternar`,title:p,className:"flex items-center justify-center w-9 h-9 rounded-full border border-ds-border bg-ds-surface hover:bg-ds-primary hover:text-white hover:border-ds-primary transition-all duration-200 text-ds-textMuted",children:c?(0,e.jsx)(s,{}):(0,e.jsx)(n,{})})};var a=t.i(57688),l=t.i(22016),u=t.i(18566),h=t.i(56424),c=t.i(45009);function d(){return(d=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(this,arguments)}var p=(0,r.forwardRef)(function(t,e){var i=t.color,n=t.size,s=void 0===n?24:n,o=function(t,e){if(null==t)return{};var i,r,n=function(t,e){if(null==t)return{};var i,r,n={},s=Object.keys(t);for(r=0;r<s.length;r++)i=s[r],e.indexOf(i)>=0||(n[i]=t[i]);return n}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)i=s[r],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}(t,["color","size"]);return r.default.createElement("svg",d({ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:void 0===i?"currentColor":i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),r.default.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),r.default.createElement("polyline",{points:"15 3 21 3 21 9"}),r.default.createElement("line",{x1:"10",y1:"14",x2:"21",y2:"3"}))});p.propTypes={color:c.default.string,size:c.default.oneOfType([c.default.string,c.default.number])},p.displayName="ExternalLink";let m=({item:t,currentPath:i,onNavigate:n})=>{let[s,o]=(0,r.useState)(!1),a=t.children&&t.children.length>0,u=i===t.path||t.children?.some(t=>i===t.path);return a?(0,e.jsxs)("div",{children:[(0,e.jsxs)("button",{onClick:()=>o(t=>
1!t),className:`w-full flex items-center justify-between px-4 py-3 text-sm font-semibold rounded-lg transition-colors ${u?"bg-ds-primary/10 text-ds-primary":"text-ds-text hover:bg-ds-surface"}`,"aria-expanded":s,children:[t.name,(0,e.jsx)(h.ChevronDown,{size:14,className:`transition-transform duration-200 ${s?"rotate-180":""}`})]}),s&&(0,e.jsx)("div",{className:"ml-4 mt-1 flex flex-col gap-0.5 border-l-2 border-ds-border pl-3",children:t.children?.map(t=>(0,e.jsxs)(l.default,{href:t.path,target:t.isExternal?"_blank":void 0,rel:t.isExternal?"noopener noreferrer":void 0,onClick:n,className:"flex items-center justify-between px-3 py-2 text-sm text-ds-textMuted hover:text-ds-primary rounded transition-colors",children:[t.name,t.isExternal&&(0,e.jsx)(p,{size:11,className:"opacity-50"})]},t.id))})]}):(0,e.jsx)(l.default,{href:t.path,onClick:n,className:`block px-4 py-3 text-sm font-semibold rounded-lg transition-colors ${u?"bg-ds-primary/10 text-ds-primary":"text-ds-text hover:bg-ds-surface"}`,children:t.name})},f=({item:t,currentPath:i})=>{let r=t.children?.some(t=>i===t.path)||i===t.path;return(0,e.jsxs)("div",{className:"relative group",children:[(0,e.jsxs)("button",{className:`flex items-center gap-1 text-sm font-semibold px-1 py-1 rounded transition-colors duration-150 ${r?"text-ds-primary":"text-black dark:text-white hover:text-ds-primary"}`,"aria-haspopup":"true",children:[t.name,(0,e.jsx)(h.ChevronDown,{size:14,className:"transition-transform duration-200 group-hover:rotate-180"})]}),(0,e.jsx)("div",{className:"absolute top-full left-1/2 -translate-x-1/2 mt-2 w-52 bg-ds-surface border border-ds-border rounded-xl shadow-dsCard overflow-hidden z-50 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-150 origin-top scale-95 group-hover:scale-100",role:"menu",children:t.children?.map(t=>(0,e.jsxs)(l.default,{href:t.path,target:t.isExternal?"_blank":void 0,rel:t.isExternal?"noopener noreferrer":void 0,role:"menuitem",className:"flex items-center justify-between px-4 py-2.5 text-sm text-ds-text hover:bg-ds-primary/8 hover:text-ds-primary transition-colors duration-150 first:rounded-t-xl last:rounded-b-xl",children:[t.name,t.isExternal&&(0,e.jsx)(p,{size:12,className:"opacity-50"})]},t.id))})]})},g=[{label:"Instagram",href:"https://instagram.com/onciencias",icon:(0,e.jsx)(()=>(0,e.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",children:[(0,e.jsx)("defs",{children:(0,e.jsxs)("radialGradient",{id:"ig-rg",cx:"30%",cy:"107%",r:"150%",children:[(0,e.jsx)("stop",{offset:"0%",stopColor:"#fdf497"}),(0,e.jsx)("stop",{offset:"5%",stopColor:"#fdf497"}),(0,e.jsx)("stop",{offset:"45%",stopColor:"#fd5949"}),(0,e.jsx)("stop",{offset:"60%",stopColor:"#d6249f"}),(0,e.jsx)("stop",{offset:"90%",stopColor:"#285AEB"})]})}),(0,e.jsx)("path",{fill:"url(#ig-rg)",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"})]}),{})},{label:"Facebook",href:"https://facebook.com/onciencias",icon:(0,e.jsx)(()=>(0,e.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"#1877F2",children:(0,e.jsx)("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})}),{})},{label:"TikTok",href:"https://tiktok.com/@onciencias",icon:(0,e.jsx)(()=>(0,e.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",children:[(0,e.jsx)("path",{d:"M19.59 6.69a4.83 4.83 0 01-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 01-2.88 2.5 2.89 2.89 0 01-2.89-2.89 2.89 2.89 0 012.89-2.89c.28 0 .54.04.79.1V9.01a6.27 6.27 0 00-.79-.05 6.34 6.34 0 00-6.34 6.34 6.34 6.34 0 006.34 6.34 6.34 6.34 0 006.33-6.34V8.75a8.18 8.18 0 004.77 1.52V6.84a4.84 4.84 0 01-1-.15z",fill:"#25F4EE"}),(0,e.jsx)("path",{d:"M19.59 6.69a4.83 4.83 0 01-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 01-2.88 2.5 2.89 2.89 0 01-2.89-2.89 2.89 2.89 0 012.89-2.89c.28 0 .54.04.79.1V9.01a6.27 6.27 0 00-.79-.05 6.34 6.34 0 00-6.34 6.34 6.34 6.34 0 006.34 6.34 6.34 6.34 0 006.33-6.34V8.75a8.18 8.18 0 004.77 1.52V6.84a4.84 4.84 0 01-1-.15z",fill:"#FE2C55",transform:"translate(1, 1)"}),(0,e.jsx)("path",{d:"M19.59 6.69a4.83 4.83 0 01-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 01-2.88 2.5 2.89 2.89 0 01-2.89-2.89 2.89 2.89 0 012.89-2.89c.28 0 .54.04.79.1V9.01a6.27 6.27 0 00-.79-.05 6.34 6.34 0 00-6.34 6.34 6.34 6.34 0 006.34 6.34 6.34 6.34 0 006.33-6.34V8.75a8.18 8.18 0 004.77 1.52V6.84a4.84 4.84 0 01-1-.15z",fill:"white",transform:"translate(0.5, 0.5)"})]}),{})},{label:"WhatsApp",href:"https://wa.me/558698049512",icon:(0,e.jsx)(()=>(0,e.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"#25D366",children:(0,e.jsx)("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.
1198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"})}),{})}],y=[{id:1,name:"InÃcio",path:"/"},{id:2,name:"A ONC",path:"/aONC",children:[{id:21,name:"Coordenadorias",path:"/coordenadorias"},{id:22,name:"Certificados",path:"https://certificados.onciencias.org/",isExternal:!0},{id:23,name:"Regulamento",path:"/regulamento"},{id:24,name:"Resultados",path:"https://resultado.onciencias.org/",isExternal:!0},{id:25,name:"Classificados",path:"https://classificados.onciencias.org/",isExternal:!0},{id:26,name:"Exames",path:"/exames"},{id:27,name:"Perguntas frequentes",path:"/faq"},{id:28,name:"Inscritos",path:"/inscritos"}]},{id:3,name:"NotÃcias",path:"/noticias"},{id:4,name:"Programa",path:"/programa"},{id:5,name:"Divulgação",path:"/divulgacao"},{id:6,name:"Contato",path:"/contato"}],v=({initialTheme:t})=>(0,e.jsx)("div",{className:"hidden md:flex",style:{backgroundColor:"var(--ds-primary)"},children:(0,e.jsxs)("div",{className:"container mx-auto flex items-center justify-end gap-4 px-4 md:px-6 py-1.5 text-white",children:[(0,e.jsx)("div",{className:"flex items-center gap-3 mr-auto",children:g.map(t=>(0,e.jsx)("a",{href:t.href,target:"_blank",rel:"noopener noreferrer","aria-label":t.label,className:"topbar-social-icon opacity-85 hover:opacity-100 hover:scale-110 transition-all duration-150",children:t.icon},t.label))}),(0,e.jsx)(o,{initialTheme:t,mini:!0})]})}),x=()=>(0,e.jsxs)("svg",{width:22,height:22,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,e.jsx)("line",{x1:3,y1:12,x2:21,y2:12}),(0,e.jsx)("line",{x1:3,y1:6,x2:21,y2:6}),(0,e.jsx)("line",{x1:3,y1:18,x2:21,y2:18})]}),b=()=>(0,e.jsxs)("svg",{width:22,height:22,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,e.jsx)("line",{x1:18,y1:6,x2:6,y2:18}),(0,e.jsx)("line",{x1:6,y1:6,x2:18,y2:18})]});t.s(["Header",0,({initialTheme:t})=>{let n=(0,u.usePathname)(),[s,h]=(0,r.useState)(!1),[c,d]=(0,r.useState)(!1),{open:p}=(0,i.useAccessModal)();(0,r.useEffect)(()=>{let t=()=>h(window.scrollY>10);return window.addEventListener("scroll",t,{passive:!0}),t(),()=>window.removeEventListener("scroll",t)},[]),(0,r.useEffect)(()=>(c?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[c]);let g=()=>d(!1);return(0,e.jsxs)("header",{className:"fixed top-0 left-0 right-0 z-50 transition-all duration-300 border-b header-glass","data-scrolled":s||c?"true":"false",children:[(0,e.jsx)(v,{isScrolled:s,initialTheme:t}),(0,e.jsx)("nav",{className:"h-20","aria-label":"Navegação principal",children:(0,e.jsxs)("div",{className:"container mx-auto h-full flex items-center justify-between px-4 md:px-6",children:[(0,e.jsxs)(l.default,{href:"/","aria-label":"ONC â página inicial",onClick:g,className:"relative block",children:[(0,e.jsx)(a.default,{className:"dark:opacity-0",style:{objectFit:"contain"},src:"/onc/assets/logo_onciencias.png",alt:"ONC Logomarca",width:150,height:150,priority:!0}),(0,e.jsx)(a.default,{className:"absolute inset-0 opacity-0 dark:opacity-100",style:{objectFit:"contain"},src:"/onc/assets/logo_onciencias_branco.png",alt:"ONC Logomarca",width:150,height:150,priority:!0})]}),(0,e.jsxs)("div",{className:"hidden lg:flex items-center gap-5",children:[y.map(t=>t.children?(0,e.jsx)(f,{item:t,currentPath:n,isScrolled:s},t.id):(0,e.jsx)(l.default,{href:t.path,className:`text-sm font-semibold px-1 py-1 transition-colors duration-150 ${n===t.path?"text-ds-primary border-b-2 border-ds-primary":"text-black dark:text-white hover:text-ds-primary"}`,children:t.name},t.id)),(0,e.jsx)("button",{onClick:p,className:"ml-2 text-sm font-bold px-5 py-2 rounded-full bg-ds-primary text-white hover:brightness-110 transition-all duration-200 shadow-sm",children:"Acesso"})]}),(0,e.jsxs)("div",{className:"flex lg:hidden items-center gap-1.5 text-ds-primary dark:text-white",children:[(0,e.jsx)(o,{initialTheme:t,mini:!0}),(0,e.jsx)("button",{onClick:()=>d(t=>!t),"aria-label":c?"Fechar menu":"Abrir menu","aria-expanded":c,className:"shrink-0 p-2 rounded-lg text-current hover:bg-ds-primary/5 transition-colors",children:c?(0,e.jsx)(b,{}):(0,e.jsx)(x,{})})]})]})}),c&&(0,e.jsx)("div",{className:"lg:hidden border-t border-ds-border bg-ds-pageBg shadow-lg",children:(0,e.jsxs)("div",{className:"container mx-auto px-4 py-3 flex flex-col gap-1",children:[y.map(t=>(0,e.jsx)(m,{item:t,currentPath:n,onNavigate:g},t.id)),(0,e.jsx)("button",{onClick:()=>{g(),p()},className:"mt-2 block w-full text-center bg-ds-primary text-white font-bold text-sm px-4 py-3 rounded-lg hover:brightness-110 transition-all",children:"Acesso"})]})})]})}],21961)},6097,t=>{"use strict";var e=t.i(43476),i=t.i(70703);let r=(0,i.default)(()=>t.A(4739).then(t=>({default:t.CookieBanner})),{loadableGenerated:{modules:[32843]},ssr:!1}),n=(0,i.default)(()=>t.A(94036).then(t=>({default:t.AccessModal})),{loadableGenerated:{modules:[44204]},ssr:!1}),s=(0,i.default)(()=>t.A(83683).then(t=>({default:t.Toast})),{loadableGenerated:{modules:[64463]},ssr:!1}),o=(0,i.default)(()=>t.A(27233).then(t=>({default:t.ScrollToTop})),{loadableGenerated:{modules:[85345]},ssr:!1}),a=(0,i.default)(()=>t.A(35895).then(t=>({default:t.ScrollOnNavigate})),{loadableGenerated:{modules:[968]},ssr:!1}),l=(0,i.default)(()=>t.A(74613),{loadableGenerated:{modules:[525]},ssr:!1});t.s(["LayoutClientComponents",0,()=>(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(l,{}),(0,e.jsx)(o,{}),(0,e.jsx)(a,{}),(0,e.jsx)(n,{}),(0,e.jsx)(s,{}),(0,e.jsx)(r,{})]})])},31909,t=>{"use strict";
1var e,i,r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,n=(e=function(t){return r.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&91>t.charCodeAt(2)},i={},function(t){return void 0===i[t]&&(i[t]=e(t)),i[t]});t.s(["default",0,n],31909)},47541,t=>{"use strict";let e,i,r;var n,s,o=t.i(43476);t.i(47167);var a=t.i(71645);let l="u">typeof document,u=l?a.useLayoutEffect:a.useEffect;function h(){let t=(0,a.useRef)(!1);return u(()=>(t.current=!0,()=>{t.current=!1}),[]),t}let c=t=>t;class d{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){let e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}let p=["prepare","read","update","preRender","render","postRender"];function m(t,e){let i=!1,r=!0,n={delta:0,timestamp:0,isProcessing:!1},s=p.reduce((t,e)=>{var r;let n,s,o,a,l,u,h;return t[e]=(r=()=>i=!0,n=new d,s=new d,o=0,a=!1,l=!1,u=new WeakSet,h={schedule:(t,e=!1,i=!1)=>{let r=i&&a,l=r?n:s;return e&&u.add(t),l.add(t)&&r&&a&&(o=n.order.length),t},cancel:t=>{s.remove(t),u.delete(t)},process:t=>{if(a){l=!0;return}if(a=!0,[n,s]=[s,n],s.clear(),o=n.order.length)for(let e=0;e<o;e++){let i=n.order[e];u.has(i)&&(h.schedule(i),r()),i(t)}a=!1,l&&(l=!1,h.process(t))}}),t},{}),o=t=>{s[t].process(n)},a=()=>{let s=performance.now();i=!1,n.delta=r?1e3/60:Math.max(Math.min(s-n.timestamp,40),1),n.timestamp=s,n.isProcessing=!0,p.forEach(o),n.isProcessing=!1,i&&e&&(r=!1,t(a))};return{schedule:p.reduce((e,o)=>{let l=s[o];return e[o]=(e,s=!1,o=!1)=>(!i&&(i=!0,r=!0,n.isProcessing||t(a)),l.schedule(e,s,o)),e},{}),cancel:t=>
1p.forEach(e=>s[e].cancel(t)),state:n,steps:s}}let{schedule:f,cancel:g,state:y,steps:v}=m("u">typeof requestAnimationFrame?requestAnimationFrame:c,!0),x=(0,a.createContext)(null);function b(t){let e=(0,a.useRef)(null);return null===e.current&&(e.current=t()),e.current}var w=a;class P extends w.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function A({children:t,isPresent:e}){let i=(0,w.useId)(),r=(0,w.useRef)(null),n=(0,w.useRef)({width:0,height:0,top:0,left:0});return(0,w.useInsertionEffect)(()=>{let{width:t,height:s,top:o,left:a}=n.current;if(e||!r.current||!t||!s)return;r.current.dataset.motionPopId=i;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` 2 [data-motion-pop-id="${i}"] { 3 position: absolute !important; 4 width: ${t}px !important; 5 height: ${s}px !important; 6 top: ${o}px !important; 7 left: ${a}px !important; 8 } 9 `),()=>{document.head.removeChild(l)}},[e]),w.createElement(P,{isPresent:e,childRef:r,sizeRef:n},w.cloneElement(t,{ref:r}))}let T=({children:t,initial:e,isPresent:i,onExitComplete:r,custom:n,presenceAffectsLayout:s,mode:o})=>{let l=b(S),u=(0,a.useId)(),h=(0,a.useMemo)(()=>({id:u,initial:e,isPresent:i,custom:n,onExitComplete:t=>
9{for(let e of(l.set(t,!0),l.values()))if(!e)return;r&&r()},register:t=>(l.set(t,!1),()=>l.delete(t))}),s?void 0:[i]);return(0,a.useMemo)(()=>{l.forEach((t,e)=>l.set(e,!1))},[i]),a.useEffect(()=>{i||l.size||!r||r()},[i]),"popLayout"===o&&(t=a.createElement(A,{isPresent:i},t)),a.createElement(x.Provider,{value:h},t)};function S(){return new Map}let j=(0,a.createContext)({}),k=t=>t.key||"",C=({children:t,custom:e,initial:i=!0,onExitComplete:r,exitBeforeEnter:n,presenceAffectsLayout:s=!0,mode:o="sync"})=>{var l;let d;c(!n,"Replace exitBeforeEnter with mode='wait'");let p=(0,a.useContext)(j).forceRender||function(){let t=h(),[e,i]=(0,a.useState)(0),r=(0,a.useCallback)(()=>{t.current&&i(e+1)},[e]);return[(0,a.useCallback)(()=>f.postRender(r),[r]),e]}()[0],m=h(),g=(d=[],a.Children.forEach(t,t=>{(0,a.isValidElement)(t)&&d.push(t)}),d),y=g,v=(0,a.useRef)(new Map).current,x=(0,a.useRef)(y),b=(0,a.useRef)(new Map).current,w=(0,a.useRef)(!0);if(u(()=>{w.current=!1,g.forEach(t=>{let e=k(t);b.set(e,t)}),x.current=y}),l=()=>{w.current=!0,b.clear(),v.clear()},(0,a.useEffect)(()=>()=>l(),[]),w.current)return a.createElement(a.Fragment,null,y.map(t=>a.createElement(T,{key:k(t),isPresent:!0,initial:!!i&&void 0,presenceAffectsLayout:s,mode:o},t)));y=[...y];let P=x.current.map(k),A=g.map(k),S=P.length;for(let t=0;t<S;t++){let e=P[t];-1!==A.indexOf(e)||v.has(e)||v.set(e,void 0)}return"wait"===o&&v.size&&(y=[]),v.forEach((t,i)=>{if(-1!==A.indexOf(i))return;let n=b.get(i);if(!n)return;let l=P.indexOf(i),u=t;u||(u=a.createElement(T,{key:k(n),isPresent:!1,onExitComplete:()=>{v.delete(i);let t=Array.from(b.keys()).filter(t=>!A.includes(t));if(t.forEach(t=>b.delete(t)),x.current=g.filter(e=>{let r=k(e);return r===i||t.includes(r)}),!v.size){if(!1===m.current)return;p(),r&&r()}},custom:e,presenceAffectsLayout:s,mode:o},n),v.set(i,u)),y.splice(l,0,u)}),y=y.map(t=>{let e=t.key;return v.has(e)?t:a.createElement(T,{key:k(t),isPresent:!0,presenceAffectsLayout:s,mode:o},t)}),a.createElement(a.Fragment,null,v.size?y:y.map(t=>(0,a.cloneElement)(t)))},E=t=>"youtube"===t.type&&!!t.args,V=(0,a.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),M=(0,a.createContext)({}),R=(0,a.createContext)({strict:!1}),L=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),D="data-"+L("framerAppearId"),{schedule:O,cancel:F}=m(queueMicrotask,!1);function I(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function B(t){return"string"==typeof t||Array.isArray(t)}function N(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}let U=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],z=["initial",...U];function $(t){return N(t.animate)||z.some(e=>B(t[e]))}function W(t){return!!($(t)||t.variants)}function H(t){return Array.isArray(t)?t.join(" "):t}let _={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"]},q={};for(let t in _)q[t]={isEnabled:e=>_[t].some(t=>!!e[t])};let Y=(0,a.createContext)({}),G=Symbol.for("motionComponentSymbol"),X=["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 Z(t){if("string"!=typeof t||t.includes("-"));else if(X.indexOf(t)>-1||/[A-Z]/.test(t))return!0;return!1}let K={},J=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Q=new Set(J);function tt(t,{layout:e,layoutId:i}){return Q.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!K[t]||"opacity"===t)}let te=t=>!!(t&&t.getVelocity),ti={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tr=J.length,tn=t=>e=>"string"==typeof e&&e.startsWith(t),ts=tn("--"),to=tn("var(--"),ta=(t,e)=>e&&"number"==typeof t?e.transform(t):t,tl=(t,e,i)=>Math.min(Math.max(i,t),e),tu={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},th={...tu,transform:t=>tl(0,1,t)},tc={...tu,default:1},td=t=>
9Math.round(1e5*t)/1e5,tp=/(-)?([\d]*\.?[\d])+/g,tm=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,tf=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function tg(t){return"string"==typeof t}let ty=t=>({test:e=>tg(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tv=ty("deg"),tx=ty("%"),tb=ty("px"),tw=ty("vh"),tP=ty("vw"),tA={...tx,parse:t=>tx.parse(t)/100,transform:t=>tx.transform(100*t)},tT={...tu,transform:Math.round},tS={borderWidth:tb,borderTopWidth:tb,borderRightWidth:tb,borderBottomWidth:tb,borderLeftWidth:tb,borderRadius:tb,radius:tb,borderTopLeftRadius:tb,borderTopRightRadius:tb,borderBottomRightRadius:tb,borderBottomLeftRadius:tb,width:tb,maxWidth:tb,height:tb,maxHeight:tb,size:tb,top:tb,right:tb,bottom:tb,left:tb,padding:tb,paddingTop:tb,paddingRight:tb,paddingBottom:tb,paddingLeft:tb,margin:tb,marginTop:tb,marginRight:tb,marginBottom:tb,marginLeft:tb,rotate:tv,rotateX:tv,rotateY:tv,rotateZ:tv,scale:tc,scaleX:tc,scaleY:tc,scaleZ:tc,skew:tv,skewX:tv,skewY:tv,distance:tb,translateX:tb,translateY:tb,translateZ:tb,x:tb,y:tb,z:tb,perspective:tb,transformPerspective:tb,opacity:th,originX:tA,originY:tA,originZ:tb,zIndex:tT,fillOpacity:th,strokeOpacity:th,numOctaves:tT};function tj(t,e,i,r){let{style:n,vars:s,transform:o,transformOrigin:a}=t,l=!1,u=!1,h=!0;for(let t in e){let i=e[t];if(ts(t)){s[t]=i;continue}let r=tS[t],c=ta(i,r);if(Q.has(t)){if(l=!0,o[t]=c,!h)continue;i!==(r.default||0)&&(h=!1)}else t.startsWith("origin")?(u=!0,a[t]=c):n[t]=c}if(!e.transform&&(l||r?n.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:i=!0},r,n){let s="";for(let e=0;e<tr;e++){let i=J[e];if(void 0!==t[i]){let e=ti[i]||i;s+=`${e}(${t[i]}) `}}return e&&!t.z&&(s+="translateZ(0)"),s=s.trim(),n?s=n(t,r?"":s):i&&r&&(s="none"),s}(t.transform,i,h,r):n.transform&&(n.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=a;n.transformOrigin=`${t} ${e} ${i}`}}let tk=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tC(t,e,i){for(let r in e)te(e[r])||tt(r,i)||(t[r]=e[r])}let tE=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function tV(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||tE.has(t)}let tM=t=>!tV(t);try{(n=t.r(31909).default)&&(tM=t=>t.startsWith("on")?!tV(t):n(t))}catch(t){}function tR(t,e,i){return"string"==typeof t?t:tb.transform(e+i*t)}let tL={offset:"stroke-dashoffset",array:"stroke-dasharray"},tD={offset:"strokeDashoffset",array:"strokeDasharray"};function tO(t,{attrX:e,attrY:i,attrScale:r,originX:n,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},h,c,d){let p,m;if(tj(t,u,h,d),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:f,style:g,dimensions:y}=t;f.transform&&(y&&(g.transform=f.transform),delete f.transform),y&&(void 0!==n||void 0!==s||g.transform)&&(p=tR(void 0!==n?n:.5,y.x,y.width),m=tR(void 0!==s?s:.5,y.y,y.height),g.transformOrigin=`${p} ${m}`),void 0!==e&&(f.x=e),void 0!==i&&(f.y=i),void 0!==r&&(f.scale=r),void 0!==o&&function(t,e,i=1,r=0,n=!0){t.pathLength=1;let s=n?tL:tD;t[s.offset]=tb.transform(-r);let o=tb.transform(e),a=tb.transform(i);t[s.array]=`${o} ${a}`}(f,o,a,l,!1)}let tF=()=>({...tk(),attrs:{}}),tI=t=>"string"==typeof t&&"svg"===t.toLowerCase();function tB(t,{style:e,vars:i},r,n){for(let s in Object.assign(t.style,e,n&&n.getProjectionStyles(r)),i)t.style.setProperty(s,i[s])}let tN=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function tU(t,e,i,r){for(let i in tB(t,e,void 0,r),e.attrs)t.setAttribute(tN.has(i)?i:L(i),e.attrs[i])}function tz(t,e){let{style:i}=t,r={};for(let n in i)(te(i[n])||e.style&&te(e.style[n])||tt(n,t))&&(r[n]=i[n]);return r}function t$(t,e){let i=tz(t,e);for(let r in t)(te(t[r])||te(e[r]))&&(i[-1!==J.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]);return i}function tW(t,e,i,r={},n={}){return"function"==typeof e&&(e=e(void 0!==i?i:t.custom,r,n)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==i?i:t.custom,r,n)),e}let tH=t=>Array.isArray(t),t_=t=>tH(t)?t[t.length-1]||0:t;function tq(t){let e=te(t)?t.get():t;return e&&"object"==typeof e&&e.mix&&e.toValue?e.toValue():e}let tY=t=>(e,i)=>{let r=(0,a.useContext)(M),n=(0,a.useContext)(x),s=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:i}
9,r,n,s){let o={latestValues:function(t,e,i,r){let n={},s=r(t,{});for(let t in s)n[t]=tq(s[t]);let{initial:o,animate:a}=t,l=$(t),u=W(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===o)?a:o;return c&&"boolean"!=typeof c&&!N(c)&&(Array.isArray(c)?c:[c]).forEach(e=>{let i=tW(t,e);if(!i)return;let{transitionEnd:r,transition:s,...o}=i;for(let t in o){let e=o[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(n[t]=e)}for(let t in r)n[t]=r[t]}),n}(r,n,s,t),renderState:e()};return i&&(o.mount=t=>i(r,t,o)),o})(t,e,r,n);return i?s():b(s)},tG={useVisualState:tY({scrapeMotionValuesFromProps:t$,createRenderState:tF,onMount:(t,e,{renderState:i,latestValues:r})=>{f.read(()=>{try{i.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}}),f.render(()=>{tO(i,r,{enableHardwareAcceleration:!1},tI(e.tagName),t.transformTemplate),tU(e,i)})}})},tX={useVisualState:tY({scrapeMotionValuesFromProps:tz,createRenderState:tk})};function tZ(t,e,i,r={passive:!0}){return t.addEventListener(e,i,r),()=>t.removeEventListener(e,i)}let tK=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tJ(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}function tQ(t,e,i,r){return tZ(t,e,t=>tK(t)&&i(t,tJ(t)),r)}let t0=(t,e)=>i=>e(t(i)),t1=(...t)=>t.reduce(t0);function t2(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let t4=t2("dragHorizontal"),t3=t2("dragVertical");function t5(t){let e=!1;if("y"===t)e=t3();else if("x"===t)e=t4();else{let t=t4(),i=t3();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function t9(){let t=t5(!0);return!t||(t(),!1)}class t8{constructor(t){this.isMounted=!1,this.node=t}update(){}}function t6(t,e){let i="onHover"+(e?"Start":"End");return tQ(t.current,"pointer"+(e?"enter":"leave"),(r,n)=>{if("touch"===r.pointerType||t9())return;let s=t.getProps();t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",e),s[i]&&f.update(()=>s[i](r,n))},{passive:!t.getProps()[i]})}let t7=(t,e)=>!!e&&(t===e||t7(t,e.parentElement));function et(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,tJ(i))}let ee=new WeakMap,ei=new WeakMap,er=t=>{let e=ee.get(t.target);e&&e(t)},en=t=>{t.forEach(er)},es={some:0,all:1};function eo(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let r=0;r<i;r++)if(e[r]!==t[r])return!1;return!0}function ea(t,e,i){let r,n,s=t.getProps();return tW(s,e,void 0!==i?i:s.custom,(r={},t.values.forEach((t,e)=>r[e]=t.get()),r),(n={},t.values.forEach((t,e)=>n[e]=t.getVelocity()),n))}let el=t=>1e3*t,eu=t=>Array.isArray(t)&&"number"==typeof t[0],eh=([t,e,i,r])=>`cubic-bezier(${t}, ${e}, ${i}, ${r})`,ec={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:eh([0,.65,.55,1]),circOut:eh([.55,0,1,.45]),backIn:eh([.31,.01,.66,-.59]),backOut:eh([.33,1.53,.69,.99])},ed=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function ep(t,e,i,r){return t===e&&i===r?c:n=>0===n||1===n?n:ed(function(t,e,i,r,n){let s,o,a=0;do(s=ed(o=e+(i-e)/2,r,n)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12)return o}(n,0,1,t,i),e,r)}let em=ep(.42,0,1,1),ef=ep(0,0,.58,1),eg=ep(.42,0,.58,1),ey=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ev=t=>e=>1-t(1-e),ex=t=>1-Math.sin(Math.acos(t)),eb=ev(ex),ew=ey(ex),eP=ep(.33,1.53,.69,.99),eA=ev(eP),eT=ey(eA),eS={linear:c,easeIn:em,easeInOut:eg,easeOut:ef,circIn:ex,circInOut:ew,circOut:eb,backIn:eA,backInOut:eT,backOut:eP,anticipate:t=>(t*=2)<1?.5*eA(t):.5*(2-Math.pow(2,-10*(t-1)))},ej=t=>{if(Array.isArray(t)){c(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,r,n]=t;return ep(e,i,r,n)}return"string"==typeof t?(c(void 0!==eS[t],`Invalid easing type '${t}'`),eS[t]):t},ek=(t,e)=>i=>!!(tg(i)&&tf.test(i)&&i.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(i,e)),eC=(t,e,i)=>r=>{if(!tg(r))return r;let[n,s,o,a]=r.match(tp);return{[t]:parseFloat(n),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},eE={...tu,transform:t=>Math.round(tl(0,255,t))},eV={test:ek("rgb","red"),parse:eC("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:r=1})=>"rgba("+eE.transform(t)+", "+eE.transform(e)+", "+eE.transform(i)+", "+td(th.transform(r))+")"},eM={test:ek("#"),parse:function(t){let e="",i="",r="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),r=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),r=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,r+=r,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(r,16),alph
9a:n?parseInt(n,16)/255:1}},transform:eV.transform},eR={test:ek("hsl","hue"),parse:eC("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:r=1})=>"hsla("+Math.round(t)+", "+tx.transform(td(e))+", "+tx.transform(td(i))+", "+td(th.transform(r))+")"},eL={test:t=>eV.test(t)||eM.test(t)||eR.test(t),parse:t=>eV.test(t)?eV.parse(t):eR.test(t)?eR.parse(t):eM.parse(t),transform:t=>tg(t)?t:t.hasOwnProperty("red")?eV.transform(t):eR.transform(t)},eD=(t,e,i)=>-i*t+i*e+t;function eO(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}let eF=(t,e,i)=>{let r=t*t;return Math.sqrt(Math.max(0,i*(e*e-r)+r))},eI=[eM,eV,eR];function eB(t){let e=eI.find(e=>e.test(t));c(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let i=e.parse(t);return e===eR&&(i=function({hue:t,saturation:e,lightness:i,alpha:r}){t/=360,i/=100;let n=0,s=0,o=0;if(e/=100){let r=i<.5?i*(1+e):i+e-i*e,a=2*i-r;n=eO(a,r,t+1/3),s=eO(a,r,t),o=eO(a,r,t-1/3)}else n=s=o=i;return{red:Math.round(255*n),green:Math.round(255*s),blue:Math.round(255*o),alpha:r}}(i)),i}let eN=(t,e)=>{let i=eB(t),r=eB(e),n={...i};return t=>(n.red=eF(i.red,r.red,t),n.green=eF(i.green,r.green,t),n.blue=eF(i.blue,r.blue,t),n.alpha=eD(i.alpha,r.alpha,t),eV.transform(n))}
9,eU={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:c},ez={regex:tm,countKey:"Colors",token:"${c}",parse:eL.parse},e$={regex:tp,countKey:"Numbers",token:"${n}",parse:tu.parse};function eW(t,{regex:e,countKey:i,token:r,parse:n}){let s=t.tokenised.match(e);s&&(t["num"+i]=s.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...s.map(n)))}function eH(t){let e=t.toString(),i={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return i.value.includes("var(--")&&eW(i,eU),eW(i,ez),eW(i,e$),i}function e_(t){return eH(t).values}function eq(t){let{values:e,numColors:i,numVars:r,tokenised:n}=eH(t),s=e.length;return t=>{let e=n;for(let n=0;n<s;n++)e=n<r?e.replace(eU.token,t[n]):n<r+i?e.replace(ez.token,eL.transform(t[n])):e.replace(e$.token,td(t[n]));return e}}let eY=t=>"number"==typeof t?0:t,eG={test:function(t){var e,i;return isNaN(t)&&tg(t)&&((null==(e=t.match(tp))?void 0:e.length)||0)+((null==(i=t.match(tm))?void 0:i.length)||0)>0},parse:e_,createTransformer:eq,getAnimatableNone:function(t){let e=e_(t);return eq(t)(e.map(eY))}},eX=(t,e)=>i=>`${i>0?e:t}`;function eZ(t,e){return"number"==typeof t?i=>eD(t,e,i):eL.test(t)?eN(t,e):t.startsWith("var(")?eX(t,e):eQ(t,e)}let eK=(t,e)=>{let i=[...t],r=i.length,n=t.map((t,i)=>eZ(t,e[i]));return t=>{for(let e=0;e<r;e++)i[e]=n[e](t);return i}},eJ=(t,e)=>{let i={...t,...e},r={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(r[n]=eZ(t[n],e[n]));return t=>{for(let e in r)i[e]=r[e](t);return i}},eQ=(t,e)=>{let i=eG.createTransformer(e),r=eH(t),n=eH(e);return r.numVars===n.numVars&&r.numColors===n.numColors&&r.numNumbers>=n.numNumbers?t1(eK(r.values,n.values),i):(c(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),eX(t,e))},e0=(t,e,i)=>{let r=e-t;return 0===r?1:(i-t)/r},e1=(t,e)=>i=>eD(t,e,i);function e2(t,e,{clamp:i=!0,ease:r,mixer:n}={}){let s=t.length;if(c(s===e.length,"Both input and output ranges must be the same length"),1===s)return()=>e[0];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let r=[],n=i||function(t){if("number"==typeof t);else if("string"==typeof t)return eL.test(t)?eN:eQ;else if(Array.isArray(t))return eK;else if("object"==typeof t)return eJ;return e1}(t[0]),s=t.length-1;for(let i=0;i<s;i++){let s=n(t[i],t[i+1]);e&&(s=t1(Array.isArray(e)?e[i]||c:e,s)),r.push(s)}return r}(e,r,n),a=o.length,l=e=>{let i=0;if(a>1)for(;i<t.length-2&&!(e<t[i+1]);i++);let r=e0(t[i],t[i+1],e);return o[i](r)};return i?e=>l(tl(t[0],t[s-1],e)):l}function e4({duration:t=300,keyframes:e,times:i,ease:r="easeInOut"}){var n;let s,o=Array.isArray(r)&&"number"!=typeof r[0]?r.map(ej):ej(r),a={done:!1,value:e[0]},l=e2((n=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let r=1;r<=e;r++){let n=e0(0,e,r);t.push(eD(i,1,n))}}(s=[0],e.length-1),s),n.map(e=>e*t)),e,{ease:Array.isArray(o)?o:e.map(()=>o||eg).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=l(e),a.done=e>=t,a)}}function e3(t,e,i){var r,n;let s=Math.max(e-5,0);return r=i-t(s),(n=e-s)?1e3/n*r:0}function e5(t,e){return t*Math.sqrt(1-e*e)}let e9=["duration","bounce"],e8=["stiffness","damping","mass"];function e6(t,e){return e.some(e=>void 0!==t[e])}function e7({keyframes:t,restDelta:e,restSpeed:i,...r}){let n,s=t[0],o=t[t.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:h,duration:d,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!e6(t,e8)&&e6(t,e9)){let i=function({duration:t=800,bounce:e=.25,velocity:i=0,mass:r=1}){let n,s;c(t<=el(10),"Spring duration must be 10 seconds or less");let o=1-e;o=tl(.05,1,o),t=tl(.01,10,t/1e3),o<1?(n=e=>{let r=e*o,n=r*t;return .001-(r-i)/e5(e,o)*Math.exp(-n)},s=e=>{let r=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-r),l=e5(Math.pow(e,2),o);return(r*i+i-s)*a*(-n(e)+.001>0?-1:1)/l}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));
9let a=function(t,e,i){let r=i;for(let i=1;i<12;i++)r-=t(r)/e(r);return r}(n,s,5/t);if(t=el(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*r;return{stiffness:e,damping:2*o*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...r,velocity:-((r.velocity||0)/1e3)}),f=p||0,g=u/(2*Math.sqrt(l*h)),y=o-s,v=Math.sqrt(l/h)/1e3,x=5>Math.abs(y);if(i||(i=x?.01:2),e||(e=x?.005:.5),g<1){let t=e5(v,g);n=e=>o-Math.exp(-g*v*e)*((f+g*v*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===g)n=t=>o-Math.exp(-v*t)*(y+(f+v*y)*t);else{let t=v*Math.sqrt(g*g-1);n=e=>{let i=Math.exp(-g*v*e),r=Math.min(t*e,300);return o-i*((f+g*v*y)*Math.sinh(r)+t*y*Math.cosh(r))/t}}return{calculatedDuration:m&&d||null,next:t=>{let r=n(t);if(m)a.done=t>=d;else{let s=f;0!==t&&(s=g<1?e3(n,t,r):0);let l=Math.abs(o-r)<=e;a.done=Math.abs(s)<=i&&l}return a.value=a.done?o:r,a}}}function it({keyframes:t,velocity:e=0,power:i=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,y=void 0===o?g:o(g);y!==g&&(f=y-p);let v=t=>-f*Math.exp(-t/r),x=t=>y+v(t),b=t=>{let e=v(t),i=x(t);m.done=Math.abs(e)<=u,m.value=m.done?y:i},w=t=>{let e;if(e=m.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;c=t,d=e7({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:e3(x,t,m.value),damping:n,stiffness:s,restDelta:u,restSpeed:h})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,b(t),w(t)),void 0!==c&&t>c)?d.next(t-c):(e||b(t),m)}}}function ie(){e=void 0}let ii={now:()=>(void 0===e&&ii.set(y.isProcessing?y.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(ie)}},ir=t=>{let e=({timestamp:e})=>t(e);return{start:()=>f.update(e,!0),stop:()=>g(e),now:()=>y.isProcessing?y.timestamp:ii.now()}};function is(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let io={decay:it,inertia:it,tween:e4,keyframes:e4,spring:e7};function ia({autoplay:t=!0,delay:e=0,driver:i=ir,keyframes:r,type:n="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:h,onUpdate:c,...d}){let p,m,f,g,y,v=1,x=!1,b=()=>{m=new Promise(t=>{p=t})};b();let w=io[n]||e4;w!==e4&&"number"!=typeof r[0]&&(g=e2([0,100],r,{clamp:!1}),r=[0,100]);let P=w({...d,keyframes:r});"mirror"===a&&(y=w({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let A="idle",T=null,S=null,j=null;null===P.calculatedDuration&&s&&(P.calculatedDuration=is(P));let{calculatedDuration:k}=P,C=1/0,E=1/0;null!==k&&(E=(C=k+o)*(s+1)-o);let V=0,M=t=>{if(null===S)return;v>0&&(S=Math.min(S,t)),v<0&&(S=Math.min(t-E/v,S));let i=(V=null!==T?T:Math.round(t-S)*v)-e*(v>=0?1:-1),n=v>=0?i<0:i>E;V=Math.max(i,0),"finished"===A&&null===T&&(V=E);let l=V,u=P;if(s){let t=Math.min(V,E)/C,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,s+1))%2&&("reverse"===a?(i=1-i,o&&(i-=o/C)):"mirror"===a&&(u=y)),l=tl(0,1,i)*C}let h=n?{done:!1,value:r[0]}:u.next(l);g&&(h.value=g(h.value));let{done:d}=h;n||null===k||(d=v>=0?V>=E:V<=0);let p=null===T&&("finished"===A||"running"===A&&d);return c&&c(h.value),p&&D(),h},R=()=>{f&&f.stop(),f=void 0},L=()=>{A="idle",R(),p(),b(),S=j=null},D=()=>{A="finished",h&&h(),R(),p()},O=()=>{if(x)return;f||(f=i(M));let t=f.now();l&&l(),null!==T?S=t-T:S&&"finished"!==A||(S=t),"finished"===A&&b(),j=S,T=null,A="running",f.start()};t&&O();let F={then:(t,e)=>m.then(t,e),get time(){return V/1e3},set time(newTime){V=newTime=el(newTime),null===T&&f&&0!==v?S=f.now()-newTime/v:T=newTime},get duration(){return(null===P.calculatedDuration?is(P):P.calculatedDuration)/1e3},get speed(){return v},set speed(newSpeed){if(newSpeed===v||!f)return;v=newSpeed,F.time=V/1e3},get state(){return A},play:O,pause:()=>{A="paused",T=V},stop:()=>{x=!0,"idle"!==A&&(A="idle",u&&u(),L())},cancel:()=>{null!==j&&M(j),L()},complete:()=>{A="finished"},sample:t=>(S=0,M(t))};return F}let il=(s=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===i&&(i=s()),i)),iu=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ih={type:"spring",stiffness:500,damping:25,restSpeed:10},ic={type:"keyframes",duration:.8},id={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ip=(t,e)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eG.test(e)||"0"===e)&&!e.startsWith("url(")),im=new Set(["brightness","contrast","saturate","opacity"]);function ig(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=i.match(tp)||[];if(!r)return t;let n=i.replace(r,""),s=+!!im.has(e);return r!==i&&(s*=100),e+"("+s+n+")"}let iy=/([a-z-]*)\(.*?\)/g,iv={...eG,getAnimatableNone:t=>{let e=t.match(iy);return e?e.map(ig).join(" "):t}}
9,ix={...tS,color:eL,backgroundColor:eL,outlineColor:eL,fill:eL,stroke:eL,borderColor:eL,borderTopColor:eL,borderRightColor:eL,borderBottomColor:eL,borderLeftColor:eL,filter:iv,WebkitFilter:iv},ib=t=>ix[t];function iw(t,e){let i=ib(t);return i!==iv&&(i=eG),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let iP=t=>/^0[^.\s]+$/.test(t);function iA(t,e){return t[e]||t.default||t}let iT=(t,e,i,r={})=>n=>{let s=iA(r,t)||{},o=s.delay||r.delay||0,{elapsed:a=0}=r;a-=el(o);let l=function(t,e,i,r){let n,s,o=ip(e,i);n=Array.isArray(i)?[...i]:[null,i];let a=void 0!==r.from?r.from:t.get(),l=[];for(let t=0;t<n.length;t++){var u;null===n[t]&&(n[t]=0===t?a:n[t-1]),("number"==typeof(u=n[t])?0===u:null!==u?"none"===u||"0"===u||iP(u):void 0)&&l.push(t),"string"==typeof n[t]&&"none"!==n[t]&&"0"!==n[t]&&(s=n[t])}if(o&&l.length&&s)for(let t=0;t<l.length;t++)n[l[t]]=iw(e,s);return n}(e,t,i,s),u=l[0],h=l[l.length-1],d=ip(t,u),p=ip(t,h);c(d===p,`You are trying to animate ${t} from "${u}" to "${h}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${h} via the \`style\` property.`);let m={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...s,delay:-a,onUpdate:t=>{e.set(t),s.onUpdate&&s.onUpdate(t)},onComplete:()=>{n(),s.onComplete&&s.onComplete()}};if(!function({when:t,delay:e,delayChildren:i,staggerChildren:r,staggerDirection:n,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(s)&&(m={...m,...((t,{keyframes:e})=>e.length>2?ic:Q.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:ih:id)(t,m)}),m.duration&&(m.duration=el(m.duration)),m.repeatDelay&&(m.repeatDelay=el(m.repeatDelay)),!d||!p||!1===s.type)return function({keyframes:t,delay:e,onUpdate:i,onComplete:r}){let n=()=>(i&&i(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:c,pause:c,stop:c,then:t=>(t(),Promise.resolve()),cancel:c,complete:c});return e?ia({keyframes:[0,1],duration:0,delay:e,onComplete:n}):n()}(m);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){let i=function(t,e,{onUpdate:i,onComplete:r,...n}){let s,o;if(!(il()&&iu.has(e)&&!n.repeatDelay&&"mirror"!==n.repeatType&&0!==n.damping&&"inertia"!==n.type))return!1;let a=!1,l=!1,u=()=>{o=new Promise(t=>{s=t})};u();let{keyframes:h,duration:d=300,ease:p,times:m}=n;if("spring"===n.type||"backgroundColor"===e||!function t(e){return!!(!e||"string"==typeof e&&ec[e]||eu(e)||Array.isArray(e)&&e.every(t))}(n.ease)){let t=ia({...n,repeat:0,delay:0}),e={done:!1,value:h[0]},i=[],r=0;for(;!e.done&&r<2e4;)e=t.sample(r),i.push(e.value),r+=10;m=void 0,h=i,d=r-10,p="linear"}let y=function(t,e,i,{delay:r=0,duration:n,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=function t(e){if(e)return eu(e)?eh(e):Array.isArray(e)?e.map(t):ec[e]}(a);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:r,duration:n,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"})}(t.owner.current,e,h,{...n,duration:d,ease:p,times:m}),v=()=>{l=!1,y.cancel()},x=()=>{l=!0,f.update(v),s(),u()};return y.onfinish=()=>{l||(t.set(function(t,{repeat:e,repeatType:i="loop"}){let r=e&&"loop"!==i&&e%2==1?0:t.length-1;return t[r]}(h,n)),r&&r(),x())},{then:(t,e)=>o.then(t,e),attachTimeline:t=>(y.timeline=t,y.onfinish=null,c),get time(){return(y.currentTime||0)/1e3},set time(newTime){y.currentTime=el(newTime)},get speed(){return y.playbackRate},set speed(newSpeed){y.playbackRate=newSpeed},get duration(){return d/1e3},play:()=>{a||(y.play(),g(v))},pause:()=>y.pause(),stop:()=>{if(a=!0,"idle"===y.playState)return;let{currentTime:e}=y;if(e){let i=ia({...n,autoplay:!1});t.setWithVelocity(i.sample(e-10).value,i.sample(e).value,10)}x()},complete:()=>{l||y.finish()},cancel:x}}(e,t,m);if(i)return i}return ia(m)};function iS(t){return!!(te(t)&&t.add)}let ij=t=>/^\-?\d*\.?\d+$/.test(t);function ik(t,e){-1===t.indexOf(e)&&t.push(e)}function iC(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class iE{constructor(){this.subscriptions=[]}add(t){return ik(this.subscriptions,t),()=>iC(this.subscriptions,t)}notify(t,e,i){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,i);else for(let n=0;n<r;n++){let r=this.subscriptions[n];r&&r(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class iV{constructor(t,e={}){this.version="11.0.0",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=ii.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=(t=>!isNaN(parseFloat(t)))(this.current),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=ii.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new iE);let i=this.events[t].add(e);return"change"===t?()=>{i(),f.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=t,this.prevUpdatedAt=this.updatedAt-i}jump(t){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return r&&r.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=ii.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function iM(t,e){return new iV(t,e)}let iR=t=>e=>e.test(t),iL=[tu,tb,tx,tv,tP,tw,{test:t=>"auto"===t,parse:t=>t}],iD=t=>iL.find(iR(t)),iO=[...iL,eL,eG],iF=t=>iO.find(iR(t));function iI(t,e,{delay:i=0,transitionOverride:r,type:n}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:o,...a}=t.makeTargetAnimatable(e),l=t.getValue("willChange");r&&(s=r);let u=[],h=n&&t.animationState&&t.animationState.getState()[n];for(let e in a){let r=t.getValue(e),n=a[e];if(!r||void 0===n||h&&function({protectedKeys:t,needsAnimating:e},i){let r=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,r}(h,e))continue;let o={delay:i,elapsed:0,...iA(s||{},e)};if(window.HandoffAppearAnimations){let i=t.getProps()[D];if(i){let t=window.HandoffAppearAnimations(i,e,r,f);
9null!==t&&(o.elapsed=t,o.isHandoff=!0)}}let c=!o.isHandoff&&!function(t,e){let i=t.get();if(!Array.isArray(e))return i!==e;for(let t=0;t<e.length;t++)if(e[t]!==i)return!0}(r,n);if("spring"===o.type&&(r.getVelocity()||o.velocity)&&(c=!1),r.animation&&(c=!1),c)continue;r.start(iT(e,r,n,t.shouldReduceMotion&&Q.has(e)?{type:!1}:o));let d=r.animation;iS(l)&&(l.add(e),d.then(()=>l.remove(e))),u.push(d)}return o&&Promise.all(u).then(()=>{o&&function(t,e){let i=ea(t,e),{transitionEnd:r={},transition:n={},...s}=i?t.makeTargetAnimatable(i,!1):{};for(let e in s={...s,...r}){let i=t_(s[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,iM(i))}}(t,o)}),u}function iB(t,e,i={}){let r=ea(t,e,i.custom),{transition:n=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(n=i.transitionOverride);let s=r?()=>Promise.all(iI(t,r,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=n;return function(t,e,i=0,r=0,n=1,s){let o=[],a=(t.variantChildren.size-1)*r,l=1===n?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(iN).forEach((t,r)=>{t.notify("AnimationStart",e),o.push(iB(t,e,{...s,delay:i+l(r)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,s+r,o,a,i)}:()=>Promise.resolve(),{when:a}=n;if(!a)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}function iN(t,e){return t.sortNodePosition(e)}let iU=[...U].reverse(),iz=U.length;function i$(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let iW=0,iH=(t,e)=>Math.abs(t-e);class i_{constructor(t,e,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=iG(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(iH(t.x,e.x)**2+iH(t.y,e.y)**2)>=3);if(!r&&!n)return;let{point:s}=i,{timestamp:o}=y;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;r||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=iq(e,this.transformPagePoint),f.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:r,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=iG("pointercancel"===t.type?this.lastMoveEventInfo:iq(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),r&&r(t,s)},!tK(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.contextWindow=r||window;const s=iq(tJ(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=y;this.history=[{...o,timestamp:a}];const{onSessionStart:l}=e;l&&l(t,iG(s,this.history)),this.removeListeners=t1(tQ(this.contextWindow,"pointermove",this.handlePointerMove),tQ(this.contextWindow,"pointerup",this.handlePointerUp),tQ(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),g(this.updatePoint)}}function iq(t,e){return e?{point:e(t.point)}:t}function iY(t,e){return{x:t.x-e.x,y:t.y-e.y}}function iG({point:t},e){return{point:t,delta:iY(t,iX(e)),offset:iY(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,r=iX(t);for(;e>=0&&(i=t[e],!(r.timestamp-i.timestamp>el(.1)));)e--;if(!i)return{x:0,y:0};let n=(r.timestamp-i.timestamp)/1e3;if(0===n)return{x:0,y:0};let s={x:(r.x-i.x)/n,y:(r.y-i.y)/n};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e)}}function iX(t){return t[t.length-1]}function iZ(t){return t.max-t.min}function iK(t,e=0,i=.01){return Math.abs(t-e)<=i}function iJ(t,e,i,r=.5){t.origin=r,t.originPoint=eD(e.min,e.max,t.origin),t.scale=iZ(i)/iZ(e),(iK(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=eD(i.min,i.max,t.origin)-t.originPoint,(iK(t.translate)||isNaN(t.translate))&&(t.translate=0)}function iQ(t,e,i,r){iJ(t.x,e.x,i.x,r?r.originX:void 0),iJ(t.y,e.y,i.y,r?r.originY:void 0)}function i0(t,e,i){t.min=i.min+e.min,t.max=t.min+iZ(e)}function i1(t,e,i){t.min=e.min-i.min,t.max=t.min+iZ(e)}function i2(t,e,i){i1(t.x,e.x,i.x),i1(t.y,e.y,i.y)}function i4(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function i3(t,e){let i=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,r]=[r,i]),{min:i,max:r}}function i5(t,e,i){return{min:i9(t,e),max:i9(t,i)}}function i9(t,e){return"number"==typeof t?t:t[e]||0}let i8=()=>({translate:0,scale:1,origin:0,originPoint:0}),i6=()=>({x:i8(),y:i8()}),i7=()=>({min:0,max:0}),rt=()=>({x:i7(),y:i7()});function re(t){return[t("x"),t("y")]}function ri({top:t,left:e,right:i,bottom:r}){return{x:{min:e,max:i},y:{min:t,max:r}}}function rr(t){return void 0===t||1===t}function rn({scale:t,scaleX:e,scaleY:i}){return!rr(t)||!rr(e)||!rr(i)}function rs(t){return rn(t)||ro(t)||t.z||t.rotate||t.rotateX||t.rotateY}function ro(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function ra(t,e,i,r,n){return void 0!==n&&(t=r+n*(t-r)),r+i*(t-r)+e}function rl(t,e=0,i=1,r,n){t.min=ra(t.min,e,i,r,n),t.max=ra(t.max,e,i,r,n)}function ru(t,{x:e,y:i}){rl(t.x,e.translate,e.scale,e.originPoint),rl(t.y,i.translate,i.scale,i.originPoint)}function rh(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function rc(t,e){t.min=t.min+e,t.max=t.max+e}function rd(t,e,[i,r,n]){let s=void 0!==e[n]?e[n]:.5,o=eD(t.min,t.max,s);rl(t,e[i],e[r],o,e.scale)}let rp=["x","scaleX","originX"],rm=["y","scaleY","originY"];function rf(t,e){rd(t.x,e,rp),rd(t.y,e,rm)}function rg(t,e){return ri(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}let ry=({current:t})=>t?t.ownerDocument.defaultView:null,rv=new WeakMap;class rx{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=rt(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let r=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(tJ(t,"page").point)},n=(t,e)=>{let{drag:i,dragPropagation:r,onDragStart:n}=this.getProps();if(i&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=t5(i),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),re(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tx.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[t];r&&(e=iZ(r)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&f.update(()=>n(t,e),!1,!0);let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},s=(t,e)=>{let{dragPropagation:i,dragDirectionLock:r,onDirectionLock:n,onDrag:s}=this.getProps();if(!i&&!this.openGlobalLock)return;let{offset:o}=e;if(r&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},o=(t,e)=>this.stop(t,e),a=()=>re(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new i_(t,{onSessionStart:r,onStart:n,onMove:s,onSessionEnd:o,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:ry(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:r}=e;this.startAnimation(r);let{onDragEnd:n}=this.getProps();n&&f.update(()=>n(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:r}=this.getProps();if(!i||!rb(t,r,this.currentDirection))return;let n=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},r){return void 0!==e&&t<e?t=r?eD(e,t,r.min):Math.max(t,e):void 0!==i&&t>i&&(t=r?eD(i,t,r.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),n.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,n=this.constraints;e&&I(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(t,{top:e,left:i,bottom:r,right:n}){return{x:i4(t.x,i,n),y:i4(t.y,e,r)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:i5(t,"left","right"),y:i5(t,"top","bottom")}}(i),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&re(t=>{var e,i;let n;this.getAxisMotionValue(t)&&(this.constraints[t]=(e=r.layoutBox[t],i=this.constraints[t],n={},void 0!==i.min&&(n.min=i.min-e.min),void 0!==i.max&&(n.max=i.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!I(e))return!1;let r=e.current;c(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;
9let s=function(t,e,i){let r=rg(t,i),{scroll:n}=e;return n&&(rc(r.x,n.offset.x),rc(r.y,n.offset.y)),r}(r,n.root,this.visualElement.getTransformPagePoint()),o=(t=n.layout.layoutBox,{x:i3(t.x,s.x),y:i3(t.y,s.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=ri(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:r,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(re(o=>{if(!rb(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return i.start(iT(t,i,0,e))}stopAnimation(){re(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){re(t=>{var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.pause()})}getAnimationState(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}getAxisMotionValue(t){let e="_drag"+t.toUpperCase(),i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){re(e=>{let{drag:i}=this.getProps();if(!rb(e,i,this.currentDirection))return;let{projection:r}=this.visualElement,n=this.getAxisMotionValue(e);if(r&&r.layout){let{min:i,max:s}=r.layout.layoutBox[e];n.set(t[e]-eD(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!I(e)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};re(t=>{let e=this.getAxisMotionValue(t);if(e){var i,n;let s,o,a,l=e.get();r[t]=(i={min:l,max:l},n=this.constraints[t],s=.5,o=iZ(i),(a=iZ(n))>o?s=e0(n.min,n.max-o,i.min):o>a&&(s=e0(i.min,i.max-a,n.min)),tl(0,1,s))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),re(e=>{if(!rb(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:s}=this.constraints[e];i.set(eD(n,s,r[e]))})}addListeners(){if(!this.visualElement.current)return;rv.set(this.visualElement,this);let t=tQ(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();I(t)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),e();let n=tZ(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(re(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{n(),t(),r(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:r,dragConstraints:n,dragElastic:s,dragMomentum:o}}}function rb(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let rw=t=>(e,i)=>{t&&f.update(()=>t(e,i))};var rP=a;let rA={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rT(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let rS={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!tb.test(t))return t;else t=parseFloat(t);let i=rT(t,e.target.x),r=rT(t,e.target.y);return`${i}% ${r}%`}};class rj extends rP.default.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:r}=this.props,{projection:n}=t;Object.assign(K,rC),n&&(e.group&&e.group.add(n),i&&i.register&&r&&i.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),rA.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:r,isPresent:n}=this.props,s=i.projection;return s&&(s.isPresent=n,r||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?s.promote():s.relegate()||f.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),O.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function rk(t){let[e,i]=function(){let t=(0,a.useContext)(x);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:r}=t,n=(0,a.useId)();return(0,a.useEffect)(()=>r(n),[]),!e&&i?[!1,()=>i&&i(n)]:[!0]}(),r=(0,rP.useContext)(j);return rP.default.createElement(rj,{...t,layoutGroup:r,switchLayoutGroup:(0,rP.useContext)(Y),isPresent:e,safeToRemove:i})}let rC={borderRadius:{...rS,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rS,borderTopRightRadius:rS,borderBottomLeftRadius:rS,borderBottomRightRadius:rS,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let r=eG.parse(t);if(r.length>5)return t;let n=eG.createTransformer(t),s=+("number"!=typeof r[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;r[0+s]/=o,r[1+s]/=a;let l=eD(o,a,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),n(r)}}},rE=["TopLeft","TopRight","BottomLeft","BottomRight"],rV=rE.length,rM=t=>"string"==typeof t?parseFloat(t):t,rR=t=>"number"==typeof t||tb.test(t);function rL(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rD=rF(0,.5,eb),rO=rF(.5,.95,c);
9function rF(t,e,i){return r=>r<t?0:r>e?1:i(e0(t,e,r))}function rI(t,e){t.min=e.min,t.max=e.max}function rB(t,e){rI(t.x,e.x),rI(t.y,e.y)}function rN(t,e,i,r,n){return t-=e,t=r+1/i*(t-r),void 0!==n&&(t=r+1/n*(t-r)),t}function rU(t,e,[i,r,n],s,o){!function(t,e=0,i=1,r=.5,n,s=t,o=t){if(tx.test(e)&&(e=parseFloat(e),e=eD(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=eD(s.min,s.max,r);t===s&&(a-=e),t.min=rN(t.min,e,i,a,n),t.max=rN(t.max,e,i,a,n)}(t,e[i],e[r],e[n],e.scale,s,o)}let rz=["x","scaleX","originX"],r$=["y","scaleY","originY"];function rW(t,e,i,r){rU(t.x,e,rz,i?i.x:void 0,r?r.x:void 0),rU(t.y,e,r$,i?i.y:void 0,r?r.y:void 0)}function rH(t){return 0===t.translate&&1===t.scale}function r_(t){return rH(t.x)&&rH(t.y)}function rq(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function rY(t){return iZ(t.x)/iZ(t.y)}class rG{constructor(){this.members=[]}add(t){ik(this.members,t),t.scheduleRender()}remove(t){if(iC(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:r}=t.options;!1===r&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function rX(t,e,i){let r="",n=t.x.translate/e.x,s=t.y.translate/e.y;if((n||s)&&(r=`translate3d(${n}px, ${s}px, 0) `),(1!==e.x||1!==e.y)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),i){let{rotate:t,rotateX:e,rotateY:n}=i;t&&(r+=`rotate(${t}deg) `),e&&(r+=`rotateX(${e}deg) `),n&&(r+=`rotateY(${n}deg) `)}let o=t.x.scale*e.x,a=t.y.scale*e.y;return(1!==o||1!==a)&&(r+=`scale(${o}, ${a})`),r||"none"}let rZ=(t,e)=>t.depth-e.depth;class rK{constructor(){this.children=[],this.isDirty=!1}add(t){ik(this.children,t),this.isDirty=!0}remove(t){iC(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rZ),this.isDirty=!1,this.children.forEach(t)}}let rJ=["","X","Y","Z"],rQ={visibility:"hidden"},r0=0,r1={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function r2({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(t={},i=null==e?void 0:e()){this.id=r0++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,r1.totalNodes=r1.resolvedTargetDeltas=r1.recalculatedProjection=0,this.nodes.forEach(r5),this.nodes.forEach(ni),this.nodes.forEach(nr),this.nodes.forEach(r9),window.MotionDebug&&window.MotionDebug.record(r1)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new rK)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new iE),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:r,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(n||r)&&(this.isLayoutDirty=!0),t){let i,r=()=>this.root.updateBlockedByResize=!1;t(e,()=>{let t,e;this.root.updateBlockedByResize=!0,i&&i(),t=ii.now(),e=({timestamp:i})=>{let n=i-t;n>=250&&(g(e),r(n-250))},f.read(e,!0),i=()=>g(e),rA.hasAnimatedSinceResize&&(rA.hasAnimatedSinceResize=!1,this.nodes.forEac
vendor: 6,466 bytes, line 9
9h(ne))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&s&&(r||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||s.getDefaultTransition()||nu,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!rq(this.targetLayout,r)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...iA(n,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||ne(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,g(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(nn),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(r6);return}this.isUpdating||this.nodes.forEach(r7),this.isUpdating=!1,this.nodes.forEach(nt),this.nodes.forEach(r4),this.nodes.forEach(r3),this.clearAllSnapshots();let t=ii.now();y.delta=tl(0,1e3/60,t-y.timestamp),y.timestamp=t,y.isProcessing=!0,v.update.process(y),v.preRender.process(y),v.render.process(y),y.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,O.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(r8),this.sharedNodes.forEach(ns)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,f.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){f.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=rt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:r(this.instance),offset:i(this.instance)})}resetTransform(){if(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!r_(this.projectionDelta),i=this.getTransformTemplate(),r=i?i(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;t&&(e||rs(this.latestValues)||s)&&(n(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),r=this.removeElementScroll(i);return t&&(r=this.removeTransform(r)),nd((e=r).x),nd(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return rt();let e=t.measureViewportBox(),{scroll:i}=this.root;return i&&(rc(e.x,i.offset.x),rc(e.y,i.offset.y)),e}removeElementScroll(t){let e=rt();rB(e,t);for(let i=0;i<this.path.length;i++){let r=this.path[i],{scroll:n,options:s}=r;if(r!==this.root&&n&&s.layoutScroll){if(n.isRoot){rB(e,t);let{scroll:i}=this.root;i&&(rc(e.x,-i.offset.x),rc(e.y,-i.offset.y))}rc(e.x,n.offset.x),rc(e.y,n.offset.y)}}return e}applyTransform(t,e=!1){let i=rt();rB(i,t);for(let t=0;t<this.path.length;t++){let r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&rf(i,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),rs(r.latestValues)&&rf(i,r.latestValues)}return rs(this.latestValues)&&rf(i,this.latestValues),i}removeTransform(t){let e=rt();rB(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!rs(i.latestValues))continue;rn(i.latestValues)&&i.updateSnapshot();let r=rt();rB(r,i.measurePageBox()),rW(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,r)}return rs(this.latestValues)&&rW(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==y.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,r,n;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isS
9haredProjectionDirty);let o=!!this.resumingFrom||this!==s;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=y.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rt(),this.relativeTargetOrigin=rt(),i2(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),rB(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=rt(),this.targetWithTransforms=rt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,r=this.relativeTarget,n=this.relativeParent.target,i0(i.x,r.x,n.x),i0(i.y,r.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rB(this.target,this.layout.layoutBox),ru(this.target,this.targetDelta)):rB(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rt(),this.relativeTargetOrigin=rt(),i2(this.relativeTargetOrigin,this.target,t.target),rB(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}r1.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||rn(this.parent.latestValues)||ro(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(r=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===y.timestamp&&(r=!1),r)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;rB(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,r=!1){let n,s,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(n=i[a]).projectionDelta;let o=n.instance;(!o||!o.style||"contents"!==o.style.display)&&(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&rf(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,ru(t,s)),r&&rs(n.latestValues)&&rf(t,n.latestValues))}e.x=rh(e.x),e.y=rh(e.y)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox);let{target:l}=e;if(!l){this.projectionTransform&&(this.projectionDelta=i6(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=i6(),this.projectionDeltaWithTransform=i6());let u=this.projectionTransform;iQ(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=rX(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==o||this.treeScale.y!==a)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),r1.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){let i,r=this.snapshot,n=r?r.latestValues:{},s={...this.latestValues},o=i6();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=rt(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&
9!0===this.options.crossfade&&!this.path.some(nl));this.animationProgress=0,this.mixTargetDelta=e=>{let r=e/1e3;if(no(o.x,t.x,r),no(o.y,t.y,r),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,m,f,g;i2(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,g=r,na(p.x,m.x,f.x,g),na(p.y,m.y,f.y,g),i&&(u=this.relativeTarget,d=i,u.x.min===d.x.min&&u.x.max===d.x.max&&u.y.min===d.y.min&&u.y.max===d.y.max)&&(this.isProjectionDirty=!1),i||(i=rt()),rB(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,r,n,s){n?(t.opacity=eD(0,void 0!==i.opacity?i.opacity:1,rD(r)),t.opacityExit=eD(void 0!==e.opacity?e.opacity:1,0,rO(r))):s&&(t.opacity=eD(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,r));for(let n=0;n<rV;n++){let s=`border${rE[n]}Radius`,o=rL(e,s),a=rL(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||rR(o)===rR(a)?(t[s]=Math.max(eD(rM(o),rM(a),r),0),(tx.test(a)||tx.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=eD(e.rotate||0,i.rotate||0,r))}(s,n,this.latestValues,r,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(g(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=f.update(()=>{var e;let i;rA.hasAnimatedSinceResize=!0,this.currentAnimation=(e={...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}},(i=te(0)?0:iM(0)).start(iT("",i,1e3,e)),i.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:r,latestValues:n}=t;if(e&&i&&r){if(this!==t&&this.layout&&r&&np(this.options.animationType,this.layout.layoutBox,r.layoutBox)){i=this.target||rt();let e=iZ(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let r=iZ(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+r}rB(e,i),rf(e,n),iQ(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rG),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let r=this.getStack();r&&r.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.rotate||i.rotateX||i.rotateY||i.rotateZ)&&(e=!0),!e)return;let r={};for(let e=0;e<rJ.length;e++){let n="rotate"+rJ[e];i[n]&&(r[n]=i[n],t.setStaticValue(n,0))}for(let e in t.render(),r)t.setStaticValue(e,r[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return rQ;let r={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=tq(null==t?void 0:t.pointerEvents)||"",r.transform=n?n(this.latestValues,""):"none",r;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=tq(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!rs(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1),e}let o=s.animationValues||s.latestValues;this.applyTransformsToTarget(),r.transform=rX(this.projectionDeltaWithTransform,this.treeScale,o),n&&(r.transform=n(o,r.transform));let{x:a,y:l}=this.projectionDelta;for(let t in r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?r.opacity=s===this?null!=(i=null!=(e=o.opacity)?e:this.latestValues.opacity)?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:r.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,K){if(void 0===o[t])continue;let{correct:e,applyTo:i}=K[t],n="none"===r.transform?o[t]:e(o[t],s);if(i){let t=i.length;for(let e=0;e<t;e++)r[i[e]]=n}else r[t]=n}return this.options.layoutId&&(r.pointerEvents=s===this?tq(null==t?void 0:t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
9resetTree(){this.root.nodes.forEach(t=>{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(r6),this.root.sharedNodes.clear()}}}function r4(t){t.updateLayout()}function r3(t){var e;let i=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:r}=t.layout,{animationType:n}=t.options,s=i.source!==t.layout.source;"size"===n?re(t=>{let r=s?i.measuredBox[t]:i.layoutBox[t],n=iZ(r);r.min=e[t].min,r.max=r.min+n}):np(n,i.layoutBox,e)&&re(r=>{let n=s?i.measuredBox[r]:i.layoutBox[r],o=iZ(e[r]);n.max=n.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+o)});let o=i6();iQ(o,e,i.layoutBox);let a=i6();s?iQ(a,t.applyTransform(r,!0),i.measuredBox):iQ(a,e,i.layoutBox);let l=!r_(o),u=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:n,layout:s}=r;if(n&&s){let o=rt();i2(o,i.layoutBox,n.layoutBox);let a=rt();i2(a,e,s.layoutBox),rq(o,a)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function r5(t){r1.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function r9(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function r8(t){t.clearSnapshot()}function r6(t){t.clearMeasurements()}function r7(t){t.isLayoutDirty=!1}function nt(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ne(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ni(t){t.resolveTargetDelta()}function nr(t){t.calcProjection()}function nn(t){t.resetRotation()}function ns(t){t.removeLeadSnapshot()}function no(t,e,i){t.translate=eD(e.translate,0,i),t.scale=eD(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function na(t,e,i,r){t.min=eD(e.min,i.min,r),t.max=eD(e.max,i.max,r)}function nl(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let nu={duration:.45,ease:[.4,0,.1,1]},nh=t=>"u">typeof navigator&&navigator.userAgent.toLowerCase().includes(t),nc=nh("applewebkit/")&&!nh("chrome/")?Math.round:c;function nd(t){t.min=nc(t.min),t.max=nc(t.max)}function np(t,e,i){return"position"===t||"preserve-aspect"===t&&!iK(rY(e),rY(i),.2)}let nm=r2({attachResizeListener:(t,e)=>tZ(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),nf={current:void 0},ng=r2({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!nf.current){let t=new nm({});t.mount(window),t.setOptions({layoutScroll:!0}),nf.current=t}return nf.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),ny=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function nv(t,e,i=1){c(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[r,n]=function(t){let e=ny.exec(t);if(!e)return[,];let[,i,r]=e;return[i,r]}(t);if(!r)return;let s=window.getComputedStyle(e).getPropertyValue(r);if(s){let t=s.trim();return ij(t)?parseFloat(t):t}return to(n)?nv(n,e,i+1):n}let nx=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),nb=t=>nx.has(t),nw=t=>t===tu||t===tb,nP=(t,e)=>parseFloat(t.split(", ")[e]),nA=(t,e)=>(i,{transform:r})=>{if("none"===r||!r)return 0;let n=r.match(/^matrix3d\((.+)\)$/);if(n)return nP(n[1],e);{let e=r.match(/^matrix\((.+)\)$/);return e?nP(e[1],t):0}}
9,nT=new Set(["x","y","z"]),nS=J.filter(t=>!nT.has(t)),nj={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:nA(4,13),y:nA(5,14)};nj.translateX=nj.x,nj.translateY=nj.y;let nk={current:null},nC={current:!1},nE=new WeakMap,nV=Object.keys(q),nM=nV.length,nR=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],nL=z.length;class nD{constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:r,visualState:n},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>f.render(this.render,!1,!0);const{latestValues:o,renderState:a}=n;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=a,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=s,this.isControllingVariants=$(e),this.isVariantNode=W(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:l,...u}=this.scrapeMotionValuesFromProps(e,{});for(const t in u){const e=u[t];void 0!==o[t]&&te(e)&&(e.set(o[t],!1),iS(l)&&l.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,nE.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),nC.current||function(){if(nC.current=!0,l)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>nk.current=t.matches;t.addListener(e),e()}else nk.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||nk.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in nE.delete(this.current),this.projection&&this.projection.unmount(),g(this.notifyUpdate),g(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){let i=Q.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&f.update(this.notifyUpdate,!1,!0),i&&this.projection&&(this.projection.isTransformDirty=!0)}),n=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{r(),n()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},i,r,n){let s,o;for(let t=0;t<nM;t++){let i=nV[t],{isEnabled:r,Feature:n,ProjectionNode:a,MeasureLayout:l}=q[i];a&&(s=a),r(e)&&(!this.features[i]&&n&&(this.features[i]=new n(this)),l&&(o=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);let{layoutId:t,layout:i,drag:r,dragConstraints:o,layoutScroll:a,layoutRoot:l}=e;this.projection.setOptions({layoutId:t,layout:i,alwaysMeasureLayout:!!r||o&&I(o),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof i?i:"both",initialPromotionConfig:n,layoutScroll:a,layoutRoot:l})}return o}updateFeatures(){for(let t in this.features){let e=this.features[t];
9e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<nR.length;e++){let i=nR[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let r=t["on"+i];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=function(t,e,i){let{willChange:r}=e;for(let n in e){let s=e[n],o=i[n];if(te(s))t.addValue(n,s),iS(r)&&r.add(n);else if(te(o))t.addValue(n,iM(s,{owner:t})),iS(r)&&r.remove(n);else if(o!==s)if(t.hasValue(n)){let e=t.getValue(n);e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,iM(void 0!==e?e:s,{owner:t}))}}for(let r in i)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}let e={};for(let t=0;t<nL;t++){let i=z[t],r=this.props[i];(B(r)||!1===r)&&(e[i]=r)}return e}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=iM(e,{owner:this}),this.addValue(t,i)),i}readValue(t){var e;return void 0===this.latestValues[t]&&this.current?null!=(e=this.getBaseTargetFromProps(this.props,t))?e:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let{initial:i}=this.props,r="string"==typeof i||"object"==typeof i?null==(e=tW(this.props,i))?void 0:e[t]:void 0;if(i&&void 0!==r)return r;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||te(n)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new iE),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class nO extends nD{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...i},{transformValues:r},n){let s=function(t,e,i){let r={};for(let n in t){let t=function(t,e){if(e)return(e[t]||e.default||e).from}(n,e);if(void 0!==t)r[n]=t;else{let t=i.getValue(n);t&&(r[n]=t.get())}}return r}(i,t||{},this);if(r&&(e&&(e=r(e)),i&&(i=r(i)),s&&(s=r(s))),n){var o,a,u,h,d;let t;!function(t,e,i){var r,n;let s=Object.keys(e).filter(e=>!t.hasValue(e)),o=s.length;if(o)for(let a=0;a<o;a++){let o=s[a],l=e[o],u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!=(n=null!=(r=i[o])?r:t.readValue(o))?n:e[o]),null!=u&&("string"==typeof u&&(ij(u)||iP(u))?u=parseFloat(u):!iF(u)&&eG.test(l)&&(u=iw(o,l)),t.addValue(o,iM(u,{owner:t})),void 0===i[o]&&(i[o]=u),null!==u&&t.setBaseTarget(o,u))}}(this,i,s);let r=(o=i,a=s,o=(t=function(t,{...e},i){let r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:i};for(let n in i&&(i={...i}
9),t.values.forEach(t=>{let e=t.get();if(!to(e))return;let i=nv(e,r);i&&t.set(i)}),e){let t=e[n];if(!to(t))continue;let s=nv(t,r);s&&(e[n]=s,i||(i={}),void 0===i[n]&&(i[n]=t))}return{target:e,transitionEnd:i}}(this,o,u=e)).target,u=t.transitionEnd,h=o,d=u,Object.keys(h).some(nb)?((t,e,i={},r={})=>{e={...e},r={...r};let n=Object.keys(e).filter(nb),s=[],o=!1,a=[];if(n.forEach(n=>{let l,u=t.getValue(n);if(!t.hasValue(n))return;let h=i[n],d=iD(h),p=e[n];if(tH(p)){let t=p.length,e=+(null===p[0]);d=iD(h=p[e]);for(let i=e;i<t&&null!==p[i];i++)l?c(iD(p[i])===l,"All keyframes must be of the same type"):c((l=iD(p[i]))===d||nw(d)&&nw(l),"Keyframes must be of the same dimension as the current value")}else l=iD(p);if(d!==l)if(nw(d)&&nw(l)){let t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof p?e[n]=parseFloat(p):Array.isArray(p)&&l===tb&&(e[n]=p.map(parseFloat))}else if((null==d?void 0:d.transform)&&(null==l?void 0:l.transform)&&(0===h||0===p))0===h?u.set(l.transform(h)):e[n]=d.transform(p);else{if(!o){let e;e=[],nS.forEach(i=>{let r=t.getValue(i);void 0!==r&&(e.push([i,r.get()]),r.set(+!!i.startsWith("scale")))}),e.length&&t.render(),s=e,o=!0}a.push(n),r[n]=void 0!==r[n]?r[n]:e[n],u.jump(p)}}),!a.length)return{target:e,transitionEnd:r};{let i=a.indexOf("height")>=0?window.pageYOffset:null,n=((t,e,i)=>{let r=e.measureViewportBox(),n=getComputedStyle(e.current),{display:s}=n,o={};"none"===s&&e.setStaticValue("display",t.display||"block"),i.forEach(t=>{o[t]=nj[t](r,n)}),e.render();let a=e.measureViewportBox();return i.forEach(i=>{let r=e.getValue(i);r&&r.jump(o[i]),t[i]=nj[i](a,n)}),t})(e,t,a);return s.length&&s.forEach(([e,i])=>{t.getValue(e).set(i)}),t.render(),l&&null!==i&&window.scrollTo({top:i}),{target:n,transitionEnd:r}}})(this,h,a,d):{target:h,transitionEnd:d});e=r.transitionEnd,i=r.target}return{transition:t,transitionEnd:e,...i}}}class nF extends nO{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,e){if(Q.has(e)){let t=ib(e);return t&&t.default||0}{let i=window.getComputedStyle(t),r=(ts(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return rg(t,e)}build(t,e,i,r){tj(t,e,i,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return tz(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;te(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(t,e,i,r){tB(t,e,i,r)}}class nI extends nO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(Q.has(e)){let t=ib(e);return t&&t.default||0}return e=tN.has(e)?e:L(e),t.getAttribute(e)}measureInstanceViewportBox(){return rt()}scrapeMotionValuesFromProps(t,e){return t$(t,e)}build(t,e,i,r){tO(t,e,i,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,i,r){tU(t,e,i,r)}mount(t){this.isSVGTag=tI(t.tagName),super.mount(t)}}let nB=(t,e)=>Z(t)?new nI(e,{enableHardwareAcceleration:!1}):new nF(e,{enableHardwareAcceleration:!0}),nN={animation:{Feature:class extends t8{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>iB(t,e,i)));else if("string"==typeof e)r=iB(t,e,i);else{let n="function"==typeof e?ea(t,e,i.custom):e;r=Promise.all(iI(t,n,i))}return r.then(()=>t.notify("AnimationComplete",e))})(t,e,i))),i={animate:i$(!0),whileInView:i$(),whileHover:i$(),whileTap:i$(),whileDrag:i$(),whileFocus:i$(),exit:i$()},r=!0,n=(e,i)=>{let r=ea(t,i);if(r){let{transition:t,transitionEnd:i,...n}=r;e={...e,...n,...i}}return e};function s(s,o){let a=t.getProps(),l=t.getVariantContext(!0)||{},u=[],h=new Set,c={},d=1/0;for(let e=0;e<iz;e++){var p,m;let f=iU[e],g=i[f],y=void 0!==a[f]?a[f]:l[f],v=B(y),x=f===o?g.isActive:null;!1===x&&(d=e);let b=y===l[f]&&y!==a[f]&&v;if(b&&r&&t.manuallyAnimateOnMount&&(b=!1),g.protectedKeys={...c},!g.isActive&&null===x||!y&&!g.prevProp||N(y)||"boolean"==typeof y)continue;let w=(p=g.prevProp,("string"==typeof(m=y)?m!==p:!!Array.isArray(m)&&!eo(m,p))||f===o&&g.isActive&&!b&&v||e>d&&v),P=!1,A=Array.isArray(y)?y:[y],T=A.reduce(n,{});!1===x&&(T={});let{prevResolvedValues:S={}}=g,j={...S,...T},k=t=>{w=!0,h.has(t)&&(P=!0,h.delete(t)),g.needsAnimating[t]=!0}
9;for(let t in j){let e=T[t],i=S[t];if(!c.hasOwnProperty(t))(tH(e)&&tH(i)?eo(e,i):e===i)?void 0!==e&&h.has(t)?k(t):g.protectedKeys[t]=!0:void 0!==e?k(t):h.add(t)}g.prevProp=y,g.prevResolvedValues=T,g.isActive&&(c={...c,...T}),r&&t.blockInitialAnimation&&(w=!1),w&&(!b||P)&&u.push(...A.map(t=>({animation:t,options:{type:f,...s}})))}if(h.size){let e={};h.forEach(i=>{let r=t.getBaseTarget(i);void 0!==r&&(e[i]=r)}),u.push({animation:e})}let f=!!u.length;return r&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(f=!1),r=!1,f?e(u):Promise.resolve()}return{animateChanges:s,setActive:function(e,r,n){var o;if(i[e].isActive===r)return Promise.resolve();null==(o=t.variantChildren)||o.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,r)}),i[e].isActive=r;let a=s(n,e);for(let t in i)i[t].protectedKeys={};return a},setAnimateFunction:function(i){e=i(t)},getState:()=>i}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),N(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends t8{constructor(){super(...arguments),this.id=iW++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e,custom:i}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;let n=this.node.animationState.setActive("exit",!t,{custom:null!=i?i:this.node.getProps().custom});e&&!t&&n.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends t8{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:r,margin:n,amount:s="some",once:o}=i,a={root:r?r.current:void 0,rootMargin:n,threshold:"number"==typeof s?s:es[s]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:r}=this.node.getProps(),n=e?i:r;n&&n(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;ei.has(i)||ei.set(i,{});let r=ei.get(i),n=JSON.stringify(e);return r[n]||(r[n]=new IntersectionObserver(en,{root:t,...e})),r[n]}(a),ee.set(t,l),e.observe(t),()=>{ee.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends t8{constructor(){super(...arguments),this.removeStartListeners=c,this.removeEndListeners=c,this.removeAccessibleListeners=c,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),r=tQ(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:r,globalTapTarget:n}=this.node.getProps();f.update(()=>{n||t7(this.node.current,t.target)?i&&i(t,e):r&&r(t,e)})},{passive:!(i.onTap||i.onPointerUp)}),n=tQ(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=t1(r,n),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=t=>{if("Enter"!==t.key||this.isPressing)return;let e=t=>{"Enter"===t.key&&this.checkPressEnd()&&et("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&f.update(()=>i(t,e))})};this.removeEndListeners(),this.removeEndListeners=tZ(this.node.current,"keyup",e),et("down",(t,e)=>{this.startPress(t,e)})},e=tZ(this.node.current,"keydown",t),i=()=>{this.isPressing&&et("cancel",(t,e)=>this.cancelPress(t,e))},r=tZ(this.node.current,"blur",i);this.removeAccessibleListeners=t1(e,r)}}startPress(t,e){this.isPressing=!0;let{onTapStart:i,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&f.update(()=>i(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!t9()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&f.update(()=>i(t,e))}mount(){let t=this.node.getProps(),e=tQ(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=tZ(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=t1(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends t8{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=t1(tZ(this.node.current,"focus",()=>this.onFocus()),tZ(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends t8{mount(){this.unmount=t1(t6(this.node,!0),t6(this.node,!1))}unmount(){}}},pan:{Feature:class extends t8{constructor(){super(...arguments),this.removePointerDownListener=c}onPointerDown(t){this.session=new i_(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ry(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:rw(t),onStart:rw(e),onMove:i,onEnd:(t,e)=>{delete this.session,r&&f.update(()=>r(t,e))}}}mount(){this.removePointerDownListener=tQ(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends t8{constructor(t){super(t),this.removeGroupControls=c,this.removeListeners=c,this.controls=new rx(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||c}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:ng,MeasureLayout:rk},layout:{ProjectionNode:ng,MeasureLayout:rk}},nU=function(t){function e(i,r={}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:r,Component:n}){t&&function(t){for(let e in t)q[e]={...q[e],...t[e]}}(t);let s=(0,a.forwardRef)(function(s,o){var h;let c,d={...(0,a.useContext)(V),...s,layoutId:function({layoutId:t}){let e=(0,a.useContext)(j).id;return e&&void 0!==t?e+"-"+t:t}(s)},{isStatic:p}=d,m=function(t){let{initial:e,animate:i}=function(t,e){if($(t)){let{initial:e,animate:i}=t;return{initial:!1===e||B(e)?e:void 0,animate:B(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,a.useContext)(M));return(0,a.useMemo)(()=>({initial:e,animate:i}),[H(e),H(i)])}(s),f=r(s,p);
9if(!p&&l){m.visualElement=function(t,e,i,r){let{visualElement:n}=(0,a.useContext)(M),s=(0,a.useContext)(R),o=(0,a.useContext)(x),l=(0,a.useContext)(V).reducedMotion,h=(0,a.useRef)();r=r||s.renderer,!h.current&&r&&(h.current=r(t,{visualState:e,parent:n,props:i,presenceContext:o,blockInitialAnimation:!!o&&!1===o.initial,reducedMotionConfig:l}));let c=h.current;(0,a.useInsertionEffect)(()=>{c&&c.update(i,o)});let d=(0,a.useRef)(!!(i[D]&&!window.HandoffComplete));return u(()=>{c&&(O.postRender(c.render),d.current&&c.animationState&&c.animationState.animateChanges())}),(0,a.useEffect)(()=>{c&&(c.updateFeatures(),!d.current&&c.animationState&&c.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))}),c}(n,f,d,e);let i=(0,a.useContext)(Y),r=(0,a.useContext)(R).strict;m.visualElement&&(c=m.visualElement.loadFeatures(d,r,t,i))}return a.createElement(M.Provider,{value:m},c&&m.visualElement?a.createElement(c,{visualElement:m.visualElement,...d}):null,i(n,s,(h=m.visualElement,(0,a.useCallback)(t=>{t&&f.mount&&f.mount(t),h&&(t?h.mount(t):h.unmount()),o&&("function"==typeof o?o(t):I(o)&&(o.current=t))},[h])),f,p,m.visualElement))});return s[G]=n,s}(t(i,r))}if("u"<typeof Proxy)return e;let i=new Map;return new Proxy(e,{get:(t,r)=>(i.has(r)||i.set(r,e(r)),i.get(r))})}((t,e)=>(function(t,{forwardMotionProps:e=!1},i,r){return{...Z(t)?tG:tX,preloadedFeatures:i,useRender:function(t=!1){return(e,i,r,{latestValues:n},s)=>{let o=(Z(e)?function(t,e,i,r){let n=(0,a.useMemo)(()=>{let i=tF();return tO(i,e,{enableHardwareAcceleration:!1},tI(r),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};tC(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e,i){let r,n,s={},o=(r=t.style||{},tC(n={},r,t),Object.assign(n,function({transformTemplate:t},e,i){return(0,a.useMemo)(()=>{let r=tk();return tj(r,e,{enableHardwareAcceleration:!i},t),Object.assign({},r.vars,r.style)},[e])}(t,e,i)),t.transformValues?t.transformValues(n):n);return t.drag&&!1!==t.dragListener&&(s.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=o,s})(i,n,s,e),l={...function(t,e,i){let r={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(tM(n)||!0===i&&tV(n)||!e&&!tV(n)||t.draggable&&n.startsWith("onDrag"))&&(r[n]=t[n]);return r}(i,"string"==typeof e,t),...o,ref:r},{children:u}=i,h=(0,a.useMemo)(()=>te(u)?u.get():u,[u]);return(0,a.createElement)(e,{...l,children:h})}}(e),createVisualElement:r,Component:t}})(t,e,nN,nB));var nz=t.i(45009);function n$(){return(n$=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(this,arguments)}var nW=(0,a.forwardRef)(function(t,e){var i=t.color,r=t.size,n=void 0===r?24:r,s=function(t,e){if(null==t)return{};var i,r,n=function(t,e){if(null==t)return{};var i,r,n={},s=Object.keys(t);for(r=0;r<s.length;r++)i=s[r],e.indexOf(i)>=0||(n[i]=t[i]);return n}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)i=s[r],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}(t,["color","size"]);return a.default.createElement("svg",n$({ref:e,xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:void 0===i?"currentColor":i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),a.default.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),a.default.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))});nW.propTypes={color:nz.default.string,size:nz.default.oneOfType([nz.default.string,nz.default.number])},nW.displayName="X";let nH=({src:t})=>t?(0,o.jsx)("img",{src:t,alt:"Popup",style:{borderRadius:16,display:"block",height:"auto",maxHeight:"85vh",maxWidth:"100%",width:"auto"}}):null,n_=t=>{let{redirectUrl:e,linkOpenNewTab:i=!1}=t;if(!e)return(0,o.jsx)(nH,{...t});let r=e.startsWith("http")?e:`https://${e}`;return(0,o.jsx)("a",{href:r,target:i?"_blank":"_self",rel:i?"noopener noreferrer":void 0,style:{display:"block"},children:(0,o.jsx)(nH,{...t})})},nq={aspectRatio:"16 / 9",borderRadius:16,display:"block",width:"100%"}
9,nY=({embedId:t,autoplay:e=!1,loop:i=!1,showControls:r=!1})=>{let[n,s]=(0,a.useState)(!1);return t?n?(0,o.jsx)("iframe",{src:`https://www.youtube-nocookie.com/embed/${t}?autoplay=${e||n?"1":"0"}&loop=${i?"1":"0"}&controls=${r?"1":"0"}&mute=1`,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,style:{...nq,border:0},title:"YouTube video"}):(0,o.jsxs)("button",{type:"button",onClick:()=>s(!0),"aria-label":"Reproduzir vÃdeo",style:{...nq,background:"#000000",border:0,cursor:"pointer",overflow:"hidden",padding:0,position:"relative"},children:[(0,o.jsx)("img",{src:`https://i.ytimg.com/vi/${t}/hqdefault.jpg`,alt:"YouTube video",loading:"lazy",decoding:"async",style:{height:"100%",inset:0,objectFit:"cover",position:"absolute",width:"100%"}}),(0,o.jsx)("span",{style:{alignItems:"center",display:"flex",inset:0,justifyContent:"center",position:"absolute"},children:(0,o.jsxs)("svg",{viewBox:"0 0 68 48",style:{height:48,opacity:.9,width:68},children:[(0,o.jsx)("path",{d:"M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55C3.97 2.33 2.27 4.81 1.48 7.74.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z",fill:"#f00"}),(0,o.jsx)("path",{d:"M45 24 27 14v20",fill:"#fff"})]})})]}):null},nG=t=>{let{type:e,value:i,args:r,embedId:n}=t;return"youtube"===e?n?(0,o.jsx)(nY,{...r??{},embedId:n}):null:(0,o.jsx)(n_,{src:i,...r??{}})},nX=t=>{let{handleClosePopUp:e,popup:i,embedId:r}=t,n="img"===i.type;return(0,o.jsxs)(nU.div,{style:{borderRadius:16,boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.45)",maxWidth:n?"min(650px, 100%)":"min(800px, 100%)",position:"relative",width:n?"auto":"100%"},initial:{scale:.95},animate:{scale:1},exit:{scale:.95},children:[(0,o.jsx)(nU.button,{type:"button",onClick:e,"aria-label":"Fechar popup",whileHover:{backgroundColor:"#334155",scale:1.12},whileTap:{scale:.95},transition:{duration:.15},style:{alignItems:"center",background:"#1e293b",border:"3px solid #ffffff",borderRadius:"50%",color:"#ffffff",cursor:"pointer",display:"flex",height:40,justifyContent:"center",padding:0,position:"absolute",right:-14,top:-14,width:40,zIndex:1},children:(0,o.jsx)(nW,{size:20})}),(0,o.jsx)(nG,{...i,embedId:r})]})},nZ=({children:t,onClose:e})=>(0,o.jsx)(nU.div,{onClick:t=>{t.target===t.currentTarget&&e()},style:{alignItems:"center",background:"rgba(0, 0, 0, 0.6)",display:"flex",inset:0,justifyContent:"center",padding:24,position:"fixed",zIndex:9999},initial:{opacity:0}
9,animate:{opacity:1},exit:{opacity:0},children:t});var nK=t.i(77241),nJ=t.i(34662);t.s(["PromoPopup",0,({popup:t,clientName:e})=>{var i;let r,n,[s,l]=(0,a.useState)(!1),u=(0,a.useMemo)(()=>(t=>{if(!(!E(t)||!t.args?.link)){let e;return((e=t.args.link.trim().match(/^(?:https?:\/\/|\/\/)?(?:www\.|m\.|.+\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|shorts\/|feeds\/api\/videos\/|watch\?v=|watch\?.+&v=))([\w-]{11})(?![\w-])/i))?e[1]:null)??void 0}})(t),[t]),{setLastClosed:h,getRepeatCount:c,setRepeatCount:d}=(i=t?.st_popup_id??0,r=`${e}Popup${i}`,n=`${r}_lastClosed`,{getRepeatCount:()=>parseInt(localStorage.getItem(r)??"0",10),setRepeatCount:t=>localStorage.setItem(r,t.toString()),setLastClosed:()=>localStorage.setItem(n,new Date().toISOString()),getLastClosed:()=>localStorage.getItem(n)}),p=()=>{l(!1),h(),d(c()+1)};(0,a.useEffect)(()=>{var i,r;let n,s,o,a,u;t&&(i=t,r=e,n=`${r}Popup${i.st_popup_id}`,s=`${n}_lastClosed`,o=localStorage.getItem(s),a=localStorage.getItem(n),u=new Date,!(o&&1>function(t,e){var i;let[r,n]=function(t,...e){let i=nK.constructFrom.bind(null,t||e.find(t=>"object"==typeof t));return e.map(i)}(void 0,t,e);return(i=void 0,t=>{let e=(i?Math[i]:Math.trunc)(t);return 0===e?0:e})((r-n)/nJ.millisecondsInHour)}(u,new Date(o)))&&(!a||parseInt(a,10)<i.repeatTotal))&&l(!0)},[t?.st_popup_id,e]);let m=!!t&&"u">typeof t.status&&!(E(t)&&!u);return(0,a.useEffect)(()=>{if(!(!m||!s))return document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}},[m,s]),m?(0,o.jsx)(C,{children:s&&(0,o.jsx)(nZ,{onClose:p,children:(0,o.jsx)(nX,{handleClosePopUp:p,popup:t,embedId:u??""})})}):null}],47541)},8341,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={cancelIdleCallback:function(){return o},requestIdleCallback:function(){return s}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});let s="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(t){let e=Date.now();return self.setTimeout(function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})},1)},o="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(t){return clearTimeout(t)};("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},19083,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={ESCAPE_REGEX:function(){return o},htmlEscapeAttributeString:function(){return h},htmlEscapeJsonString:function(){return u}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});let s={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},o=/[&><\u2028\u2029]/g,a={"&":"&",'"':""","'":"'","<":"<",">":">"},l=/[&"'<>]/g;function u(t){return t.replace(o,t=>s[t])}function h(t){return t.replace(l,t=>a[t])}},79520,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={default:function(){return b},handleClientScriptLoad:function(){return y},initScriptLoader:function(){return v}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});let s=t.r(63141),o=t.r(51836),a=t.r(43476),l=s._(t.r(74080)),u=o._(t.r(71645)),h=t.r(42732),c=t.r(22737),d=t.r(8341),p=t.r(19083),m=new Map,f=new Set,g=t=>{let{src:e,id:i,onLoad:r=()=>{},onReady:n=null,dangerouslySetInnerHTML:s,children:o="",strategy:a="afterInteractive",onError:u,stylesheets:h}=t,d=i||e;if(d&&f.has(d))return;if(m.has(e)){f.add(d),m.get(e).then(r,u);return}let p=()=>{n&&n(),f.add(d)},g=document.createElement("script"),y=new Promise((t,e)=>{g.addEventListener("load",function(e){t(),r&&r.call(this,e),p()}),g.addEventListener("error",function(t){e(t)})}).catch(function(t){u&&u(t)});s?(g.innerHTML=s.__html||"",p()):o?(g.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):"",p()):e&&(g.src=e,m.set(e,y)),(0,c.setAttributesFromProps)(g,t),"worker"===a&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",a),h&&(t=>{if(l.default.preinit)return t.forEach(t=>{l.default.preinit(t,{as:"style"})});if("u">typeof window){let e=document.head;t.forEach(t=>{let i=document.createElement("link");i.type="text/css",i.rel="stylesheet",i.href=t,e.appendChild(i)})}})(h),document.body.appendChild(g)};function y(t){let{strategy:e="afterInteractive"}=t;"lazyOnload"===e?window.addEventListener("load",()=>{(0,d.requestIdleCallback)(()=>g(t))}):g(t)}function v(t){t.forEach(y),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEac
9h(t=>{let e=t.id||t.getAttribute("src");f.add(e)})}function x(t){let{id:e,src:i="",onLoad:r=()=>{},onReady:n=null,strategy:s="afterInteractive",onError:o,stylesheets:c,...m}=t,{updateScripts:y,scripts:v,getIsSsr:x,appDir:b,nonce:w}=(0,u.useContext)(h.HeadManagerContext);w=m.nonce||w;let P=(0,u.useRef)(!1);(0,u.useEffect)(()=>{let t=e||i;P.current||(n&&t&&f.has(t)&&n(),P.current=!0)},[n,e,i]);let A=(0,u.useRef)(!1);if((0,u.useEffect)(()=>{if(!A.current){if("afterInteractive"===s)g(t);else"lazyOnload"===s&&("complete"===document.readyState?(0,d.requestIdleCallback)(()=>g(t)):window.addEventListener("load",()=>{(0,d.requestIdleCallback)(()=>g(t))}));A.current=!0}},[t,s]),("beforeInteractive"===s||"worker"===s)&&(y?(v[s]=(v[s]||[]).concat([{id:e,src:i,onLoad:r,onReady:n,onError:o,...m,nonce:w}]),y(v)):x&&x()?f.add(e||i):x&&!x()&&g({...t,nonce:w})),b){if(c&&c.forEach(t=>{l.default.preinit(t,{as:"style"})}),"beforeInteractive"===s)if(!i)return m.dangerouslySetInnerHTML&&(m.children=m.dangerouslySetInnerHTML.__html,delete m.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,p.htmlEscapeJsonString)(JSON.stringify([0,{...m,id:e}]))})`}});else return l.default.preload(i,m.integrity?{as:"script",integrity:m.integrity,nonce:w,crossOrigin:m.crossOrigin}:{as:"script",nonce:w,crossOrigin:m.crossOrigin}),(0,a.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,p.htmlEscapeJsonString)(JSON.stringify([i,{...m,id:e}]))})`}});"afterInteractive"===s&&i&&l.default.preload(i,m.integrity?{as:"script",integrity:m.integrity,nonce:w,crossOrigin:m.crossOrigin}:{as:"script",nonce:w,crossOrigin:m.crossOrigin})}return null}Object.defineProperty(x,"__nextScript",{value:!0});let b=x;("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)}]);
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.