PageSourceSearch

https://billsonchain.io/_next/static/chunks/0~.k~~2el0fva.js

js billsonchain.io collected 2026-10-08 01:33:21 UTC 179,272 bytes, 21 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31713,t=>{"use strict";let e,i,s;var r,n=t.i(43476),o=t.i(71645),a=t.i(22016);let l=({active:t})=>{let e="0x3f2a9b0c7e2d4",[i,s]=(0,o.useState)(e);return(0,o.useEffect)(()=>{if(!t)return void s(e);let i=0,r=setInterval(()=>{let t="";for(let s=0;s<e.length;s++)s<i?t+=e[s]:t+="0123456789abcdef"[Math.floor(16*Math.random())];s(t),Math.random()>.7&&i<e.length&&i++},45);return()=>clearInterval(r)},[t]),(0,n.jsx)("span",{children:i})},d=()=>{let t=(0,o.useRef)(null),e=(0,o.useRef)(null),[i,s]=(0,o.useState)(0),[r,a]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=new IntersectionObserver(([t])=>{a(t.isIntersecting)},{threshold:.3});return t.current&&e.observe(t.current),()=>e.disconnect()},[]),(0,o.useEffect)(()=>{let t;if(!r)return void s(0);let e=null,i=r=>{e||(e=r);let n=(r-e)%13e3;n<1e4?s(n/1e4*10.5):s(10.5),t=requestAnimationFrame(i)};return t=requestAnimationFrame(i),()=>{cancelAnimationFrame(t)}},[r]),(0,o.useEffect)(()=>{let t=()=>{if(!e.current)return;let t=e.current.parentElement;if(t){let i=.9*Math.min(t.clientWidth/1080,t.clientHeight/1080);e.current.style.transform=`scale(${i})`}};window.addEventListener("resize",t);let i=setTimeout(t,50);return t(),()=>{window.removeEventListener("resize",t),clearTimeout(i)}},[]);let d=i<.4?i/.4:i<1.4?1:Math.max(0,1-(i-1.4)/.3*.7),h=Math.min(1,Math.max(0,(i-1.4)/.4)),u=Math.min(1,Math.max(0,(i-2.8)/.4)),c=Math.max(0,1-Math.max(0,i-4.2)/.3),p=Math.min(1,Math.max(0,(i-2.8)/.2)),m=Math.min(1,Math.max(0,(i-2.9)/.2)),f=Math.min(1,Math.max(0,(i-3)/.2)),x=Math.min(1,Math.max(0,(i-(2.8+.3))/.2)),g=Math.min(1,Math.max(0,(i-4.2)/.2)),y=Math.min(1,Math.max(0,(i-5.6)/.4)),v=Math.min(1,Math.max(0,(i-5.6)/.3)),b=Math.max(0,1-Math.max(0,i-7)/.3),w=i>=5.85,j=i>=6,A=i>=6.35,E=Math.min(1,Math.max(0,(i-6)/.3))*b,S=Math.min(1,Math.max(0,(i-7)/.3)),T=Math.min(1,Math.max(0,(i-8.4)/.4)),k=Math.max(0,1-Math.max(0,i-8.4)/.3),C=.7+.3*S+.2*T,F=-100*T,P=Math.min(1,Math.max(0,(i-8.8)/.4)),M=[0,1,2,3,4].map(t=>Math.min(1,Math.max(0,(i-(9.2+.12*t))/.4))),D=[{title:"Invoice Lifecycle",desc:"A standard digital invoice represents the starting point of the transaction flow."},{title:"Smart Capture",desc:"Optical character recognition and machine learning instantly digitize the receipt."},{title:"Data Verification",desc:"Key vendor and transaction details are extracted and validated."},{title:"Zero-Knowledge Hash",desc:"For ultimate privacy, the parsed data is condensed into a secure cryptographic hash."},{title:"On-Chain Commitment",desc:"The unique hash is securely anchored to a decentralized block forming an immutable record."},{title:"Verified On-Chain Record",desc:"Your verified bill is recorded immutably on-chain as proof of the transaction."},{title:"IDLE Token Rewards",desc:"For verifying the transaction, IDLE tokens drop directly into your secure wallet."}],N=i<1.4?0:i<2.8?1:i<4.2?2:i<5.6?3:i<7?4:i<8.4?5:6;return D[N],(0,n.jsxs)("div",{ref:t,style:{minHeight:"600px",position:"relative",overflow:"hidden"},className:"h-auto md:h-[600px]",children:[(0,n.jsx)("style",{dangerouslySetInnerHTML:{__html:`
2        @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');
3        .pot-canvas * { box-sizing: border-box; }
4        .pot-float { animation: pot-float 3s ease-in-out infinite; }
5        .pot-float-record { animation: pot-float-8px 4s ease-in-out infinite; }
6        @keyframes pot-float {
7            0%, 100% { transform: translateY(0); }
8            50% { transform: translateY(-4px); }
9        }
10        @keyframes pot-float-8px {
11            0%, 100% { transform: translateY(0); }
12            50% { transform: translateY(-8px); }
13        }
14        .pot-block-light {
15            animation: pot-pulse-glow 2s infinite alternate;
16        }
17        @keyframes pot-pulse-glow {
18            from { box-shadow: 0 0 20px rgba(26,54,38,0.1), 10px 20px 40px rgba(0,0,0,0.05); }
19            to { box-shadow: 0 0 40px rgba(26,54,38,0.3), 10px 20px 40px rgba(0,0,0,0.05); }
20        }
21      `}}),(0,n.jsx)("div",{style:{width:"100%",height:"100%",backgroundColor:"#FFFFFF",fontFamily:'"Mona Sans", "Helvetica Neue", Helvetica, Arial, sans-serif'},children:(0,n.jsxs)("div",{className:"flex flex-col md:flex-row w-full max-w-[1100px] h-full items-center mx-auto",children:[(0,n.jsxs)("div",{className:"w-full md:w-1/2 px-4 sm:px-6 md:pr-8 md:pl-10 z-10 flex flex-col justify-center pt-10 pb-2 md:py-0 md:h-[600px]",children:[(0,n.jsxs)("div",{style:{fontSize:13,fontWeight:600,color:"#1A3626",letterSpacing:"3px",textTransform:"uppercase",marginBottom:32,display:"flex",alignItems:"center",gap:12},children:[(0,n.jsx)("span",{style:{width:32,height:1,backgroundColor:"#1A3626"}}),"Transaction Flow"]}),(0,n.jsx)("div",{className:"relative w-full h-[160px] md:h-[240px]",children:D.map((t,e)=>{let i=0;return N<e&&(i=30),N>e&&(i=-30),(0,n.jsxs)("div",{style:{position:"absolute",top:0,left:0,opacity:+(N===e),transition:"all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1)",transform:`translateY(${i}px)`,pointerEvents:N===e?"auto":"none",width:"100%"},children:[(0,n.jsx)("h3",{style:{fontSize:"clamp(1.8rem, 5vw, 4rem)",fontWeight:500,color:"#1A1A1A",lineHeight:1.1,marginBottom:24,letterSpacing:"-2px"},children:t.title}),(0,n.jsx)("p",{style:{fontSize:"clamp(0.9rem, 1.5vw, 1.25rem)",color:"#7A857D",lineHeight:1.6,maxWidth:460},children:t.desc})]},e)})})]}),(0,n.jsx)("div",{className:"w-full md:w-1/2 relative h-[360px] sm:h-[480px] md:h-full flex items-center justify-center p-4",children:(0,n.jsxs)("div",{className:"pot-canvas",ref:e,style:{width:1080,height:1080,position:"relative",transformOrigin:"center center"},children:[(0,n.jsx)("div",{style:{position:"absolute",inset:0,borderRadius:60,border:"1px solid #E5EBE6",opacity:1,backgroundColor:"#FAFAFA"}}),i<4.2&&(0,n.jsx)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:`translate(-50%, calc(-50% + ${i<.4?100*(1-i/.4):0}px))`,opacity:i>=2.8?0:d,zIndex:10},children:(0,n.jsxs)("div",{className:"pot-float",style:{width:440,height:620,backgroundColor:"#FFFFFF",borderRadius:24,boxShadow:"0 40px 80px -20px rgba(0,0,0,0.08), 0 0 0 1px #E5EBE6",padding:48,position:"relative"},children:[(0,n.jsx)("div",{style:{width:64,height:64,borderRadius:"50%",backgroundColor:"#FAFAFA",border:"1px solid #E5EBE6",margin:"0 auto 32px",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,n.jsx)("div",{style:{width:24,height:24,borderRadius:"50%",backgroundColor:"#1A3626"}})}),(0,n.jsx)("div",{style:{textAlign:"center",fontSize:14,fontWeight:600,color:"#7A857D",marginBottom:8,letterSpacing:"2px",textTransform:"uppercase"},children:"Invoice"}),(0,n.jsx)("div",{style:{textAlign:"center",fontSize:48,fontWeight:500,color:"#1A1A1A",marginBottom:48,letterSpacing:"-1px"},children:"$1,250.00"}),(0,n.jsxs)("div",{style:{padding:"0",marginBottom:40,fontFamily:'"Mona Sans", "Helvetica Neue", Helvetica, Arial, sans-serif'},children:[(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:16,fontSize:15,color:"#7A857D",fontWeight:500},children:[(0,n.jsx)("span",{children:"Wagyu Tomahawk"}),(0,n.jsx)("span",{style:{color:"#1A1A1A"},children:"$450.00"})]}),(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:16,fontSize:15,color:"#7A857D",fontWeight:500},children:[(0,n.jsx)("span",{children:"Truffle Pasta"}),(0,n.jsx)("span",{style:{color:"#1A1A1A"},children:"$100.00"})]}),(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:16,fontSize:15,color:"#7A857D",fontWeight:500},children:[(0,n.jsx)("span",{children:"1990 Vintage Wine"}),(0,n.jsx)("span",{style:{color:"#1A1A1A"},children:"$500.00"})]}),(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:16,fontSize:15,color:"#7A857D",fontWeight:500},children:[(0,n.jsx)("span",{children:"Caviar Service"}),(0,n.jsx)("span",{style:{color:"#1A1A1A"},children:"$200.00"})]})]}),(0,n.jsx)("div",{style:{borderBottom:"1px solid #E5EBE6",margin:"0 0 32px 0"}}),(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,n.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"#7A857D",textTransform:"uppercase",letterSpacing:"1px"},children:"Total"}),(0,n.jsx)("div",{style:{fontSize:24,fontWeight:600,color:"#1A3626"},children:"$1,250.00"})]})]})}),i>=1.4&&i<5.6&&(0,n.jsx)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:`translate(calc(-50% + ${-200*u}px), calc(-50% + ${(1-h)*100}px))`,opacity:i<1.4?0:h*c,zIndex:20},children:(0,n.jsxs)("div",{style:{width:440,height:900,backgroundColor:"#1E1E20",borderRadius:68,padding:14,boxShadow:"0 40px 80px rgba(0,0,0,0.3), inset 0 0 0 2px #4D4D50, inset 0 0 20px rgba(255,255,255,0.1)",position:"relative"},children:[(0,n.jsx)("div",{style:{position:"absolute",top:160,left:-4,width:4,height:30,backgroundColor:"#2C2C2E",borderRadius:"4px 0 0 4px"}}),(0,n.jsx)("div",{style:{position:"absolute",top:220,left:-4,width:4,height:60,backgroundColor:"#2C2C2E",borderRadius:"4px 0 0 4px"}}),(0,n.jsx)("div",{style:{position:"absolute",top:300,left:-4,width:4,height:60,backgroundColor:"#2C2C2E",borderRadius:"4px 0 0 4px"}}),(0,n.jsx)("div",{style:{position:"absolute",top:240,right:-4,width:4,height:90,backgroundColor:"#2C2C2E",borderRadius:"0 4px 4px 0"}}),(0,n.jsxs)("div",{style:{width:"100%",height:"100%",backgroundColor:"#000",borderRadius:54,overflow:"hidden",position:"relative"},children:[(0,n.jsxs)("div",{style:{position:"absolute",top:12,left:"50%",transform:"translateX(-50%)",width:126,height:36,backgroundColor:"#000",borderRadius:20,zIndex:100,boxShadow:"0 0 0 1.5px rgba(255,255,255,0.08)"},children:[(0,n.jsx)("div",{style:{position:"absolute",right:12,top:"50%",transform:"translateY(-50%)",width:12,height:12,borderRadius:"50%",background:"radial-gradient(circle, #0e1e40 0%, #000 80%)",boxShadow:"inset 0 0 2px rgba(255,255,255,0.3)"}}),(0,n.jsx)("div",{style:{position:"absolute",right:28,top:"50%",transform:"translateY(-50%)",width:8,height:8,borderRadius:"50%",background:"#0e0e0e"}}),(0,n.jsx)("div",{style:{position:"absolute",left:16,top:"50%",transform:"translateY(-50%)",width:4,height:4,borderRadius:"50%",background:"#222"}})]}),(0,n.jsxs)("div",{style:{width:"100%",height:"100%",backgroundColor:"#111318",position:"relative"},children:[(0,n.jsx)("div",{style:{transform:"scale(0.55) translate(-50%, -50%)",transformOrigin:"top left",position:"absolute",top:"50%",left:"50%",opacity:i>=2.8?Math.max(0,1-(i-2.8)/.2):1,transition:"filter 0.3s ease",filter:i<2.2?"blur(8px)":"blur(0px)"},children:(0,n.jsxs)("div",{style:{width:440,height:620,backgroundColor:"#FFFFFF",borderRadius:24,boxShadow:"0 40px 80px -20px rgba(0,0,0,0.08), 0 0 0 1px #E5EBE6",padding:48,position:"relative"},children:[(0,n.jsx)("div",{style:{width:64,height:64,borderRadius:"50%",backgroundColor:"#FAFAFA",border:"1px solid #E5EBE6",margin:"0 auto 32px",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,n.jsx)("div",{style:{width:24,height:24,borderRadius:"50%",backgroundColor:"#1A3626"}})}),(0,n.jsx)("div",{style:{textAlign:"center",fontSize:14,fontWeight:600,color:"#7A857D",marginBottom:8,letterSpacing:"2px",textTransform:"uppercase"},children:"Invoice"}),(0,n.jsx)("div",{style:{textAlign:"center",fontSize:48,fontWeight:500,color:"#1A1A1A",marginBottom:48,letterSpacing:"-1px"},children:"$1,250.00"}),(0,n.jsxs)("div",{style:{padding:"0",marginBottom:40,fontFamily:'"Mona Sans", "Helvetica Neue", Helvetica, Arial, sans-serif'},children:[(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:16,fontSize:15,color:"#7A857D",fontWeight:500},children:[(0,n.jsx)("span",{children:"Wagyu Tomahawk"}),(0,n.jsx)("span",{style:{color:"#1A1A1A"},children:"$450.00"})]}),(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:16,fontSize:15,color:"#7A857D",fontWeight:500},children:[(0,n.jsx)("span",{children:"Truffle Pasta"}),(0,n.jsx)("span",{style:{color:"#1A1A1A"},children:"$100.00"})]}),(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:16,fontSize:15,color:"#7A857D",fontWeight:500},children:[(0,n.jsx)("span",{children:"1990 Vintage Wine"}),(0,n.jsx)("span",{style:{color:"#1A1A1A"},children:"$500.00"})]}),(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:16,fontSize:15,color:"#7A857D",fontWeight:500},children:[(0,n.jsx)("span",{children:"Caviar Service"}),(0,n.jsx)("span",{style:{color:"#1A1A1A"},children:"$200.00"})]})]}),(0,n.jsx)("div",{style:{borderBottom:"1px solid #E5EBE6",margin:"0 0 32px 0"}}),(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,n.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"#7A857D",textTransform:"uppercase",letterSpacing:"1px"},children:"Total"}),(0,n.jsx)("div",{style:{fontSize:24,fontWeight:600,color:"#1A3626"},children:"$1,250.00"})]})]})}),i<2.45&&(0,n.jsxs)("div",{style:{position:"absolute",inset:0,zIndex:10,fontFamily:'"Mona Sans", "Helvetica Neue", Helvetica, Arial, sans-serif'},children:[(0,n.jsx)("div",{style:{position:"absolute",top:60,left:24,width:24,height:24,border:"1px solid #E8ECE9",borderRadius:"50%",opacity:.8}}),(0,n.jsx)("div",{style:{position:"absolute",top:60,right:24,width:24,height:24,backgroundColor:"#FFD60A",borderRadius:"50%"}}),(0,n.jsx)("div",{style:{position:"absolute",left:"33.33%",top:"15%",bottom:"25%",width:1,backgroundColor:"rgba(255,255,255,0.15)"}}),(0,n.jsx)("div",{style:{position:"absolute",right:"33.33%",top:"15%",bottom:"25%",width:1,backgroundColor:"rgba(255,255,255,0.15)"}}),(0,n.jsx)("div",{style:{position:"absolute",top:"33.33%",left:0,right:0,height:1,backgroundColor:"rgba(255,255,255,0.15)"}}),(0,n.jsx)("div",{style:{position:"absolute",bottom:"40%",left:0,right:0,height:1,backgroundColor:"rgba(255,255,255,0.15)"}}),(0,n.jsxs)("div",{style:{position:"absolute",top:"48%",left:"50%",transform:`translate(-50%, -50%) scale(${i>=2.2?1:1.1})`,width:260,height:380,opacity:i>=2.2?1:.4,transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"},children:[(0,n.jsx)("div",{style:{position:"absolute",top:0,left:0,width:24,height:24,borderTop:"3px solid #FFD60A",borderLeft:"3px solid #FFD60A"}}),(0,n.jsx)("div",{style:{position:"absolute",top:0,right:0,width:24,height:24,borderTop:"3px solid #FFD60A",borderRight:"3px solid #FFD60A"}}),(0,n.jsx)("div",{style:{position:"absolute",bottom:0,left:0,width:24,height:24,borderBottom:"3px solid #FFD60A",borderLeft:"3px solid #FFD60A"}}),(0,n.jsx)("div",{style:{position:"absolute",bottom:0,right:0,width:24,height:24,borderBottom:"3px solid #FFD60A",borderRight:"3px solid #FFD60A"}})]}),(0,n.jsxs)("div",{style:{position:"absolute",bottom:140,width:"100%",textAlign:"center",color:"#FFD60A",fontSize:13,fontWeight:700,letterSpacing:"1px"},children:["SLO-MO ",(0,n.jsx)("span",{style:{display:"inline-block",margin:"0 16px",color:"white"},children:"PHOTO"})," PORTRAIT"]}),(0,n.jsx)("div",{style:{position:"absolute",bottom:40,left:"50%",transform:"translateX(-50%)",width:70,height:70,borderRadius:"50%",border:"4px solid white",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,n.jsx)("div",{style:{width:i>=2.3&&i<2.45?46:56,height:i>=2.3&&i<2.45?46:56,backgroundColor:"white",borderRadius:"50%",transition:"all 0.1s cubic-bezier(0.4, 0, 0.2, 1)"}})})]}),i>=2.4&&i<2.45&&(0,n.jsx)("div",{style:{position:"absolute",inset:0,backgroundColor:"#000",zIndex:20}}),(0,n.jsx)("div",{style:{position:"absolute",inset:0,backgroundColor:"#fff",opacity:i>=2.4&&i<2.55?1-(i-2.4)/.15:0,zIndex:15}}),(0,n.jsx)("div",{style:{position:"absolute",inset:0,background:"linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 40%, transparent 60%, rgba(255,255,255,0.03) 100%)",pointerEvents:"none",zIndex:50,borderRadius:54}})]})]})]})}),i>=2.8&&i<7&&(0,n.jsxs)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:30,pointerEvents:"none"},children:[(0,n.jsxs)("div",{style:{position:"absolute",top:"calc(50% - 150px)",left:"50%",transform:`translate(${120*(p>0)}px, calc(-50% + ${150*g}px)) scale(${1-.5*g})`,opacity:p*(1-g),width:240,padding:"16px 24px",backgroundColor:"#FFFFFF",borderRadius:100,border:"1px solid #E5EBE6"
21,boxShadow:"0 8px 16px rgba(0,0,0,0.03)",fontFamily:'"Mona Sans", "Helvetica Neue", Helvetica, Arial, sans-serif',transition:"none",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,n.jsx)("div",{style:{fontSize:12,fontWeight:600,color:"#7A857D",textTransform:"uppercase",letterSpacing:"1px"},children:"Name"}),(0,n.jsx)("div",{style:{fontSize:16,color:"#1A1A1A",fontWeight:500},children:"John Doe"})]}),(0,n.jsxs)("div",{style:{position:"absolute",top:"calc(50% - 70px)",left:"50%",transform:`translate(${120*(m>0)}px, calc(-50% + ${70*g}px)) scale(${1-.5*g})`,opacity:m*(1-g),width:240,padding:"16px 24px",backgroundColor:"#FFFFFF",borderRadius:100,border:"1px solid #E5EBE6",boxShadow:"0 8px 16px rgba(0,0,0,0.03)",fontFamily:'"Mona Sans", "Helvetica Neue", Helvetica, Arial, sans-serif',transition:"none",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,n.jsx)("div",{style:{fontSize:12,fontWeight:600,color:"#7A857D",textTransform:"uppercase",letterSpacing:"1px"},children:"Vendor"}),(0,n.jsx)("div",{style:{fontSize:16,color:"#1A1A1A",fontWeight:500},children:"Gastronomy"})]}),(0,n.jsxs)("div",{style:{position:"absolute",top:"calc(50% + 10px)",left:"50%",transform:`translate(${120*(f>0)}px, calc(-50% + ${-10*g}px)) scale(${1-.5*g})`,opacity:f*(1-g),width:240,padding:"16px 24px",backgroundColor:"#FFFFFF",borderRadius:100,border:"1px solid #E5EBE6",boxShadow:"0 8px 16px rgba(0,0,0,0.03)",fontFamily:'"Mona Sans", "Helvetica Neue", Helvetica, Arial, sans-serif',transition:"none",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,n.jsx)("div",{style:{fontSize:12,fontWeight:600,color:"#7A857D",textTransform:"uppercase",letterSpacing:"1px"},children:"Category"}),(0,n.jsx)("div",{style:{fontSize:16,color:"#1A1A1A",fontWeight:500},children:"Fine Dining"})]}),(0,n.jsxs)("div",{style:{position:"absolute",top:"calc(50% + 90px)",left:"50%",transform:`translate(${120*(x>0)}px, calc(-50% + ${-90*g}px)) scale(${1-.5*g})`,opacity:x*(1-g),width:240,padding:"16px 24px",backgroundColor:"#FFFFFF",borderRadius:100,border:"1px solid #E5EBE6",boxShadow:"0 8px 16px rgba(0,0,0,0.03)",fontFamily:'"Mona Sans", "Helvetica Neue", Helvetica, Arial, sans-serif',transition:"none",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,n.jsx)("div",{style:{fontSize:12,fontWeight:600,color:"#7A857D",textTransform:"uppercase",letterSpacing:"1px"},children:"Amount"}),(0,n.jsx)("div",{style:{fontSize:16,color:"#1A1A1A",fontWeight:500},children:"$1,250.00"})]}),(0,n.jsx)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:`translate(calc(-50% + 120px), -50%) scale(${1+2*g})`,opacity:g>0&&g<1?1-g:0,width:260,height:260,borderRadius:"50%",border:"2px solid #1A3626",zIndex:1}}),(0,n.jsxs)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:`translate(calc(-50% + ${120*(g>0)}px), calc(-50% + ${120*y}px)) scale(${g<1?.8+.2*g:1-Math.pow(y,.8)})`,opacity:g*(1-y),width:440,backgroundColor:"#FFFFFF",borderRadius:24,border:"1px solid #E5EBE6",boxShadow:"0 20px 40px -10px rgba(0,0,0,0.05)",fontFamily:"'JetBrains Mono', monospace",display:"flex",flexDirection:"column",overflow:"hidden",zIndex:40},children:[(0,n.jsx)("div",{style:{background:"#FAFAFA",padding:"16px 24px",borderBottom:"1px solid #E5EBE6",display:"flex",justifyContent:"space-between",alignItems:"center"},children:(0,n.jsx)("div",{style:{color:"#7A857D",fontSize:12,fontWeight:600,letterSpacing:"1px"},children:"SHA-256 GENERATOR"})}),(0,n.jsxs)("div",{style:{display:"flex",padding:24,gap:20},children:[(0,n.jsxs)("div",{style:{flex:1,borderRight:"1px solid #E5EBE6",paddingRight:20},children:[(0,n.jsx)("div",{style:{fontSize:10,color:"#7A857D",marginBottom:12,fontWeight:600,letterSpacing:"1px"},children:"RAW TRACE"}),(0,n.jsxs)("div",{style:{color:"#1A1A1A",fontSize:10,lineHeight:"1.6"},children:["01101010 011",(0,n.jsx)("br",{}),"01101110 001",(0,n.jsx)("br",{}),"01101111 011",(0,n.jsx)("br",{}),"00100100 001",(0,n.jsx)("br",{}),"V=GAS_901"]})]}),(0,n.jsx)("div",{style:{flex:1.5,display:"flex",flexDirection:"column",justifyContent:"center"},children:(0,n.jsx)("div",{style:{color:"#1A3626",fontSize:18,wordBreak:"break-all",fontWeight:600,letterSpacing:"1px"},children:(0,n.jsx)(l,{active:i>=4.3&&i<5.4})})})]})]})]}),i>=5.6&&i<8.4&&(0,n.jsxs)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",opacity:v*b,width:800,height:400,zIndex:35,perspective:1500},children:[(0,n.jsxs)("div",{style:{position:"absolute",inset:0,pointerEvents:"none",zIndex:5},children:[(0,n.jsxs)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(calc(-50% - 140px), -50%) rotateX(15deg) rotateY(-20deg)",transformStyle:"preserve-3d",width:100,height:24,transition:"all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1)"},children:[(0,n.jsx)("div",{style:{position:"absolute",left:0,top:-12,width:100,height:24,transform:"rotateX(90deg)",background:j?"#FFFFFF":"#FAFAFA",border:"1px solid #E5EBE6"}}),(0,n.jsx)("div",{style:{position:"absolute",left:0,top:0,width:100,height:24,transform:"translateZ(12px)",background:j?"linear-gradient(90deg, #FFFFFF, #E8ECE9)":"#FAFAFA",border:"1px solid #E5EBE6"}})]}),(0,n.jsxs)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(calc(-50% + 140px), -50%) rotateX(15deg) rotateY(-20deg)",transformStyle:"preserve-3d",width:100,height:24,transition:"all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1)"},children:[(0,n.jsx)("div",{style:{position:"absolute",left:0,top:-12,width:100,height:24,transform:"rotateX(90deg)",background:A?"#FFFFFF":"#FAFAFA",border:"1px solid #E5EBE6"}}),(0,n.jsx)("div",{style:{position:"absolute",left:0,top:0,width:100,height:24,transform:"translateZ(12px)",background:A?"linear-gradient(90deg, #E8ECE9, #FFFFFF)":"#FAFAFA",border:"1px solid #E5EBE6"}})]})]}),(0,n.jsx)("div",{style:{position:"absolute",inset:0,pointerEvents:"none"},children:[1,2,3].map(t=>{let e=1===t?w:2===t?j:A,i=1===t?-280:280*(2!==t);return(0,n.jsxs)("div",{className:e?"pot-block-light":"",style:{position:"absolute",top:"50%",left:"50%",transform:`translate(calc(-50% + ${i}px), -50%) rotateX(15deg) rotateY(-20deg)`,transformStyle:"preserve-3d",width:180,height:180,transition:"all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1)",zIndex:2===t?20:10},children:[(0,n.jsx)("div",{style:{position:"absolute",left:0,top:-30,width:180,height:60,transform:"rotateX(90deg)",background:e?"#FFFFFF":"#FAFAFA",border:"1px solid #E5EBE6"}}),(0,n.jsx)("div",{style:{position:"absolute",top:0,left:150,width:60,height:180,transform:"rotateY(90deg)",background:e?"#FFFFFF":"#FAFAFA",border:"1px solid #E5EBE6"}}),(0,n.jsxs)("div",{style:{position:"absolute",top:0,left:0,width:180,height:180,transform:"translateZ(30px)",background:e?"#FFFFFF":"#FAFAFA",borderRadius:24,border:"1px solid #E5EBE6",boxShadow:e?"-10px 20px 40px -10px rgba(0,0,0,0.05)":"none",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[(0,n.jsx)("div",{style:{fontSize:14,color:e?"#7A857D":"#C7C7D0",letterSpacing:"2px",fontWeight:600,textTransform:"uppercase"},children:"Block"}),(0,n.jsxs)("div",{style:{fontSize:48,color:e?"#1A1A1A":"#C7C7D0",fontWeight:500,marginTop:8},children:["#",t]}),e&&(0,n.jsx)("div",{style:{position:"absolute",bottom:24,width:8,height:8,borderRadius:"50%",backgroundColor:"#1A3626"}})]})]},t)})}),(0,n.jsxs)("div",{style:{position:"absolute",top:"100%",left:"50%",transform:`translate(-50%, ${E>0?"40px":"0px"})`,opacity:E,padding:"16px 32px",background:"#FFFFFF",borderRadius:100,border:"1px solid #E5EBE6",boxShadow:"0 20px 40px -10px rgba(0,0,0,0.05)",color:"#1A1A1A",fontSize:18,fontWeight:500,display:"flex",alignItems:"center",gap:12,transition:"all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1)"},children:[(0,n.jsx)("div",{style:{width:24,height:24,borderRadius:"50%",backgroundColor:"#E8ECE9",dis
21play:"flex",alignItems:"center",justifyContent:"center"},children:(0,n.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"#1A3626",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:(0,n.jsx)("polyline",{points:"20 6 9 17 4 12"})})}),"Hash Securely Committed"]})]}),i>=7&&i<=10&&(0,n.jsx)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:`translate(-50%, calc(-50% + ${F}px))`,opacity:S*k,zIndex:50,pointerEvents:0===k?"none":"auto"},children:(0,n.jsx)("div",{style:{transform:`scale(${C})`},children:(0,n.jsxs)("div",{className:"pot-float-record",style:{width:440,height:600,background:"#FFFFFF",borderRadius:24,padding:32,boxShadow:"0 40px 80px -20px rgba(0,0,0,0.08), 0 0 0 1px #E5EBE6",position:"relative",overflow:"hidden"},children:[(0,n.jsx)("div",{style:{height:"50%",background:"#FAFAFA",borderRadius:16,border:"1px solid #E5EBE6",display:"flex",alignItems:"center",justifyContent:"center",perspective:1e3},children:(0,n.jsx)("div",{className:"pot-float",children:(0,n.jsxs)("div",{style:{position:"relative",width:120,height:120,transformStyle:"preserve-3d",transform:`rotateY(${360*i}deg) rotateX(15deg)`},children:[(0,n.jsx)("div",{style:{position:"absolute",inset:0,borderRadius:"50%",background:"#1A3626",transform:"translateZ(-10px) rotateY(180deg)",border:"2px solid #E8ECE9",display:"flex",alignItems:"center",justifyContent:"center"}}),[...Array(20)].map((t,e)=>(0,n.jsx)("div",{style:{position:"absolute",inset:0,borderRadius:"50%",background:e%2==0?"#1A3626":"#1A1A1A",transform:`translateZ(${e-10}px)`}},e)),(0,n.jsx)("div",{style:{position:"absolute",inset:0,borderRadius:"50%",background:"#1A3626",transform:"translateZ(10px)",border:"2px solid #E8ECE9",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,n.jsx)("div",{style:{color:"#FFFFFF",fontSize:48,fontWeight:500},children:"B"})})]})})}),(0,n.jsx)("div",{style:{textAlign:"center",fontFamily:"'JetBrains Mono', monospace",fontSize:24,fontWeight:500,color:"#7A857D",marginTop:40},children:"0x3f2a9b...c7"}),(0,n.jsx)("div",{style:{textAlign:"center",fontSize:32,fontWeight:500,color:"#1A1A1A",marginTop:16,letterSpacing:"-1px"},children:"Verified Truth"}),(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"center",gap:12,marginTop:32},children:[(0,n.jsx)("span",{style:{padding:"8px 24px",border:"1px solid #E5EBE6",borderRadius:100,fontSize:14,fontWeight:600,color:"#7A857D"},children:"ERC-721"}),(0,n.jsx)("span",{style:{padding:"8px 24px",background:"#1A3626",borderRadius:100,fontSize:14,fontWeight:600,color:"#FFFFFF"},children:"MINTED"})]})]})})}),i>=8.4&&i<=10&&(0,n.jsx)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:60,width:"100%",height:"100%",pointerEvents:"none"},children:(0,n.jsxs)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:`translate(-50%, -50%) scale(${.8+.2*T})`,opacity:T,perspective:1500,width:280,height:200,zIndex:60},children:[(0,n.jsx)("div",{style:{position:"absolute",inset:0,background:"#FFFFFF",borderRadius:24,boxShadow:"0 40px 80px -20px rgba(0,0,0,0.08)",border:"1px solid #E5EBE6"}}),(0,n.jsx)("div",{style:{position:"absolute",top:16,left:16,right:16,bottom:16,background:"#FAFAFA",borderRadius:12,border:"1px solid #E5EBE6"}}),M.map((t,e)=>0===t?null:(0,n.jsx)("div",{style:{position:"absolute",top:`calc(50% + ${-400+450*t}px)`,left:"50%",transform:`translateX(-50%) rotateY(${720*t}deg) scale(${t<.2?t/.2:t>.9?(1-t)*10:1})`,width:48,height:48,borderRadius:"50%",background:"#1A3626",display:"flex",alignItems:"center",justifyContent:"center",color:"#FFFFFF",fontWeight:500,fontSize:24,zIndex:15,opacity:t>.9?0:1},children:"B"},e)),(0,n.jsx)("div",{style:{position:"absolute",top:0,left:0,right:0,height:120,background:"#FFFFFF",borderRadius:"24px 24px 60px 60px",transformOrigin:"top",transform:`rotateX(${160*P}deg)`,zIndex:10,border:"1px solid #E5EBE6",display:"flex",alignItems:"flex-end",justifyContent:"center",paddingBottom:24},children:(0,n.jsx)("div",{style:{width:48,height:48,borderRadius:"50%",background:"#FAFAFA",border:"1px solid #E5EBE6",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,n.jsx)("div",{style:{width:16,height:16,borderRadius:"50%",backgroundColor:"#1A3626"}})})}),(0,n.jsx)("div",{style:{position:"absolute",bottom:0,left:0,right:0,height:120,background:"#FFFFFF",borderRadius:"12px 12px 24px 24px",zIndex:20,borderTop:"1px solid #E5EBE6",borderLeft:"1px solid #E5EBE6",borderRight:"1px solid #E5EBE6",borderBottom:"1px solid #E5EBE6"}}),(0,n.jsxs)("div",{style:{position:"absolute",top:"100%",left:"50%",transform:`translate(-50%, ${30+10*P}px)`,opacity:P,background:"#FFFFFF",padding:"16px 32px",borderRadius:100,boxShadow:"0 20px 40px -10px rgba(0,0,0,0.05)",display:"flex",alignItems:"center",gap:16,border:"1px solid #E5EBE6"},children:[(0,n.jsx)("div",{style:{fontSize:14,color:"#7A857D",fontWeight:600,textTransform:"uppercase",letterSpacing:"1px"},children:"Rewards"}),(0,n.jsxs)("div",{style:{fontSize:24,color:"#1A1A1A",fontWeight:500},children:["+",Math.floor(50*M.reduce((t,e)=>t+ +(e>.5),0))," ",(0,n.jsx)("span",{style:{color:"#1A3626",fontSize:16},children:"IDLE"})]})]})]})})]})})]})})]})},h=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],u=new Set([...h,"pathRotation"]),c=(t,e,
21i)=>i>e?e:i<t?t:i,p={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},m={...p,transform:t=>c(0,1,t)},f={...p,default:1},x=t=>Math.round(1e5*t)/1e5,g=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,y=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,v=(t,e)=>i=>!!("string"==typeof i&&y.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),b=(t,e,i)=>s=>{if("string"!=typeof s)return s;let[r,n,o,a]=s.match(g);return{[t]:parseFloat(r),[e]:parseFloat(n),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},w={...p,transform:t=>Math.round(c(0,255,t))},j={test:v("rgb","red"),parse:b("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+w.transform(t)+", "+w.transform(e)+", "+w.transform(i)+", "+x(m.transform(s))+")"},A={test:v("#"),parse:function(t){let e="",i="",s="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,s+=s,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}},transform:j.transform},E=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),S=E("deg"),T=E("%"),k=E("px"),C=E("vh"),F=E("vw"),P={...T,parse:t=>T.parse(t)/100,transform:t=>T.transform(100*t)},M={test:v("hsl","hue"),parse:b("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+T.transform(x(e))+", "+T.transform(x(i))+", "+x(m.transform(s))+")"},D={test:t=>j.test(t)||A.test(t)||M.test(t),parse:t=>j.test(t)?j.parse(t):M.test(t)?M.parse(t):A.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?j.transform(t):M.transform(t),getAnimatableNone:t=>{let e=D.parse(t);return e.alpha=0,D.transform(e)}},N=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,V="number",R="color",B=/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 I(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},r=[],n=0,o=e.replace(B,t=>(D.test(t)?(s.color.push(n),r.push(R),i.push(D.parse(t))):t.startsWith("var(")?(s.var.push(n),r.push("var"),i.push(t)):(s.number.push(n),r.push(V),i.push(parseFloat(t))),++n,"${}")).split("${}");return{values:i,split:o,indexes:s,types:r}}function L({split:t,types:e}){let i=t.length;return s=>{let r="";for(let n=0;n<i;n++)if(r+=t[n],void 0!==s[n]){let t=e[n];t===V?r+=x(s[n]):t===R?r+=D.transform(s[n]):r+=s[n]}return r}}let z={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(g)?.length||0)+(t.match(N)?.length||0)>0},parse:function(t){return I(t).values},createTransformer:function(t){return L(I(t))},getAnimatableNone:function(t){let e=I(t);return L(e)(e.values.map((t,i)=>((t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof t?0:D.test(t)?D.getAnimatableNone(t):t)(t,e.split[i])))}},O=new Set(["brightness","contrast","saturate","opacity"]);function W(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match(g)||[];if(!s)return t;let r=i.replace(s,""),n=+!!O.has(e);return s!==i&&(n*=100),e+"("+n+r+")"}let $=/\b([a-z-]*)\(.*?\)/gu,U={...z,getAnimatableNone:t=>{let e=t.match($);return e?e.map(W).join(" "):t}},H={...z,getAnimatableNone:t=>{let e=z.parse(t);return z.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},Y={...p,transform:Math.round},_={borderWidth:k,borderTopWidth:k,borderRightWidth:k,borderBottomWidth:k,borderLeftWidth:k,borderRadius:k,borderTopLeftRadius:k,borderTopRightRadius:k,borderBottomRightRadius:k,borderBottomLeftRadius:k,width:k,maxWidth:k,height:k,maxHeight:k,top:k,right:k,bottom:k,left:k,inset:k,insetBlock:k,insetBlockStart:k,insetBlockEnd:k,insetInline:k,insetInlineStart:k,insetInlineEnd:k,padding:k,paddingTop:k,paddingRight:k,paddingBottom:k,paddingLeft:k,paddingBlock:k,paddingBlockStart:k,paddingBlockEnd:k,paddingInline:k,paddingInlineStart:k,paddingInlineEnd:k,margin:k,marginTop:k,marginRight:k,marginBottom:k,marginLeft:k,marginBlock:k,marginBlockStart:k,marginBlockEnd:k,marginInline:k,marginInlineStart:k,marginInlineEnd:k,fontSize:k,backgroundPositionX:k,backgroundPositionY:k,rotate:S,pathRotation:S,rotateX:S,rotateY:S,rotateZ:S,scale:f,scaleX:f,scaleY:f,scaleZ:f,skew:S,skewX:S,skewY:S,distance:k,translateX:k,translateY:k,translateZ:k,x:k,y:k,z:k,perspective:k,transformPerspective:k,opacity:m,originX:P,originY:P,originZ:k,zIndex:Y,fillOpacity:m,strokeOpacity:m,numOctaves:Y}
21,X={..._,color:D,backgroundColor:D,outlineColor:D,fill:D,stroke:D,borderColor:D,borderTopColor:D,borderRightColor:D,borderBottomColor:D,borderLeftColor:D,filter:U,WebkitFilter:U,mask:H,WebkitMask:H},q=t=>X[t],K=()=>({translate:0,scale:1,origin:0,originPoint:0}),G=()=>({x:K(),y:K()}),Z=()=>({min:0,max:0}),J=()=>({x:Z(),y:Z()}),Q=t=>!!(t&&t.getVelocity),tt=new Set(["width","height","top","left","right","bottom",...h]),te=t=>e=>e.test(t),ti=[p,k,T,S,F,C,{test:t=>"auto"===t,parse:t=>t}],ts=t=>ti.find(te(t));var tr=t.i(47167);let tn=()=>{},to=()=>{};tr.default;let ta=t=>e=>"string"==typeof e&&e.startsWith(t),tl=ta("--"),td=ta("var(--"),th=t=>!!td(t)&&tu.test(t.split("/*")[0].trim()),tu=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tc(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let tp=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tm=t=>180*t/Math.PI,tf=t=>tg(tm(Math.atan2(t[1],t[0]))),tx={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:tf,rotateZ:tf,skewX:t=>tm(Math.atan(t[1])),skewY:t=>tm(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tg=t=>((t%=360)<0&&(t+=360),t),ty=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tv=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tb={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ty,scaleY:tv,scale:t=>(ty(t)+tv(t))/2,rotateX:t=>tg(tm(Math.atan2(t[6],t[5]))),rotateY:t=>tg(tm(Math.atan2(-t[2],t[0]))),rotateZ:tf,rotate:tf,skewX:t=>tm(Math.atan(t[4])),skewY:t=>tm(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tw(t){return+!!t.includes("scale")}function tj(t,e){let i,s;if(!t||"none"===t)return tw(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=tb,s=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tx,s=e}if(!s)return tw(e);let n=i[e],o=s[1].split(",").map(tA);return"function"==typeof n?n(o):o[n]}function tA(t){return parseFloat(t.trim())}let tE=t=>t===p||t===k,tS=new Set(["x","y","z"]),tT=h.filter(t=>!tS.has(t)),tk={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:s})=>{let r=t.max-t.min;return"border-box"===s?r:r-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:s})=>{let r=t.max-t.min;return"border-box"===s?r:r-parseFloat(e)-parseFloat(i)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>tj(e,"x"),y:(t,{transform:e})=>tj(e,"y")};tk.translateX=tk.x,tk.translateY=tk.y;let tC=t=>t,tF={},tP=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tM(t,e){let i=!1,s=!0,r={delta:0,timestamp:0,isProcessing:!1},n=()=>i=!0,o=tP.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,s=!1,r=!1,n=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){n.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,r=!1,o=!1)=>{let a=o&&s?e:i;return r&&n.add(t),a.add(t),t},cancel:t=>{i.delete(t),n.delete(t)},process:t=>{if(o=t,s){r=!0;return}s=!0;let n=e;e=i,i=n,e.forEach(a),e.clear(),s=!1,r&&(r=!1,l.process(t))}};return l}(n),t),{}),{setup:a,read:l,resolveKeyframes:d,preUpdate:h,update:u,preRender:c,render:p,postRender:m}=o,f=()=>{let n=tF.useManualTiming,o=n?r.timestamp:performance.now();i=!1,n||(r.delta=s?1e3/60:Math.max(Math.min(o-r.timestamp,40),1)),r.timestamp=o,r.isProcessing=!0,a.process(r),l.process(r),d.process(r),h.process(r),u.process(r),c.process(r),p.process(r),m.process(r),r.isProcessing=!1,i&&e&&(s=!1,t(f))};return{schedule:tP.reduce((e,n)=>{let a=o[n];return e[n]=(e,n=!1,o=!1)=>(!i&&(i=!0,s=!0,r.isProcessing||t(f)),a.schedule(e,n,o)),e},{}),cancel:t=>{for(let e=0;e<tP.length;e++)o[tP[e]].cancel(t)},state:r,steps:o}}let{schedule:tD,cancel:tN,state:tV,steps:tR}=tM("u">typeof requestAnimationFrame?requestAnimationFrame:tC,!0),tB=new Set,tI=!1,tL=!1,tz=!1;function tO(){if(tL){let t=Array.from(tB).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,s=(e=[],tT.forEach(i=>
21{let s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(+!!i.startsWith("scale")))}),e);s.length&&(i.set(t,s),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tL=!1,tI=!1,tB.forEach(t=>t.complete(tz)),tB.clear()}function tW(){tB.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tL=!0)})}class t${constructor(t,e,i,s,r,n=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=r,this.isAsync=n}scheduleResolve(){this.state="scheduled",this.isAsync?(tB.add(this),tI||(tI=!0,tD.read(tW),tD.resolveKeyframes(tO))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;if(null===t[0]){let r=s?.get(),n=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let s=i.readValue(e,n);null!=s&&(t[0]=s)}void 0===t[0]&&(t[0]=n),s&&void 0===r&&s.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tB.delete(this)}cancel(){"scheduled"===this.state&&(tB.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tU=new Set([U,H]);function tH(t,e){let i=q(t);return tU.has(i)||(i=z),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tY=new Set(["auto","none","0"]);class t_ extends t${constructor(t,e,i,s,r){super(t,e,i,s,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let s=t[i];if("string"==typeof s&&th(s=s.trim())){let r=function t(e,i,s=1){to(s<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,n]=function(t){let e=tp.exec(t);if(!e)return[,];let[,i,s,r]=e;return[`--${i??s}`,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let t=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return th(n)?t(n,i,s+1):n}(s,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!tt.has(i)||2!==t.length)return;let[s,r]=t,n=ts(s),o=ts(r);if(tc(s)!==tc(r)&&tk[i]){this.needsMeasurement=!0;return}if(n!==o)if(tE(n)&&tE(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tk[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let s,r=0;for(;r<t.length&&!s;){let e=t[r];"string"==typeof e&&!tY.has(e)&&I(e).values.length&&(s=t[r]),r++}if(s&&i)for(let r of e)t[r]=tH(i,s)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tk[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let s=e[e.length-1];void 0!==s&&t.getValue(i,s).jump(s,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let s=t.getValue(e);s&&s.jump(this.measuredOrigin,!1);let r=i.length-1,n=i[r];i[r]=tk[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==n&&void 0===this.finalKeyframe&&(this.finalKeyframe=n),this.removedTransforms?.length&&this.removedTransforms.forEac
21h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let tX=t=>1e3*t;function tq(t,e){-1===t.indexOf(e)&&t.push(e)}function tK(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class tG{constructor(){this.subscriptions=[]}add(t){return tq(this.subscriptions,t),()=>tK(this.subscriptions,t)}notify(t,e,i){let s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](t,e,i);else for(let r=0;r<s;r++){let s=this.subscriptions[r];s&&s(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tZ(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}function tJ(t){let e;return()=>(void 0===e&&(e=t()),e)}let tQ={};function t0(t,e){let i=tJ(t);return()=>tQ[e]??i()}let t1=t0(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),t2=t=>null!==t;function t5(t,{repeat:e,repeatType:i="loop"},s,r=1){let n=t.filter(t2),o=r<0||e&&"loop"!==i&&e%2==1?0:n.length-1;return o&&void 0!==s?s:n[o]}class t4{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let t6=t=>Array.isArray(t)&&"number"==typeof t[0],t3=t0(()=>{try{document.createElement("div").animate({opacity:0}
21,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),t8=(t,e,i=10)=>{let s="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)s+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},t7=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,t9={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t7([0,.65,.55,1]),circOut:t7([.55,0,1,.45]),backIn:t7([.31,.01,.66,-.59]),backOut:t7([.33,1.53,.69,.99])};function et(t){return"function"==typeof t&&"applyToOptions"in t}class ee extends t4{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:s,pseudoElement:r,allowFlatten:n=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!r,this.allowFlatten=n,this.options=t,to("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return et(t)&&t3()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:s=0,duration:r=300,repeat:n=0,repeatType:o="loop",ease:a="easeOut",times:l}={},d){let h={[e]:i};l&&(h.offset=l);let u=function t(e,i){if(e)return"function"==typeof e?t3()?t8(e,i):"ease-out":t6(e)?t7(e):Array.isArray(e)?e.map(e=>t(e,i)||t9.easeOut):t9[e]}(a,r);Array.isArray(u)&&(h.easing=u);let c={delay:s,duration:r,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:n+1,direction:"reverse"===o?"alternate":"normal"};return d&&(c.pseudoElement=d),t.animate(h,c)}(e,i,s,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=t5(s,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(t),tZ(e,i,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=tX(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:i,observe:s}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&t1())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),tC):s(this)}}let ei=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:es}=tM(queueMicrotask,!1);function er(){e=void 0}let en={now:()=>(void 0===e&&en.set(tV.isProcessing||tF.useManualTiming?tV.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(er)}},eo=(t,e)=>e?1e3/e*t:0,ea;class el{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=en.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=en.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new tG);let i=this.events[t].add(e);return"change"===t?()=>{i(),tD.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return ea&&ea.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=en.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return eo(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ed(t,e){return new el(t,e)}let eh=[...ti,D,z],eu=new WeakMap;function ec(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function ep(t){return"string"==typeof t||Array.isArray(t)}let em=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ef=["initial",...em];function ex(t){return ec(t.animate)||ef.some(e=>ep(t[e]))}function eg(t){return!!(ex(t)||t.variants)}let ey={current:null},ev={current:!1},eb="u">typeof window;function ew(t){let e=[{},{}];
21return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function ej(t,e,i,s){if("function"==typeof e){let[r,n]=ew(s);e=e(void 0!==i?i:t.custom,r,n)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,n]=ew(s);e=e(void 0!==i?i:t.custom,r,n)}return e}let eA=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eE={};class eS{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,skipAnimations:r,blockInitialAnimation:n,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=t$,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=en.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tD.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=r,this.options=a,this.blockInitialAnimation=!!n,this.isControllingVariants=ex(e),this.isVariantNode=eg(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...u}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in u){const e=u[t];void 0!==l[t]&&Q(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,eu.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(ev.current||function(){if(ev.current=!0,eb)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ey.current=t.matches;t.addEventListener("change",e),e()}else ey.current=!1}(),this.shouldReduceMotion=ey.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),tN(this.notifyUpdate),tN(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&ei.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:s,times:r,ease:n,duration:o}=e.accelerate,a=new ee({element:this.current,name:t,keyframes:s,times:r,ease:n,duration:tX(o)}),l=i(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let s=u.has(t);s&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tD.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),i&&i()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in eE){let e=eE[t];
21if(!e)continue;let{isEnabled:i,Feature:s}=e;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):J()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<eA.length;e++){let i=eA[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=t["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=function(t,e,i){for(let s in e){let r=e[s],n=i[s];if(Q(r))t.addValue(s,r);else if(Q(n))t.addValue(s,ed(r,{owner:t}));else if(n!==r)if(t.hasValue(s)){let e=t.getValue(s);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(s);t.addValue(s,ed(void 0!==e?e:r,{owner:t}))}}for(let s in i)void 0===e[s]&&t.removeValue(s);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=ed(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let s,r;if("string"==typeof i&&(s=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(s)||(r=i,/^0[^.\s]+$/u.test(r))))i=parseFloat(i);else{let s;s=i,!eh.find(te(s))&&z.test(e)&&(i=tH(t,e))}this.setBaseTarget(t,Q(i)?i.get():i)}return Q(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let s=ej(this.props,i,this.presenceContext?.custom);s&&(e=s[t])}if(i&&void 0!==e)return e;let s=this.getBaseTargetFromProps(this.props,t);return void 0===s||Q(s)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new tG),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){es.render(this.render)}}class eT extends eS{constructor(){super(...arguments),this.KeyframeResolver=t_}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;Q(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function ek(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let eC=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eF={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eP=h.length;function eM(t,e,i){let{style:s,vars:r,transformOrigin:n}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(u.has(t)){o=!0;continue}if(tl(t)){r[t]=i;continue}{let e=eC(i,_[t]);t.startsWith("origin")?(a=!0,n[t]=e):s[t]=e}}
21if(!e.transform&&(o||i?s.transform=function(t,e,i){let s="",r=!0;for(let n=0;n<eP;n++){let o=h[n],a=t[o];if(void 0===a)continue;let l=!0;if("number"==typeof a)l=a===+!!o.startsWith("scale");else{let t=parseFloat(a);l=o.startsWith("scale")?1===t:0===t}if(!l||i){let t=eC(a,_[o]);if(!l){r=!1;let e=eF[o]||o;s+=`${e}(${t}) `}i&&(e[o]=t)}}let n=t.pathRotation;return n&&(r=!1,s+=`rotate(${eC(n,_.pathRotation)}) `),s=s.trim(),i?s=i(e,r?"":s):r&&(s="none"),s}(e,t.transform,i):s.transform&&(s.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=n;s.transformOrigin=`${t} ${e} ${i}`}}let eD={offset:"stroke-dashoffset",array:"stroke-dasharray"},eN={offset:"strokeDashoffset",array:"strokeDasharray"},eV=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eR(t,{attrX:e,attrY:i,attrScale:s,pathLength:r,pathSpacing:n=1,pathOffset:o=0,...a},l,d,h){if(eM(t,a,d),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:u,style:c}=t;for(let t of(u.transform&&(c.transform=u.transform,delete u.transform),(c.transform||u.transformOrigin)&&(c.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),c.transform&&(c.transformBox=h?.transformBox??"fill-box",delete u.transformBox),eV))void 0!==u[t]&&(c[t]=u[t],delete u[t]);void 0!==e&&(u.x=e),void 0!==i&&(u.y=i),void 0!==s&&(u.scale=s),void 0!==r&&function(t,e,i=1,s=0,r=!0){t.pathLength=1;let n=r?eD:eN;t[n.offset]=`${-s}`,t[n.array]=`${e} ${i}`}(u,r,n,o,!1)}let eB=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"]),eI=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eL(t,{style:e,vars:i},s,r){let n,o=t.style;for(n in e)o[n]=e[n];for(n in r?.applyProjectionStyles(o,s),i)o.setProperty(n,i[n])}let ez=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function eO(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let eW={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!k.test(t))return t;else t=parseFloat(t);let i=eO(t,e.target.x),s=eO(t,e.target.y);return`${i}% ${s}%`}},e$=(t,e,i)=>t+(e-t)*i,eU={borderRadius:{...eW,applyTo:[...ez]},borderTopLeftRadius:eW,borderTopRightRadius:eW,borderBottomLeftRadius:eW,borderBottomRightRadius:eW,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=z.parse(t);if(s.length>5)return t;let r=z.createTransformer(t),n=+("number"!=typeof s[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;s[0+n]/=o,s[1+n]/=a;let l=e$(o,a,.5);return"number"==typeof s[2+n]&&(s[2+n]/=l),"number"==typeof s[3+n]&&(s[3+n]/=l),r(s)}}};function eH(t,{layout:e,layoutId:i}){return u.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!eU[t]||"opacity"===t)}function eY(t,e,i){let s=t.style,r=e?.style,n={};if(!s)return n;for(let e in s)(Q(s[e])||r&&Q(r[e])||eH(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(n[e]=s[e]);return n}function e_(t,e,i){let s=eY(t,e,i);for(let i in t)(Q(t[i])||Q(e[i]))&&(s[-1!==h.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return s}class eX extends eT{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=J}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(u.has(e)){let t=q(e);return t&&t.default||0}return e=eB.has(e)?e:ek(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return e_(t,e,i)}build(t,e,i){eR(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,s){for(let i in eL(t,e,void 0,s),e.attrs)t.setAttribute(eB.has(i)?i:ek(i),e.attrs[i])}mount(t){this.isSVGTag=eI(t.tagName),super.mount(t)}}function eq({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function eK(t){return void 0===t||1===t}function eG({scale:t,scaleX:e,scaleY:i}){return!eK(t)||!eK(e)||!eK(i)}function eZ(t){return eG(t)||eJ(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function eJ(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function eQ(t,e,i,s,r){return void 0!==r&&(t=s+r*(t-s)),s+i*(t-s)+e}function e0(t,e=0,i=1,s,r){t.min=eQ(t.min,e,i,s,r),t.max=eQ(t.max,e,i,s,r)}function e1(t,{x:e,y:i}){e0(t.x,e.translate,e.scale,e.originPoint),e0(t.y,i.translate,i.scale,i.originPoint)}function e2(t,e){t.min+=e,t.max+=e}function e5(t,e,i,s,r=.5){let n=e$(t.min,t.max,r);e0(t,e,i,n,s)}function e4(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function e6(t,e,i){let s=i??t;e5(t.x,e4(e.x,s.x),e.scaleX,e.scale,e.originX),e5(t.y,e4(e.y,s.y),e.scaleY,e.scale,e.originY)}function e3(t,e){return eq(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}class e8 extends eT{constructor(){super(...arguments),this.type="html",this.renderInstance=eL}mount(t){to(!!t.style,"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(t)}readValueFromInstance(t,e){if(u.has(e))return this.projection?.isProjecting?tw(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tj(i,e)})(t,e);{let i=window.getComputedStyle(t),s=(tl(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return e3(t,e)}build(t,e,i){eM(t,e,i.transformTemplate)}
21scrapeMotionValuesFromProps(t,e,i){return eY(t,e,i)}}let e7=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function e9(t){if("string"!=typeof t||t.includes("-"));else if(e7.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let it=(0,o.createContext)({}),ie=(0,o.createContext)({strict:!1}),ii=(0,o.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),is=(0,o.createContext)({});function ir(t){return Array.isArray(t)?t.join(" "):t}let io=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ia(t,e,i){for(let s in e)Q(e[s])||eH(s,i)||(t[s]=e[s])}let il=()=>({...io(),attrs:{}}),id=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","propagate","ignoreStrict","viewport"]);function ih(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||id.has(t)}let iu=t=>!ih(t);try{r=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof r&&(iu=t=>t.startsWith("on")?!ih(t):r(t))}catch{}function ic(t){return Q(t)?t.get():t}let ip=(0,o.createContext)(null),im=t=>(e,i)=>{let s,r=(0,o.useContext)(is),n=(0,o.useContext)(ip),a=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,s,r){return{latestValues:function(t,e,i,s){let r={},n=s(t,{});for(let t in n)r[t]=ic(n[t]);let{initial:o,animate:a}=t,l=ex(t),d=eg(t);e&&d&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,u=(h=h||!1===o)?a:o;if(u&&"boolean"!=typeof u&&!ec(u)){let e=Array.isArray(u)?u:[u];for(let i=0;i<e.length;i++){let s=ej(t,e[i]);if(s){let{transitionEnd:t,transition:e,...i}=s;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(i,s,r,t),renderState:e()}})(t,e,r,n);return i?a():(null===(s=(0,o.useRef)(null)).current&&(s.current=a()),s.current)},ix=im({scrapeMotionValuesFromProps:eY,createRenderState:io}),ig=im({scrapeMotionValuesFromProps:e_,createRenderState:il}),iy={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"]},iv=!1;function ib(){return!function(){if(iv)return;let t={};for(let e in iy)t[e]={isEnabled:t=>iy[e].some(e=>!!t[e])};eE=t,iv=!0}(),eE}let iw=Symbol.for("motionComponentSymbol"),ij="data-"+ek("framerAppearId"),iA=(0,o.createContext)({});function iE(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let iS="u">typeof window?o.useLayoutEffect:o.useEffect;function iT(t,{forwardMotionProps:e=!1,type:i}={},s,r){s&&function(t){let e=ib();for(let i in t)e[i]={...e[i],...t[i]};eE=e}(s);let a=i?"svg"===i:e9(t),l=a?ig:ix;function d(i,s){var d;let h,u,c,p={...(0,o.useContext)(ii),...i,layoutId:function({layoutId:t}){let e=(0,o.useContext)(it).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:m}=p,f=function(t){let{initial:e,animate:i}=function(t,e){if(ex(t)){let{initial:e,animate:i}=t;return{initial:!1===e||ep(e)?e:void 0,animate:ep(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,o.useContext)(is));return(0,o.useMemo)(()=>({initial:e,animate:i}),[ir(e),ir(i)])}(i),x=l(i,m);if(!m&&"u">typeof window){(0,o.useContext)(ie).strict;let e=function(t){let{drag:e,layout:i}=ib();if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}
21(p);h=e.MeasureLayout,f.visualElement=function(t,e,i,s,r,n){let{visualElement:a}=(0,o.useContext)(is),l=(0,o.useContext)(ie),d=(0,o.useContext)(ip),h=(0,o.useContext)(ii),u=h.reducedMotion,c=h.skipAnimations,p=(0,o.useRef)(null),m=(0,o.useRef)(!1);s=s||l.renderer,!p.current&&s&&(p.current=s(t,{visualState:e,parent:a,props:i,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:u,skipAnimations:c,isSVG:n}),m.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));let f=p.current,x=(0,o.useContext)(iA);f&&!f.projection&&r&&("html"===f.type||"svg"===f.type)&&function(t,e,i,s){let{layoutId:r,layout:n,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:d,layoutAnchor:h,layoutCrossfade:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:n,alwaysMeasureLayout:!!o||a&&iE(a),visualElement:t,animationType:"string"==typeof n?n:"both",initialPromotionConfig:s,crossfade:u,layoutScroll:l,layoutRoot:d,layoutAnchor:h})}(p.current,i,r,x);let g=(0,o.useRef)(!1);(0,o.useInsertionEffect)(()=>{f&&g.current&&f.update(i,d)});let y=i[ij],v=(0,o.useRef)(!!y&&"u">typeof window&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return iS(()=>{m.current=!0,f&&(g.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),v.current&&f.animationState&&f.animationState.animateChanges())}),(0,o.useEffect)(()=>{f&&(!v.current&&f.animationState&&f.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),v.current=!1),f.enteringChildren=void 0)}),f}(t,x,p,r,e.ProjectionNode,a)}return(0,n.jsxs)(is.Provider,{value:f,children:[h&&f.visualElement?(0,n.jsx)(h,{visualElement:f.visualElement,...p}):null,function(t,e,i,{latestValues:s},r,n=!1,a){let l=(a??e9(t)?function(t,e,i,s){let r=(0,o.useMemo)(()=>{let i=il();return eR(i,e,eI(s),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};ia(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i,s,r={},n=(i=t.style||{},ia(s={},i,t),Object.assign(s,function({transformTemplate:t},e){return(0,o.useMemo)(()=>{let i=io();return eM(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),s);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=n,r})(e,s,r,t),d=function(t,e,i){let s={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&!Q(t[r])&&(iu(r)||!0===i&&ih(r)||!e&&!ih(r)||t.draggable&&r.startsWith("onDrag"))&&(s[r]=t[r]);return s}(e,"string"==typeof t,n),h=t!==o.Fragment?{...d,...l,ref:i}:{},{children:u}=e,c=(0,o.useMemo)(()=>Q(u)?u.get():u,[u]);return(0,o.createElement)(t,{...h,children:c})}(t,i,(d=f.visualElement,u=(0,o.useRef)(s),(0,o.useInsertionEffect)(()=>{u.current=s}),c=(0,o.useRef)(null),(0,o.useCallback)(t=>{t&&x.onMount?.(t),d&&(t?d.mount(t):d.unmount());let e=u.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(c.current=i)}else c.current?(c.current(),c.current=null):e(t);else e&&(e.current=t)},[d])),x,m,e,a)]})}d.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let h=(0,o.forwardRef)(d);return h[iw]=t,h}class ik{constructor(t){this.isMounted=!1,this.node=t}update(){}}function iC(t,e,i){let s=t.getProps();return ej(s,e,void 0!==i?i:s.custom,t)}function iF(t,e){if(t?.inherit&&e){let{inherit:i,...s}=t;return{...e,...s}}return t}function iP(t,e){let i=t?.[e]??t?.default??t;return i!==t?iF(i,t):i}let iM=t=>Array.isArray(t);function iD(t,e){let i=t.getValue("willChange");if(Q(i)&&i.add)return i.add(e);if(!i&&tF.WillChange){let i=new tF.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let iN=(...t)=>t.reduce((t,e)=>i=>e(t(i)));function iV(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function iR(t,e){return i=>i>0?e:t}
21let iB=(t,e,i)=>{let s=t*t,r=i*(e*e-s)+s;return r<0?0:Math.sqrt(r)},iI=[A,j,M];function iL(t){let e=iI.find(e=>e.test(t));if(tn(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===M&&(i=function({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,i/=100;let r=0,n=0,o=0;if(e/=100){let s=i<.5?i*(1+e):i+e-i*e,a=2*i-s;r=iV(a,s,t+1/3),n=iV(a,s,t),o=iV(a,s,t-1/3)}else r=n=o=i;return{red:Math.round(255*r),green:Math.round(255*n),blue:Math.round(255*o),alpha:s}}(i)),i}let iz=(t,e)=>{let i=iL(t),s=iL(e);if(!i||!s)return iR(t,e);let r={...i};return t=>(r.red=iB(i.red,s.red,t),r.green=iB(i.green,s.green,t),r.blue=iB(i.blue,s.blue,t),r.alpha=e$(i.alpha,s.alpha,t),j.transform(r))},iO=new Set(["none","hidden"]);function iW(t,e){return i=>e$(t,e,i)}function i$(t){return"number"==typeof t?iW:"string"==typeof t?th(t)?iR:D.test(t)?iz:iY:Array.isArray(t)?iU:"object"==typeof t?D.test(t)?iz:iH:iR}function iU(t,e){let i=[...t],s=i.length,r=t.map((t,i)=>i$(t)(t,e[i]));return t=>{for(let e=0;e<s;e++)i[e]=r[e](t);return i}}function iH(t,e){let i={...t,...e},s={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(s[r]=i$(t[r])(t[r],e[r]));return t=>{for(let e in s)i[e]=s[e](t);return i}}let iY=(t,e)=>{let i=z.createTransformer(e),s=I(t),r=I(e);if(!(s.indexes.var.length===r.indexes.var.length&&s.indexes.color.length===r.indexes.color.length&&s.indexes.number.length>=r.indexes.number.length))return tn(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),iR(t,e);if(iO.has(t)&&!r.values.length||iO.has(e)&&!s.values.length)return iO.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return iN(iU(function(t,e){let i=[],s={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let n=e.types[r],o=t.indexes[n][s[n]],a=t.values[o]??0;i[r]=a,s[n]++}return i}(s,r),r.values),i)};function i_(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?e$(t,e,i):i$(t)(t,e)}let iX=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tD.update(e,t),stop:()=>tN(e),now:()=>tV.isProcessing?tV.timestamp:en.now()}};function iq(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let iK=.01,iG=2,iZ=.005,iJ=.5;function iQ(t,e){return t*Math.sqrt(1-e*e)}let i0=["duration","bounce"],i1=["stiffness","damping","mass"];function i2(t,e){return e.some(e=>void 0!==t[e])}function i5(t=.3,e=.3){let i,s,r,n,o,a,l="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:d,restDelta:h}=l,u=l.keyframes[0],p=l.keyframes[l.keyframes.length-1],m={done:!1,value:u},{stiffness:f,damping:x,mass:g,duration:y,velocity:v,isResolvedFromDuration:b}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!i2(t,i1)&&i2(t,i0))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),s=i*i,r=2*c(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:1,stiffness:s,damping:r}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:s=1}){let r,n;tn(t<=tX(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=c(.05,1,o),t=c(.01,10,t/1e3),o<1?(r=e=>{let s=e*o,r=s*t;return .001-(s-i)/iQ(e,o)*Math.exp(-r)},n=e=>{let s=e*o*t,n=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-s),l=iQ(Math.pow(e,2),o);return(s*i+i-n)*a*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),n=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}(r,n,5/t);if(t=tX(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*s;return{stiffness:e,damping:2*o*Math.sqrt(s*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...l,velocity:-((l.velocity||0)/1e3)}),w=v||0,j=x/(2*Math.sqrt(f*g)),A=p-u,E=Math.sqrt(f/g)/1e3,S=5>Math.abs(A);if(d||(d=S?iK:iG),h||(h=S?iZ:iJ),j<1)r=iQ(E,j),n=(w+j*E*A)/r,i=t=>p-Math.exp(-j*E*t)*(n*Math.sin(r*t)+A*Math.cos(r*t)),o=j*E*n+A*r,a=j*E*A-n*r,s=t=>Math.exp(-j*E*t)*(o*Math.sin(r*t)+a*Math.cos(r*t));else if(1===j){i=t=>p-Math.exp(-E*t)*(A+(w+E*A)*t);let t=w+E*A;s=e=>Math.exp(-E*e)*(E*t*e-w)}else{let t=E*Math.sqrt(j*j-1);i=e=>{let i=Math.exp(-j*E*e),s=Math.min(t*e,300);return p-i*((w+j*E*A)*Math.sinh(s)+t*A*Math.cosh(s))/t};let e=(w+j*E*A)/t,r=j*E*e-A*t,n=j*E*A-e*t;s=e=>{let i=Math.exp(-j*E*e),s=Math.min(t*e,300);return i*(r*Math.sinh(s)+n*Math.cosh(s))}}let T={calculatedDuration:b&&y||null,velocity:t=>tX(s(t)),next:t=>{if(!b&&j<1){let e=Math.exp(-j*E*t),i=Math.sin(r*t),s=Math.cos(r*t),l=p-e*(n*i+A*s);return m.done=Math.abs(tX(e*(o*i+a*s)))<=d&&Math.abs(p-l)<=h,m.value=m.done?p:l,m}let e=i(t);return b?m.done=t>=y:m.done=Math.abs(tX(s(t)))<=d&&Math.abs(p-e)<=h,m.value=m.done?p:e,m},toString:()=>{let t=Math.min(iq(T),2e4),e=t8(e=>T.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return T}function i4(t,e,i){let s=Math.max(e-5,0);return eo(i-t(s),e-s)}function i6({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:n=500,modifyTarget:o,min:a,max:l,restDelta:d=.5,restSpeed:h}){let u,c,p=t[0],m={done:!1,value:p},f=i*e,x=p+f,g=void 0===o?x:o(x);g!==x&&(f=g-p);let y=t=>-f*Math.exp(-t/s),v=t=>g+y(t),b=t=>{let e=y(t),i=v(t);m.done=Math.abs(e)<=d,m.value=m.done?g:i},w=t=>{let e;if(e=m.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;u=t,c=i5({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:i4(v,t,m.value),damping:r,stiffness:n,restDelta:d,restSpeed:h})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==u||(e=!0,b(t),w(t)),void 0!==u&&t>=u)?c.next(t-u):(e||b(t),m)}}}i5.applyToOptions=t=>{let e=function(t,e=100,i){let s=i({...t,keyframes:[0,e]}),r=Math.min(iq(s),2e4);return{type:"keyframes",ease:t=>s.next(r*t).value/e,duration:r/1e3}}(t,100,i5);return t.ease=e.ease,t.duration=tX(e.duration),t.type="keyframes",t};let i3=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function i8(t,e,i,s){return t===e&&i===s?tC:r=>
210===r||1===r?r:i3(function(t,e,i,s,r){let n,o,a=0;do(n=i3(o=e+(i-e)/2,s,r)-t)>0?i=o:e=o;while(Math.abs(n)>1e-7&&++a<12)return o}(r,0,1,t,i),e,s)}let i7=i8(.42,0,1,1),i9=i8(0,0,.58,1),st=i8(.42,0,.58,1),se=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,si=t=>e=>1-t(1-e),ss=i8(.33,1.53,.69,.99),sr=si(ss),sn=se(sr),so=t=>t>=1?1:(t*=2)<1?.5*sr(t):.5*(2-Math.pow(2,-10*(t-1))),sa=t=>1-Math.sin(Math.acos(t)),sl=si(sa),sd=se(sa),sh={linear:tC,easeIn:i7,easeInOut:st,easeOut:i9,circIn:sa,circInOut:sd,circOut:sl,backIn:sr,backInOut:sn,backOut:ss,anticipate:so},su=t=>{if(t6(t)){to(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,s,r]=t;return i8(e,i,s,r)}return"string"==typeof t?(to(void 0!==sh[t],`Invalid easing type '${t}'`,"invalid-easing-type"),sh[t]):t},sc=(t,e,i)=>{let s=e-t;return s?(i-t)/s:1};function sp({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){var r;let n,o=Array.isArray(s)&&"number"!=typeof s[0]?s.map(su):su(s),a={done:!1,value:e[0]},l=function(t,e,{clamp:i=!0,ease:s,mixer:r}={}){let n=t.length;if(to(n===e.length,"Both input and output ranges must be the same length","range-length"),1===n)return()=>e[0];if(2===n&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[n-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let s=[],r=i||tF.mix||i_,n=t.length-1;for(let i=0;i<n;i++){let n=r(t[i],t[i+1]);e&&(n=iN(Array.isArray(e)?e[i]||tC:e,n)),s.push(n)}return s}(e,s,r),l=a.length,d=i=>{if(o&&i<t[0])return e[0];let s=0;if(l>1)for(;s<t.length-2&&!(i<t[s+1]);s++);let r=sc(t[s],t[s+1],i);return a[s](r)};return i?e=>d(c(t[0],t[n-1],e)):d}((r=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let r=sc(0,e,s);t.push(e$(i,1,r))}}(n=[0],e.length-1),n),r.map(e=>e*t)),e,{ease:Array.isArray(o)?o:e.map(()=>o||st).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=l(e),a.done=e>=t,a)}}let sm={decay:i6,inertia:i6,tween:sp,keyframes:sp,spring:i5};function sf(t){"string"==typeof t.type&&(t.type=sm[t.type])}let sx=t=>t/100;class sg extends t4{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==en.now()&&this.tick(en.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;sf(t);let{type:e=sp,repeat:i=0,repeatDelay:s=0,repeatType:r,velocity:n=0}=t,{keyframes:o}=t,a=e||sp;a!==sp&&"number"!=typeof o[0]&&(this.mixKeyframes=iN(sx,i_(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===r&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-n})),null===l.calculatedDuration&&(l.calculatedDuration=iq(l));let{calculatedDuration:d}=l;this.calculatedDuration=d,this.resolvedDuration=d+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let i,{generator:s,totalDuration:r,mixKeyframes:n,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return s.next(0);let{delay:d=0,keyframes:h,repeat:u,repeatType:p,repeatDelay:m,type:f,onUpdate:x,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let y=this.currentTime-d*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?y<0:y>r;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let b=this.currentTime,w=s;if(u){let t=Math.min(this.currentTime,r)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,u+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/a)):"mirror"===p&&(w=o)),b=c(0,1,i)*a}v?(this.delayState.value=h[0],i=this.delayState):i=w.next(b),n&&!v&&(i.value=n(i.value));let{done:j}=i;v||null===l||(j=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let A=null===this.holdTime&&("finished"===this.state||"running"===this.state&&j);return A&&f!==i6&&(i.value=t5(h,this.options,g,this.speed)),x&&x(i.value),A&&this.finish(),i}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=tX(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;
21if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return i4(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(en.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=iX,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(en.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let sy={anticipate:so,backInOut:sn,circInOut:sd};class sv extends ee{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in sy&&(t.ease=sy[t.ease])}(t),sf(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:s,element:r,...n}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new sg({...n,autoplay:!1}),a=Math.max(10,en.now()-this.startTime),l=c(0,10,a-10),d=o.sample(a).value,{name:h}=this.options;r&&h&&tZ(r,h,d),e.setWithVelocity(o.sample(Math.max(0,a-l)).value,d,l),o.stop()}}let sb=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(z.test(t)||"0"===t)&&!t.startsWith("url("));function sw(t){t.duration=0,t.type="keyframes"}let sj=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,sA=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),sE=tJ(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class sS extends t4{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:n="loop",keyframes:o,name:a,motionValue:l,element:d,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=en.now();const u={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:r,repeatType:n,name:a,motionValue:l,element:d,...h},c=d?.KeyframeResolver||t$;this.keyframeResolver=new c(o,(t,e,i)=>this.onKeyframesResolved(t,e,u,!i),a,l,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,s){let r;this.keyframeResolver=void 0;let{name:n,type:o,velocity:a,delay:l,isHandoff:d,onUpdate:h}=i;this.resolvedAt=en.now();let u=!0;!function(t,e,i,s){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let n=t[t.length-1],o=sb(r,e),a=sb(n,e);return tn(o===a,`You are trying to animate ${e} from "${r}" to "${n}". "${o?n:r}" is not an animatable value.`,"value-not-animatable"),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||et(i))&&s)}(t,n,o,a)&&(u=!1,(tF.instantAnimations||!l)&&h?.(t5(t,i,e)),t[0]=t[t.length-1],sw(i),i.repeat=0);let c={startTime:s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},p=u&&!d&&function(t){let{motionValue:e,name:i,repeatDelay:s,repeatType:r,damping:n,type:o,keyframes:a}=t,l=e?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;
21let{onUpdate:d,transformTemplate:h}=e.owner.getProps();return sE()&&i&&(ei.has(i)||sA.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&sj.test(t[e]))return!0;return!1}(a))&&("transform"!==i||!h)&&!d&&!s&&"mirror"!==r&&0!==n&&"inertia"!==o}(c),m=c.motionValue?.owner?.current;if(p)try{r=new sv({...c,element:m})}catch{r=new sg(c)}else r=new sg(c);r.finished.then(()=>{this.notifyFinished()}).catch(tC),this.pendingTimeline&&(this.stopTimeline=r.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=r}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tz=!0,tW(),tO(),tz=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let sT={type:"spring",stiffness:500,damping:25,restSpeed:10},sk={type:"keyframes",duration:.8},sC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sF=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),sP=(t,e,i,s={},r,n)=>o=>{let a=iP(s,t)||{},l=a.delay||s.delay||0,{elapsed:d=0}=s;d-=tX(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-d,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:n?void 0:r};!function(t){for(let e in t)if(!sF.has(e))return!0;return!1}(a)&&Object.assign(h,((t,{keyframes:e})=>e.length>2?sk:u.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:sT:sC)(t,h)),h.duration&&(h.duration=tX(h.duration)),h.repeatDelay&&(h.repeatDelay=tX(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(sw(h),0===h.delay&&(c=!0)),(tF.instantAnimations||tF.skipAnimations||r?.shouldSkipAnimations||a.skipAnimations)&&(c=!0,sw(h),h.delay=0),h.allowFlatten=!a.type&&!a.ease,c&&!n&&void 0!==e.get()){let t=t5(h.keyframes,a);if(void 0!==t)return void tD.update(()=>{h.onUpdate(t),h.onComplete()})}return a.isSync?new sg(h):new sS(h)};function sM(t,e,{delay:i=0,transitionOverride:s,type:r}={}){let{transition:n,transitionEnd:o,...a}=e,l=t.getDefaultTransition();n=n?iF(n,l):l;let d=n?.reduceMotion,h=n?.skipAnimations;s&&(n=s);let u=[],c=r&&t.animationState&&t.animationState.getState()[r],p=n?.path;for(let e in p&&p.animateVisualElement(t,a,n,i,u),a){let s=t.getValue(e,t.latestValues[e]??null),r=a[e];if(void 0===r||c&&function({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}(c,e))continue;let o={delay:i,...iP(n||{},e)};h&&(o.skipAnimations=!0);let l=s.get();if(void 0!==l&&!s.isAnimating()&&!Array.isArray(r)&&r===l&&!o.velocity){tD.update(()=>s.set(r));continue}let p=!1;if(window.MotionHandoffAnimation){let i=t.props[ij];if(i){let t=window.MotionHandoffAnimation(i,e,tD);null!==t&&(o.startTime=t,p=!0)}}iD(t,e);let m=d??t.shouldReduceMotion;s.start(sP(e,s,r,m&&tt.has(e)?{type:!1}:o,t,p));let f=s.animation;f&&u.push(f)}if(o){let e=()=>tD.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:s={},...r}=iC(t,e)||{};for(let e in r={...r,...i}){var n;let i=iM(n=r[e])?n[n.length-1]||0:n;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,ed(i))}}(t,o)});u.length?Promise.all(u).then(e):e()}return u}function sD(t,e,i,s=0,r=1){let n=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*s;return"function"==typeof i?i(n,o):1===r?n*s:a-n*s}function sN(t,e,i={}){let s=iC(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(r=i.transitionOverride);let n=s?()=>Promise.all(sM(t,s,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:n=0,staggerChildren:o,staggerDirection:a}=r;
21return function(t,e,i=0,s=0,r=0,n=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(sN(l,e,{...o,delay:i+("function"==typeof s?0:s)+sD(t.variantChildren,l,s,r,n)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,s,n,o,a,i)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([n(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[n,o]:[o,n];return t().then(()=>e())}}let sV=ef.length;function sR(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}let sB=[...em].reverse(),sI=em.length;function sL(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sz(){return{animate:sL(!0),whileInView:sL(),whileHover:sL(),whileTap:sL(),whileDrag:sL(),whileFocus:sL(),exit:sL()}}let sO=0;function sW(t){return[t("x"),t("y")]}function s$(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i,s)}let sU={x:!1,y:!1};function sH(t){return t.max-t.min}function sY(t,e,i,s=.5){t.origin=s,t.originPoint=e$(e.min,e.max,t.origin),t.scale=sH(i)/sH(e),t.translate=e$(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function s_(t,e,i,s){sY(t.x,e.x,i.x,s?s.originX:void 0),sY(t.y,e.y,i.y,s?s.originY:void 0)}function sX(t,e,i,s=0){t.min=(s?e$(i.min,i.max,s):i.min)+e.min,t.max=t.min+sH(e)}function sq(t,e,i,s=0){let r=s?e$(i.min,i.max,s):i.min;t.min=e.min-r,t.max=t.min+sH(e)}function sK(t,e,i,s){sq(t.x,e.x,i.x,s?.x),sq(t.y,e.y,i.y,s?.y)}let sG=t=>"object"==typeof t&&null!==t;function sZ(t){return sG(t)&&"ownerSVGElement"in t}function sJ(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let s=document;e&&(s=e.current);let r=i?.[t]??s.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t).filter(t=>null!=t)}let sQ=new WeakMap,s0=(t,e,i)=>(s,r)=>r&&r[0]?r[0][t+"Size"]:sZ(s)&&"getBBox"in s?s.getBBox()[e]:s[i],s1=s0("inline","width","offsetWidth"),s2=s0("block","height","offsetHeight");function s5({target:t,borderBoxSize:e}){sQ.get(t)?.forEach(i=>{i(t,{get width(){return s1(t,e)},get height(){return s2(t,e)}})})}function s4(t){t.forEach(s5)}let s6=new Set;function s3(t,e){let r;return"function"==typeof t?(s6.add(t),s||(s=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};s6.forEach(e=>e(t))},window.addEventListener("resize",s)),()=>{s6.delete(t),s6.size||"function"!=typeof s||(window.removeEventListener("resize",s),s=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(s4)),(r=sJ(t)).forEach(t=>{let s=sQ.get(t);s||(s=new Set,sQ.set(t,s)),s.add(e),i?.observe(t)}),()=>{r.forEach(t=>{let s=sQ.get(t);s?.delete(e),s?.size||i?.unobserve(t)})})}let s8=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),s7=new Set(["INPUT","SELECT","TEXTAREA"]),s9=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function rt(t){return{point:{x:t.pageX,y:t.pageY}}}function re(t,e,i,s){return s$(t,e,t=>s9(t)&&i(t,rt(t)),s)}let ri=({current:t})=>t?t.ownerDocument.defaultView:null,rs=(t,e)=>Math.abs(t-e),rr=new Set(["auto","scroll"]);class rn{constructor(t,e,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:r=!1,distanceThreshold:n=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ro(this.lastRawMoveEventInfo,this.transformPagePoint));let i=rl(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(rs(t.x,e.x)**2+rs(t.y,e.y)**2)>=this.distanceThreshold);if(!s&&!r)return;let{point:n}=i,{timestamp:o}=tV;this.history.push({...n,timestamp:o});let{onStart:a,onMove:l}=this.handlers;s||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=ro(e,this.transformPagePoint),tD.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:r}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=rl("pointercancel"===t.type?this.lastMoveEventInfo:ro(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,n),s&&s(t,n)},!s9(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=n,this.contextWindow=s||window;const a=ro(rt(t),this.transformPagePoint),{point:l}=a,{timestamp:d}=tV;this.history=[{...l,timestamp:d}];const{onSessionStart:h}=e;h&&h(t,rl(a,this.history));const u={passive:!0,capture:!0};this.removeListeners=iN(re(this.contextWindow,"pointermove",this.handlePointerMove,u),re(this.contextWindow,"pointerup",this.handlePointerUp,u),re(this.contextWindow,"pointercancel",this.handlePointerUp,u)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(rr.has(t.overflowX)||rr.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},r={x:s.x-e.x,y:s.y-e.y};(0!==r.x||0!==r.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(t,s),tD.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tN(this.updatePoint)}}function ro(t,e){return e?{point:e(t.point)}:t}function ra(t,e){return{x:t.x-e.x,y:t.y-e.y}}function rl({point:t},e){return{point:t,delta:ra(t,rd(e)),offset:ra(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,s=rd(t);for(;e>=0&&(i=t[e],!(s.timestamp-i.timestamp>tX(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&s.timestamp-i.timestamp>2*tX(.1)&&(i=t[1]);let r=(s.timestamp-i.timestamp)/1e3;if(0===r)return{x:0,y:0};let n={x:(s.x-i.x)/r,y:(s.y-i.y)/r};return n.x===1/0&&(n.x=0),n.y===1/0&&(n.y=0),n}(e)}}function rd(t){return t[t.length-1]}function rh(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function ru(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function rc(t,e,i){return{min:rp(t,e),max:rp(t,i)}}function rp(t,e){return"number"==typeof t?t:t[e]||0}let rm=new WeakMap;class rf{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=J(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:s}=this.visualElement;if(s&&!1===s.isPresent)return;let r=t=>{e&&this.snapToCursor(rt(t).point),this.stopAnimation()},n=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:r}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(sU[t])return null;else return sU[t]=!0,()=>{sU[t]=!1};return sU.x||sU.y?null:(sU.x=sU.y=!0,()=>{sU.x=sU.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),sW(t=>{let e=this.getAxisMotionValue(t).get()||0;if(T.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=sH(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&tD.update(()=>r(t,e),!1,!0),iD(this.visualElement,"transform");let{animationState:n}=this.visualElement;n&&n.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:r,onDrag:n}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(s&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),n&&tD.update(()=>n(t,e),!1,!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:d}=this.getProps();this.panSession=new rn(t,{onSessionStart:r,onStart:n,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:i,contextWindow:ri(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,s=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!s||!i)return;let{velocity:n}=s;this.startAnimation(n);let{onDragEnd:o}=this.getProps();o&&tD.postRender(()=>o(i,s))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!rg(t,s,this.currentDirection))return;let r=this.getAxisMotionValue(t),n=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(n=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?e$(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?e$(i,t,s.max):Math.min(t,i)),t}(n,this.constraints[t],this.elastic[t])),r.set(n)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;t&&iE(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:s,right:r}){return{x:rh(t.x,i,r),y:rh(t.y,e,s)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:rc(t,"left","right"),y:rc(t,"top","bottom")}}(e),s!==this.constraints&&!iE(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&sW(t=>{var e,s;let r;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],s=this.constraints[t],r={},void 0!==s.min&&(r.min=s.min-e.min),void 0!==s.max&&(r.max=s.max-e.min),r))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iE(e))return!1;let s=e.current;to(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());
21let n=function(t,e,i){let s=e3(t,i),{scroll:r}=e;return r&&(e2(s.x,r.offset.x),e2(s.y,r.offset.y)),s}(s,r.root,this.visualElement.getTransformPagePoint()),o=(t=r.layout.layoutBox,{x:ru(t.x,n.x),y:ru(t.y,n.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=eq(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:r,dragSnapToOrigin:n,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(sW(o=>{if(!rg(o,e,this.currentDirection))return;let l=a&&a[o]||{};(!0===n||n===o)&&(l={min:0,max:0});let d={type:"inertia",velocity:i?t[o]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,d)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return iD(this.visualElement,t),i.start(sP(t,i,0,e,this.visualElement,!1))}stopAnimation(){sW(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`;return this.visualElement.getProps()[e]||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){sW(e=>{let{drag:i}=this.getProps();if(!rg(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,r=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:n}=s.layout.layoutBox[e],o=r.get()||0;r.set(t[e]-e$(i,n,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iE(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};sW(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,r;let n,o,a,l=e.get();s[t]=(i={min:l,max:l},r=this.constraints[t],n=.5,o=sH(i),(a=sH(r))>o?n=sc(r.min,r.max-o,i.min):o>a&&(n=sc(i.min,i.max-a,r.min)),c(0,1,n))}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),sW(e=>{if(!rg(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:n}=this.constraints[e];i.set(e$(r,n,s[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;rm.set(this.visualElement,this);let e=this.visualElement.current,i=re(e,"pointerdown",t=>{let{drag:i,dragListener:s=!0}=this.getProps(),r=t.target,n=r!==e&&(s7.has(r.tagName)||!0===r.isContentEditable);i&&s&&!n&&this.start(t)}),s=()=>{var i,s,r;let n,o,{dragConstraints:a}=this.getProps();iE(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,s=a.current,n=s3(i,rx(r=()=>this.scalePositionWithinConstraints())),o=s3(s,rx(r)),t=()=>{n(),o()}))},{projection:r}=this.visualElement,n=r.addEventListener("measure",s);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),tD.read(s);let o=s$(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(sW(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),i(),n(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:r=!1,dragElastic:n=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:r,dragElastic:n,dragMomentum:o}}}function rx(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function rg(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let ry=t=>(e,i)=>{t&&tD.update(()=>t(e,i),!1,!0)},rv={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var rb=o;let rw=!1;class rj extends rb.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:r}=t;r&&(e.group&&e.group.add(r),i&&i.register&&s&&i.register(r),rw&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),rv.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:r}=this.props,{projection:n}=i;return n&&(n.isPresent=r,t.layoutDependency!==e&&n.setOptions({...n.options,layoutDependency:e}),rw=!0,s||t.layoutDependency!==e||void 0===e||t.isPresent!==r?n.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?n.promote():n.relegate()||tD.postRender(()=>{let t=n.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),es.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;rw=!0,s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function rA(t){let[e,i]=function(t=!0){let e=(0,o.useContext)(ip);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:s,register:r}=e,n=(0,o.useId)();(0,o.useEffect)(()=>
21{if(t)return r(n)},[t]);let a=(0,o.useCallback)(()=>t&&s&&s(n),[n,s,t]);return!i&&s?[!1,a]:[!0]}(),s=(0,rb.useContext)(it);return(0,n.jsx)(rj,{...t,layoutGroup:s,switchLayoutGroup:(0,rb.useContext)(iA),isPresent:e,safeToRemove:i})}let rE=ez.length,rS=t=>"string"==typeof t?parseFloat(t):t,rT=t=>"number"==typeof t||k.test(t);function rk(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rC=rP(0,.5,sl),rF=rP(.5,.95,tC);function rP(t,e,i){return s=>s<t?0:s>e?1:i(sc(t,e,s))}function rM(t,e){t.min=e.min,t.max=e.max}function rD(t,e){rM(t.x,e.x),rM(t.y,e.y)}function rN(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function rV(t,e,i,s,r){return t-=e,t=s+1/i*(t-s),void 0!==r&&(t=s+1/r*(t-s)),t}function rR(t,e,[i,s,r],n,o){!function(t,e=0,i=1,s=.5,r,n=t,o=t){if(T.test(e)&&(e=parseFloat(e),e=e$(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=e$(n.min,n.max,s);t===n&&(a-=e),t.min=rV(t.min,e,i,a,r),t.max=rV(t.max,e,i,a,r)}(t,e[i],e[s],e[r],e.scale,n,o)}let rB=["x","scaleX","originX"],rI=["y","scaleY","originY"];function rL(t,e,i,s){rR(t.x,e,rB,i?i.x:void 0,s?s.x:void 0),rR(t.y,e,rI,i?i.y:void 0,s?s.y:void 0)}function rz(t){return 0===t.translate&&1===t.scale}function rO(t){return rz(t.x)&&rz(t.y)}function rW(t,e){return t.min===e.min&&t.max===e.max}function r$(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rU(t,e){return r$(t.x,e.x)&&r$(t.y,e.y)}function rH(t){return sH(t.x)/sH(t.y)}function rY(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class r_{constructor(){this.members=[]}add(t){tq(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let s=i.instance;s&&!1!==s.isConnected||i.snapshot||(tK(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(tK(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:s}=i.options,{layoutDependency:r}=t.options;(void 0===s||s!==r)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let rX=(t,e)=>t.depth-e.depth;class rq{constructor(){this.children=[],this.isDirty=!1}add(t){tq(this.children,t),this.isDirty=!0}remove(t){tK(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rX),this.isDirty=!1,this.children.forEach(t)}}let rK=["","X","Y","Z"],rG=0;function rZ(t,e,i,s){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),s&&(s[t]=0))}function rJ({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=rG++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>
21{this.projectionUpdateScheduled=!1,this.nodes.forEach(r1),this.nodes.forEach(nt),this.nodes.forEach(ne),this.nodes.forEach(r2)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new rq)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tG),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=sZ(e)&&!(sZ(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:s,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),t){let i,s=0,r=()=>this.root.updateBlockedByResize=!1;tD.read(()=>{s=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==s){let e,n;s=t,this.root.updateBlockedByResize=!0,i&&i(),e=en.now(),n=({timestamp:t})=>{let i=t-e;i>=250&&(tN(n),r(i-250))},tD.setup(n,!0),i=()=>tN(n),rv.hasAnimatedSinceResize&&(rv.hasAnimatedSinceResize=!1,this.nodes.forEach(r9))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||r.getDefaultTransition()||na,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!rU(this.targetLayout,s),d=!e&&i;if(this.options.layoutRoot||this.resumeFrom||d||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...iP(n,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,d,e.path)}else e||r9(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tN(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(ni),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let s=i.props[ij];if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",tD,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEac
21h(r6),this.nodes.forEach(r4);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(r3);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(r8),this.nodes.forEach(r7),this.nodes.forEach(rQ),this.nodes.forEach(r0)):this.nodes.forEach(r3),this.clearAllSnapshots();let t=en.now();tV.delta=c(0,1e3/60,t-tV.timestamp),tV.timestamp=t,tV.isProcessing=!0,tR.update.process(tV),tR.preRender.process(tV),tR.render.process(tV),tV.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,es.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(r5),this.sharedNodes.forEach(ns)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tD.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tD.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||sH(this.snapshot.measuredBox.x)||sH(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=J()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=s(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!rO(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,n=s!==this.prevTransformTemplateValue;t&&this.instance&&(e||eZ(this.latestValues)||n)&&(r(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),nh((e=s).x),nh(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return J();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(nc))){let{scroll:t}=this.root;t&&(e2(e.x,t.offset.x),e2(e.y,t.offset.y))}return e}removeElementScroll(t){let e=J();if(rD(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:r,options:n}=s;s!==this.root&&r&&n.layoutScroll&&(r.wasRoot&&rD(e,t),e2(e.x,r.offset.x),e2(e.y,r.offset.y))}return e}applyTransform(t,e=!1,i){let s=i||J();rD(s,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(e2(s.x,-i.scroll.offset.x),e2(s.y,-i.scroll.offset.y)),eZ(i.latestValues)&&e6(s,i.latestValues,i.layout?.layoutBox)}return eZ(this.latestValues)&&e6(s,this.latestValues,this.layout?.layoutBox),s}removeTransform(t){let e=J();rD(e,t);for(let t=0;t<this.path.length;t++){let i,s=this.path[t];eZ(s.latestValues)&&(s.instance&&(eG(s.latestValues)&&s.updateSnapshot(),rD(i=J(),s.measurePageBox())),rL(e,s.latestValues,s.snapshot?.layoutBox,i))}return eZ(this.latestValues)&&rL(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tV.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:r}=this.options;if(!this.layout||!(s||r))return;this.resolvedRelativeTargetAt=tV.timestamp;let n=this.getClosestProjectingParent();if(n&&this.linkedParentVersion!==n.layoutVersion&&!n.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&n&&n.layout?this.createRelativeTarget(n,this.layout.layoutBox,n.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=J(),this.targetWithTransforms=J()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l,d;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,d=this.options.layoutAnchor||void 0,sX(o.x,a.x,l.x,d?.x),sX(o.y,a.y,l.y,d?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):rD(this.target,this.layout.layoutBox),e1(this.target,this.targetDelta)):rD(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&n&&!!n.resumingFrom==!!this.resumingFrom&&!n.options.layoutScroll&&n.target&&1!==this.animationProgress?this.createRelativeTarget(n,this.target,n.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||eG(this.parent.latestValues)||eJ(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=J(),this.relativeTargetOrigin=J(),sK(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),rD(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
21if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tV.timestamp&&(i=!1),i)return;let{layout:s,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||r))return;rD(this.layoutCorrected,this.layout.layoutBox);let n=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,s=!1){let r,n,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){n=(r=i[a]).projectionDelta;let{visualElement:o}=r.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(e2(t.x,-r.scroll.offset.x),e2(t.y,-r.scroll.offset.y)),n&&(e.x*=n.x.scale,e.y*=n.y.scale,e1(t,n)),s&&eZ(r.latestValues)&&e6(t,r.latestValues,r.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=J());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rN(this.prevProjectionDelta.x,this.projectionDelta.x),rN(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),s_(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===n&&this.treeScale.y===o&&rY(this.projectionDelta.x,this.prevProjectionDelta.x)&&rY(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=G(),this.projectionDelta=G(),this.projectionDeltaWithTransform=G()}setAnimationOrigin(t,e=!1,i){let s,r=this.snapshot,n=r?r.latestValues:{},o={...this.latestValues},a=G();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=J(),d=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,c=!!(d&&!u&&!0===this.options.crossfade&&!this.path.some(no));this.animationProgress=0;let p=i?.interpolateProjection(t);this.mixTargetDelta=e=>{let i=e/1e3,r=p?.(i);if(r?(a.x.translate=r.x,a.x.scale=e$(t.x.scale,1,i),a.x.origin=t.x.origin,a.x.originPoint=t.x.originPoint,a.y.translate=r.y,a.y.scale=e$(t.y.scale,1,i),a.y.origin=t.y.origin,a.y.originPoint=t.y.originPoint):(nr(a.x,t.x,i),nr(a.y,t.y,i)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,m,f,x,g,y;sK(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,x=this.relativeTargetOrigin,g=l,y=i,nn(f.x,x.x,g.x,y),nn(f.y,x.y,g.y,y),s&&(h=this.relativeTarget,m=s,rW(h.x,m.x)&&rW(h.y,m.y))&&(this.isProjectionDirty=!1),s||(s=J()),rD(s,this.relativeTarget)}d&&(this.animationValues=o,function(t,e,i,s,r,n){r?(t.opacity=e$(0,i.opacity??1,rC(s)),t.opacityExit=e$(e.opacity??1,0,rF(s))):n&&(t.opacity=e$(e.opacity??1,i.opacity??1,s));for(let r=0;r<rE;r++){let n=ez[r],o=rk(e,n),a=rk(i,n);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||rT(o)===rT(a)?(t[n]=Math.max(e$(rS(o),rS(a),s),0),(T.test(a)||T.test(o))&&(t[n]+="%")):t[n]=a)}(e.rotate||i.rotate)&&(t.rotate=e$(e.rotate||0,i.rotate||0,s))}(o,n,this.latestValues,i,c,u)),r&&void 0!==r.rotate&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tN(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tD.update(()=>{var e,i,s;let r;rv.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ed(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,i=[0,1e3],s={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}},(r=Q(e)?e:ed(e)).start(sP("",r,i,s)),r.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:s,latestValues:r}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&nu(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||J();let e=sH(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=sH(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}rD(e,i),e6(e,r),s_(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new r_),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
21return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let s={};i.z&&rZ("z",t,s,this.animationValues);for(let e=0;e<rK.length;e++)rZ(`rotate${rK[e]}`,t,s,this.animationValues),rZ(`skew${rK[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=ic(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=ic(e?.pointerEvents)||""),this.hasProjected&&!eZ(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let r=s.animationValues||s.latestValues;this.applyTransformsToTarget();let n=function(t,e,i){let s="",r=t.x.translate/e.x,n=t.y.translate/e.y,o=i?.z||0;if((r||n||o)&&(s=`translate3d(${r}px, ${n}px, ${o}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,pathRotation:r,rotateX:n,rotateY:o,skewX:a,skewY:l}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),r&&(s+=`rotate(${r}deg) `),n&&(s+=`rotateX(${n}deg) `),o&&(s+=`rotateY(${o}deg) `),a&&(s+=`skewX(${a}deg) `),l&&(s+=`skewY(${l}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(s+=`scale(${a}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);i&&(n=i(r,n)),t.transform=n;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,s.animationValues?t.opacity=s===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=s===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,eU){if(void 0===r[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=eU[e],l="none"===n?r[e]:i(r[e],s);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=s===this?ic(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(r4),this.root.sharedNodes.clear()}}}function rQ(t){t.updateLayout()}function r0(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=t.layout,{animationType:r}=t.options,n=e.source!==t.layout.source;if("size"===r)sW(t=>{let s=n?e.measuredBox[t]:e.layoutBox[t],r=sH(s);s.min=i[t].min,s.max=s.min+r});else if("x"===r||"y"===r){let t="x"===r?"y":"x";rM(n?e.measuredBox[t]:e.layoutBox[t],i[t])}else nu(r,e.layoutBox,i)&&sW(s=>{let r=n?e.measuredBox[s]:e.layoutBox[s],o=sH(i[s]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+o)});let o=G();s_(o,i,e.layoutBox);let a=G();n?s_(a,t.applyTransform(s,!0),e.measuredBox):s_(a,i,e.layoutBox);let l=!rO(o),d=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:r,layout:n}=s;if(r&&n){let o=t.options.layoutAnchor||void 0,a=J();sK(a,e.layoutBox,r.layoutBox,o);let l=J();sK(l,i,n.layoutBox,o),rU(a,l)||(d=!0),s.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:d})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function r1(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
21isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function r2(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function r5(t){t.clearSnapshot()}function r4(t){t.clearMeasurements()}function r6(t){t.isLayoutDirty=!0,t.updateLayout()}function r3(t){t.isLayoutDirty=!1}function r8(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function r7(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function r9(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function nt(t){t.resolveTargetDelta()}function ne(t){t.calcProjection()}function ni(t){t.resetSkewAndRotation()}function ns(t){t.removeLeadSnapshot()}function nr(t,e,i){t.translate=e$(e.translate,0,i),t.scale=e$(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function nn(t,e,i,s){t.min=e$(e.min,i.min,s),t.max=e$(e.max,i.max,s)}function no(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let na={duration:.45,ease:[.4,0,.1,1]},nl=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),nd=nl("applewebkit/")&&!nl("chrome/")?Math.round:tC;function nh(t){t.min=nd(t.min),t.max=nd(t.max)}function nu(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(rH(e)-rH(i)))}function nc(t){return t!==t.root&&t.scroll?.wasRoot}let np=rJ({attachResizeListener:(t,e)=>s$(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),nm={current:void 0},nf=rJ({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!nm.current){let t=new np({});t.mount(window),t.setOptions({layoutScroll:!0}),nm.current=t}return nm.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function nx(t,e){let i=sJ(t),s=new AbortController;return[i,{passive:!0,...e,signal:s.signal},()=>s.abort()]}function ng(t,e,i){let{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=s["onHover"+i];r&&tD.postRender(()=>r(e,rt(e)))}let ny=(t,e)=>!!e&&(t===e||ny(t,e.parentElement)),nv=new WeakSet;function nb(t){return e=>{"Enter"===e.key&&t(e)}}function nw(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function nj(t){return s9(t)&&!(sU.x||sU.y)}let nA=new WeakSet;function nE(t,e,i){let{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=s["onTap"+("End"===i?"":i)];r&&tD.postRender(()=>r(e,rt(e)))}let nS=new WeakMap,nT=new WeakMap,nk=t=>{let e=nS.get(t.target);e&&e(t)},nC=t=>{t.forEach(nk)},nF={some:0,all:1},nP=function(t,e){if("u"<typeof Proxy)return iT;let i=new Map,s=(i,s)=>iT(i,s,t,e);return new Proxy((t,e)=>s(t,e),{get:(r,n)=>"create"===n?s:(i.has(n)||i.set(n,iT(n,void 0,t,e)),i.get(n))})}({animation:{Feature:class extends ik{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let s;if(t.notify("AnimationStart",e),Array.isArray(e))s=Promise.all(e.map(e=>sN(t,e,i)));else if("string"==typeof e)s=sN(t,e,i);else{let r="function"==typeof e?iC(t,e,i.custom):e;s=Promise.all(sM(t,r,i))}return s.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=sz(),s=!0,r=!1,n=e=>(i,s)=>{let r=iC(t,s,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...s}=r;i={...i,...s,...e}}return i};function o(o){let{props:a}=t,l=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<sV;t++){let s=ef[t],r=e.props[s];(ep(r)||!1===r)&&(i[s]=r)}return i}(t.parent)||{},d=[],h=new Set,u={},c=1/0;for(let e=0;e<sI;e++){var p,m;let f=sB[e],x=i[f],g=void 0!==a[f]?a[f]:l[f],y=ep(g),v=f===o?x.isActive:null;!1===v&&(c=e);let b=g===l[f]&&g!==a[f]&&y;if(b&&(s||r)&&t.manuallyAnimateOnMount&&(b=!1),x.protectedKeys={...u},!x.isActive&&null===v||!g&&!x.prevProp||ec(g)||"boolean"==typeof g)continue;if("exit"===f&&x.isActive&&!0!==v){x.prevResolvedValues&&(u={...u,...x.prevResolvedValues});continue}let w=(p=x.prevProp,"string"==typeof(m=g)?m!==p:!!Array.isArray(m)&&!sR(m,p)),j=w||f===o&&x.isActive&&!b&&y||e>c&&y,A=!1,E=Array.isArray(g)?g:[g],S=E.reduce(n(f),{});!1===v&&(S={});let{prevResolvedValues:T={}}=x,k={...T,...S},C=e=>{j=!0,h.has(e)&&(A=!0,h.delete(e)),x.needsAnimating[e]=!0;let i=t.getValue(e);
21i&&(i.liveStyle=!1)};for(let t in k){let e=S[t],i=T[t];if(!u.hasOwnProperty(t))(iM(e)&&iM(i)?!sR(e,i)||w:e!==i)?null!=e?C(t):h.add(t):void 0!==e&&h.has(t)?C(t):x.protectedKeys[t]=!0}x.prevProp=g,x.prevResolvedValues=S,x.isActive&&(u={...u,...S}),(s||r)&&t.blockInitialAnimation&&(j=!1);let F=b&&w,P=!F||A;j&&P&&d.push(...E.map(e=>{let i={type:f};if("string"==typeof e&&(s||r)&&!F&&t.manuallyAnimateOnMount&&t.parent){let{parent:s}=t,r=iC(s,e);if(s.enteringChildren&&r){let{delayChildren:e}=r.transition||{};i.delay=sD(s.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof a.initial){let i=iC(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}h.forEach(i=>{let s=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=s??null}),d.push({animation:e})}let f=!!d.length;return s&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(f=!1),s=!1,r=!1,f?e(d):Promise.resolve()}return{animateChanges:o,setActive:function(e,s){if(i[e].isActive===s)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,s)),i[e].isActive=s;let r=o(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=sz(),r=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();ec(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends ik{constructor(){super(...arguments),this.id=sO++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)){let i=iC(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...s}=i;for(let t in s)this.node.getValue(t)?.jump(s[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
21e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends ik{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:s,margin:r,amount:n="some",once:o}=i,a={root:s?s.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:nF[n]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),r=e?i:s;r&&r(t)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let i=t||document;nT.has(i)||nT.set(i,{});let s=nT.get(i),r=JSON.stringify(e);return s[r]||(s[r]=new IntersectionObserver(nC,{root:t,...e})),s[r]}(a),nS.set(t,l),e.observe(t),()=>{nS.delete(t),e.unobserve(t)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends ik{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[s,r,n]=nx(t,i),o=t=>{let s=t.currentTarget;if(!nj(t)||nA.has(t))return;nv.add(s),i.stopPropagation&&nA.add(t);let n=e(s,t),o={...r,capture:!0},a=(t,e)=>{window.removeEventListener("pointerup",l,o),window.removeEventListener("pointercancel",d,o),nv.has(s)&&nv.delete(s),nj(t)&&"function"==typeof n&&n(t,{success:e})},l=t=>{a(t,s===window||s===document||i.useGlobalTarget||ny(s,t.target))},d=t=>{a(t,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",d,o)};return s.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),sG(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let s=nb(()=>{if(nv.has(i))return;nw(i,"down");let t=nb(()=>{nw(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>nw(i,"cancel"),e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)})(t,r)),s8.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),n}(t,(t,e)=>(nE(this.node,e,"Start"),(t,{success:e})=>nE(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends ik{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=iN(s$(this.node.current,"focus",()=>this.onFocus()),s$(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends ik{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[s,r,n]=nx(t,i);return s.forEach(t=>{let i,s=!1,n=!1,o=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},a=t=>{s=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),n&&(n=!1,o(t))},l=t=>{if("touch"!==t.pointerType){if(s){n=!0;return}o(t)}};t.addEventListener("pointerenter",s=>{if("touch"===s.pointerType||sU.x||sU.y)return;n=!1;let o=e(t,s);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",l,r))},r),t.addEventListener("pointerdown",()=>{s=!0,window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",a,r)},r)}),n}(t,(t,e)=>(ng(this.node,e,"Start"),t=>ng(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends ik{constructor(){super(...arguments),this.removePointerDownListener=tC}onPointerDown(t){this.session=new rn(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ri(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:ry(t),onStart:ry(e),onMove:ry(i),onEnd:(t,e)=>{delete this.session,s&&tD.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=re(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends ik{constructor(t){super(t),this.removeGroupControls=tC,this.removeListeners=tC,this.controls=new rf(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tC}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:nf,MeasureLayout:rA},layout:{ProjectionNode:nf,MeasureLayout:rA}},(t,e)=>e.isSVG??e9(t)?new eX(e):new e8(e,{allowProjection:t!==o.Fragment}
21)),nM=(0,t.i(56420).default)("badge-check",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var nD=t.i(43119);function nN(){return(0,n.jsxs)("div",{className:"relative w-full max-w-[400px] aspect-[1/1.4] bg-card rounded-2xl shadow-[0_30px_60px_-15px_rgba(14,94,53,0.15)] dark:shadow-[0_30px_60px_-15px_rgba(16,185,129,0.1)] border border-border/50 border-t-4 border-t-dashed border-t-border flex flex-col p-8 overflow-hidden hover:scale-[1.02] transition-transform duration-700 ease-out",style:{transform:"perspective(1000px) rotateY(-5deg) rotateX(5deg)"},onMouseEnter:t=>{t.currentTarget.style.transform="perspective(1000px) rotateY(0deg) rotateX(0deg)"},onMouseLeave:t=>{t.currentTarget.style.transform="perspective(1000px) rotateY(-5deg) rotateX(5deg)"},children:[(0,n.jsx)("div",{className:"absolute inset-0 opacity-[0.03] dark:opacity-[0.05] pointer-events-none mix-blend-overlay",style:{backgroundImage:'url("data:image/svg+xml,%3Csvg viewBox=%220 0 200 200%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cfilter id=%22noiseFilter%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.8%22 numOctaves=%223%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23noiseFilter)%22/%3E%3C/svg%3E")'}}),(0,n.jsx)("div",{className:"w-16 h-16 rounded-full bg-muted mx-auto mb-6 shadow-inner flex items-center justify-center border border-border/50",children:(0,n.jsx)("span",{className:"text-2xl",children:"🍽️"})}),(0,n.jsx)("div",{className:"text-center text-xl font-black tracking-widest text-foreground mb-8",children:"INVOICE"}),(0,n.jsx)("div",{className:"absolute top-8 right-8 text-sm text-muted-foreground font-mono font-bold",children:"#20261104"}),(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsxs)("div",{className:"flex justify-between border-b border-border/50 pb-2 mb-4 text-xs font-bold text-muted-foreground uppercase tracking-wider",children:[(0,n.jsx)("span",{children:"Item"}),(0,n.jsx)("span",{children:"Price"})]}),[{name:"Wagyu Tomahawk",price:"$450.00"},{name:"Truffle Pasta",price:"$100.00"},{name:"1990 Vintage Wine",price:"$500.00"},{name:"Caviar Service",price:"$200.00"}].map(t=>(0,n.jsxs)("div",{className:"flex justify-between mb-4 text-[15px] font-semibold text-foreground",children:[(0,n.jsx)("span",{children:t.name}),(0,n.jsx)("span",{children:t.price})]},t.name))]}),(0,n.jsx)("div",{className:"border-t-2 border-dashed border-border/50 pt-6 mt-4",children:(0,n.jsxs)("div",{className:"flex justify-between items-end",children:[(0,n.jsx)("div",{className:"text-lg font-black text-foreground",children:"TOTAL"}),(0,n.jsx)("div",{className:"text-3xl font-black text-emerald-500 drop-shadow-sm",children:"$1,250.00"})]})}),(0,n.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-24 bg-gradient-to-t from-card to-transparent pointer-events-none"})]})}function nV({question:t,answer:e,index:i}){let[s,r]=(0,o.useState)(!1);return(0,n.jsxs)(nP.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.1*i},className:"border border-border/50 bg-card/20 hover:bg-card/40 backdrop-blur-sm rounded-2xl overflow-hidden transition-colors",children:[(0,n.jsxs)("button",{onClick:()=>r(!s),className:"w-full px-6 py-5 text-left flex items-center justify-between focus:outline-none",children:[(0,n.jsx)("span",{className:"font-semibold text-lg text-foreground pr-8",children:t}),(0,n.jsx)("span",{className:"text-primary text-xl font-light w-6 h-6 flex items-center justify-center shrink-0",children:s?"−":"+"})]}),(0,n.jsx)(nP.div,{initial:!1,animate:{height:s?"auto":0,opacity:+!!s},className:"overflow-hidden px-6 text-muted-foreground",children:(0,n.jsx)("div",{className:"pb-5 text-lg leading-relaxed",children:e})})]})}t.s(["default",0,function(){return(0,n.jsxs)("div",{className:"min-h-screen bg-background text-foreground flex flex-col selection:bg-primary/20 overflow-x-hidden",children:[(0,n.jsx)("nav",{className:"border-b border-border/40 backdrop-blur-xl fixed top-0 w-full z-50 bg-background/60",children:(0,n.jsxs)("div",{className:"w-full mx-auto px-6 sm:px-10 h-14 flex items-center justify-between relative",children:[(0,n.jsxs)("a",{href:"/",className:"flex items-center gap-2 hover:opacity-80 transition-opacity cursor-pointer z-10",children:[(0,n.jsx)("div",{className:"h-8 w-8 flex items-center justify-center rounded-full p-1",style:{backgroundColor:"#1A3626"},children:(0,n.jsx)("img",{src:"/boclogo.png",alt:"Bills on Chain",className:"h-6 w-auto object-contain"})}),(0,n.jsxs)("span",{className:"text-xl font-bold tracking-tight hidden sm:block",children:["Bills",(0,n.jsx)("span",{className:"text-primary/80",children:"on"}),"Chain"]}),(0,n.jsx)("span",{className:"text-xl font-bold tracking-tight sm:hidden",children:"BOC"}),(0,n.jsx)("span",{className:"text-[9px] sm:text-[10px] font-semibold uppercase tracking-wide text-primary bg-primary/10 border border-primary/20 rounded-full px-2 py-0.5",children:"Beta"})]}),(0,n.jsxs)("div",{className:"flex items-center gap-3 sm:gap-4 z-10",children:[(0,n.jsx)(a.default,{href:"/login",className:"text-[11px] sm:text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",children:"Sign in"}),(0,n.jsxs)(a.default,{href:"/register",className:"inline-flex items-center gap-1 sm:gap-2 bg-primary text-primary-foreground px-3 sm:px-5 py-1.5 
21sm:py-2 rounded-full text-[11px] sm:text-sm font-medium hover:bg-primary/90 transition-colors shadow-sm hover:shadow-primary/20",children:["Join ",(0,n.jsx)("span",{className:"hidden sm:flex bg-background text-primary rounded-full w-5 h-5 items-center justify-center text-[10px] leading-none",children:"→"})]})]})]})}),(0,n.jsxs)("section",{className:"flex-1 flex flex-col lg:flex-row items-center justify-between px-4 sm:px-6 pt-16 pb-8 lg:pt-20 lg:pb-12 relative overflow-hidden max-w-7xl mx-auto w-full gap-8 lg:gap-10",children:[(0,n.jsx)("div",{className:"absolute top-[0%] left-[10%] w-[400px] h-[400px] bg-primary/10 rounded-full blur-[100px] pointer-events-none -z-10"}),(0,n.jsx)("div",{className:"absolute bottom-[0%] right-[10%] w-[400px] h-[400px] bg-emerald-500/10 rounded-full blur-[100px] pointer-events-none -z-10"}),(0,n.jsxs)(nP.div,{initial:"hidden",animate:"visible",variants:{hidden:{},visible:{transition:{staggerChildren:.1}}},className:"flex-1 flex flex-col items-start text-left relative z-10 w-full",children:[(0,n.jsxs)(nP.div,{variants:{hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.6,ease:"easeOut"}}},className:"inline-flex items-center gap-2 rounded-full border border-border/50 px-4 py-1.5 text-xs font-medium text-muted-foreground mb-8 bg-background/50 backdrop-blur-md shadow-sm",children:[(0,n.jsx)("span",{className:"w-2 h-2 rounded-full bg-primary animate-pulse"})," Upload Bills and Earn IDLE Tokens."]}),(0,n.jsxs)(nP.h1,{variants:{hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.6,ease:"easeOut"}}},className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-medium tracking-tight lg:leading-tight mb-6 text-foreground",children:["Upload Your Bills. ",(0,n.jsx)("br",{}),"Earn ",(0,n.jsx)("span",{className:"inline-flex items-center justify-center w-10 h-10 bg-primary text-primary-foreground rounded-full align-middle text-lg mx-2 shadow-sm",children:"❖"}),(0,n.jsx)("br",{}),(0,n.jsx)("span",{className:"bg-gradient-to-r from-primary to-emerald-400 bg-clip-text text-transparent",children:"IDLE Tokens."})]}),(0,n.jsx)(nP.p,{variants:{hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.6,ease:"easeOut"}}},className:"text-base sm:text-lg text-muted-foreground max-w-md mb-6 leading-relaxed font-light",children:"Turn every verified bill into IDLE token rewards."}),(0,n.jsxs)(nP.div,{variants:{hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.6,ease:"easeOut"}}},className:"flex flex-col sm:flex-row items-center gap-4 w-full sm:w-auto",children:[(0,n.jsxs)(a.default,{href:"/register",className:"inline-flex items-center justify-center gap-2 bg-primary text-primary-foreground px-8 py-4 rounded-full text-sm font-semibold hover:bg-primary/90 transition-all w-full sm:w-auto shadow-lg hover:shadow-primary/25 hover:-translate-y-0.5 duration-300",children:["Get Started Today ",(0,n.jsx)("span",{className:"bg-background text-primary rounded-full w-6 h-6 flex items-center justify-center text-xs",children:"→"})]}),(0,n.jsx)(a.default,{href:"#benefits",className:"inline-flex items-center justify-center gap-2 bg-background/50 text-foreground border border-border/50 px-8 py-4 rounded-full text-sm font-semibold hover:bg-muted/50 transition-all w-full sm:w-auto backdrop-blur-md hover:border-border",children:"Why BillsOnChain?"})]})]}),(0,n.jsxs)(nP.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.8,delay:.2,ease:"easeOut"},className:"flex-1 w-full grid grid-cols-2 grid-rows-[auto_auto] gap-3 sm:gap-4 relative z-10 lg:mt-0",children:[(0,n.jsxs)("div",{className:"col-span-2 rounded-[1.5rem] sm:rounded-[2.5rem] bg-card/40 backdrop-blur-xl border border-border/50 overflow-hidden relative min-h-[220px] sm:min-h-[300px] flex items-center justify-center p-4 sm:p-8 group shadow-2xl",children:[(0,n.jsx)(nP.div,{animate:{y:[-8,8,-8]},transition:{duration:6,repeat:1/0,ease:"easeInOut"},className:"scale-[0.5] sm:scale-[0.65] md:scale-75 origin-center pointer-events-none",children:(0,n.jsx)(nN,{})}),(0,n.jsxs)("div",{className:"absolute top-6 left-6 bg-background/80 backdrop-blur-md border border-border/50 text-xs font-medium px-3 py-1.5 rounded-full flex items-center gap-1.5 shadow-sm group-hover:bg-primary group-hover:text-primary-foreground transition-colors duration-500",children:[(0,n.jsx)("span",{className:"text-primary group-hover:text-primary-foreground transition-colors",children:"❖"})," Smart Capture"]}),(0,n.jsxs)("div",{className:"absolute bottom-6 right-6 bg-background/80 backdrop-blur-md border border-border/50 text-xs font-medium px-3 py-1.5 rounded-full flex items-center gap-1.5 shadow-sm group-hover:bg-primary group-hover:text-primary-foreground transition-colors duration-500",children:[(0,n.jsx)("span",{className:"text-primary group-hover:text-primary-foreground transition-colors",children:"❖"})," Verified Truth"]})]}),(0,n.jsxs)("div",{className:"rounded-[1.5rem] sm:rounded-[2rem] bg-card/40 backdrop-blur-xl border border-border/50 p-4 sm:p-6 flex flex-col justify-end min-h-[160px] sm:min-h-[220px] relative overflow-hidden group hover:bg-card/60 transition-colors shadow-lg",children:[(0,n.jsxs)("div",{className:"absolute top-6 left-6 flex -sp
21ace-x-3",children:[(0,n.jsx)("div",{className:"w-10 h-10 rounded-full border-2 border-card bg-muted flex items-center justify-center text-xs shadow-sm",children:"👤"}),(0,n.jsx)("div",{className:"w-10 h-10 rounded-full border-2 border-card bg-muted flex items-center justify-center text-xs shadow-sm",children:"👤"}),(0,n.jsx)("div",{className:"w-10 h-10 rounded-full border-2 border-card bg-primary text-primary-foreground flex items-center justify-center text-xs shadow-sm",children:"+"})]}),(0,n.jsx)("div",{className:"text-xs sm:text-sm font-medium mb-2 sm:mb-4 text-foreground/80",children:"100K ++ bills verified."}),(0,n.jsx)("h3",{className:"text-sm sm:text-lg md:text-xl font-medium tracking-tight leading-tight text-foreground group-hover:text-primary transition-colors duration-300",children:"Join us in transforming invoice verification."})]}),(0,n.jsx)("div",{className:"rounded-[1.5rem] sm:rounded-[2rem] bg-muted/30 backdrop-blur-xl overflow-hidden min-h-[160px] sm:min-h-[220px] flex items-center justify-center p-4 sm:p-6 relative border border-border/50 group shadow-lg",children:(0,n.jsx)(nP.div,{whileHover:{rotate:180,scale:1.1},transition:{duration:.6,ease:"easeOut"},className:"w-24 h-24 rounded-full bg-primary/10 flex items-center justify-center cursor-pointer",children:(0,n.jsx)("span",{className:"text-4xl text-primary drop-shadow-sm",children:"⛓️"})})})]})]}),(0,n.jsxs)("section",{className:"py-10 border-t border-border/40 bg-muted/5 overflow-hidden relative mt-12 sm:mt-16",children:[(0,n.jsx)("div",{className:"absolute left-0 top-0 bottom-0 w-24 z-10 bg-gradient-to-r from-background to-transparent pointer-events-none"}),(0,n.jsx)("div",{className:"absolute right-0 top-0 bottom-0 w-24 z-10 bg-gradient-to-l from-background to-transparent pointer-events-none"}),(0,n.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6",children:[(0,n.jsx)("p",{className:"text-center text-sm font-medium text-muted-foreground mb-6 uppercase tracking-widest relative z-20",children:"Supported Anywhere, Anytime"}),(0,n.jsx)("div",{className:"flex overflow-hidden w-full group",children:(0,n.jsx)(nP.div,{animate:{x:["0%","-50%"]},transition:{duration:40,repeat:1/0,ease:"linear"},className:"flex gap-16 min-w-max items-center opacity-60 grayscale group-hover:grayscale-0 transition-[filter] duration-500 pr-16",children:["Amazon","Walmart","Starbucks","Uber","Target","McDonald's","Zara","Best Buy","Delta","Airbnb","Amazon","Walmart","Starbucks","Uber","Target","McDonald's","Zara","Best Buy","Delta","Airbnb"].map((t,e)=>(0,n.jsx)("div",{className:"text-xl sm:text-2xl font-bold font-mono tracking-tighter text-foreground/70 shrink-0",children:t},e))})})]})]}),(0,n.jsx)("section",{children:(0,n.jsx)(d,{})}
21),(0,n.jsxs)("section",{id:"benefits",className:"py-20 sm:py-32 relative z-10 max-w-7xl mx-auto px-4 sm:px-6",children:[(0,n.jsxs)("div",{className:"text-center mb-20",children:[(0,n.jsx)("h2",{className:"text-3xl sm:text-5xl font-bold tracking-tight mb-6",children:"Why BillsOnChain?"}),(0,n.jsx)("p",{className:"text-muted-foreground text-lg max-w-3xl mx-auto leading-relaxed",children:"BillsOnChain is a revolutionary Web3 platform that transforms everyday spending into real digital assets by bridging the gap between physical receipts and the blockchain. Securely upload your receipts, earn instant rewards, and build a transparent, verifiable transaction history — turning routine purchases into valuable on-chain activity."})]}),(0,n.jsx)("div",{className:"max-w-5xl mx-auto text-center",children:(0,n.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 text-center relative",children:[(0,n.jsx)("div",{className:"hidden md:block absolute top-8 left-[15%] right-[15%] h-[2px] bg-gradient-to-r from-primary/10 via-primary/30 to-primary/10 -z-10"}),(0,n.jsxs)("div",{className:"flex flex-col items-center",children:[(0,n.jsx)("div",{className:"w-16 h-16 rounded-full bg-background border border-primary/30 flex items-center justify-center mb-5 shadow-[0_0_15px_rgba(16,185,129,0.15)] relative z-10",children:(0,n.jsx)("span",{className:"text-2xl font-bold text-primary",children:"1"})}),(0,n.jsx)("h4",{className:"text-lg font-bold mb-2 text-foreground",children:"Snap & Upload"}),(0,n.jsx)("p",{className:"text-muted-foreground text-sm leading-relaxed",children:"Take a photo of any receipt. Our AI securely verifies the details instantly."})]}),(0,n.jsxs)("div",{className:"flex flex-col items-center",children:[(0,n.jsx)("div",{className:"w-16 h-16 rounded-full bg-background border border-primary/30 flex items-center justify-center mb-5 shadow-[0_0_15px_rgba(16,185,129,0.15)] relative z-10",children:(0,n.jsx)("span",{className:"text-2xl font-bold text-emerald-500",children:"2"})}),(0,n.jsx)("h4",{className:"text-lg font-bold mb-2 text-foreground",children:"Earn IDLE Tokens"}),(0,n.jsx)("p",{className:"text-muted-foreground text-sm leading-relaxed",children:"Every valid receipt pays you back in IDLE tokens sent right to your wallet."})]}),(0,n.jsxs)("div",{className:"flex flex-col items-center",children:[(0,n.jsx)("div",{className:"w-16 h-16 rounded-full bg-background border border-primary/30 flex items-center justify-center mb-5 shadow-[0_0_15px_rgba(16,185,129,0.15)] relative z-10",children:(0,n.jsx)("span",{className:"text-2xl font-bold text-blue-500",children:"3"})}),(0,n.jsx)("h4",{className:"text-lg font-bold mb-2 text-foreground",children:"Earn More IDLE"}),(0,n.jsx)("p",{className:"text-muted-foreground text-sm leading-relaxed",children:"Build your on-chain history to unlock bonus IDLE token rewards and multipliers."})]})]})})]}),(0,n.jsx)("section",{className:"py-12 sm:py-20 relative z-10 max-w-[75rem] mx-auto px-4 sm:px-6",children:(0,n.jsxs)("div",{className:"bg-card/30 backdrop-blur-3xl border border-border/50 rounded-[3rem] p-6 sm:p-10 flex flex-col md:flex-row items-center gap-12 overflow-hidden relative shadow-2xl",children:[(0,n.jsx)("div",{className:"absolute top-0 right-0 w-[400px] h-[400px] bg-primary/10 rounded-full blur-[100px] pointer-events-none"}),(0,n.jsxs)("div",{className:"flex-1 text-center md:text-left z-10",children:[(0,n.jsxs)("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-primary/10 text-primary text-sm font-medium mb-6",children:[(0,n.jsx)("span",{className:"w-2 h-2 rounded-full bg-primary animate-pulse"})," Ecosystem"]}),(0,n.jsx)("h2",{className:"text-3xl sm:text-5xl font-bold tracking-tight mb-6",children:"Earn IDLE Tokens Through Our Reward Ecosystem"}),(0,n.jsx)("p",{className:"text-muted-foreground text-lg mb-8 leading-relaxed",children:"It's not just points. It's real value on the Hedera network. Hold IDLE tokens or redeem them for exclusive partner discounts."}),(0,n.jsxs)("ul",{className:"space-y-4 text-left inline-block md:block",children:[(0,n.jsxs)("li",{className:"flex items-center gap-3",children:[(0,n.jsx)("span",{className:"text-primary text-xl",children:"✓"})," Earn IDLE Tokens per receipt"]}),(0,n.jsxs)("li",{className:"flex items-center gap-3",children:[(0,n.jsx)("span",{className:"text-primary text-xl",children:"✓"}
21)," Unlock bonus IDLE rewards across spending categories"]}),(0,n.jsxs)("li",{className:"flex items-center gap-3",children:[(0,n.jsx)("span",{className:"text-primary text-xl",children:"✓"})," Participate in weekly IDLE reward pools"]})]})]}),(0,n.jsx)("div",{className:"flex-1 w-full flex justify-center z-10 relative",children:(0,n.jsxs)("div",{className:"relative w-[300px] h-[300px]",children:[(0,n.jsxs)("div",{className:"absolute top-4 right-4 w-36 h-48 bg-card rounded-2xl border border-border/50 shadow-2xl p-4 flex flex-col items-center justify-center z-20",children:[(0,n.jsxs)("div",{className:"relative w-10 h-10 mb-3",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-primary/30 blur-[20px] rounded-full"}),(0,n.jsxs)("div",{className:"relative w-full h-full rounded-2xl bg-gradient-to-br from-card to-card/50 border border-primary/30 flex items-center justify-center shadow-[inset_0_1px_1px_rgba(255,255,255,0.1)]",children:[(0,n.jsx)(nM,{size:16,strokeWidth:1.5,className:"text-primary drop-shadow-[0_0_8px_rgba(16,185,129,0.5)]"}),(0,n.jsx)("div",{className:"absolute inset-0 rounded-2xl bg-gradient-to-tr from-transparent via-transparent to-primary/10 pointer-events-none"})]})]}),(0,n.jsx)("div",{className:"text-sm font-bold text-center",children:"Verified Buyer"}),(0,n.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:"500 IDLE"})]}),(0,n.jsxs)("div",{className:"absolute bottom-4 left-4 w-36 h-48 bg-card rounded-2xl border border-border/50 shadow-2xl p-4 flex flex-col items-center justify-center z-10",children:[(0,n.jsxs)("div",{className:"relative w-10 h-10 mb-3",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-emerald-500/30 blur-[20px] rounded-full"}),(0,n.jsxs)("div",{className:"relative w-full h-full rounded-full bg-gradient-to-br from-card to-card/50 border border-emerald-500/30 flex items-center justify-center shadow-[inset_0_1px_1px_rgba(255,255,255,0.1)]",children:[(0,n.jsx)(nD.Coins,{size:16,strokeWidth:1.5,className:"text-emerald-500 drop-shadow-[0_0_8px_rgba(16,185,129,0.5)]"}),(0,n.jsx)("div",{className:"absolute inset-0 rounded-full bg-gradient-to-tr from-transparent via-transparent to-emerald-500/10 pointer-events-none"})]})]}),(0,n.jsx)("div",{className:"text-xl font-bold",children:"500 IDLE"}),(0,n.jsx)("div",{className:"text-xs text-emerald-500 mt-1",children:"+12.5% this week"})]})]})})]})}),(0,n.jsxs)("section",{id:"faq",className:"max-w-4xl mx-auto px-4 sm:px-6 py-16 sm:py-24 relative z-10 w-full",children:[(0,n.jsx)(nP.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6},children:(0,n.jsx)("h2",{className:"text-3xl sm:text-5xl font-bold text-center mb-12 tracking-tight",children:"Frequently Asked Questions"})}),(0,n.jsx)("div",{className:"flex flex-col gap-4",children:[{q:"What is Bills on Chain (BOC)?",a:"Bills on Chain (BOC) is a Web3 rewards platform that allows users to earn IDLE tokens by uploading everyday bills and receipts. Built on the Hedera network, it transforms daily spending into IDLE token rewards."},{q:"How does Bills on Chain work?",a:"BOC works in three simple steps: 1. Upload your bill or receipt, 2. AI verifies the bill’s authenticity, 3. Receive instant IDLE token rewards directly in your wallet. This process converts your real-world purchases into blockchain-based rewards."},{q:"Can I really earn crypto by uploading receipts?",a:"Yes, with Bills on Chain you can earn IDLE tokens instantly for every verified bill you upload. The more valid receipts you submit, the more rewards you accumulate."},{q:"What types of receipts are accepted on BOC?",a:"Bills on Chain supports a wide range of everyday expenses, including: Grocery receipts, Utility bills, Fuel receipts, Dining bills, and Retail purchase invoices. Uploading receipts across multiple categories helps unlock higher IDLE token rewards."},{q:"What rewards do I get on Bills on Chain?",a:"Users earn IDLE tokens (instant crypto rewards) for every verified bill upload. These rewards can be tracked, collected, and used within the platform ecosystem."},{q:"Do I need a crypto wallet to use Bills on Chain?",a:"Yes, you need a connected crypto wallet to receive your IDLE tokens. The platform supports seamless wallet integration for easy reward transfers."},{q:"Can I redeem my IDLE tokens?",a:"Yes, IDLE tokens can be used within the ecosystem for: Rewards, Partner offers, and Weekly pools and incentives. They can also be c
21onverted into fiat currency."}].map((t,e)=>(0,n.jsx)(nV,{question:t.q,answer:t.a,index:e},e))})]}),(0,n.jsx)("section",{className:"max-w-6xl mx-auto px-4 sm:px-6 py-16 sm:py-28 w-full relative z-20",children:(0,n.jsxs)(nP.div,{initial:{opacity:0,scale:.95,y:20},whileInView:{opacity:1,scale:1,y:0},viewport:{once:!0},transition:{duration:.7,ease:"easeOut"},className:"rounded-[2.5rem] sm:rounded-[3rem] border border-border/50 bg-card/40 backdrop-blur-3xl p-8 sm:p-14 md:p-16 flex flex-col sm:flex-row items-center justify-between gap-8 sm:gap-12 relative overflow-hidden shadow-2xl",children:[(0,n.jsx)(nP.div,{animate:{scale:[1,1.2,1],opacity:[.3,.5,.3]},transition:{duration:8,repeat:1/0,ease:"easeInOut"},className:"absolute top-0 right-0 w-[500px] h-[500px] bg-primary/20 rounded-full blur-[120px] -translate-y-1/2 translate-x-1/3 pointer-events-none"}),(0,n.jsx)(nP.div,{animate:{scale:[1,1.3,1],opacity:[.2,.4,.2]},transition:{duration:10,repeat:1/0,ease:"easeInOut",delay:1},className:"absolute bottom-0 left-0 w-[500px] h-[500px] bg-emerald-400/20 rounded-full blur-[120px] translate-y-1/2 -translate-x-1/3 pointer-events-none"}),(0,n.jsxs)("div",{className:"relative z-10 text-foreground text-center sm:text-left flex-1",children:[(0,n.jsx)("h3",{className:"text-3xl sm:text-5xl font-bold tracking-tight mb-4 text-foreground",children:"Ready to get started?"}),(0,n.jsx)("p",{className:"text-muted-foreground text-lg max-w-2xl leading-relaxed",children:"It's free. No credit card, no wallet required."})]}),(0,n.jsx)(nP.div,{whileHover:{scale:1.05},whileTap:{scale:.95},className:"relative z-10 shrink-0",children:(0,n.jsxs)(a.default,{href:"/register",className:"inline-flex items-center justify-center gap-2 bg-primary text-primary-foreground px-8 py-4 rounded-full text-sm font-semibold hover:bg-primary/90 transition-all shadow-xl hover:shadow-primary/30 hover:-translate-y-1 duration-300",children:["Join now ",(0,n.jsx)("span",{className:"bg-background text-primary rounded-full w-6 h-6 flex items-center justify-center text-xs",children:"→"})]})})]})}),(0,n.jsx)("footer",{className:"border-t border-border/40 bg-background/50 backdrop-blur-lg pt-16 pb-8",children:(0,n.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6",children:[(0,n.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-12 mb-16",children:[(0,n.jsxs)("div",{className:"md:col-span-1",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 font-bold text-xl mb-4",children:[(0,n.jsx)("span",{className:"w-8 h-8 rounded bg-primary/20 flex items-center justify-center text-primary",children:"⛓️"}),"BOC"]}),(0,n.jsx)("p",{className:"text-muted-foreground text-sm leading-relaxed mb-6",children:"Turn your everyday receipts into IDLE token rewards through the power of Hedera."}),(0,n.jsxs)("div",{className:"flex gap-4",children:[(0,n.jsx)(a.default,{href:"https://x.com/billsonchain?s=11",target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 rounded-full bg-muted flex items-center justify-center text-muted-foreground hover:bg-primary hover:text-primary-foreground transition-all hover:scale-110 shadow-sm",children:(0,n.jsx)("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"currentColor",stroke:"none",children:(0,n.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})}),(0,n.jsx)(a.default,{href:"https://www.instagram.com/billsonchain/",target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 rounded-full bg-muted flex items-center justify-center text-muted-foreground hover:bg-primary hover:text-primary-foreground transition-all hover:scale-110 shadow-sm",children:(0,n.jsxs)("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("rect",{x:"2",y:"2",width:"20",height:"20",rx:"5",ry:"5"}),(0,n.jsx)("path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"}),(0,n.jsx)("line",{x1:"17.5",y1:"6.5",x2:"17.51",y2:"6.5"})]})}),(0,n.jsx)(a.default,{href:"https://www.facebook.com/profile.php?id=61589927018296",target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 rounded-full bg-muted flex items-center justify-center text-muted-foreground hover:bg-primary hover:text-primary-foreground transition-all hover:scale-110 shadow-sm",children:(0,n.jsx)("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",fill:"
21currentColor",stroke:"none",children:(0,n.jsx)("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.469h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.469h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})})}),(0,n.jsx)(a.default,{href:"https://t.me/billsonchainchat",target:"_blank",rel:"noopener noreferrer",className:"w-10 h-10 rounded-full bg-muted flex items-center justify-center text-muted-foreground hover:bg-primary hover:text-primary-foreground transition-all hover:scale-110 shadow-sm",children:(0,n.jsx)("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",fill:"currentColor",stroke:"none",children:(0,n.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.64 6.8c-.15 1.58-.8 5.42-1.13 7.19-.14.75-.42 1-.68 1.03-.58.05-1.02-.38-1.58-.75-.88-.58-1.38-.94-2.23-1.5-.99-.65-.35-1.01.22-1.59.15-.15 2.71-2.48 2.76-2.69a.2.2 0 00-.05-.18c-.06-.05-.14-.03-.21-.02-.09.02-1.46.93-4.12 2.73-.39.27-.74.4-1.06.39-.35-.01-1.03-.2-1.53-.36-.61-.2-1.1-.31-1.08-.66.01-.18.27-.36.78-.56 3.03-1.32 5.06-2.19 6.09-2.62 2.9-1.2 3.5-1.4 3.89-1.41.09 0 .28.02.4.1.11.08.15.19.16.29.01.07.01.16 0 .25z"})})})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h4",{className:"font-semibold mb-4 text-foreground",children:"Platform"}),(0,n.jsxs)("ul",{className:"space-y-3 text-sm text-muted-foreground",children:[(0,n.jsx)("li",{children:(0,n.jsx)(a.default,{href:"#benefits",className:"hover:text-primary transition-colors",children:"Benefits"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a.default,{href:"#faq",className:"hover:text-primary transition-colors",children:"FAQ"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a.default,{href:"/register",className:"hover:text-primary transition-colors",children:"Create Account"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a.default,{href:"/login",className:"hover:text-primary transition-colors",children:"Sign In"})})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h4",{className:"font-semibold mb-4 text-foreground",children:"Legal"}),(0,n.jsxs)("ul",{className:"space-y-3 text-sm text-muted-foreground",children:[(0,n.jsx)("li",{children:(0,n.jsx)(a.default,{href:"/privacy",className:"hover:text-primary transition-colors",children:"Privacy Policy"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a.default,{href:"/terms",className:"hover:text-primary transition-colors",children:"Terms & Conditions"})}),(0,n.jsx)("li",{children:(0,n.jsx)(a.default,{href:"/do-not-sell",className:"hover:text-primary transition-colors",children:"Do Not Sell or Share My Info"})})]})]})]}),(0,n.jsx)("div",{className:"pt-8 border-t border-border/40 flex flex-col md:flex-row justify-between items-center gap-4 text-xs text-muted-foreground",children:(0,n.jsxs)("p",{children:["© ",new Date().getFullYear()," Bills on Chain. All rights reserved."]})})]})})]})}],31713)}]);

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