import{j as a,q as G,r as b,Y as Se,R as O,$ as mo}from"./app-BGey7YPf.js";import{T as po,u as go,S as yo,M as xo}from"./theme-provider-NKMbg-kV.js";import{N as vo,a as bo,b as wo}from"./navigation-menu-2lyryzlb.js";import{D as jo,c as To,d as Ao,g as vt,L as ri,S as Po,k as Co,i as So,l as No,m as Mo,A as oi,a as ai,b as li,n as Vo}from"./icons-hx7HvmR4.js";import{c as B,B as we,b as W,a as lt,P as $e,u as ci}from"./button-D5r5edT8.js";import{B as Zt}from"./badge-BVty0UEZ.js";import{C as q,a as Y,b as X,c as ie,d as re,e as Ie}from"./card-CgL3Iyx6.js";import{S as _s}from"./shine-border-n_58aha0.js";import{b as ui}from"./index-CwO5dfCw.js";import{S as Do}from"./search-CA9JuCC9.js";import{I as Ro}from"./input-CGSIKYsG.js";import{c as di,u as Qt,b as hi,a as fi,d as ko,i as Eo}from"./index-BFyaOBDQ.js";import{c as Lo,u as Io}from"./index-Q2wK6uZI.js";import{C as Fo}from"./chevron-down-DOZGaFlM.js";import"./index-BuSoVzfP.js";import"./x-C4WIHhXm.js";import"./chevron-right-CE_1krjA.js";/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Bo=[["path",{d:"M5 9v6",key:"158jrl"}],["path",{d:"M9 9h3V5l7 7-7 7v-4H9V9z",key:"1sg2xn"}]],Oo=B("ArrowBigRightDash",Bo);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _o=[["path",{d:"M5 3h14",key:"7usisc"}],["path",{d:"m18 13-6-6-6 6",key:"1kf1n9"}],["path",{d:"M12 7v14",key:"1akyts"}]],Uo=B("ArrowUpToLine",_o);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $o=[["line",{x1:"18",x2:"18",y1:"20",y2:"10",key:"1xfpm4"}],["line",{x1:"12",x2:"12",y1:"20",y2:"4",key:"be30l9"}],["line",{x1:"6",x2:"6",y1:"20",y2:"14",key:"1r4le6"}]],Ko=B("ChartNoAxesColumn",$o);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Wo=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],Go=B("Facebook",Wo);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zo=[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]],Ho=B("Gift",zo);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qo=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],Yo=B("Instagram",qo);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Xo=[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]],mi=B("Linkedin",Xo);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Zo=[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]],Us=B("LogIn",Zo);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qo=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Jo=B("MapPin",Qo);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ea=[["path",{d:"M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15",key:"143lza"}],["path",{d:"M11 12 5.12 2.2",key:"qhuxz6"}],["path",{d:"m13 12 5.88-9.8",key:"hbye0f"}],["path",{d:"M8 7h8",key:"i86dvs"}],["circle",{cx:"12",cy:"17",r:"5",key:"qbz8iq"}],["path",{d:"M12 18v-2h-.5",key:"fawc4q"}]],ta=B("Medal",ea);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sa=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],na=B("Menu",sa);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ia=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]],ra=B("MessageCircleMore",ia);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oa=[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]],aa=B("Plane",oa);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const la=[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]],ca=B("Wallet",la);function ua({children:e}){return a.jsx(po,{defaultTheme:"dark",children:e})}function $s(){const{setTheme:e}=go();return a.jsxs(jo,{children:[a.jsx(To,{asChild:!0,children:a.jsxs(we,{variant:"ghost",size:"icon",className:"ghost",children:[a.jsx(yo,{className:"h-[1.1rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),a.jsx(xo,{className:"absolute h-[1.1rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),a.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}),a.jsxs(Ao,{align:"end",children:[a.jsx(vt,{onClick:()=>e("light"),children:"Light"}),a.jsx(vt,{onClick:()=>e("dark"),children:"Dark"}),a.jsx(vt,{onClick:()=>e("system"),children:"System"})]})]})}const Ks=[{href:"#features",label:"Features"},{href:"#testimonials",label:"Testimonials"},{href:"#pricing",label:"Pricing"},{href:"#faq",label:"FAQ"}],da=()=>{const{auth:e,appName:t}=G().props,s=e.user,[n,i]=b.useState(!1);return a.jsx("header",{className:"sticky border-b-[1px] top-0 z-40 w-full bg-white dark:border-b-slate-700 dark:bg-background",children:a.jsx(vo,{className:"mx-auto",children:a.jsxs(bo,{className:"container h-14 px-4 w-screen flex justify-between ",children:[a.jsx(wo,{className:"font-bold flex",children:a.jsxs(Se,{rel:"noreferrer noopener",href:route("landing.index"),className:"ml-2 font-bold text-xl flex",children:[a.jsx(ri,{}),t]})}),a.jsxs("span",{className:"flex md:hidden",children:[a.jsx($s,{}),a.jsxs(Po,{open:n,onOpenChange:i,children:[a.jsx(Co,{className:"px-2",children:a.jsx(na,{className:"flex md:hidden h-5 w-5",onClick:()=>i(!0),children:a.jsx("span",{className:"sr-only",children:"Menu Icon"})})}),a.jsxs(So,{side:"left",children:[a.jsx(No,{children:a.jsx(Mo,{className:"font-bold text-xl",children:"Shadcn/React"})}),a.jsxs("nav",{className:"flex flex-col justify-center items-center gap-2 mt-4",children:[Ks.map(({href:o,label:r})=>a.jsx("a",{rel:"noreferrer noopener",href:o,onClick:()=>i(!1),className:W({variant:"ghost"}),children:r},r)),s?a.jsx(Se,{href:route("apps.dashboard"),as:"button",className:`w-[110px] border ${W({variant:"secondary"})}`,children:e.user.name}):a.jsxs(Se,{href:route("login"),className:`w-[110px] border ${W({variant:"secondary"})}`,children:[a.jsx(Us,{className:"mr-2 w-5 h-5"}),"Login"]})]})]})]})]}),a.jsx("nav",{className:"hidden md:flex gap-2",children:Ks.map((o,r)=>a.jsx("a",{rel:"noreferrer noopener",href:o.href,className:`text-[17px] ${W({variant:"ghost"})}`,children:o.label},r))}),a.jsxs("div",{className:"hidden md:flex gap-2",children:[s?a.jsx(Se,{href:route("apps.dashboard"),as:"button",className:W({variant:"secondary"}),children:e.user.name}):a.jsxs(Se,{href:route("login"),className:W({variant:"secondary"}),children:[a.jsx(Us,{className:"mr-2 w-5 h-5"}),"Login"]}),a.jsx($s,{})]})]})})})};function ha(e,t){if(e==null)return{};var s={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(s[i]=e[i]);return s}var fa=["color"],ma=b.forwardRef(function(e,t){var s=e.color,n=s===void 0?"currentColor":s,i=ha(e,fa);return b.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),b.createElement("path",{d:"M7.49933 0.25C3.49635 0.25 0.25 3.49593 0.25 7.50024C0.25 10.703 2.32715 13.4206 5.2081 14.3797C5.57084 14.446 5.70302 14.2222 5.70302 14.0299C5.70302 13.8576 5.69679 13.4019 5.69323 12.797C3.67661 13.235 3.25112 11.825 3.25112 11.825C2.92132 10.9874 2.44599 10.7644 2.44599 10.7644C1.78773 10.3149 2.49584 10.3238 2.49584 10.3238C3.22353 10.375 3.60629 11.0711 3.60629 11.0711C4.25298 12.1788 5.30335 11.8588 5.71638 11.6732C5.78225 11.205 5.96962 10.8854 6.17658 10.7043C4.56675 10.5209 2.87415 9.89918 2.87415 7.12104C2.87415 6.32925 3.15677 5.68257 3.62053 5.17563C3.54576 4.99226 3.29697 4.25521 3.69174 3.25691C3.69174 3.25691 4.30015 3.06196 5.68522 3.99973C6.26337 3.83906 6.8838 3.75895 7.50022 3.75583C8.1162 3.75895 8.73619 3.83906 9.31523 3.99973C10.6994 3.06196 11.3069 3.25691 11.3069 3.25691C11.7026 4.25521 11.4538 4.99226 11.3795 5.17563C11.8441 5.68257 12.1245 6.32925 12.1245 7.12104C12.1245 9.9063 10.4292 10.5192 8.81452 10.6985C9.07444 10.9224 9.30633 11.3648 9.30633 12.0413C9.30633 13.0102 9.29742 13.7922 9.29742 14.0299C9.29742 14.2239 9.42828 14.4496 9.79591 14.3788C12.6746 13.4179 14.75 10.7025 14.75 7.50024C14.75 3.49593 11.5036 0.25 7.49933 0.25Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))});const pa=()=>a.jsxs("div",{className:"hidden lg:flex flex-row flex-wrap gap-8 relative w-[700px] h-[500px]",children:[a.jsxs(q,{className:"absolute w-[340px] -top-[15px] drop-shadow-xl shadow-black/10 dark:shadow-white/10",children:[a.jsxs(Y,{className:"flex flex-row items-center gap-4 pb-2",children:[a.jsxs(oi,{children:[a.jsx(ai,{alt:"",src:"/assets/shadcn.png"}),a.jsx(li,{children:"SH"})]}),a.jsxs("div",{className:"flex flex-col",children:[a.jsx(X,{className:"text-lg",children:"John Doe React"}),a.jsx(ie,{children:"@john_doe"})]})]}),a.jsx(re,{children:"Sangat membantu dalam mengelola ujian online secara efisien dan terstruktur!"})]}),a.jsxs(q,{className:"absolute right-[20px] top-4 w-80 flex flex-col justify-center items-center drop-shadow-xl shadow-black/10 dark:shadow-white/10",children:[a.jsx(_s,{shineColor:["#A07CFE","#FE8FB5"]}),a.jsxs(Y,{className:"mt-8 flex justify-center items-center pb-2",children:[a.jsx("img",{src:"/assets/shadcn.png",alt:"user avatar",className:"absolute grayscale-[0%] -top-12 rounded-full w-24 h-24 aspect-square object-cover"}),a.jsx(X,{className:"text-center",children:"Achmad Fathoni"}),a.jsx(ie,{className:"font-normal text-primary",children:"Pengembang Frontend"}),a.jsx(re,{className:"text-center pb-2",children:a.jsx("p",{children:"Saya menikmati proses membangun sistem untuk ujian online secara digital."})})]}),a.jsx(Ie,{children:a.jsxs("div",{children:[a.jsxs("a",{rel:"noreferrer noopener",href:"https://github.com/leoMirandaa",target:"_blank",className:W({variant:"ghost",size:"sm"}),children:[a.jsx("span",{className:"sr-only",children:"Github icon"}),a.jsx(ma,{className:"w-5 h-5"})]}),a.jsxs("a",{rel:"noreferrer noopener",href:"https://twitter.com/leo_mirand4",target:"_blank",className:W({variant:"ghost",size:"sm"}),children:[a.jsx("span",{className:"sr-only",children:"X icon"}),a.jsxs("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:"fill-foreground w-5 h-5",children:[a.jsx("title",{children:"X"}),a.jsx("path",{d:"M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"})]})]}),a.jsxs("a",{rel:"noreferrer noopener",href:"https://www.linkedin.com/in/leopoldo-miranda/",target:"_blank",className:W({variant:"ghost",size:"sm"}),children:[a.jsx("span",{className:"sr-only",children:"Linkedin icon"}),a.jsx(mi,{size:"20"})]})]})})]}),a.jsxs(q,{className:"absolute top-[150px] left-[40px] w-72 drop-shadow-xl shadow-black/10 dark:shadow-white/10",children:[a.jsx(_s,{shineColor:["#A07CFE","#FE8FB5"]}),a.jsxs(Y,{children:[a.jsxs(X,{className:"flex item-center justify-between",children:["Gratis",a.jsx(Zt,{variant:"secondary",className:"text-sm text-primary",children:"Trial aplikasi"})]}),a.jsxs("div",{children:[a.jsx("span",{className:"text-3xl font-bold",children:"Rp0"}),a.jsx("span",{className:"text-muted-foreground",children:" /event"})]}),a.jsx(ie,{children:"Gunakan fitur utama Sidoel tanpa biaya untuk sekali event sebagai trial pada pelaksanaan ujian online Anda."})]}),a.jsx(re,{children:a.jsx("a",{href:"https://wa.me/6285692030505",rel:"noreferrer noopener",target:"_blank",className:`w-full ${W({variant:"default"})}`,children:"Mulai Uji Coba Gratis"})}),a.jsx("hr",{className:"w-4/5 m-auto mb-4"}),a.jsx(Ie,{className:"flex",children:a.jsx("div",{className:"space-y-4",children:["4 Anggota tim","4 GB Penyimpanan","Hingga 6 halaman"].map(e=>a.jsxs("span",{className:"flex",children:[a.jsx(ui,{className:"text-green-500"})," ",a.jsx("h3",{className:"ml-2",children:e})]},e))})})]}),a.jsx(q,{className:"absolute w-[350px] -right-[10px] bottom-[35px]  drop-shadow-xl shadow-black/10 dark:shadow-white/10",children:a.jsxs(Y,{className:"space-y-1 flex md:flex-row justify-start items-start gap-4",children:[a.jsx("div",{className:"mt-1 bg-primary/20 p-1 rounded-2xl",children:a.jsx(Vo,{})}),a.jsxs("div",{children:[a.jsx(X,{children:"Light & dark mode"}),a.jsx(ie,{className:"text-md mt-2",children:"Sidoel yang nyaman dengan mode terang dan gelap sesuai preferensi Anda."})]})]})})]}),kt=b.memo(({children:e,className:t="",colors:s=["#FF0080","#7928CA","#0070F3","#38bdf8"],speed:n=1})=>{const i={backgroundImage:`linear-gradient(135deg, ${s.join(", ")}, ${s[0]})`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",animationDuration:`${10/n}s`};return a.jsxs("span",{className:`relative inline-block ${t}`,children:[a.jsx("span",{className:"sr-only",children:e}),a.jsx("span",{className:"relative animate-aurora bg-[length:200%_auto] bg-clip-text text-transparent",style:i,"aria-hidden":"true",children:e})]})});kt.displayName="AuroraText";const pi=b.createContext({});function ga(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const Jt=b.createContext(null),gi=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function ya(e=!0){const t=b.useContext(Jt);if(t===null)return[!0,null];const{isPresent:s,onExitComplete:n,register:i}=t,o=b.useId();b.useEffect(()=>{e&&i(o)},[e]);const r=b.useCallback(()=>e&&n&&n(o),[o,n,e]);return!s&&n?[!1,r]:[!0]}const es=typeof window<"u",xa=es?b.useLayoutEffect:b.useEffect,_=e=>e;let yi=_;function ts(e){let t;return()=>(t===void 0&&(t=e()),t)}const je=(e,t,s)=>{const n=t-e;return n===0?1:(s-e)/n},ee=e=>e*1e3,te=e=>e/1e3,va={useManualTiming:!1};function ba(e){let t=new Set,s=new Set,n=!1,i=!1;const o=new WeakSet;let r={delta:0,timestamp:0,isProcessing:!1};function l(u){o.has(u)&&(c.schedule(u),e()),u(r)}const c={schedule:(u,d=!1,h=!1)=>{const m=h&&n?t:s;return d&&o.add(u),m.has(u)||m.add(u),u},cancel:u=>{s.delete(u),o.delete(u)},process:u=>{if(r=u,n){i=!0;return}n=!0,[t,s]=[s,t],t.forEach(l),t.clear(),n=!1,i&&(i=!1,c.process(u))}};return c}const He=["read","resolveKeyframes","update","preRender","render","postRender"],wa=40;function xi(e,t){let s=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>s=!0,r=He.reduce((p,x)=>(p[x]=ba(o),p),{}),{read:l,resolveKeyframes:c,update:u,preRender:d,render:h,postRender:f}=r,m=()=>{const p=performance.now();s=!1,i.delta=n?1e3/60:Math.max(Math.min(p-i.timestamp,wa),1),i.timestamp=p,i.isProcessing=!0,l.process(i),c.process(i),u.process(i),d.process(i),h.process(i),f.process(i),i.isProcessing=!1,s&&t&&(n=!1,e(m))},g=()=>{s=!0,n=!0,i.isProcessing||e(m)};return{schedule:He.reduce((p,x)=>{const w=r[x];return p[x]=(P,j=!1,C=!1)=>(s||g(),w.schedule(P,j,C)),p},{}),cancel:p=>{for(let x=0;x<He.length;x++)r[He[x]].cancel(p)},state:i,steps:r}}const{schedule:S,cancel:oe,state:k,steps:bt}=xi(typeof requestAnimationFrame<"u"?requestAnimationFrame:_,!0),vi=b.createContext({strict:!1}),Ws={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"]},Te={};for(const e in Ws)Te[e]={isEnabled:t=>Ws[e].some(s=>!!t[s])};function ja(e){for(const t in e)Te[t]={...Te[t],...e[t]}}const Ta=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Je(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Ta.has(e)}let bi=e=>!Je(e);function Aa(e){e&&(bi=t=>t.startsWith("on")?!Je(t):e(t))}try{Aa(require("@emotion/is-prop-valid").default)}catch{}function Pa(e,t,s){const n={};for(const i in e)i==="values"&&typeof e.values=="object"||(bi(i)||s===!0&&Je(i)||!t&&!Je(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}function Ca(e){if(typeof Proxy>"u")return e;const t=new Map,s=(...n)=>e(...n);return new Proxy(s,{get:(n,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const ct=b.createContext({});function Fe(e){return typeof e=="string"||Array.isArray(e)}function ut(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const ss=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ns=["initial",...ss];function dt(e){return ut(e.animate)||ns.some(t=>Fe(e[t]))}function wi(e){return!!(dt(e)||e.variants)}function Sa(e,t){if(dt(e)){const{initial:s,animate:n}=e;return{initial:s===!1||Fe(s)?s:void 0,animate:Fe(n)?n:void 0}}return e.inherit!==!1?t:{}}function Na(e){const{initial:t,animate:s}=Sa(e,b.useContext(ct));return b.useMemo(()=>({initial:t,animate:s}),[Gs(t),Gs(s)])}function Gs(e){return Array.isArray(e)?e.join(" "):e}const Ma=Symbol.for("motionComponentSymbol");function ge(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Va(e,t,s){return b.useCallback(n=>{n&&e.onMount&&e.onMount(n),t&&(n?t.mount(n):t.unmount()),s&&(typeof s=="function"?s(n):ge(s)&&(s.current=n))},[t])}const is=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Da="framerAppearId",ji="data-"+is(Da),{schedule:rs}=xi(queueMicrotask,!1),Ti=b.createContext({});function Ra(e,t,s,n,i){var o,r;const{visualElement:l}=b.useContext(ct),c=b.useContext(vi),u=b.useContext(Jt),d=b.useContext(gi).reducedMotion,h=b.useRef(null);n=n||c.renderer,!h.current&&n&&(h.current=n(e,{visualState:t,parent:l,props:s,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const f=h.current,m=b.useContext(Ti);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&ka(h.current,s,i,m);const g=b.useRef(!1);b.useInsertionEffect(()=>{f&&g.current&&f.update(s,u)});const y=s[ji],v=b.useRef(!!y&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,y))&&((r=window.MotionHasOptimisedAnimation)===null||r===void 0?void 0:r.call(window,y)));return xa(()=>{f&&(g.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),rs.render(f.render),v.current&&f.animationState&&f.animationState.animateChanges())}),b.useEffect(()=>{f&&(!v.current&&f.animationState&&f.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var p;(p=window.MotionHandoffMarkAsComplete)===null||p===void 0||p.call(window,y)}),v.current=!1))}),f}function ka(e,t,s,n){const{layoutId:i,layout:o,drag:r,dragConstraints:l,layoutScroll:c,layoutRoot:u}=t;e.projection=new s(e.latestValues,t["data-framer-portal-id"]?void 0:Ai(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||l&&ge(l),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:n,layoutScroll:c,layoutRoot:u})}function Ai(e){if(e)return e.options.allowProjection!==!1?e.projection:Ai(e.parent)}function Ea({preloadedFeatures:e,createVisualElement:t,useRender:s,useVisualState:n,Component:i}){var o,r;e&&ja(e);function l(u,d){let h;const f={...b.useContext(gi),...u,layoutId:La(u)},{isStatic:m}=f,g=Na(u),y=n(u,m);if(!m&&es){Ia();const v=Fa(f);h=v.MeasureLayout,g.visualElement=Ra(i,y,f,t,v.ProjectionNode)}return a.jsxs(ct.Provider,{value:g,children:[h&&g.visualElement?a.jsx(h,{visualElement:g.visualElement,...f}):null,s(i,u,Va(y,g.visualElement,d),y,m,g.visualElement)]})}l.displayName=`motion.${typeof i=="string"?i:`create(${(r=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&r!==void 0?r:""})`}`;const c=b.forwardRef(l);return c[Ma]=i,c}function La({layoutId:e}){const t=b.useContext(pi).id;return t&&e!==void 0?t+"-"+e:e}function Ia(e,t){b.useContext(vi).strict}function Fa(e){const{drag:t,layout:s}=Te;if(!t&&!s)return{};const n={...t,...s};return{MeasureLayout:t!=null&&t.isEnabled(e)||s!=null&&s.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}const Ba=["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 os(e){return typeof e!="string"||e.includes("-")?!1:!!(Ba.indexOf(e)>-1||/[A-Z]/u.test(e))}function zs(e){const t=[{},{}];return e==null||e.values.forEach((s,n)=>{t[0][n]=s.get(),t[1][n]=s.getVelocity()}),t}function as(e,t,s,n){if(typeof t=="function"){const[i,o]=zs(n);t=t(s!==void 0?s:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=zs(n);t=t(s!==void 0?s:e.custom,i,o)}return t}const Et=e=>Array.isArray(e),Oa=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),_a=e=>Et(e)?e[e.length-1]||0:e,L=e=>!!(e&&e.getVelocity);function Xe(e){const t=L(e)?e.get():e;return Oa(t)?t.toValue():t}function Ua({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:s},n,i,o){const r={latestValues:$a(n,i,o,e),renderState:t()};return s&&(r.onMount=l=>s({props:n,current:l,...r}),r.onUpdate=l=>s(l)),r}const Pi=e=>(t,s)=>{const n=b.useContext(ct),i=b.useContext(Jt),o=()=>Ua(e,t,n,i);return s?o():ga(o)};function $a(e,t,s,n){const i={},o=n(e,{});for(const f in o)i[f]=Xe(o[f]);let{initial:r,animate:l}=e;const c=dt(e),u=wi(e);t&&u&&!c&&e.inherit!==!1&&(r===void 0&&(r=t.initial),l===void 0&&(l=t.animate));let d=s?s.initial===!1:!1;d=d||r===!1;const h=d?l:r;if(h&&typeof h!="boolean"&&!ut(h)){const f=Array.isArray(h)?h:[h];for(let m=0;m<f.length;m++){const g=as(e,f[m]);if(g){const{transitionEnd:y,transition:v,...p}=g;for(const x in p){let w=p[x];if(Array.isArray(w)){const P=d?w.length-1:0;w=w[P]}w!==null&&(i[x]=w)}for(const x in y)i[x]=y[x]}}}return i}const Pe=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],me=new Set(Pe),Ci=e=>t=>typeof t=="string"&&t.startsWith(e),Si=Ci("--"),Ka=Ci("var(--"),ls=e=>Ka(e)?Wa.test(e.split("/*")[0].trim()):!1,Wa=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ni=(e,t)=>t&&typeof e=="number"?t.transform(e):e,se=(e,t,s)=>s>t?t:s<e?e:s,Ce={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Be={...Ce,transform:e=>se(0,1,e)},qe={...Ce,default:1},Ke=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ne=Ke("deg"),Z=Ke("%"),T=Ke("px"),Ga=Ke("vh"),za=Ke("vw"),Hs={...Z,parse:e=>Z.parse(e)/100,transform:e=>Z.transform(e*100)},Ha={borderWidth:T,borderTopWidth:T,borderRightWidth:T,borderBottomWidth:T,borderLeftWidth:T,borderRadius:T,radius:T,borderTopLeftRadius:T,borderTopRightRadius:T,borderBottomRightRadius:T,borderBottomLeftRadius:T,width:T,maxWidth:T,height:T,maxHeight:T,top:T,right:T,bottom:T,left:T,padding:T,paddingTop:T,paddingRight:T,paddingBottom:T,paddingLeft:T,margin:T,marginTop:T,marginRight:T,marginBottom:T,marginLeft:T,backgroundPositionX:T,backgroundPositionY:T},qa={rotate:ne,rotateX:ne,rotateY:ne,rotateZ:ne,scale:qe,scaleX:qe,scaleY:qe,scaleZ:qe,skew:ne,skewX:ne,skewY:ne,distance:T,translateX:T,translateY:T,translateZ:T,x:T,y:T,z:T,perspective:T,transformPerspective:T,opacity:Be,originX:Hs,originY:Hs,originZ:T},qs={...Ce,transform:Math.round},cs={...Ha,...qa,zIndex:qs,size:T,fillOpacity:Be,strokeOpacity:Be,numOctaves:qs},Ya={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Xa=Pe.length;function Za(e,t,s){let n="",i=!0;for(let o=0;o<Xa;o++){const r=Pe[o],l=e[r];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(r.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||s){const u=Ni(l,cs[r]);if(!c){i=!1;const d=Ya[r]||r;n+=`${d}(${u}) `}s&&(t[r]=u)}}return n=n.trim(),s?n=s(t,i?"":n):i&&(n="none"),n}function us(e,t,s){const{style:n,vars:i,transformOrigin:o}=e;let r=!1,l=!1;for(const c in t){const u=t[c];if(me.has(c)){r=!0;continue}else if(Si(c)){i[c]=u;continue}else{const d=Ni(u,cs[c]);c.startsWith("origin")?(l=!0,o[c]=d):n[c]=d}}if(t.transform||(r||s?n.transform=Za(t,e.transform,s):n.transform&&(n.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=o;n.transformOrigin=`${c} ${u} ${d}`}}const Qa={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ja={offset:"strokeDashoffset",array:"strokeDasharray"};function el(e,t,s=1,n=0,i=!0){e.pathLength=1;const o=i?Qa:Ja;e[o.offset]=T.transform(-n);const r=T.transform(t),l=T.transform(s);e[o.array]=`${r} ${l}`}function Ys(e,t,s){return typeof e=="string"?e:T.transform(t+s*e)}function tl(e,t,s){const n=Ys(t,e.x,e.width),i=Ys(s,e.y,e.height);return`${n} ${i}`}function ds(e,{attrX:t,attrY:s,attrScale:n,originX:i,originY:o,pathLength:r,pathSpacing:l=1,pathOffset:c=0,...u},d,h){if(us(e,u,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:m,dimensions:g}=e;f.transform&&(g&&(m.transform=f.transform),delete f.transform),g&&(i!==void 0||o!==void 0||m.transform)&&(m.transformOrigin=tl(g,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(f.x=t),s!==void 0&&(f.y=s),n!==void 0&&(f.scale=n),r!==void 0&&el(f,r,l,c,!1)}const hs=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Mi=()=>({...hs(),attrs:{}}),fs=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Vi(e,{style:t,vars:s},n,i){Object.assign(e.style,t,i&&i.getProjectionStyles(n));for(const o in s)e.style.setProperty(o,s[o])}const Di=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 Ri(e,t,s,n){Vi(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(Di.has(i)?i:is(i),t.attrs[i])}const et={};function sl(e){Object.assign(et,e)}function ki(e,{layout:t,layoutId:s}){return me.has(e)||e.startsWith("origin")||(t||s!==void 0)&&(!!et[e]||e==="opacity")}function ms(e,t,s){var n;const{style:i}=e,o={};for(const r in i)(L(i[r])||t.style&&L(t.style[r])||ki(r,e)||((n=s==null?void 0:s.getValue(r))===null||n===void 0?void 0:n.liveStyle)!==void 0)&&(o[r]=i[r]);return o}function Ei(e,t,s){const n=ms(e,t,s);for(const i in e)if(L(e[i])||L(t[i])){const o=Pe.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[o]=e[i]}return n}function nl(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Xs=["x","y","width","height","cx","cy","r"],il={useVisualState:Pi({scrapeMotionValuesFromProps:Ei,createRenderState:Mi,onUpdate:({props:e,prevProps:t,current:s,renderState:n,latestValues:i})=>{if(!s)return;let o=!!e.drag;if(!o){for(const l in i)if(me.has(l)){o=!0;break}}if(!o)return;let r=!t;if(t)for(let l=0;l<Xs.length;l++){const c=Xs[l];e[c]!==t[c]&&(r=!0)}r&&S.read(()=>{nl(s,n),S.render(()=>{ds(n,i,fs(s.tagName),e.transformTemplate),Ri(s,n)})})}})},rl={useVisualState:Pi({scrapeMotionValuesFromProps:ms,createRenderState:hs})};function Li(e,t,s){for(const n in t)!L(t[n])&&!ki(n,s)&&(e[n]=t[n])}function ol({transformTemplate:e},t){return b.useMemo(()=>{const s=hs();return us(s,t,e),Object.assign({},s.vars,s.style)},[t])}function al(e,t){const s=e.style||{},n={};return Li(n,s,e),Object.assign(n,ol(e,t)),n}function ll(e,t){const s={},n=al(e,t);return e.drag&&e.dragListener!==!1&&(s.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(s.tabIndex=0),s.style=n,s}function cl(e,t,s,n){const i=b.useMemo(()=>{const o=Mi();return ds(o,t,fs(n),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Li(o,e.style,e),i.style={...o,...i.style}}return i}function ul(e=!1){return(s,n,i,{latestValues:o},r)=>{const c=(os(s)?cl:ll)(n,o,r,s),u=Pa(n,typeof s=="string",e),d=s!==b.Fragment?{...u,...c,ref:i}:{},{children:h}=n,f=b.useMemo(()=>L(h)?h.get():h,[h]);return b.createElement(s,{...d,children:f})}}function dl(e,t){return function(n,{forwardMotionProps:i}={forwardMotionProps:!1}){const r={...os(n)?il:rl,preloadedFeatures:e,useRender:ul(i),createVisualElement:t,Component:n};return Ea(r)}}function Ii(e,t){if(!Array.isArray(t))return!1;const s=t.length;if(s!==e.length)return!1;for(let n=0;n<s;n++)if(t[n]!==e[n])return!1;return!0}function ht(e,t,s){const n=e.getProps();return as(n,t,s!==void 0?s:n.custom,e)}const hl=ts(()=>window.ScrollTimeline!==void 0);class fl{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,s){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=s}attachTimeline(t,s){const n=this.animations.map(i=>{if(hl()&&i.attachTimeline)return i.attachTimeline(t);if(typeof s=="function")return s(i)});return()=>{n.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let s=0;s<this.animations.length;s++)t=Math.max(t,this.animations[s].duration);return t}runAll(t){this.animations.forEach(s=>s[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class ml extends fl{then(t,s){return Promise.all(this.animations).then(t).catch(s)}}function ps(e,t){return e?e[t]||e.default||e:void 0}const Lt=2e4;function Fi(e){let t=0;const s=50;let n=e.next(t);for(;!n.done&&t<Lt;)t+=s,n=e.next(t);return t>=Lt?1/0:t}function gs(e){return typeof e=="function"}function Zs(e,t){e.timeline=t,e.onfinish=null}const ys=e=>Array.isArray(e)&&typeof e[0]=="number",pl={linearEasing:void 0};function gl(e,t){const s=ts(e);return()=>{var n;return(n=pl[t])!==null&&n!==void 0?n:s()}}const tt=gl(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Bi=(e,t,s=10)=>{let n="";const i=Math.max(Math.round(t/s),2);for(let o=0;o<i;o++)n+=e(je(0,i-1,o))+", ";return`linear(${n.substring(0,n.length-2)})`};function Oi(e){return!!(typeof e=="function"&&tt()||!e||typeof e=="string"&&(e in It||tt())||ys(e)||Array.isArray(e)&&e.every(Oi))}const Me=([e,t,s,n])=>`cubic-bezier(${e}, ${t}, ${s}, ${n})`,It={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Me([0,.65,.55,1]),circOut:Me([.55,0,1,.45]),backIn:Me([.31,.01,.66,-.59]),backOut:Me([.33,1.53,.69,.99])};function _i(e,t){if(e)return typeof e=="function"&&tt()?Bi(e,t):ys(e)?Me(e):Array.isArray(e)?e.map(s=>_i(s,t)||It.easeOut):It[e]}const z={x:!1,y:!1};function Ui(){return z.x||z.y}function yl(e,t,s){var n;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(n=void 0)!==null&&n!==void 0?n:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function $i(e,t){const s=yl(e),n=new AbortController,i={passive:!0,...t,signal:n.signal};return[s,i,()=>n.abort()]}function Qs(e){return t=>{t.pointerType==="touch"||Ui()||e(t)}}function xl(e,t,s={}){const[n,i,o]=$i(e,s),r=Qs(l=>{const{target:c}=l,u=t(l);if(typeof u!="function"||!c)return;const d=Qs(h=>{u(h),c.removeEventListener("pointerleave",d)});c.addEventListener("pointerleave",d,i)});return n.forEach(l=>{l.addEventListener("pointerenter",r,i)}),o}const Ki=(e,t)=>t?e===t?!0:Ki(e,t.parentElement):!1,xs=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,vl=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function bl(e){return vl.has(e.tagName)||e.tabIndex!==-1}const Ve=new WeakSet;function Js(e){return t=>{t.key==="Enter"&&e(t)}}function wt(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const wl=(e,t)=>{const s=e.currentTarget;if(!s)return;const n=Js(()=>{if(Ve.has(s))return;wt(s,"down");const i=Js(()=>{wt(s,"up")}),o=()=>wt(s,"cancel");s.addEventListener("keyup",i,t),s.addEventListener("blur",o,t)});s.addEventListener("keydown",n,t),s.addEventListener("blur",()=>s.removeEventListener("keydown",n),t)};function en(e){return xs(e)&&!Ui()}function jl(e,t,s={}){const[n,i,o]=$i(e,s),r=l=>{const c=l.currentTarget;if(!en(l)||Ve.has(c))return;Ve.add(c);const u=t(l),d=(m,g)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),!(!en(m)||!Ve.has(c))&&(Ve.delete(c),typeof u=="function"&&u(m,{success:g}))},h=m=>{d(m,s.useGlobalTarget||Ki(c,m.target))},f=m=>{d(m,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return n.forEach(l=>{!bl(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(s.useGlobalTarget?window:l).addEventListener("pointerdown",r,i),l.addEventListener("focus",u=>wl(u,i),i)}),o}function Tl(e){return e==="x"||e==="y"?z[e]?null:(z[e]=!0,()=>{z[e]=!1}):z.x||z.y?null:(z.x=z.y=!0,()=>{z.x=z.y=!1})}const Wi=new Set(["width","height","top","left","right","bottom",...Pe]);let Ze;function Al(){Ze=void 0}const Q={now:()=>(Ze===void 0&&Q.set(k.isProcessing||va.useManualTiming?k.timestamp:performance.now()),Ze),set:e=>{Ze=e,queueMicrotask(Al)}};function vs(e,t){e.indexOf(t)===-1&&e.push(t)}function bs(e,t){const s=e.indexOf(t);s>-1&&e.splice(s,1)}class ws{constructor(){this.subscriptions=[]}add(t){return vs(this.subscriptions,t),()=>bs(this.subscriptions,t)}notify(t,s,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,s,n);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(t,s,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Gi(e,t){return t?e*(1e3/t):0}const tn=30,Pl=e=>!isNaN(parseFloat(e));class Cl{constructor(t,s={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,i=!0)=>{const o=Q.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=s.owner}setCurrent(t){this.current=t,this.updatedAt=Q.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Pl(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,s){this.events[t]||(this.events[t]=new ws);const n=this.events[t].add(s);return t==="change"?()=>{n(),S.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,s){this.passiveEffect=t,this.stopPassiveEffect=s}set(t,s=!0){!s||!this.passiveEffect?this.updateAndNotify(t,s):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,s,n){this.set(s),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,s=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Q.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>tn)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,tn);return Gi(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(t){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=t(s),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 Oe(e,t){return new Cl(e,t)}function Sl(e,t,s){e.hasValue(t)?e.getValue(t).set(s):e.addValue(t,Oe(s))}function Nl(e,t){const s=ht(e,t);let{transitionEnd:n={},transition:i={},...o}=s||{};o={...o,...n};for(const r in o){const l=_a(o[r]);Sl(e,r,l)}}function Ml(e){return!!(L(e)&&e.add)}function Ft(e,t){const s=e.getValue("willChange");if(Ml(s))return s.add(t)}function zi(e){return e.props[ji]}const Hi=(e,t,s)=>(((1-3*s+3*t)*e+(3*s-6*t))*e+3*t)*e,Vl=1e-7,Dl=12;function Rl(e,t,s,n,i){let o,r,l=0;do r=t+(s-t)/2,o=Hi(r,n,i)-e,o>0?s=r:t=r;while(Math.abs(o)>Vl&&++l<Dl);return r}function We(e,t,s,n){if(e===t&&s===n)return _;const i=o=>Rl(o,0,1,e,s);return o=>o===0||o===1?o:Hi(i(o),t,n)}const qi=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Yi=e=>t=>1-e(1-t),Xi=We(.33,1.53,.69,.99),js=Yi(Xi),Zi=qi(js),Qi=e=>(e*=2)<1?.5*js(e):.5*(2-Math.pow(2,-10*(e-1))),Ts=e=>1-Math.sin(Math.acos(e)),Ji=Yi(Ts),er=qi(Ts),tr=e=>/^0[^.\s]+$/u.test(e);function kl(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||tr(e):!0}const Re=e=>Math.round(e*1e5)/1e5,As=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function El(e){return e==null}const Ll=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ps=(e,t)=>s=>!!(typeof s=="string"&&Ll.test(s)&&s.startsWith(e)||t&&!El(s)&&Object.prototype.hasOwnProperty.call(s,t)),sr=(e,t,s)=>n=>{if(typeof n!="string")return n;const[i,o,r,l]=n.match(As);return{[e]:parseFloat(i),[t]:parseFloat(o),[s]:parseFloat(r),alpha:l!==void 0?parseFloat(l):1}},Il=e=>se(0,255,e),jt={...Ce,transform:e=>Math.round(Il(e))},he={test:Ps("rgb","red"),parse:sr("red","green","blue"),transform:({red:e,green:t,blue:s,alpha:n=1})=>"rgba("+jt.transform(e)+", "+jt.transform(t)+", "+jt.transform(s)+", "+Re(Be.transform(n))+")"};function Fl(e){let t="",s="",n="",i="";return e.length>5?(t=e.substring(1,3),s=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),s=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,s+=s,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(s,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const Bt={test:Ps("#"),parse:Fl,transform:he.transform},ye={test:Ps("hsl","hue"),parse:sr("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:s,alpha:n=1})=>"hsla("+Math.round(e)+", "+Z.transform(Re(t))+", "+Z.transform(Re(s))+", "+Re(Be.transform(n))+")"},E={test:e=>he.test(e)||Bt.test(e)||ye.test(e),parse:e=>he.test(e)?he.parse(e):ye.test(e)?ye.parse(e):Bt.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?he.transform(e):ye.transform(e)},Bl=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ol(e){var t,s;return isNaN(e)&&typeof e=="string"&&(((t=e.match(As))===null||t===void 0?void 0:t.length)||0)+(((s=e.match(Bl))===null||s===void 0?void 0:s.length)||0)>0}const nr="number",ir="color",_l="var",Ul="var(",sn="${}",$l=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function _e(e){const t=e.toString(),s=[],n={color:[],number:[],var:[]},i=[];let o=0;const l=t.replace($l,c=>(E.test(c)?(n.color.push(o),i.push(ir),s.push(E.parse(c))):c.startsWith(Ul)?(n.var.push(o),i.push(_l),s.push(c)):(n.number.push(o),i.push(nr),s.push(parseFloat(c))),++o,sn)).split(sn);return{values:s,split:l,indexes:n,types:i}}function rr(e){return _e(e).values}function or(e){const{split:t,types:s}=_e(e),n=t.length;return i=>{let o="";for(let r=0;r<n;r++)if(o+=t[r],i[r]!==void 0){const l=s[r];l===nr?o+=Re(i[r]):l===ir?o+=E.transform(i[r]):o+=i[r]}return o}}const Kl=e=>typeof e=="number"?0:e;function Wl(e){const t=rr(e);return or(e)(t.map(Kl))}const ae={test:Ol,parse:rr,createTransformer:or,getAnimatableNone:Wl},Gl=new Set(["brightness","contrast","saturate","opacity"]);function zl(e){const[t,s]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=s.match(As)||[];if(!n)return e;const i=s.replace(n,"");let o=Gl.has(t)?1:0;return n!==s&&(o*=100),t+"("+o+i+")"}const Hl=/\b([a-z-]*)\(.*?\)/gu,Ot={...ae,getAnimatableNone:e=>{const t=e.match(Hl);return t?t.map(zl).join(" "):e}},ql={...cs,color:E,backgroundColor:E,outlineColor:E,fill:E,stroke:E,borderColor:E,borderTopColor:E,borderRightColor:E,borderBottomColor:E,borderLeftColor:E,filter:Ot,WebkitFilter:Ot},Cs=e=>ql[e];function ar(e,t){let s=Cs(e);return s!==Ot&&(s=ae),s.getAnimatableNone?s.getAnimatableNone(t):void 0}const Yl=new Set(["auto","none","0"]);function Xl(e,t,s){let n=0,i;for(;n<e.length&&!i;){const o=e[n];typeof o=="string"&&!Yl.has(o)&&_e(o).values.length&&(i=e[n]),n++}if(i&&s)for(const o of t)e[o]=ar(s,i)}const nn=e=>e===Ce||e===T,rn=(e,t)=>parseFloat(e.split(", ")[t]),on=(e,t)=>(s,{transform:n})=>{if(n==="none"||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/u);if(i)return rn(i[1],t);{const o=n.match(/^matrix\((.+)\)$/u);return o?rn(o[1],e):0}},Zl=new Set(["x","y","z"]),Ql=Pe.filter(e=>!Zl.has(e));function Jl(e){const t=[];return Ql.forEach(s=>{const n=e.getValue(s);n!==void 0&&(t.push([s,n.get()]),n.set(s.startsWith("scale")?1:0))}),t}const Ae={width:({x:e},{paddingLeft:t="0",paddingRight:s="0"})=>e.max-e.min-parseFloat(t)-parseFloat(s),height:({y:e},{paddingTop:t="0",paddingBottom:s="0"})=>e.max-e.min-parseFloat(t)-parseFloat(s),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:on(4,13),y:on(5,14)};Ae.translateX=Ae.x;Ae.translateY=Ae.y;const fe=new Set;let _t=!1,Ut=!1;function lr(){if(Ut){const e=Array.from(fe).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),s=new Map;t.forEach(n=>{const i=Jl(n);i.length&&(s.set(n,i),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const i=s.get(n);i&&i.forEach(([o,r])=>{var l;(l=n.getValue(o))===null||l===void 0||l.set(r)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Ut=!1,_t=!1,fe.forEach(e=>e.complete()),fe.clear()}function cr(){fe.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ut=!0)})}function ec(){cr(),lr()}class Ss{constructor(t,s,n,i,o,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=s,this.name=n,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(fe.add(this),_t||(_t=!0,S.read(cr),S.resolveKeyframes(lr))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:s,element:n,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const r=i==null?void 0:i.get(),l=t[t.length-1];if(r!==void 0)t[0]=r;else if(n&&s){const c=n.readValue(s,l);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=l),i&&r===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),fe.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,fe.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const ur=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),tc=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function sc(e){const t=tc.exec(e);if(!t)return[,];const[,s,n,i]=t;return[`--${s??n}`,i]}function dr(e,t,s=1){const[n,i]=sc(e);if(!n)return;const o=window.getComputedStyle(t).getPropertyValue(n);if(o){const r=o.trim();return ur(r)?parseFloat(r):r}return ls(i)?dr(i,t,s+1):i}const hr=e=>t=>t.test(e),nc={test:e=>e==="auto",parse:e=>e},fr=[Ce,T,Z,ne,za,Ga,nc],an=e=>fr.find(hr(e));class mr extends Ss{constructor(t,s,n,i,o){super(t,s,n,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:s,name:n}=this;if(!s||!s.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let u=t[c];if(typeof u=="string"&&(u=u.trim(),ls(u))){const d=dr(u,s.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Wi.has(n)||t.length!==2)return;const[i,o]=t,r=an(i),l=an(o);if(r!==l)if(nn(r)&&nn(l))for(let c=0;c<t.length;c++){const u=t[c];typeof u=="string"&&(t[c]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:s}=this,n=[];for(let i=0;i<t.length;i++)kl(t[i])&&n.push(i);n.length&&Xl(t,n,s)}measureInitialState(){const{element:t,unresolvedKeyframes:s,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ae[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s[0]=this.measuredOrigin;const i=s[s.length-1];i!==void 0&&t.getValue(n,i).jump(i,!1)}measureEndState(){var t;const{element:s,name:n,unresolvedKeyframes:i}=this;if(!s||!s.current)return;const o=s.getValue(n);o&&o.jump(this.measuredOrigin,!1);const r=i.length-1,l=i[r];i[r]=Ae[n](s.measureViewportBox(),window.getComputedStyle(s.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,u])=>{s.getValue(c).set(u)}),this.resolveNoneKeyframes()}}const ln=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ae.test(e)||e==="0")&&!e.startsWith("url("));function ic(e){const t=e[0];if(e.length===1)return!0;for(let s=0;s<e.length;s++)if(e[s]!==t)return!0}function rc(e,t,s,n){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],r=ln(i,t),l=ln(o,t);return!r||!l?!1:ic(e)||(s==="spring"||gs(s))&&n}const oc=e=>e!==null;function ft(e,{repeat:t,repeatType:s="loop"},n){const i=e.filter(oc),o=t&&s!=="loop"&&t%2===1?0:i.length-1;return!o||n===void 0?i[o]:n}const ac=40;class pr{constructor({autoplay:t=!0,delay:s=0,type:n="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Q.now(),this.options={autoplay:t,delay:s,type:n,repeat:i,repeatDelay:o,repeatType:r,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>ac?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ec(),this._resolved}onKeyframesResolved(t,s){this.resolvedAt=Q.now(),this.hasAttemptedResolve=!0;const{name:n,type:i,velocity:o,delay:r,onComplete:l,onUpdate:c,isGenerator:u}=this.options;if(!u&&!rc(t,n,i,o))if(r)this.options.duration=0;else{c&&c(ft(t,this.options,s)),l&&l(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,s);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:s,...d},this.onPostResolved())}onPostResolved(){}then(t,s){return this.currentFinishedPromise.then(t,s)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const N=(e,t,s)=>e+(t-e)*s;function Tt(e,t,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?e+(t-e)*6*s:s<1/2?t:s<2/3?e+(t-e)*(2/3-s)*6:e}function lc({hue:e,saturation:t,lightness:s,alpha:n}){e/=360,t/=100,s/=100;let i=0,o=0,r=0;if(!t)i=o=r=s;else{const l=s<.5?s*(1+t):s+t-s*t,c=2*s-l;i=Tt(c,l,e+1/3),o=Tt(c,l,e),r=Tt(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:n}}function st(e,t){return s=>s>0?t:e}const At=(e,t,s)=>{const n=e*e,i=s*(t*t-n)+n;return i<0?0:Math.sqrt(i)},cc=[Bt,he,ye],uc=e=>cc.find(t=>t.test(e));function cn(e){const t=uc(e);if(!t)return!1;let s=t.parse(e);return t===ye&&(s=lc(s)),s}const un=(e,t)=>{const s=cn(e),n=cn(t);if(!s||!n)return st(e,t);const i={...s};return o=>(i.red=At(s.red,n.red,o),i.green=At(s.green,n.green,o),i.blue=At(s.blue,n.blue,o),i.alpha=N(s.alpha,n.alpha,o),he.transform(i))},dc=(e,t)=>s=>t(e(s)),Ge=(...e)=>e.reduce(dc),$t=new Set(["none","hidden"]);function hc(e,t){return $t.has(e)?s=>s<=0?e:t:s=>s>=1?t:e}function fc(e,t){return s=>N(e,t,s)}function Ns(e){return typeof e=="number"?fc:typeof e=="string"?ls(e)?st:E.test(e)?un:gc:Array.isArray(e)?gr:typeof e=="object"?E.test(e)?un:mc:st}function gr(e,t){const s=[...e],n=s.length,i=e.map((o,r)=>Ns(o)(o,t[r]));return o=>{for(let r=0;r<n;r++)s[r]=i[r](o);return s}}function mc(e,t){const s={...e,...t},n={};for(const i in s)e[i]!==void 0&&t[i]!==void 0&&(n[i]=Ns(e[i])(e[i],t[i]));return i=>{for(const o in n)s[o]=n[o](i);return s}}function pc(e,t){var s;const n=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const r=t.types[o],l=e.indexes[r][i[r]],c=(s=e.values[l])!==null&&s!==void 0?s:0;n[o]=c,i[r]++}return n}const gc=(e,t)=>{const s=ae.createTransformer(t),n=_e(e),i=_e(t);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?$t.has(e)&&!i.values.length||$t.has(t)&&!n.values.length?hc(e,t):Ge(gr(pc(n,i),i.values),s):st(e,t)};function yr(e,t,s){return typeof e=="number"&&typeof t=="number"&&typeof s=="number"?N(e,t,s):Ns(e)(e,t)}const yc=5;function xr(e,t,s){const n=Math.max(t-yc,0);return Gi(s-e(n),t-n)}const M={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Pt=.001;function xc({duration:e=M.duration,bounce:t=M.bounce,velocity:s=M.velocity,mass:n=M.mass}){let i,o,r=1-t;r=se(M.minDamping,M.maxDamping,r),e=se(M.minDuration,M.maxDuration,te(e)),r<1?(i=u=>{const d=u*r,h=d*e,f=d-s,m=Kt(u,r),g=Math.exp(-h);return Pt-f/m*g},o=u=>{const h=u*r*e,f=h*s+s,m=Math.pow(r,2)*Math.pow(u,2)*e,g=Math.exp(-h),y=Kt(Math.pow(u,2),r);return(-i(u)+Pt>0?-1:1)*((f-m)*g)/y}):(i=u=>{const d=Math.exp(-u*e),h=(u-s)*e+1;return-Pt+d*h},o=u=>{const d=Math.exp(-u*e),h=(s-u)*(e*e);return d*h});const l=5/e,c=bc(i,o,l);if(e=ee(e),isNaN(c))return{stiffness:M.stiffness,damping:M.damping,duration:e};{const u=Math.pow(c,2)*n;return{stiffness:u,damping:r*2*Math.sqrt(n*u),duration:e}}}const vc=12;function bc(e,t,s){let n=s;for(let i=1;i<vc;i++)n=n-e(n)/t(n);return n}function Kt(e,t){return e*Math.sqrt(1-t*t)}const wc=["duration","bounce"],jc=["stiffness","damping","mass"];function dn(e,t){return t.some(s=>e[s]!==void 0)}function Tc(e){let t={velocity:M.velocity,stiffness:M.stiffness,damping:M.damping,mass:M.mass,isResolvedFromDuration:!1,...e};if(!dn(e,jc)&&dn(e,wc))if(e.visualDuration){const s=e.visualDuration,n=2*Math.PI/(s*1.2),i=n*n,o=2*se(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:M.mass,stiffness:i,damping:o}}else{const s=xc(e);t={...t,...s,mass:M.mass},t.isResolvedFromDuration=!0}return t}function vr(e=M.visualDuration,t=M.bounce){const s=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:i}=s;const o=s.keyframes[0],r=s.keyframes[s.keyframes.length-1],l={done:!1,value:o},{stiffness:c,damping:u,mass:d,duration:h,velocity:f,isResolvedFromDuration:m}=Tc({...s,velocity:-te(s.velocity||0)}),g=f||0,y=u/(2*Math.sqrt(c*d)),v=r-o,p=te(Math.sqrt(c/d)),x=Math.abs(v)<5;n||(n=x?M.restSpeed.granular:M.restSpeed.default),i||(i=x?M.restDelta.granular:M.restDelta.default);let w;if(y<1){const j=Kt(p,y);w=C=>{const V=Math.exp(-y*p*C);return r-V*((g+y*p*v)/j*Math.sin(j*C)+v*Math.cos(j*C))}}else if(y===1)w=j=>r-Math.exp(-p*j)*(v+(g+p*v)*j);else{const j=p*Math.sqrt(y*y-1);w=C=>{const V=Math.exp(-y*p*C),A=Math.min(j*C,300);return r-V*((g+y*p*v)*Math.sinh(A)+j*v*Math.cosh(A))/j}}const P={calculatedDuration:m&&h||null,next:j=>{const C=w(j);if(m)l.done=j>=h;else{let V=0;y<1&&(V=j===0?ee(g):xr(w,j,C));const A=Math.abs(V)<=n,R=Math.abs(r-C)<=i;l.done=A&&R}return l.value=l.done?r:C,l},toString:()=>{const j=Math.min(Fi(P),Lt),C=Bi(V=>P.next(j*V).value,j,30);return j+"ms "+C}};return P}function hn({keyframes:e,velocity:t=0,power:s=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:l,max:c,restDelta:u=.5,restSpeed:d}){const h=e[0],f={done:!1,value:h},m=A=>l!==void 0&&A<l||c!==void 0&&A>c,g=A=>l===void 0?c:c===void 0||Math.abs(l-A)<Math.abs(c-A)?l:c;let y=s*t;const v=h+y,p=r===void 0?v:r(v);p!==v&&(y=p-h);const x=A=>-y*Math.exp(-A/n),w=A=>p+x(A),P=A=>{const R=x(A),I=w(A);f.done=Math.abs(R)<=u,f.value=f.done?p:I};let j,C;const V=A=>{m(f.value)&&(j=A,C=vr({keyframes:[f.value,g(f.value)],velocity:xr(w,A,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:d}))};return V(0),{calculatedDuration:null,next:A=>{let R=!1;return!C&&j===void 0&&(R=!0,P(A),V(A)),j!==void 0&&A>=j?C.next(A-j):(!R&&P(A),f)}}}const Ac=We(.42,0,1,1),Pc=We(0,0,.58,1),br=We(.42,0,.58,1),Cc=e=>Array.isArray(e)&&typeof e[0]!="number",Sc={linear:_,easeIn:Ac,easeInOut:br,easeOut:Pc,circIn:Ts,circInOut:er,circOut:Ji,backIn:js,backInOut:Zi,backOut:Xi,anticipate:Qi},fn=e=>{if(ys(e)){yi(e.length===4);const[t,s,n,i]=e;return We(t,s,n,i)}else if(typeof e=="string")return Sc[e];return e};function Nc(e,t,s){const n=[],i=s||yr,o=e.length-1;for(let r=0;r<o;r++){let l=i(e[r],e[r+1]);if(t){const c=Array.isArray(t)?t[r]||_:t;l=Ge(c,l)}n.push(l)}return n}function Mc(e,t,{clamp:s=!0,ease:n,mixer:i}={}){const o=e.length;if(yi(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const r=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=Nc(t,n,i),c=l.length,u=d=>{if(r&&d<e[0])return t[0];let h=0;if(c>1)for(;h<e.length-2&&!(d<e[h+1]);h++);const f=je(e[h],e[h+1],d);return l[h](f)};return s?d=>u(se(e[0],e[o-1],d)):u}function Vc(e,t){const s=e[e.length-1];for(let n=1;n<=t;n++){const i=je(0,t,n);e.push(N(s,1,i))}}function Dc(e){const t=[0];return Vc(t,e.length-1),t}function Rc(e,t){return e.map(s=>s*t)}function kc(e,t){return e.map(()=>t||br).splice(0,e.length-1)}function nt({duration:e=300,keyframes:t,times:s,ease:n="easeInOut"}){const i=Cc(n)?n.map(fn):fn(n),o={done:!1,value:t[0]},r=Rc(s&&s.length===t.length?s:Dc(t),e),l=Mc(r,t,{ease:Array.isArray(i)?i:kc(t,i)});return{calculatedDuration:e,next:c=>(o.value=l(c),o.done=c>=e,o)}}const Ec=e=>{const t=({timestamp:s})=>e(s);return{start:()=>S.update(t,!0),stop:()=>oe(t),now:()=>k.isProcessing?k.timestamp:Q.now()}},Lc={decay:hn,inertia:hn,tween:nt,keyframes:nt,spring:vr},Ic=e=>e/100;class Ms extends pr{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:s,motionValue:n,element:i,keyframes:o}=this.options,r=(i==null?void 0:i.KeyframeResolver)||Ss,l=(c,u)=>this.onKeyframesResolved(c,u);this.resolver=new r(o,l,s,n,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:s="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=this.options,l=gs(s)?s:Lc[s]||nt;let c,u;l!==nt&&typeof t[0]!="number"&&(c=Ge(Ic,yr(t[0],t[1])),t=[0,100]);const d=l({...this.options,keyframes:t});o==="mirror"&&(u=l({...this.options,keyframes:[...t].reverse(),velocity:-r})),d.calculatedDuration===null&&(d.calculatedDuration=Fi(d));const{calculatedDuration:h}=d,f=h+i,m=f*(n+1)-i;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:f,totalDuration:m}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,s=!1){const{resolved:n}=this;if(!n){const{keyframes:A}=this.options;return{done:!0,value:A[A.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:r,mapPercentToKeyframes:l,keyframes:c,calculatedDuration:u,totalDuration:d,resolvedDuration:h}=n;if(this.startTime===null)return o.next(0);const{delay:f,repeat:m,repeatType:g,repeatDelay:y,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),s?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const p=this.currentTime-f*(this.speed>=0?1:-1),x=this.speed>=0?p<0:p>d;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let w=this.currentTime,P=o;if(m){const A=Math.min(this.currentTime,d)/h;let R=Math.floor(A),I=A%1;!I&&A>=1&&(I=1),I===1&&R--,R=Math.min(R,m+1),!!(R%2)&&(g==="reverse"?(I=1-I,y&&(I-=y/h)):g==="mirror"&&(P=r)),w=se(0,1,I)*h}const j=x?{done:!1,value:c[0]}:P.next(w);l&&(j.value=l(j.value));let{done:C}=j;!x&&u!==null&&(C=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return V&&i!==void 0&&(j.value=ft(c,this.options,i)),v&&v(j.value),V&&this.finish(),j}get duration(){const{resolved:t}=this;return t?te(t.calculatedDuration):0}get time(){return te(this.currentTime)}set time(t){t=ee(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const s=this.playbackSpeed!==t;this.playbackSpeed=t,s&&(this.time=te(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Ec,onPlay:s,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),s&&s();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=n??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Fc=new Set(["opacity","clipPath","filter","transform"]);function Bc(e,t,s,{delay:n=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:l="easeInOut",times:c}={}){const u={[t]:s};c&&(u.offset=c);const d=_i(l,i);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:n,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"})}const Oc=ts(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),it=10,_c=2e4;function Uc(e){return gs(e.type)||e.type==="spring"||!Oi(e.ease)}function $c(e,t){const s=new Ms({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let n={done:!1,value:e[0]};const i=[];let o=0;for(;!n.done&&o<_c;)n=s.sample(o),i.push(n.value),o+=it;return{times:void 0,keyframes:i,duration:o-it,ease:"linear"}}const wr={anticipate:Qi,backInOut:Zi,circInOut:er};function Kc(e){return e in wr}class mn extends pr{constructor(t){super(t);const{name:s,motionValue:n,element:i,keyframes:o}=this.options;this.resolver=new mr(o,(r,l)=>this.onKeyframesResolved(r,l),s,n,i),this.resolver.scheduleResolve()}initPlayback(t,s){let{duration:n=300,times:i,ease:o,type:r,motionValue:l,name:c,startTime:u}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof o=="string"&&tt()&&Kc(o)&&(o=wr[o]),Uc(this.options)){const{onComplete:h,onUpdate:f,motionValue:m,element:g,...y}=this.options,v=$c(t,y);t=v.keyframes,t.length===1&&(t[1]=t[0]),n=v.duration,i=v.times,o=v.ease,r="keyframes"}const d=Bc(l.owner.current,c,t,{...this.options,duration:n,times:i,ease:o});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(Zs(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:h}=this.options;l.set(ft(t,this.options,s)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:n,times:i,type:r,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:s}=t;return te(s)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:s}=t;return te(s.currentTime||0)}set time(t){const{resolved:s}=this;if(!s)return;const{animation:n}=s;n.currentTime=ee(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:s}=t;return s.playbackRate}set speed(t){const{resolved:s}=this;if(!s)return;const{animation:n}=s;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:s}=t;return s.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:s}=t;return s.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:s}=this;if(!s)return _;const{animation:n}=s;Zs(n,t)}return _}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:s}=t;s.playState==="finished"&&this.updateFinishedPromise(),s.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:s}=t;s.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:s,keyframes:n,duration:i,type:o,ease:r,times:l}=t;if(s.playState==="idle"||s.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:h,element:f,...m}=this.options,g=new Ms({...m,keyframes:n,duration:i,type:o,ease:r,times:l,isGenerator:!0}),y=ee(this.time);u.setWithVelocity(g.sample(y-it).value,g.sample(y).value,it)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:s,name:n,repeatDelay:i,repeatType:o,damping:r,type:l}=t;if(!s||!s.owner||!(s.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=s.owner.getProps();return Oc()&&n&&Fc.has(n)&&!c&&!u&&!i&&o!=="mirror"&&r!==0&&l!=="inertia"}}const Wc={type:"spring",stiffness:500,damping:25,restSpeed:10},Gc=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),zc={type:"keyframes",duration:.8},Hc={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},qc=(e,{keyframes:t})=>t.length>2?zc:me.has(e)?e.startsWith("scale")?Gc(t[1]):Wc:Hc;function Yc({when:e,delay:t,delayChildren:s,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const Vs=(e,t,s,n={},i,o)=>r=>{const l=ps(n,e)||{},c=l.delay||n.delay||0;let{elapsed:u=0}=n;u=u-ee(c);let d={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:f=>{t.set(f),l.onUpdate&&l.onUpdate(f)},onComplete:()=>{r(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:o?void 0:i};Yc(l)||(d={...d,...qc(e,d)}),d.duration&&(d.duration=ee(d.duration)),d.repeatDelay&&(d.repeatDelay=ee(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(h=!0)),h&&!o&&t.get()!==void 0){const f=ft(d.keyframes,l);if(f!==void 0)return S.update(()=>{d.onUpdate(f),d.onComplete()}),new ml([])}return!o&&mn.supports(d)?new mn(d):new Ms(d)};function Xc({protectedKeys:e,needsAnimating:t},s){const n=e.hasOwnProperty(s)&&t[s]!==!0;return t[s]=!1,n}function jr(e,t,{delay:s=0,transitionOverride:n,type:i}={}){var o;let{transition:r=e.getDefaultTransition(),transitionEnd:l,...c}=t;n&&(r=n);const u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in c){const f=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),m=c[h];if(m===void 0||d&&Xc(d,h))continue;const g={delay:s,...ps(r||{},h)};let y=!1;if(window.MotionHandoffAnimation){const p=zi(e);if(p){const x=window.MotionHandoffAnimation(p,h,S);x!==null&&(g.startTime=x,y=!0)}}Ft(e,h),f.start(Vs(h,f,m,e.shouldReduceMotion&&Wi.has(h)?{type:!1}:g,e,y));const v=f.animation;v&&u.push(v)}return l&&Promise.all(u).then(()=>{S.update(()=>{l&&Nl(e,l)})}),u}function Wt(e,t,s={}){var n;const i=ht(e,t,s.type==="exit"?(n=e.presenceContext)===null||n===void 0?void 0:n.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};s.transitionOverride&&(o=s.transitionOverride);const r=i?()=>Promise.all(jr(e,i,s)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:f}=o;return Zc(e,t,d+u,h,f,s)}:()=>Promise.resolve(),{when:c}=o;if(c){const[u,d]=c==="beforeChildren"?[r,l]:[l,r];return u().then(()=>d())}else return Promise.all([r(),l(s.delay)])}function Zc(e,t,s=0,n=0,i=1,o){const r=[],l=(e.variantChildren.size-1)*n,c=i===1?(u=0)=>u*n:(u=0)=>l-u*n;return Array.from(e.variantChildren).sort(Qc).forEach((u,d)=>{u.notify("AnimationStart",t),r.push(Wt(u,t,{...o,delay:s+c(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(r)}function Qc(e,t){return e.sortNodePosition(t)}function Jc(e,t,s={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const i=t.map(o=>Wt(e,o,s));n=Promise.all(i)}else if(typeof t=="string")n=Wt(e,t,s);else{const i=typeof t=="function"?ht(e,t,s.custom):t;n=Promise.all(jr(e,i,s))}return n.then(()=>{e.notify("AnimationComplete",t)})}const eu=ns.length;function Tr(e){if(!e)return;if(!e.isControllingVariants){const s=e.parent?Tr(e.parent)||{}:{};return e.props.initial!==void 0&&(s.initial=e.props.initial),s}const t={};for(let s=0;s<eu;s++){const n=ns[s],i=e.props[n];(Fe(i)||i===!1)&&(t[n]=i)}return t}const tu=[...ss].reverse(),su=ss.length;function nu(e){return t=>Promise.all(t.map(({animation:s,options:n})=>Jc(e,s,n)))}function iu(e){let t=nu(e),s=pn(),n=!0;const i=c=>(u,d)=>{var h;const f=ht(e,d,c==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:m,transitionEnd:g,...y}=f;u={...u,...y,...g}}return u};function o(c){t=c(e)}function r(c){const{props:u}=e,d=Tr(e.parent)||{},h=[],f=new Set;let m={},g=1/0;for(let v=0;v<su;v++){const p=tu[v],x=s[p],w=u[p]!==void 0?u[p]:d[p],P=Fe(w),j=p===c?x.isActive:null;j===!1&&(g=v);let C=w===d[p]&&w!==u[p]&&P;if(C&&n&&e.manuallyAnimateOnMount&&(C=!1),x.protectedKeys={...m},!x.isActive&&j===null||!w&&!x.prevProp||ut(w)||typeof w=="boolean")continue;const V=ru(x.prevProp,w);let A=V||p===c&&x.isActive&&!C&&P||v>g&&P,R=!1;const I=Array.isArray(w)?w:[w];let pe=I.reduce(i(p),{});j===!1&&(pe={});const{prevResolvedValues:Bs={}}=x,fo={...Bs,...pe},Os=F=>{A=!0,f.has(F)&&(R=!0,f.delete(F)),x.needsAnimating[F]=!0;const J=e.getValue(F);J&&(J.liveStyle=!1)};for(const F in fo){const J=pe[F],yt=Bs[F];if(m.hasOwnProperty(F))continue;let xt=!1;Et(J)&&Et(yt)?xt=!Ii(J,yt):xt=J!==yt,xt?J!=null?Os(F):f.add(F):J!==void 0&&f.has(F)?Os(F):x.protectedKeys[F]=!0}x.prevProp=w,x.prevResolvedValues=pe,x.isActive&&(m={...m,...pe}),n&&e.blockInitialAnimation&&(A=!1),A&&(!(C&&V)||R)&&h.push(...I.map(F=>({animation:F,options:{type:p}})))}if(f.size){const v={};f.forEach(p=>{const x=e.getBaseTarget(p),w=e.getValue(p);w&&(w.liveStyle=!0),v[p]=x??null}),h.push({animation:v})}let y=!!h.length;return n&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),n=!1,y?t(h):Promise.resolve()}function l(c,u){var d;if(s[c].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(f=>{var m;return(m=f.animationState)===null||m===void 0?void 0:m.setActive(c,u)}),s[c].isActive=u;const h=r(c);for(const f in s)s[f].protectedKeys={};return h}return{animateChanges:r,setActive:l,setAnimateFunction:o,getState:()=>s,reset:()=>{s=pn(),n=!0}}}function ru(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ii(t,e):!1}function ce(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function pn(){return{animate:ce(!0),whileInView:ce(),whileHover:ce(),whileTap:ce(),whileDrag:ce(),whileFocus:ce(),exit:ce()}}class le{constructor(t){this.isMounted=!1,this.node=t}update(){}}class ou extends le{constructor(t){super(t),t.animationState||(t.animationState=iu(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ut(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:s}=this.node.prevProps||{};t!==s&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let au=0;class lu extends le{constructor(){super(...arguments),this.id=au++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:s}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);s&&!t&&i.then(()=>s(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const cu={animation:{Feature:ou},exit:{Feature:lu}};function Ue(e,t,s,n={passive:!0}){return e.addEventListener(t,s,n),()=>e.removeEventListener(t,s)}function ze(e){return{point:{x:e.pageX,y:e.pageY}}}const uu=e=>t=>xs(t)&&e(t,ze(t));function ke(e,t,s,n){return Ue(e,t,uu(s),n)}const gn=(e,t)=>Math.abs(e-t);function du(e,t){const s=gn(e.x,t.x),n=gn(e.y,t.y);return Math.sqrt(s**2+n**2)}class Ar{constructor(t,s,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=St(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,m=du(h.offset,{x:0,y:0})>=3;if(!f&&!m)return;const{point:g}=h,{timestamp:y}=k;this.history.push({...g,timestamp:y});const{onStart:v,onMove:p}=this.handlers;f||(v&&v(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Ct(f,this.transformPagePoint),S.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:m,onSessionEnd:g,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=St(h.type==="pointercancel"?this.lastMoveEventInfo:Ct(f,this.transformPagePoint),this.history);this.startEvent&&m&&m(h,v),g&&g(h,v)},!xs(t))return;this.dragSnapToOrigin=o,this.handlers=s,this.transformPagePoint=n,this.contextWindow=i||window;const r=ze(t),l=Ct(r,this.transformPagePoint),{point:c}=l,{timestamp:u}=k;this.history=[{...c,timestamp:u}];const{onSessionStart:d}=s;d&&d(t,St(l,this.history)),this.removeListeners=Ge(ke(this.contextWindow,"pointermove",this.handlePointerMove),ke(this.contextWindow,"pointerup",this.handlePointerUp),ke(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),oe(this.updatePoint)}}function Ct(e,t){return t?{point:t(e.point)}:e}function yn(e,t){return{x:e.x-t.x,y:e.y-t.y}}function St({point:e},t){return{point:e,delta:yn(e,Pr(t)),offset:yn(e,hu(t)),velocity:fu(t,.1)}}function hu(e){return e[0]}function Pr(e){return e[e.length-1]}function fu(e,t){if(e.length<2)return{x:0,y:0};let s=e.length-1,n=null;const i=Pr(e);for(;s>=0&&(n=e[s],!(i.timestamp-n.timestamp>ee(t)));)s--;if(!n)return{x:0,y:0};const o=te(i.timestamp-n.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}const Cr=1e-4,mu=1-Cr,pu=1+Cr,Sr=.01,gu=0-Sr,yu=0+Sr;function U(e){return e.max-e.min}function xu(e,t,s){return Math.abs(e-t)<=s}function xn(e,t,s,n=.5){e.origin=n,e.originPoint=N(t.min,t.max,e.origin),e.scale=U(s)/U(t),e.translate=N(s.min,s.max,e.origin)-e.originPoint,(e.scale>=mu&&e.scale<=pu||isNaN(e.scale))&&(e.scale=1),(e.translate>=gu&&e.translate<=yu||isNaN(e.translate))&&(e.translate=0)}function Ee(e,t,s,n){xn(e.x,t.x,s.x,n?n.originX:void 0),xn(e.y,t.y,s.y,n?n.originY:void 0)}function vn(e,t,s){e.min=s.min+t.min,e.max=e.min+U(t)}function vu(e,t,s){vn(e.x,t.x,s.x),vn(e.y,t.y,s.y)}function bn(e,t,s){e.min=t.min-s.min,e.max=e.min+U(t)}function Le(e,t,s){bn(e.x,t.x,s.x),bn(e.y,t.y,s.y)}function bu(e,{min:t,max:s},n){return t!==void 0&&e<t?e=n?N(t,e,n.min):Math.max(e,t):s!==void 0&&e>s&&(e=n?N(s,e,n.max):Math.min(e,s)),e}function wn(e,t,s){return{min:t!==void 0?e.min+t:void 0,max:s!==void 0?e.max+s-(e.max-e.min):void 0}}function wu(e,{top:t,left:s,bottom:n,right:i}){return{x:wn(e.x,s,i),y:wn(e.y,t,n)}}function jn(e,t){let s=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([s,n]=[n,s]),{min:s,max:n}}function ju(e,t){return{x:jn(e.x,t.x),y:jn(e.y,t.y)}}function Tu(e,t){let s=.5;const n=U(e),i=U(t);return i>n?s=je(t.min,t.max-n,e.min):n>i&&(s=je(e.min,e.max-i,t.min)),se(0,1,s)}function Au(e,t){const s={};return t.min!==void 0&&(s.min=t.min-e.min),t.max!==void 0&&(s.max=t.max-e.min),s}const Gt=.35;function Pu(e=Gt){return e===!1?e=0:e===!0&&(e=Gt),{x:Tn(e,"left","right"),y:Tn(e,"top","bottom")}}function Tn(e,t,s){return{min:An(e,t),max:An(e,s)}}function An(e,t){return typeof e=="number"?e:e[t]||0}const Pn=()=>({translate:0,scale:1,origin:0,originPoint:0}),xe=()=>({x:Pn(),y:Pn()}),Cn=()=>({min:0,max:0}),D=()=>({x:Cn(),y:Cn()});function K(e){return[e("x"),e("y")]}function Nr({top:e,left:t,right:s,bottom:n}){return{x:{min:t,max:s},y:{min:e,max:n}}}function Cu({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Su(e,t){if(!t)return e;const s=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:s.y,left:s.x,bottom:n.y,right:n.x}}function Nt(e){return e===void 0||e===1}function zt({scale:e,scaleX:t,scaleY:s}){return!Nt(e)||!Nt(t)||!Nt(s)}function ue(e){return zt(e)||Mr(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Mr(e){return Sn(e.x)||Sn(e.y)}function Sn(e){return e&&e!=="0%"}function rt(e,t,s){const n=e-s,i=t*n;return s+i}function Nn(e,t,s,n,i){return i!==void 0&&(e=rt(e,i,n)),rt(e,s,n)+t}function Ht(e,t=0,s=1,n,i){e.min=Nn(e.min,t,s,n,i),e.max=Nn(e.max,t,s,n,i)}function Vr(e,{x:t,y:s}){Ht(e.x,t.translate,t.scale,t.originPoint),Ht(e.y,s.translate,s.scale,s.originPoint)}const Mn=.999999999999,Vn=1.0000000000001;function Nu(e,t,s,n=!1){const i=s.length;if(!i)return;t.x=t.y=1;let o,r;for(let l=0;l<i;l++){o=s[l],r=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(n&&o.options.layoutScroll&&o.scroll&&o!==o.root&&be(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(t.x*=r.x.scale,t.y*=r.y.scale,Vr(e,r)),n&&ue(o.latestValues)&&be(e,o.latestValues))}t.x<Vn&&t.x>Mn&&(t.x=1),t.y<Vn&&t.y>Mn&&(t.y=1)}function ve(e,t){e.min=e.min+t,e.max=e.max+t}function Dn(e,t,s,n,i=.5){const o=N(e.min,e.max,i);Ht(e,t,s,o,n)}function be(e,t){Dn(e.x,t.x,t.scaleX,t.scale,t.originX),Dn(e.y,t.y,t.scaleY,t.scale,t.originY)}function Dr(e,t){return Nr(Su(e.getBoundingClientRect(),t))}function Mu(e,t,s){const n=Dr(e,s),{scroll:i}=t;return i&&(ve(n.x,i.offset.x),ve(n.y,i.offset.y)),n}const Rr=({current:e})=>e?e.ownerDocument.defaultView:null,Vu=new WeakMap;class Du{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=D(),this.visualElement=t}start(t,{snapToCursor:s=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(ze(d).point)},o=(d,h)=>{const{drag:f,dragPropagation:m,onDragStart:g}=this.getProps();if(f&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Tl(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),K(v=>{let p=this.getAxisMotionValue(v).get()||0;if(Z.test(p)){const{projection:x}=this.visualElement;if(x&&x.layout){const w=x.layout.layoutBox[v];w&&(p=U(w)*(parseFloat(p)/100))}}this.originPoint[v]=p}),g&&S.postRender(()=>g(d,h)),Ft(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},r=(d,h)=>{const{dragPropagation:f,dragDirectionLock:m,onDirectionLock:g,onDrag:y}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:v}=h;if(m&&this.currentDirection===null){this.currentDirection=Ru(v),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",h.point,v),this.updateAxis("y",h.point,v),this.visualElement.render(),y&&y(d,h)},l=(d,h)=>this.stop(d,h),c=()=>K(d=>{var h;return this.getAnimationState(d)==="paused"&&((h=this.getAxisMotionValue(d).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Ar(t,{onSessionStart:i,onStart:o,onMove:r,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Rr(this.visualElement)})}stop(t,s){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=s;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&S.postRender(()=>o(t,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:s}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(t,s,n){const{drag:i}=this.getProps();if(!n||!Ye(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let r=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(r=bu(r,this.constraints[t],this.elastic[t])),o.set(r)}resolveConstraints(){var t;const{dragConstraints:s,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;s&&ge(s)?this.constraints||(this.constraints=this.resolveRefConstraints()):s&&i?this.constraints=wu(i.layoutBox,s):this.constraints=!1,this.elastic=Pu(n),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&K(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=Au(i.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:s}=this.getProps();if(!t||!ge(t))return!1;const n=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Mu(n,i.root,this.visualElement.getTransformPagePoint());let r=ju(i.layout.layoutBox,o);if(s){const l=s(Cu(r));this.hasMutatedConstraints=!!l,l&&(r=Nr(l))}return r}startAnimation(t){const{drag:s,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=K(d=>{if(!Ye(d,s,this.currentDirection))return;let h=c&&c[d]||{};r&&(h={min:0,max:0});const f=i?200:1e6,m=i?40:1e7,g={type:"inertia",velocity:n?t[d]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(d,g)});return Promise.all(u).then(l)}startAxisValueAnimation(t,s){const n=this.getAxisMotionValue(t);return Ft(this.visualElement,t),n.start(Vs(t,n,0,s,this.visualElement,!1))}stopAnimation(){K(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){K(t=>{var s;return(s=this.getAxisMotionValue(t).animation)===null||s===void 0?void 0:s.pause()})}getAnimationState(t){var s;return(s=this.getAxisMotionValue(t).animation)===null||s===void 0?void 0:s.state}getAxisMotionValue(t){const s=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[s];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){K(s=>{const{drag:n}=this.getProps();if(!Ye(s,n,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(s);if(i&&i.layout){const{min:r,max:l}=i.layout.layoutBox[s];o.set(t[s]-N(r,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:s}=this.getProps(),{projection:n}=this.visualElement;if(!ge(s)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};K(r=>{const l=this.getAxisMotionValue(r);if(l&&this.constraints!==!1){const c=l.get();i[r]=Tu({min:c,max:c},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),K(r=>{if(!Ye(r,t,null))return;const l=this.getAxisMotionValue(r),{min:c,max:u}=this.constraints[r];l.set(N(c,u,i[r]))})}addListeners(){if(!this.visualElement.current)return;Vu.set(this.visualElement,this);const t=this.visualElement.current,s=ke(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),n=()=>{const{dragConstraints:c}=this.getProps();ge(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),S.read(n);const r=Ue(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(K(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=c[d].translate,h.set(h.get()+c[d].translate))}),this.visualElement.render())});return()=>{r(),s(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=Gt,dragMomentum:l=!0}=t;return{...t,drag:s,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:l}}}function Ye(e,t,s){return(t===!0||t===e)&&(s===null||s===e)}function Ru(e,t=10){let s=null;return Math.abs(e.y)>t?s="y":Math.abs(e.x)>t&&(s="x"),s}class ku extends le{constructor(t){super(t),this.removeGroupControls=_,this.removeListeners=_,this.controls=new Du(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||_}unmount(){this.removeGroupControls(),this.removeListeners()}}const Rn=e=>(t,s)=>{e&&S.postRender(()=>e(t,s))};class Eu extends le{constructor(){super(...arguments),this.removePointerDownListener=_}onPointerDown(t){this.session=new Ar(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Rr(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:s,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:Rn(t),onStart:Rn(s),onMove:n,onEnd:(o,r)=>{delete this.session,i&&S.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=ke(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Qe={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function kn(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ne={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(T.test(e))e=parseFloat(e);else return e;const s=kn(e,t.target.x),n=kn(e,t.target.y);return`${s}% ${n}%`}},Lu={correct:(e,{treeScale:t,projectionDelta:s})=>{const n=e,i=ae.parse(e);if(i.length>5)return n;const o=ae.createTransformer(e),r=typeof i[0]!="number"?1:0,l=s.x.scale*t.x,c=s.y.scale*t.y;i[0+r]/=l,i[1+r]/=c;const u=N(l,c,.5);return typeof i[2+r]=="number"&&(i[2+r]/=u),typeof i[3+r]=="number"&&(i[3+r]/=u),o(i)}};class Iu extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:s,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=t;sl(Fu),o&&(s.group&&s.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Qe.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:s,visualElement:n,drag:i,isPresent:o}=this.props,r=n.projection;return r&&(r.isPresent=o,i||t.layoutDependency!==s||s===void 0?r.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?r.promote():r.relegate()||S.postRender(()=>{const l=r.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),rs.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:s,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function kr(e){const[t,s]=ya(),n=b.useContext(pi);return a.jsx(Iu,{...e,layoutGroup:n,switchLayoutGroup:b.useContext(Ti),isPresent:t,safeToRemove:s})}const Fu={borderRadius:{...Ne,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ne,borderTopRightRadius:Ne,borderBottomLeftRadius:Ne,borderBottomRightRadius:Ne,boxShadow:Lu};function Bu(e,t,s){const n=L(e)?e:Oe(e);return n.start(Vs("",n,t,s)),n.animation}function Ou(e){return e instanceof SVGElement&&e.tagName!=="svg"}const _u=(e,t)=>e.depth-t.depth;class Uu{constructor(){this.children=[],this.isDirty=!1}add(t){vs(this.children,t),this.isDirty=!0}remove(t){bs(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(_u),this.isDirty=!1,this.children.forEach(t)}}function $u(e,t){const s=Q.now(),n=({timestamp:i})=>{const o=i-s;o>=t&&(oe(n),e(o-t))};return S.read(n,!0),()=>oe(n)}const Er=["TopLeft","TopRight","BottomLeft","BottomRight"],Ku=Er.length,En=e=>typeof e=="string"?parseFloat(e):e,Ln=e=>typeof e=="number"||T.test(e);function Wu(e,t,s,n,i,o){i?(e.opacity=N(0,s.opacity!==void 0?s.opacity:1,Gu(n)),e.opacityExit=N(t.opacity!==void 0?t.opacity:1,0,zu(n))):o&&(e.opacity=N(t.opacity!==void 0?t.opacity:1,s.opacity!==void 0?s.opacity:1,n));for(let r=0;r<Ku;r++){const l=`border${Er[r]}Radius`;let c=In(t,l),u=In(s,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||Ln(c)===Ln(u)?(e[l]=Math.max(N(En(c),En(u),n),0),(Z.test(u)||Z.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||s.rotate)&&(e.rotate=N(t.rotate||0,s.rotate||0,n))}function In(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Gu=Lr(0,.5,Ji),zu=Lr(.5,.95,_);function Lr(e,t,s){return n=>n<e?0:n>t?1:s(je(e,t,n))}function Fn(e,t){e.min=t.min,e.max=t.max}function $(e,t){Fn(e.x,t.x),Fn(e.y,t.y)}function Bn(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function On(e,t,s,n,i){return e-=t,e=rt(e,1/s,n),i!==void 0&&(e=rt(e,1/i,n)),e}function Hu(e,t=0,s=1,n=.5,i,o=e,r=e){if(Z.test(t)&&(t=parseFloat(t),t=N(r.min,r.max,t/100)-r.min),typeof t!="number")return;let l=N(o.min,o.max,n);e===o&&(l-=t),e.min=On(e.min,t,s,l,i),e.max=On(e.max,t,s,l,i)}function _n(e,t,[s,n,i],o,r){Hu(e,t[s],t[n],t[i],t.scale,o,r)}const qu=["x","scaleX","originX"],Yu=["y","scaleY","originY"];function Un(e,t,s,n){_n(e.x,t,qu,s?s.x:void 0,n?n.x:void 0),_n(e.y,t,Yu,s?s.y:void 0,n?n.y:void 0)}function $n(e){return e.translate===0&&e.scale===1}function Ir(e){return $n(e.x)&&$n(e.y)}function Kn(e,t){return e.min===t.min&&e.max===t.max}function Xu(e,t){return Kn(e.x,t.x)&&Kn(e.y,t.y)}function Wn(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Fr(e,t){return Wn(e.x,t.x)&&Wn(e.y,t.y)}function Gn(e){return U(e.x)/U(e.y)}function zn(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Zu{constructor(){this.members=[]}add(t){vs(this.members,t),t.scheduleRender()}remove(t){if(bs(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(t){const s=this.members.findIndex(i=>t===i);if(s===0)return!1;let n;for(let i=s;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){n=o;break}}return n?(this.promote(n),!0):!1}promote(t,s){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,s&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:s,resumingFrom:n}=t;s.onExitComplete&&s.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Qu(e,t,s){let n="";const i=e.x.translate/t.x,o=e.y.translate/t.y,r=(s==null?void 0:s.z)||0;if((i||o||r)&&(n=`translate3d(${i}px, ${o}px, ${r}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),s){const{transformPerspective:u,rotate:d,rotateX:h,rotateY:f,skewX:m,skewY:g}=s;u&&(n=`perspective(${u}px) ${n}`),d&&(n+=`rotate(${d}deg) `),h&&(n+=`rotateX(${h}deg) `),f&&(n+=`rotateY(${f}deg) `),m&&(n+=`skewX(${m}deg) `),g&&(n+=`skewY(${g}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(n+=`scale(${l}, ${c})`),n||"none"}const de={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},De=typeof window<"u"&&window.MotionDebug!==void 0,Mt=["","X","Y","Z"],Ju={visibility:"hidden"},Hn=1e3;let ed=0;function Vt(e,t,s,n){const{latestValues:i}=t;i[e]&&(s[e]=i[e],t.setStaticValue(e,0),n&&(n[e]=0))}function Br(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const s=zi(t);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",S,!(i||o))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&Br(n)}function Or({attachResizeListener:e,defaultParent:t,measureScroll:s,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(r={},l=t==null?void 0:t()){this.id=ed++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,De&&(de.totalNodes=de.resolvedTargetDeltas=de.recalculatedProjection=0),this.nodes.forEach(nd),this.nodes.forEach(ld),this.nodes.forEach(cd),this.nodes.forEach(id),De&&window.MotionDebug.record(de)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Uu)}addEventListener(r,l){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new ws),this.eventHandlers.get(r).add(l)}notifyListeners(r,...l){const c=this.eventHandlers.get(r);c&&c.notify(...l)}hasListeners(r){return this.eventHandlers.has(r)}mount(r,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Ou(r),this.instance=r;const{layoutId:c,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||c)&&(this.isLayoutDirty=!0),e){let h;const f=()=>this.root.updateBlockedByResize=!1;e(r,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=$u(f,250),Qe.hasAnimatedSinceResize&&(Qe.hasAnimatedSinceResize=!1,this.nodes.forEach(Yn))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&d&&(c||u)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:m,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||d.getDefaultTransition()||md,{onLayoutAnimationStart:v,onLayoutAnimationComplete:p}=d.getProps(),x=!this.targetLayout||!Fr(this.targetLayout,g)||m,w=!f&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||f&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,w);const P={...ps(y,"layout"),onPlay:v,onComplete:p};(d.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else f||Yn(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,oe(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(ud),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Br(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const h=this.path[d];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(qn);return}this.isUpdating||this.nodes.forEach(od),this.isUpdating=!1,this.nodes.forEach(ad),this.nodes.forEach(td),this.nodes.forEach(sd),this.clearAllSnapshots();const l=Q.now();k.delta=se(0,1e3/60,l-k.timestamp),k.timestamp=l,k.isProcessing=!0,bt.update.process(k),bt.preRender.process(k),bt.render.process(k),k.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,rs.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rd),this.sharedNodes.forEach(dd)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,S.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){S.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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutCorrected=D(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(l=!1),l){const c=n(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:c,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Ir(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;r&&(l||ue(this.latestValues)||d)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return r&&(c=this.removeTransform(c)),pd(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var r;const{visualElement:l}=this.options;if(!l)return D();const c=l.measureViewportBox();if(!(((r=this.scroll)===null||r===void 0?void 0:r.wasRoot)||this.path.some(gd))){const{scroll:d}=this.root;d&&(ve(c.x,d.offset.x),ve(c.y,d.offset.y))}return c}removeElementScroll(r){var l;const c=D();if($(c,r),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return c;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:h,options:f}=d;d!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&$(c,r),ve(c.x,h.offset.x),ve(c.y,h.offset.y))}return c}applyTransform(r,l=!1){const c=D();$(c,r);for(let u=0;u<this.path.length;u++){const d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&be(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),ue(d.latestValues)&&be(c,d.latestValues)}return ue(this.latestValues)&&be(c,this.latestValues),c}removeTransform(r){const l=D();$(l,r);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!ue(u.latestValues))continue;zt(u.latestValues)&&u.updateSnapshot();const d=D(),h=u.measurePageBox();$(d,h),Un(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return ue(this.latestValues)&&Un(l,this.latestValues),l}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}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!==k.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){var l;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==c;if(!(r||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:f}=this.options;if(!(!this.layout||!(h||f))){if(this.resolvedRelativeTargetAt=k.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=D(),this.relativeTargetOrigin=D(),Le(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),$(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=D(),this.targetWithTransforms=D()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),vu(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):$(this.target,this.layout.layoutBox),Vr(this.target,this.targetDelta)):$(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=D(),this.relativeTargetOrigin=D(),Le(this.relativeTargetOrigin,this.target,m.target),$(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}De&&de.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||zt(this.parent.latestValues)||Mr(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var r;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||!((r=this.parent)===null||r===void 0)&&r.isProjectionDirty)&&(u=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===k.timestamp&&(u=!1),u)return;const{layout:d,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||h))return;$(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,m=this.treeScale.y;Nu(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=D());const{target:g}=l;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Bn(this.prevProjectionDelta.x,this.projectionDelta.x),Bn(this.prevProjectionDelta.y,this.projectionDelta.y)),Ee(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==m||!zn(this.projectionDelta.x,this.prevProjectionDelta.x)||!zn(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),De&&de.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),r){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=xe(),this.projectionDelta=xe(),this.projectionDeltaWithTransform=xe()}setAnimationOrigin(r,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},h=xe();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const f=D(),m=c?c.source:void 0,g=this.layout?this.layout.source:void 0,y=m!==g,v=this.getStack(),p=!v||v.members.length<=1,x=!!(y&&!p&&this.options.crossfade===!0&&!this.path.some(fd));this.animationProgress=0;let w;this.mixTargetDelta=P=>{const j=P/1e3;Xn(h.x,r.x,j),Xn(h.y,r.y,j),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Le(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),hd(this.relativeTarget,this.relativeTargetOrigin,f,j),w&&Xu(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=D()),$(w,this.relativeTarget)),y&&(this.animationValues=d,Wu(d,u,this.latestValues,j,x,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=j},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(oe(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=S.update(()=>{Qe.hasAnimatedSinceResize=!0,this.currentAnimation=Bu(0,Hn,{...r,onUpdate:l=>{this.mixTargetDelta(l),r.onUpdate&&r.onUpdate(l)},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Hn),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=r;if(!(!l||!c||!u)){if(this!==r&&this.layout&&u&&_r(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||D();const h=U(this.layout.layoutBox.x);c.x.min=r.target.x.min,c.x.max=c.x.min+h;const f=U(this.layout.layoutBox.y);c.y.min=r.target.y.min,c.y.max=c.y.min+f}$(l,c),be(l,d),Ee(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(r,l){this.sharedNodes.has(r)||this.sharedNodes.set(r,new Zu),this.sharedNodes.get(r).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){var r;const{layoutId:l}=this.options;return l?((r=this.getStack())===null||r===void 0?void 0:r.lead)||this:this}getPrevLead(){var r;const{layoutId:l}=this.options;return l?(r=this.getStack())===null||r===void 0?void 0:r.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),r&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let l=!1;const{latestValues:c}=r;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&Vt("z",r,u,this.animationValues);for(let d=0;d<Mt.length;d++)Vt(`rotate${Mt[d]}`,r,u,this.animationValues),Vt(`skew${Mt[d]}`,r,u,this.animationValues);r.render();for(const d in u)r.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);r.scheduleRender()}getProjectionStyles(r){var l,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Ju;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Xe(r==null?void 0:r.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=Xe(r==null?void 0:r.pointerEvents)||""),this.hasProjected&&!ue(this.latestValues)&&(y.transform=d?d({},""):"none",this.hasProjected=!1),y}const f=h.animationValues||h.latestValues;this.applyTransformsToTarget(),u.transform=Qu(this.projectionDeltaWithTransform,this.treeScale,f),d&&(u.transform=d(f,u.transform));const{x:m,y:g}=this.projectionDelta;u.transformOrigin=`${m.origin*100}% ${g.origin*100}% 0`,h.animationValues?u.opacity=h===this?(c=(l=f.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=h===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const y in et){if(f[y]===void 0)continue;const{correct:v,applyTo:p}=et[y],x=u.transform==="none"?f[y]:v(f[y],h);if(p){const w=p.length;for(let P=0;P<w;P++)u[p[P]]=x}else u[y]=x}return this.options.layoutId&&(u.pointerEvents=h===this?Xe(r==null?void 0:r.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>{var l;return(l=r.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(qn),this.root.sharedNodes.clear()}}}function td(e){e.updateLayout()}function sd(e){var t;const s=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&s&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=e.layout,{animationType:o}=e.options,r=s.source!==e.layout.source;o==="size"?K(h=>{const f=r?s.measuredBox[h]:s.layoutBox[h],m=U(f);f.min=n[h].min,f.max=f.min+m}):_r(o,s.layoutBox,n)&&K(h=>{const f=r?s.measuredBox[h]:s.layoutBox[h],m=U(n[h]);f.max=f.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+m)});const l=xe();Ee(l,n,s.layoutBox);const c=xe();r?Ee(c,e.applyTransform(i,!0),s.measuredBox):Ee(c,n,s.layoutBox);const u=!Ir(l);let d=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:m}=h;if(f&&m){const g=D();Le(g,s.layoutBox,f.layoutBox);const y=D();Le(y,n,m.layoutBox),Fr(g,y)||(d=!0),h.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=g,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:s,delta:c,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function nd(e){De&&de.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function id(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rd(e){e.clearSnapshot()}function qn(e){e.clearMeasurements()}function od(e){e.isLayoutDirty=!1}function ad(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Yn(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ld(e){e.resolveTargetDelta()}function cd(e){e.calcProjection()}function ud(e){e.resetSkewAndRotation()}function dd(e){e.removeLeadSnapshot()}function Xn(e,t,s){e.translate=N(t.translate,0,s),e.scale=N(t.scale,1,s),e.origin=t.origin,e.originPoint=t.originPoint}function Zn(e,t,s,n){e.min=N(t.min,s.min,n),e.max=N(t.max,s.max,n)}function hd(e,t,s,n){Zn(e.x,t.x,s.x,n),Zn(e.y,t.y,s.y,n)}function fd(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const md={duration:.45,ease:[.4,0,.1,1]},Qn=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Jn=Qn("applewebkit/")&&!Qn("chrome/")?Math.round:_;function ei(e){e.min=Jn(e.min),e.max=Jn(e.max)}function pd(e){ei(e.x),ei(e.y)}function _r(e,t,s){return e==="position"||e==="preserve-aspect"&&!xu(Gn(t),Gn(s),.2)}function gd(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const yd=Or({attachResizeListener:(e,t)=>Ue(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Dt={current:void 0},Ur=Or({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Dt.current){const e=new yd({});e.mount(window),e.setOptions({layoutScroll:!0}),Dt.current=e}return Dt.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),xd={pan:{Feature:Eu},drag:{Feature:ku,ProjectionNode:Ur,MeasureLayout:kr}};function ti(e,t,s){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",s==="Start");const i="onHover"+s,o=n[i];o&&S.postRender(()=>o(t,ze(t)))}class vd extends le{mount(){const{current:t}=this.node;t&&(this.unmount=xl(t,s=>(ti(this.node,s,"Start"),n=>ti(this.node,n,"End"))))}unmount(){}}class bd extends le{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{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=Ge(Ue(this.node.current,"focus",()=>this.onFocus()),Ue(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function si(e,t,s){const{props:n}=e;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",s==="Start");const i="onTap"+(s==="End"?"":s),o=n[i];o&&S.postRender(()=>o(t,ze(t)))}class wd extends le{mount(){const{current:t}=this.node;t&&(this.unmount=jl(t,s=>(si(this.node,s,"Start"),(n,{success:i})=>si(this.node,n,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const qt=new WeakMap,Rt=new WeakMap,jd=e=>{const t=qt.get(e.target);t&&t(e)},Td=e=>{e.forEach(jd)};function Ad({root:e,...t}){const s=e||document;Rt.has(s)||Rt.set(s,{});const n=Rt.get(s),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(Td,{root:e,...t})),n[i]}function Pd(e,t,s){const n=Ad(t);return qt.set(e,s),n.observe(e),()=>{qt.delete(e),n.unobserve(e)}}const Cd={some:0,all:1};class Sd extends le{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:s,margin:n,amount:i="some",once:o}=t,r={root:s?s.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:Cd[i]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),f=u?d:h;f&&f(c)};return Pd(this.node.current,r,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:s}=this.node;["amount","margin","root"].some(Nd(t,s))&&this.startObserver()}unmount(){}}function Nd({viewport:e={}},{viewport:t={}}={}){return s=>e[s]!==t[s]}const Md={inView:{Feature:Sd},tap:{Feature:wd},focus:{Feature:bd},hover:{Feature:vd}},Vd={layout:{ProjectionNode:Ur,MeasureLayout:kr}},ot={current:null},Ds={current:!1};function $r(){if(Ds.current=!0,!!es)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ot.current=e.matches;e.addListener(t),t()}else ot.current=!1}const Dd=[...fr,E,ae],Rd=e=>Dd.find(hr(e)),ni=new WeakMap;function kd(e,t,s){for(const n in t){const i=t[n],o=s[n];if(L(i))e.addValue(n,i);else if(L(o))e.addValue(n,Oe(i,{owner:e}));else if(o!==i)if(e.hasValue(n)){const r=e.getValue(n);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=e.getStaticValue(n);e.addValue(n,Oe(r!==void 0?r:i,{owner:e}))}}for(const n in s)t[n]===void 0&&e.removeValue(n);return t}const ii=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ed{scrapeMotionValuesFromProps(t,s,n){return{}}constructor({parent:t,props:s,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:o,visualState:r},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ss,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=Q.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,S.render(this.render,!1,!0))};const{latestValues:c,renderState:u,onUpdate:d}=r;this.onUpdate=d,this.latestValues=c,this.baseTarget={...c},this.initialValues=s.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=s,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=dt(s),this.isVariantNode=wi(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(s,{},this);for(const m in f){const g=f[m];c[m]!==void 0&&L(g)&&g.set(c[m],!1)}}mount(t){this.current=t,ni.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((s,n)=>this.bindToMotionValue(n,s)),Ds.current||$r(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ot.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ni.delete(this.current),this.projection&&this.projection.unmount(),oe(this.notifyUpdate),oe(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const s=this.features[t];s&&(s.unmount(),s.isMounted=!1)}this.current=null}bindToMotionValue(t,s){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=me.has(t),i=s.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&S.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=s.on("renderRequest",this.scheduleRender);let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,t,s)),this.valueSubscriptions.set(t,()=>{i(),o(),r&&r(),s.owner&&s.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Te){const s=Te[t];if(!s)continue;const{isEnabled:n,Feature:i}=s;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):D()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,s){this.latestValues[t]=s}update(t,s){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let n=0;n<ii.length;n++){const i=ii[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=t[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=kd(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(t),()=>s.variantChildren.delete(t)}addValue(t,s){const n=this.values.get(t);s!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,s),this.values.set(t,s),this.latestValues[t]=s.get())}removeValue(t){this.values.delete(t);const s=this.valueSubscriptions.get(t);s&&(s(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,s){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&s!==void 0&&(n=Oe(s===null?void 0:s,{owner:this}),this.addValue(t,n)),n}readValue(t,s){var n;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(ur(i)||tr(i))?i=parseFloat(i):!Rd(i)&&ae.test(s)&&(i=ar(t,s)),this.setBaseTarget(t,L(i)?i.get():i)),L(i)?i.get():i}setBaseTarget(t,s){this.baseTarget[t]=s}getBaseTarget(t){var s;const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const r=as(this.props,n,(s=this.presenceContext)===null||s===void 0?void 0:s.custom);r&&(i=r[t])}if(n&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!L(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,s){return this.events[t]||(this.events[t]=new ws),this.events[t].add(s)}notify(t,...s){this.events[t]&&this.events[t].notify(...s)}}class Kr extends Ed{constructor(){super(...arguments),this.KeyframeResolver=mr}sortInstanceNodePosition(t,s){return t.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(t,s){return t.style?t.style[s]:void 0}removeValueFromRenderState(t,{vars:s,style:n}){delete s[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;L(t)&&(this.childSubscription=t.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function Ld(e){return window.getComputedStyle(e)}class Id extends Kr{constructor(){super(...arguments),this.type="html",this.renderInstance=Vi}readValueFromInstance(t,s){if(me.has(s)){const n=Cs(s);return n&&n.default||0}else{const n=Ld(t),i=(Si(s)?n.getPropertyValue(s):n[s])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:s}){return Dr(t,s)}build(t,s,n){us(t,s,n.transformTemplate)}scrapeMotionValuesFromProps(t,s,n){return ms(t,s,n)}}class Fd extends Kr{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=D}getBaseTargetFromProps(t,s){return t[s]}readValueFromInstance(t,s){if(me.has(s)){const n=Cs(s);return n&&n.default||0}return s=Di.has(s)?s:is(s),t.getAttribute(s)}scrapeMotionValuesFromProps(t,s,n){return Ei(t,s,n)}build(t,s,n){ds(t,s,this.isSVGTag,n.transformTemplate)}renderInstance(t,s,n,i){Ri(t,s,n,i)}mount(t){this.isSVGTag=fs(t.tagName),super.mount(t)}}const Bd=(e,t)=>os(e)?new Fd(t):new Id(t,{allowProjection:e!==b.Fragment}),Od=dl({...cu,...Md,...xd,...Vd},Bd),_d=Ca(Od);function Ud(){!Ds.current&&$r();const[e]=b.useState(ot.current);return e}function $d({width:e=32,height:t=32,x:s=0,y:n=0,cx:i=1,cy:o=1,cr:r=1,className:l,glow:c=!1,maxDots:u=300,...d}){const h=b.useId(),f=b.useRef(null),m=Ud(),[g,y]=b.useState({width:0,height:0});b.useEffect(()=>{const p=()=>{if(f.current){const x=f.current.getBoundingClientRect();y({width:x.width,height:x.height})}};return p(),window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[]);const v=b.useMemo(()=>{const p=Math.ceil(g.width/e),x=Math.ceil(g.height/t),w=Math.min(p*x,u);return Array.from({length:w},(P,j)=>{const C=j%p,V=Math.floor(j/p);return{x:C*e+i+s,y:V*t+o+n,delay:Math.random()*4,duration:Math.random()*2+2}})},[g,e,t,i,o,s,n,u]);return a.jsxs("svg",{ref:f,"aria-hidden":"true",className:lt("pointer-events-none absolute inset-0 h-full w-full",l),...d,children:[a.jsx("defs",{children:a.jsxs("radialGradient",{id:`${h}-gradient`,children:[a.jsx("stop",{offset:"0%",stopColor:"currentColor",stopOpacity:"1"}),a.jsx("stop",{offset:"100%",stopColor:"currentColor",stopOpacity:"0"})]})}),v.map((p,x)=>a.jsx(_d.circle,{cx:p.x,cy:p.y,r,fill:c?`url(#${h}-gradient)`:"currentColor",className:"text-neutral-400/80",initial:c&&!m?{opacity:.3,scale:1}:{},animate:c&&!m?{opacity:[.3,1,.3],scale:[1,1.4,1]}:{},transition:c&&!m?{duration:p.duration,repeat:1/0,repeatType:"reverse",delay:p.delay,ease:"easeInOut"}:{}},`${p.x}-${p.y}-${x}`))]})}const Kd=()=>{const{data:{hero:e}}=G().props;return a.jsxs("section",{className:"container grid lg:grid-cols-2 place-items-center py-20 md:py-32 gap-10",children:[a.jsxs("div",{className:"text-center lg:text-start space-y-6",children:[a.jsxs("main",{className:"text-5xl md:text-6xl font-bold",children:[a.jsx($d,{glow:!0,className:"opacity-40"}),a.jsxs("h1",{className:"inline",children:[a.jsx("span",{className:"inline bg-gradient-to-r from-[#F596D3]  to-[#D247BF] text-transparent bg-clip-text",children:a.jsx(kt,{speed:1.5,className:"font-extrabold",children:e.title1})})," ",e.title2]}),"untuk"," ",a.jsxs("h2",{className:"inline",children:[a.jsx(kt,{children:e.title3}),e.title4]})]}),a.jsx("div",{className:"text-muted-foreground",dangerouslySetInnerHTML:{__html:e.subtitle}}),a.jsx("div",{className:"space-y-4 md:space-y-0 md:space-x-4",children:e.get_started.map((t,s)=>a.jsxs("a",{rel:"noreferrer noopener",href:t.url,target:"_blank",className:`w-full md:w-1/3 ${W({variant:t.color??"default"})}`,children:[t.title,a.jsx(Oo,{className:"ml-2 w-5 h-5"})]},s))})]}),a.jsx("div",{className:"z-10",children:a.jsx(pa,{})}),a.jsx("div",{className:"shadow"})]})},Wd=()=>{const{data:{stats:e}}=G().props;return a.jsx("section",{id:"statistics",children:a.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-8",children:e.map(({quantity:t,description:s})=>a.jsxs("div",{className:"space-y-2 text-center",children:[a.jsx("h2",{className:"text-3xl sm:text-4xl font-bold ",children:t}),a.jsx("p",{className:"text-xl text-muted-foreground",children:s})]},s))})})},Gd=()=>{const{data:{about:e}}=G().props;return a.jsx("section",{id:"about",className:"container py-24 sm:py-32",children:a.jsx("div",{className:"bg-muted/50 border rounded-lg py-12",children:a.jsxs("div",{className:"px-6 flex flex-col-reverse md:flex-row gap-8 md:gap-12",children:[a.jsx("img",{src:e.image,alt:"",className:"w-[300px] object-contain rounded-lg"}),a.jsxs("div",{className:"bg-green-0 flex flex-col justify-between",children:[a.jsxs("div",{className:"pb-6",children:[a.jsxs("h2",{className:"text-3xl md:text-4xl font-bold",children:[a.jsxs("span",{className:"bg-gradient-to-b from-primary/60 to-primary text-transparent bg-clip-text",children:["About"," "]}),"Company"]}),a.jsx("p",{className:"text-xl text-muted-foreground mt-4",children:e.description})]}),a.jsx(Wd,{})]})]})})})},zd=e=>a.jsx(ta,{...e}),Hd=e=>a.jsx(Ho,{...e}),qd=e=>a.jsx(Jo,{...e}),Yd=e=>a.jsx(aa,{...e}),Xd=e=>a.jsx(Ko,{...e}),Zd=e=>a.jsx(ca,{...e}),Qd=e=>a.jsx(Do,{...e}),Jd={MedalIcon:zd,GiftIcon:Hd,MapIcon:qd,PlaneIcon:Yd,ChartIcon:Xd,WalletIcon:Zd,MagnifierIcon:Qd},Wr=({dynamicIconName:e,className:t})=>{const s=Jd[e];return s?a.jsx(s,{className:t}):null},eh=()=>{const{data:{how_it_works:e}}=G().props;return a.jsxs("section",{id:"howItWorks",className:"container text-center py-24 sm:py-32",children:[a.jsxs("h2",{className:"text-3xl md:text-4xl font-bold mb-8",children:["How It"," ",a.jsxs("span",{className:"bg-gradient-to-b from-primary/60 to-primary text-transparent bg-clip-text",children:["Works"," "]}),"Step-by-Step Guide"]}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:e.map(({icon:t,title:s,description:n})=>a.jsxs(q,{className:"bg-muted/50",children:[a.jsx(Y,{children:a.jsxs(X,{className:"grid gap-4 place-items-center",children:[a.jsx(Wr,{dynamicIconName:t,className:"w-10 h-10 text-primary"}),s]})}),a.jsx(re,{children:n})]},s))})]})},th=["Dark/Light theme","Reviews","Features","Pricing","Contact form","Our team","Responsive design","Newsletter","Minimalist"],sh=()=>{const{data:{features:e}}=G().props;return a.jsxs("section",{id:"features",className:"container py-24 sm:py-32 space-y-8",children:[a.jsxs("h2",{className:"text-3xl lg:text-4xl font-bold md:text-center",children:[e.title," ",a.jsx("span",{className:"bg-gradient-to-b from-primary/60 to-primary text-transparent bg-clip-text",children:e.subtitle})]}),a.jsx("div",{className:"flex flex-wrap md:justify-center gap-4",children:th.map(t=>a.jsx("div",{children:a.jsx(Zt,{variant:"secondary",className:"text-sm",children:t})},t))}),a.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.lists.map(({title:t,description:s,image:n},i)=>a.jsxs(q,{children:[a.jsx(Y,{children:a.jsx(X,{children:t})}),a.jsx(re,{children:s}),a.jsx(Ie,{children:a.jsx("img",{src:n,alt:`Feature ${t}`,className:"w-[200px] lg:w-[300px] mx-auto"})})]},`${t}-${i}`))})]})},nh=()=>{const{data:{services:e}}=G().props;return a.jsx("section",{className:"container py-24 sm:py-32",children:a.jsxs("div",{className:"grid lg:grid-cols-[1fr,1fr] gap-8 place-items-center",children:[a.jsxs("div",{children:[a.jsxs("h2",{className:"text-3xl md:text-4xl font-bold",children:[a.jsxs("span",{className:"bg-gradient-to-b from-primary/60 to-primary text-transparent bg-clip-text",children:["Layanan Unggulan"," "]}),"Sidoel"]}),a.jsx("p",{className:"text-muted-foreground text-xl mt-4 mb-8",children:"Berbagai fitur dan layanan dirancang khusus untuk mempermudah pendataan siswa dan pelaksanaan ujian online."}),a.jsx("div",{className:"flex flex-col gap-8",children:e.map(({icon:t,title:s,description:n})=>a.jsx(q,{children:a.jsxs(Y,{className:"space-y-1 flex md:flex-row justify-start items-start gap-4",children:[a.jsx("div",{className:"mt-1 bg-primary/20 p-2 rounded-2xl",children:a.jsx(Wr,{dynamicIconName:t,className:"w-10 h-10 text-primary"})}),a.jsxs("div",{children:[a.jsx(X,{children:s}),a.jsx(ie,{className:"text-md mt-2",children:n})]})]})},s))})]}),a.jsx("img",{src:"/assets/cube-leg.png",className:"w-[300px] md:w-[500px] lg:w-[600px] object-contain",alt:"Ilustrasi layanan"})]})})},ih=()=>a.jsx("section",{id:"cta",className:"bg-muted/50 py-16 my-24 sm:my-32",children:a.jsxs("div",{className:"container lg:grid lg:grid-cols-2 place-items-center",children:[a.jsxs("div",{className:"lg:col-start-1",children:[a.jsxs("h2",{className:"text-3xl md:text-4xl font-bold ",children:["All Your",a.jsxs("span",{className:"bg-gradient-to-b from-primary/60 to-primary text-transparent bg-clip-text",children:[" ","Ideas & Concepts"," "]}),"In One Interface"]}),a.jsx("p",{className:"text-muted-foreground text-xl mt-4 mb-8 lg:mb-0",children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Eaque, beatae. Ipsa tempore ipsum iste quibusdam illum ducimus eos. Quasi, sed!"})]}),a.jsxs("div",{className:"space-y-4 lg:col-start-2",children:[a.jsx(we,{className:"w-full md:mr-4 md:w-auto",children:"Request a Demo"}),a.jsx(we,{variant:"outline",className:"w-full md:w-auto",children:"View all features"})]})]})}),rh=()=>{const{data:{testimonials:{title:e,subtitle:t,lists:s}}}=G().props;return a.jsxs("section",{id:"testimonials",className:"container py-24 sm:py-32",children:[a.jsxs("h2",{className:"text-3xl md:text-4xl font-bold",children:[e," ",a.jsx("span",{className:"bg-gradient-to-b from-primary/60 to-primary text-transparent bg-clip-text",children:t})]}),a.jsx("p",{className:"text-xl text-muted-foreground pt-4 pb-8",children:"Find out what people are saying about our platform and how it's helping them achieve their goals."}),a.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6",children:s.map(({image:n,name:i,userName:o,comment:r})=>a.jsxs(q,{className:"max-w-md",children:[a.jsxs(Y,{className:"flex flex-row items-center gap-4 pb-2",children:[a.jsxs(oi,{children:[a.jsx(ai,{src:n||"",alt:i}),a.jsx(li,{children:(i==null?void 0:i.charAt(0))||"U"})]}),a.jsxs("div",{className:"flex flex-col",children:[a.jsx(X,{className:"text-lg",children:i}),a.jsx(ie,{children:o})]})]}),a.jsx(re,{children:r})]},o))})]})},oh=()=>{const{data:{teamList:e}}=G().props,t=s=>{switch(s){case"Linkedin":return a.jsx(mi,{size:"20",className:"text-emerald-500"});case"Facebook":return a.jsx(Go,{size:"20",className:"text-emerald-500"});case"Instagram":return a.jsx(Yo,{size:"20",className:"text-emerald-500"});case"WhatsApp":return a.jsx(ra,{size:"20",className:"text-emerald-500"})}};return a.jsxs("section",{id:"team",className:"container py-24 sm:py-32",children:[a.jsxs("h2",{className:"text-3xl md:text-4xl font-bold",children:[a.jsxs("span",{className:"bg-gradient-to-b from-primary/60 to-primary text-transparent bg-clip-text",children:["Our Dedicated"," "]}),"Crew"]}),a.jsx("p",{className:"mt-4 mb-10 text-xl text-muted-foreground",children:"Lorem ipsum dolor sit amet consectetur, adipisicing elit. Veritatis dolor pariatur sit!"}),a.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8 gap-y-10",children:e.map(({imageUrl:s,name:n,description:i,position:o,socialNetworks:r})=>a.jsxs(q,{className:"bg-muted/50 relative mt-8 flex flex-col justify-center items-center",children:[a.jsxs(Y,{className:"mt-8 flex justify-center items-center pb-2",children:[a.jsx("img",{src:s,alt:`${n} ${o}`,className:"absolute -top-12 rounded-full w-24 h-24 aspect-square object-cover"}),a.jsx(X,{className:"text-center",children:n}),a.jsx(ie,{className:"text-primary",children:o})]}),a.jsx(re,{className:"text-center pb-2",children:a.jsx("p",{children:i})}),a.jsx(Ie,{children:r.map(({name:l,url:c})=>a.jsx("div",{children:a.jsxs("a",{rel:"noreferrer noopener",href:c,target:"_blank",className:W({variant:"ghost",size:"sm"}),children:[a.jsxs("span",{className:"sr-only",children:[l," icon"]}),t(l)]})},l))})]},n))})]})};var Yt=(e=>(e[e.NO=0]="NO",e[e.YES=1]="YES",e))(Yt||{});const ah=()=>{const{data:{pricing:e}}=G().props;return a.jsxs("section",{id:"pricing",className:"container py-24 sm:py-32",children:[a.jsxs("h2",{className:"text-3xl md:text-4xl font-bold text-center",children:["Get "," ",a.jsx("span",{className:"bg-gradient-to-b from-primary/60 to-primary text-transparent bg-clip-text",children:"Access"})]}),a.jsx("h3",{className:"text-xl text-center text-muted-foreground pt-4 pb-8",children:"Ayo segera daftarkan sekolah anda kepada kami."}),a.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map(t=>a.jsxs(q,{className:t.popular===Yt.YES?"drop-shadow-xl shadow-black/10 dark:shadow-white/10":"",children:[a.jsxs(Y,{children:[a.jsxs(X,{className:"flex item-center justify-between",children:[t.title,t.popular===Yt.YES?a.jsx(Zt,{variant:"secondary",className:"text-sm text-primary",children:"Most popular"}):null]}),a.jsxs("div",{children:[a.jsxs("span",{className:"text-3xl font-bold",children:["$",t.price]}),a.jsx("span",{className:"text-muted-foreground",children:" /month"})]}),a.jsx(ie,{children:t.description})]}),a.jsx(re,{children:a.jsx(we,{className:"w-full",children:t.buttonText})}),a.jsx("hr",{className:"w-4/5 m-auto mb-4"}),a.jsx(Ie,{className:"flex",children:a.jsx("div",{className:"space-y-4",children:t.benefitList.map(s=>a.jsxs("span",{className:"flex",children:[a.jsx(ui,{className:"text-green-500"})," ",a.jsx("h3",{className:"ml-2",children:s})]},s))})})]},t.title))})]})},lh=()=>{const e=t=>{t.preventDefault(),console.log("Subscribed!")};return a.jsxs("section",{id:"newsletter",children:[a.jsx("hr",{className:"w-11/12 mx-auto"}),a.jsxs("div",{className:"container py-24 sm:py-32",children:[a.jsxs("h3",{className:"text-center text-4xl md:text-5xl font-bold",children:["Join Our Daily"," ",a.jsx("span",{className:"bg-gradient-to-b from-primary/60 to-primary text-transparent bg-clip-text",children:"Newsletter"})]}),a.jsx("p",{className:"text-xl text-muted-foreground text-center mt-4 mb-8",children:"Lorem ipsum dolor sit amet consectetur."}),a.jsxs("form",{className:"flex flex-col w-full md:flex-row md:w-6/12 lg:w-4/12 mx-auto gap-4 md:gap-2",onSubmit:e,children:[a.jsx(Ro,{placeholder:"leomirandadev@gmail.com",className:"bg-muted/50 dark:bg-muted/80 ","aria-label":"email"}),a.jsx(we,{children:"Subscribe"})]})]}),a.jsx("hr",{className:"w-11/12 mx-auto"})]})};var mt="Collapsible",[ch,Gr]=di(mt),[uh,Rs]=ch(mt),zr=b.forwardRef((e,t)=>{const{__scopeCollapsible:s,open:n,defaultOpen:i,disabled:o,onOpenChange:r,...l}=e,[c,u]=Qt({prop:n,defaultProp:i??!1,onChange:r,caller:mt});return a.jsx(uh,{scope:s,disabled:o,contentId:hi(),open:c,onOpenToggle:b.useCallback(()=>u(d=>!d),[u]),children:a.jsx($e.div,{"data-state":Es(c),"data-disabled":o?"":void 0,...l,ref:t})})});zr.displayName=mt;var Hr="CollapsibleTrigger",qr=b.forwardRef((e,t)=>{const{__scopeCollapsible:s,...n}=e,i=Rs(Hr,s);return a.jsx($e.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Es(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...n,ref:t,onClick:fi(e.onClick,i.onOpenToggle)})});qr.displayName=Hr;var ks="CollapsibleContent",Yr=b.forwardRef((e,t)=>{const{forceMount:s,...n}=e,i=Rs(ks,e.__scopeCollapsible);return a.jsx(ko,{present:s||i.open,children:({present:o})=>a.jsx(dh,{...n,ref:t,present:o})})});Yr.displayName=ks;var dh=b.forwardRef((e,t)=>{const{__scopeCollapsible:s,present:n,children:i,...o}=e,r=Rs(ks,s),[l,c]=b.useState(n),u=b.useRef(null),d=ci(t,u),h=b.useRef(0),f=h.current,m=b.useRef(0),g=m.current,y=r.open||l,v=b.useRef(y),p=b.useRef(void 0);return b.useEffect(()=>{const x=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(x)},[]),Eo(()=>{const x=u.current;if(x){p.current=p.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const w=x.getBoundingClientRect();h.current=w.height,m.current=w.width,v.current||(x.style.transitionDuration=p.current.transitionDuration,x.style.animationName=p.current.animationName),c(n)}},[r.open,n]),a.jsx($e.div,{"data-state":Es(r.open),"data-disabled":r.disabled?"":void 0,id:r.contentId,hidden:!y,...o,ref:d,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...e.style},children:y&&i})});function Es(e){return e?"open":"closed"}var hh=zr,fh=qr,mh=Yr,H="Accordion",ph=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Ls,gh,yh]=Lo(H),[pt,Qh]=di(H,[yh,Gr]),Is=Gr(),Xr=O.forwardRef((e,t)=>{const{type:s,...n}=e,i=n,o=n;return a.jsx(Ls.Provider,{scope:e.__scopeAccordion,children:s==="multiple"?a.jsx(wh,{...o,ref:t}):a.jsx(bh,{...i,ref:t})})});Xr.displayName=H;var[Zr,xh]=pt(H),[Qr,vh]=pt(H,{collapsible:!1}),bh=O.forwardRef((e,t)=>{const{value:s,defaultValue:n,onValueChange:i=()=>{},collapsible:o=!1,...r}=e,[l,c]=Qt({prop:s,defaultProp:n??"",onChange:i,caller:H});return a.jsx(Zr,{scope:e.__scopeAccordion,value:O.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:O.useCallback(()=>o&&c(""),[o,c]),children:a.jsx(Qr,{scope:e.__scopeAccordion,collapsible:o,children:a.jsx(Jr,{...r,ref:t})})})}),wh=O.forwardRef((e,t)=>{const{value:s,defaultValue:n,onValueChange:i=()=>{},...o}=e,[r,l]=Qt({prop:s,defaultProp:n??[],onChange:i,caller:H}),c=O.useCallback(d=>l((h=[])=>[...h,d]),[l]),u=O.useCallback(d=>l((h=[])=>h.filter(f=>f!==d)),[l]);return a.jsx(Zr,{scope:e.__scopeAccordion,value:r,onItemOpen:c,onItemClose:u,children:a.jsx(Qr,{scope:e.__scopeAccordion,collapsible:!0,children:a.jsx(Jr,{...o,ref:t})})})}),[jh,gt]=pt(H),Jr=O.forwardRef((e,t)=>{const{__scopeAccordion:s,disabled:n,dir:i,orientation:o="vertical",...r}=e,l=O.useRef(null),c=ci(l,t),u=gh(s),h=Io(i)==="ltr",f=fi(e.onKeyDown,m=>{var A;if(!ph.includes(m.key))return;const g=m.target,y=u().filter(R=>{var I;return!((I=R.ref.current)!=null&&I.disabled)}),v=y.findIndex(R=>R.ref.current===g),p=y.length;if(v===-1)return;m.preventDefault();let x=v;const w=0,P=p-1,j=()=>{x=v+1,x>P&&(x=w)},C=()=>{x=v-1,x<w&&(x=P)};switch(m.key){case"Home":x=w;break;case"End":x=P;break;case"ArrowRight":o==="horizontal"&&(h?j():C());break;case"ArrowDown":o==="vertical"&&j();break;case"ArrowLeft":o==="horizontal"&&(h?C():j());break;case"ArrowUp":o==="vertical"&&C();break}const V=x%p;(A=y[V].ref.current)==null||A.focus()});return a.jsx(jh,{scope:s,disabled:n,direction:i,orientation:o,children:a.jsx(Ls.Slot,{scope:s,children:a.jsx($e.div,{...r,"data-orientation":o,ref:c,onKeyDown:n?void 0:f})})})}),at="AccordionItem",[Th,Fs]=pt(at),eo=O.forwardRef((e,t)=>{const{__scopeAccordion:s,value:n,...i}=e,o=gt(at,s),r=xh(at,s),l=Is(s),c=hi(),u=n&&r.value.includes(n)||!1,d=o.disabled||e.disabled;return a.jsx(Th,{scope:s,open:u,disabled:d,triggerId:c,children:a.jsx(hh,{"data-orientation":o.orientation,"data-state":oo(u),...l,...i,ref:t,disabled:d,open:u,onOpenChange:h=>{h?r.onItemOpen(n):r.onItemClose(n)}})})});eo.displayName=at;var to="AccordionHeader",so=O.forwardRef((e,t)=>{const{__scopeAccordion:s,...n}=e,i=gt(H,s),o=Fs(to,s);return a.jsx($e.h3,{"data-orientation":i.orientation,"data-state":oo(o.open),"data-disabled":o.disabled?"":void 0,...n,ref:t})});so.displayName=to;var Xt="AccordionTrigger",no=O.forwardRef((e,t)=>{const{__scopeAccordion:s,...n}=e,i=gt(H,s),o=Fs(Xt,s),r=vh(Xt,s),l=Is(s);return a.jsx(Ls.ItemSlot,{scope:s,children:a.jsx(fh,{"aria-disabled":o.open&&!r.collapsible||void 0,"data-orientation":i.orientation,id:o.triggerId,...l,...n,ref:t})})});no.displayName=Xt;var io="AccordionContent",ro=O.forwardRef((e,t)=>{const{__scopeAccordion:s,...n}=e,i=gt(H,s),o=Fs(io,s),r=Is(s);return a.jsx(mh,{role:"region","aria-labelledby":o.triggerId,"data-orientation":i.orientation,...r,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});ro.displayName=io;function oo(e){return e?"open":"closed"}var Ah=Xr,Ph=eo,Ch=so,ao=no,lo=ro;const Sh=Ah,co=b.forwardRef(({className:e,...t},s)=>a.jsx(Ph,{ref:s,className:lt("border-b",e),...t}));co.displayName="AccordionItem";const uo=b.forwardRef(({className:e,children:t,...s},n)=>a.jsx(Ch,{className:"flex",children:a.jsxs(ao,{ref:n,className:lt("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",e),...s,children:[t,a.jsx(Fo,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));uo.displayName=ao.displayName;const ho=b.forwardRef(({className:e,children:t,...s},n)=>a.jsx(lo,{ref:n,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...s,children:a.jsx("div",{className:lt("pb-4 pt-0",e),children:t})}));ho.displayName=lo.displayName;const Nh=()=>{const{data:{faq_lists:e}}=G().props;return a.jsxs("section",{id:"faq",className:"container py-24 sm:py-32",children:[a.jsxs("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:["Frequently Asked"," ",a.jsx("span",{className:"bg-gradient-to-b from-primary/60 to-primary text-transparent bg-clip-text",children:"Questions"})]}),a.jsx(Sh,{type:"single",collapsible:!0,className:"w-full AccordionRoot",children:e.map(({question:t,answer:s,value:n})=>a.jsxs(co,{value:n,children:[a.jsx(uo,{className:"text-left",children:t}),a.jsx(ho,{children:s})]},n))}),a.jsxs("h3",{className:"font-medium mt-4",children:["Still have questions?"," ",a.jsx("a",{rel:"noreferrer noopener",href:"#",className:"text-primary transition-all border-primary hover:border-b-2",children:"Contact us"})]})]})},Mh=()=>{const{appName:e}=G().props;return a.jsxs("footer",{id:"footer",children:[a.jsx("hr",{className:"w-11/12 mx-auto"}),a.jsxs("section",{className:"container py-20 grid grid-cols-2 md:grid-cols-4 xl:grid-cols-6 gap-x-12 gap-y-8",children:[a.jsx("div",{className:"col-span-full xl:col-span-2",children:a.jsxs("a",{rel:"noreferrer noopener",href:"/",className:"font-bold text-xl flex",children:[a.jsx(ri,{}),e]})}),a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx("h3",{className:"font-bold text-lg",children:"Follow US"}),a.jsx("div",{children:a.jsx("a",{rel:"noreferrer noopener",href:"#",className:"opacity-60 hover:opacity-100",children:"Github"})}),a.jsx("div",{children:a.jsx("a",{rel:"noreferrer noopener",href:"#",className:"opacity-60 hover:opacity-100",children:"Twitter"})}),a.jsx("div",{children:a.jsx("a",{rel:"noreferrer noopener",href:"#",className:"opacity-60 hover:opacity-100",children:"Dribbble"})})]}),a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx("h3",{className:"font-bold text-lg",children:"Platforms"}),a.jsx("div",{children:a.jsx("a",{rel:"noreferrer noopener",href:"#",className:"opacity-60 hover:opacity-100",children:"Web"})}),a.jsx("div",{children:a.jsx("a",{rel:"noreferrer noopener",href:"#",className:"opacity-60 hover:opacity-100",children:"Mobile"})}),a.jsx("div",{children:a.jsx("a",{rel:"noreferrer noopener",href:"#",className:"opacity-60 hover:opacity-100",children:"Desktop"})})]}),a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx("h3",{className:"font-bold text-lg",children:"About"}),a.jsx("div",{children:a.jsx("a",{rel:"noreferrer noopener",href:"#",className:"opacity-60 hover:opacity-100",children:"Features"})}),a.jsx("div",{children:a.jsx("a",{rel:"noreferrer noopener",href:"#",className:"opacity-60 hover:opacity-100",children:"Pricing"})}),a.jsx("div",{children:a.jsx("a",{rel:"noreferrer noopener",href:"#",className:"opacity-60 hover:opacity-100",children:"FAQ"})})]}),a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx("h3",{className:"font-bold text-lg",children:"Community"}),a.jsx("div",{children:a.jsx("a",{rel:"noreferrer noopener",href:"https://www.youtube.com/@SIDOEL-APP",className:"opacity-60 hover:opacity-100",children:"Youtube"})}),a.jsx("div",{children:a.jsx("a",{rel:"noreferrer noopener",href:"#",className:"opacity-60 hover:opacity-100",children:"Discord"})}),a.jsx("div",{children:a.jsx("a",{rel:"noreferrer noopener",href:"#",className:"opacity-60 hover:opacity-100",children:"Twitch"})})]})]}),a.jsx("section",{className:"container pb-14 text-center",children:a.jsxs("h3",{children:["© Aplikasi digitalisasi sekolah by"," ",a.jsx("a",{rel:"noreferrer noopener",target:"_blank",href:"https://wa.me/6285692030505",className:"text-primary transition-all border-primary hover:border-b-2",children:"Sidoel App"})]})})]})},Vh=()=>{const[e,t]=b.useState(!1);b.useEffect(()=>{window.addEventListener("scroll",()=>{window.scrollY>400?t(!0):t(!1)})},[]);const s=()=>{window.scroll({top:0,left:0})};return a.jsx(a.Fragment,{children:e&&a.jsx(we,{onClick:s,className:"fixed bottom-4 right-4 opacity-90 shadow-md",size:"icon",children:a.jsx(Uo,{className:"h-4 w-4"})})})};function Dh(){return a.jsxs(a.Fragment,{children:[a.jsx(mo,{title:"LandingPage"}),a.jsx(da,{}),a.jsx(Kd,{}),a.jsx(Gd,{}),a.jsx(eh,{}),a.jsx(sh,{}),a.jsx(nh,{}),a.jsx(ih,{}),a.jsx(rh,{}),a.jsx(oh,{}),a.jsx(ah,{}),a.jsx(lh,{}),a.jsx(Nh,{}),a.jsx(Mh,{}),a.jsx(Vh,{})]})}Dh.layout=e=>a.jsx(ua,{children:e});export{Dh as default};
