PageSourceSearch

https://variata.ai/_next/static/chunks/2zy47f67bqsv_.js

js variata.ai collected 2026-10-05 13:10:06 UTC 187,667 bytes, 9 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,952683,e=>{"use strict";let t,i,s;var r,n=e.i(916791),a=e.i(549847),o=e.i(755825),l=e.i(566478),h=e.i(440841);let u=()=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"url(#a)",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:"a",x1:"0%",y1:"0%",x2:"100%",y2:"100%",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("stop",{offset:"0%",stopColor:"#805ad5"}),(0,n.jsx)("stop",{offset:"100%",stopColor:"#4299e1"})]})}),(0,n.jsx)("rect",{x:"5",y:"11.5",width:"14",height:"0.5",rx:"0.25",fill:"url(#a)"})]}),d=()=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"url(#a)",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:"a",x1:"0%",y1:"0%",x2:"100%",y2:"100%",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("stop",{offset:"0%",stopColor:"#805ad5"}),(0,n.jsx)("stop",{offset:"100%",stopColor:"#4299e1"})]})}),(0,n.jsx)("path",{d:"M12 5v14m-7-7h14"})]}),c=({className:e})=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"url(#a)",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:e,children:[(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:"a",x1:"0%",y1:"0%",x2:"100%",y2:"100%",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("stop",{offset:"0%",stopColor:"#805ad5"}),(0,n.jsx)("stop",{offset:"100%",stopColor:"#4299e1"})]})}),(0,n.jsx)("path",{d:"M5 12h14m0 0l-7-7m7 7l-7 7"})]}),m=({children:e,width:t=500,height:i=400})=>{let s=(0,h.useRef)(null),[r,a]=(0,h.useState)(1),[o,l]=(0,h.useState)(0),u=i/t;return(0,h.useEffect)(()=>{if(!s.current)return;let e=()=>{if(!s.current)return;let e=s.current.parentElement?.clientWidth||t;l(e),a(Math.min(1,e/t))};e();let i=new ResizeObserver(e);return s.current.parentElement&&i.observe(s.current.parentElement),window.addEventListener("resize",e),()=>{i.disconnect(),window.removeEventListener("resize",e)}},[t,i]),(0,n.jsx)("div",{ref:s,className:"relative mx-auto h-full w-full overflow-hidden",style:{maxWidth:t},children:(0,n.jsx)("div",{className:"relative w-full",style:{paddingBottom:`${100*u}%`},children:(0,n.jsx)("div",{className:"absolute inset-0 origin-top-left",style:{width:t,height:i,transform:`scale(${r})`,transformOrigin:"top left"},children:e})})})};var p=e.i(686308);let f=(0,p.default)("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);var g=e.i(664196),x=e.i(228827);let v=[{title:"Feature.jira",svg:(0,n.jsx)("img",{src:"https://www.svgrepo.com/show/353935/jira.svg",alt:"JIRA icon",className:"h-full w-full"})},{title:"Requirements.docx",svg:(0,n.jsx)("img",{src:"https://www.svgrepo.com/show/374187/word.svg",alt:"Word icon",className:"h-full w-full"})},{title:"Test Suite.xlsx",svg:(0,n.jsx)("img",{src:"https://www.svgrepo.com/show/373589/excel.svg",alt:"Excel icon",className:"h-full w-full"})}],y=({title:e,svg:t,index:i,currentAnimatingIndex:s,isReset:r})=>{let a=s===i,[o,l]=(0,h.useState)(!1),[u,d]=(0,h.useState)(!1);(0,h.useEffect)(()=>{if(a){let e=setTimeout(()=>{d(!0)},1e3);return()=>clearTimeout(e)}if(!a&&u){l(!0);let e=setTimeout(()=>{l(!1),d(!1)},800);return()=>clearTimeout(e)}},[a,u]);let c={position:"absolute",left:`${10+30*i}%`,top:"5%",width:"25%",transform:a||u&&!o?"translate(0, 30%) scale(0.6)":"translate(0, 0) scale(1)",opacity:+!u,transition:a?"transform 1s ease-in-out":o?"transform 0.8s ease-in-out":"all 0.8s ease-in-out",zIndex:v.length-i};return(0,n.jsx)("div",{style:c,className:"h-full w-full",children:(0,n.jsxs)("div",{className:"flex items-center gap-2 rounded-lg border border-gray-200 bg-white p-1.5 shadow-sm transition-shadow hover:shadow-md",children:[(0,n.jsx)("div",{className:"h-5 w-5 flex-shrink-0",children:t}),(0,n.jsx)("div",{className:"flex-1 truncate text-[9px] font-medium",children:e})]})})},w=({isSuccess:e,successText:t})=>(0,n.jsx)("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:e?(0,n.jsxs)("div",{className:"flex flex-col items-center",children:[(0,n.jsx)("svg",{className:"mb-1.5 aspect-square w-[25%] text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),t&&(0,n.jsxs)("div",{className:"px-4 text-center text-xs font-medium text-green-600",children:[t," uploaded successfully"]})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("svg",{className:"mb-[3%] aspect-square w-[15%] text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"})}),(0,n.jsx)("div",{className:"px-4 text-center text-xs font-medium text-gray-600",children:"Upload business requirements and test scripts"})]})}),b=({isAnimating:e,currentFile:t})=>{let[i,s]=(0,h.useState)(!1);return(0,h.useEffect)(()=>
1{if(e){let e=setTimeout(()=>{s(!0)},1250);return()=>clearTimeout(e)}s(!1)},[e]),(0,n.jsx)("div",{style:{position:"absolute",left:"2%",top:"30%",width:"96%",aspectRatio:"16/5",transition:"all 0.3s ease-in-out"},className:`flex flex-col items-center justify-center rounded-lg border-2 border-dashed ${i?"border-green-500 bg-green-50":"border-purple-300 bg-gradient-to-br from-purple-50 to-blue-50"} `,children:(0,n.jsx)(w,{isSuccess:i,successText:t})})},j=[{title:"Upload",icon:(0,n.jsx)(f,{className:"h-4 w-4"}),preview:(0,n.jsx)(()=>{let[e,t]=(0,h.useState)(-1),[i,s]=(0,h.useState)(!1);return(0,h.useEffect)(()=>{let e=async()=>{for(let e=0;e<v.length;e++)t(e),await new Promise(e=>setTimeout(e,1e3)),await new Promise(e=>setTimeout(e,500)),await new Promise(e=>setTimeout(e,1e3)),t(-1),await new Promise(e=>setTimeout(e,1e3)),await new Promise(e=>setTimeout(e,500));await new Promise(e=>setTimeout(e,1e3)),s(e=>!e)},i=setInterval(()=>{e()},12e3);return e(),()=>clearInterval(i)},[]),(0,n.jsx)("div",{className:"relative flex h-full w-full items-center justify-center p-6",children:(0,n.jsx)(m,{width:400,height:300,children:(0,n.jsxs)("div",{className:"relative h-full w-full",children:[v.map((t,s)=>(0,n.jsx)(y,{title:t.title,svg:t.svg,index:s,currentAnimatingIndex:e,isReset:i},t.title)),(0,n.jsx)(b,{isAnimating:-1!==e,currentFile:-1!==e?v[e]?.title:void 0})]})})})},{})},{title:"Scan",icon:(0,n.jsx)(g.Globe,{className:"h-4 w-4"}),preview:(0,n.jsx)(()=>{let[e,t]=(0,h.useState)(0),[i]=(0,h.useState)(()=>Array.from({length:5},()=>40*Math.random()+60));return(0,h.useEffect)(()=>{let e=setInterval(()=>{t(e=>(e+1)%101)},50);return()=>clearInterval(e)},[]),(0,n.jsx)("div",{className:"relative flex h-full w-full items-center justify-center",children:(0,n.jsxs)("div",{className:"h-[90%] w-3/5 overflow-hidden rounded-lg border border-gray-200 bg-white shadow-sm",children:[(0,n.jsxs)("div",{className:"flex h-7 items-center gap-2 bg-gray-800 px-3",children:[(0,n.jsxs)("div",{className:"flex gap-1.5",children:[(0,n.jsx)("div",{className:"size-1.5 rounded-full bg-gray-600"}),(0,n.jsx)("div",{className:"size-1.5 rounded-full bg-gray-600"}),(0,n.jsx)("div",{className:"size-1.5 rounded-full bg-gray-600"})]}),(0,n.jsx)("div",{className:"flex flex-1 items-center",children:(0,n.jsx)("div",{className:"flex h-4 w-full items-center justify-center rounded bg-gray-700",children:(0,n.jsx)("span",{className:"text-[10px] text-gray-400",children:"variata.ai"})})})]}),(0,n.jsxs)("div",{className:"space-y-3 p-4",children:[(0,n.jsx)("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-gray-100",children:(0,n.jsx)("div",{className:"h-full bg-gradient-to-r from-purple-500 to-blue-500 transition-all duration-200",style:{width:`${e}%`}})}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)("div",{className:"text-xs text-gray-500",children:"Scanning website..."}),(0,n.jsx)("div",{className:"space-y-1.5",children:i.map((e,t)=>(0,n.jsx)("div",{className:"h-2.5 rounded-full bg-gradient-to-br from-purple-100 to-blue-100",style:{width:`${e}%`,opacity:1-.15*t}},t))})]})]})]})})},{})},{title:"Edit",icon:(0,n.jsx)(x.Pencil,{className:"h-4 w-4"}),preview:(0,n.jsx)(()=>{let[e,t]=(0,h.useState)(0),[i,s]=(0,h.useState)(null),[r]=(0,h.useState)(()=>Array.from({length:8},()=>30*Math.random()+60));return(0,h.useEffect)(()=>{let e=setInterval(()=>{t(e=>(e+1)%4)},2e3);return()=>clearInterval(e)},[]),(0,n.jsx)("div",{className:"relative h-full w-full overflow-hidden rounded-lg border border-gray-200 bg-white p-4 shadow-sm",children:(0,n.jsx)("div",{className:"space-y-3",children:[void 0,void 0,void 0,void 0].map((t,a)=>(0,n.jsx)("div",{className:`relative cursor-move rounded-lg p-3 transition-all duration-300 ${a===e?"bg-gradient-to-br from-purple-50 to-blue-50":"bg-white"} border border-gray-200 hover:shadow-md`,onMouseEnter:()=>s(a),onMouseLeave:()=>s(null),children:(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("div",{className:`flex h-5 w-5 items-center justify-center rounded-full text-xs font-medium ${a===e?"bg-blue-100 text-blue-600":"bg-gray-100 text-gray-600"} `,children:a+1}),(0,n.jsx)("div",{className:`h-4 flex-1 rounded-full transition-all duration-300 ${a===e?"bg-gradient-to-r from-purple-200 to-blue-200":"bg-gradient-to-r from-gray-100 to-gray-200"} `,style:{width:"60%"}}),(0,n.jsx)("div",{className:`rounded p-1 transition-opacity duration-200 ${i===a?"opacity-100":"opacity-0"} `,children:(0,n.jsx)(x.Pencil,{className:"h-4 w-4 text-gray-400"})})]}),(0,n.jsx)("div",{className:"space-y-2 pl-7",children:[void 0,void 0].map((t,i)=>(0,n.jsx)("div",{className:`h-2 rounded-full transition-all duration-300 ${a===e?"bg-gradient-to-r from-purple-100 to-blue-100":"bg-gray-100"} `,style:{width:`${r[2*a+i]}%`}},i))})]})},a))})})},{})}],T=({section:e,isActive:t,onClick:i})=>(0,n.jsxs)("div",{onClick:i,className:`flex flex-1 cursor-pointer items-center justify-center gap-2 rounded-lg px-4 py-2 transition-all duration-300 ${t?"border-gradient-to-br border-2 bg-gradient-to-br from-purple-600 to-blue-500":"border border-gray-200 hover:border-blue-200"} `,children:[(0,n.jsx)("div",{className:`transition-colors duration-300 ${t?"text-white":"text-gray-700"} `,children:e.icon}),(0,n.jsx)("span",{className:`text-sm font-medium ${t?"text-white":"text-gray-700"}`,children:e.title})]}),S=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],k=new Set(S),N=(e,t,i)=>i>t?t:i<e?e:i,P={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},C={...P,transform:e=>N(0,1,e)},M={...P,default:1},A=e=>Math.round(1e5*e)/1e5,E=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,V=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,L=(e,t)=>i=>!!("string"==typeof i&&V.test(i)&&i.startsWith(e)||t&&null!=i&&Object.prototype.hasOwnProperty.call(i,t)),R=(e,t,i)=>s=>{if("string"!=typeof s)return s;let[r,n,a,o]=s.match(E);return{[e]:parseFloat(r),[t]:parseFloat(n),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},D={...P,transform:e=>Math.round(N(0,255,e))},B={test:L("rgb","red"),parse:R("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:s=1})=>"rgba("+D.transform(e)+", "+D.transform(t)+", "+D.transform(i)+", "+A(C.transform(s))+")"},I={test:L("#"),parse:function(e){let t="",i="",s="",r="";return e.length>5?(t=e.substring(1,3),i=e.substring(3,5),s=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),i=e.substring(2,3),s=e.substring(3,4),r=e.substring(4,5),t+=t,i+=i,s+=s,r+=r),{red:parseInt(t,16),green:parseInt(i,16),blue:parseInt(s,16),alph
1a:r?parseInt(r,16)/255:1}},transform:B.transform},$=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),F=$("deg"),O=$("%"),W=$("px"),U=$("vh"),H=$("vw"),z={...O,parse:e=>O.parse(e)/100,transform:e=>O.transform(100*e)},Y={test:L("hsl","hue"),parse:R("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:s=1})=>"hsla("+Math.round(e)+", "+O.transform(A(t))+", "+O.transform(A(i))+", "+A(C.transform(s))+")"},X={test:e=>B.test(e)||I.test(e)||Y.test(e),parse:e=>B.test(e)?B.parse(e):Y.test(e)?Y.parse(e):I.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?B.transform(e):Y.transform(e),getAnimatableNone:e=>{let t=X.parse(e);return t.alpha=0,X.transform(t)}},G=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,q="number",K="color",Z=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function _(e){let t=e.toString(),i=[],s={color:[],number:[],var:[]},r=[],n=0,a=t.replace(Z,e=>(X.test(e)?(s.color.push(n),r.push(K),i.push(X.parse(e))):e.startsWith("var(")?(s.var.push(n),r.push("var"),i.push(e)):(s.number.push(n),r.push(q),i.push(parseFloat(e))),++n,"${}")).split("${}");return{values:i,split:a,indexes:s,types:r}}function J(e){return _(e).values}function Q(e){let{split:t,types:i}=_(e),s=t.length;return e=>{let r="";for(let n=0;n<s;n++)if(r+=t[n],void 0!==e[n]){let t=i[n];t===q?r+=A(e[n]):t===K?r+=X.transform(e[n]):r+=e[n]}return r}}let ee=e=>"number"==typeof e?0:X.test(e)?X.getAnimatableNone(e):e,et={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(E)?.length||0)+(e.match(G)?.length||0)>0},parse:J,createTransformer:Q,getAnimatableNone:function(e){let t=J(e);return Q(e)(t.map(ee))}},ei=new Set(["brightness","contrast","saturate","opacity"]);function es(e){let[t,i]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[s]=i.match(E)||[];if(!s)return e;let r=i.replace(s,""),n=+!!ei.has(t);return s!==i&&(n*=100),t+"("+n+r+")"}let er=/\b([a-z-]*)\(.*?\)/gu,en={...et,getAnimatableNone:e=>{let t=e.match(er);return t?t.map(es).join(" "):e}},ea={...P,transform:Math.round},eo={borderWidth:W,borderTopWidth:W,borderRightWidth:W,borderBottomWidth:W,borderLeftWidth:W,borderRadius:W,borderTopLeftRadius:W,borderTopRightRadius:W,borderBottomRightRadius:W,borderBottomLeftRadius:W,width:W,maxWidth:W,height:W,maxHeight:W,top:W,right:W,bottom:W,left:W,inset:W,insetBlock:W,insetBlockStart:W,insetBlockEnd:W,insetInline:W,insetInlineStart:W,insetInlineEnd:W,padding:W,paddingTop:W,paddingRight:W,paddingBottom:W,paddingLeft:W,paddingBlock:W,paddingBlockStart:W,paddingBlockEnd:W,paddingInline:W,paddingInlineStart:W,paddingInlineEnd:W,margin:W,marginTop:W,marginRight:W,marginBottom:W,marginLeft:W,marginBlock:W,marginBlockStart:W,marginBlockEnd:W,marginInline:W,marginInlineStart:W,marginInlineEnd:W,fontSize:W,backgroundPositionX:W,backgroundPositionY:W,rotate:F,rotateX:F,rotateY:F,rotateZ:F,scale:M,scaleX:M,scaleY:M,scaleZ:M,skew:F,skewX:F,skewY:F,distance:W,translateX:W,translateY:W,translateZ:W,x:W,y:W,z:W,perspective:W,transformPerspective:W,opacity:C,originX:z,originY:z,originZ:W,zIndex:ea,fillOpacity:C,strokeOpacity:C,numOctaves:ea},el={...eo,color:X,backgroundColor:X,outlineColor:X,fill:X,stroke:X,borderColor:X,borderTopColor:X,borderRightColor:X,borderBottomColor:X,borderLeftColor:X,filter:en,WebkitFilter:en},eh=e=>el[e],eu=()=>({translate:0,scale:1,origin:0,originPoint:0}),ed=()=>({x:eu(),y:eu()}),ec=()=>({min:0,max:0}),em=()=>({x:ec(),y:ec()}),ep=e=>!!(e&&e.getVelocity),ef=new Set(["width","height","top","left","right","bottom",...S]),eg=e=>t=>t.test(e),ex=[P,W,O,F,H,U,{test:e=>"auto"===e,parse:e=>e}],ev=e=>ex.find(eg(e));var ey=e.i(531876);let ew=()=>{},eb=()=>{};ey.default;let ej=e=>t=>"string"==typeof t&&t.startsWith(e),eT=ej("--"),eS=ej("var(--"),ek=e=>!!eS(e)&&eN.test(e.split("/*")[0].trim()),eN=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function eP(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let eC=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,eM=e=>180*e/Math.PI,eA=e=>eV(eM(Math.atan2(e[1],e[0]))),eE={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:eA,rotateZ:eA,skewX:e=>eM(Math.atan(e[1])),skewY:e=>eM(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},eV=e=>((e%=360)<0&&(e+=360),e),eL=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),eR=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),eD={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:eL,scaleY:eR,scale:e=>(eL(e)+eR(e))/2,rotateX:e=>eV(eM(Math.atan2(e[6],e[5]))),rotateY:e=>eV(eM(Math.atan2(-e[2],e[0]))),rotateZ:eA,rotate:eA,skewX:e=>eM(Math.atan(e[4])),skewY:e=>eM(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function eB(e){return+!!e.includes("scale")}function eI(e,t){let i,s;if(!e||"none"===e)return eB(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=eD,s=r;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=eE,s=t}if(!s)return eB(t);let n=i[t],a=s[1].split(",").map(e$);return"function"==typeof n?n(a):a[n]}function e$(e){return parseFloat(e.trim())}let eF=e=>e===P||e===W,eO=new Set(["x","y","z"]),eW=S.filter(e=>!eO.has(e)),eU={width:({x:e},{paddingLeft:t="0",paddingRight:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),height:({y:e},{paddingTop:t="0",paddingBottom:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>eI(t,"x"),y:(e,{transform:t})=>eI(t,"y")};eU.translateX=eU.x,eU.translateY=eU.y;let eH=e=>e,ez={},eY=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function eX(e,t){let i=!1,s=!0,r={delta:0,timestamp:0,isProcessing:!1},n=()=>i=!0,a=eY.reduce((e,i)=>(e[i]=function(e,t){let i=new Set,s=new Set,r=!1,n=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function h(t){a.has(t)&&(u.schedule(t),e()),l++,t(o)}let u={schedule:(e,t=!1,n=!1)=>{let o=n&&r?i:s;return t&&a.add(e),o.has(e)||o.add(e),e},cancel:e=>{s.delete(e),a.delete(e)},process:e=>{if(o=e,r){n=!0;return}
1r=!0,[i,s]=[s,i],i.forEach(h),t,l=0,i.clear(),r=!1,n&&(n=!1,u.process(e))}};return u}(n,t?i:void 0),e),{}),{setup:o,read:l,resolveKeyframes:h,preUpdate:u,update:d,preRender:c,render:m,postRender:p}=a,f=()=>{let n=ez.useManualTiming?r.timestamp:performance.now();i=!1,ez.useManualTiming||(r.delta=s?1e3/60:Math.max(Math.min(n-r.timestamp,40),1)),r.timestamp=n,r.isProcessing=!0,o.process(r),l.process(r),h.process(r),u.process(r),d.process(r),c.process(r),m.process(r),p.process(r),r.isProcessing=!1,i&&t&&(s=!1,e(f))};return{schedule:eY.reduce((t,n)=>{let o=a[n];return t[n]=(t,n=!1,a=!1)=>(!i&&(i=!0,s=!0,r.isProcessing||e(f)),o.schedule(t,n,a)),t},{}),cancel:e=>{for(let t=0;t<eY.length;t++)a[eY[t]].cancel(e)},state:r,steps:a}}let{schedule:eG,cancel:eq,state:eK,steps:eZ}=eX("u">typeof requestAnimationFrame?requestAnimationFrame:eH,!0),e_=new Set,eJ=!1,eQ=!1,e0=!1;function e1(){if(eQ){let e=Array.from(e_).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),i=new Map;t.forEach(e=>{let t,s=(t=[],eW.forEach(i=>{let s=e.getValue(i);void 0!==s&&(t.push([i,s.get()]),s.set(+!!i.startsWith("scale")))}),t);s.length&&(i.set(e,s),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=i.get(e);t&&t.forEach(([t,i])=>{e.getValue(t)?.set(i)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eQ=!1,eJ=!1,e_.forEach(e=>e.complete(e0)),e_.clear()}function e2(){e_.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eQ=!0)})}class e5{constructor(e,t,i,s,r,n=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=i,this.motionValue=s,this.element=r,this.isAsync=n}scheduleResolve(){this.state="scheduled",this.isAsync?(e_.add(this),eJ||(eJ=!0,eG.read(e2),eG.resolveKeyframes(e1))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:i,motionValue:s}=this;if(null===e[0]){let r=s?.get(),n=e[e.length-1];if(void 0!==r)e[0]=r;else if(i&&t){let s=i.readValue(t,n);null!=s&&(e[0]=s)}void 0===e[0]&&(e[0]=n),s&&void 0===r&&s.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),e_.delete(this)}cancel(){"scheduled"===this.state&&(e_.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}function e3(e,t){let i=eh(e);return i!==en&&(i=et),i.getAnimatableNone?i.getAnimatableNone(t):void 0}let e4=new Set(["auto","none","0"]);class e6 extends e5{constructor(e,t,i,s,r){super(e,t,i,s,r,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:i}=this;if(!t||!t.current)return;super.readKeyframes();for(let i=0;i<e.length;i++){let s=e[i];if("string"==typeof s&&ek(s=s.trim())){let r=function e(t,i,s=1){eb(s<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,n]=function(e){let t=eC.exec(e);if(!t)return[,];let[,i,s,r]=t;return[`--${i??s}`,r]}(t);if(!r)return;let a=window.getComputedStyle(i).getPropertyValue(r);if(a){let e=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return ek(n)?e(n,i,s+1):n}(s,t.current);void 0!==r&&(e[i]=r),i===e.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!ef.has(i)||2!==e.length)return;let[s,r]=e,n=ev(s),a=ev(r);if(eP(s)!==eP(r)&&eU[i]){this.needsMeasurement=!0;return}if(n!==a)if(eF(n)&&eF(a))for(let t=0;t<e.length;t++){let i=e[t];"string"==typeof i&&(e[t]=parseFloat(i))}else eU[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,i=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&i.push(t);i.length&&function(e,t,i){let s,r=0;for(;r<e.length&&!s;){let t=e[r];"string"==typeof t&&!e4.has(t)&&_(t).values.length&&(s=e[r]),r++}if(s&&i)for(let r of t)e[r]=e3(i,s)}(e,i,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:i}=this;if(!e||!e.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eU[i](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let s=t[t.length-1];void 0!==s&&e.getValue(i,s).jump(s,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:i}=this;if(!e||!e.current)return;let s=e.getValue(t);s&&s.jump(this.measuredOrigin,!1);let r=i.length-1,n=i[r];i[r]=eU[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==n&&void 0===this.finalKeyframe&&(this.finalKeyframe=n),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}function e8(e,t){-1===e.indexOf(t)&&e.push(t)}function e9(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}class e7{constructor(){this.subscriptions=[]}add(e){return e8(this.subscriptions,e),()=>e9(this.subscriptions,e)}notify(e,t,i){let s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](e,t,i);else for(let r=0;r<s;r++){let s=this.subscriptions[r];s&&s(e,t,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let{schedule:te}=eX(queueMicrotask,!1);function tt(){t=void 0}let ti={now:()=>(void 0===t&&ti.set(eK.isProcessing||ez.useManualTiming?eK.timestamp:performance.now()),t),set:e=>{t=e,queueMicrotask(tt)}};class ts{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=ti.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=ti.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new e7);let i=this.events[e].add(t);return"change"===e?()=>{i(),eG.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,i){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return s&&s.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=ti.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function tr(e,t){return new ts(e,t)}let tn=[...ex,X,et],ta={current:null},to={current:!1},tl="u">typeof window,th=new WeakMap;function tu(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function td(e){return"string"==typeof e||Array.isArray(e)}let tc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tm=["initial",...tc];function tp(e){return tu(e.animate)||tm.some(t=>td(e[t]))}function tf(e){return!!(tp(e)||e.variants)}function tg(e){let t=[{},{}];return e?.values.forEach((e,i)=>{t[0][i]=e.get(),t[1][i]=e.getVelocity()}),t}function tx(e,t,i,s){if("function"==typeof t){let[r,n]=tg(s);t=t(void 0!==i?i:e.custom,r,n)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[r,n]=tg(s);t=t(void 0!==i?i:e.custom,r,n)}return t}let tv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ty={};class tw{scrapeMotionValuesFromProps(e,t,i){return{}}constructor({parent:e,props:t,presenceContext:i,reducedMotionConfig:s,skipAnimations:r,blockInitialAnimation:n,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=e5,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=ti.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,eG.render(this.render,!1,!0))};const{latestValues:l,renderState:h}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=h,this.parent=e,this.props=t,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=r,this.options=o,this.blockInitialAnimation=!!n,this.isControllingVariants=tp(t),this.isVariantNode=tf(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==l[e]&&ep(t)&&t.set(l[e])}}mount(e){this.current=e,th.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
1h((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(to.current||function(){if(to.current=!0,tl)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ta.current=e.matches;e.addEventListener("change",t),t()}else ta.current=!1}(),this.shouldReduceMotion=ta.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),eq(this.notifyUpdate),eq(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let i;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let s=k.has(e);s&&this.onBindTransform&&this.onBindTransform();let r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eG.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in ty){let t=ty[e];if(!t)continue;let{isEnabled:i,Feature:s}=t;if(!this.features[e]&&s&&i(this.props)&&(this.features[e]=new s(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):em()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<tv.length;t++){let i=tv[t];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=e["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=function(e,t,i){for(let s in t){let r=t[s],n=i[s];if(ep(r))e.addValue(s,r);else if(ep(n))e.addValue(s,tr(r,{owner:e}));else if(n!==r)if(e.hasValue(s)){let t=e.getValue(s);!0===t.liveStyle?t.jump(r):t.hasAnimated||t.set(r)}else{let t=e.getStaticValue(s);e.addValue(s,tr(void 0!==t?t:r,{owner:e}))}}for(let s in i)void 0===t[s]&&e.removeValue(s);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let i=this.values.get(e);t!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return void 0===i&&void 0!==t&&(i=tr(null===t?void 0:t,{owner:this}),this.addValue(e,i)),i}readValue(e,t){let i=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=i){let s,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,!tn.find(eg(s))&&et.test(t)&&(i=e3(e,t))}this.setBaseTarget(e,ep(i)?i.get():i)}return ep(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let s=tx(this.props,i,this.presenceContext?.custom);s&&(t=s[e])}if(i&&void 0!==t)return t;let s=this.getBaseTargetFromProps(this.props,e);return void 0===s||ep(s)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:s}on(e,t){return this.events[e]||(this.events[e]=new e7),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){te.render(this.render)}}
1class tb extends tw{constructor(){super(...arguments),this.KeyframeResolver=e6}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let i=e.style;return i?i[t]:void 0}removeValueFromRenderState(e,{vars:t,style:i}){delete t[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;ep(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function tj(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let tT=(e,t)=>t&&"number"==typeof e?t.transform(e):e,tS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tk=S.length;function tN(e,t,i){let{style:s,vars:r,transformOrigin:n}=e,a=!1,o=!1;for(let e in t){let i=t[e];if(k.has(e)){a=!0;continue}if(eT(e)){r[e]=i;continue}{let t=tT(i,eo[e]);e.startsWith("origin")?(o=!0,n[e]=t):s[e]=t}}if(!t.transform&&(a||i?s.transform=function(e,t,i){let s="",r=!0;for(let n=0;n<tk;n++){let a=S[n],o=e[a];if(void 0===o)continue;let l=!0;if("number"==typeof o)l=o===+!!a.startsWith("scale");else{let e=parseFloat(o);l=a.startsWith("scale")?1===e:0===e}if(!l||i){let e=tT(o,eo[a]);if(!l){r=!1;let t=tS[a]||a;s+=`${t}(${e}) `}i&&(t[a]=e)}}return s=s.trim(),i?s=i(t,r?"":s):r&&(s="none"),s}(t,e.transform,i):s.transform&&(s.transform="none")),o){let{originX:e="50%",originY:t="50%",originZ:i=0}=n;s.transformOrigin=`${e} ${t} ${i}`}}let tP={offset:"stroke-dashoffset",array:"stroke-dasharray"},tC={offset:"strokeDashoffset",array:"strokeDasharray"},tM=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tA(e,{attrX:t,attrY:i,attrScale:s,pathLength:r,pathSpacing:n=1,pathOffset:a=0,...o},l,h,u){if(tN(e,o,h),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:c}=e;for(let e of(d.transform&&(c.transform=d.transform,delete d.transform),(c.transform||d.transformOrigin)&&(c.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),c.transform&&(c.transformBox=u?.transformBox??"fill-box",delete d.transformBox),tM))void 0!==d[e]&&(c[e]=d[e],delete d[e]);void 0!==t&&(d.x=t),void 0!==i&&(d.y=i),void 0!==s&&(d.scale=s),void 0!==r&&function(e,t,i=1,s=0,r=!0){e.pathLength=1;let n=r?tP:tC;e[n.offset]=`${-s}`,e[n.array]=`${t} ${i}`}(d,r,n,a,!1)}let tE=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"]),tV=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tL(e,{style:t,vars:i},s,r){let n,a=e.style;for(n in t)a[n]=t[n];for(n in r?.applyProjectionStyles(a,s),i)a.setProperty(n,i[n])}function tR(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let tD={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!W.test(e))return e;else e=parseFloat(e);let i=tR(e,t.target.x),s=tR(e,t.target.y);return`${i}% ${s}%`}},tB=(e,t,i)=>e+(t-e)*i,tI={borderRadius:{...tD,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tD,borderTopRightRadius:tD,borderBottomLeftRadius:tD,borderBottomRightRadius:tD,boxShadow:{correct:(e,{treeScale:t,projectionDelta:i})=>{let s=et.parse(e);if(s.length>5)return e;let r=et.createTransformer(e),n=+("number"!=typeof s[0]),a=i.x.scale*t.x,o=i.y.scale*t.y;s[0+n]/=a,s[1+n]/=o;let l=tB(a,o,.5);return"number"==typeof s[2+n]&&(s[2+n]/=l),"number"==typeof s[3+n]&&(s[3+n]/=l),r(s)}}};function t$(e,{layout:t,layoutId:i}){return k.has(e)||e.startsWith("origin")||(t||void 0!==i)&&(!!tI[e]||"opacity"===e)}function tF(e,t,i){let s=e.style,r=t?.style,n={};if(!s)return n;for(let t in s)(ep(s[t])||r&&ep(r[t])||t$(t,e)||i?.getValue(t)?.liveStyle!==void 0)&&(n[t]=s[t]);return n}function tO(e,t,i){let s=tF(e,t,i);for(let i in e)(ep(e[i])||ep(t[i]))&&(s[-1!==S.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]);return s}class tW extends tb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=em}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(k.has(t)){let e=eh(t);return e&&e.default||0}return t=tE.has(t)?t:tj(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,i){return tO(e,t,i)}build(e,t,i){tA(e,t,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,t,i,s){for(let i in tL(e,t,void 0,s),t.attrs)e.setAttribute(tE.has(i)?i:tj(i),t.attrs[i])}mount(e){this.isSVGTag=tV(e.tagName),super.mount(e)}}function tU({top:e,left:t,right:i,bottom:s}){return{x:{min:t,max:i},y:{min:e,max:s}}}function tH(e){return void 0===e||1===e}function tz({scale:e,scaleX:t,scaleY:i}){return!tH(e)||!tH(t)||!tH(i)}function tY(e){return tz(e)||tX(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function tX(e){var t,i;return(t=e.x)&&"0%"!==t||(i=e.y)&&"0%"!==i}function tG(e,t,i,s,r){return void 0!==r&&(e=s+r*(e-s)),s+i*(e-s)+t}function tq(e,t=0,i=1,s,r){e.min=tG(e.min,t,i,s,r),e.max=tG(e.max,t,i,s,r)}function tK(e,{x:t,y:i}){tq(e.x,t.translate,t.scale,t.originPoint),tq(e.y,i.translate,i.scale,i.originPoint)}function tZ(e,t){e.min=e.min+t,e.max=e.max+t}function t_(e,t,i,s,r=.5){let n=tB(e.min,e.max,r);tq(e,t,i,n,s)}function tJ(e,t){t_(e.x,t.x,t.scaleX,t.scale,t.originX),t_(e.y,t.y,t.scaleY,t.scale,t.originY)}function tQ(e,t){return tU(function(e,t){if(!t)return e;let i=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}(e.getBoundingClientRect(),t))}class t0 extends tb{constructor(){super(...arguments),this.type="html",this.renderInstance=tL}readValueFromInstance(e,t){if(k.has(t))return this.projection?.isProjecting?eB(t):((e,t)=>{let{transform:i="none"}=getComputedStyle(e);return eI(i,t)})(e,t);{let i=window.getComputedStyle(e),s=(eT(t)?i.getPropertyValue(t):i[t])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:t}){return tQ(e,t)}build(e,t,i){tN(e,t,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,i){return tF(e,t,i)}}let t1=["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 t2(e){if("string"!=typeof e||e.includes("-"));else if(t1.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let t5=(0,h.createContext)({}),t3=(0,h.createContext)({strict:!1}),t4=(0,h.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),t6=(0,h.createContext)({});function t8(e){return Array.isArray(e)?e.join(" "):e}let t9=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function t7(e,t,i){for(let s in t)ep(t[s])||t$(s,i)||(e[s]=t[s])}let ie=()=>({...t9(),attrs:{}}),it=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ii(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||it.has(e)}let is=e=>!ii(e);try{r=(()=>{let e=Error("Cannot find module '@emotion/is-prop-valid'");throw e.code="MODULE_NOT_FOUND",e})().default,"function"==typeof r&&(is=e=>e.startsWith("on")?!ii(e):r(e))}catch{}function ir(e){return ep(e)?e.get():e}let ia=(0,h.createContext)(null);function io(e){let t=(0,h.useRef)(null);return null===t.current&&(t.current=e()),t.current}let il=e=>(t,i)=>{let s=(0,h.useContext)(t6),r=(0,h.useContext)(ia),n=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},i,s,r){return{latestValues:function(e,t,i,s){let r={},n=s(e,{});for(let e in n)r[e]=ir(n[e]);let{initial:a,animate:o}=e,l=tp(e),h=tf(e);t&&h&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===o&&(o=t.animate));let u=!!i&&!1===i.initial,d=(u=u||!1===a)?o:a;if(d&&"boolean"!=typeof d&&!tu(d)){let t=Array.isArray(d)?d:[d];for(let i=0;i<t.length;i++){let s=tx(e,t[i]);if(s){let{transitionEnd:e,transition:t,...i}=s;for(let e in i){let t=i[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}null!==t&&(r[e]=t)}for(let t in e)r[t]=e[t]}}}return r}(i,s,r,e),renderState:t()}})(e,t,s,r);return i?n():io(n)},ih=il({scrapeMotionValuesFromProps:tF,createRenderState:t9}),iu=il({scrapeMotionValuesFromProps:tO,createRenderState:ie}),id="u">typeof window,ic={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},im=!1;function ip(){return!function(){if(im)return;let e={};for(let t in ic)e[t]={isEnabled:e=>ic[t].some(t=>!!e[t])};ty=e,im=!0}(),ty}let ig=Symbol.for("motionComponentSymbol"),ix="data-"+tj("framerAppearId"),iv=(0,h.createContext)({});function iy(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let iw=id?h.useLayoutEffect:h.useEffect;function ib(e,{forwardMotionProps:t=!1,type:i}={},s,r){s&&function(e){let t=ip();for(let i in e)t[i]={...t[i],...e[i]};ty=t}(s);let a=i?"svg"===i:t2(e),o=a?iu:ih;function l(i,s){var l;let u,d,c,m={...(0,h.useContext)(t4),...i,layoutId:function({layoutId:e}){let t=(0,h.useContext)(t5).id;return t&&void 0!==e?t+"-"+e:e}(i)},{isStatic:p}=m,f=function(e){let{initial:t,animate:i}=function(e,t){if(tp(e)){let{initial:t,animate:i}=e;return{initial:!1===t||td(t)?t:void 0,animate:td(i)?i:void 0}}return!1!==e.inherit?t:{}}(e,(0,h.useContext)(t6));return(0,h.useMemo)(()=>({initial:t,animate:i}),[t8(t),t8(i)])}(i),g=o(i,p);if(!p&&id){(0,h.useContext)(t3).strict;let t=function(e){let{drag:t,layout:i}=ip();if(!t&&!i)return{};let s={...t,...i};return{MeasureLayout:t?.isEnabled(e)||i?.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}
1(m);u=t.MeasureLayout,f.visualElement=function(e,t,i,s,r,n){let{visualElement:a}=(0,h.useContext)(t6),o=(0,h.useContext)(t3),l=(0,h.useContext)(ia),u=(0,h.useContext)(t4),d=u.reducedMotion,c=u.skipAnimations,m=(0,h.useRef)(null),p=(0,h.useRef)(!1);s=s||o.renderer,!m.current&&s&&(m.current=s(e,{visualState:t,parent:a,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:d,skipAnimations:c,isSVG:n}),p.current&&m.current&&(m.current.manuallyAnimateOnMount=!0));let f=m.current,g=(0,h.useContext)(iv);f&&!f.projection&&r&&("html"===f.type||"svg"===f.type)&&function(e,t,i,s){let{layoutId:r,layout:n,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:h,layoutCrossfade:u}=t;e.projection=new i(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:r,layout:n,alwaysMeasureLayout:!!a||o&&iy(o),visualElement:e,animationType:"string"==typeof n?n:"both",initialPromotionConfig:s,crossfade:u,layoutScroll:l,layoutRoot:h})}(m.current,i,r,g);let x=(0,h.useRef)(!1);(0,h.useInsertionEffect)(()=>{f&&x.current&&f.update(i,l)});let v=i[ix],y=(0,h.useRef)(!!v&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return iw(()=>{p.current=!0,f&&(x.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),y.current&&f.animationState&&f.animationState.animateChanges())}),(0,h.useEffect)(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),y.current=!1),f.enteringChildren=void 0)}),f}(e,g,m,r,t.ProjectionNode,a)}return(0,n.jsxs)(t6.Provider,{value:f,children:[u&&f.visualElement?(0,n.jsx)(u,{visualElement:f.visualElement,...m}):null,function(e,t,i,{latestValues:s},r,n=!1,a){let o=(a??t2(e)?function(e,t,i,s){let r=(0,h.useMemo)(()=>{let i=ie();return tA(i,t,tV(s),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let t={};t7(t,e.style,e),r.style={...t,...r.style}}return r}:function(e,t){let i,s,r={},n=(i=e.style||{},t7(s={},i,e),Object.assign(s,function({transformTemplate:e},t){return(0,h.useMemo)(()=>{let i=t9();return tN(i,t,e),Object.assign({},i.vars,i.style)},[t])}(e,t)),s);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r})(t,s,r,e),l=function(e,t,i){let s={};for(let r in e)("values"!==r||"object"!=typeof e.values)&&(is(r)||!0===i&&ii(r)||!t&&!ii(r)||e.draggable&&r.startsWith("onDrag"))&&(s[r]=e[r]);return s}(t,"string"==typeof e,n),u=e!==h.Fragment?{...l,...o,ref:i}:{},{children:d}=t,c=(0,h.useMemo)(()=>ep(d)?d.get():d,[d]);return(0,h.createElement)(e,{...u,children:c})}(e,i,(l=f.visualElement,d=(0,h.useRef)(s),(0,h.useInsertionEffect)(()=>{d.current=s}),c=(0,h.useRef)(null),(0,h.useCallback)(e=>{e&&g.onMount?.(e),l&&(e?l.mount(e):l.unmount());let t=d.current;if("function"==typeof t)if(e){let i=t(e);"function"==typeof i&&(c.current=i)}else c.current?(c.current(),c.current=null):t(e);else t&&(t.current=e)},[l])),g,p,t,a)]})}l.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let u=(0,h.forwardRef)(l);return u[ig]=e,u}class ij{constructor(e){this.isMounted=!1,this.node=e}update(){}}function iT(e,t,i){let s=e.getProps();return tx(s,t,void 0!==i?i:s.custom,e)}function iS(e,t){return e?.[t]??e?.default??e}let ik=e=>Array.isArray(e);function iN(e,t){let i=e.getValue("willChange");if(ep(i)&&i.add)return i.add(t);if(!i&&ez.WillChange){let i=new ez.WillChange("auto");e.addValue("willChange",i),i.add(t)}}let iP=e=>1e3*e,iC=(e,t)=>i=>t(e(i)),iM=(...e)=>e.reduce(iC),iA={layout:0,mainThread:0,waapi:0};function iE(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function iV(e,t){return i=>i>0?t:e}let iL=(e,t,i)=>{let s=e*e,r=i*(t*t-s)+s;return r<0?0:Math.sqrt(r)},iR=[I,B,Y];function iD(e){let t=iR.find(t=>t.test(e));if(ew(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let i=t.parse(e);return t===Y&&(i=function({hue:e,saturation:t,lightness:i,alpha:s}){e/=360,i/=100;let r=0,n=0,a=0;if(t/=100){let s=i<.5?i*(1+t):i+t-i*t,o=2*i-s;r=iE(o,s,e+1/3),n=iE(o,s,e),a=iE(o,s,e-1/3)}else r=n=a=i;return{red:Math.round(255*r),green:Math.round(255*n),blue:Math.round(255*a),alpha:s}}(i)),i}let iB=(e,t)=>{let i=iD(e),s=iD(t);if(!i||!s)return iV(e,t);let r={...i};return e=>(r.red=iL(i.red,s.red,e),r.green=iL(i.green,s.green,e),r.blue=iL(i.blue,s.blue,e),r.alpha=tB(i.alpha,s.alpha,e),B.transform(r))},iI=new Set(["none","hidden"]);function i$(e,t){return i=>tB(e,t,i)}function iF(e){return"number"==typeof e?i$:"string"==typeof e?ek(e)?iV:X.test(e)?iB:iU:Array.isArray(e)?iO:"object"==typeof e?X.test(e)?iB:iW:iV}function iO(e,t){let i=[...e],s=i.length,r=e.map((e,i)=>iF(e)(e,t[i]));return e=>{for(let t=0;t<s;t++)i[t]=r[t](e);return i}}function iW(e,t){let i={...e,...t},s={};for(let r in i)void 0!==e[r]&&void 0!==t[r]&&(s[r]=iF(e[r])(e[r],t[r]));return e=>{for(let t in s)i[t]=s[t](e);return i}}let iU=(e,t)=>{let i=et.createTransformer(t),s=_(e),r=_(t);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 ew(!0,`Complex values '${e}' and '${t}
1' 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"),iV(e,t);if(iI.has(e)&&!r.values.length||iI.has(t)&&!s.values.length)return iI.has(e)?i=>i<=0?e:t:i=>i>=1?t:e;return iM(iO(function(e,t){let i=[],s={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){let n=t.types[r],a=e.indexes[n][s[n]],o=e.values[a]??0;i[r]=o,s[n]++}return i}(s,r),r.values),i)};function iH(e,t,i){return"number"==typeof e&&"number"==typeof t&&"number"==typeof i?tB(e,t,i):iF(e)(e,t)}let iz=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>eG.update(t,e),stop:()=>eq(t),now:()=>eK.isProcessing?eK.timestamp:ti.now()}},iY=(e,t,i=10)=>{let s="",r=Math.max(Math.round(t/i),2);for(let t=0;t<r;t++)s+=Math.round(1e4*e(t/(r-1)))/1e4+", ";return`linear(${s.substring(0,s.length-2)})`};function iX(e){let t=0,i=e.next(t);for(;!i.done&&t<2e4;)t+=50,i=e.next(t);return t>=2e4?1/0:t}function iG(e,t,i){var s,r;let n=Math.max(t-5,0);return s=i-e(n),(r=t-n)?1e3/r*s:0}let iq=.01,iK=2,iZ=.005,i_=.5;function iJ(e,t){return e*Math.sqrt(1-t*t)}let iQ=["duration","bounce"],i0=["stiffness","damping","mass"];function i1(e,t){return t.some(t=>void 0!==e[t])}function i2(e=.3,t=.3){let i,s="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:r,restDelta:n}=s,a=s.keyframes[0],o=s.keyframes[s.keyframes.length-1],l={done:!1,value:a},{stiffness:h,damping:u,mass:d,duration:c,velocity:m,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!i1(e,i0)&&i1(e,iQ))if(e.visualDuration){let i=2*Math.PI/(1.2*e.visualDuration),s=i*i,r=2*N(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:1,stiffness:s,damping:r}}else{let i=function({duration:e=800,bounce:t=.3,velocity:i=0,mass:s=1}){let r,n;ew(e<=iP(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=N(.05,1,a),e=N(.01,10,e/1e3),a<1?(r=t=>{let s=t*a,r=s*e;return .001-(s-i)/iJ(t,a)*Math.exp(-r)},n=t=>{let s=t*a*e,n=Math.pow(a,2)*Math.pow(t,2)*e,o=Math.exp(-s),l=iJ(Math.pow(t,2),a);return(s*i+i-n)*o*(-r(t)+.001>0?-1:1)/l}):(r=t=>-.001+Math.exp(-t*e)*((t-i)*e+1),n=t=>e*e*(i-t)*Math.exp(-t*e));let o=function(e,t,i){let s=i;for(let i=1;i<12;i++)s-=e(s)/t(s);return s}(r,n,5/e);if(e=iP(e),isNaN(o))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(o,2)*s;return{stiffness:t,damping:2*a*Math.sqrt(s*t),duration:e}}}(e);(t={...t,...i,mass:1}).isResolvedFromDuration=!0}return t}({...s,velocity:-((s.velocity||0)/1e3)}),f=m||0,g=u/(2*Math.sqrt(h*d)),x=o-a,v=Math.sqrt(h/d)/1e3,y=5>Math.abs(x);if(r||(r=y?iq:iK),n||(n=y?iZ:i_),g<1){let e=iJ(v,g);i=t=>o-Math.exp(-g*v*t)*((f+g*v*x)/e*Math.sin(e*t)+x*Math.cos(e*t))}else if(1===g)i=e=>o-Math.exp(-v*e)*(x+(f+v*x)*e);else{let e=v*Math.sqrt(g*g-1);i=t=>{let i=Math.exp(-g*v*t),s=Math.min(e*t,300);return o-i*((f+g*v*x)*Math.sinh(s)+e*x*Math.cosh(s))/e}}let w={calculatedDuration:p&&c||null,next:e=>{let t=i(e);if(p)l.done=e>=c;else{let s=0===e?f:0;g<1&&(s=0===e?iP(f):iG(i,e,t));let a=Math.abs(o-t)<=n;l.done=Math.abs(s)<=r&&a}return l.value=l.done?o:t,l},toString:()=>{let e=Math.min(iX(w),2e4),t=iY(t=>w.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return w}function i5({keyframes:e,velocity:t=0,power:i=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:n=500,modifyTarget:a,min:o,max:l,restDelta:h=.5,restSpeed:u}){let d,c,m=e[0],p={done:!1,value:m},f=i*t,g=m+f,x=void 0===a?g:a(g);x!==g&&(f=x-m);let v=e=>-f*Math.exp(-e/s),y=e=>x+v(e),w=e=>{let t=v(e),i=y(e);p.done=Math.abs(t)<=h,p.value=p.done?x:i},b=e=>{let t;if(t=p.value,void 0!==o&&t<o||void 0!==l&&t>l){var i;d=e,c=i2({keyframes:[p.value,(i=p.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:iG(y,e,p.value),damping:r,stiffness:n,restDelta:h,restSpeed:u})}};return b(0),{calculatedDuration:null,next:e=>{let t=!1;return(c||void 0!==d||(t=!0,w(e),b(e)),void 0!==d&&e>=d)?c.next(e-d):(t||w(e),p)}}}i2.applyToOptions=e=>{let t=function(e,t=100,i){let s=i({...e,keyframes:[0,t]}),r=Math.min(iX(s),2e4);return{type:"keyframes",ease:e=>s.next(r*e).value/t,duration:r/1e3}}(e,100,i2);return e.ease=t.ease,e.duration=iP(t.duration),e.type="keyframes",e};let i3=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e;function i4(e,t,i,s){return e===t&&i===s?eH:r=>0===r||1===r?r:i3(function(e,t,i,s,r){let n,a,o=0;do(n=i3(a=t+(i-t)/2,s,r)-e)>0?i=a:t=a;while(Math.abs(n)>1e-7&&++o<12)return a}(r,0,1,e,i),t,s)}
1let i6=i4(.42,0,1,1),i8=i4(0,0,.58,1),i9=i4(.42,0,.58,1),i7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,se=e=>t=>1-e(1-t),st=i4(.33,1.53,.69,.99),si=se(st),ss=i7(si),sr=e=>(e*=2)<1?.5*si(e):.5*(2-Math.pow(2,-10*(e-1))),sn=e=>1-Math.sin(Math.acos(e)),sa=se(sn),so=i7(sn),sl=e=>Array.isArray(e)&&"number"==typeof e[0],sh={linear:eH,easeIn:i6,easeInOut:i9,easeOut:i8,circIn:sn,circInOut:so,circOut:sa,backIn:si,backInOut:ss,backOut:st,anticipate:sr},su=e=>{if(sl(e)){eb(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,i,s,r]=e;return i4(t,i,s,r)}return"string"==typeof e?(eb(void 0!==sh[e],`Invalid easing type '${e}'`,"invalid-easing-type"),sh[e]):e},sd=(e,t,i)=>{let s=t-e;return 0===s?1:(i-e)/s};function sc({duration:e=300,keyframes:t,times:i,ease:s="easeInOut"}){var r;let n,a=Array.isArray(s)&&"number"!=typeof s[0]?s.map(su):su(s),o={done:!1,value:t[0]},l=function(e,t,{clamp:i=!0,ease:s,mixer:r}={}){let n=e.length;if(eb(n===t.length,"Both input and output ranges must be the same length","range-length"),1===n)return()=>t[0];if(2===n&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[n-1]&&(e=[...e].reverse(),t=[...t].reverse());let o=function(e,t,i){let s=[],r=i||ez.mix||iH,n=e.length-1;for(let i=0;i<n;i++){let n=r(e[i],e[i+1]);t&&(n=iM(Array.isArray(t)?t[i]||eH:t,n)),s.push(n)}return s}(t,s,r),l=o.length,h=i=>{if(a&&i<e[0])return t[0];let s=0;if(l>1)for(;s<e.length-2&&!(i<e[s+1]);s++);let r=sd(e[s],e[s+1],i);return o[s](r)};return i?t=>h(N(e[0],e[n-1],t)):h}((r=i&&i.length===t.length?i:(!function(e,t){let i=e[e.length-1];for(let s=1;s<=t;s++){let r=sd(0,t,s);e.push(tB(i,1,r))}}(n=[0],t.length-1),n),r.map(t=>t*e)),t,{ease:Array.isArray(a)?a:t.map(()=>a||i9).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=l(t),o.done=t>=e,o)}}let sm=e=>null!==e;function sp(e,{repeat:t,repeatType:i="loop"},s,r=1){let n=e.filter(sm),a=r<0||t&&"loop"!==i&&t%2==1?0:n.length-1;return a&&void 0!==s?s:n[a]}let sf={decay:i5,inertia:i5,tween:sc,keyframes:sc,spring:i2};function sg(e){"string"==typeof e.type&&(e.type=sf[e.type])}class sx{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let sv=e=>e/100;class sy extends sx{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==ti.now()&&this.tick(ti.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},iA.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;sg(e);let{type:t=sc,repeat:i=0,repeatDelay:s=0,repeatType:r,velocity:n=0}=e,{keyframes:a}=e,o=t||sc;o!==sc&&"number"!=typeof a[0]&&(this.mixKeyframes=iM(sv,iH(a[0],a[1])),a=[0,100]);let l=o({...e,keyframes:a});"mirror"===r&&(this.mirroredGenerator=o({...e,keyframes:[...a].reverse(),velocity:-n})),null===l.calculatedDuration&&(l.calculatedDuration=iX(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:i,totalDuration:s,mixKeyframes:r,mirroredGenerator:n,resolvedDuration:a,calculatedDuration:o}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:h,repeat:u,repeatType:d,repeatDelay:c,type:m,onUpdate:p,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-s/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?g<0:g>s;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=s);let v=this.currentTime,y=i;if(u){let e=Math.min(this.currentTime,s)/a,t=Math.floor(e),i=e%1;!i&&e>=1&&(i=1),1===i&&t--,(t=Math.min(t,u+1))%2&&("reverse"===d?(i=1-i,c&&(i-=c/a)):"mirror"===d&&(y=n)),v=N(0,1,i)*a}let w=x?{done:!1,value:h[0]}:y.next(v);r&&(w.value=r(w.value));let{done:b}=w;x||null===o||(b=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);let j=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return j&&m!==i5&&(w.value=sp(h,this.options,f,this.speed)),p&&p(w.value),j&&this.finish(),w}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=iP(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(ti.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=iz,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=t??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ti.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,iA.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function sw(e){let t;return()=>(void 0===t&&(t=e()),t)}let sb=sw(()=>void 0!==window.ScrollTimeline),sj={},sT=(i=sw(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),()=>sj.linearEasing??i()),sS=([e,t,i,s])=>`cubic-bezier(${e}, ${t}, ${i}, ${s})`,sk={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:sS([0,.65,.55,1]),circOut:sS([.55,0,1,.45]),backIn:sS([.31,.01,.66,-.59]),backOut:sS([.33,1.53,.69,.99])};function sN(e){return"function"==typeof e&&"applyToOptions"in e}class sP extends sx{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:i,keyframes:s,pseudoElement:r,allowFlatten:n=!1,finalKeyframe:a,onComplete:o}=e;this.isPseudoElement=!!r,this.allowFlatten=n,this.options=e,eb("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return sN(e)&&sT()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,i,{delay:s=0,duration:r=300,repeat:n=0,repeatType:a="loop",ease:o="easeOut",times:l}={},h){let u={[t]:i};l&&(u.offset=l);let d=function e(t,i){if(t)return"function"==typeof t?sT()?iY(t,i):"ease-out":sl(t)?sS(t):Array.isArray(t)?t.map(t=>e(t,i)||sk.easeOut):sk[t]}(o,r);Array.isArray(d)&&(u.easing=d);let c={delay:s,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:n+1,direction:"reverse"===a?"alternate":"normal"};h&&(c.pseudoElement=h);let m=e.animate(u,c);return m}(t,i,s,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let e=sp(s,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(e):i.startsWith("--")?t.style.setProperty(i,e):t.style[i]=e,this.animation.cancel()}o?.(),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(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=iP(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&sb())?(this.animation.timeline=e,eH):t(this)}}let sC={anticipate:sr,backInOut:ss,circInOut:so};class sM extends sP{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in sC&&(e.ease=sC[e.ease])}(e),sg(e),super(e),void 0!==e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:i,onComplete:s,element:r,...n}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let a=new sy({...n,autoplay:!1}),o=Math.max(10,ti.now()-this.startTime),l=N(0,10,o-10);t.setWithVelocity(a.sample(Math.max(0,o-l)).value,a.sample(o).value,l),a.stop()}}let sA=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(et.test(e)||"0"===e)&&!e.startsWith("url("));function sE(e){e.duration=0,e.type="keyframes"}let sV=new Set(["opacity","clipPath","filter","transform"]),sL=sw(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class sR extends sx{constructor({autoplay:e=!0,delay:t=0,type:i="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:n="loop",keyframes:a,name:o,motionValue:l,element:h,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ti.now();const d={autoplay:e,delay:t,type:i,repeat:s,repeatDelay:r,repeatType:n,name:o,motionValue:l,element:h,...u},c=h?.KeyframeResolver||e5;this.keyframeResolver=new c(a,(e,t,i)=>this.onKeyframesResolved(e,t,d,!i),o,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,i,s){this.keyframeResolver=void 0;let{name:r,type:n,velocity:a,delay:o,isHandoff:l,onUpdate:h}=i;this.resolvedAt=ti.now(),!function(e,t,i,s){let r=e[0];if(null===r)return!1;if("display"===t||"visibility"===t)return!0;let n=e[e.length-1],a=sA(r,t),o=sA(n,t);return ew(a===o,`You are trying to animate ${t} from "${r}" to "${n}". "${a?n:r}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(function(e){let t=e[0];if(1===e.length)return!0;for(let i=0;i<e.length;i++)if(e[i]!==t)return!0}(e)||("spring"===i||sN(i))&&s)}(e,r,n,a)&&((ez.instantAnimations||!o)&&h?.(sp(e,i,t)),e[0]=e[e.length-1],sE(i),i.repeat=0);let u={startTime:s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...i,keyframes:e},d=!l&&function(e){let{motionValue:t,name:i,repeatDelay:s,repeatType:r,damping:n,type:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;
1let{onUpdate:o,transformTemplate:l}=t.owner.getProps();return sL()&&i&&sV.has(i)&&("transform"!==i||!l)&&!o&&!s&&"mirror"!==r&&0!==n&&"inertia"!==a}(u),c=u.motionValue?.owner?.current,m=d?new sM({...u,element:c}):new sy(u);m.finished.then(()=>{this.notifyFinished()}).catch(eH),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),e0=!0,e2(),e1(),e0=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let sD={type:"spring",stiffness:500,damping:25,restSpeed:10},sB={type:"keyframes",duration:.8},sI={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},s$=e=>null!==e,sF=(e,t,i,s={},r,n)=>a=>{let o=iS(s,e)||{},l=o.delay||s.delay||0,{elapsed:h=0}=s;h-=iP(l);let u={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-h,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:n?void 0:r};!function({when:e,delay:t,delayChildren:i,staggerChildren:s,staggerDirection:r,repeat:n,repeatType:a,repeatDelay:o,from:l,elapsed:h,...u}){return!!Object.keys(u).length}(o)&&Object.assign(u,((e,{keyframes:t})=>t.length>2?sB:k.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:sD:sI)(e,u)),u.duration&&(u.duration=iP(u.duration)),u.repeatDelay&&(u.repeatDelay=iP(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if(!1!==u.type&&(0!==u.duration||u.repeatDelay)||(sE(u),0===u.delay&&(d=!0)),(ez.instantAnimations||ez.skipAnimations||r?.shouldSkipAnimations)&&(d=!0,sE(u),u.delay=0),u.allowFlatten=!o.type&&!o.ease,d&&!n&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:i="loop"}){let s=e.filter(s$),r=t&&"loop"!==i&&t%2==1?0:s.length-1;return s[r]}(u.keyframes,o);if(void 0!==e)return void eG.update(()=>{u.onUpdate(e),u.onComplete()})}return o.isSync?new sy(u):new sR(u)};function sO(e,t,{delay:i=0,transitionOverride:s,type:r}={}){let{transition:n=e.getDefaultTransition(),transitionEnd:a,...o}=t,l=n?.reduceMotion;s&&(n=s);let h=[],u=r&&e.animationState&&e.animationState.getState()[r];for(let t in o){let s=e.getValue(t,e.latestValues[t]??null),r=o[t];if(void 0===r||u&&function({protectedKeys:e,needsAnimating:t},i){let s=e.hasOwnProperty(i)&&!0!==t[i];return t[i]=!1,s}(u,t))continue;let a={delay:i,...iS(n||{},t)},d=s.get();if(void 0!==d&&!s.isAnimating&&!Array.isArray(r)&&r===d&&!a.velocity)continue;let c=!1;if(window.MotionHandoffAnimation){let i=e.props[ix];if(i){let e=window.MotionHandoffAnimation(i,t,eG);null!==e&&(a.startTime=e,c=!0)}}iN(e,t);let m=l??e.shouldReduceMotion;s.start(sF(t,s,r,m&&ef.has(t)?{type:!1}:a,e,c));let p=s.animation;p&&h.push(p)}return a&&Promise.all(h).then(()=>{eG.update(()=>{a&&function(e,t){let{transitionEnd:i={},transition:s={},...r}=iT(e,t)||{};for(let t in r={...r,...i}){var n;let i=ik(n=r[t])?n[n.length-1]||0:n;e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,tr(i))}}(e,a)})}),h}function sW(e,t,i,s=0,r=1){let n=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),a=e.size,o=(a-1)*s;return"function"==typeof i?i(n,a):1===r?n*s:o-n*s}function sU(e,t,i={}){let s=iT(e,t,"exit"===i.type?e.presenceContext?.custom:void 0),{transition:r=e.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(r=i.transitionOverride);let n=s?()=>Promise.all(sO(e,s,i)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(s=0)=>{let{delayChildren:n=0,staggerChildren:a,staggerDirection:o}=r;return function(e,t,i=0,s=0,r=0,n=1,a){let o=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),o.push(sU(l,t,{...a,delay:i+("function"==typeof s?0:s)+sW(e.variantChildren,l,s,r,n)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(o)}(e,t,s,n,a,o,i)}:()=>Promise.resolve(),{when:o}=r;if(!o)return Promise.all([n(),a(i.delay)]);{let[e,t]="beforeChildren"===o?[n,a]:[a,n];return e().then(()=>t())}}let sH=tm.length;function sz(e,t){if(!Array.isArray(t))return!1;let i=t.length;if(i!==e.length)return!1;for(let s=0;s<i;s++)if(t[s]!==e[s])return!1;return!0}let sY=[...tc].reverse(),sX=tc.length;function sG(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sq(){return{animate:sG(!0),whileInView:sG(),whileHover:sG(),whileTap:sG(),whileDrag:sG(),whileFocus:sG(),exit:sG()}}let sK=0;function sZ(e){return[e("x"),e("y")]}let s_=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function sJ(e){return s_.has(e.tagName)||!0===e.isContentEditable}function sQ(e,t,i,s={passive:!0}){return e.addEventListener(t,i,s),()=>e.removeEventListener(t,i)}let s0={x:!1,y:!1};function s1(e){return e.max-e.min}function s2(e,t,i,s=.5){e.origin=s,e.originPoint=tB(t.min,t.max,e.origin),e.scale=s1(i)/s1(t),e.translate=tB(i.min,i.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function s5(e,t,i,s){s2(e.x,t.x,i.x,s?s.originX:void 0),s2(e.y,t.y,i.y,s?s.originY:void 0)}function s3(e,t,i){e.min=i.min+t.min,e.max=e.min+s1(t)}function s4(e,t,i){e.min=t.min-i.min,e.max=e.min+s1(t)}function s6(e,t,i){s4(e.x,t.x,i.x),s4(e.y,t.y,i.y)}let s8=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function s9(e){return{point:{x:e.pageX,y:e.pageY}}}function s7(e,t,i,s){return sQ(e,t,e=>s8(e)&&i(e,s9(e)),s)}let re=({current:e})=>e?e.ownerDocument.defaultView:null,rt=(e,t)=>Math.abs(e-t),ri=new Set(["auto","scroll"]);class rs{constructor(e,t,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:r=!1,distanceThreshold:n=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=ra(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,r=(e=i.offset,t={x:0,y:0},Math.sqrt(rt(e.x,t.x)**2+rt(e.y,t.y)**2)>=this.distanceThreshold);if(!s&&!r)return;let{point:n}=i,{timestamp:a}=eK;this.history.push({...n,timestamp:a});
1let{onStart:o,onMove:l}=this.handlers;s||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=rr(t,this.transformPagePoint),eG.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{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=ra("pointercancel"===e.type?this.lastMoveEventInfo:rr(t,this.transformPagePoint),this.history);this.startEvent&&i&&i(e,n),s&&s(e,n)},!s8(e))return;this.dragSnapToOrigin=r,this.handlers=t,this.transformPagePoint=i,this.distanceThreshold=n,this.contextWindow=s||window;const o=rr(s9(e),this.transformPagePoint),{point:l}=o,{timestamp:h}=eK;this.history=[{...l,timestamp:h}];const{onSessionStart:u}=t;u&&u(e,ra(o,this.history)),this.removeListeners=iM(s7(this.contextWindow,"pointermove",this.handlePointerMove),s7(this.contextWindow,"pointerup",this.handlePointerUp),s7(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(ri.has(e.overflowX)||ri.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let i=e===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},r={x:s.x-t.x,y:s.y-t.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(e,s),eG.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),eq(this.updatePoint)}}function rr(e,t){return t?{point:t(e.point)}:e}function rn(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ra({point:e},t){return{point:e,delta:rn(e,ro(t)),offset:rn(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,i=null,s=ro(e);for(;t>=0&&(i=e[t],!(s.timestamp-i.timestamp>iP(.1)));)t--;if(!i)return{x:0,y:0};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}(t)}}function ro(e){return e[e.length-1]}function rl(e,t,i){return{min:void 0!==t?e.min+t:void 0,max:void 0!==i?e.max+i-(e.max-e.min):void 0}}function rh(e,t){let i=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([i,s]=[s,i]),{min:i,max:s}}function ru(e,t,i){return{min:rd(e,t),max:rd(e,i)}}function rd(e,t){return"number"==typeof e?e:e[t]||0}let rc=new WeakMap;class rm{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=em(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:i}={}){let{presenceContext:s}=this.visualElement;if(s&&!1===s.isPresent)return;let r=e=>{t?(this.stopAnimation(),this.snapToCursor(s9(e).point)):this.pauseAnimation()},n=(e,t)=>{this.stopAnimation();let{drag:i,dragPropagation:s,onDragStart:r}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(s0[e])return null;else return s0[e]=!0,()=>{s0[e]=!1};return s0.x||s0.y?null:(s0.x=s0.y=!0,()=>{s0.x=s0.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),sZ(e=>{let t=this.getAxisMotionValue(e).get()||0;if(O.test(t)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[e];s&&(t=s1(s)*(parseFloat(t)/100))}}this.originPoint[e]=t}),r&&eG.postRender(()=>r(e,t)),iN(this.visualElement,"transform");let{animationState:n}=this.visualElement;n&&n.setActive("whileDrag",!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:r,onDrag:n}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=t;if(s&&null===this.currentDirection){this.currentDirection=function(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}(a),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),n&&n(e,t)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>sZ(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:h}=this.getProps();this.panSession=new rs(e,{onSessionStart:r,onStart:n,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:re(this.visualElement),element:this.visualElement.current})}stop(e,t){let i=e||this.latestPointerEvent,s=t||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!s||!i)return;let{velocity:n}=s;this.startAnimation(n);let{onDragEnd:a}=this.getProps();a&&eG.postRender(()=>a(i,s))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,i){let{drag:s}=this.getProps();if(!i||!rp(e,s,this.currentDirection))return;let r=this.getAxisMotionValue(e),n=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(n=function(e,{min:t,max:i},s){return void 0!==t&&e<t?e=s?tB(t,e,s.min):Math.max(e,t):void 0!==i&&e>i&&(e=s?tB(i,e,s.max):Math.min(e,i)),e}(n,this.constraints[e],this.elastic[e])),r.set(n)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;e&&iy(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=function(e,{top:t,left:i,bottom:s,right:r}){return{x:rl(e.x,i,r),y:rl(e.y,t,s)}}(i.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:ru(e,"left","right"),y:ru(e,"top","bottom")}}(t),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&sZ(e=>{var t,s;let r;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=i.layoutBox[e],s=this.constraints[e],r={},void 0!==s.min&&(r.min=s.min-t.min),void 0!==s.max&&(r.max=s.max-t.min),r))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!iy(t))return!1;let s=t.current;eb(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;let n=function(e,t,i){let s=tQ(e,i),{scroll:r}=t;return r&&(tZ(s.x,r.offset.x),tZ(s.y,r.offset.y)),s}(s,r.root,this.visualElement.getTransformPagePoint()),a=(e=r.layout.layoutBox,{x:rh(e.x,n.x),y:rh(e.y,n.y)});if(i){let e=i(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=tU(e))}return a}startAnimation(e){let{drag:t,dragMomentum:i,dragElastic:s,dragTransition:r,dragSnapToOrigin:n,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(sZ(a=>{if(!rp(a,t,this.currentDirection))return;let l=o&&o[a]||{};n&&(l={min:0,max:0});let h={type:"inertia",velocity:i?e[a]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(a,h)})).then(a)}startAxisValueAnimation(e,t){let i=this.getAxisMotionValue(e);return iN(this.visualElement,e),i.start(sF(e,i,0,t,this.visualElement,!1))}stopAnimation(){sZ(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){sZ(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps();return i[t]||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){sZ(t=>{let{drag:i}=this.getProps();if(!rp(t,i,this.currentDirection))return;let{projection:s}=this.visualElement,r=this.getAxisMotionValue(t);if(s&&s.layout){let{min:i,max:n}=s.layout.layoutBox[t],a=r.get()||0;r.set(e[t]-tB(i,n,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!iy(t)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};sZ(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var i,r;let n,a,o,l=t.get();s[e]=(i={min:l,max:l},r=this.constraints[e],n=.5,a=s1(i),(o=s1(r))>a?n=sd(r.min,r.max-a,i.min):a>o&&(n=sd(i.min,i.max-o,r.min)),N(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.resolveConstraints(),sZ(t=>{if(!rp(t,e,null))return;let i=this.getAxisMotionValue(t),{min:r,max:n}=this.constraints[t];i.set(tB(r,n,s[t]))})}addListeners(){if(!this.visualElement.current)return;rc.set(this.visualElement,this);let e=this.visualElement.current,t=s7(e,"pointerdown",t=>{let{drag:i,dragListener:s=!0}
1=this.getProps(),r=t.target,n=r!==e&&sJ(r);i&&s&&!n&&this.start(t)}),i=()=>{let{dragConstraints:e}=this.getProps();iy(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,r=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),eG.read(i);let n=sQ(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(sZ(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{n(),t(),r(),a&&a()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:r=!1,dragElastic:n=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:s,dragConstraints:r,dragElastic:n,dragMomentum:a}}}function rp(e,t,i){return(!0===t||t===e)&&(null===i||i===e)}let rf=e=>(t,i)=>{e&&eG.postRender(()=>e(t,i))},rg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var rx=h;function rv(e=!0){let t=(0,h.useContext)(ia);if(null===t)return[!0,null];let{isPresent:i,onExitComplete:s,register:r}=t,n=(0,h.useId)();(0,h.useEffect)(()=>{if(e)return r(n)},[e]);let a=(0,h.useCallback)(()=>e&&s&&s(n),[n,s,e]);return!i&&s?[!1,a]:[!0]}let ry=!1;class rw extends rx.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i,layoutId:s}=this.props,{projection:r}=e;r&&(t.group&&t.group.add(r),i&&i.register&&s&&i.register(r),ry&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),rg.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:i,drag:s,isPresent:r}=this.props,{projection:n}=i;return n&&(n.isPresent=r,e.layoutDependency!==t&&n.setOptions({...n.options,layoutDependency:t}),ry=!0,s||e.layoutDependency!==t||void 0===t||e.isPresent!==r?n.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?n.promote():n.relegate()||eG.postRender(()=>{let e=n.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),te.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:s}=e;ry=!0,s&&(s.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function rb(e){let[t,i]=rv(),s=(0,rx.useContext)(t5);return(0,n.jsx)(rw,{...e,layoutGroup:s,switchLayoutGroup:(0,rx.useContext)(iv),isPresent:t,safeToRemove:i})}function rj(e){return"object"==typeof e&&null!==e}function rT(e){return rj(e)&&"ownerSVGElement"in e}let rS=["TopLeft","TopRight","BottomLeft","BottomRight"],rk=rS.length,rN=e=>"string"==typeof e?parseFloat(e):e,rP=e=>"number"==typeof e||W.test(e);function rC(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let rM=rE(0,.5,sa),rA=rE(.5,.95,eH);function rE(e,t,i){return s=>s<e?0:s>t?1:i(sd(e,t,s))}function rV(e,t){e.min=t.min,e.max=t.max}function rL(e,t){rV(e.x,t.x),rV(e.y,t.y)}function rR(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function rD(e,t,i,s,r){return e-=t,e=s+1/i*(e-s),void 0!==r&&(e=s+1/r*(e-s)),e}function rB(e,t,[i,s,r],n,a){!function(e,t=0,i=1,s=.5,r,n=e,a=e){if(O.test(t)&&(t=parseFloat(t),t=tB(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let o=tB(n.min,n.max,s);e===n&&(o-=t),e.min=rD(e.min,t,i,o,r),e.max=rD(e.max,t,i,o,r)}(e,t[i],t[s],t[r],t.scale,n,a)}let rI=["x","scaleX","originX"],r$=["y","scaleY","originY"];function rF(e,t,i,s){rB(e.x,t,rI,i?i.x:void 0,s?s.x:void 0),rB(e.y,t,r$,i?i.y:void 0,s?s.y:void 0)}function rO(e){return 0===e.translate&&1===e.scale}function rW(e){return rO(e.x)&&rO(e.y)}function rU(e,t){return e.min===t.min&&e.max===t.max}function rH(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function rz(e,t){return rH(e.x,t.x)&&rH(e.y,t.y)}function rY(e){return s1(e.x)/s1(e.y)}function rX(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class rG{constructor(){this.members=[]}add(e){e8(this.members,e),e.scheduleRender()}remove(e){if(e9(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,i=this.members.findIndex(t=>e===t);if(0===i)return!1;for(let e=i;e>=0;e--){let i=this.members[e];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender();let s=i.options.layoutDependency,r=e.options.layoutDependency;(void 0===s||void 0===r||s!==r)&&(e.resumeFrom=i,t&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0));let{crossfade:n}=e.options;!1===n&&i.hide()}}
1exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:i}=e;t.onExitComplete&&t.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let rq=(e,t)=>e.depth-t.depth;class rK{constructor(){this.children=[],this.isDirty=!1}add(e){e8(this.children,e),this.isDirty=!0}remove(e){e9(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(rq),this.isDirty=!1,this.children.forEach(e)}}let rZ=["","X","Y","Z"],r_=0;function rJ(e,t,i,s){let{latestValues:r}=t;r[e]&&(i[e]=r[e],t.setStaticValue(e,0),s&&(s[e]=0))}function rQ({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(e={},i=t?.()){this.id=r_++,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=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(r2),this.nodes.forEach(r7),this.nodes.forEach(ne),this.nodes.forEach(r5)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new rK)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new e7),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let i=this.eventHandlers.get(e);i&&i.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=rT(t)&&!(rT(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:i,layout:s,visualElement:r}=this.options;if(r&&!r.current&&r.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),e){let i,s=0,r=()=>this.root.updateBlockedByResize=!1;eG.read(()=>{s=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==s){let t,n;s=e,this.root.updateBlockedByResize=!0,i&&i(),t=ti.now(),n=({timestamp:e})=>{let i=e-t;i>=250&&(eq(n),r(i-250))},eG.setup(n,!0),i=()=>eq(n),rg.hasAnimatedSinceResize&&(rg.hasAnimatedSinceResize=!1,this.nodes.forEach(r9))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||s)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||r.getDefaultTransition()||na,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=r.getProps(),l=!this.targetLayout||!rz(this.targetLayout,s),h=!t&&i;if(this.options.layoutRoot||this.resumeFrom||h||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...iS(n,"layout"),onPlay:a,onComplete:o};(r.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,h)}else t||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 e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eq(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(nt),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:i}=t.options;if(!i)return;let s=i.props[ix];if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(s,"transform",eG,!(e||i))}let{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&e(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:i}=this.options;if(void 0===t&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(r4);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(r6);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(r8),this.nodes.forEach(r0),this.nodes.forEach(r1)):this.nodes.forEach(r6),this.clearAllSnapshots();let e=ti.now();eK.delta=N(0,1e3/60,e-eK.timestamp),eK.timestamp=e,eK.isProcessing=!0,eZ.update.process(eK),eZ.preRender.process(eK),eZ.render.process(eK),eK.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,te.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(r3),this.sharedNodes.forEach(ni)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eG.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eG.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||s1(this.snapshot.measuredBox.x)||s1(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=em(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=s(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!r)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!rW(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,n=s!==this.prevTransformTemplateValue;e&&this.instance&&(t||tY(this.latestValues)||n)&&(r(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let i=this.measurePageBox(),s=this.removeElementScroll(i);return e&&(s=this.removeTransform(s)),nh((t=s).x),nh(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return em();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(nd))){let{scroll:e}=this.root;e&&(tZ(t.x,e.offset.x),tZ(t.y,e.offset.y))}return t}removeElementScroll(e){let t=em();if(rL(t,e),this.scroll?.wasRoot)return t;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&&rL(t,e),tZ(t.x,r.offset.x),tZ(t.y,r.offset.y))}return t}applyTransform(e,t=!1){let i=em();rL(i,e);for(let e=0;e<this.path.length;e++){let s=this.path[e];!t&&s.options.layoutScroll&&s.scroll&&s!==s.root&&tJ(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),tY(s.latestValues)&&tJ(i,s.latestValues)}return tY(this.latestValues)&&tJ(i,this.latestValues),i}removeTransform(e){let t=em();rL(t,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];if(!i.instance||!tY(i.latestValues))continue;tz(i.latestValues)&&i.updateSnapshot();let s=em();rL(s,i.measurePageBox()),rF(t,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return tY(this.latestValues)&&rF(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==eK.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
1isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==t;if(!(e||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:r}=this.options;if(!this.layout||!(s||r))return;this.resolvedRelativeTargetAt=eK.timestamp;let n=this.getClosestProjectingParent();if(n&&this.linkedParentVersion!==n.layoutVersion&&!n.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(n&&n.layout?this.createRelativeTarget(n,this.layout.layoutBox,n.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=em(),this.targetWithTransforms=em()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,o,l;this.forceRelativeParentToResolveTarget(),a=this.target,o=this.relativeTarget,l=this.relativeParent.target,s3(a.x,o.x,l.x),s3(a.y,o.y,l.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rL(this.target,this.layout.layoutBox),tK(this.target,this.targetDelta)):rL(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,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||tz(this.parent.latestValues)||tX(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,i){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=em(),this.relativeTargetOrigin=em(),s6(this.relativeTargetOrigin,t,i),rL(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===eK.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;rL(this.layoutCorrected,this.layout.layoutBox);let n=this.treeScale.x,a=this.treeScale.y;!function(e,t,i,s=!1){let r,n,a=i.length;if(a){t.x=t.y=1;for(let o=0;o<a;o++){n=(r=i[o]).projectionDelta;let{visualElement:a}=r.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&tJ(e,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),n&&(t.x*=n.x.scale,t.y*=n.y.scale,tK(e,n)),s&&tY(r.latestValues)&&tJ(e,r.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=em());let{target:o}=e;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rR(this.prevProjectionDelta.x,this.projectionDelta.x),rR(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),s5(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===n&&this.treeScale.y===a&&rX(this.projectionDelta.x,this.prevProjectionDelta.x)&&rX(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ed(),this.projectionDelta=ed(),this.projectionDeltaWithTransform=ed()}setAnimationOrigin(e,t=!1){let i,s=this.snapshot,r=s?s.latestValues:{},n={...this.latestValues},a=ed();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=em(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,d=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(nn));this.animationProgress=0,this.mixTargetDelta=t=>{let s=t/1e3;if(ns(a.x,e.x,s),ns(a.y,e.y,s),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,c,m,p,f,g;s6(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,p=this.relativeTargetOrigin,f=o,g=s,nr(m.x,p.x,f.x,g),nr(m.y,p.y,f.y,g),i&&(h=this.relativeTarget,c=i,rU(h.x,c.x)&&rU(h.y,c.y))&&(this.isProjectionDirty=!1),i||(i=em()),rL(i,this.relativeTarget)}l&&(this.animationValues=n,function(e,t,i,s,r,n){r?(e.opacity=tB(0,i.opacity??1,rM(s)),e.opacityExit=tB(t.opacity??1,0,rA(s))):n&&(e.opacity=tB(t.opacity??1,i.opacity??1,s));for(let r=0;r<rk;r++){let n=`border${rS[r]}Radius`,a=rC(t,n),o=rC(i,n);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||rP(a)===rP(o)?(e[n]=Math.max(tB(rN(a),rN(o),s),0),(O.test(o)||O.test(a))&&(e[n]+="
1%")):e[n]=o)}(t.rotate||i.rotate)&&(e.rotate=tB(t.rotate||0,i.rotate||0,s))}(n,r,this.latestValues,s,d,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(eq(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eG.update(()=>{var t,i,s;let r;rg.hasAnimatedSinceResize=!0,iA.layout++,this.motionValue||(this.motionValue=tr(0)),this.currentAnimation=(t=this.motionValue,i=[0,1e3],s={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{iA.layout--},onComplete:()=>{iA.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}},(r=ep(t)?t:tr(t)).start(sF("",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 e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:i,layout:s,latestValues:r}=e;if(t&&i&&s){if(this!==e&&this.layout&&s&&nu(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||em();let t=s1(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let s=s1(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+s}rL(t,i),tJ(t,r),s5(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new rG),this.sharedNodes.get(e).add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:i}=e;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(t=!0),!t)return;let s={};i.z&&rJ("z",e,s,this.animationValues);for(let t=0;t<rZ.length;t++)rJ(`rotate${rZ[t]}`,e,s,this.animationValues),rJ(`skew${rZ[t]}`,e,s,this.animationValues);for(let t in e.render(),s)e.setStaticValue(t,s[t]),this.animationValues&&(this.animationValues[t]=s[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=ir(t?.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none";return}let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=ir(t?.pointerEvents)||""),this.hasProjected&&!tY(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1);return}e.visibility="";let r=s.animationValues||s.latestValues;this.applyTransformsToTarget();let n=function(e,t,i){let s="",r=e.x.translate/t.x,n=e.y.translate/t.y,a=i?.z||0;if((r||n||a)&&(s=`translate3d(${r}px, ${n}px, ${a}px) `),(1!==t.x||1!==t.y)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),i){let{transformPerspective:e,rotate:t,rotateX:r,rotateY:n,skewX:a,skewY:o}=i;e&&(s=`perspective(${e}px) ${s}`),t&&(s+=`rotate(${t}deg) `),r&&(s+=`rotateX(${r}deg) `),n&&(s+=`rotateY(${n}deg) `),a&&(s+=`skewX(${a}deg) `),o&&(s+=`skewY(${o}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(s+=`scale(${o}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);
1i&&(n=i(r,n)),e.transform=n;let{x:a,y:o}=this.projectionDelta;for(let t in e.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,s.animationValues?e.opacity=s===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:e.opacity=s===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,tI){if(void 0===r[t])continue;let{correct:i,applyTo:a,isCSSVariable:o}=tI[t],l="none"===n?r[t]:i(r[t],s);if(a){let t=a.length;for(let i=0;i<t;i++)e[a[i]]=l}else o?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=s===this?ir(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(r4),this.root.sharedNodes.clear()}}}function r0(e){e.updateLayout()}function r1(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=e.layout,{animationType:r}=e.options,n=t.source!==e.layout.source;"size"===r?sZ(e=>{let s=n?t.measuredBox[e]:t.layoutBox[e],r=s1(s);s.min=i[e].min,s.max=s.min+r}):nu(r,t.layoutBox,i)&&sZ(s=>{let r=n?t.measuredBox[s]:t.layoutBox[s],a=s1(i[s]);r.max=r.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[s].max=e.relativeTarget[s].min+a)});let a=ed();s5(a,i,t.layoutBox);let o=ed();n?s5(o,e.applyTransform(s,!0),t.measuredBox):s5(o,i,t.layoutBox);let l=!rW(a),h=!1;if(!e.resumeFrom){let s=e.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:r,layout:n}=s;if(r&&n){let a=em();s6(a,t.layoutBox,r.layoutBox);let o=em();s6(o,i,n.layoutBox),rz(a,o)||(h=!0),s.options.layoutRoot&&(e.relativeTarget=o,e.relativeTargetOrigin=a,e.relativeParent=s)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function r2(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function r5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function r3(e){e.clearSnapshot()}function r4(e){e.clearMeasurements()}function r6(e){e.isLayoutDirty=!1}function r8(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function r9(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function r7(e){e.resolveTargetDelta()}function ne(e){e.calcProjection()}function nt(e){e.resetSkewAndRotation()}function ni(e){e.removeLeadSnapshot()}function ns(e,t,i){e.translate=tB(t.translate,0,i),e.scale=tB(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function nr(e,t,i,s){e.min=tB(t.min,i.min,s),e.max=tB(t.max,i.max,s)}function nn(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let na={duration:.45,ease:[.4,0,.1,1]},no=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),nl=no("applewebkit/")&&!no("chrome/")?Math.round:eH;function nh(e){e.min=nl(e.min),e.max=nl(e.max)}function nu(e,t,i){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(rY(t)-rY(i)))}function nd(e){return e!==e.root&&e.scroll?.wasRoot}let nc=rQ({attachResizeListener:(e,t)=>sQ(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),nm={current:void 0},np=rQ({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!nm.current){let e=new nc({});e.mount(window),e.setOptions({layoutScroll:!0}),nm.current=e}return nm.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function nf(e,t){let i=function(e){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document,i=(void 0)??t.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>null!=e)}(e),s=new AbortController;return[i,{passive:!0,...t,signal:s.signal},()=>s.abort()]}function ng(e){return!("touch"===e.pointerType||s0.x||s0.y)}function nx(e,t,i){let{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover","Start"===i);let r=s["onHover"+i];r&&eG.postRender(()=>r(t,s9(t)))}function nv(e){return rj(e)&&"offsetHeight"in e}let ny=(e,t)=>!!t&&(e===t||ny(e,t.parentElement)),nw=new WeakSet;function nb(e){return t=>{"Enter"===t.key&&e(t)}}function nj(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function nT(e){return s8(e)&&!(s0.x||s0.y)}function nS(e,t,i){let{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap","Start"===i);let r=s["onTap"+("End"===i?"":i)];r&&eG.postRender(()=>r(t,s9(t)))}let nk=new WeakMap,nN=new WeakMap,nP=e=>{let t=nk.get(e.target);t&&t(e)},nC=e=>{e.forEach(nP)},nM={some:0,all:1},nA=function(e,t){if("u"<typeof Proxy)return ib;let i=new Map,s=(i,s)=>ib(i,s,e,t);return new Proxy((e,t)=>s(e,t),{get:(r,n)=>"create"===n?s:(i.has(n)||i.set(n,ib(n,void 0,e,t)),i.get(n))})}({animation:{Feature:class extends ij{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:i})=>(function(e,t,i={}){let s;if(e.notify("AnimationStart",t),Array.isArray(t))s=Promise.all(t.map(t=>sU(e,t,i)));else if("string"==typeof t)s=sU(e,t,i);else{let r="function"==typeof t?iT(e,t,i.custom):t;s=Promise.all(sO(e,r,i))}return s.then(()=>
1{e.notify("AnimationComplete",t)})})(e,t,i))),i=sq(),s=!0,r=t=>(i,s)=>{let r=iT(e,s,"exit"===t?e.presenceContext?.custom:void 0);if(r){let{transition:e,transitionEnd:t,...s}=r;i={...i,...s,...t}}return i};function n(n){let{props:a}=e,o=function e(t){if(!t)return;if(!t.isControllingVariants){let i=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(i.initial=t.props.initial),i}let i={};for(let e=0;e<sH;e++){let s=tm[e],r=t.props[s];(td(r)||!1===r)&&(i[s]=r)}return i}(e.parent)||{},l=[],h=new Set,u={},d=1/0;for(let t=0;t<sX;t++){var c,m;let p=sY[t],f=i[p],g=void 0!==a[p]?a[p]:o[p],x=td(g),v=p===n?f.isActive:null;!1===v&&(d=t);let y=g===o[p]&&g!==a[p]&&x;if(y&&s&&e.manuallyAnimateOnMount&&(y=!1),f.protectedKeys={...u},!f.isActive&&null===v||!g&&!f.prevProp||tu(g)||"boolean"==typeof g)continue;let w=(c=f.prevProp,"string"==typeof(m=g)?m!==c:!!Array.isArray(m)&&!sz(m,c)),b=w||p===n&&f.isActive&&!y&&x||t>d&&x,j=!1,T=Array.isArray(g)?g:[g],S=T.reduce(r(p),{});!1===v&&(S={});let{prevResolvedValues:k={}}=f,N={...k,...S},P=t=>{b=!0,h.has(t)&&(j=!0,h.delete(t)),f.needsAnimating[t]=!0;let i=e.getValue(t);i&&(i.liveStyle=!1)};for(let e in N){let t=S[e],i=k[e];if(!u.hasOwnProperty(e))(ik(t)&&ik(i)?sz(t,i):t===i)?void 0!==t&&h.has(e)?P(e):f.protectedKeys[e]=!0:null!=t?P(e):h.add(e)}f.prevProp=g,f.prevResolvedValues=S,f.isActive&&(u={...u,...S}),s&&e.blockInitialAnimation&&(b=!1);let C=y&&w,M=!C||j;b&&M&&l.push(...T.map(t=>{let i={type:p};if("string"==typeof t&&s&&!C&&e.manuallyAnimateOnMount&&e.parent){let{parent:s}=e,r=iT(s,t);if(s.enteringChildren&&r){let{delayChildren:t}=r.transition||{};i.delay=sW(s.enteringChildren,e,t)}}return{animation:t,options:i}}))}if(h.size){let t={};if("boolean"!=typeof a.initial){let i=iT(e,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(t.transition=i.transition)}h.forEach(i=>{let s=e.getBaseTarget(i),r=e.getValue(i);r&&(r.liveStyle=!0),t[i]=s??null}),l.push({animation:t})}let p=!!l.length;return s&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(p=!1),s=!1,p?t(l):Promise.resolve()}return{animateChanges:n,setActive:function(t,s){if(i[t].isActive===s)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,s)),i[t].isActive=s;let r=n(t);for(let e in i)i[e].protectedKeys={};return r},setAnimateFunction:function(i){t=i(e)},getState:()=>i,reset:()=>{i=sq()}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();tu(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends ij{constructor(){super(...arguments),this.id=sK++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;let s=this.node.animationState.setActive("exit",!e);t&&!e&&s.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends ij{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:s,margin:r,amount:n="some",once:a}=i,o={root:s?s.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:nM[n]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,a&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),r=t?i:s;r&&r(e)};return e=this.node.current,t=function({root:e,...t}){let i=e||document;nN.has(i)||nN.set(i,{});let s=nN.get(i),r=JSON.stringify(t);return s[r]||(s[r]=new IntersectionObserver(nC,{root:e,...t})),s[r]}(o),nk.set(e,l),t.observe(e),()=>{nk.delete(e),t.unobserve(e)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends ij{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[s,r,n]=nf(e,i),a=e=>{let s=e.currentTarget;if(!nT(e))return;nw.add(s);let n=t(s,e),a=(e,t)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),nw.has(s)&&nw.delete(s),nT(e)&&"function"==typeof n&&n(e,{success:t})},o=e=>{a(e,s===window||s===document||i.useGlobalTarget||ny(s,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",o,r),window.addEventListener("pointercancel",l,r)};
1return s.forEach(e=>{(i.useGlobalTarget?window:e).addEventListener("pointerdown",a,r),nv(e)&&(e.addEventListener("focus",e=>((e,t)=>{let i=e.currentTarget;if(!i)return;let s=nb(()=>{if(nw.has(i))return;nj(i,"down");let e=nb(()=>{nj(i,"up")});i.addEventListener("keyup",e,t),i.addEventListener("blur",()=>nj(i,"cancel"),t)});i.addEventListener("keydown",s,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),t)})(e,r)),sJ(e)||e.hasAttribute("tabindex")||(e.tabIndex=0))}),n}(e,(e,t)=>(nS(this.node,t,"Start"),(e,{success:t})=>nS(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends ij{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=iM(sQ(this.node.current,"focus",()=>this.onFocus()),sQ(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends ij{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[s,r,n]=nf(e,i),a=e=>{if(!ng(e))return;let{target:i}=e,s=t(i,e);if("function"!=typeof s||!i)return;let n=e=>{ng(e)&&(s(e),i.removeEventListener("pointerleave",n))};i.addEventListener("pointerleave",n,r)};return s.forEach(e=>{e.addEventListener("pointerenter",a,r)}),n}(e,(e,t)=>(nx(this.node,t,"Start"),e=>nx(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends ij{constructor(){super(...arguments),this.removePointerDownListener=eH}onPointerDown(e){this.session=new rs(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:re(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:rf(e),onStart:rf(t),onMove:i,onEnd:(e,t)=>{delete this.session,s&&eG.postRender(()=>s(e,t))}}}mount(){this.removePointerDownListener=s7(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends ij{constructor(e){super(e),this.removeGroupControls=eH,this.removeListeners=eH,this.controls=new rm(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eH}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:np,MeasureLayout:rb},layout:{ProjectionNode:np,MeasureLayout:rb}},(e,t)=>t.isSVG??t2(e)?new tW(t):new t0(t,{allowProjection:e!==h.Fragment}));var nE=e.i(60769),nV=e.i(596032);let nL=()=>{let e="0123456789abcdef";return Array.from({length:7},()=>e[Math.floor(Math.random()*e.length)]).join("")},nR=({hash:e})=>{let t=(0,nV.useIsClient)();return(0,n.jsxs)("div",{className:"flex items-center gap-2 rounded-lg border border-gray-200 bg-white p-3 font-mono text-sm text-gray-700 shadow-sm",children:[(0,n.jsx)("svg",{className:"h-5 w-5 text-gray-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-3m-1 4l-3 3m0 0l-3-3m3 3V4"})}),(0,n.jsx)("span",{children:"User pushed commit"}),(0,n.jsx)("span",{className:"rounded bg-blue-50 px-1 font-semibold text-blue-700",children:t?e:"loading..."}),(0,n.jsx)("span",{children:"to"}),(0,n.jsx)("span",{className:"rounded bg-green-50 px-1 font-semibold text-green-700",children:"development"})]})},nD=({title:e,isRunning:t,isComplete:i,duration:s,subActions:r})=>{let[a,o]=(0,h.useState)(0),l=h.default.useRef(0);return(0,h.useEffect)(()=>
1{if(t){l.current=Date.now();let e=setInterval(()=>{let t=Math.min((Date.now()-l.current)/(1e3*s)*100,100);o(t),t>=100&&clearInterval(e)},16);return()=>clearInterval(e)}o(0)},[t,s]),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsxs)(nA.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"flex items-center gap-3 rounded-lg border border-gray-200 bg-white p-3 shadow-sm",children:[i?(0,n.jsx)("svg",{className:"h-5 w-5 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}):t?(0,n.jsx)(nA.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},className:"h-5 w-5",children:(0,n.jsx)("svg",{className:"h-full w-full bg-gradient-to-br from-purple-600 to-blue-500 bg-clip-text",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})},t?"running":"idle"):(0,n.jsx)("div",{className:"h-5 w-5 rounded-full border-2 border-gray-300"}),(0,n.jsx)("span",{className:"text-sm font-medium",children:e}),t&&(0,n.jsx)("div",{className:"h-1 flex-1 overflow-hidden rounded-full bg-gray-100",children:(0,n.jsx)(nA.div,{className:"h-full bg-gradient-to-br from-purple-600 to-blue-500",style:{width:`${a}%`}})})]}),r&&(0,n.jsx)("div",{className:"ml-8 space-y-1",children:r.map((e,t)=>{var i,s;return(0,n.jsxs)(nA.div,{initial:{opacity:0,height:0},animate:{opacity:e.isComplete||e.isRunning?1:0,height:e.isComplete||e.isRunning?"auto":0},className:"flex items-center gap-2 text-sm text-gray-600",children:[e.isComplete?(0,n.jsx)("svg",{className:"h-4 w-4 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}):e.isRunning?(0,n.jsx)(nA.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},className:"h-4 w-4",children:(0,n.jsx)("svg",{className:"h-full w-full text-blue-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})}):(0,n.jsx)("div",{className:"h-4 w-4 rounded-full border-2 border-gray-300"}),(0,n.jsx)("span",{children:(i=e.text,s=e.highlightHash?e.hash:void 0,i.includes("localhost:8080")?i.split("localhost:8080").map((e,t,i)=>(0,n.jsxs)(h.default.Fragment,{children:[e,t<i.length-1&&(0,n.jsx)("span",{className:"rounded bg-stone-50 px-1 font-semibold text-stone-700",children:"localhost:8080"})]},t)):i.includes("scenario")?i.split(/scenario (\w+)/).map((e,t)=>(0,n.jsx)(h.default.Fragment,{children:t%2==1?(0,n.jsxs)(n.Fragment,{children:["scenario"," ",(0,n.jsx)("span",{className:"rounded bg-purple-50 px-1 font-semibold text-purple-700",children:e})]}):e},t)):s?i.split(s).map((e,t,i)=>(0,n.jsxs)(h.default.Fragment,{children:[e,t<i.length-1&&(0,n.jsx)("span",{className:"rounded bg-blue-50 px-1 font-semibold text-blue-700",children:s})]},t)):i)}),e.showIconOnComplete&&e.isComplete&&e.icon]},t)})})]})},nB=()=>{let[e,t]=(0,h.useState)(nL()),[i,s]=(0,h.useState)(!1),[r,a]=(0,h.useState)(!1),[o,l]=(0,h.useState)(!1),[u,d]=(0,h.useState)(!1),[c,p]=(0,h.useState)(!1),[f,g]=(0,h.useState)(!1),[x,v]=(0,h.useState)([]),[y,w]=(0,h.useState)([]),[b,j]=(0,h.useState)([]);return(0,h.useEffect)(()=>{let e=async()=>{let i=nL();t(i),s(!1),a(!1),l(!1),d(!1),p(!1),g(!1),v([]),w([]),j([]),await new Promise(e=>setTimeout(e,1e3)),s(!0),v([{text:`Building commit ${i}`,isComplete:!1,isRunning:!0,highlightHash:!0,hash:i}]),await new Promise(e=>setTimeout(e,3e3)),v(e=>e.map(e=>({...e,isComplete:!0,isRunning:!1}))),s(!1),a(!0),l(!0),j([{text:"Deploying to localhost:8080",isComplete:!1,isRunning:!0}]),await new Promise(e=>setTimeout(e,2e3)),j(e=>e.map(e=>({...e,isComplete:!0,isRunning:!1}))),l(!1),d(!0);let r=nL();p(!0),w([{text:"Variata visiting localhost:8080",isComplete:!1,isRunning:!0},{text:`Variata running scenario ${r}`,isComplete:!1},{text:"Variata generating reports",isComplete:!1},{text:`View reports for commit ${i}`,isComplete:!1,icon:(0,n.jsx)(nE.ExternalLink,{className:"ml-1 inline-block h-4 w-4"}),showIconOnComplete:!0,highlightHash:!0,hash:i}]);for(let e=0;e<4;e++)await new Promise(e=>setTimeout(e,1e3)),w(t=>t.map((t,i)=>({...t,isComplete:i<=e,isRunning:i===e+1})));await new Promise(e=>setTimeout(e,2e3)),p(!1),g(!0),await new Promise(e=>setTimeout(e,2e3)),e()};e()},[]),(0,n.jsx)("div",{className:"relative flex h-full w-full items-center justify-center",children:(0,n.jsx)(m,{width:500,height:600,children:(0,n.jsxs)("div",{className:"relative flex h-full w-full flex-col gap-4",children:[(0,n.jsx)(nR,{hash:e}),(0,n.jsxs)("div",{className:"mt-6 space-y-3",children:[(0,n.jsx)(nD,{title:"build",isRunning:i,isComplete:r,duration:3,subActions:x}),(0,n.jsx)(nD,{title:"deploy",isRunning:o,isComplete:u,duration:2,subActions:b}),(0,n.jsx)(nD,{title:"test",isRunning:c,isComplete:f,duration:5,subActions:y})]})]})})})},nI=({hash:e,monthYear:t})=>(0,n.jsxs)("div",{className:"flex items-center gap-2 rounded-lg border border-gray-200 bg-white p-3 font-mono text-sm text-gray-700 shadow-sm",children:[(0,n.jsx)("svg",{className:"h-5 w-5 text-gray-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"})}),(0,n.jsx)("span",{children:"Preparing release"}),(0,n.jsx)("span",{className:"rounded bg-purple-50 px-1 font-semibold text-purple-700",children:t}),(0,n.jsx)("span",{children:"for commit"}),(0,n.jsx)("span",{className:"rounded bg-blue-50 px-1 font-semibold text-blue-700",children:e})]}),n$=({title:e,isRunning:t,isComplete:i,duration:s,subActions:r})=>{let[a,o]=(0,h.useState)(0),l=h.default.useRef(0);return(0,h.useEffect)(()=>
1{if(t){l.current=Date.now();let e=setInterval(()=>{let t=Math.min((Date.now()-l.current)/(1e3*s)*100,100);o(t),t>=100&&clearInterval(e)},16);return()=>clearInterval(e)}o(0)},[t,s]),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsxs)(nA.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"flex items-center gap-3 rounded-lg border border-gray-200 bg-white p-3 shadow-sm",children:[i?(0,n.jsx)("svg",{className:"h-5 w-5 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}):t?(0,n.jsx)(nA.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},className:"h-5 w-5",children:(0,n.jsx)("svg",{className:"h-full w-full text-blue-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})}):(0,n.jsx)("div",{className:"h-5 w-5 rounded-full border-2 border-gray-300"}),(0,n.jsx)("span",{className:"text-sm font-medium",children:e}),t&&(0,n.jsx)("div",{className:"h-1 flex-1 overflow-hidden rounded-full bg-gray-100",children:(0,n.jsx)(nA.div,{className:"h-full bg-gradient-to-br from-purple-600 to-blue-500",style:{width:`${a}%`}})})]}),r&&(0,n.jsx)("div",{className:"ml-8 space-y-1",children:r.map((e,t)=>(0,n.jsxs)(nA.div,{initial:{opacity:0,height:0},animate:{opacity:e.isComplete||e.isRunning?1:0,height:e.isComplete||e.isRunning?"auto":0},className:"flex items-center gap-2 text-sm text-gray-600",children:[e.isComplete?(0,n.jsx)("svg",{className:"h-4 w-4 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}):e.isRunning?(0,n.jsx)(nA.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},className:"h-4 w-4",children:(0,n.jsx)("svg",{className:"h-full w-full text-blue-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})}):(0,n.jsx)("div",{className:"h-4 w-4 rounded-full border-2 border-gray-300"}),(0,n.jsx)("span",{children:e.text})]},t))})]})},nF=["home page","category page","product page","sign up flow","search flow","checkout flow","live chat flow"],nO=()=>{let[e,t]=(0,h.useState)("0000000"),[i,s]=(0,h.useState)("January-2024"),[r,a]=(0,h.useState)(-1),[o,l]=(0,h.useState)(-1),u=(0,nV.useIsClient)();return((0,h.useEffect)(()=>{if(!u)return;let e=async()=>{let i,r;t((i="0123456789abcdef",Array.from({length:7},()=>i[Math.floor(Math.random()*i.length)]).join(""))),s((r=new Date,`${r.toLocaleString("default",{month:"long"})}-${r.getFullYear()}`)),a(0),l(-1),await new Promise(e=>setTimeout(e,1e3));for(let e=0;e<nF.length;e++)l(e),await new Promise(e=>setTimeout(e,2e3));a(1),l(-1),await new Promise(e=>setTimeout(e,2e3)),await new Promise(e=>setTimeout(e,2e3)),e()};e()},[u]),u)?(0,n.jsx)("div",{className:"relative flex h-full w-full items-center justify-center",children:(0,n.jsx)(m,{width:500,height:600,children:(0,n.jsxs)("div",{className:"relative h-full w-full",children:[(0,n.jsx)(nI,{hash:e,monthYear:i}),(0,n.jsxs)("div",{className:"mt-6 space-y-3",children:[(0,n.jsx)(n$,{title:"Variata running release checklist",isRunning:0===r,isComplete:r>0,duration:14,subActions:nF.map((e,t)=>({text:`Testing ${e}`,isComplete:o>t,isRunning:o===t}))}),(0,n.jsx)(n$,{title:"Generating reports",isRunning:1===r,isComplete:r>1,duration:2})]})]})})}):null};var nW=e.i(741679),nW=nW,nU=e.i(83368),nU=nU;let nH=({date:e,isHighlighted:t,isCurrent:i})=>(0,n.jsxs)("div",{className:"absolute left-1/2 top-1/2 h-[90%] w-4/5 -translate-x-1/2 -translate-y-1/2 overflow-hidden rounded-lg border border-gray-200 bg-white shadow-sm",children:[(0,n.jsxs)("div",{className:"flex h-7 items-center gap-2 bg-gray-800 px-3",children:[(0,n.jsxs)("div",{className:"flex gap-1.5",children:[(0,n.jsx)("div",{className:"size-1.5 rounded-full bg-gray-600"}),(0,n.jsx)("div",{className:"size-1.5 rounded-full bg-gray-600"}),(0,n.jsx)("div",{className:"size-1.5 rounded-full bg-gray-600"})]}),(0,n.jsx)("div",{className:"flex flex-1 items-center",children:(0,n.jsx)("div",{className:"flex h-4 w-full items-center justify-center rounded bg-gray-700",children:(0,n.jsx)("span",{className:"text-[10px] text-gray-400",children:"variata.ai"})})})]}),(0,n.jsxs)("div",{className:"space-y-4 p-4",children:[(0,n.jsxs)("div",{className:`inline-flex items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition-colors ${t?i?"bg-blue-50 text-blue-700":"bg-purple-50 text-purple-700":"bg-gray-100 text-gray-600"} `,children:[(0,n.jsx)("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z"})}),"Release ",e]}),(0,n.jsxs)("div",{className:"space-y-3",children:[(0,n.jsx)("div",{className:`h-4 w-3/4 rounded-md ${i?"bg-blue-50":"bg-purple-50"}`}),(0,n.jsx)("div",{className:"space-y-2",children:[void 0,void 0,void 0].map((e,t)=>(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("div",{className:`h-4 w-4 roun
1ded-full ${i?"bg-blue-50":"bg-purple-50"}`}),(0,n.jsx)("div",{className:`h-3 rounded-md ${i?"bg-blue-50":"bg-purple-50"}`,style:{width:`${Math.max(40,Math.min(80,50+15*t))}%`}})]},t))}),(0,n.jsx)("div",{className:`mt-4 h-8 w-1/3 rounded-md ${i?"bg-blue-50":"bg-purple-50"}`})]})]})]}),nz=({currentDate:e,previousDate:t})=>{let i=function(){let e=io(()=>tr(50)),{isStatic:t}=(0,h.useContext)(t4);if(t){let[,t]=(0,h.useState)(50);(0,h.useEffect)(()=>e.on("change",t),[])}return e}(),[s,r]=(0,h.useState)(50),a=h.default.useRef(!0);return(0,h.useEffect)(()=>{let e=i.on("change",e=>{r(e)});return()=>e()},[i]),(0,h.useEffect)(()=>{a.current=!0;let e=!1;return(async()=>{if(e)return;let t=e=>new Promise(t=>setTimeout(t,e)),s=(t,s)=>new Promise(r=>{let n=i.get(),a=Date.now(),o=()=>{if(e)return r();let l=Math.min((Date.now()-a)/s,1),h=l<.5?2*l*l:1-Math.pow(-2*l+2,2)/2;i.set(n+(t-n)*h),l<1?requestAnimationFrame(o):r()};o()});for(;!e&&(await s(65,1500),!e)&&(await s(35,1500),!e&&(await s(50,1500),!e));){;await t(500)}})(),()=>{e=!0,a.current=!1}},[i]),(0,n.jsx)(m,{width:384,height:256,children:(0,n.jsxs)("div",{className:"relative h-full w-full overflow-hidden rounded-lg border border-gray-200",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-gray-50",children:(0,n.jsx)(nH,{date:t,isHighlighted:!0,isCurrent:!1})}),(0,n.jsx)("div",{className:"absolute inset-0 bg-gray-50",style:{clipPath:`inset(0 0 0 ${s}%)`},children:(0,n.jsx)(nH,{date:e,isHighlighted:!0,isCurrent:!0})}),(0,n.jsx)(nA.div,{style:{left:`${s}%`},className:"absolute bottom-0 top-0 w-1 -translate-x-1/2 transform cursor-col-resize bg-white",children:(0,n.jsx)("div",{className:"absolute left-1/2 top-1/2 h-8 w-8 -translate-x-1/2 -translate-y-1/2 transform rounded-full bg-white shadow-lg",children:(0,n.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,n.jsxs)("div",{className:"flex space-x-1",children:[(0,n.jsx)(nW.default,{className:"h-4 w-4 text-gray-600"}),(0,n.jsx)(nU.default,{className:"h-4 w-4 text-gray-600"})]})})})})]})})},nY=({currentDate:e,previousDate:t})=>(0,n.jsxs)("div",{className:"flex items-center gap-2 rounded-lg border border-gray-200 bg-white p-3 font-mono text-sm text-gray-700 shadow-sm",children:[(0,n.jsx)("svg",{className:"h-5 w-5 text-gray-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})}),(0,n.jsx)("span",{children:"Comparing"}),(0,n.jsx)("span",{className:"rounded bg-purple-50 px-1 font-semibold text-purple-700",children:t}),(0,n.jsx)("span",{children:"with"}),(0,n.jsx)("span",{className:"rounded bg-blue-50 px-1 font-semibold text-blue-700",children:e})]}),nX=()=>{let[e,t]=(0,h.useState)(-1),[i,s]=(0,h.useState)(""),[r,a]=(0,h.useState)(""),[o,l]=(0,h.useState)(0),u=(e=0)=>{let t=new Date;return t.setMonth(t.getMonth()-e),`${t.toLocaleString("default",{month:"long"})}-${t.getFullYear()}`};(0,h.useEffect)(()=>{let e=async()=>{s(u()),a(u(1)),t(0),l(0),await new Promise(e=>setTimeout(e,1e3)),await new Promise(e=>setTimeout(e,1e4)),t(1),l(0),await new Promise(e=>setTimeout(e,3e3)),await new Promise(e=>setTimeout(e,2e3)),e()};e()},[]),(0,h.useEffect)(()=>{if(e>=0){let t=0===e?10:3,i=Date.now(),s=setInterval(()=>{let e=Math.min((Date.now()-i)/(1e3*t)*100,100);l(e),e>=100&&clearInterval(s)},16);return()=>clearInterval(s)}},[e]);let d=(e,t,i,s,r)=>(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsxs)(nA.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"flex items-center gap-3 rounded-lg border border-gray-200 bg-white p-3 shadow-sm",children:[i?(0,n.jsx)("svg",{className:"h-5 w-5 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}):t?(0,n.jsx)(nA.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},className:"h-5 w-5",children:(0,n.jsx)("svg",{className:"h-full w-full text-blue-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})}):(0,n.jsx)("div",{className:"h-5 w-5 rounded-full border-2 border-gray-300"}),(0,n.jsx)("span",{className:"text-sm font-medium",children:e}),t&&(0,n.jsx)("div",{className:"h-1 flex-1 overflow-hidden rounded-full bg-gray-100",children:(0,n.jsx)("div",{className:"h-full bg-gradient-to-br from-purple-600 to-blue-500 transition-all duration-100",style:{width:`${o}%`}})})]}),r&&(0,n.jsx)(nA.div,{initial:{opacity:0,height:0}
1,animate:{opacity:+!!t,height:t?"auto":0},className:"ml-8",children:r})]});return(0,n.jsx)("div",{className:"relative flex h-full w-full items-center justify-center",children:(0,n.jsx)(m,{width:450,height:600,children:(0,n.jsxs)("div",{className:"relative flex h-full w-full flex-col gap-4",children:[(0,n.jsx)(nY,{currentDate:i,previousDate:r}),(0,n.jsxs)("div",{className:"mt-4 space-y-3",children:[d("Comparing releases",0===e,e>0,10,(0,n.jsx)(nz,{currentDate:i,previousDate:r})),d("Generating regression report",1===e,e>1,3)]})]})})})},nG=(0,p.default)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);var nq=e.i(426725);let nK=(0,p.default)("SquarePlay",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m9 8 6 4-6 4Z",key:"f1r3lt"}]]),nZ=[65,82,48,91,73,55,88],n_=[[85,92],[78,88],[95,82]],nJ=[[55,85,78],[48,92,88],[62,75,95],[52,88,82],[58,80,90],[45,95,85],[60,82,88],[50,90,78],[65,78,92]],nQ=[{title:"Insights",icon:(0,n.jsx)(nG,{className:"h-4 w-4"}),preview:(0,n.jsx)(()=>{let[e,t]=(0,h.useState)(0),[i,s]=(0,h.useState)(nZ),[r,a]=(0,h.useState)(n_);return(0,h.useEffect)(()=>{s(Array.from({length:7},()=>60*Math.random()+40)),a(Array.from({length:3},()=>[30*Math.random()+70,30*Math.random()+70]));let e=setInterval(()=>{t(e=>(e+1)%3)},2e3);return()=>clearInterval(e)},[]),(0,n.jsxs)("div",{className:"flex h-full flex-col gap-4 p-6",children:[(0,n.jsx)("div",{className:"h-40 rounded-lg bg-gradient-to-br from-purple-50 to-blue-50 p-4",children:(0,n.jsx)("div",{className:"flex h-full w-full items-end justify-between gap-2",children:i.map((t,i)=>(0,n.jsx)("div",{className:`w-full rounded-t-lg transition-all duration-300 ${i===e?"bg-gradient-to-t from-purple-300 to-blue-300":"bg-gradient-to-t from-purple-100 to-blue-100"} `,style:{height:`${t}%`,transform:i===e?"scaleY(1.05)":"scaleY(1)"}},i))})}),(0,n.jsx)("div",{className:"space-y-4",children:r.map((t,i)=>(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)("div",{className:`h-4 rounded-full transition-all duration-300 ${i===e?"bg-gradient-to-r from-purple-300 to-blue-300":"bg-gradient-to-r from-purple-100 to-blue-100"} `,style:{width:"40%"}}),(0,n.jsx)("div",{className:"space-y-1.5",children:t.map((t,s)=>(0,n.jsx)("div",{className:`h-2 rounded-full transition-all duration-300 ${i===e?"bg-gradient-to-r from-purple-200 to-blue-200":"bg-gradient-to-r from-purple-50 to-blue-50"} `,style:{width:`${t}%`}},s))})]},i))})]})},{})},{title:"Steps",icon:(0,n.jsx)(nq.ClipboardList,{className:"h-4 w-4"}),preview:(0,n.jsx)(()=>{let[e,t]=(0,h.useState)(0),[i,s]=(0,h.useState)(nJ);return(0,h.useEffect)(()=>{s(Array.from({length:9},(e,t)=>[30*Math.random()+40,30*Math.random()+70,30*Math.random()+70]));let e=setInterval(()=>{t(e=>(e+1)%9)},1500);return()=>clearInterval(e)},[]),(0,n.jsx)("div",{className:"grid h-full grid-cols-3 gap-3 p-6",children:i.map((t,i)=>(0,n.jsxs)("div",{className:`relative rounded-lg border p-3 transition-all duration-300 ${i===e?"border-blue-200 bg-gradient-to-br from-purple-50 to-blue-50":"border-gray-200 bg-white"} `,children:[(0,n.jsx)("div",{className:`mb-2 flex size-6 items-center justify-center rounded-full text-xs font-medium ${i===e?"bg-blue-100 text-blue-600":"bg-gray-100 text-gray-600"} `,children:i+1}),(0,n.jsx)("div",{className:"space-y-2",children:t.map((t,s)=>(0,n.jsx)("div",{className:`h-2 rounded-full transition-all duration-300 ${i===e?"bg-gradient-to-r from-purple-200 to-blue-200":"bg-gray-100"} `,style:{width:`${t}%`}},s))})]},i))})},{})},{title:"Video",icon:(0,n.jsx)(nK,{className:"h-4 w-4"}),preview:(0,n.jsx)(()=>{let[e,t]=(0,h.useState)(0);return(0,h.useEffect)(()=>{let e=setInterval(()=>{t(e=>(e+1)%101)},50);return()=>clearInterval(e)},[]),(0,n.jsx)("div",{className:"relative h-full w-full p-6",children:(0,n.jsxs)("div",{className:"h-full w-full overflow-hidden rounded-lg bg-gradient-to-br from-purple-50 to-blue-50",children:[(0,n.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,n.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-white/80",children:(0,n.jsx)("svg",{className:"h-8 w-8 text-blue-500",fill:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{d:"M8 5v14l11-7z"})})})}),(0,n.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-1 bg-gray-200",children:(0,n.jsx)("div",{className:"h-full bg-gradient-to-r from-purple-500 to-blue-500 transition-all duration-200",style:{width:`${e}%`}})})]})})},{})}],n0=({section:e,isActive:t,onClick:i})=>(0,n.jsxs)("div",{onClick:i,className:`flex cursor-pointer items-center gap-2 rounded-lg p-2 transition-all duration-300 ${t?"border-gradient-to-br border-2 bg-gradient-to-br from-purple-50 from-purple-600 to-blue-50 to-blue-500":"border border-gray-200 hover:border-blue-200"} `,children:[(0,n.jsx)("div",{className:`transition-colors duration-300 ${t?"text-white":"text-gray-700"} `,children:e.icon}),(0,n.jsx)("span",{className:`text-sm font-medium ${t?"text-white":"text-gray-700"}`,children:e.title})]}),n1=({section:e})=>(0,n.jsx)("div",{className:"h-full w-full overflow-hidden rounded-lg border border-gray-200 bg-white shadow-sm",children:e.preview}),n2=()=>(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("div",{className:"size-2 animate-pulse rounded-full bg-red-500"}),(0,n.jsx)("span",{className:"text-[10px] font-medium text-red-500",children:"LIVE"})]}),n5=({activeIndex:e,total:t,isMobile:i})=>{let[s,r]=(0,h.useState)({x:0,y:0});(0,h.useEffect)(()=>{let e=()=>{r({x:3*Math.sin(Date.now()/1e3),y:2*Math.cos(Date.now()/1500)}),requestAnimationFrame(e)},t=requestAnimationFrame(e);return()=>cancelAnimationFrame(t)},[]);let a={top:i?`${100/t*(e+.5)}%`:`${20+35*e}%`,left:i?"35%":"25%",transform:`translate(${s.x}px, ${s.y}px)`,transition:"top 0.15s ease-out"};return i?(0,n.jsx)("div",{className:"pointer-events-none absolute -ml-2.5 -mt-2.5 h-5 w-5",style:a,children:(0,n.jsxs)("svg",{className:"h-full w-full",viewBox:"0 0 340 340",fill:"none",children:[(0,n.jsx)("path",{d:"M340 170C340 263.888 263.888 340 170 340C76.1116 340 0 263.888 0 170C0 76.1116 76.1116 0 170 0C263.888 0 340 76.1116 340 170Z",fill:"#4B4B4B",fillOpacity:"0.4"}),(0,n.jsx)("path",{d:"M153.76 206L149.536 189.872H131.2L127.072 206H112.48L130.624 138.992H150.976L169.12 206H153.76ZM140.8 152.912H140.032L133.504 178.256H147.328L140.8 152.912ZM176.763 206V195.344H191.163V149.648H176.763V138.992H219.963V149.648H205.563V195.344H219.963V206H176.763Z",fill:"#1C03D3"})]})}):(0,n.jsxs)("svg",{className:"pointer-events-none absolute -ml-1.5 -mt-1 h-6 w-6",style:a,viewBox:"0 0 400 363",fill:"none",children:[(0,n.jsxs)("g",{filter:"url
1(#filter0_d_cursor)",children:[(0,n.jsx)("path",{d:"M122.865 253.711L66.8473 57.1997C66.6119 56.374 67.4696 55.661 68.2494 56.0341L253.839 144.819C254.642 145.203 254.573 146.359 253.734 146.656L169.526 176.492C169.301 176.572 169.107 176.731 168.989 176.937L124.705 253.936C124.264 254.703 123.108 254.562 122.865 253.711Z",fill:"#1C64F2"}),(0,n.jsx)("path",{d:"M65.8807 57.469L121.899 253.981C122.383 255.681 124.696 255.964 125.578 254.43L169.86 177.433C169.861 177.433 169.861 177.433 169.861 177.433C169.863 177.431 169.865 177.43 169.866 177.43L254.073 147.593C255.733 147.006 255.897 144.699 254.274 143.923L68.6849 55.1376C67.1252 54.3915 65.41 55.8176 65.8807 57.469Z",stroke:"white",strokeWidth:"2"})]}),(0,n.jsx)("path",{d:"M156 290L191.456 200.4H210.016L245.216 290H223.2L206.176 244.56C205.579 242.768 204.896 240.848 204.128 238.8C203.445 236.752 202.763 234.619 202.08 232.4C201.397 230.181 200.757 228.048 200.16 226C199.563 223.952 199.051 222.032 198.624 220.24L202.336 220.112C201.824 222.245 201.269 224.336 200.672 226.384C200.075 228.432 199.435 230.48 198.752 232.528C198.069 234.576 197.344 236.624 196.576 238.672C195.893 240.635 195.168 242.683 194.4 244.816L177.504 290H156ZM172.896 272.848L179.808 256.208H220.768L227.68 272.848H172.896ZM254.722 290V271.568H269.826V218.832H254.722V200.4H306.818V218.832H291.714V271.568H306.818V290H254.722Z",fill:"#1C64F2"}),(0,n.jsx)("defs",{children:(0,n.jsxs)("filter",{id:"filter0_d_cursor",x:"62.7954",y:"52.936",width:"195.618",height:"206.493",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,n.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,n.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,n.jsx)("feOffset",{dy:"1"}),(0,n.jsx)("feGaussianBlur",{stdDeviation:"1"}),(0,n.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,n.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"}),(0,n.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_cursor"}),(0,n.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_cursor",result:"shape"})]})})]})},n3=({small:e})=>{let[t,i]=(0,h.useState)(0),s=(0,nV.useIsClient)(),[r,a]=(0,h.useState)([]);(0,h.useEffect)(()=>{a(Array(e?8:6).fill(0).map(()=>({title:30*Math.random()+40,desc:40*Math.random()+60})))},[e]),(0,h.useEffect)(()=>{let t=setInterval(()=>{i(t=>(t+1)%(e?8:6))},1e3);return()=>clearInterval(t)},[e]);let o=e?8:6;return(0,n.jsxs)("div",{className:"relative flex h-full w-full flex-col gap-3",children:[[...Array(o)].map((i,a)=>(0,n.jsxs)("div",{className:"flex gap-3",children:[(0,n.jsx)("div",{className:`flex-shrink-0 rounded-lg transition-all duration-300 ${e?"h-8 w-8":"h-12 w-12"} ${a===t?"bg-gradient-to-r from-purple-300 to-blue-300":"bg-gradient-to-r from-purple-100 to-blue-100"} `}),(0,n.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,n.jsx)("div",{className:` h-${e?"2":"3"} rounded-full transition-all duration-300 ${a===t?"bg-gradient-to-r from-purple-300 to-blue-300":"bg-gradient-to-r from-purple-100 to-blue-100"} `,style:{width:s&&r[a]?`${r[a].title}%`:"55%",transform:a===t?"scaleX(0.97)":"scaleX(1)"}}),(0,n.jsx)("div",{className:` h-${e?"1.5":"2"} rounded-full transition-all duration-300 ${a===t?"bg-gradient-to-r from-purple-200 to-blue-200":"bg-gradient-to-r from-purple-50 to-blue-50"} `,style:{width:s&&r[a]?`${r[a].desc}%`:"80%",transform:a===t?"scaleX(0.97)":"scaleX(1)"}})]})]},a)),(0,n.jsx)(n5,{activeIndex:t,total:o,isMobile:e})]})},n4=()=>(0,n.jsxs)("div",{className:"absolute left-[50px] w-[60%] overflow-hidden rounded-lg shadow-lg",style:{transform:"rotateX(10deg) rotateY(345deg)",transformStyle:"preserve-3d"},children:[(0,n.jsxs)("div",{className:"flex h-6 items-center gap-2 bg-gray-800 px-3",children:[(0,n.jsxs)("div",{className:"flex gap-1.5",children:[(0,n.jsx)("div",{className:"size-2 rounded-full bg-gray-600"}),(0,n.jsx)("div",{className:"size-2 rounded-full bg-gray-600"}
1),(0,n.jsx)("div",{className:"size-2 rounded-full bg-gray-600"})]}),(0,n.jsx)("div",{className:"flex flex-1 items-center",children:(0,n.jsx)("div",{className:"flex h-4 w-full items-center justify-center rounded bg-gray-700",children:(0,n.jsx)("span",{className:"text-[10px] text-gray-400",children:"variata.ai"})})}),(0,n.jsx)("div",{className:"flex-shrink-0",children:(0,n.jsx)(n2,{})})]}),(0,n.jsx)("div",{className:"aspect-video bg-white",children:(0,n.jsx)("div",{className:"h-full w-full bg-gradient-to-br from-purple-50 to-blue-50 p-4",children:(0,n.jsx)(n3,{})})})]}),n6=()=>(0,n.jsx)("div",{className:"absolute right-[50px] top-[50px] w-[28%]",style:{transform:"rotateX(5deg) rotateY(5deg) rotateZ(5deg) scale(0.8)",transformStyle:"preserve-3d"},children:(0,n.jsx)("div",{className:"relative overflow-hidden rounded-[24px] border-[8px] border-gray-800 shadow-lg",children:(0,n.jsxs)("div",{className:"aspect-[9/19] bg-white",children:[(0,n.jsxs)("div",{className:"flex h-7 items-center justify-between gap-2 bg-gray-800 px-2",children:[(0,n.jsx)("div",{className:"flex h-4 flex-1 items-center justify-center rounded bg-gray-700",children:(0,n.jsx)("span",{className:"text-[8px] text-gray-400",children:"variata.ai"})}),(0,n.jsx)("div",{className:"flex-shrink-0 scale-75",children:(0,n.jsx)(n2,{})})]}),(0,n.jsx)("div",{className:"h-[calc(100%-1.75rem)] w-full bg-gradient-to-br from-purple-50 to-blue-50",children:(0,n.jsx)("div",{className:"p-3",children:(0,n.jsx)(n3,{small:!0})})})]})})}),n8=()=>(0,n.jsx)("div",{className:"relative flex h-full w-full items-center justify-center",children:(0,n.jsx)(m,{width:400,height:300,children:(0,n.jsx)("div",{className:"relative h-full w-full rounded-lg pt-2",children:(0,n.jsxs)("div",{className:"relative h-full w-full",children:[(0,n.jsx)(n4,{}),(0,n.jsx)(n6,{})]})})})}),n9=[{id:"home",label:"Home"},{id:"how-it-works",label:"How it Works"},{id:"use-cases",label:"Use Cases"},{id:"get-started",label:"Get Started"}],n7={title:(0,n.jsx)(n.Fragment,{children:"Achieve peace of mind with full-service testing agents"}),description:"Our AI agents interact with your web and mobile experiences like a real user, so you can discover problems before customers do."},ae={title:"Collaborating with you, every step of the way.",cardData:[{id:1,title:"Discover",description:"Variata analyzes your site and business requirements to automatically generate test scenarios unique to your brand.",demo:(0,n.jsx)(()=>{let[e,t]=(0,h.useState)(0);return(0,h.useEffect)(()=>{let e=setInterval(()=>{t(e=>(e+1)%j.length)},4e3);return()=>clearInterval(e)},[]),(0,n.jsx)("div",{className:"relative flex h-full w-full items-center justify-center",children:(0,n.jsx)(m,{width:500,height:300,children:(0,n.jsx)("div",{className:"relative h-full w-full rounded-lg",children:(0,n.jsxs)("div",{className:"flex h-full flex-col gap-3",children:[(0,n.jsx)("div",{className:"flex gap-2",children:j.map((i,s)=>(0,n.jsx)(T,{section:i,isActive:e===s,onClick:()=>t(s)},i.title))}),(0,n.jsx)("div",{className:"flex-1 transition-all duration-300",children:j[e].preview})]})})})})},{})},{id:2,title:"Simulate",description:"Watch Variata navigate your app like a real user, discovering issues and edge cases across different scenarios.",demo:(0,n.jsx)(n8,{})},{id:3,title:"Report",description:"Get detailed video reports with Variata's voiceover explaining issues, plus integrations with JIRA, Slack, and other project management tools.",demo:(0,n.jsx)(()=>{let[e,t]=(0,h.useState)(0);return(0,h.useEffect)(()=>{let e=setInterval(()=>{t(e=>(e+1)%nQ.length)},3e3);return()=>clearInterval(e)},[]),(0,n.jsx)("div",{className:"relative flex h-full w-full items-center justify-center",children:(0,n.jsx)(m,{width:500,height:300,children:(0,n.jsx)("div",{className:"relative h-full w-full rounded-lg",children:(0,n.jsxs)("div",{className:"flex h-full gap-4",children:[(0,n.jsx)("div",{className:"flex w-1/3 flex-col gap-2",children:nQ.map((i,s)=>(0,n.jsx)(n0,{section:i,isActive:e===s,onClick:()=>t(s)},i.title))}),(0,n.jsx)("div",{className:"w-2/3 transition-all duration-300",children:(0,n.jsx)(n1,{section:nQ[e]})})]})})})})},{})}]}
1,at={title:"Release faster with complete confidence – zero compromises.",bullets:[{id:"release-checklist",title:"Release Checklists",desc:"See through your users' eyes and verify all critical user journeys",demo:(0,n.jsx)("div",{className:"w-full",children:(0,n.jsx)(nO,{})}),icon:(0,n.jsx)(()=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"url(#a)",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:"a",x1:"0%",y1:"0%",x2:"100%",y2:"100%",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("stop",{offset:"0%",stopColor:"#805ad5"}),(0,n.jsx)("stop",{offset:"100%",stopColor:"#4299e1"})]})}),(0,n.jsx)("path",{d:"m3 17 2 2 4-4M3 7l2 2 4-4m4 1h8m-8 6h8m-8 6h8"})]}),{})},{id:"cross-compatibility",title:"Cross-Compatibility",desc:"Ensure that your users have a great experience, no matter what device or browser they're using",demo:(0,n.jsx)("div",{className:"w-full",children:(0,n.jsx)(n8,{})}),icon:(0,n.jsx)(()=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"url(#a)",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:"a",x1:"0%",y1:"0%",x2:"100%",y2:"100%",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("stop",{offset:"0%",stopColor:"#805ad5"}),(0,n.jsx)("stop",{offset:"100%",stopColor:"#4299e1"})]})}),(0,n.jsx)("path",{d:"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8m-2 4v-3.96 3.15M7 19h5"}),(0,n.jsx)("rect",{width:6,height:10,x:16,y:12,rx:2})]}),{})},{id:"regression-testing",title:"Regression Testing",desc:"Compare releases to catch unintended changes before they affect users",demo:(0,n.jsx)("div",{className:"w-full",children:(0,n.jsx)(nX,{})}),icon:(0,n.jsx)(()=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"url(#a)",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:"a",x1:"0%",y1:"0%",x2:"100%",y2:"100%",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("stop",{offset:"0%",stopColor:"#805ad5"}),(0,n.jsx)("stop",{offset:"100%",stopColor:"#4299e1"})]})}),(0,n.jsx)("path",{d:"M21 6H3m4 6H3m4 6H3m9 0a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L11 14"}),(0,n.jsx)("path",{d:"M11 10v4h4"})]}),{})},{id:"dev-copilot",title:"Development Copilot",desc:"Seamlessly integrate with your CI/CD pipeline to catch issues before they hit production. Test with your local and staging environments.",demo:(0,n.jsx)("div",{className:"w-full",children:(0,n.jsx)(nB,{})}),icon:(0,n.jsx)(()=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"url(#a)",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:"a",x1:"0%",y1:"0%",x2:"100%",y2:"100%",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("stop",{offset:"0%",stopColor:"#805ad5"}),(0,n.jsx)("stop",{offset:"100%",stopColor:"#4299e1"})]})}),(0,n.jsx)("path",{d:"m18 16 4-4-4-4M6 8l-4 4 4 4m8.5-12-5 16"})]}),{})}]};function ai(){let{title:e,cardData:t}=ae,[i,s]=(0,h.useState)(1),[r,a]=(0,h.useState)(!1);return(0,h.useEffect)(()=>{let e=()=>a(window.innerWidth<1280);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,n.jsx)("div",{className:"flex flex-col gap-4 xl:h-[80vh] xl:max-h-[600px] xl:flex-row",role:"region","aria-label":e,children:t.map(e=>{let a=!!r||i===e.id;return(0,n.jsxs)("div",{className:`transition-all duration-500 ease-in-out ${a?"xl:w-[60%]":"xl:w-[20%]"} relative mx-auto max-w-[95%] overflow-hidden rounded-xl sm:max-w-[90%] xl:max-w-none xl:cursor-pointer ${r?"h-auto":"h-full"} bg-white shadow-md`,onClick:()=>!r&&s(e.id),onKeyDown:t=>{r||"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),s(e.id))},role:"button",tabIndex:0,"aria-expanded":a,"aria-label":`${e.title} - ${a?"Click to collapse":"Click to expand"}`,children:[(0,n.jsxs)("div",{className:`flex h-full w-full flex-col p-6 transition-all duration-500 ${a?"xl:opacity-100":"xl:opacity-70 xl:group-hover:opacity-80"}`,children:[(0,n.jsx)("div",{className:`mb-4 flex flex-grow items-center justify-center overflow-hidden ${a?"w-full":"px-4 pt-4"}`,children:e.demo}),(0,n.jsxs)("div",{className:"mb-8 mt-auto px-4",children:[(0,n.jsx)("h5",{className:"mb-1 text-lg font-bold text-gray-900",children:e.title}),(0,n.jsx)("p",{className:"text-xs font-normal text-gray-700",children:e.description})]})]}),!r&&(0,n.jsx)("div",{className:"group absolute bottom-4 right-4 z-30 hidden items-center justify-center rounded-full bg-gradient-to-br from-purple-500 to-blue-500 p-0.5 xl:flex",children:(0,n.jsx)(o.Button,{pill:!0,size:"xss",className:"!border-0 !bg-white !text-gray-900 transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-brand-blue focus:ring-offset-2 group-hover:!bg-transparent group-hover:!text-white",onClick:i=>{i.stopPropagation(),a?s((t.find(t=>
1t.id>e.id)||t[0]).id):s(e.id)},"aria-label":a?`Collapse ${e.title}`:`Expand ${e.title}`,children:a?(0,n.jsx)("span",{className:"group-hover:[&>svg>rect]:fill-white group-hover:[&>svg>rect]:stroke-white",children:(0,n.jsx)(u,{"aria-hidden":"true"})}):(0,n.jsx)("span",{className:"group-hover:[&>svg>path]:stroke-white",children:(0,n.jsx)(d,{"aria-hidden":"true"})})})})]},e.id)})})}let as=(0,p.default)("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);var ar=h;function an(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class aa extends ar.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,i=nv(e)&&e.offsetWidth||0,s=nv(e)&&e.offsetHeight||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=i-r.width-r.left,r.bottom=s-r.height-r.top}return null}componentDidUpdate(){}render(){return this.props.children}}function ao({children:e,isPresent:t,anchorX:i,anchorY:s,root:r}){let a=(0,ar.useId)(),o=(0,ar.useRef)(null),l=(0,ar.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:u}=(0,ar.useContext)(t4),d=function(...e){return h.useCallback(function(...e){return t=>{let i=!1,s=e.map(e=>{let s=an(e,t);return i||"function"!=typeof s||(i=!0),s});if(i)return()=>{for(let t=0;t<s.length;t++){let i=s[t];"function"==typeof i?i():an(e[t],null)}}}}(...e),e)}(o,e.props?.ref??e?.ref);return(0,ar.useInsertionEffect)(()=>{let{width:e,height:n,top:h,left:d,right:c,bottom:m}=l.current;if(t||!o.current||!e||!n)return;let p="left"===i?`left: ${d}`:`right: ${c}`,f="bottom"===s?`bottom: ${m}`:`top: ${h}`;o.current.dataset.motionPopId=a;let g=document.createElement("style");u&&(g.nonce=u);let x=r??document.head;return x.appendChild(g),g.sheet&&g.sheet.insertRule(`
2          [data-motion-pop-id="${a}"] {
3            position: absolute !important;
4            width: ${e}px !important;
5            height: ${n}px !important;
6            ${p}px !important;
7            ${f}px !important;
8          }
9        `),()=>{x.contains(g)&&x.removeChild(g)}},[t]),(0,n.jsx)(aa,{isPresent:t,childRef:o,sizeRef:l,children:ar.cloneElement(e,{ref:d})})}let al=({children:e,initial:t,isPresent:i,onExitComplete:s,custom:r,presenceAffectsLayout:a,mode:o,anchorX:l,anchorY:u,root:d})=>{let c=io(ah),m=(0,h.useId)(),p=!0,f=(0,h.useMemo)(()=>(p=!1,{id:m,initial:t,isPresent:i,custom:r,onExitComplete:e=>{for(let t of(c.set(e,!0),c.values()))if(!t)return;s&&s()},register:e=>(c.set(e,!1),()=>c.delete(e))}),[i,c,s]);return a&&p&&(f={...f}),(0,h.useMemo)(()=>{c.forEach((e,t)=>c.set(t,!1))},[i]),h.useEffect(()=>{i||c.size||!s||s()},[i]),"popLayout"===o&&(e=(0,n.jsx)(ao,{isPresent:i,anchorX:l,anchorY:u,root:d,children:e})),(0,n.jsx)(ia.Provider,{value:f,children:e})};function ah(){return new Map}let au=e=>e.key||"";function ad(e){let t=[];return h.Children.forEach(e,e=>{(0,h.isValidElement)(e)&&t.push(e)}),t}let ac=({children:e,custom:t,initial:i=!0,onExitComplete:s,presenceAffectsLayout:r=!0,mode:a="sync",propagate:o=!1,anchorX:l="left",anchorY:u="top",root:d})=>{let[c,m]=rv(o),p=(0,h.useMemo)(()=>ad(e),[e]),f=o&&!c?[]:p.map(au),g=(0,h.useRef)(!0),x=(0,h.useRef)(p),v=io(()=>new Map),y=(0,h.useRef)(new Set),[w,b]=(0,h.useState)(p),[j,T]=(0,h.useState)(p);iw(()=>{g.current=!1,x.current=p;for(let e=0;e<j.length;e++){let t=au(j[e]);f.includes(t)?(v.delete(t),y.current.delete(t)):!0!==v.get(t)&&v.set(t,!1)}},[j,f.length,f.join("-")]);let S=[];if(p!==w){let e=[...p];for(let t=0;t<j.length;t++){let i=j[t],s=au(i);f.includes(s)||(e.splice(t,0,i),S.push(i))}return"wait"===a&&S.length&&(e=S),T(ad(e)),b(p),null}let{forceRender:k}=(0,h.useContext)(t5);return(0,n.jsx)(n.Fragment,{children:j.map(e=>{let h=au(e),w=(!o||!!c)&&(p===j||f.includes(h));return(0,n.jsx)(al,{isPresent:w,initial:(!g.current||!!i)&&void 0,custom:t,presenceAffectsLayout:r,mode:a,root:d,onExitComplete:w?void 0:()=>{if(y.current.has(h)||(y.current.add(h),!v.has(h)))return;v.set(h,!0);let e=!0;v.forEach(t=>{t||(e=!1)}),e&&(k?.(),T(x.current),o&&m?.(),s&&s())},anchorX:l,anchorY:u,children:e},h)})})};var am=e.i(730742);
9let ap=({width:e="100%",height:t="100%",isLoading:i=!1,size:s=300})=>(0,n.jsx)("div",{className:"flex h-full w-full items-center justify-center",style:{maxWidth:"number"==typeof e?`${e}px`:e,height:t,aspectRatio:"1"},children:(0,n.jsx)(m,{width:s,height:s,children:(0,n.jsxs)("div",{className:"relative flex h-full w-full items-center justify-center",children:[i&&(0,n.jsx)("div",{className:"absolute inset-0 flex animate-spin items-center justify-center",style:{width:"60%",height:"60%",left:"20%",top:"20%"},children:(0,n.jsxs)("svg",{width:"100%",height:"100%",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet",children:[(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:"spinner-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,n.jsx)("stop",{offset:"0%",stopColor:"#805ad5",stopOpacity:"0.3"}),(0,n.jsx)("stop",{offset:"100%",stopColor:"#4299e1",stopOpacity:"0.3"})]})}),(0,n.jsx)("circle",{cx:"50",cy:"50",r:"45",stroke:"url(#spinner-gradient)",strokeWidth:"4",strokeLinecap:"round",strokeDasharray:"100 183"})]})}),(0,n.jsx)("div",{className:`absolute ${i?"animate-pulse":""}`,style:{width:"30%",height:"30%",left:"35%",top:"35%"},children:(0,n.jsx)(am.VariataLogo,{size:"xl"})})]})})}),af=()=>{let e=new Date;return`${e.toLocaleString("default",{month:"long"})}-${e.getFullYear()}`},ag=[[{role:"user",content:[{text:"Make sure my upcoming "},{text:af(),isSpan:!0},{text:" release is good to go"}]},{role:"assistant",content:[{text:"I'll help you run your release checklist"}],component:(0,n.jsx)(nO,{})}],[{role:"user",content:[{text:"Monitor my "},{text:af(),isSpan:!0},{text:" release for regressions"}]},{role:"assistant",content:[{text:"I'll check for regressions"}],component:(0,n.jsx)(nX,{})}],[{role:"user",content:[{text:"I'm developing a new user-facing feature, tell me what you think"}]},{role:"assistant",content:[{text:"I'll take a look at your branch"}],component:(0,n.jsx)(nB,{})}]],ax=()=>(0,n.jsx)(nA.span,{initial:{opacity:0}
9,animate:{opacity:1},transition:{repeat:1/0,duration:.8,repeatType:"reverse"},className:"ml-0.5 inline-block h-4 w-0.5 bg-current align-middle"}),av=()=>{let[e,t]=(0,h.useState)(0),[i,s]=(0,h.useState)(0),[r,a]=(0,h.useState)([]),[o,l]=(0,h.useState)(!1),[u,d]=(0,h.useState)(!1),c=(0,h.useRef)(!0),m=(0,h.useRef)(!1);(0,h.useEffect)(()=>{let e=setTimeout(()=>{d(!0)},1e3);return()=>clearTimeout(e)},[]);let p=(0,h.useCallback)(()=>{c.current&&!m.current&&(i<ag[e].length-1?s(e=>e+1):(m.current=!0,setTimeout(()=>{c.current&&(l(!1),setTimeout(()=>{if(!c.current)return;let i=(e+1)%ag.length;a([]),t(i),s(0),m.current=!1},1500))},6e3)))},[e,i]),f=(0,h.useCallback)(async e=>{if(e&&c.current&&!m.current)try{a(t=>[...t,{message:e,textParts:e.content.map(()=>""),isTyping:!0}]),await new Promise(e=>setTimeout(e,500));for(let t=0;t<e.content.length;t++){let i=e.content[t].text;for(let e=0;e<i.length;e++){if(!c.current)return;await new Promise(e=>setTimeout(e,30)),a(s=>s.map((r,n)=>n===s.length-1?{...r,textParts:r.textParts.map((s,r)=>r===t?i.slice(0,e+1):s)}:r))}}if(a(e=>e.map((t,i)=>i===e.length-1?{...t,isTyping:!1}:t)),"assistant"===e.role&&e.component){if(!c.current)return;await new Promise(e=>setTimeout(e,500)),l(!0),await new Promise(e=>setTimeout(e,1e4))}await new Promise(e=>setTimeout(e,1500)),p()}catch(e){console.error("Error in typeMessage:",e)}},[p]);return(0,h.useEffect)(()=>{if(!u)return;c.current=!0,m.current=!1;let t=ag[e][i];return t&&f(t).catch(console.error),()=>{c.current=!1}},[e,i,f,u]),(0,n.jsx)("div",{className:"mx-auto h-[550px] w-full overflow-hidden rounded-xl bg-white shadow-md md:h-[600px] lg:h-[calc(100vh-8rem)] lg:max-h-[700px]",children:(0,n.jsx)("div",{className:"flex h-full flex-col p-4",children:!u||m.current?(0,n.jsx)("div",{className:"flex flex-1 items-center justify-center",children:(0,n.jsx)("div",{className:"flex h-[150px] w-[150px] items-center justify-center",children:(0,n.jsx)(ap,{isLoading:!0,size:150})})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"min-h-[80px] flex-none overflow-y-auto pb-2",children:(0,n.jsx)("div",{className:"space-y-3 pb-2",children:(0,n.jsx)(ac,{mode:"popLayout",children:r.map((e,t)=>(0,n.jsxs)(nA.div,{initial:{opacity:0,y:20,scale:.95},animate:{opacity:1,y:0,scale:1},transition:{type:"spring",stiffness:500,damping:30},className:`flex flex-col ${"assistant"===e.message.role?"items-start":"items-end"}`,children:[(0,n.jsx)("span",{className:"mb-1 px-2 text-[10px] text-gray-500 sm:text-xs",children:"assistant"===e.message.role?"Variata":"You"}),(0,n.jsxs)("div",{className:`max-w-[80%] rounded-full px-3 py-1.5 text-xs leading-relaxed sm:px-4 sm:py-2 sm:text-sm ${"assistant"===e.message.role?"bg-gradient-to-br from-purple-100 to-blue-100 text-gray-800":"bg-gradient-to-br from-purple-600 to-blue-500 text-white"}`,children:[e.textParts.map((t,i)=>(0,n.jsx)("span",{children:e.message.content[i].isSpan&&t?(0,n.jsx)("span",{className:"rounded bg-white/20 px-1 py-0.5 font-mono text-[10px] text-white sm:text-sm",children:t}):t},i)),e.isTyping&&(0,n.jsx)(ax,{})]})]},t))})})}),(0,n.jsx)("div",{className:"relative mt-4 flex-1",children:(0,n.jsx)(ac,{mode:"wait",children:o&&r.length>0&&r[r.length-1].message.component&&(0,n.jsx)(nA.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.6,ease:"easeInOut"},className:"flex h-full w-full items-center justify-center p-4 sm:p-6 md:p-8",children:(0,n.jsx)("div",{className:"h-full w-full",children:r[r.length-1].message.component})},`${e}-${i}`)})})]})})})},ay=()=>{let{title:e,description:t}=n7,i=e=>{let t=document.getElementById(e);if(t){let e=document.getElementById("landing-scroll-container");if(e&&e.scrollHeight>e.clientHeight){let i=e.getBoundingClientRect(),s=t.getBoundingClientRect(),r=e.scrollTop+s.top-i.top-64-32;e.scrollTo({top:r,behavior:"smooth"})}else{let e=t.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:e-64-32,behavior:"smooth"})}}};return(0,n.jsxs)("div",{className:"container mx-auto flex w-full flex-col gap-8 px-2 py-4 sm:p-6 md:p-8 lg:flex-row xl:px-0",children:[(0,n.jsxs)("div",{className:"flex w-full flex-col lg:w-1/2 lg:justify-center xl:w-2/3",children:[(0,n.jsx)("h1",{className:"text-4xl font-bold leading-snug text-gray-800 lg:text-4xl lg:leading-tight xl:text-6xl xl:leading-tight",children:e}),(0,n.jsx)("p",{className:"py-5 text-xl leading-normal text-gray-500 lg:text-xl xl:text-2xl",children:t}),(0,n.jsxs)("div",{className:"flex flex-row items-center justify-center gap-3 py-4 sm:justify-start sm:gap-4 sm:py-0",children:[(0,n.jsx)(o.Button,{pill:!0,color:"purple",size:"md",className:"group relative bg-gradient-to-br from-purple-500 to-blue-500 [&>span]:!py-1.5 sm:[&>span]:!py-2",onClick:()=>i("how-it-works"),children:(0,n.jsxs)("span",{className:"flex h-full w-full items-center justify-center gap-1 text-xs text-white transition-all duration-200 sm:text-base",children:["Learn More",(0,n.jsx)(as,{className:"h-4 w-4 sm:h-5 sm:w-5"})]})}),(0,n.jsx)("div",{className:"group inline-flex rounded-full bg-gradient-to-br from-purple-500 to-blue-500 p-0.5",children:(0,n.jsx)(o.Button,{pill:!0,size:"md",className:"relative !border-0 !bg-white !text-gray-900 group-hover:!bg-transparent group-hover:!text-white [&>span]:!py-1.5 sm:[&>span]:!py-2",onClick:()=>i("get-started"),children:(0,n.jsx)("span",{className:"flex h-full w-full items-center justify-center gap-1 text-xs transition-all duration-200 sm:text-base",children:(0,n.jsxs)("span",{className:"flex flex-row items-center justify-center gap-1 bg-gradient-to-br from-purple-600 to-blue-500 bg-clip-text text-transparent group-hover:text-white",children:["Get Started",(0,n.jsx)(c,{className:"h-4 w-4 sm:h-5 sm:w-5 group-hover:[&>path]:stroke-white"})]})})})})]})]}),(0,n.jsx)("div",{className:"flex w-full items-center lg:w-1/2 xl:w-1/3",children:(0,n.jsx)(av,{})})]})};var aw=e.i(58234),ab=e.i(800039),aj=e.i(492460),aT=e.i(167620),aS=e.i(666281),ak=e.i(662098),aN=e.i(909241);
9let aP=(0,e.i(79834).createTheme)({base:"flex flex-col gap-2",tablist:{base:"flex text-center",variant:{default:"flex-wrap border-b border-gray-200 dark:border-gray-700",underline:"-mb-px flex-wrap border-b border-gray-200 dark:border-gray-700",pills:"flex-wrap space-x-2 text-sm font-medium text-gray-500 dark:text-gray-400",fullWidth:"grid w-full grid-flow-col divide-x divide-gray-200 rounded-none text-sm font-medium shadow dark:divide-gray-700 dark:text-gray-400"},tabitem:{base:"flex items-center justify-center rounded-t-lg p-4 text-sm font-medium first:ml-0 focus:outline-none disabled:cursor-not-allowed disabled:text-gray-400 disabled:dark:text-gray-500",variant:{default:{base:"rounded-t-lg",active:{on:"bg-gray-100 text-primary-600 dark:bg-gray-800 dark:text-primary-500",off:"text-gray-500 hover:bg-gray-50 hover:text-gray-600 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-300"}},underline:{base:"rounded-t-lg",active:{on:"rounded-t-lg border-b-2 border-primary-600 text-primary-600 dark:border-primary-500 dark:text-primary-500",off:"border-b-2 border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-600 dark:text-gray-400 dark:hover:text-gray-300"}},pills:{base:"",active:{on:"rounded-lg bg-primary-600 text-white",off:"rounded-lg hover:bg-gray-100 hover:text-gray-900 dark:hover:bg-gray-800 dark:hover:text-white"}},fullWidth:{base:"ml-0 flex w-full rounded-none first:ml-0",active:{on:"rounded-none bg-gray-100 p-4 text-gray-900 dark:bg-gray-700 dark:text-white",off:"rounded-none bg-white hover:bg-gray-50 hover:text-gray-700 dark:bg-gray-800 dark:hover:bg-gray-700 dark:hover:text-white"}}},icon:"mr-2 h-5 w-5"}},tabitemcontainer:{base:"",variant:{default:"",underline:"",pills:"",fullWidth:""}},tabpanel:"py-3"}),aC=(0,h.forwardRef)((e,t)=>{let i=(0,aN.useThemeProvider)(),s=(0,aS.useResolveTheme)([aP,i.theme?.tabs,e.theme],[(0,aj.get)(i.clearTheme,"tabs"),e.clearTheme],[(0,aj.get)(i.applyTheme,"tabs"),e.applyTheme]),{children:r,className:a,onActiveTabChange:o,variant:l="default",...u}=(0,aT.resolveProps)(e,i.props?.tabs),d=(0,h.useId)(),c=(0,h.useMemo)(()=>h.Children.map(h.Children.toArray(r),({props:e})=>e),[r]),m=(0,h.useRef)([]),[p,f]=(0,h.useState)(Math.max(0,c.findIndex(e=>e.active))),[g,x]=(0,h.useState)(-1);function v(e){f(e),o&&o(e)}let y=s.tablist.tabitem.variant[l],w=s.tabitemcontainer.variant[l];return(0,h.useEffect)(()=>{m.current[g]?.focus()},[g]),(0,h.useImperativeHandle)(t,()=>({setActiveTab:v})),(0,n.jsxs)("div",{className:(0,ak.twMerge)(s.base,a),children:[(0,n.jsx)("div",{"aria-label":"Tabs",role:"tablist",className:(0,ak.twMerge)(s.tablist.base,s.tablist.variant[l],a),...u,children:c.map((e,t)=>(0,n.jsxs)("button",{type:"button","aria-controls":`${d}-tabpanel-${t}`,"aria-selected":t===p,className:(0,ak.twMerge)(s.tablist.tabitem.base,y.base,t===p&&y.active.on,t!==p&&!e.disabled&&y.active.off),disabled:e.disabled,id:`${d}-tab-${t}`,onClick:()=>(function({target:e}){v(e),x(e)})({target:t}),onKeyDown:e=>(function({event:e,target:t}){"ArrowLeft"===e.key&&x(Math.max(0,g-1)),"ArrowRight"===e.key&&x(Math.min(c.length-1,g+1)),"Enter"===e.key&&(v(t),x(t))})({event:e,target:t}),ref:e=>{m.current[t]=e},role:"tab",tabIndex:t===g?0:-1,style:{zIndex:t===g?2:1},children:[e.icon&&(0,n.jsx)(e.icon,{className:s.tablist.tabitem.icon}),e.title]},t))}),(0,n.jsx)("div",{className:(0,ak.twMerge)(s.tabitemcontainer.base,w),children:c.map((e,t)=>(0,n.jsx)("div",{"aria-labelledby":`${d}-tab-${t}`,className:s.tabpanel,hidden:t!==p,id:`${d}-tabpanel-${t}`,role:"tabpanel",tabIndex:0,children:e.children},t))})]})});aC.displayName="Tabs";let aM=(0,h.forwardRef)((e,t)=>{let i=(0,aN.useThemeProvider)(),{title:s,...r}=(0,aT.resolveProps)(e,i.props?.tabItem);return(0,n.jsx)("div",{ref:t,...r})});aM.displayName="TabItem";var aA=e.i(944009),aE=e.i(256467);let aV=()=>{let{title:e,bullets:t}=at,i=(0,h.useRef)(null),[s,r]=(0,h.useState)(0),[a,l]=(0,h.useState)(!1),u=(0,h.useRef)(null),[d,c]=(0,h.useState)(!1);(0,h.useEffect)(()=>{c(!0)},[]);let m=()=>{if(u.current){let e=u.current.querySelector('[role="tablist"]');if(e){let{scrollWidth:t,clientWidth:i}=e;l(t>i)}}};(0,h.useEffect)(()=>{let e=()=>{requestAnimationFrame(m)};return m(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[t]);let p=e=>{if(u.current){let t=u.current.querySelector('[role="tablist"]');if(t){let i=t.clientWidth/1.5,s=t.scrollLeft+("left"===e?-i:i);t.scrollTo({left:s,behavior:"smooth"})}}},f={base:"flex flex-col items-center w-full",tablist:{base:`flex !flex-nowrap text-center relative w-full overflow-x-auto scrollbar-hide ${a?"justify-start":"justify-center"} [&::-webkit-scrollbar]:hidden [-ms-overflow-style:'none'] [scrollbar-width:'none']`,variant:{underline:"border-b border-gray-200"},tabitem:{base:"flex items-center justify-center p-4 text-sm font-medium first:ml-0 focus:outline-none disabled:cursor-not-allowed disabled:text-gray-400 whitespace-nowrap flex-shrink-0",variant:{underline:{base:"group",active:{on:"relative text-gray-900",off:"border-b-2 border-transparent text-gray-500 hover:text-blue-500"}}},icon:"mr-2 h-5 w-5"}},tabitemcontainer:{base:"flex items-center justify-center w-full",variant:{underline:""}},tabpanel:"py-3 w-full"};return(0,n.jsxs)("div",{className:"flex h-full w-full flex-col",children:[(0,n.jsx)("h3",{className:"mb-8 w-full text-center text-2xl font-bold leading-snug text-gray-800 sm:mb-12 sm:text-3xl lg:text-4xl lg:leading-tight",children:e}),(0,n.jsx)("div",{className:`relative mx-auto flex-1 ${a?"w-[90%] sm:w-[80%]":"w-[90%] sm:w-full sm:max-w-[80%]"}`,children:(0,n.jsxs)("div",{className:"relative",ref:u,children:[a&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"absolute left-0 top-6 z-10 -translate-x-4 sm:-translate-x-12",children:(0,n.jsx)("div",{className:"group inline-flex rounded-full bg-gradient-to-br from-purple-500 to-blue-500 p-0.5",children:(0,n.jsxs)(o.Button,{pill:!0,size:"xss",className:"items-center justify-center !border-0 !bg-white !text-gray-900 transition-all duration-300 group-hover:!bg-transparent group-hover:!text-white",onClick:()=>p("left"),"aria-label":"Scroll use cases left",children:[(0,n.jsx)(aA.ChevronLeft,{className:"h-5 w-5 group-hover:text-white [&>path]:stroke-[url(#gradient)] group-hover:[&>path]:stroke-white"}),(0,n.jsx)("svg",{width:"0",height:"0",children:(0,n.jsxs)("linearGradient",{id:"gradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,n.jsx)("stop",{stopColor:"#9333EA",offset:"0%"}),(0,n.jsx)("stop",{stopColor:"#3B82F6",offset:"100%"})]})})]})})}),(0,n.jsx)("div",{className:"absolute right-0 top-6 z-10 translate-x-4 sm:translate-x-12",children:(0,n.jsx)("div",{className:"group inline-flex rounded-full bg-gradient-to-br from-purple-500 to-blue-500 p-0.5",children:(0,n.jsx)(o.Button,{pill:!0,size:"xss",className:"items-center justify-center !border-0 !bg-white !text-gray-900 transition-all duration-300 group-hover:!bg-transparent group-hover:!text-white",onClick:()=>p("right"),"aria-label":"Scroll use cases right",children:(0,n.jsx)(aE.ChevronRight,{className:"h-5 w-5 group-hover:text-white [&>path]:stroke-[url(#gradient)] group-hover:[&>path]:stroke-white"})})})})]}),d?(0,n.jsx)(aC,{ref:i,"aria-label":"Use cases tabs",variant:"underline",onActiveTabChange:e=>{r(e),setTimeout(()=>{let i=document.querySelector(`[data-tab-id="${t[e].id}"]`);if(i&&u.current){let e=u.current.querySelector('[role="tablist"]');if(e){let t=i.getBoundingClientRect(),s=e.getBoundingClientRect(),r=t.left-s.left+e.scrollLeft-(s.width-t.width)/2;e.scrollTo({left:r,behavior:"smooth"})}}},100)},theme:f,children:t.map((e,t)=>
9(0,n.jsx)(aM,{title:(0,n.jsxs)("div",{"data-tab-id":e.id,className:`relative flex items-center gap-2 rounded-full px-4 py-2 ${t===s?"border border-transparent bg-gradient-to-br from-purple-600/10 to-blue-500/10 bg-clip-border":"hover:bg-gray-100"} `,children:[(0,n.jsx)("div",{className:`transition-colors duration-200 [&>svg]:h-5 [&>svg]:w-5 ${t===s?'[&>svg:not([fill="none"])]:fill-[url(#tab-gradient)] [&>svg]:stroke-[url(#tab-gradient)]':'[&>svg:not([fill="none"])]:fill-gray-500 group-hover:[&>svg:not([fill="none"])]:fill-blue-500 [&>svg]:stroke-gray-500 group-hover:[&>svg]:stroke-blue-500'} `,children:e.icon}),(0,n.jsx)("span",{className:`transition-colors duration-200 ${t===s?"bg-gradient-to-br from-purple-600 to-blue-500 bg-clip-text text-transparent":"text-gray-500 group-hover:text-blue-500"} `,children:e.title}),t===s&&(0,n.jsx)("div",{className:"border-gradient-to-r absolute inset-0 rounded-full border from-purple-600 to-blue-500",style:{background:"linear-gradient(to right, rgb(147, 51, 234), rgb(59, 130, 246)) border-box",WebkitMask:"linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0)",WebkitMaskComposite:"xor",maskComposite:"exclude"}})]}),children:(0,n.jsxs)("div",{className:"flex h-[500px] w-full flex-col items-start gap-8 overflow-y-auto md:flex-row lg:h-[600px] xl:h-[600px]",children:[(0,n.jsxs)("div",{className:"w-full md:mt-4 md:w-1/2",children:[(0,n.jsx)("h3",{className:"mb-4 text-2xl font-bold",children:e.title}),(0,n.jsx)("p",{className:"text-gray-600",children:e.desc})]}),(0,n.jsx)("div",{className:"h-full w-full overflow-hidden p-0 md:w-1/2 md:p-8",children:t===s&&e.demo})]})},e.id))}):(0,n.jsx)("div",{className:"min-h-[600px]"})]})}),(0,n.jsx)("svg",{width:"0",height:"0",className:"absolute",children:(0,n.jsxs)("linearGradient",{id:"tab-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,n.jsx)("stop",{stopColor:"#9333EA",offset:"0%"}),(0,n.jsx)("stop",{stopColor:"#3B82F6",offset:"100%"})]})})]})},aL=()=>{let[e,t]=h.default.useState(!1);return(h.default.useEffect(()=>{t(!0)},[]),e)?(0,n.jsx)(nA.div,{id:"animated-oval-container",className:"absolute left-[-10%] top-[50%] z-0 h-[60%] max-h-[calc(100vh-8rem)] w-[120%] -translate-y-1/2 md:h-[80%] lg:h-[100%] xl:h-[120%]",initial:{opacity:0}
9,animate:{opacity:1},transition:{duration:.5},children:(0,n.jsxs)("svg",{id:"animated-oval-svg",className:"h-full w-full",viewBox:"0 0 100 100",preserveAspectRatio:"none",children:[[{rx:42,ry:{base:19,md:29,lg:39,xl:49},duration:40,delay:0,className:"text-brand-purple/20"},{rx:38,ry:{base:15,md:25,lg:35,xl:45},duration:35,delay:.2,className:"text-brand-blue/30"},{rx:34,ry:{base:11,md:21,lg:31,xl:41},duration:45,delay:.4,className:"text-brand-indigo/40"}].map((e,t)=>(0,n.jsx)(nA.ellipse,{cx:"50",cy:"50",rx:e.rx,ry:window.innerWidth>=1280?e.ry.xl:window.innerWidth>=1024?e.ry.lg:window.innerWidth>=768?e.ry.md:e.ry.base,fill:"none",stroke:"currentColor",strokeWidth:"0.1",className:e.className,initial:{rotate:0},animate:{rotate:360},transition:{rotate:{duration:e.duration,ease:"linear",repeat:1/0,delay:e.delay}}},`clockwise-${t}`)),[{rx:40,ry:{base:17,md:27,lg:37,xl:47},duration:38,delay:.1,className:"text-brand-purple/10"},{rx:36,ry:{base:13,md:23,lg:33,xl:43},duration:43,delay:.3,className:"text-brand-blue/20"},{rx:32,ry:{base:9,md:19,lg:29,xl:39},duration:48,delay:.5,className:"text-brand-indigo/30"}].map((e,t)=>(0,n.jsx)(nA.ellipse,{cx:"50",cy:"50",rx:e.rx,ry:window.innerWidth>=1280?e.ry.xl:window.innerWidth>=1024?e.ry.lg:window.innerWidth>=768?e.ry.md:e.ry.base,fill:"none",stroke:"currentColor",strokeWidth:"0.1",className:e.className,initial:{rotate:0},animate:{rotate:-360},transition:{rotate:{duration:e.duration,ease:"linear",repeat:1/0,delay:e.delay}}},`counterclockwise-${t}`))]})}):null},aR=({id:e,className:t="",children:i,title:s,showAnimatedOval:r=!0})=>(0,n.jsxs)("section",{id:e,className:`relative flex min-h-[calc(100vh-4rem)] w-full scroll-mt-16 flex-col items-center justify-center ${t}`,children:[r&&(0,n.jsx)(aL,{}),(0,n.jsxs)("div",{className:"z-10 flex h-full w-full flex-col px-4 sm:px-6 lg:px-8",children:[s&&(0,n.jsx)("h3",{className:"mb-8 w-full text-center text-2xl font-bold text-gray-800 sm:text-3xl lg:text-4xl",children:s}),(0,n.jsx)("div",{className:"flex flex-1 flex-col",children:i})]})]});var aD=e.i(917284);e.s(["default",0,function(){return(0,n.jsxs)("div",{id:"landing-scroll-container",className:"max-w-screen flex min-h-screen flex-col overflow-y-auto overflow-x-hidden md:h-screen",style:{scrollBehavior:"smooth"},children:[(0,n.jsx)(ab.TopNav,{navItems:n9,scrollContainerId:"landing-scroll-container"}),(0,n.jsx)(aR,{id:"home",className:"mt-16 items-center pb-16 sm:pb-24",children:(0,n.jsx)(ay,{})}),(0,n.jsx)(aR,{id:"how-it-works",title:"How It Works",showAnimatedOval:!1,className:"!min-h-fit pb-16 xl:!min-h-[calc(100vh-4rem)]",children:(0,n.jsx)(ai,{})}),(0,n.jsx)(aR,{id:"use-cases",showAnimatedOval:!1,children:(0,n.jsx)(aV,{})}),(0,n.jsx)(aR,{id:"get-started",children:(0,n.jsxs)("div",{className:"flex w-full flex-1 flex-col items-center justify-center",children:[(0,n.jsx)("h3",{className:"mb-6 w-full text-center text-2xl font-bold leading-snug text-gray-800 sm:mb-8 sm:text-3xl lg:text-4xl lg:leading-tight",children:"Let's deliver flawless user experiences together."}),(0,n.jsx)(a.default,{href:aD.ROUTES.LOGIN,children:(0,n.jsx)(o.Button,{color:"purple",className:"group relative overflow-hidden rounded-full bg-gradient-to-br from-purple-500 to-blue-500",size:"lg",children:(0,n.jsxs)("span",{className:"flex items-center justify-center gap-2 text-white",children:["Get started",(0,n.jsx)(l.ArrowRight,{className:"h-4 w-4 transition-transform duration-300 group-hover:translate-x-1"})]})})})]})}),(0,n.jsx)(aw.Footer,{sections:aw.SITE_FOOTER_SECTIONS,className:"mt-auto"})]})}],952683)}]);

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.