test-lah 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/app-build-manifest.json +16 -16
  3. package/.next/standalone/.next/app-path-routes-manifest.json +1 -1
  4. package/.next/standalone/.next/build-manifest.json +2 -2
  5. package/.next/standalone/.next/prerender-manifest.json +1 -1
  6. package/.next/standalone/.next/server/app/(dashboard)/integrations/page_client-reference-manifest.js +1 -1
  7. package/.next/standalone/.next/server/app/(dashboard)/projects/[projectId]/page_client-reference-manifest.js +1 -1
  8. package/.next/standalone/.next/server/app/(dashboard)/projects/[projectId]/summary/page_client-reference-manifest.js +1 -1
  9. package/.next/standalone/.next/server/app/(dashboard)/projects/page_client-reference-manifest.js +1 -1
  10. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  11. package/.next/standalone/.next/server/app/_not-found.html +1 -1
  12. package/.next/standalone/.next/server/app/_not-found.rsc +1 -1
  13. package/.next/standalone/.next/server/app/index.html +1 -1
  14. package/.next/standalone/.next/server/app/index.rsc +1 -1
  15. package/.next/standalone/.next/server/app/integrations.html +1 -1
  16. package/.next/standalone/.next/server/app/integrations.rsc +1 -1
  17. package/.next/standalone/.next/server/app/login/page_client-reference-manifest.js +1 -1
  18. package/.next/standalone/.next/server/app/login.html +1 -1
  19. package/.next/standalone/.next/server/app/login.rsc +1 -1
  20. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  21. package/.next/standalone/.next/server/app/projects.html +1 -1
  22. package/.next/standalone/.next/server/app/projects.rsc +1 -1
  23. package/.next/standalone/.next/server/app-paths-manifest.json +3 -3
  24. package/.next/standalone/.next/server/pages/404.html +1 -1
  25. package/.next/standalone/.next/server/pages/500.html +1 -1
  26. package/.next/standalone/.next/server/pages-manifest.json +1 -1
  27. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  28. package/.next/standalone/.next/static/chunks/117-e69900da972e4921.js +2 -0
  29. package/.next/standalone/.next/static/chunks/137-a3e1f3eebce6c471.js +1 -0
  30. package/.next/standalone/.next/static/chunks/235-ebf466171ab253e2.js +1 -0
  31. package/.next/standalone/.next/static/chunks/485-15c13d8f9b2ad891.js +1 -0
  32. package/.next/standalone/.next/static/chunks/490-1eccd8c1e46190f4.js +62 -0
  33. package/.next/standalone/.next/static/chunks/575-8f213bbf0f9b5a37.js +1 -0
  34. package/.next/standalone/.next/static/chunks/648-db64ca8b0bff7cc8.js +1 -0
  35. package/.next/standalone/.next/static/chunks/6edf0643-db532f25b1f04785.js +2 -0
  36. package/.next/standalone/.next/static/chunks/80-f42274b2ba8fa9b3.js +1 -0
  37. package/.next/standalone/.next/static/chunks/app/(dashboard)/integrations/page-c1d22a9f517c96ac.js +1 -0
  38. package/.next/standalone/.next/static/chunks/app/(dashboard)/layout-2fdaecfc1cb7d964.js +1 -0
  39. package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[projectId]/page-99dba96eab165331.js +1 -0
  40. package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/[projectId]/summary/page-efd93968c6f2c7e0.js +1 -0
  41. package/.next/standalone/.next/static/chunks/app/(dashboard)/projects/page-ec221e3cbf5cda88.js +1 -0
  42. package/.next/standalone/.next/static/chunks/app/_not-found/page-d1995e10d27b5d8d.js +1 -0
  43. package/.next/standalone/.next/static/chunks/app/layout-6b5286432a7d5254.js +1 -0
  44. package/.next/standalone/.next/static/chunks/app/login/page-1f6552bb64f7540b.js +1 -0
  45. package/.next/standalone/.next/static/chunks/app/page-f57c2c1aef4e90cf.js +1 -0
  46. package/.next/standalone/.next/static/chunks/e6b68d76-12e11e14cd115b6a.js +5 -0
  47. package/.next/standalone/.next/static/chunks/fd9d1056-85ee78742a3b65a4.js +1 -0
  48. package/.next/standalone/.next/static/chunks/framework-f66176bb897dc684.js +1 -0
  49. package/.next/standalone/.next/static/chunks/main-app-0e69cb49b371c4fd.js +1 -0
  50. package/.next/standalone/.next/static/chunks/main-b11533768004a954.js +1 -0
  51. package/.next/standalone/.next/static/chunks/pages/_app-72b849fbd24ac258.js +1 -0
  52. package/.next/standalone/.next/static/chunks/pages/_error-7ba65e1336b92748.js +1 -0
  53. package/.next/standalone/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  54. package/.next/standalone/.next/static/chunks/webpack-859ed9aa51f47af4.js +1 -0
  55. package/.next/standalone/.next/static/css/6e654cedeb116983.css +3 -0
  56. package/.next/standalone/.next/static/media/19cfc7226ec3afaa-s.woff2 +0 -0
  57. package/.next/standalone/.next/static/media/21350d82a1f187e9-s.woff2 +0 -0
  58. package/.next/standalone/.next/static/media/8e9860b6e62d6359-s.woff2 +0 -0
  59. package/.next/standalone/.next/static/media/ba9851c3c22cd980-s.woff2 +0 -0
  60. package/.next/standalone/.next/static/media/c5fe6dc8356a8c31-s.woff2 +0 -0
  61. package/.next/standalone/.next/static/media/df0a9ae256c0569c-s.woff2 +0 -0
  62. package/.next/standalone/.next/static/media/e4af272ccee01ff0-s.p.woff2 +0 -0
  63. package/.next/standalone/package.json +2 -4
  64. package/.next/static/H65ReFd4QkcOzHCj-Zoxg/_buildManifest.js +1 -0
  65. package/.next/static/H65ReFd4QkcOzHCj-Zoxg/_ssgManifest.js +1 -0
  66. package/package.json +1 -1
  67. package/scripts/prepare-publish.js +11 -16
  68. /package/.next/{static/HMefPZOhmnPwumbb_n1dR → standalone/.next/static/H65ReFd4QkcOzHCj-Zoxg}/_buildManifest.js +0 -0
  69. /package/.next/{static/HMefPZOhmnPwumbb_n1dR → standalone/.next/static/H65ReFd4QkcOzHCj-Zoxg}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[80],{9376:function(t,e,i){var n=i(5475);i.o(n,"useParams")&&i.d(e,{useParams:function(){return n.useParams}}),i.o(n,"usePathname")&&i.d(e,{usePathname:function(){return n.usePathname}}),i.o(n,"useRouter")&&i.d(e,{useRouter:function(){return n.useRouter}})},8248:function(t,e,i){let n,s;i.d(e,{E:function(){return sk}});let r=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],o=new Set([...r,"pathRotation"]);var a,l=i(7537),h=i(5050),u=i(3855);let d=new Set(["brightness","contrast","saturate","opacity"]);function c(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(u.K)||[];if(!n)return t;let s=i.replace(n,""),r=d.has(e)?1:0;return n!==i&&(r*=100),e+"("+r+s+")"}let p=/\b([a-z-]*)\(.*?\)/gu,m={...h.P,getAnimatableNone:t=>{let e=t.match(p);return e?e.map(c).join(" "):t}},f={...h.P,getAnimatableNone:t=>{let e=h.P.parse(t);return h.P.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}};var y=i(1799);let g={...y.Rx,transform:Math.round};var v=i(2854);let x={rotate:v.RW,pathRotation:v.RW,rotateX:v.RW,rotateY:v.RW,rotateZ:v.RW,scale:y.bA,scaleX:y.bA,scaleY:y.bA,scaleZ:y.bA,skew:v.RW,skewX:v.RW,skewY:v.RW,distance:v.px,translateX:v.px,translateY:v.px,translateZ:v.px,x:v.px,y:v.px,z:v.px,perspective:v.px,transformPerspective:v.px,opacity:y.Fq,originX:v.$C,originY:v.$C,originZ:v.px},w={borderWidth:v.px,borderTopWidth:v.px,borderRightWidth:v.px,borderBottomWidth:v.px,borderLeftWidth:v.px,borderRadius:v.px,borderTopLeftRadius:v.px,borderTopRightRadius:v.px,borderBottomRightRadius:v.px,borderBottomLeftRadius:v.px,width:v.px,maxWidth:v.px,height:v.px,maxHeight:v.px,top:v.px,right:v.px,bottom:v.px,left:v.px,inset:v.px,insetBlock:v.px,insetBlockStart:v.px,insetBlockEnd:v.px,insetInline:v.px,insetInlineStart:v.px,insetInlineEnd:v.px,padding:v.px,paddingTop:v.px,paddingRight:v.px,paddingBottom:v.px,paddingLeft:v.px,paddingBlock:v.px,paddingBlockStart:v.px,paddingBlockEnd:v.px,paddingInline:v.px,paddingInlineStart:v.px,paddingInlineEnd:v.px,margin:v.px,marginTop:v.px,marginRight:v.px,marginBottom:v.px,marginLeft:v.px,marginBlock:v.px,marginBlockStart:v.px,marginBlockEnd:v.px,marginInline:v.px,marginInlineStart:v.px,marginInlineEnd:v.px,fontSize:v.px,backgroundPositionX:v.px,backgroundPositionY:v.px,...x,zIndex:g,fillOpacity:y.Fq,strokeOpacity:y.Fq,numOctaves:g},P={...w,color:l.$,backgroundColor:l.$,outlineColor:l.$,fill:l.$,stroke:l.$,borderColor:l.$,borderTopColor:l.$,borderRightColor:l.$,borderBottomColor:l.$,borderLeftColor:l.$,filter:m,WebkitFilter:m,mask:f,WebkitMask:f},S=t=>P[t],T=()=>({translate:0,scale:1,origin:0,originPoint:0}),E=()=>({x:T(),y:T()}),b=()=>({min:0,max:0}),A=()=>({x:b(),y:b()});var V=i(7493);let C=new Set(["width","height","top","left","right","bottom",...r]),R=t=>e=>e.test(t),D=[y.Rx,v.px,v.aQ,v.RW,v.vw,v.vh,{test:t=>"auto"===t,parse:t=>t}],M=t=>D.find(R(t));var k=i(2035);let L=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);var B=i(8596);let j=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,F=t=>180*t/Math.PI,I=t=>O(F(Math.atan2(t[1],t[0]))),W={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:I,rotateZ:I,skewX:t=>F(Math.atan(t[1])),skewY:t=>F(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},O=t=>((t%=360)<0&&(t+=360),t),U=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),$=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),X={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:U,scaleY:$,scale:t=>(U(t)+$(t))/2,rotateX:t=>O(F(Math.atan2(t[6],t[5]))),rotateY:t=>O(F(Math.atan2(-t[2],t[0]))),rotateZ:I,rotate:I,skewX:t=>F(Math.atan(t[4])),skewY:t=>F(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function N(t){return t.includes("scale")?1:0}function Y(t,e){let i,n;if(!t||"none"===t)return N(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=X,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=W,n=e}if(!n)return N(e);let r=i[e],o=n[1].split(",").map(H);return"function"==typeof r?r(o):o[r]}let z=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return Y(i,e)};function H(t){return parseFloat(t.trim())}let K=t=>t===y.Rx||t===v.px,Z=new Set(["x","y","z"]),G=r.filter(t=>!Z.has(t)),_={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:n})=>{let s=t.max-t.min;return"border-box"===n?s:s-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:n})=>{let s=t.max-t.min;return"border-box"===n?s:s-parseFloat(e)-parseFloat(i)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Y(e,"x"),y:(t,{transform:e})=>Y(e,"y")};_.translateX=_.x,_.translateY=_.y;var q=i(6147);let Q=new Set,J=!1,tt=!1,te=!1;function ti(){if(tt){let t=Array.from(Q).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return G.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tt=!1,J=!1,Q.forEach(t=>t.complete(te)),Q.clear()}function tn(){Q.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tt=!0)})}class ts{constructor(t,e,i,n,s,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(Q.add(this),J||(J=!0,q.Wi.read(tn),q.Wi.resolveKeyframes(ti))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let s=n?.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.set(t[0])}!function(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Q.delete(this)}cancel(){"scheduled"===this.state&&(Q.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tr=t=>/^0[^.\s]+$/u.test(t),to=new Set([m,f]);function ta(t,e){let i=S(t);return to.has(i)||(i=h.P),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tl=new Set(["auto","none","0"]);class th extends ts{constructor(t,e,i,n,s){super(t,e,i,n,s,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&(n=n.trim(),(0,B.tm)(n))){let s=function t(e,i,n=1){(0,k.k)(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[s,r]=function(t){let e=j.exec(t);if(!e)return[,];let[,i,n,s]=e;return[`--${i??n}`,s]}(e);if(!s)return;let o=window.getComputedStyle(i).getPropertyValue(s);if(o){let t=o.trim();return L(t)?parseFloat(t):t}return(0,B.tm)(r)?t(r,i,n+1):r}(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!C.has(i)||2!==t.length)return;let[n,s]=t,r=M(n),o=M(s);if((0,B.V3)(n)!==(0,B.V3)(s)&&_[i]){this.needsMeasurement=!0;return}if(r!==o){if(K(r)&&K(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else _[i]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;(null===t[e]||("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||tr(n)))&&i.push(e)}i.length&&function(t,e,i){let n,s=0;for(;s<t.length&&!n;){let e=t[s];"string"==typeof e&&!tl.has(e)&&(0,h.V)(e).values.length&&(n=t[s]),s++}if(n&&i)for(let s of e)t[s]=ta(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=_[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let s=i.length-1,r=i[s];i[s]=_[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}var tu=i(9711),td=i(4513),tc=i(6277);let tp=t=>t.startsWith("--");function tm(t,e,i){tp(e)?t.style.setProperty(e,i):t.style[e]=i}function tf(t){let e;return()=>(void 0===e&&(e=t()),e)}let ty={};function tg(t,e){let i=tf(t);return()=>ty[e]??i()}let tv=tg(()=>void 0!==window.ScrollTimeline,"scrollTimeline");var tx=i(9118),tw=i(9868),tP=i(5818),tS=i(557),tT=i(3857);let tE=tg(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing");var tb=i(6092);let tA=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,tV={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tA([0,.65,.55,1]),circOut:tA([.55,0,1,.45]),backIn:tA([.31,.01,.66,-.59]),backOut:tA([.33,1.53,.69,.99])};function tC(t){return"function"==typeof t&&"applyToOptions"in t}class tR extends tw.T{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,(0,k.k)("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:t,...e}){return tC(t)&&tE()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},h){let u={[e]:i};l&&(u.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?tE()?(0,tb.w)(e,i):"ease-out":(0,tT.q)(e)?tA(e):Array.isArray(e)?e.map(e=>t(e,i)||tV.easeOut):tV[e]}(a,s);Array.isArray(d)&&(u.easing=d),tS.f.value&&tP.P.waapi++;let c={delay:n,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"};h&&(c.pseudoElement=h);let p=t.animate(u,c);return tS.f.value&&p.finished.finally(()=>{tP.P.waapi--}),p}(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=(0,tx.$)(n,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(t),tm(e,i,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return(0,tu.X)(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+(0,tu.X)(t)}get time(){return(0,tu.X)(Number(this.animation.currentTime)||0)}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=(0,tu.w)(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:i,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&tv())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),tc.Z):n(this)}}let tD=new Set(["opacity","clipPath","filter","transform"]),{schedule:tM,cancel:tk}=(0,i(2862).Z)(queueMicrotask,!1);var tL=i(1927),tB=i(4357);let tj=[...D,l.$,h.P],tF=t=>tj.find(R(t)),tI=new WeakMap;function tW(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function tO(t){return"string"==typeof t||Array.isArray(t)}let tU=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],t$=["initial",...tU];function tX(t){return tW(t.animate)||t$.some(e=>tO(t[e]))}function tN(t){return!!(tX(t)||t.variants)}let tY={current:null},tz={current:!1},tH="undefined"!=typeof window;function tK(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function tZ(t,e,i,n){if("function"==typeof e){let[s,r]=tK(n);e=e(void 0!==i?i:t.custom,s,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,r]=tK(n);e=e(void 0!==i?i:t.custom,s,r)}return e}let tG=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],t_={};class tq{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:s,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=ts,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=tL.X.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,q.Wi.render(this.render,!1,!0))};let{latestValues:l,renderState:h}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=h,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=s,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=tX(e),this.isVariantNode=tN(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in d){let e=d[t];void 0!==l[t]&&(0,V.i)(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,tI.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(tz.current||function(){if(tz.current=!0,tH){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>tY.current=t.matches;t.addEventListener("change",e),e()}else tY.current=!1}}(),this.shouldReduceMotion=tY.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,q.Pn)(this.notifyUpdate),(0,q.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&tD.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:s,ease:r,duration:o}=e.accelerate,a=new tR({element:this.current,name:t,keyframes:n,times:s,ease:r,duration:(0,tu.w)(o)}),l=i(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let n=o.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&q.Wi.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"undefined"!=typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),i&&i()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in t_){let e=t_[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):A()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<tG.length;e++){let i=tG[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let s=e[n],r=i[n];if((0,V.i)(s))t.addValue(n,s);else if((0,V.i)(r))t.addValue(n,(0,tB.BX)(s,{owner:t}));else if(r!==s){if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,(0,tB.BX)(void 0!==e?e:s,{owner:t}))}}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,tB.BX)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=i&&("string"==typeof i&&(L(i)||tr(i))?i=parseFloat(i):!tF(i)&&h.P.test(e)&&(i=ta(t,e)),this.setBaseTarget(t,(0,V.i)(i)?i.get():i)),(0,V.i)(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e;let{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=tZ(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||(0,V.i)(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new td.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){tM.render(this.render)}}class tQ extends tq{constructor(){super(...arguments),this.KeyframeResolver=th}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,V.i)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function tJ(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let t0=(t,e)=>e&&"number"==typeof t?e.transform(t):t,t1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},t5=r.length;function t9(t,e,i){let{style:n,vars:s,transformOrigin:a}=t,l=!1,h=!1;for(let t in e){let i=e[t];if(o.has(t)){l=!0;continue}if((0,B.f9)(t)){s[t]=i;continue}{let e=t0(i,w[t]);t.startsWith("origin")?(h=!0,a[t]=e):n[t]=e}}if(!e.transform&&(l||i?n.transform=function(t,e,i){let n="",s=!0;for(let o=0;o<t5;o++){let a=r[o],l=t[a];if(void 0===l)continue;let h=!0;if("number"==typeof l)h=l===(a.startsWith("scale")?1:0);else{let t=parseFloat(l);h=a.startsWith("scale")?1===t:0===t}if(!h||i){let t=t0(l,w[a]);if(!h){s=!1;let e=t1[a]||a;n+=`${e}(${t}) `}i&&(e[a]=t)}}let o=t.pathRotation;return o&&(s=!1,n+=`rotate(${t0(o,w.pathRotation)}) `),n=n.trim(),i?n=i(e,s?"":n):s&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),h){let{originX:t="50%",originY:e="50%",originZ:i=0}=a;n.transformOrigin=`${t} ${e} ${i}`}}let t3={offset:"stroke-dashoffset",array:"stroke-dasharray"},t2={offset:"strokeDashoffset",array:"strokeDasharray"},t4=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function t7(t,{attrX:e,attrY:i,attrScale:n,pathLength:s,pathSpacing:r=1,pathOffset:o=0,...a},l,h,u){if(t9(t,a,h),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:c}=t;for(let t 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),t4))void 0!==d[t]&&(c[t]=d[t],delete d[t]);void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==s&&function(t,e,i=1,n=0,s=!0){t.pathLength=1;let r=s?t3:t2;t[r.offset]=`${-n}`,t[r.array]=`${e} ${i}`}(d,s,r,o,!1)}let t6=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"]),t8=t=>"string"==typeof t&&"svg"===t.toLowerCase();function et(t,{style:e,vars:i},n,s){let r;let o=t.style;for(r in e)o[r]=e[r];for(r in s?.applyProjectionStyles(o,n),i)o.setProperty(r,i[r])}function ee(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let ei={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!v.px.test(t))return t;t=parseFloat(t)}let i=ee(t,e.target.x),n=ee(t,e.target.y);return`${i}% ${n}%`}};var en=i(3811);let es={borderRadius:{...ei,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ei,borderTopRightRadius:ei,borderBottomLeftRadius:ei,borderBottomRightRadius:ei,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=h.P.parse(t);if(n.length>5)return t;let s=h.P.createTransformer(t),r="number"!=typeof n[0]?1:0,o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+r]/=o,n[1+r]/=a;let l=(0,en.t)(o,a,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}};function er(t,{layout:e,layoutId:i}){return o.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!es[t]||"opacity"===t)}function eo(t,e,i){let n=t.style,s=e?.style,r={};if(!n)return r;for(let e in n)((0,V.i)(n[e])||s&&(0,V.i)(s[e])||er(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(r[e]=n[e]);return r}function ea(t,e,i){let n=eo(t,e,i);for(let i in t)((0,V.i)(t[i])||(0,V.i)(e[i]))&&(n[-1!==r.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class el extends tQ{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=A}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(o.has(e)){let t=S(e);return t&&t.default||0}return e=t6.has(e)?e:tJ(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return ea(t,e,i)}build(t,e,i){t7(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){!function(t,e,i,n){for(let i in et(t,e,void 0,n),e.attrs)t.setAttribute(t6.has(i)?i:tJ(i),e.attrs[i])}(t,e,0,n)}mount(t){this.isSVGTag=t8(t.tagName),super.mount(t)}}function eh({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function eu(t){return void 0===t||1===t}function ed({scale:t,scaleX:e,scaleY:i}){return!eu(t)||!eu(e)||!eu(i)}function ec(t){return ed(t)||ep(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ep(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function em(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function ef(t,e=0,i=1,n,s){t.min=em(t.min,e,i,n,s),t.max=em(t.max,e,i,n,s)}function ey(t,{x:e,y:i}){ef(t.x,e.translate,e.scale,e.originPoint),ef(t.y,i.translate,i.scale,i.originPoint)}function eg(t,e){t.min+=e,t.max+=e}function ev(t,e,i,n,s=.5){let r=(0,en.t)(t.min,t.max,s);ef(t,e,i,r,n)}function ex(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function ew(t,e,i){let n=i??t;ev(t.x,ex(e.x,n.x),e.scaleX,e.scale,e.originX),ev(t.y,ex(e.y,n.y),e.scaleY,e.scale,e.originY)}function eP(t,e){return eh(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}class eS extends tQ{constructor(){super(...arguments),this.type="html",this.renderInstance=et}readValueFromInstance(t,e){if(o.has(e))return this.projection?.isProjecting?N(e):z(t,e);{let i=window.getComputedStyle(t),n=((0,B.f9)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return eP(t,e)}build(t,e,i){t9(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return eo(t,e,i)}}var eT=i(2265);let eE=["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 eb(t){if("string"!=typeof t||t.includes("-"));else if(eE.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var eA=i(7437);let eV=(0,eT.createContext)({}),eC=(0,eT.createContext)({strict:!1});var eR=i(5750);let eD=(0,eT.createContext)({});function eM(t){return Array.isArray(t)?t.join(" "):t}let ek=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eL(t,e,i){for(let n in e)(0,V.i)(e[n])||er(n,i)||(t[n]=e[n])}let eB=()=>({...ek(),attrs:{}}),ej=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function eF(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ej.has(t)}let eI=t=>!eF(t);try{a=require("@emotion/is-prop-valid").default,"function"==typeof a&&(eI=t=>t.startsWith("on")?!eF(t):a(t))}catch{}function eW(t){return(0,V.i)(t)?t.get():t}let eO=(0,eT.createContext)(null);var eU=i(3576);let e$=t=>(e,i)=>{let n=(0,eT.useContext)(eD),s=(0,eT.useContext)(eO),r=()=>(function(t,e,i,n){let{scrapeMotionValuesFromProps:s,createRenderState:r}=t;return{latestValues:function(t,e,i,n){let s={},r=n(t,{});for(let t in r)s[t]=eW(r[t]);let{initial:o,animate:a}=t,l=tX(t),h=tN(t);e&&h&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let u=!!i&&!1===i.initial,d=(u=u||!1===o)?a:o;if(d&&"boolean"!=typeof d&&!tW(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let n=tZ(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=u?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(e,i,n,s),renderState:r()}})(t,e,n,s);return i?r():(0,eU.h)(r)},eX=e$({scrapeMotionValuesFromProps:eo,createRenderState:ek}),eN=e$({scrapeMotionValuesFromProps:ea,createRenderState:eB}),eY={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"]},ez=!1;function eH(){return!function(){if(ez)return;let t={};for(let e in eY)t[e]={isEnabled:t=>eY[e].some(e=>!!t[e])};t_=t,ez=!0}(),t_}let eK=Symbol.for("motionComponentSymbol"),eZ="data-"+tJ("framerAppearId"),eG=(0,eT.createContext)({});function e_(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var eq=i(2014);function eQ(t){var e,i;let{forwardMotionProps:n=!1,type:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;r&&function(t){let e=eH();for(let i in t)e[i]={...e[i],...t[i]};t_=e}(r);let a=s?"svg"===s:eb(t),l=a?eN:eX;function h(e,i){let s;let r={...(0,eT.useContext)(eR._),...e,layoutId:function(t){let{layoutId:e}=t,i=(0,eT.useContext)(eV).id;return i&&void 0!==e?i+"-"+e:e}(e)},{isStatic:h}=r,u=function(t){let{initial:e,animate:i}=function(t,e){if(tX(t)){let{initial:e,animate:i}=t;return{initial:!1===e||tO(e)?e:void 0,animate:tO(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,eT.useContext)(eD));return(0,eT.useMemo)(()=>({initial:e,animate:i}),[eM(e),eM(i)])}(e),d=l(e,h);if(!h&&"undefined"!=typeof window){(0,eT.useContext)(eC).strict;let e=function(t){let{drag:e,layout:i}=eH();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(r);s=e.MeasureLayout,u.visualElement=function(t,e,i,n,s,r){var o,a,l,h;let{visualElement:u}=(0,eT.useContext)(eD),d=(0,eT.useContext)(eC),c=(0,eT.useContext)(eO),p=(0,eT.useContext)(eR._),m=p.reducedMotion,f=p.skipAnimations,y=(0,eT.useRef)(null),g=(0,eT.useRef)(!1);n=n||d.renderer,!y.current&&n&&(y.current=n(t,{visualState:e,parent:u,props:i,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:m,skipAnimations:f,isSVG:r}),g.current&&y.current&&(y.current.manuallyAnimateOnMount=!0));let v=y.current,x=(0,eT.useContext)(eG);v&&!v.projection&&s&&("html"===v.type||"svg"===v.type)&&function(t,e,i,n){let{layoutId:s,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:h,layoutAnchor:u,layoutCrossfade:d}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:s,layout:r,alwaysMeasureLayout:!!o||a&&e_(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:d,layoutScroll:l,layoutRoot:h,layoutAnchor:u})}(y.current,i,s,x);let w=(0,eT.useRef)(!1);(0,eT.useInsertionEffect)(()=>{v&&w.current&&v.update(i,c)});let P=i[eZ],S=(0,eT.useRef)(!!P&&"undefined"!=typeof window&&!(null===(o=(a=window).MotionHandoffIsComplete)||void 0===o?void 0:o.call(a,P))&&(null===(l=(h=window).MotionHasOptimisedAnimation)||void 0===l?void 0:l.call(h,P)));return(0,eq.L)(()=>{g.current=!0,v&&(w.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),S.current&&v.animationState&&v.animationState.animateChanges())}),(0,eT.useEffect)(()=>{v&&(!S.current&&v.animationState&&v.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var t,e;null===(t=(e=window).MotionHandoffMarkAsComplete)||void 0===t||t.call(e,P)}),S.current=!1),v.enteringChildren=void 0)}),v}(t,d,r,o,e.ProjectionNode,a)}return(0,eA.jsxs)(eD.Provider,{value:u,children:[s&&u.visualElement?(0,eA.jsx)(s,{visualElement:u.visualElement,...r}):null,function(t,e,i,n,s){let{latestValues:r}=n,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,l=((null!=a?a:eb(t))?function(t,e,i,n){let s=(0,eT.useMemo)(()=>{let i=eB();return t7(i,e,t8(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};eL(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return eL(n,i,t),Object.assign(n,function(t,e){let{transformTemplate:i}=t;return(0,eT.useMemo)(()=>{let t=ek();return t9(t,e,i),Object.assign({},t.vars,t.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(e,r,s,t),h=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&!(0,V.i)(t[s])&&(eI(s)||!0===i&&eF(s)||!e&&!eF(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(e,"string"==typeof t,o),u=t!==eT.Fragment?{...h,...l,ref:i}:{},{children:d}=e,c=(0,eT.useMemo)(()=>(0,V.i)(d)?d.get():d,[d]);return(0,eT.createElement)(t,{...u,children:c})}(t,e,function(t,e,i){let n=(0,eT.useRef)(i);(0,eT.useInsertionEffect)(()=>{n.current=i});let s=(0,eT.useRef)(null);return(0,eT.useCallback)(i=>{if(i){var r;null===(r=t.onMount)||void 0===r||r.call(t,i)}e&&(i?e.mount(i):e.unmount());let o=n.current;if("function"==typeof o){if(i){let t=o(i);"function"==typeof t&&(s.current=t)}else s.current?(s.current(),s.current=null):o(i)}else o&&(o.current=i)},[e])}(d,u.visualElement,i),d,h,n,a)]})}h.displayName="motion.".concat("string"==typeof t?t:"create(".concat(null!==(i=null!==(e=t.displayName)&&void 0!==e?e:t.name)&&void 0!==i?i:"",")"));let u=(0,eT.forwardRef)(h);return u[eK]=t,u}class eJ{constructor(t){this.isMounted=!1,this.node=t}update(){}}function e0(t,e,i){let n=t.getProps();return tZ(n,e,void 0!==i?i:n.custom,t)}function e1(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}function e5(t,e){let i=t?.[e]??t?.default??t;return i!==t?e1(i,t):i}let e9=t=>Array.isArray(t);var e3=i(1457);function e2(t,e){let i=t.getValue("willChange");if((0,V.i)(i)&&i.add)return i.add(e);if(!i&&e3.c.WillChange){let i=new e3.c.WillChange("auto");t.addValue("willChange",i),i.add(e)}}var e4=i(8441),e7=i(1865),e6=i(8133),e8=i(3273),it=i(5567),ie=i(2927);let ii={anticipate:e8.L,backInOut:it.XL,circInOut:ie.X7};class is extends tR{constructor(t){"string"==typeof t.ease&&t.ease in ii&&(t.ease=ii[t.ease]),(0,e6.f)(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:s,...r}=this.options;if(!e)return;if(void 0!==t){e.set(t);return}let o=new e4.L({...r,autoplay:!1}),a=Math.max(10,tL.X.now()-this.startTime),l=(0,e7.u)(0,10,a-10),h=o.sample(a).value,{name:u}=this.options;s&&u&&tm(s,u,h),e.setWithVelocity(o.sample(Math.max(0,a-l)).value,h,l),o.stop()}}let ir=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(h.P.test(t)||"0"===t)&&!t.startsWith("url("));function io(t){t.duration=0,t.type="keyframes"}let ia=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,il=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),ih=tf(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class iu extends tw.T{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",keyframes:o,name:a,motionValue:l,element:h,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tL.X.now();let d={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,name:a,motionValue:l,element:h,...u},c=h?.KeyframeResolver||ts;this.keyframeResolver=new c(o,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),a,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){let s;this.keyframeResolver=void 0;let{name:r,type:o,velocity:a,delay:l,isHandoff:h,onUpdate:u}=i;this.resolvedAt=tL.X.now();let d=!0;!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],o=ir(s,e),a=ir(r,e);return(0,k.K)(o===a,`You are trying to animate ${e} from "${s}" to "${r}". "${o?r:s}" is not an animatable value.`,"value-not-animatable"),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||tC(i))&&n)}(t,r,o,a)&&(d=!1,(e3.c.instantAnimations||!l)&&u?.(tx.$(t,i,e)),t[0]=t[t.length-1],io(i),i.repeat=0);let c={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},p=d&&!h&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:o,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:h}=e.owner.getProps();return ih()&&i&&(tD.has(i)||il.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&ia.test(t[e]))return!0;return!1}(a))&&("transform"!==i||!h)&&!l&&!n&&"mirror"!==s&&0!==r&&"inertia"!==o}(c),m=c.motionValue?.owner?.current;if(p)try{s=new is({...c,element:m})}catch{s=new e4.L(c)}else s=new e4.L(c);s.finished.then(()=>{this.notifyFinished()}).catch(tc.Z),this.pendingTimeline&&(this.stopTimeline=s.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=s}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),te=!0,tn(),ti(),te=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let id={type:"spring",stiffness:500,damping:25,restSpeed:10},ic=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),ip={type:"keyframes",duration:.8},im={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},iy=(t,{keyframes:e})=>e.length>2?ip:o.has(t)?t.startsWith("scale")?ic(e[1]):id:im,ig=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),iv=(t,e,i,n={},s,r)=>o=>{let a=e5(n,t)||{},l=a.delay||n.delay||0,{elapsed:h=0}=n;h-=(0,tu.w)(l);let u={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-h,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:s};!function(t){for(let e in t)if(!ig.has(e))return!0;return!1}(a)&&Object.assign(u,iy(t,u)),u.duration&&(u.duration=(0,tu.w)(u.duration)),u.repeatDelay&&(u.repeatDelay=(0,tu.w)(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if(!1!==u.type&&(0!==u.duration||u.repeatDelay)||(io(u),0!==u.delay||(d=!0)),(e3.c.instantAnimations||e3.c.skipAnimations||s?.shouldSkipAnimations||a.skipAnimations)&&(d=!0,io(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!r&&void 0!==e.get()){let t=(0,tx.$)(u.keyframes,a);if(void 0!==t){q.Wi.update(()=>{u.onUpdate(t),u.onComplete()});return}}return a.isSync?new e4.L(u):new iu(u)};function ix(t,e,{delay:i=0,transitionOverride:n,type:s}={}){let{transition:r,transitionEnd:o,...a}=e,l=t.getDefaultTransition();r=r?e1(r,l):l;let h=r?.reduceMotion,u=r?.skipAnimations;n&&(r=n);let d=[],c=s&&t.animationState&&t.animationState.getState()[s],p=r?.path;for(let e in p&&p.animateVisualElement(t,a,r,i,d),a){let n=t.getValue(e,t.latestValues[e]??null),s=a[e];if(void 0===s||c&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(c,e))continue;let o={delay:i,...e5(r||{},e)};u&&(o.skipAnimations=!0);let l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(s)&&s===l&&!o.velocity){q.Wi.update(()=>n.set(s));continue}let p=!1;if(window.MotionHandoffAnimation){let i=t.props[eZ];if(i){let t=window.MotionHandoffAnimation(i,e,q.Wi);null!==t&&(o.startTime=t,p=!0)}}e2(t,e);let m=h??t.shouldReduceMotion;n.start(iv(e,n,s,m&&C.has(e)?{type:!1}:o,t,p));let f=n.animation;f&&d.push(f)}if(o){let e=()=>q.Wi.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:n={},...s}=e0(t,e)||{};for(let e in s={...s,...i}){var r;let i=e9(r=s[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,tB.BX)(i))}}(t,o)});d.length?Promise.all(d).then(e):e()}return d}function iw(t,e,i,n=0,s=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(r,o):1===s?r*n:a-r*n}function iP(t,e,i={}){let n=e0(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let r=n?()=>Promise.all(ix(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,i=0,n=0,s=0,r=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(iP(l,e,{...o,delay:i+("function"==typeof n?0:n)+iw(t.variantChildren,l,n,s,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,n,r,o,a,i)}:()=>Promise.resolve(),{when:a}=s;if(!a)return Promise.all([r(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[r,o]:[o,r];return t().then(()=>e())}}let iS=t$.length;function iT(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}let iE=[...tU].reverse(),ib=tU.length;function iA(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function iV(){return{animate:iA(!0),whileInView:iA(),whileHover:iA(),whileTap:iA(),whileDrag:iA(),whileFocus:iA(),exit:iA()}}class iC extends eJ{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>iP(t,e,i)));else if("string"==typeof e)n=iP(t,e,i);else{let s="function"==typeof e?e0(t,e,i.custom):e;n=Promise.all(ix(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=iV(),n=!0,s=!1,r=e=>(i,n)=>{let s=e0(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function o(o){let{props:a}=t,l=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<iS;t++){let n=t$[t],s=e.props[n];(tO(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},h=[],u=new Set,d={},c=1/0;for(let e=0;e<ib;e++){var p;let m=iE[e],f=i[m],y=void 0!==a[m]?a[m]:l[m],g=tO(y),v=m===o?f.isActive:null;!1===v&&(c=e);let x=y===l[m]&&y!==a[m]&&g;if(x&&(n||s)&&t.manuallyAnimateOnMount&&(x=!1),f.protectedKeys={...d},!f.isActive&&null===v||!y&&!f.prevProp||tW(y)||"boolean"==typeof y)continue;if("exit"===m&&f.isActive&&!0!==v){f.prevResolvedValues&&(d={...d,...f.prevResolvedValues});continue}let w=(p=f.prevProp,"string"==typeof y?y!==p:!!Array.isArray(y)&&!iT(y,p)),P=w||m===o&&f.isActive&&!x&&g||e>c&&g,S=!1,T=Array.isArray(y)?y:[y],E=T.reduce(r(m),{});!1===v&&(E={});let{prevResolvedValues:b={}}=f,A={...b,...E},V=e=>{P=!0,u.has(e)&&(S=!0,u.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in A){let e=E[t],i=b[t];if(!d.hasOwnProperty(t))(e9(e)&&e9(i)?!iT(e,i)||w:e!==i)?null!=e?V(t):u.add(t):void 0!==e&&u.has(t)?V(t):f.protectedKeys[t]=!0}f.prevProp=y,f.prevResolvedValues=E,f.isActive&&(d={...d,...E}),(n||s)&&t.blockInitialAnimation&&(P=!1);let C=x&&w,R=!C||S;P&&R&&h.push(...T.map(e=>{let i={type:m};if("string"==typeof e&&(n||s)&&!C&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=e0(n,e);if(n.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=iw(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof a.initial){let i=e0(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),h.push({animation:e})}let m=!!h.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(m=!1),n=!1,s=!1,m?e(h):Promise.resolve()}return{animateChanges:o,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let s=o(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=iV(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();tW(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let iR=0;class iD extends eJ{constructor(){super(...arguments),this.id=iR++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)){let i=e0(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...n}=i;for(let t in n)this.node.getValue(t)?.jump(n[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}let iM={x:!1,y:!1};function ik(t){return[t("x"),t("y")]}function iL(t){return t.max-t.min}function iB(t,e,i,n=.5){t.origin=n,t.originPoint=(0,en.t)(e.min,e.max,t.origin),t.scale=iL(i)/iL(e),t.translate=(0,en.t)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function ij(t,e,i,n){iB(t.x,e.x,i.x,n?n.originX:void 0),iB(t.y,e.y,i.y,n?n.originY:void 0)}function iF(t,e,i,n=0){let s=n?(0,en.t)(i.min,i.max,n):i.min;t.min=s+e.min,t.max=t.min+iL(e)}function iI(t,e,i,n=0){let s=n?(0,en.t)(i.min,i.max,n):i.min;t.min=e.min-s,t.max=t.min+iL(e)}function iW(t,e,i,n){iI(t.x,e.x,i.x,n?.x),iI(t.y,e.y,i.y,n?.y)}let iO=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),iU=new Set(["INPUT","SELECT","TEXTAREA"]);function i$(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let iX=t=>"object"==typeof t&&null!==t;function iN(t){return iX(t)&&"ownerSVGElement"in t}var iY=i(9960);let iz=new WeakMap,iH=(t,e,i)=>(n,s)=>s&&s[0]?s[0][t+"Size"]:iN(n)&&"getBBox"in n?n.getBBox()[e]:n[i],iK=iH("inline","width","offsetWidth"),iZ=iH("block","height","offsetHeight");function iG({target:t,borderBoxSize:e}){iz.get(t)?.forEach(i=>{i(t,{get width(){return iK(t,e)},get height(){return iZ(t,e)}})})}function i_(t){t.forEach(iG)}let iq=new Set;function iQ(t,e){return"function"==typeof t?(iq.add(t),s||(s=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};iq.forEach(e=>e(t))},window.addEventListener("resize",s)),()=>{iq.delete(t),iq.size||"function"!=typeof s||(window.removeEventListener("resize",s),s=void 0)}):function(t,e){n||"undefined"==typeof ResizeObserver||(n=new ResizeObserver(i_));let i=(0,iY.I)(t);return i.forEach(t=>{let i=iz.get(t);i||(i=new Set,iz.set(t,i)),i.add(e),n?.observe(t)}),()=>{i.forEach(t=>{let i=iz.get(t);i?.delete(e),i?.size||n?.unobserve(t)})}}(t,e)}let iJ=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function i0(t){return{point:{x:t.pageX,y:t.pageY}}}let i1=t=>e=>iJ(e)&&t(e,i0(e));function i5(t,e,i,n){return i$(t,e,i1(i),n)}let i9=({current:t})=>t?t.ownerDocument.defaultView:null;var i3=i(4750);let i2=(t,e)=>Math.abs(t-e),i4=new Set(["auto","scroll"]);class i7{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:r=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=i6(this.lastRawMoveEventInfo,this.transformPagePoint));let i=nt(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,s=(t=i.offset,e={x:0,y:0},Math.sqrt(i2(t.x,e.x)**2+i2(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!s)return;let{point:r}=i,{timestamp:o}=q.frameData;this.history.push({...r,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=i6(e,this.transformPagePoint),q.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=nt("pointercancel"===t.type?this.lastMoveEventInfo:i6(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!iJ(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=n||window;let a=i6(i0(t),this.transformPagePoint),{point:l}=a,{timestamp:h}=q.frameData;this.history=[{...l,timestamp:h}];let{onSessionStart:u}=e;u&&u(t,nt(a,this.history)),this.removeListeners=(0,i3.z)(i5(this.contextWindow,"pointermove",this.handlePointerMove),i5(this.contextWindow,"pointerup",this.handlePointerUp),i5(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(i4.has(t.overflowX)||i4.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:n.x-e.x,y:n.y-e.y};(0!==s.x||0!==s.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,n),q.Wi.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,q.Pn)(this.updatePoint)}}function i6(t,e){return e?{point:e(t.point)}:t}function i8(t,e){return{x:t.x-e.x,y:t.y-e.y}}function nt({point:t},e){return{point:t,delta:i8(t,ne(e)),offset:i8(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,s=ne(t);for(;i>=0&&(n=t[i],!(s.timestamp-n.timestamp>(0,tu.w)(.1)));)i--;if(!n)return{x:0,y:0};n===t[0]&&t.length>2&&s.timestamp-n.timestamp>2*(0,tu.w)(.1)&&(n=t[1]);let r=(0,tu.X)(s.timestamp-n.timestamp);if(0===r)return{x:0,y:0};let o={x:(s.x-n.x)/r,y:(s.y-n.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function ne(t){return t[t.length-1]}var ni=i(1645);function nn(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function ns(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function nr(t,e,i){return{min:no(t,e),max:no(t,i)}}function no(t,e){return"number"==typeof t?t:t[e]||0}let na=new WeakMap;class nl{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=A(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:s}=this.getProps();this.panSession=new i7(t,{onSessionStart:t=>{e&&this.snapToCursor(i0(t).point),this.stopAnimation()},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===i||"y"===i?iM[i]?null:(iM[i]=!0,()=>{iM[i]=!1}):iM.x||iM.y?null:(iM.x=iM.y=!0,()=>{iM.x=iM.y=!1}),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ik(t=>{let e=this.getAxisMotionValue(t).get()||0;if(v.aQ.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=iL(n);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),s&&q.Wi.update(()=>s(t,e),!1,!0),e2(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&&q.Wi.update(()=>r(t,e),!1,!0)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})}},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,distanceThreshold:i,contextWindow:i9(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!n||!i)return;let{velocity:r}=n;this.startAnimation(r);let{onDragEnd:o}=this.getProps();o&&q.Wi.postRender(()=>o(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!nu(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?(0,en.t)(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?(0,en.t)(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&e_(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:nn(t.x,i,s),y:nn(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:nr(t,"left","right"),y:nr(t,"top","bottom")}}(e),n!==this.constraints&&!e_(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&ik(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!e_(e))return!1;let n=e.current;(0,k.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;s.root&&(s.root.scroll=void 0,s.root.updateScroll());let r=function(t,e,i){let n=eP(t,i),{scroll:s}=e;return s&&(eg(n.x,s.offset.x),eg(n.y,s.offset.y)),n}(n,s.root,this.visualElement.getTransformPagePoint()),o={x:ns((t=s.layout.layoutBox).x,r.x),y:ns(t.y,r.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=eh(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(ik(o=>{if(!nu(o,e,this.currentDirection))return;let l=a&&a[o]||{};(!0===r||r===o)&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(o,h)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return e2(this.visualElement,t),i.start(iv(t,i,0,e,this.visualElement,!1))}stopAnimation(){ik(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`;return this.visualElement.getProps()[e]||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){ik(e=>{let{drag:i}=this.getProps();if(!nu(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e],o=s.get()||0;s.set(t[e]-(0,en.t)(i,r,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!e_(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};ik(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=iL(t),s=iL(e);return s>n?i=(0,ni.Y)(e.min,e.max-n,t.min):n>s&&(i=(0,ni.Y)(t.min,t.max-s,e.min)),(0,e7.u)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),ik(e=>{if(!nu(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set((0,en.t)(s,r,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;na.set(this.visualElement,this);let e=this.visualElement.current,i=i5(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}=this.getProps(),s=t.target,r=s!==e&&(iU.has(s.tagName)||!0===s.isContentEditable);i&&n&&!r&&this.start(t)}),n=()=>{let{dragConstraints:i}=this.getProps();e_(i)&&i.current&&(this.constraints=this.resolveRefConstraints(),t||(t=function(t,e,i){let n=iQ(t,nh(i)),s=iQ(e,nh(i));return()=>{n(),s()}}(e,i.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,r=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),q.Wi.read(n);let o=i$(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(ik(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),i(),r(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:o}}}function nh(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function nu(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class nd extends eJ{constructor(t){super(t),this.removeGroupControls=tc.Z,this.removeListeners=tc.Z,this.controls=new nl(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tc.Z}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let nc=t=>(e,i)=>{t&&q.Wi.update(()=>t(e,i),!1,!0)};class np extends eJ{constructor(){super(...arguments),this.removePointerDownListener=tc.Z}onPointerDown(t){this.session=new i7(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:i9(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:nc(t),onStart:nc(e),onMove:nc(i),onEnd:(t,e)=>{delete this.session,n&&q.Wi.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=i5(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let nm={hasAnimatedSinceResize:!0,hasEverUpdated:!1},nf=!1;class ny extends eT.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),nf&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),nm.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:r}=i;return r&&(r.isPresent=s,t.layoutDependency!==e&&r.setOptions({...r.options,layoutDependency:e}),nf=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?r.willUpdate():this.safeToRemove(),t.isPresent===s||(s?r.promote():r.relegate()||q.Wi.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),tM.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;nf=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ng(t){let[e,i]=function(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,eT.useContext)(eO);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:s}=e,r=(0,eT.useId)();(0,eT.useEffect)(()=>{if(t)return s(r)},[t]);let o=(0,eT.useCallback)(()=>t&&n&&n(r),[r,n,t]);return!i&&n?[!1,o]:[!0]}(),n=(0,eT.useContext)(eV);return(0,eA.jsx)(ny,{...t,layoutGroup:n,switchLayoutGroup:(0,eT.useContext)(eG),isPresent:e,safeToRemove:i})}let nv=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],nx=nv.length,nw=t=>"string"==typeof t?parseFloat(t):t,nP=t=>"number"==typeof t||v.px.test(t);function nS(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nT=nb(0,.5,ie.Bn),nE=nb(.5,.95,tc.Z);function nb(t,e,i){return n=>n<t?0:n>e?1:i((0,ni.Y)(t,e,n))}function nA(t,e){t.min=e.min,t.max=e.max}function nV(t,e){nA(t.x,e.x),nA(t.y,e.y)}function nC(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nR(t,e,i,n,s){return t-=e,t=n+1/i*(t-n),void 0!==s&&(t=n+1/s*(t-n)),t}function nD(t,e,[i,n,s],r,o){!function(t,e=0,i=1,n=.5,s,r=t,o=t){if(v.aQ.test(e)&&(e=parseFloat(e),e=(0,en.t)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,en.t)(r.min,r.max,n);t===r&&(a-=e),t.min=nR(t.min,e,i,a,s),t.max=nR(t.max,e,i,a,s)}(t,e[i],e[n],e[s],e.scale,r,o)}let nM=["x","scaleX","originX"],nk=["y","scaleY","originY"];function nL(t,e,i,n){nD(t.x,e,nM,i?i.x:void 0,n?n.x:void 0),nD(t.y,e,nk,i?i.y:void 0,n?n.y:void 0)}function nB(t){return 0===t.translate&&1===t.scale}function nj(t){return nB(t.x)&&nB(t.y)}function nF(t,e){return t.min===e.min&&t.max===e.max}function nI(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function nW(t,e){return nI(t.x,e.x)&&nI(t.y,e.y)}function nO(t){return iL(t.x)/iL(t.y)}function nU(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var n$=i(8425);class nX{constructor(){this.members=[]}add(t){(0,n$.y4)(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1!==n.isConnected||i.snapshot||((0,n$.cl)(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if((0,n$.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:s}=t.options;(void 0===n||n!==s)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let nN=(t,e)=>t.depth-e.depth;class nY{constructor(){this.children=[],this.isDirty=!1}add(t){(0,n$.y4)(this.children,t),this.isDirty=!0}remove(t){(0,n$.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nN),this.isDirty=!1,this.children.forEach(t)}}let nz={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},nH=["","X","Y","Z"],nK=0;function nZ(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function nG({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=nK++,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,tS.f.value&&(nz.nodes=nz.calculatedTargetDeltas=nz.calculatedProjections=0),this.nodes.forEach(nQ),this.nodes.forEach(n7),this.nodes.forEach(n6),this.nodes.forEach(nJ),tS.f.addProjectionMetrics&&tS.f.addProjectionMetrics(nz)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new nY)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new td.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=iN(e)&&!(iN(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i;let n=0,s=()=>this.root.updateBlockedByResize=!1;q.Wi.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==n&&(n=t,this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=tL.X.now(),n=({timestamp:e})=>{let s=e-i;s>=250&&((0,q.Pn)(n),t(s-250))};return q.Wi.setup(n,!0),()=>(0,q.Pn)(n)}(s,0),nm.hasAnimatedSinceResize&&(nm.hasAnimatedSinceResize=!1,this.nodes.forEach(n4)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||ss,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!nW(this.targetLayout,n),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...e5(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h,e.path)}else e||n4(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,q.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(n8),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[eZ];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",q.Wi,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(n5),this.nodes.forEach(n1);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(n9);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(n3),this.nodes.forEach(n2),this.nodes.forEach(n_),this.nodes.forEach(nq)):this.nodes.forEach(n9),this.clearAllSnapshots();let t=tL.X.now();q.frameData.delta=(0,e7.u)(0,1e3/60,t-q.frameData.timestamp),q.frameData.timestamp=t,q.frameData.isProcessing=!0,q.yL.update.process(q.frameData),q.yL.preRender.process(q.frameData),q.yL.render.process(q.frameData),q.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tM.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(n0),this.sharedNodes.forEach(st)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,q.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){q.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||iL(this.snapshot.measuredBox.x)||iL(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=A()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!nj(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||ec(this.latestValues)||r)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),sa((e=n).x),sa(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return A();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sh))){let{scroll:t}=this.root;t&&(eg(e.x,t.offset.x),eg(e.y,t.offset.y))}return e}removeElementScroll(t){let e=A();if(nV(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&nV(e,t),eg(e.x,s.offset.x),eg(e.y,s.offset.y))}return e}applyTransform(t,e=!1,i){let n=i||A();nV(n,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(eg(n.x,-i.scroll.offset.x),eg(n.y,-i.scroll.offset.y)),ec(i.latestValues)&&ew(n,i.latestValues,i.layout?.layoutBox)}return ec(this.latestValues)&&ew(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(t){let e=A();nV(e,t);for(let t=0;t<this.path.length;t++){let i;let n=this.path[t];ec(n.latestValues)&&(n.instance&&(ed(n.latestValues)&&n.updateSnapshot(),nV(i=A(),n.measurePageBox())),nL(e,n.latestValues,n.snapshot?.layoutBox,i))}return ec(this.latestValues)&&nL(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==q.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:s}=this.options;if(!this.layout||!(n||s))return;this.resolvedRelativeTargetAt=q.frameData.timestamp;let r=this.getClosestProjectingParent();if(r&&this.linkedParentVersion!==r.layoutVersion&&!r.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&r&&r.layout?this.createRelativeTarget(r,this.layout.layoutBox,r.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=A(),this.targetWithTransforms=A()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l,h;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,h=this.options.layoutAnchor||void 0,iF(o.x,a.x,l.x,h?.x),iF(o.y,a.y,l.y,h?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):nV(this.target,this.layout.layoutBox),ey(this.target,this.targetDelta)):nV(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&r&&!!r.resumingFrom==!!this.resumingFrom&&!r.options.layoutScroll&&r.target&&1!==this.animationProgress?this.createRelativeTarget(r,this.target,r.target):this.relativeParent=this.relativeTarget=void 0),tS.f.value&&nz.calculatedTargetDeltas++}}getClosestProjectingParent(){return!this.parent||ed(this.parent.latestValues)||ep(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=A(),this.relativeTargetOrigin=A(),iW(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),nV(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===q.frameData.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;nV(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,n=!1){let s,r;let o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){r=(s=i[a]).projectionDelta;let{visualElement:o}=s.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(eg(t.x,-s.scroll.offset.x),eg(t.y,-s.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,ey(t,r)),n&&ec(s.latestValues)&&ew(t,s.latestValues,s.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=A());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nC(this.prevProjectionDelta.x,this.projectionDelta.x),nC(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),ij(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===r&&this.treeScale.y===o&&nU(this.projectionDelta.x,this.prevProjectionDelta.x)&&nU(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),tS.f.value&&nz.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=E(),this.projectionDelta=E(),this.projectionDeltaWithTransform=E()}setAnimationOrigin(t,e=!1,i){let n;let s=this.snapshot,r=s?s.latestValues:{},o={...this.latestValues},a=E();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=A(),h=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),d=!u||u.members.length<=1,c=!!(h&&!d&&!0===this.options.crossfade&&!this.path.some(sn));this.animationProgress=0;let p=i?.interpolateProjection(t);this.mixTargetDelta=e=>{let i=e/1e3,s=p?.(i);if(s?(a.x.translate=s.x,a.x.scale=(0,en.t)(t.x.scale,1,i),a.x.origin=t.x.origin,a.x.originPoint=t.x.originPoint,a.y.translate=s.y,a.y.scale=(0,en.t)(t.y.scale,1,i),a.y.origin=t.y.origin,a.y.originPoint=t.y.originPoint):(se(a.x,t.x,i),se(a.y,t.y,i)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,m,f,y;iW(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,y=this.relativeTargetOrigin,si(f.x,y.x,l.x,i),si(f.y,y.y,l.y,i),n&&(u=this.relativeTarget,m=n,nF(u.x,m.x)&&nF(u.y,m.y))&&(this.isProjectionDirty=!1),n||(n=A()),nV(n,this.relativeTarget)}h&&(this.animationValues=o,function(t,e,i,n,s,r){s?(t.opacity=(0,en.t)(0,i.opacity??1,nT(n)),t.opacityExit=(0,en.t)(e.opacity??1,0,nE(n))):r&&(t.opacity=(0,en.t)(e.opacity??1,i.opacity??1,n));for(let s=0;s<nx;s++){let r=nv[s],o=nS(e,r),a=nS(i,r);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||nP(o)===nP(a)?(t[r]=Math.max((0,en.t)(nw(o),nw(a),n),0),(v.aQ.test(a)||v.aQ.test(o))&&(t[r]+="%")):t[r]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,en.t)(e.rotate||0,i.rotate||0,n))}(o,r,this.latestValues,i,c,d)),s&&void 0!==s.rotate&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=s.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,q.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=q.Wi.update(()=>{nm.hasAnimatedSinceResize=!0,tP.P.layout++,this.motionValue||(this.motionValue=(0,tB.BX)(0)),this.motionValue.jump(0,!1),this.currentAnimation=function(t,e,i){let n=(0,V.i)(t)?t:(0,tB.BX)(t);return n.start(iv("",n,e,i)),n.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{tP.P.layout--},onComplete:()=>{tP.P.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&sl(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||A();let e=iL(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=iL(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}nV(e,i),ew(e,s),ij(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new nX),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&nZ("z",t,n,this.animationValues);for(let e=0;e<nH.length;e++)nZ(`rotate${nH[e]}`,t,n,this.animationValues),nZ(`skew${nH[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=eW(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=eW(e?.pointerEvents)||""),this.hasProjected&&!ec(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let s=n.animationValues||n.latestValues;this.applyTransformsToTarget();let r=function(t,e,i){let n="",s=t.x.translate/e.x,r=t.y.translate/e.y,o=i?.z||0;if((s||r||o)&&(n=`translate3d(${s}px, ${r}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,pathRotation:s,rotateX:r,rotateY:o,skewX:a,skewY:l}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotate(${s}deg) `),r&&(n+=`rotateX(${r}deg) `),o&&(n+=`rotateY(${o}deg) `),a&&(n+=`skewX(${a}deg) `),l&&(n+=`skewY(${l}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s);i&&(r=i(s,r)),t.transform=r;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,n.animationValues?t.opacity=n===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,es){if(void 0===s[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=es[e],l="none"===r?s[e]:i(s[e],n);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?eW(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(n1),this.root.sharedNodes.clear()}}}function n_(t){t.updateLayout()}function nq(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,r=e.source!==t.layout.source;if("size"===s)ik(t=>{let n=r?e.measuredBox[t]:e.layoutBox[t],s=iL(n);n.min=i[t].min,n.max=n.min+s});else if("x"===s||"y"===s){let t="x"===s?"y":"x";nA(r?e.measuredBox[t]:e.layoutBox[t],i[t])}else sl(s,e.layoutBox,i)&&ik(n=>{let s=r?e.measuredBox[n]:e.layoutBox[n],o=iL(i[n]);s.max=s.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=E();ij(o,i,e.layoutBox);let a=E();r?ij(a,t.applyTransform(n,!0),e.measuredBox):ij(a,i,e.layoutBox);let l=!nj(o),h=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let o=t.options.layoutAnchor||void 0,a=A();iW(a,e.layoutBox,s.layoutBox,o);let l=A();iW(l,i,r.layoutBox,o),nW(a,l)||(h=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function nQ(t){tS.f.value&&nz.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function nJ(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function n0(t){t.clearSnapshot()}function n1(t){t.clearMeasurements()}function n5(t){t.isLayoutDirty=!0,t.updateLayout()}function n9(t){t.isLayoutDirty=!1}function n3(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function n2(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function n4(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function n7(t){t.resolveTargetDelta()}function n6(t){t.calcProjection()}function n8(t){t.resetSkewAndRotation()}function st(t){t.removeLeadSnapshot()}function se(t,e,i){t.translate=(0,en.t)(e.translate,0,i),t.scale=(0,en.t)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function si(t,e,i,n){t.min=(0,en.t)(e.min,i.min,n),t.max=(0,en.t)(e.max,i.max,n)}function sn(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ss={duration:.45,ease:[.4,0,.1,1]},sr=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),so=sr("applewebkit/")&&!sr("chrome/")?Math.round:tc.Z;function sa(t){t.min=so(t.min),t.max=so(t.max)}function sl(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(nO(e)-nO(i)))}function sh(t){return t!==t.root&&t.scroll?.wasRoot}let su=nG({attachResizeListener:(t,e)=>i$(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),sd={current:void 0},sc=nG({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!sd.current){let t=new su({});t.mount(window),t.setOptions({layoutScroll:!0}),sd.current=t}return sd.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function sp(t,e){let i=(0,iY.I)(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function sm(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&q.Wi.postRender(()=>s(e,i0(e)))}class sf extends eJ{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=sp(t,i);return n.forEach(t=>{let i,n=!1,r=!1,o=()=>{t.removeEventListener("pointerleave",h)},a=t=>{i&&(i(t),i=void 0),o()},l=t=>{n=!1,window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",l),r&&(r=!1,a(t))},h=t=>{if("touch"!==t.pointerType){if(n){r=!0;return}a(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||iM.x||iM.y)return;r=!1;let o=e(t,n);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",h,s))},s),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",l,s),window.addEventListener("pointercancel",l,s)},s)}),r}(t,(t,e)=>(sm(this.node,e,"Start"),t=>sm(this.node,t,"End"))))}unmount(){}}class sy extends eJ{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,i3.z)(i$(this.node.current,"focus",()=>this.onFocus()),i$(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let sg=(t,e)=>!!e&&(t===e||sg(t,e.parentElement)),sv=new WeakSet;function sx(t){return e=>{"Enter"===e.key&&t(e)}}function sw(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let sP=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=sx(()=>{if(sv.has(i))return;sw(i,"down");let t=sx(()=>{sw(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>sw(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function sS(t){return iJ(t)&&!(iM.x||iM.y)}let sT=new WeakSet;function sE(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&q.Wi.postRender(()=>s(e,i0(e)))}class sb extends eJ{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[n,s,r]=sp(t,i),o=t=>{let n=t.currentTarget;if(!sS(t)||sT.has(t))return;sv.add(n),i.stopPropagation&&sT.add(t);let r=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),sv.has(n)&&sv.delete(n),sS(t)&&"function"==typeof r&&r(t,{success:e})},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||sg(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,s),!iX(t)||!("offsetHeight"in t)||"ownerSVGElement"in t||(t.addEventListener("focus",t=>sP(t,s)),iO.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(sE(this.node,e,"Start"),(t,{success:e})=>sE(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}let sA=new WeakMap,sV=new WeakMap,sC=t=>{let e=sA.get(t.target);e&&e(t)},sR=t=>{t.forEach(sC)},sD={some:0,all:1};class sM extends eJ{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:s}=t,r={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:sD[n]};this.stopObserver=function(t,e,i){let n=function({root:t,...e}){let i=t||document;sV.has(i)||sV.set(i,{});let n=sV.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(sR,{root:t,...e})),n[s]}(e);return sA.set(t,i),n.observe(t),()=>{sA.delete(t),n.unobserve(t)}}(this.node.current,r,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,s&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),r=e?i:n;r&&r(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}let sk=function(t,e){if("undefined"==typeof Proxy)return eQ;let i=new Map,n=(i,n)=>eQ(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(s,r)=>"create"===r?n:(i.has(r)||i.set(r,eQ(r,void 0,t,e)),i.get(r))})}({animation:{Feature:iC},exit:{Feature:iD},inView:{Feature:sM},tap:{Feature:sb},focus:{Feature:sy},hover:{Feature:sf},pan:{Feature:np},drag:{Feature:nd,ProjectionNode:sc,MeasureLayout:ng},layout:{ProjectionNode:sc,MeasureLayout:ng}},(t,e)=>e.isSVG??eb(t)?new el(e):new eS(e,{allowProjection:t!==eT.Fragment}))}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[713],{9023:function(e,r,o){Promise.resolve().then(o.bind(o,7995))},7995:function(e,r,o){"use strict";o.r(r),o.d(r,{default:function(){return i}});var t=o(7437),l=o(2265),a=o(4008),s=o(8028),n=o(9034);function i(){let{activeProviderId:e}=(0,s.p)(),[r,o]=(0,l.useState)(e);return(0,l.useEffect)(()=>{r||o(e)},[e]),(0,t.jsxs)("div",{className:"h-full overflow-auto relative",children:[(0,t.jsxs)("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[(0,t.jsx)(a.K,{width:40,height:40,x:-1,y:-1,className:"opacity-20"}),(0,t.jsx)("div",{className:"absolute inset-0",style:{background:"linear-gradient(to bottom, var(--bg-primary) 0%, transparent 20%, transparent 80%, var(--bg-primary) 100%)"}})]}),(0,t.jsxs)("div",{className:"relative p-6 max-w-4xl",children:[(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("h2",{className:"text-lg font-medium",style:{color:"var(--text-primary)"},children:"Integrations"}),(0,t.jsx)("p",{className:"text-xs mt-0.5",style:{color:"var(--text-tertiary)"},children:"Connect an AI provider to enable test case generation."})]}),(0,t.jsx)("h3",{className:"text-xs font-medium uppercase tracking-wider mb-3",style:{color:"var(--text-tertiary)"},children:"AI Providers"}),(0,t.jsx)("div",{className:"space-y-3",children:n.MA.map(e=>(0,t.jsx)(d,{def:e,expanded:r===e.id,onToggle:()=>o(r=>r===e.id?null:e.id)},e.id))})]})]})}function d(e){let{def:r,expanded:o,onToggle:a}=e,{config:n,activeProviderId:i,updateProvider:d,setActiveProvider:p}=(0,s.p)(),u=n.providers[r.id],m=i===r.id,[v,x]=(0,l.useState)(!1),[h,y]=(0,l.useState)((null==u?void 0:u.apiKey)||""),[g,f]=(0,l.useState)((null==u?void 0:u.baseURL)||r.baseURL||""),[b,k]=(0,l.useState)(!1),[j,N]=(0,l.useState)(null),[C,M]=(0,l.useState)(null);(0,l.useEffect)(()=>{o&&u&&!u.connected&&!v&&(y(u.apiKey),f(u.baseURL||r.baseURL||""))},[o]),(0,l.useEffect)(()=>{(null==u?void 0:u.connected)&&u.apiKey&&!u.apiKey.startsWith("enc:")&&fetch("/api/llm/encrypt",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:u.apiKey})}).then(e=>e.json()).then(e=>{e.encrypted&&d(r.id,{apiKey:e.encrypted})}).catch(()=>{})},[]);let w=async()=>{let e=h.trim();if(e){k(!0),N(null),M(null);try{let o=await fetch("/api/llm/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:r.id,apiKey:e,baseURL:g.trim()||void 0})}),t=await o.json();N(t),t.ok&&M(e)}catch(e){N({ok:!1,error:"Network error"})}finally{k(!1)}}},U=async()=>{let e=C||h.trim();if(!e)return;if(!C){await w();return}let o=e;try{let r=await fetch("/api/llm/encrypt",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:e})}),t=await r.json();t.encrypted&&(o=t.encrypted)}catch(e){}d(r.id,{apiKey:o,baseURL:g.trim()||r.baseURL||"",connected:!0,models:r.popularModels,defaultModel:(null==u?void 0:u.defaultModel)||r.defaultModel||r.popularModels[0]||"",secondaryModel:(null==u?void 0:u.secondaryModel)||""}),x(!1),N(null),M(null)},L=(e,o)=>{d(r.id,{[e]:o})};if(!u)return null;let P=r.color||"#6B7280";return(0,t.jsxs)("div",{className:"rounded-xl border transition-all overflow-hidden",style:{borderColor:m?P:o?"var(--border-hover)":"var(--border)",backgroundColor:"var(--bg-card)",boxShadow:m?"0 0 0 1px ".concat(P,"20"):void 0},children:[(0,t.jsxs)("button",{onClick:a,className:"w-full px-5 py-4 flex items-center gap-3 text-left transition-colors hover:bg-[var(--bg-secondary)]",children:[(0,t.jsx)("div",{className:"w-11 h-11 rounded-lg flex items-center justify-center overflow-hidden flex-shrink-0",style:{backgroundColor:"".concat(P,"10")},children:r.logoUrl?(0,t.jsx)("img",{src:r.logoUrl,alt:r.name,width:24,height:24,className:"opacity-80",style:{filter:"brightness(0.5)"},onError:e=>{e.target.style.display="none"}}):(0,t.jsx)("span",{className:"text-xs font-bold",style:{color:P},children:"API"})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-sm font-semibold",style:{color:"var(--text-primary)"},children:r.name}),m&&u.connected&&(0,t.jsx)("span",{className:"text-[10px] font-medium px-1.5 py-0.5 rounded-full",style:{backgroundColor:"".concat(P,"15"),color:P},children:"Active"}),(0,t.jsx)("span",{className:"text-[10px] font-medium px-1.5 py-0.5 rounded-full",style:{backgroundColor:u.connected?"var(--status-pass-bg)":"var(--bg-secondary)",color:u.connected?"var(--status-pass-text)":"var(--text-tertiary)"},children:u.connected?"Connected":"Not configured"})]}),(0,t.jsx)("p",{className:"text-[11px] mt-0.5 truncate",style:{color:"var(--text-tertiary)"},children:r.description})]}),(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"flex-shrink-0 transition-transform duration-200",style:{transform:o?"rotate(180deg)":"rotate(0deg)"},children:(0,t.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),(0,t.jsx)("div",{style:{maxHeight:o?"600px":"0px",overflow:"hidden",transition:"max-height 250ms ease-out"},children:(0,t.jsxs)("div",{className:"px-5 pb-5 pt-1 space-y-3",children:[v||!u.connected?(0,t.jsxs)("div",{className:"space-y-2",children:[r.requiresBaseURL&&(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-[10px] font-medium uppercase tracking-wider block mb-1",style:{color:"var(--text-tertiary)"},children:"API Base URL"}),(0,t.jsx)("input",{type:"text",value:g,onChange:e=>{f(e.target.value),M(null),N(null)},placeholder:"https://api.example.com/v1",className:"w-full px-3 py-2 text-sm rounded-lg outline-none border transition-colors focus:border-[var(--accent)]",style:{borderColor:"var(--border)",backgroundColor:"var(--bg-primary)",color:"var(--text-primary)"}})]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)("input",{type:"password",value:h,onChange:e=>{y(e.target.value),M(null),N(null)},placeholder:r.keyPlaceholder,className:"flex-1 px-3 py-2 text-sm rounded-lg outline-none border transition-colors focus:border-[var(--accent)]",style:{borderColor:"var(--border)",backgroundColor:"var(--bg-primary)",color:"var(--text-primary)"},onKeyDown:e=>{"Enter"===e.key&&w()}}),(0,t.jsx)("button",{onClick:w,disabled:b||!h.trim(),className:"px-4 py-2 text-xs font-medium rounded-lg border transition-all hover:bg-[var(--bg-secondary)] disabled:opacity-40",style:{borderColor:"var(--border)",color:"var(--text-secondary)"},children:b?(0,t.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("svg",{className:"animate-spin",width:12,height:12,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10",strokeDasharray:"30 70"})}),"Testing"]}):"Test"}),(0,t.jsx)("button",{onClick:U,disabled:!C&&!h.trim(),className:"px-4 py-2 text-xs font-medium rounded-lg transition-all hover:opacity-90 disabled:opacity-40",style:{backgroundColor:P,color:"#fff"},children:"Connect"}),v&&(0,t.jsx)("button",{onClick:()=>{x(!1),y(u.apiKey),f(u.baseURL||r.baseURL||""),M(null),N(null)},className:"px-3 py-2 text-xs font-medium rounded-lg border transition-colors hover:bg-[var(--bg-secondary)]",style:{borderColor:"var(--border)",color:"var(--text-secondary)"},children:"Cancel"})]}),j&&(0,t.jsx)("div",{className:"text-xs px-3 py-2 rounded-lg",style:{backgroundColor:j.ok?"var(--status-pass-bg)":"var(--status-fail-bg)",color:j.ok?"var(--status-pass-text)":"var(--status-fail-text)"},children:j.ok?"Connection verified! Click Connect to save.":"Failed: ".concat(j.error)}),r.keyUrl&&(0,t.jsxs)("p",{className:"text-[10px]",style:{color:"var(--text-tertiary)"},children:["Get your key at"," ",(0,t.jsx)("a",{href:r.keyUrl,target:"_blank",rel:"noopener noreferrer",style:{color:P,textDecoration:"underline"},children:r.keyUrl.replace("https://","").split("/")[0]})]})]}):(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)("button",{onClick:()=>{y(u.apiKey),f(u.baseURL||r.baseURL||""),x(!0)},className:"flex-1 px-3 py-2 text-xs font-medium rounded-lg border transition-all hover:bg-[var(--bg-secondary)]",style:{borderColor:"var(--border)",color:"var(--text-secondary)"},children:"Update API Key"}),(0,t.jsx)("button",{onClick:()=>{d(r.id,{apiKey:"",connected:!1,models:[],defaultModel:"",secondaryModel:""}),y(""),f(r.baseURL||""),x(!1),N(null)},className:"px-3 py-2 text-xs font-medium rounded-lg border transition-colors hover:bg-[var(--status-fail-bg)]",style:{borderColor:"var(--border)",color:"var(--text-tertiary)"},children:"Disconnect"}),!m&&(0,t.jsx)("button",{onClick:()=>p(r.id),className:"px-3 py-2 text-xs font-medium rounded-lg transition-all hover:opacity-90",style:{backgroundColor:P,color:"#fff"},children:"Set Active"})]}),u.connected&&(0,t.jsxs)("div",{className:"pt-3 border-t",style:{borderColor:"var(--border)"},children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-[10px] font-medium uppercase tracking-wider block mb-1.5",style:{color:"var(--text-tertiary)"},children:"Default Model"}),(0,t.jsx)(c,{value:u.defaultModel,models:u.models.length>0?u.models:r.popularModels,onChange:e=>L("defaultModel",e)})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-[10px] font-medium uppercase tracking-wider block mb-1.5",style:{color:"var(--text-tertiary)"},children:"Fallback Model"}),(0,t.jsx)(c,{value:u.secondaryModel,models:u.models.length>0?u.models:r.popularModels,onChange:e=>L("secondaryModel",e),allowEmpty:!0})]})]}),m&&(0,t.jsxs)("div",{className:"mt-2 text-[10px] flex items-center gap-1.5",style:{color:"var(--text-tertiary)"},children:[(0,t.jsx)("div",{className:"w-1.5 h-1.5 rounded-full",style:{backgroundColor:P}}),"Using ",u.defaultModel,u.secondaryModel?" (fallback: ".concat(u.secondaryModel,")"):""]})]})]})})]})}function c(e){let{value:r,models:o,onChange:a,allowEmpty:s}=e,[n,i]=(0,l.useState)(!1),d=o.includes(r);return n||!d&&""!==r?(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsx)("input",{type:"text",value:r,onChange:e=>a(e.target.value),placeholder:"model-id",className:"flex-1 px-2.5 py-1.5 text-xs rounded-lg border outline-none transition-colors focus:border-[var(--accent)]",style:{borderColor:"var(--border)",backgroundColor:"var(--bg-primary)",color:"var(--text-primary)"}}),o.length>0&&(0,t.jsx)("button",{onClick:()=>{i(!1),a(o[0])},className:"px-2 py-1.5 text-[10px] rounded-lg border transition-colors hover:bg-[var(--bg-secondary)]",style:{borderColor:"var(--border)",color:"var(--text-tertiary)"},title:"Switch to preset list",children:(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("polyline",{points:"6 9 12 15 18 9"})})})]}):(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsxs)("select",{value:r,onChange:e=>a(e.target.value),className:"flex-1 px-2.5 py-1.5 text-xs rounded-lg border outline-none transition-colors cursor-pointer",style:{borderColor:"var(--border)",backgroundColor:"var(--bg-primary)",color:"var(--text-primary)"},children:[s&&(0,t.jsx)("option",{value:"",children:"None"}),o.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]}),(0,t.jsx)("button",{onClick:()=>i(!0),className:"px-2 py-1.5 text-[10px] rounded-lg border transition-colors hover:bg-[var(--bg-secondary)]",style:{borderColor:"var(--border)",color:"var(--text-tertiary)"},title:"Enter custom model ID",children:"✏️"})]})}},4008:function(e,r,o){"use strict";o.d(r,{K:function(){return s}});var t=o(7437),l=o(2265),a=o(3448);function s(e){let{width:r=40,height:o=40,x:s=-1,y:n=-1,strokeDasharray:i="0",squares:d,className:c,...p}=e,u=(0,l.useId)();return(0,t.jsxs)("svg",{"aria-hidden":"true",className:(0,a.cn)("pointer-events-none absolute inset-0 h-full w-full fill-gray-400/30 stroke-gray-400/30",c),...p,children:[(0,t.jsx)("defs",{children:(0,t.jsx)("pattern",{id:u,width:r,height:o,patternUnits:"userSpaceOnUse",x:s,y:n,children:(0,t.jsx)("path",{d:"M.5 ".concat(o,"V.5H").concat(r),fill:"none",strokeDasharray:i})})}),(0,t.jsx)("rect",{width:"100%",height:"100%",strokeWidth:0,fill:"url(#".concat(u,")")}),d&&(0,t.jsx)("svg",{x:s,y:n,className:"overflow-visible",children:d.map(e=>{let[l,a]=e;return(0,t.jsx)("rect",{strokeWidth:"0",width:r-1,height:o-1,x:l*r+1,y:a*o+1},"".concat(l,"-").concat(a))})})]})}},8028:function(e,r,o){"use strict";o.d(r,{p:function(){return c}});var t=o(2265),l=o(9034);let a="qa-llm-config",s={apiKey:"",baseURL:"",defaultModel:"",secondaryModel:"",models:[],connected:!1};function n(){let e={};for(let r of l.MA)e[r.id]={...s,baseURL:r.baseURL||""};return{activeProvider:null,providers:e}}function i(){try{let r=localStorage.getItem(a);if(!r)return n();let o=JSON.parse(r);if(o.provider&&o.apiKey&&!o.providers){let e=n();return{...e,activeProvider:null,providers:{...e.providers,google:{...s,apiKey:o.apiKey,connected:!0}}}}let t=n(),i={...t,...o,providers:{...t.providers}};for(let r of l.MA){var e;let t=null===(e=o.providers)||void 0===e?void 0:e[r.id];i.providers[r.id]={...s,baseURL:r.baseURL||"",...t}}return i}catch(e){return n()}}function d(e){try{localStorage.setItem(a,JSON.stringify(e))}catch(e){}}function c(){let[e,r]=(0,t.useState)(n),[o,l]=(0,t.useState)(!1);(0,t.useEffect)(()=>{r(i()),l(!0)},[]);let a=(0,t.useCallback)((e,o)=>{let t=i(),l={...t,providers:{...t.providers,[e]:{...t.providers[e],...o}}};d(l),r(l)},[]),s=(0,t.useCallback)(e=>{let o={...i(),activeProvider:e};d(o),r(o)},[]),c=e.activeProvider?e.providers[e.activeProvider]:null,p=o&&!!c&&c.apiKey.length>0&&c.connected;return{config:e,loaded:o,isConnected:p,activeProvider:c,activeProviderId:e.activeProvider,updateProvider:a,setActiveProvider:s}}},9034:function(e,r,o){"use strict";o.d(r,{MA:function(){return t}});let t=Object.values({openai:{id:"openai",name:"OpenAI",type:"native",description:"GPT models powering ChatGPT. Industry-leading language understanding.",logoUrl:"https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/openai.svg",keyUrl:"https://platform.openai.com/api-keys",keyPlaceholder:"sk-...",color:"#10A37F",sdkProvider:"openai",defaultModel:"gpt-4o-mini",popularModels:["gpt-4o","gpt-4o-mini","gpt-4-turbo","gpt-3.5-turbo"]},google:{id:"google",name:"Google Gemini",type:"native",description:"Google's multimodal AI with strong reasoning capabilities.",logoUrl:"https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/googlegemini.svg",keyUrl:"https://aistudio.google.com/apikey",keyPlaceholder:"AIza...",color:"#4285F4",sdkProvider:"google",defaultModel:"gemini-2.5-flash",popularModels:["gemini-2.5-flash","gemini-2.5-pro","gemini-2.0-flash"]},anthropic:{id:"anthropic",name:"Anthropic",type:"native",description:"Claude models — safe, steerable, and highly capable.",logoUrl:"https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/anthropic.svg",keyUrl:"https://console.anthropic.com/settings/keys",keyPlaceholder:"sk-ant-...",color:"#D97706",sdkProvider:"anthropic",defaultModel:"claude-sonnet-4-20250514",popularModels:["claude-sonnet-4-20250514","claude-haiku-4-20250514","claude-3-5-sonnet-20241022"]},deepseek:{id:"deepseek",name:"DeepSeek",type:"openai-compatible",description:"High-performance open-source models with competitive reasoning.",logoUrl:"https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/deepseek.svg",keyUrl:"https://platform.deepseek.com/api_keys",keyPlaceholder:"sk-...",color:"#4D6BFE",sdkProvider:"openai",baseURL:"https://api.deepseek.com/v1",defaultModel:"deepseek-chat",popularModels:["deepseek-chat","deepseek-reasoner"]},xiaomi:{id:"xiaomi",name:"Xiaomi (MiMo)",type:"openai-compatible",description:"Xiaomi's MiMo models — OpenAI-compatible API.",logoUrl:"https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/xiaomi.svg",keyUrl:"https://platform.xiaomimimo.com/",keyPlaceholder:"tp-...",color:"#FF6900",sdkProvider:"openai",baseURL:"https://token-plan-sgp.xiaomimimo.com/v1",defaultModel:"mimo-v2.5",popularModels:["mimo-v2.5","mimo-v2.5-pro"]},openrouter:{id:"openrouter",name:"OpenRouter",type:"openai-compatible",description:"Unified gateway to 200+ models — Claude, Llama, Mistral, Gemini, and more.",logoUrl:"https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/openrouter.svg",keyUrl:"https://openrouter.ai/keys",keyPlaceholder:"sk-or-...",color:"#6366F1",sdkProvider:"openai",baseURL:"https://openrouter.ai/api/v1",defaultModel:"openrouter/free",popularModels:["openrouter/free","meta-llama/llama-4-maverick:free","google/gemini-2.5-flash:free","deepseek/deepseek-chat-v3-0324:free","mistralai/mistral-small-3.2-24b:free","qwen/qwen3-235b-a22b:free","microsoft/phi-4-reasoning-plus:free"]},custom:{id:"custom",name:"Custom (OpenAI-compatible)",type:"openai-compatible",description:"Any OpenAI-compatible API — Ollama, LM Studio, vLLM, LiteLLM, etc.",logoUrl:"",keyUrl:"",keyPlaceholder:"sk-... or any key",color:"#6B7280",sdkProvider:"openai",defaultModel:"",popularModels:[],requiresBaseURL:!0}})},3448:function(e,r,o){"use strict";o.d(r,{cn:function(){return a}});var t=o(1994),l=o(3335);function a(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return(0,l.m6)((0,t.W)(r))}}},function(e){e.O(0,[137,971,117,744],function(){return e(e.s=9023)}),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[642],{699:function(e,t,r){Promise.resolve().then(r.bind(r,2007))},9376:function(e,t,r){"use strict";var a=r(5475);r.o(a,"useParams")&&r.d(t,{useParams:function(){return a.useParams}}),r.o(a,"usePathname")&&r.d(t,{usePathname:function(){return a.usePathname}}),r.o(a,"useRouter")&&r.d(t,{useRouter:function(){return a.useRouter}})},2007:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return S}});var a=r(7437),s=r(2265),l=r(9376),o=r(2575),n=r(7648),i=r(8734),c=r(6481);let d=["https://cdn.jsdelivr.net/gh/alohe/avatars/png/upstream_11.png","https://cdn.jsdelivr.net/gh/alohe/avatars/png/upstream_12.png","https://cdn.jsdelivr.net/gh/alohe/avatars/png/upstream_13.png","https://cdn.jsdelivr.net/gh/alohe/avatars/png/upstream_14.png","https://cdn.jsdelivr.net/gh/alohe/avatars/png/upstream_15.png","https://cdn.jsdelivr.net/gh/alohe/avatars/png/upstream_16.png","https://cdn.jsdelivr.net/gh/alohe/avatars/png/upstream_17.png","https://cdn.jsdelivr.net/gh/alohe/avatars/png/upstream_18.png","https://cdn.jsdelivr.net/gh/alohe/avatars/png/upstream_19.png","https://cdn.jsdelivr.net/gh/alohe/avatars/png/upstream_20.png","https://cdn.jsdelivr.net/gh/alohe/avatars/png/upstream_21.png","https://cdn.jsdelivr.net/gh/alohe/avatars/png/upstream_22.png"],u=["https://i.pinimg.com/736x/ed/74/06/ed74063ade6d66fce2ca19acbe74babc.jpg","https://i.pinimg.com/736x/8c/6d/56/8c6d563311f0917d45d1f2ce5d7c1a2d.jpg","https://i.pinimg.com/736x/86/b8/be/86b8bea1c772cf5c540e6f01e6acce59.jpg","https://i.pinimg.com/736x/78/d4/b1/78d4b1787a4fd23c2a8d21e4fbbc016f.jpg","https://i.pinimg.com/1200x/87/de/e6/87dee6d33b04f1df28bc85702ee12d4b.jpg","https://i.pinimg.com/1200x/3b/e3/95/3be395c4a94705f95e0603afb04f9d56.jpg","https://media.licdn.com/dms/image/v2/D5603AQHBu4wrzFWoTw/profile-displayphoto-crop_800_800/B56Zq.Sy6LKsAI-/0/1764129191465?e=1782345600&v=beta&t=79y6xLivwcpvwy53sy1TuVopK4FMp6O8uAu7QxlIxDo"],x=["QA Engineer","QA Lead","Developer","Designer","Manager"];function h(e,t){let r=parseInt(e.replace("#",""),16);return"#".concat((Math.min(255,(r>>16)+Math.round((255-(r>>16))*t))<<16|Math.min(255,(r>>8&255)+Math.round((255-(r>>8&255))*t))<<8|Math.min(255,(255&r)+Math.round((255-(255&r))*t))).toString(16).padStart(6,"0"))}function p(e){let{profile:t,initials:r,onSetName:l,onSetBannerColor:o,onSetAvatarUrl:n,onSetRole:i}=e,[p,m]=(0,s.useState)(!1),[v,g]=(0,s.useState)(!1),[f,b]=(0,s.useState)(!1),[j,y]=(0,s.useState)(t.name),[k,w]=(0,s.useState)(t.role||""),C=(0,s.useRef)(null),N=(0,s.useRef)(null),S=(0,s.useRef)(null);(0,s.useEffect)(()=>{let e=e=>{C.current&&!C.current.contains(e.target)&&m(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,s.useEffect)(()=>{v&&N.current&&N.current.focus()},[v]),(0,s.useEffect)(()=>{f&&S.current&&S.current.focus()},[f]);let M=()=>{l(j.trim()),g(!1)},L=()=>{i(k.trim()),b(!1)},E=!!t.avatarUrl;return(0,a.jsxs)("div",{className:"relative",ref:C,children:[(0,a.jsx)("button",{onClick:()=>m(!p),className:"w-9 h-9 rounded-full flex items-center justify-center text-xs font-medium overflow-hidden border-2 transition-all hover:scale-105",style:{borderColor:p?"var(--accent)":"transparent",boxShadow:p?"0 0 0 2px var(--accent), 0 2px 8px rgba(0,0,0,0.1)":"0 1px 3px rgba(0,0,0,0.08)"},children:E?(0,a.jsx)("img",{src:t.avatarUrl,alt:"Avatar",className:"w-full h-full object-cover"}):(0,a.jsx)("span",{className:"w-full h-full flex items-center justify-center",style:{backgroundColor:t.bannerColor,color:"#fff"},children:r})}),p&&(0,a.jsxs)("div",{className:"absolute right-0 top-full mt-2 w-80 border z-50 overflow-hidden",style:{backgroundColor:"var(--bg-card)",borderColor:"var(--border)",borderRadius:"var(--radius-lg)",boxShadow:"var(--shadow-xl)",animation:"fadeIn 150ms ease-out"},children:[(0,a.jsxs)("div",{className:"relative px-5 pt-5 pb-4",style:{background:"linear-gradient(135deg, ".concat(t.bannerColor," 0%, ").concat(h(t.bannerColor,.4)," 50%, ").concat(t.bannerColor," 100%)")},children:[(0,a.jsx)("div",{className:"absolute inset-0 opacity-10",style:{backgroundImage:"radial-gradient(circle at 20% 50%, white 1px, transparent 1px), radial-gradient(circle at 80% 20%, white 1px, transparent 1px)",backgroundSize:"30px 30px"}}),(0,a.jsxs)("div",{className:"relative flex items-end gap-4",children:[(0,a.jsxs)("div",{className:"relative group",children:[(0,a.jsx)("div",{className:"w-16 h-16 rounded-xl overflow-hidden border-3 flex-shrink-0",style:{borderColor:"rgba(255,255,255,0.3)",boxShadow:"0 4px 12px rgba(0,0,0,0.2)"},children:E?(0,a.jsx)("img",{src:t.avatarUrl,alt:"Avatar",className:"w-full h-full object-cover"}):(0,a.jsx)("div",{className:"w-full h-full flex items-center justify-center text-xl font-bold",style:{backgroundColor:t.bannerColor,color:"#fff"},children:r})}),(0,a.jsx)("div",{className:"absolute inset-0 rounded-xl flex items-center justify-center opacity-0 group-hover:opacity-100 cursor-pointer transition-opacity",style:{backgroundColor:"rgba(0,0,0,0.4)"},onClick:e=>{var t;e.stopPropagation(),null===(t=document.getElementById("avatar-gallery"))||void 0===t||t.scrollIntoView({behavior:"smooth"})},children:(0,a.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"white",children:(0,a.jsx)("path",{d:"M14 11V14H2V11H0V14C0 15.1.9 16 2 16H14C15.1 16 16 15.1 16 14V11H14ZM7 9L4.5 6.5L3 8L8 13L13 8L11.5 6.5L9 9V0H7V9Z"})})})]}),(0,a.jsxs)("div",{className:"flex-1 min-w-0 pb-1",children:[v?(0,a.jsx)("input",{ref:N,value:j,onChange:e=>y(e.target.value),onBlur:M,onKeyDown:e=>{"Enter"===e.key&&M(),"Escape"===e.key&&g(!1)},className:"w-full bg-white/20 backdrop-blur-sm outline-none text-white text-sm font-semibold px-2 py-1 rounded placeholder-white/50",placeholder:"Your name..."}):(0,a.jsx)("div",{className:"text-sm font-semibold text-white cursor-pointer hover:opacity-80 truncate",onClick:()=>{y(t.name),g(!0)},children:t.name||"Click to set name"}),(0,a.jsx)("div",{className:"text-[11px] mt-0.5 px-2 py-0.5 rounded-full inline-block cursor-pointer hover:opacity-80",style:{backgroundColor:"rgba(255,255,255,0.15)",color:"rgba(255,255,255,0.9)"},onClick:()=>{w(t.role||""),b(!0)},children:f?(0,a.jsx)("input",{ref:S,value:k,onChange:e=>w(e.target.value),onBlur:L,onKeyDown:e=>{"Enter"===e.key&&L(),"Escape"===e.key&&b(!1)},className:"bg-transparent outline-none text-white text-[11px] w-24 placeholder-white/50",placeholder:"Your role..."}):t.role||"Set role..."})]})]})]}),(0,a.jsxs)("div",{className:"px-4 pt-3 pb-2",children:[(0,a.jsx)("label",{className:"text-[10px] font-semibold uppercase tracking-wider block mb-2",style:{color:"var(--text-tertiary)"},children:"Role"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1.5",children:x.map(e=>(0,a.jsx)("button",{onClick:()=>i(e),className:"px-2 py-1 text-[10px] rounded-md border transition-colors",style:{borderColor:t.role===e?"var(--accent)":"var(--border)",color:t.role===e?"var(--accent)":"var(--text-secondary)",backgroundColor:t.role===e?"var(--accent)10":"transparent",fontWeight:t.role===e?600:400},children:e},e))})]}),(0,a.jsxs)("div",{id:"avatar-gallery",className:"px-4 pt-2 pb-3",children:[(0,a.jsx)("label",{className:"text-[10px] font-semibold uppercase tracking-wider block mb-2",style:{color:"var(--text-tertiary)"},children:"Choose Avatar"}),(0,a.jsx)("div",{className:"grid grid-cols-6 gap-2",children:d.map((e,r)=>(0,a.jsx)("button",{onClick:()=>n(e),className:"w-10 h-10 rounded-lg overflow-hidden border-2 transition-all hover:scale-110 hover:shadow-md",style:{borderColor:t.avatarUrl===e?"var(--accent)":"transparent",boxShadow:t.avatarUrl===e?"0 0 0 2px var(--accent)":"none"},children:(0,a.jsx)("img",{src:e,alt:"Avatar ".concat(r+11),className:"w-full h-full object-cover",loading:"lazy"})},e))}),(0,a.jsx)("div",{className:"grid grid-cols-6 gap-2 mt-2",children:u.map((e,r)=>(0,a.jsx)("button",{onClick:()=>n(e),className:"w-10 h-10 rounded-lg overflow-hidden border-2 transition-all hover:scale-110 hover:shadow-md",style:{borderColor:t.avatarUrl===e?"var(--accent)":"transparent",boxShadow:t.avatarUrl===e?"0 0 0 2px var(--accent)":"none"},children:(0,a.jsx)("img",{src:e,alt:"Avatar ".concat(r+23),className:"w-full h-full object-cover",loading:"lazy"})},e))})]}),(0,a.jsxs)("div",{className:"px-4 pb-4",children:[(0,a.jsx)("label",{className:"text-[10px] font-semibold uppercase tracking-wider block mb-2",style:{color:"var(--text-tertiary)"},children:"Banner Color"}),(0,a.jsx)("div",{className:"grid grid-cols-8 gap-1.5",children:c.zh.map(e=>(0,a.jsx)("button",{onClick:()=>o(e),className:"w-6 h-6 rounded-full transition-transform hover:scale-110 relative overflow-hidden",style:{background:"linear-gradient(135deg, ".concat(function(e,t){let r=parseInt(e.replace("#",""),16);return"#".concat((Math.max(0,(r>>16)-Math.round((r>>16)*.3))<<16|Math.max(0,(r>>8&255)-Math.round((r>>8&255)*.3))<<8|Math.max(0,(255&r)-Math.round((255&r)*.3))).toString(16).padStart(6,"0"))}(e,.3)," 0%, ").concat(e," 50%, ").concat(h(e,.3)," 100%)"),outline:t.bannerColor!==e||t.avatarUrl?"none":"2px solid var(--accent)",outlineOffset:2},children:(0,a.jsx)("div",{className:"absolute inset-0",style:{background:"linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%)",animation:"shimmer 2s ease-in-out infinite"}})},e))})]}),(0,a.jsxs)("div",{className:"px-4 py-2.5 border-t flex items-center justify-between",style:{borderColor:"var(--border)",backgroundColor:"var(--bg-secondary)"},children:[(0,a.jsx)("span",{className:"text-[10px]",style:{color:"var(--text-tertiary)"},children:"Profile data stored locally"}),(0,a.jsx)("button",{onClick:()=>m(!1),className:"text-[10px] font-medium px-2 py-0.5 rounded",style:{color:"var(--accent)"},children:"Done"})]})]})]})}function m(e){let{open:t,onClose:r,profile:l,initials:o,stats:n}=e,[i,c]=(0,s.useState)(!1);if(!t)return null;let d="My Test Lah!:\n".concat(n.projects," Projects | ").concat(n.testCases," Cases | ").concat(n.passRate,"% Pass Rate"),u=async()=>{if(navigator.share)try{await navigator.share({title:"Test Lah! Stats",text:d})}catch(e){}else navigator.clipboard.writeText(d)};return(0,a.jsx)("div",{className:"fixed inset-0 z-[300] flex items-center justify-center",style:{backgroundColor:"rgba(0,0,0,0.3)",animation:"fadeIn 150ms ease-out"},onClick:r,children:(0,a.jsxs)("div",{className:"w-72 mx-4",onClick:e=>e.stopPropagation(),style:{perspective:"1000px"},children:[(0,a.jsxs)("div",{className:"relative w-full",style:{transformStyle:"preserve-3d",transform:i?"rotateY(180deg)":"rotateY(0)",transition:"transform 0.5s ease",height:"380px"},children:[(0,a.jsxs)("div",{className:"absolute inset-0 rounded-xl overflow-hidden border",style:{backfaceVisibility:"hidden",borderColor:"var(--border)",boxShadow:"var(--shadow-lg)"},children:[(0,a.jsx)("div",{className:"absolute inset-0",style:{background:"linear-gradient(160deg, ".concat(function(e,t){let r=parseInt(e.replace("#",""),16);return"#".concat((Math.max(0,(r>>16)-Math.round((r>>16)*.25))<<16|Math.max(0,(r>>8&255)-Math.round((r>>8&255)*.25))<<8|Math.max(0,(255&r)-Math.round((255&r)*t))).toString(16).padStart(6,"0"))}(l.bannerColor,.25)," 0%, ").concat(l.bannerColor," 50%, ").concat(function(e,t){let r=parseInt(e.replace("#",""),16);return"#".concat((Math.min(255,(r>>16)+Math.round((255-(r>>16))*.2))<<16|Math.min(255,(r>>8&255)+Math.round((255-(r>>8&255))*.2))<<8|Math.min(255,(255&r)+Math.round((255-(255&r))*t))).toString(16).padStart(6,"0"))}(l.bannerColor,.2)," 100%)")}}),(0,a.jsxs)("div",{className:"relative h-full flex flex-col items-center justify-center px-4",children:[(0,a.jsx)("div",{className:"w-20 h-20 rounded-xl overflow-hidden border-2 mb-3",style:{borderColor:"rgba(255,255,255,0.3)"},children:l.avatarUrl?(0,a.jsx)("img",{src:l.avatarUrl,alt:"Avatar",className:"w-full h-full object-cover"}):(0,a.jsx)("div",{className:"w-full h-full flex items-center justify-center text-2xl font-bold",style:{backgroundColor:"rgba(0,0,0,0.2)",color:"#fff"},children:o})}),(0,a.jsx)("h3",{className:"text-base font-semibold text-white drop-shadow-sm",children:l.name||"Anonymous Tester"}),(0,a.jsx)("p",{className:"text-xs mt-0.5 text-white/70",children:l.role||"No role set"}),(0,a.jsxs)("div",{className:"flex items-center gap-4 mt-4",children:[(0,a.jsx)(v,{value:n.projects,label:"Projects"}),(0,a.jsx)("div",{className:"w-px h-6 bg-white/20"}),(0,a.jsx)(v,{value:n.testCases,label:"Cases"}),(0,a.jsx)("div",{className:"w-px h-6 bg-white/20"}),(0,a.jsx)(v,{value:"".concat(n.passRate,"%"),label:"Pass"})]}),(0,a.jsx)("button",{onClick:()=>c(!0),className:"mt-5 px-4 py-1.5 text-[11px] font-medium rounded-full transition-colors",style:{backgroundColor:"rgba(255,255,255,0.2)",color:"#fff"},children:"View stats"})]})]}),(0,a.jsx)("div",{className:"absolute inset-0 rounded-xl overflow-hidden border",style:{backfaceVisibility:"hidden",transform:"rotateY(180deg)",borderColor:"var(--border)",backgroundColor:"var(--bg-card)",boxShadow:"var(--shadow-lg)"},children:(0,a.jsxs)("div",{className:"h-full flex flex-col",children:[(0,a.jsxs)("div",{className:"px-4 py-3 border-b flex items-center justify-between",style:{borderColor:"var(--border)"},children:[(0,a.jsx)("span",{className:"text-xs font-semibold",style:{color:"var(--text-primary)"},children:"Statistics"}),(0,a.jsx)("button",{onClick:()=>c(!1),className:"text-[10px] px-2 py-0.5 rounded border transition-colors hover:bg-[var(--bg-secondary)]",style:{color:"var(--text-tertiary)",borderColor:"var(--border)"},children:"Back"})]}),(0,a.jsxs)("div",{className:"flex-1 overflow-auto p-4 space-y-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-1.5",children:[(0,a.jsx)("span",{className:"text-[10px] uppercase tracking-wider",style:{color:"var(--text-tertiary)"},children:"Pass Rate"}),(0,a.jsxs)("span",{className:"text-sm font-semibold",style:{color:n.passRate>=80?"var(--status-pass-text)":n.passRate>=50?"var(--status-skip-text)":"var(--status-fail-text)"},children:[n.passRate,"%"]})]}),(0,a.jsx)("div",{className:"h-1.5 rounded-full overflow-hidden",style:{backgroundColor:"var(--bg-secondary)"},children:(0,a.jsx)("div",{className:"h-full rounded-full",style:{width:"".concat(n.passRate,"%"),backgroundColor:n.passRate>=80?"var(--status-pass-text)":n.passRate>=50?"var(--status-skip-text)":"var(--status-fail-text)"}})})]}),(0,a.jsxs)("div",{className:"grid grid-cols-4 gap-1.5",children:[(0,a.jsx)(g,{label:"Pass",value:n.pass,color:"var(--status-pass-text)"}),(0,a.jsx)(g,{label:"Fail",value:n.fail,color:"var(--status-fail-text)"}),(0,a.jsx)(g,{label:"Skip",value:n.skip,color:"var(--status-skip-text)"}),(0,a.jsx)(g,{label:"New",value:n.untested})]}),(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)(f,{label:"Test Cases",value:n.testCases}),(0,a.jsx)(f,{label:"Flow Nodes",value:n.nodes}),(0,a.jsx)(f,{label:"Edges",value:n.edges}),(0,a.jsx)(f,{label:"Projects",value:n.projects})]}),(0,a.jsxs)("button",{onClick:u,className:"w-full px-3 py-2 text-[11px] font-medium rounded-lg border transition-colors hover:bg-[var(--bg-secondary)] flex items-center justify-center gap-1.5",style:{borderColor:"var(--border)",color:"var(--text-secondary)"},children:[(0,a.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,a.jsx)("path",{d:"M4 12v8a2 2 0 002 2h12a2 2 0 002-2v-8"}),(0,a.jsx)("polyline",{points:"16 6 12 2 8 6"}),(0,a.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"15"})]}),"Share"]})]})]})})]}),(0,a.jsx)("button",{onClick:r,className:"w-full mt-2 px-3 py-2 text-[11px] font-medium rounded-lg border transition-colors hover:bg-[var(--bg-secondary)]",style:{borderColor:"var(--border)",color:"var(--text-secondary)",backgroundColor:"var(--bg-card)"},children:"Close"})]})})}function v(e){let{value:t,label:r}=e;return(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("div",{className:"text-sm font-semibold text-white",children:t}),(0,a.jsx)("div",{className:"text-[9px] uppercase tracking-wider text-white/60",children:r})]})}function g(e){let{label:t,value:r,color:s}=e;return(0,a.jsxs)("div",{className:"py-2 rounded-lg text-center",style:{backgroundColor:"var(--bg-secondary)"},children:[(0,a.jsx)("div",{className:"text-sm font-medium",style:{color:null!=s?s:"var(--text-secondary)"},children:r}),(0,a.jsx)("div",{className:"text-[8px] uppercase tracking-wider",style:{color:"var(--text-tertiary)"},children:t})]})}function f(e){let{label:t,value:r}=e;return(0,a.jsxs)("div",{className:"flex items-center justify-between px-3 py-2 rounded-lg",style:{backgroundColor:"var(--bg-secondary)"},children:[(0,a.jsx)("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:t}),(0,a.jsx)("span",{className:"text-xs font-medium",style:{color:"var(--text-primary)"},children:r})]})}var b=r(6586);function j(){let{projects:e,activeProject:t,activeProjectId:r,profile:c,profileInitials:d,setProfileName:u,setProfileBannerColor:x,setProfileAvatarUrl:h,setProfileRole:v}=(0,o.Q)(),{logout:g}=(0,i.a)(),f=(0,l.useRouter)(),j=(0,l.usePathname)(),{startProgress:k,completeProgress:w}=(0,b.SE)(),[C,N]=(0,s.useState)(!1),[S,M]=(0,s.useState)(!1),L=Object.values(e),E=(0,s.useMemo)(()=>{let e=L.flatMap(e=>Object.values(e.testCases).flat()),t=e.length,r=e.filter(e=>"pass"===e.status).length,a=e.filter(e=>"fail"===e.status).length,s=e.filter(e=>"skip"===e.status).length,l=e.filter(e=>"untested"===e.status).length,o=L.reduce((e,t)=>e+t.flows.length,0),n=L.reduce((e,t)=>{var r;return e+(null!==(r=t.edges)&&void 0!==r?r:[]).length},0),i=t-s;return{projects:L.length,testCases:t,passRate:i>0?Math.round(r/i*100):0,nodes:o,edges:n,pass:r,fail:a,skip:s,untested:l}},[L]),P=j.startsWith("/integrations")?"integrations":"projects";return(0,a.jsxs)("header",{className:"flex flex-col border-b flex-shrink-0 relative",style:{backgroundColor:"var(--bg-card)",borderColor:"var(--border)"},children:[(0,a.jsx)("div",{className:"absolute inset-0 overflow-hidden flex items-center justify-center pointer-events-none group/duck",children:(0,a.jsx)("img",{src:"https://static.vecteezy.com/system/resources/thumbnails/067/162/149/small/cute-duck-meme-sticker-transparent-cute-illustration-free-png.png",alt:"",className:"h-[85%] object-contain select-none transition-all duration-300 group-hover/duck:scale-110 group-hover/duck:opacity-[0.15] cursor-pointer",style:{opacity:.09,pointerEvents:"auto"},onClick:()=>f.push("/projects"),title:"Quack! \uD83E\uDD86"})}),(0,a.jsxs)("div",{className:"relative z-10 flex items-center justify-between px-6 py-2.5",children:[(0,a.jsx)("div",{className:"flex items-center gap-3",children:(0,a.jsxs)(n.default,{href:"/projects",className:"flex items-center gap-2",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-md overflow-hidden bg-white flex-shrink-0",style:{boxShadow:"0 1px 4px rgba(0,0,0,0.08)"},children:(0,a.jsx)("img",{src:"https://static.vecteezy.com/system/resources/thumbnails/067/162/149/small/cute-duck-meme-sticker-transparent-cute-illustration-free-png.png",alt:"Logo",width:32,height:32,className:"w-full h-full object-contain"})}),(0,a.jsx)("span",{className:"shimmer-text text-sm font-bold tracking-wide select-none",style:{background:"linear-gradient(90deg, var(--text-primary) 0%, var(--text-primary) 40%, #FFD54F 50%, var(--text-primary) 60%, var(--text-primary) 100%)",backgroundSize:"200% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",animation:"shimmerText 3s ease-in-out infinite"},children:"Test Lah!"})]})}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("button",{onClick:()=>N(!0),className:"hidden md:block px-3 py-1.5 text-[11px] font-medium rounded-md border transition-colors hover:bg-[var(--bg-secondary)]",style:{borderColor:"var(--border)",color:"var(--text-secondary)"},children:"My Card"}),(0,a.jsx)("div",{className:"hidden md:block w-px h-5 mx-0.5",style:{backgroundColor:"var(--border)"}}),(0,a.jsx)("div",{className:"relative z-[60]",children:(0,a.jsx)(p,{profile:c,initials:d,onSetName:u,onSetBannerColor:x,onSetAvatarUrl:h,onSetRole:v})}),(0,a.jsx)("button",{onClick:()=>{M(!0)},className:"w-8 h-8 flex items-center justify-center text-xs rounded-md border transition-colors hover:bg-[var(--bg-secondary)] hover:border-[var(--status-fail-text)]",style:{borderColor:"var(--border)",color:"var(--text-tertiary)"},title:"Logout",children:(0,a.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:(0,a.jsx)("path",{d:"M5 2H3.5A1.5 1.5 0 002 3.5v7A1.5 1.5 0 003.5 12H5M9 10l3-3-3-3M6 7h6",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]}),(0,a.jsxs)("div",{className:"relative z-10 flex items-center gap-1 px-6 pb-1.5",children:[(0,a.jsx)(y,{label:"All Projects",href:"/projects",icon:(0,a.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",children:[(0,a.jsx)("rect",{x:"1",y:"1",width:"5",height:"5",rx:"1",stroke:"currentColor",strokeWidth:"1.2",fill:"none"}),(0,a.jsx)("rect",{x:"8",y:"1",width:"5",height:"5",rx:"1",stroke:"currentColor",strokeWidth:"1.2",fill:"none"}),(0,a.jsx)("rect",{x:"1",y:"8",width:"5",height:"5",rx:"1",stroke:"currentColor",strokeWidth:"1.2",fill:"none"}),(0,a.jsx)("rect",{x:"8",y:"8",width:"5",height:"5",rx:"1",stroke:"currentColor",strokeWidth:"1.2",fill:"none"})]}),active:"projects"===P}),(0,a.jsx)(y,{label:"Integrations",href:"/integrations",icon:(0,a.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",children:[(0,a.jsx)("circle",{cx:"5",cy:"5",r:"2.5",stroke:"currentColor",strokeWidth:"1.2",fill:"none"}),(0,a.jsx)("circle",{cx:"9",cy:"9",r:"2.5",stroke:"currentColor",strokeWidth:"1.2",fill:"none"}),(0,a.jsx)("path",{d:"M7.5 5.5L6.5 8.5",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"})]}),active:"integrations"===P})]}),(0,a.jsx)(m,{open:C,onClose:()=>N(!1),profile:c,initials:d,stats:E}),S&&(0,a.jsx)("div",{className:"fixed inset-0 z-[400] flex items-center justify-center",style:{backgroundColor:"rgba(0,0,0,0.3)",animation:"fadeIn 150ms ease-out"},onClick:()=>M(!1),children:(0,a.jsxs)("div",{className:"w-full max-w-sm mx-4 rounded-xl border overflow-hidden",style:{backgroundColor:"var(--bg-card)",borderColor:"var(--border)",boxShadow:"var(--shadow-lg)",animation:"fadeInUp 200ms ease-out"},onClick:e=>e.stopPropagation(),children:[(0,a.jsxs)("div",{className:"px-6 pt-6 pb-4 text-center",children:[(0,a.jsx)("div",{className:"w-14 h-14 mx-auto mb-4 rounded-full flex items-center justify-center",style:{backgroundColor:"var(--status-skip-bg)"},children:(0,a.jsxs)("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"var(--status-skip-text)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,a.jsx)("path",{d:"M9 21H5a2 2 0 01-2-2V5a2 2 0 012-2h4"}),(0,a.jsx)("polyline",{points:"16 17 21 12 16 7"}),(0,a.jsx)("line",{x1:"21",y1:"12",x2:"9",y2:"12"})]})}),(0,a.jsx)("h3",{className:"text-base font-semibold mb-2",style:{color:"var(--text-primary)"},children:"Mau Keluar? Sedekahnya mana??"}),(0,a.jsx)("p",{className:"text-xs leading-relaxed",style:{color:"var(--text-tertiary)"},children:"Sebelum keluar, mungkin bisa traktir developer secangkir kopi? ☕"})]}),(0,a.jsxs)("div",{className:"px-6 pb-5 flex gap-2",children:[(0,a.jsx)("button",{onClick:()=>M(!1),className:"flex-1 px-3 py-2.5 text-xs font-medium rounded-lg border transition-colors hover:bg-[var(--bg-secondary)]",style:{borderColor:"var(--border)",color:"var(--text-secondary)"},children:"Batal"}),(0,a.jsx)("button",{onClick:()=>{M(!1),k("Logging out..."),g(),setTimeout(()=>{w("Logged out!"),f.push("/login")},500)},className:"flex-1 px-3 py-2.5 text-xs font-medium rounded-lg transition-opacity hover:opacity-80",style:{backgroundColor:"var(--status-fail-text)",color:"#fff"},children:"Keluar"})]})]})})]})}function y(e){let{label:t,icon:r,active:s,href:l,badge:o}=e;return(0,a.jsxs)(n.default,{href:l,className:"flex items-center gap-2 px-3 py-2 text-xs font-medium rounded-t-md transition-colors relative",style:{color:s?"var(--accent)":"var(--text-tertiary)",backgroundColor:s?"var(--bg-secondary)":"transparent"},children:[r,t,o&&(0,a.jsx)("span",{className:"ml-1 px-1.5 py-0.5 text-[9px] font-semibold rounded-full leading-none",style:{backgroundColor:s?"var(--accent)":"var(--bg-secondary)",color:s?"#fff":"var(--text-tertiary)"},children:o}),s&&(0,a.jsx)("div",{className:"absolute bottom-0 left-2 right-2 h-0.5 rounded-t-full",style:{backgroundColor:"var(--accent)"}})]})}var k=r(7641);function w(e){let{children:t}=e,r=(0,l.useRouter)(),{isLoggedIn:o,loaded:n}=(0,i.a)();return((0,s.useEffect)(()=>{n&&!o&&r.replace("/login")},[n,o,r]),n)?o?(0,a.jsx)(a.Fragment,{children:t}):null:(0,a.jsx)("div",{className:"h-screen flex items-center justify-center",style:{backgroundColor:"var(--bg-primary)"},children:(0,a.jsx)("div",{className:"text-sm",style:{color:"var(--text-tertiary)"},children:"Loading..."})})}function C(){let{undo:e,redo:t,canUndo:r,canRedo:a}=(0,o.Q)();return(0,s.useEffect)(()=>{let s=s=>{(s.ctrlKey||s.metaKey)&&"z"===s.key&&!s.shiftKey&&(s.preventDefault(),r&&e()),(s.ctrlKey||s.metaKey)&&("Z"===s.key||"z"===s.key&&s.shiftKey)&&(s.preventDefault(),a&&t()),(s.ctrlKey||s.metaKey)&&"y"===s.key&&(s.preventDefault(),a&&t())};return window.addEventListener("keydown",s),()=>window.removeEventListener("keydown",s)},[e,t,r,a]),null}function N(e){let{children:t}=e,{dialog:r}=(0,o.Q)();return(0,a.jsxs)(a.Fragment,{children:[t,(0,a.jsx)(k.v,{dialog:r})]})}function S(e){let{children:t}=e;return(0,a.jsx)(w,{children:(0,a.jsx)(o._,{children:(0,a.jsx)(N,{children:(0,a.jsxs)("div",{className:"h-screen flex flex-col",style:{backgroundColor:"var(--bg-primary)"},children:[(0,a.jsx)(C,{}),(0,a.jsx)(j,{}),(0,a.jsx)("div",{className:"flex-1 min-h-0",children:t})]})})})})}},6586:function(e,t,r){"use strict";r.d(t,{SE:function(){return o},wH:function(){return n}});var a=r(7437),s=r(2265);let l=(0,s.createContext)(null);function o(){let e=(0,s.useContext)(l);if(!e)throw Error("useProgress must be used within ProgressProvider");return e}function n(e){let{children:t}=e,[r,o]=(0,s.useState)(0),[n,i]=(0,s.useState)(""),[c,d]=(0,s.useState)(!1),u=(0,s.useRef)(null),x=(0,s.useRef)(null),h=(0,s.useCallback)(()=>{u.current&&(clearInterval(u.current),u.current=null),x.current&&(clearTimeout(x.current),x.current=null)},[]),p=(0,s.useCallback)(()=>{d(!1),o(0),i("")},[]),m=(0,s.useCallback)(e=>{h(),o(0),i(e||""),d(!0),u.current=setInterval(()=>{o(e=>e>=90?(u.current&&clearInterval(u.current),u.current=null,90):e+15*Math.random())},300),x.current=setTimeout(()=>{p()},8e3)},[h,p]),v=(0,s.useCallback)((e,t)=>{o(Math.min(95,e)),t&&i(t)},[]),g=(0,s.useCallback)(e=>{h(),o(100),e&&i(e),setTimeout(()=>{p()},500)},[h,p]),f=(0,s.useCallback)(()=>{h(),p()},[h,p]);return(0,s.useEffect)(()=>()=>h(),[h]),(0,a.jsxs)(l.Provider,{value:{startProgress:m,updateProgress:v,completeProgress:g,cancelProgress:f,isProgressing:c},children:[t,(0,a.jsxs)("div",{className:"fixed bottom-0 left-0 right-0 z-[600] transition-all duration-300 ease-out",style:{opacity:c?1:0,transform:c?"translateY(0)":"translateY(100%)",pointerEvents:c?"auto":"none"},children:[(0,a.jsx)("div",{className:"h-1 w-full",style:{backgroundColor:"var(--bg-secondary)"},children:(0,a.jsx)("div",{className:"h-full transition-all duration-200 ease-out",style:{width:"".concat(r,"%"),backgroundColor:r>=100?"var(--status-pass-text)":"var(--accent)",boxShadow:r>=100?"0 0 10px var(--status-pass-text)":"none"}})}),n&&(0,a.jsxs)("div",{className:"flex items-center justify-center py-2 px-4 text-xs font-medium cursor-pointer",onClick:f,style:{backgroundColor:"var(--bg-card)",color:r>=100?"var(--status-pass-text)":"var(--text-secondary)",borderTop:"1px solid var(--border)"},children:[r>=100&&(0,a.jsx)("svg",{className:"mr-2",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,a.jsx)("path",{d:"M2 6l3 3 5-5",stroke:"var(--status-pass-text)",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),n]})]})]})}},8734:function(e,t,r){"use strict";r.d(t,{a:function(){return o}});var a=r(2265);let s="qa-auth";function l(e){try{sessionStorage.setItem(s,JSON.stringify(e))}catch(e){}}function o(){let[e,t]=(0,a.useState)({name:"",isLoggedIn:!1}),[r,o]=(0,a.useState)(!1);(0,a.useEffect)(()=>{t(function(){try{let e=sessionStorage.getItem(s);if(!e)return{name:"",isLoggedIn:!1};return JSON.parse(e)}catch(e){return{name:"",isLoggedIn:!1}}}()),o(!0)},[]);let n=(0,a.useCallback)(e=>{let r={name:e,isLoggedIn:!0};l(r),t(r)},[]),i=(0,a.useCallback)(()=>{let e={name:"",isLoggedIn:!1};l(e),t(e)},[]);return{...e,loaded:r,login:n,logout:i}}}},function(e){e.O(0,[648,575,971,117,744],function(){return e(e.s=699)}),_N_E=e.O()}]);