@alook/app 0.0.106 → 0.0.107

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 (100) hide show
  1. package/bundled/web/.open-next/.build/durable-objects/queue.js +5 -5
  2. package/bundled/web/.open-next/assets/BUILD_ID +1 -1
  3. package/bundled/web/.open-next/assets/_next/static/chunks/05rvi4uh8778q.js +3 -0
  4. package/bundled/web/.open-next/assets/_next/static/chunks/07m1ihu8g4f_s.js +3 -0
  5. package/bundled/web/.open-next/assets/_next/static/chunks/09fgwh4kts~24.js +1 -0
  6. package/bundled/web/.open-next/assets/_next/static/chunks/0eih9s5qcj60s.js +62 -0
  7. package/bundled/web/.open-next/assets/_next/static/chunks/0fkuoe3g9qc_4.js +2 -0
  8. package/bundled/web/.open-next/assets/_next/static/chunks/{0o0ab6frmb7~d.js → 0m-e05qz5c6a..js} +1 -1
  9. package/bundled/web/.open-next/assets/_next/static/chunks/0qyg8fp44pjef.css +1 -0
  10. package/bundled/web/.open-next/assets/_next/static/chunks/{0k3dma8sj5i0j.js → 0t904i3tiot_h.js} +1 -1
  11. package/bundled/web/.open-next/assets/_next/static/chunks/0uu2lp4s8i4ks.js +3 -0
  12. package/bundled/web/.open-next/assets/_next/static/chunks/0w_e8x0oydirx.js +1 -0
  13. package/bundled/web/.open-next/assets/_next/static/chunks/{0vs4t3bu-w1y9.js → 15e32jzd64j5z.js} +1 -1
  14. package/bundled/web/.open-next/assets/_next/static/chunks/18058zalgswdp.js +63 -0
  15. package/bundled/web/.open-next/assets/_next/static/chunks/18b_fy7re_rp..js +1 -0
  16. package/bundled/web/.open-next/cache/{5SrdtgFBeHT0yUZnVlpIz → _wF0lP4hezd6WDjEY4ues}/_global-error.cache +1 -1
  17. package/bundled/web/.open-next/cache/{5SrdtgFBeHT0yUZnVlpIz → _wF0lP4hezd6WDjEY4ues}/_not-found.cache +1 -1
  18. package/bundled/web/.open-next/cache/{5SrdtgFBeHT0yUZnVlpIz → _wF0lP4hezd6WDjEY4ues}/device.cache +1 -1
  19. package/bundled/web/.open-next/cache/{5SrdtgFBeHT0yUZnVlpIz → _wF0lP4hezd6WDjEY4ues}/privacy.cache +1 -1
  20. package/bundled/web/.open-next/cache/{5SrdtgFBeHT0yUZnVlpIz → _wF0lP4hezd6WDjEY4ues}/sitemap.xml.cache +1 -1
  21. package/bundled/web/.open-next/cloudflare/cache-assets-manifest.sql +1 -1
  22. package/bundled/web/.open-next/cloudflare/init.js +1 -1
  23. package/bundled/web/.open-next/dynamodb-provider/dynamodb-cache.json +1 -1
  24. package/bundled/web/.open-next/middleware/handler.mjs +3 -3
  25. package/bundled/web/.open-next/server-functions/default/src/web/.next/BUILD_ID +1 -1
  26. package/bundled/web/.open-next/server-functions/default/src/web/.next/build-manifest.json +3 -3
  27. package/bundled/web/.open-next/server-functions/default/src/web/.next/prerender-manifest.json +3 -3
  28. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/invite/[token]/page_client-reference-manifest.js +1 -1
  29. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/studio/new/page_client-reference-manifest.js +1 -1
  30. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/activity/page_client-reference-manifest.js +1 -1
  31. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/chat/[convId]/page_client-reference-manifest.js +1 -1
  32. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/chat/page_client-reference-manifest.js +1 -1
  33. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/email/page_client-reference-manifest.js +1 -1
  34. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/files/page_client-reference-manifest.js +1 -1
  35. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/meetings/page_client-reference-manifest.js +1 -1
  36. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/page_client-reference-manifest.js +1 -1
  37. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/new/page_client-reference-manifest.js +1 -1
  38. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/page_client-reference-manifest.js +1 -1
  39. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/calendar/page_client-reference-manifest.js +1 -1
  40. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/flags/page_client-reference-manifest.js +1 -1
  41. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/help/email-setup/page_client-reference-manifest.js +1 -1
  42. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/home/page_client-reference-manifest.js +1 -1
  43. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/issues/page_client-reference-manifest.js +1 -1
  44. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/runtimes/page_client-reference-manifest.js +1 -1
  45. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/settings/page_client-reference-manifest.js +1 -1
  46. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/threads/[traceId]/page_client-reference-manifest.js +1 -1
  47. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/threads/page_client-reference-manifest.js +1 -1
  48. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/unread/page_client-reference-manifest.js +1 -1
  49. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/workspaces/page_client-reference-manifest.js +1 -1
  50. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(auth)/sign-in/page_client-reference-manifest.js +1 -1
  51. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  52. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/device/page_client-reference-manifest.js +1 -1
  53. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/page/react-loadable-manifest.json +1 -1
  54. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/page_client-reference-manifest.js +1 -1
  55. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/privacy/page_client-reference-manifest.js +1 -1
  56. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/templates/[id]/page_client-reference-manifest.js +1 -1
  57. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/templates/page_client-reference-manifest.js +1 -1
  58. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[turbopack]_runtime.js +10 -8
  59. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__0tlzps3._.js +3 -0
  60. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__11ik~gq._.js +3 -0
  61. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[turbopack]_runtime.js +10 -8
  62. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_0e217r_._.js → _03pr.j2._.js} +1 -1
  63. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_06glull._.js +1 -1
  64. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_08n-_76._.js +3 -0
  65. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0oqgv67._.js +3 -0
  66. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_0oc-b49._.js → _109tnuh._.js} +1 -1
  67. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_10lli35._.js +3 -0
  68. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_10lo-_p._.js +4 -0
  69. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/{_0ckz8_m._.js → _12gr6-r._.js} +1 -1
  70. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_13kzmvp._.js +65 -0
  71. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_0~23g-y._.js +2 -2
  72. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_components_home_home-page_tsx_0to84tv._.js +1 -1
  73. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_lib_api_ts_0uf2r1p._.js +1 -1
  74. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-build-manifest.js +3 -3
  75. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-manifest.json +5 -5
  76. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/server-reference-manifest.js +1 -1
  77. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/server-reference-manifest.json +1 -1
  78. package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs +28 -30
  79. package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs.meta.json +203 -167
  80. package/bundled/web/.open-next/server-functions/default/src/web/index.mjs +3 -3
  81. package/package.json +1 -1
  82. package/bundled/web/.open-next/assets/_next/static/chunks/0-3ge74bq9o~o.js +0 -63
  83. package/bundled/web/.open-next/assets/_next/static/chunks/0-d-~6jj6tl.7.js +0 -1
  84. package/bundled/web/.open-next/assets/_next/static/chunks/0dclkn758qw~1.js +0 -3
  85. package/bundled/web/.open-next/assets/_next/static/chunks/0dtbjaf_8-k8l.js +0 -1
  86. package/bundled/web/.open-next/assets/_next/static/chunks/0j-w8_baf9hg~.js +0 -62
  87. package/bundled/web/.open-next/assets/_next/static/chunks/0l97yl6lhh-0g.js +0 -1
  88. package/bundled/web/.open-next/assets/_next/static/chunks/0uxi_v1~hbn~j.js +0 -2
  89. package/bundled/web/.open-next/assets/_next/static/chunks/0vzkhcgq9dm.f.css +0 -1
  90. package/bundled/web/.open-next/assets/_next/static/chunks/10n9vos8y0ehx.js +0 -3
  91. package/bundled/web/.open-next/assets/_next/static/chunks/10o4oebv5u2k1.js +0 -3
  92. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__0.zvpt1._.js +0 -3
  93. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__0amr7o3._.js +0 -3
  94. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0bz818c._.js +0 -65
  95. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0zbzypo._.js +0 -3
  96. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_components_ui_markdown-editor_tsx_0nc~m8l._.js +0 -4
  97. /package/bundled/web/.open-next/assets/_next/static/{5SrdtgFBeHT0yUZnVlpIz → _wF0lP4hezd6WDjEY4ues}/_buildManifest.js +0 -0
  98. /package/bundled/web/.open-next/assets/_next/static/{5SrdtgFBeHT0yUZnVlpIz → _wF0lP4hezd6WDjEY4ues}/_clientMiddlewareManifest.js +0 -0
  99. /package/bundled/web/.open-next/assets/_next/static/{5SrdtgFBeHT0yUZnVlpIz → _wF0lP4hezd6WDjEY4ues}/_ssgManifest.js +0 -0
  100. /package/bundled/web/.open-next/cache/{5SrdtgFBeHT0yUZnVlpIz → _wF0lP4hezd6WDjEY4ues}/robots.txt.cache +0 -0
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,371836,e=>{"use strict";var t=e.i(368075),r=e.i(298699),n=e.i(422940),a=e.i(732919),s=e.i(455012),i,o,l,c,d,u,p,x,m,f,h,g,v,y=function(){return i||"u">typeof window&&(i=window.gsap)&&i.registerPlugin&&i},b=1,j=[],k=[],w=[],N=Date.now,C=function(e,t){return t},S=function(){var e=m.core,t=e.bridge||{},r=e._scrollers,n=e._proxies;r.push.apply(r,k),n.push.apply(n,w),k=r,w=n,C=function(e,r){return t[e](r)}},A=function(e,t){return~w.indexOf(e)&&w[w.indexOf(e)+1][t]},M=function(e){return!!~f.indexOf(e)},T=function(e,t,r,n,a){return e.addEventListener(t,r,{passive:!1!==n,capture:!!a})},E=function(e,t,r,n){return e.removeEventListener(t,r,!!n)},_="scrollLeft",P="scrollTop",R=function(){return h&&h.isPressed||k.cache++},F=function(e,t){var r=function r(n){if(n||0===n){b&&(l.history.scrollRestoration="manual");var a=h&&h.isPressed;e(n=r.v=Math.round(n)||(h&&h.iOS?1:0)),r.cacheID=k.cache,a&&C("ss",n)}else(t||k.cache!==r.cacheID||C("ref"))&&(r.cacheID=k.cache,r.v=e());return r.v+r.offset};return r.offset=0,e&&r},z={s:_,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:F(function(e){return arguments.length?l.scrollTo(e,O.sc()):l.pageXOffset||c[_]||d[_]||u[_]||0})},O={s:P,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:z,sc:F(function(e){return arguments.length?l.scrollTo(z.sc(),e):l.pageYOffset||c[P]||d[P]||u[P]||0})},I=function(e,t){return(t&&t._ctx&&t._ctx.selector||i.utils.toArray)(e)[0]||("string"==typeof e&&!1!==i.config().nullTargetWarn?console.warn("Element not found:",e):null)},D=function(e,t){for(var r=t.length;r--;)if(t[r]===e||t[r].contains(e))return!0;return!1},L=function(e,t){var r=t.s,n=t.sc;M(e)&&(e=c.scrollingElement||d);var a=k.indexOf(e),s=n===O.sc?1:2;~a||(a=k.push(e)-1),k[a+s]||T(e,"scroll",R);var o=k[a+s],l=o||(k[a+s]=F(A(e,r),!0)||(M(e)?n:F(function(t){return arguments.length?e[r]=t:e[r]})));return l.target=e,o||(l.smooth="smooth"===i.getProperty(e,"scrollBehavior")),l},Y=function(e,t,r){var n=e,a=e,s=N(),i=s,o=t||50,l=Math.max(500,3*o),c=function(e,t){var l=N();t||l-s>o?(a=n,n=e,i=s,s=l):r?n+=e:n=a+(e-a)/(l-i)*(s-i)};return{update:c,reset:function(){a=n=r?0:n,i=s=0},getVelocity:function(e){var t=i,o=a,d=N();return(e||0===e)&&e!==n&&c(e),s===i||d-i>l?0:(n+(r?o:-o))/((r?d:s)-t)*1e3}}},B=function(e,t){return t&&!e._gsapAllow&&!1!==e.cancelable&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},H=function(e){var t=Math.max.apply(Math,e),r=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(r)?t:r},W=function(){(m=i.core.globals().ScrollTrigger)&&m.core&&S()},X=function(e){return i=e||y(),!o&&i&&"u">typeof document&&document.body&&(l=window,d=(c=document).documentElement,u=c.body,f=[l,c,d,u],i.utils.clamp,v=i.core.context||function(){},x="onpointerenter"in u?"pointer":"mouse",p=V.isTouch=l.matchMedia&&l.matchMedia("(hover: none), (pointer: coarse)").matches?1:2*("ontouchstart"in l||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),g=V.eventTypes=("ontouchstart"in d?"touchstart,touchmove,touchcancel,touchend":!("onpointerdown"in d)?"mousedown,mousemove,mouseup,mouseup":"pointerdown,pointermove,pointercancel,pointerup").split(","),setTimeout(function(){return b=0},500),o=1),m||W(),o};z.op=O,k.cache=0;var V=function(){var e;function t(e){this.init(e)}return t.prototype.init=function(e){o||X(i)||console.warn("Please gsap.registerPlugin(Observer)"),m||W();var t=e.tolerance,r=e.dragMinimum,n=e.type,a=e.target,s=e.lineHeight,f=e.debounce,y=e.preventDefault,b=e.onStop,k=e.onStopDelay,w=e.ignore,C=e.wheelSpeed,S=e.event,A=e.onDragStart,_=e.onDragEnd,P=e.onDrag,F=e.onPress,V=e.onRelease,G=e.onRight,U=e.onLeft,q=e.onUp,$=e.onDown,K=e.onChangeX,Z=e.onChangeY,J=e.onChange,Q=e.onToggleX,ee=e.onToggleY,et=e.onHover,er=e.onHoverEnd,en=e.onMove,ea=e.ignoreCheck,es=e.isNormalizer,ei=e.onGestureStart,eo=e.onGestureEnd,el=e.onWheel,ec=e.onEnable,ed=e.onDisable,eu=e.onClick,ep=e.scrollSpeed,ex=e.capture,em=e.allowClicks,ef=e.lockAxis,eh=e.onLockAxis;this.target=a=I(a)||d,this.vars=e,w&&(w=i.utils.toArray(w)),t=t||1e-9,r=r||0,C=C||1,ep=ep||1,n=n||"wheel,touch,pointer",f=!1!==f,s||(s=parseFloat(l.getComputedStyle(u).lineHeight)||22);var eg,ev,ey,eb,ej,ek,ew,eN=this,eC=0,eS=0,eA=e.passive||!y&&!1!==e.passive,eM=L(a,z),eT=L(a,O),eE=eM(),e_=eT(),eP=~n.indexOf("touch")&&!~n.indexOf("pointer")&&"pointerdown"===g[0],eR=M(a),eF=a.ownerDocument||c,ez=[0,0,0],eO=[0,0,0],eI=0,eD=function(){return eI=N()},eL=function(e,t){return(eN.event=e)&&w&&D(e.target,w)||t&&eP&&"touch"!==e.pointerType||ea&&ea(e,t)},eY=function(){var e=eN.deltaX=H(ez),r=eN.deltaY=H(eO),n=Math.abs(e)>=t,a=Math.abs(r)>=t;J&&(n||a)&&J(eN,e,r,ez,eO),n&&(G&&eN.deltaX>0&&G(eN),U&&eN.deltaX<0&&U(eN),K&&K(eN),Q&&eN.deltaX<0!=eC<0&&Q(eN),eC=eN.deltaX,ez[0]=ez[1]=ez[2]=0),a&&($&&eN.deltaY>0&&$(eN),q&&eN.deltaY<0&&q(eN),Z&&Z(eN),ee&&eN.deltaY<0!=eS<0&&ee(eN),eS=eN.deltaY,eO[0]=eO[1]=eO[2]=0),(eb||ey)&&(en&&en(eN),ey&&(A&&1===ey&&A(eN),P&&P(eN),ey=0),eb=!1),ek&&(ek=!1,1)&&eh&&eh(eN),ej&&(el(eN),ej=!1),eg=0},eB=function(e,t,r){ez[r]+=e,eO[r]+=t,eN._vx.update(e),eN._vy.update(t),f?eg||(eg=requestAnimationFrame(eY)):eY()},eH=function(e,t){ef&&!ew&&(eN.axis=ew=Math.abs(e)>Math.abs(t)?"x":"y",ek=!0),"y"!==ew&&(ez[2]+=e,eN._vx.update(e,!0)),"x"!==ew&&(eO[2]+=t,eN._vy.update(t,!0)),f?eg||(eg=requestAnimationFrame(eY)):eY()},eW=function(e){if(!eL(e,1)){var t=(e=B(e,y)).clientX,n=e.clientY,a=t-eN.x,s=n-eN.y,i=eN.isDragging;eN.x=t,eN.y=n,(i||(a||s)&&(Math.abs(eN.startX-t)>=r||Math.abs(eN.startY-n)>=r))&&(ey||(ey=i?2:1),i||(eN.isDragging=!0),eH(a,s))}},eX=eN.onPress=function(e){eL(e,1)||e&&e.button||(eN.axis=ew=null,ev.pause(),eN.isPressed=!0,e=B(e),eC=eS=0,eN.startX=eN.x=e.clientX,eN.startY=eN.y=e.clientY,eN._vx.reset(),eN._vy.reset(),T(es?a:eF,g[1],eW,eA,!0),eN.deltaX=eN.deltaY=0,F&&F(eN))},eV=eN.onRelease=function(e){if(!eL(e,1)){E(es?a:eF,g[1],eW,!0);var t=!isNaN(eN.y-eN.startY),r=eN.isDragging,n=r&&(Math.abs(eN.x-eN.startX)>3||Math.abs(eN.y-eN.startY)>3),s=B(e);!n&&t&&(eN._vx.reset(),eN._vy.reset(),y&&em&&i.delayedCall(.08,function(){if(N()-eI>300&&!e.defaultPrevented){if(e.target.click)e.target.click();else if(eF.createEvent){var t=eF.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,l,1,s.screenX,s.screenY,s.clientX,s.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(t)}}})),eN.isDragging=eN.isGesturing=eN.isPressed=!1,b&&r&&!es&&ev.restart(!0),ey&&eY(),_&&r&&_(eN),V&&V(eN,n)}},eG=function(e){return e.touches&&e.touches.length>1&&(eN.isGesturing=!0)&&ei(e,eN.isDragging)},eU=function(){return eN.isGesturing=!1,eo(eN)},eq=function(e){if(!eL(e)){var t=eM(),r=eT();eB((t-eE)*ep,(r-e_)*ep,1),eE=t,e_=r,b&&ev.restart(!0)}},e$=function(e){if(!eL(e)){e=B(e,y),el&&(ej=!0);var t=(1===e.deltaMode?s:2===e.deltaMode?l.innerHeight:1)*C;eB(e.deltaX*t,e.deltaY*t,0),b&&!es&&ev.restart(!0)}},eK=function(e){if(!eL(e)){var t=e.clientX,r=e.clientY,n=t-eN.x,a=r-eN.y;eN.x=t,eN.y=r,eb=!0,b&&ev.restart(!0),(n||a)&&eH(n,a)}},eZ=function(e){eN.event=e,et(eN)},eJ=function(e){eN.event=e,er(eN)},eQ=function(e){return eL(e)||B(e,y)&&eu(eN)};ev=eN._dc=i.delayedCall(k||.25,function(){eN._vx.reset(),eN._vy.reset(),ev.pause(),b&&b(eN)}).pause(),eN.deltaX=eN.deltaY=0,eN._vx=Y(0,50,!0),eN._vy=Y(0,50,!0),eN.scrollX=eM,eN.scrollY=eT,eN.isDragging=eN.isGesturing=eN.isPressed=!1,v(this),eN.enable=function(e){return!eN.isEnabled&&(T(eR?eF:a,"scroll",R),n.indexOf("scroll")>=0&&T(eR?eF:a,"scroll",eq,eA,ex),n.indexOf("wheel")>=0&&T(a,"wheel",e$,eA,ex),(n.indexOf("touch")>=0&&p||n.indexOf("pointer")>=0)&&(T(a,g[0],eX,eA,ex),T(eF,g[2],eV),T(eF,g[3],eV),em&&T(a,"click",eD,!0,!0),eu&&T(a,"click",eQ),ei&&T(eF,"gesturestart",eG),eo&&T(eF,"gestureend",eU),et&&T(a,x+"enter",eZ),er&&T(a,x+"leave",eJ),en&&T(a,x+"move",eK)),eN.isEnabled=!0,eN.isDragging=eN.isGesturing=eN.isPressed=eb=ey=!1,eN._vx.reset(),eN._vy.reset(),eE=eM(),e_=eT(),e&&e.type&&eX(e),ec&&ec(eN)),eN},eN.disable=function(){eN.isEnabled&&(j.filter(function(e){return e!==eN&&M(e.target)}).length||E(eR?eF:a,"scroll",R),eN.isPressed&&(eN._vx.reset(),eN._vy.reset(),E(es?a:eF,g[1],eW,!0)),E(eR?eF:a,"scroll",eq,ex),E(a,"wheel",e$,ex),E(a,g[0],eX,ex),E(eF,g[2],eV),E(eF,g[3],eV),E(a,"click",eD,!0),E(a,"click",eQ),E(eF,"gesturestart",eG),E(eF,"gestureend",eU),E(a,x+"enter",eZ),E(a,x+"leave",eJ),E(a,x+"move",eK),eN.isEnabled=eN.isPressed=eN.isDragging=!1,ed&&ed(eN))},eN.kill=eN.revert=function(){eN.disable();var e=j.indexOf(eN);e>=0&&j.splice(e,1),h===eN&&(h=0)},j.push(eN),es&&M(a)&&(h=eN),eN.enable(S)},e=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();V.version="3.15.0",V.create=function(e){return new V(e)},V.register=X,V.getAll=function(){return j.slice()},V.getById=function(e){return j.filter(function(t){return t.vars.id===e})[0]},y()&&i.registerPlugin(V);var G,U,q,$,K,Z,J,Q,ee,et,er,en,ea,es,ei,eo,el,ec,ed,eu,ep,ex,em,ef,eh,eg,ev,ey,eb,ej,ek,ew,eN,eC,eS,eA,eM,eT,eE=1,e_=Date.now,eP=e_(),eR=0,eF=0,ez=function(e,t,r){var n=e$(e)&&("clamp("===e.substr(0,6)||e.indexOf("max")>-1);return r["_"+t+"Clamp"]=n,n?e.substr(6,e.length-7):e},eO=function(e,t){return t&&(!e$(e)||"clamp("!==e.substr(0,6))?"clamp("+e+")":e},eI=function(){return es=1},eD=function(){return es=0},eL=function(e){return e},eY=function(e){return Math.round(1e5*e)/1e5||0},eB=function(){return"u">typeof window},eH=function(){return G||eB()&&(G=window.gsap)&&G.registerPlugin&&G},eW=function(e){return!!~J.indexOf(e)},eX=function(e){return("Height"===e?ek:q["inner"+e])||K["client"+e]||Z["client"+e]},eV=function(e){return A(e,"getBoundingClientRect")||(eW(e)?function(){return tJ.width=q.innerWidth,tJ.height=ek,tJ}:function(){return to(e)})},eG=function(e,t,r){var n=r.d,a=r.d2,s=r.a;return(s=A(e,"getBoundingClientRect"))?function(){return s()[n]}:function(){return(t?eX(a):e["client"+a])||0}},eU=function(e,t){var r=t.s,n=t.d2,a=t.d,s=t.a;return Math.max(0,(s=A(e,r="scroll"+n))?s()-eV(e)()[a]:eW(e)?(K[r]||Z[r])-eX(n):e[r]-e["offset"+n])},eq=function(e,t){for(var r=0;r<ed.length;r+=3)(!t||~t.indexOf(ed[r+1]))&&e(ed[r],ed[r+1],ed[r+2])},e$=function(e){return"string"==typeof e},eK=function(e){return"function"==typeof e},eZ=function(e){return"number"==typeof e},eJ=function(e){return"object"==typeof e},eQ=function(e,t,r){return e&&e.progress(+!t)&&r&&e.pause()},e0=function(e,t,r){if(e.enabled){var n=e._ctx?e._ctx.add(function(){return t(e,r)}):t(e,r);n&&n.totalTime&&(e.callbackAnimation=n)}},e1=Math.abs,e2="left",e3="right",e5="bottom",e4="width",e7="height",e6="Right",e8="Left",e9="Bottom",te="padding",tt="margin",tr="Width",tn="Height",ta=function(e){return q.getComputedStyle(e.nodeType===Node.DOCUMENT_NODE?e.scrollingElement:e)},ts=function(e){var t=ta(e).position;e.style.position="absolute"===t||"fixed"===t?t:"relative"},ti=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},to=function(e,t){var r=t&&"matrix(1, 0, 0, 1, 0, 0)"!==ta(e)[ei]&&G.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=e.getBoundingClientRect?e.getBoundingClientRect():e.scrollingElement.getBoundingClientRect();return r&&r.progress(0).kill(),n},tl=function(e,t){var r=t.d2;return e["offset"+r]||e["client"+r]||0},tc=function(e){var t,r=[],n=e.labels,a=e.duration();for(t in n)r.push(n[t]/a);return r},td=function(e){var t=G.utils.snap(e),r=Array.isArray(e)&&e.slice(0).sort(function(e,t){return e-t});return r?function(e,n,a){var s;if(void 0===a&&(a=.001),!n)return t(e);if(n>0){for(e-=a,s=0;s<r.length;s++)if(r[s]>=e)return r[s];return r[s-1]}for(s=r.length,e+=a;s--;)if(r[s]<=e)return r[s];return r[0]}:function(r,n,a){void 0===a&&(a=.001);var s=t(r);return!n||Math.abs(s-r)<a||s-r<0==n<0?s:t(n<0?r-e:r+e)}},tu=function(e,t,r,n){return r.split(",").forEach(function(r){return e(t,r,n)})},tp=function(e,t,r,n,a){return e.addEventListener(t,r,{passive:!n,capture:!!a})},tx=function(e,t,r,n){return e.removeEventListener(t,r,!!n)},tm=function(e,t,r){(r=r&&r.wheelHandler)&&(e(t,"wheel",r),e(t,"touchmove",r))},tf={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},th={toggleActions:"play",anticipatePin:0},tg={top:0,left:0,center:.5,bottom:1,right:1},tv=function(e,t){if(e$(e)){var r=e.indexOf("="),n=~r?(e.charAt(r-1)+1)*parseFloat(e.substr(r+1)):0;~r&&(e.indexOf("%")>r&&(n*=t/100),e=e.substr(0,r-1)),e=n+(e in tg?tg[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e},ty=function(e,t,r,n,a,s,i,o){var l=a.startColor,c=a.endColor,d=a.fontSize,u=a.indent,p=a.fontWeight,x=$.createElement("div"),m=eW(r)||"fixed"===A(r,"pinType"),f=-1!==e.indexOf("scroller"),h=m?Z:"IFRAME"===r.tagName?r.contentDocument.body:r,g=-1!==e.indexOf("start"),v=g?l:c,y="border-color:"+v+";font-size:"+d+";color:"+v+";font-weight:"+p+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return y+="position:"+((f||o)&&m?"fixed;":"absolute;"),(f||o||!m)&&(y+=(n===O?e3:e5)+":"+(s+parseFloat(u))+"px;"),i&&(y+="box-sizing:border-box;text-align:left;width:"+i.offsetWidth+"px;"),x._isStart=g,x.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),x.style.cssText=y,x.innerText=t||0===t?e+"-"+t:e,h.children[0]?h.insertBefore(x,h.children[0]):h.appendChild(x),x._offset=x["offset"+n.op.d2],tb(x,0,n,g),x},tb=function(e,t,r,n){var a={display:"block"},s=r[n?"os2":"p2"],i=r[n?"p2":"os2"];e._isFlipped=n,a[r.a+"Percent"]=n?-100:0,a[r.a]=n?"1px":0,a["border"+s+tr]=1,a["border"+i+tr]=0,a[r.p]=t+"px",G.set(e,a)},tj=[],tk={},tw=function(){return e_()-eR>34&&(eS||(eS=requestAnimationFrame(tW)))},tN=function(){em&&em.isPressed&&!(em.startX>Z.clientWidth)||(k.cache++,em?eS||(eS=requestAnimationFrame(tW)):tW(),eR||tE("scrollStart"),eR=e_())},tC=function(){eg=q.innerWidth,eh=q.innerHeight},tS=function(e){k.cache++,(!0===e||!ea&&!ex&&!$.fullscreenElement&&!$.webkitFullscreenElement&&(!ef||eg!==q.innerWidth||Math.abs(q.innerHeight-eh)>.25*q.innerHeight))&&Q.restart(!0)},tA={},tM=[],tT=function e(){return tx(t4,"scrollEnd",e)||tY(!0)},tE=function(e){return tA[e]&&tA[e].map(function(e){return e()})||tM},t_=[],tP=function(e){for(var t=0;t<t_.length;t+=5)(!e||t_[t+4]&&t_[t+4].query===e)&&(t_[t].style.cssText=t_[t+1],t_[t].getBBox&&t_[t].setAttribute("transform",t_[t+2]||""),t_[t+3].uncache=1)},tR=function(){return k.forEach(function(e){return eK(e)&&++e.cacheID&&(e.rec=e())})},tF=function(e,t){var r;for(eo=0;eo<tj.length;eo++)(r=tj[eo])&&(!t||r._ctx===t)&&(e?r.kill(1):r.revert(!0,!0));ew=!0,t&&tP(t),t||tE("revert")},tz=function(e,t){k.cache++,(t||!eA)&&k.forEach(function(e){return eK(e)&&e.cacheID++&&(e.rec=0)}),e$(e)&&(q.history.scrollRestoration=eb=e)},tO=0,tI=function(){if(eM!==tO){var e=eM=tO;requestAnimationFrame(function(){return e===tO&&tY(!0)})}},tD=function(){Z.appendChild(ej),ek=!em&&ej.offsetHeight||q.innerHeight,Z.removeChild(ej)},tL=function(e){return ee(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(t){return t.style.display=e?"none":"block"})},tY=function(e,t){if(K=$.documentElement,Z=$.body,J=[q,$,K,Z],eR&&!e&&!ew)return void tp(t4,"scrollEnd",tT);tD(),eA=t4.isRefreshing=!0,ew||tR();var r=tE("refreshInit");eu&&t4.sort(),t||tF(),k.forEach(function(e){eK(e)&&(e.smooth&&(e.target.style.scrollBehavior="auto"),e(0))}),tj.slice(0).forEach(function(e){return e.refresh()}),ew=!1,tj.forEach(function(e){if(e._subPinOffset&&e.pin){var t=e.vars.horizontal?"offsetWidth":"offsetHeight",r=e.pin[t];e.revert(!0,1),e.adjustPinSpacing(e.pin[t]-r),e.refresh()}}),eN=1,tL(!0),tj.forEach(function(e){var t=eU(e.scroller,e._dir),r="max"===e.vars.end||e._endClamp&&e.end>t,n=e._startClamp&&e.start>=t;(r||n)&&e.setPositions(n?t-1:e.start,r?Math.max(n?t:e.start+1,t):e.end,!0)}),tL(!1),eN=0,r.forEach(function(e){return e&&e.render&&e.render(-1)}),k.forEach(function(e){eK(e)&&(e.smooth&&requestAnimationFrame(function(){return e.target.style.scrollBehavior="smooth"}),e.rec&&e(e.rec))}),tz(eb,1),Q.pause(),tO++,eA=2,tW(2),tj.forEach(function(e){return eK(e.vars.onRefresh)&&e.vars.onRefresh(e)}),eA=t4.isRefreshing=!1,tE("refresh")},tB=0,tH=1,tW=function(e){if(2===e||!eA&&!ew){t4.isUpdating=!0,eT&&eT.update(0);var t=tj.length,r=e_(),n=r-eP>=50,a=t&&tj[0].scroll();if(tH=tB>a?-1:1,eA||(tB=a),n&&(eR&&!es&&r-eR>200&&(eR=0,tE("scrollEnd")),er=eP,eP=r),tH<0){for(eo=t;eo-- >0;)tj[eo]&&tj[eo].update(0,n);tH=1}else for(eo=0;eo<t;eo++)tj[eo]&&tj[eo].update(0,n);t4.isUpdating=!1}eS=0},tX=[e2,"top",e5,e3,tt+e9,tt+e6,tt+"Top",tt+e8,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],tV=tX.concat([e4,e7,"boxSizing","max"+tr,"max"+tn,"position",tt,te,te+"Top",te+e6,te+e9,te+e8]),tG=function(e,t,r){t$(r);var n=e._gsap;if(n.spacerIsNative)t$(n.spacerState);else if(e._gsap.swappedIn){var a=t.parentNode;a&&(a.insertBefore(e,t),a.removeChild(t))}e._gsap.swappedIn=!1},tU=function(e,t,r,n){if(!e._gsap.swappedIn){for(var a,s=tX.length,i=t.style,o=e.style;s--;)i[a=tX[s]]=r[a];i.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(i.display="inline-block"),o[e5]=o[e3]="auto",i.flexBasis=r.flexBasis||"auto",i.overflow="visible",i.boxSizing="border-box",i[e4]=tl(e,z)+"px",i[e7]=tl(e,O)+"px",i[te]=o[tt]=o.top=o[e2]="0",t$(n),o[e4]=o["max"+tr]=r[e4],o[e7]=o["max"+tn]=r[e7],o[te]=r[te],e.parentNode!==t&&(e.parentNode.insertBefore(t,e),t.appendChild(e)),e._gsap.swappedIn=!0}},tq=/([A-Z])/g,t$=function(e){if(e){var t,r,n=e.t.style,a=e.length,s=0;for((e.t._gsap||G.core.getCache(e.t)).uncache=1;s<a;s+=2)r=e[s+1],t=e[s],r?n[t]=r:n[t]&&n.removeProperty(t.replace(tq,"-$1").toLowerCase())}},tK=function(e){for(var t=tV.length,r=e.style,n=[],a=0;a<t;a++)n.push(tV[a],r[tV[a]]);return n.t=e,n},tZ=function(e,t,r){for(var n,a=[],s=e.length,i=8*!!r;i<s;i+=2)n=e[i],a.push(n,n in t?t[n]:e[i+1]);return a.t=e.t,a},tJ={left:0,top:0},tQ=function(e,t,r,n,a,s,i,o,l,c,d,u,p,x){eK(e)&&(e=e(o)),e$(e)&&"max"===e.substr(0,3)&&(e=u+("="===e.charAt(4)?tv("0"+e.substr(3),r):0));var m,f,h,g=p?p.time():0;if(p&&p.seek(0),isNaN(e)||(e*=1),eZ(e))p&&(e=G.utils.mapRange(p.scrollTrigger.start,p.scrollTrigger.end,0,u,e)),i&&tb(i,r,n,!0);else{eK(t)&&(t=t(o));var v,y,b,j,k=(e||"0").split(" ");(v=to(h=I(t,o)||Z)||{}).left||v.top||"none"!==ta(h).display||(j=h.style.display,h.style.display="block",v=to(h),j?h.style.display=j:h.style.removeProperty("display")),y=tv(k[0],v[n.d]),b=tv(k[1]||"0",r),e=v[n.p]-l[n.p]-c+y+a-b,i&&tb(i,b,n,r-b<20||i._isStart&&b>20),r-=r-b}if(x&&(o[x]=e||-.001,e<0&&(e=0)),s){var w=e+r,N=s._isStart;m="scroll"+n.d2,tb(s,w,n,N&&w>20||!N&&(d?Math.max(Z[m],K[m]):s.parentNode[m])<=w+1),d&&(l=to(i),d&&(s.style[n.op.p]=l[n.op.p]-n.op.m-s._offset+"px"))}return p&&h&&(m=to(h),p.seek(u),f=to(h),p._caScrollDist=m[n.p]-f[n.p],e=e/p._caScrollDist*u),p&&p.seek(g),p?e:Math.round(e)},t0=/(webkit|moz|length|cssText|inset)/i,t1=function(e,t,r,n){if(e.parentNode!==t){var a,s,i=e.style;if(t===Z){for(a in e._stOrig=i.cssText,s=ta(e))+a||t0.test(a)||!s[a]||"string"!=typeof i[a]||"0"===a||(i[a]=s[a]);i.top=r,i.left=n}else i.cssText=e._stOrig;G.core.getCache(e).uncache=1,t.appendChild(e)}},t2=function(e,t,r){var n=t,a=n;return function(t){var s=Math.round(e());return s!==n&&s!==a&&Math.abs(s-n)>3&&Math.abs(s-a)>3&&(t=s,r&&r()),a=n,n=Math.round(t)}},t3=function(e,t,r){var n={};n[t.p]="+="+r,G.set(e,n)},t5=function(e,t){var r=L(e,t),n="_scroll"+t.p2,a=function t(a,s,i,o,l){var c=t.tween,d=s.onComplete,u={};i=i||r();var p=t2(r,i,function(){c.kill(),t.tween=0});return l=o&&l||0,o=o||a-i,c&&c.kill(),s[n]=a,s.inherit=!1,s.modifiers=u,u[n]=function(){return p(i+o*c.ratio+l*c.ratio*c.ratio)},s.onUpdate=function(){k.cache++,t.tween&&tW()},s.onComplete=function(){t.tween=0,d&&d.call(c)},c=t.tween=G.to(e,s)};return e[n]=r,r.wheelHandler=function(){return a.tween&&a.tween.kill()&&(a.tween=0)},tp(e,"wheel",r.wheelHandler),t4.isTouch&&tp(e,"touchmove",r.wheelHandler),a},t4=function(){function e(t,r){U||e.register(G)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),ey(this),this.init(t,r)}return e.prototype.init=function(t,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!eF){this.update=this.refresh=this.kill=eL;return}var n,a,s,i,o,l,c,d,u,p,x,m,f,h,g,v,y,b,j,N,C,S,M,T,E,_,P,R,F,D,Y,B,H,W,X,V,U,J,Q,en,ei,el=t=ti(e$(t)||eZ(t)||t.nodeType?{trigger:t}:t,th),ec=el.onUpdate,ed=el.toggleClass,ex=el.id,em=el.onToggle,ef=el.onRefresh,eh=el.scrub,eg=el.trigger,ev=el.pin,ey=el.pinSpacing,eb=el.invalidateOnRefresh,ej=el.anticipatePin,ek=el.onScrubComplete,ew=el.onSnapComplete,eS=el.once,eM=el.snap,eP=el.pinReparent,eI=el.pinSpacer,eD=el.containerAnimation,eB=el.fastScrollEnd,eH=el.preventOverlaps,eX=t.horizontal||t.containerAnimation&&!1!==t.horizontal?z:O,eq=!eh&&0!==eh,e2=I(t.scroller||q),e3=G.core.getCache(e2),e5=eW(e2),tu=("pinType"in t?t.pinType:A(e2,"pinType")||e5&&"fixed")==="fixed",tm=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],tg=eq&&t.toggleActions.split(" "),tb="markers"in t?t.markers:th.markers,tw=e5?0:parseFloat(ta(e2)["border"+eX.p2+tr])||0,tC=this,tA=t.onRefreshInit&&function(){return t.onRefreshInit(tC)},tM=eG(e2,e5,eX),tE=!e5||~w.indexOf(e2)?eV(e2):function(){return tJ},t_=0,tP=0,tR=0,tF=L(e2,eX);if(tC._startClamp=tC._endClamp=!1,tC._dir=eX,ej*=45,tC.scroller=e2,tC.scroll=eD?eD.time.bind(eD):tF,l=tF(),tC.vars=t,r=r||t.animation,"refreshPriority"in t&&(eu=1,-9999===t.refreshPriority&&(eT=tC)),e3.tweenScroll=e3.tweenScroll||{top:t5(e2,O),left:t5(e2,z)},tC.tweenTo=s=e3.tweenScroll[eX.p],tC.scrubDuration=function(e){(X=eZ(e)&&e)?W?W.duration(e):W=G.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:X,paused:!0,onComplete:function(){return ek&&ek(tC)}}):(W&&W.progress(1).kill(),W=0)},r&&(r.vars.lazy=!1,r._initted&&!tC.isReverted||!1!==r.vars.immediateRender&&!1!==t.immediateRender&&r.duration()&&r.render(0,!0,!0),tC.animation=r.pause(),r.scrollTrigger=tC,tC.scrubDuration(eh),B=0,ex||(ex=r.vars.id)),eM&&((!eJ(eM)||eM.push)&&(eM={snapTo:eM}),"scrollBehavior"in Z.style&&G.set(e5?[Z,K]:e2,{scrollBehavior:"auto"}),k.forEach(function(e){return eK(e)&&e.target===(e5?$.scrollingElement||K:e2)&&(e.smooth=!1)}),o=eK(eM.snapTo)?eM.snapTo:"labels"===eM.snapTo?(n=r,function(e){return G.utils.snap(tc(n),e)}):"labelsDirectional"===eM.snapTo?(a=r,function(e,t){return td(tc(a))(e,t.direction)}):!1!==eM.directional?function(e,t){return td(eM.snapTo)(e,e_()-tP<500?0:t.direction)}:G.utils.snap(eM.snapTo),V=eJ(V=eM.duration||{min:.1,max:2})?et(V.min,V.max):et(V,V),U=G.delayedCall(eM.delay||X/2||.1,function(){var e=tF(),t=e_()-tP<500,n=s.tween;if((t||10>Math.abs(tC.getVelocity()))&&!n&&!es&&t_!==e){var a,i,l=(e-d)/v,c=r&&!eq?r.totalProgress():l,p=t?0:(c-H)/(e_()-er)*1e3||0,x=G.utils.clamp(-l,1-l,e1(p/2)*p/.185),m=l+(!1===eM.inertia?0:x),f=eM,h=f.onStart,g=f.onInterrupt,y=f.onComplete;if(eZ(a=o(m,tC))||(a=m),i=Math.max(0,Math.round(d+a*v)),e<=u&&e>=d&&i!==e){if(n&&!n._initted&&n.data<=e1(i-e))return;!1===eM.inertia&&(x=a-l),s(i,{duration:V(e1(.185*Math.max(e1(m-c),e1(a-c))/p/.05||0)),ease:eM.ease||"power3",data:e1(i-e),onInterrupt:function(){return U.restart(!0)&&g&&e0(tC,g)},onComplete:function(){tC.update(),t_=tF(),r&&!eq&&(W?W.resetTo("totalProgress",a,r._tTime/r._tDur):r.progress(a)),B=H=r&&!eq?r.totalProgress():tC.progress,ew&&ew(tC),y&&e0(tC,y)}},e,x*v,i-e-x*v),h&&e0(tC,h,s.tween)}}else tC.isActive&&t_!==e&&U.restart(!0)}).pause()),ex&&(tk[ex]=tC),(ei=(eg=tC.trigger=I(eg||!0!==ev&&ev))&&eg._gsap&&eg._gsap.stRevert)&&(ei=ei(tC)),ev=!0===ev?eg:I(ev),e$(ed)&&(ed={targets:eg,className:ed}),ev&&(!1===ey||ey===tt||(ey=(!!ey||!ev.parentNode||!ev.parentNode.style||"flex"!==ta(ev.parentNode).display)&&te),tC.pin=ev,(i=G.core.getCache(ev)).spacer?y=i.pinState:(eI&&((eI=I(eI))&&!eI.nodeType&&(eI=eI.current||eI.nativeElement),i.spacerIsNative=!!eI,eI&&(i.spacerState=tK(eI))),i.spacer=N=eI||$.createElement("div"),N.classList.add("pin-spacer"),ex&&N.classList.add("pin-spacer-"+ex),i.pinState=y=tK(ev)),!1!==t.force3D&&G.set(ev,{force3D:!0}),tC.spacer=N=i.spacer,_=(Y=ta(ev))[ey+eX.os2],S=G.getProperty(ev),M=G.quickSetter(ev,eX.a,"px"),tU(ev,N,Y),j=tK(ev)),tb){h=eJ(tb)?ti(tb,tf):tf,m=ty("scroller-start",ex,e2,eX,h,0),f=ty("scroller-end",ex,e2,eX,h,0,m),C=m["offset"+eX.op.d2];var tz=I(A(e2,"content")||e2);p=this.markerStart=ty("start",ex,tz,eX,h,C,0,eD),x=this.markerEnd=ty("end",ex,tz,eX,h,C,0,eD),eD&&(en=G.quickSetter([p,x],eX.a,"px")),tu||w.length&&!0===A(e2,"fixedMarkers")||(ts(e5?Z:e2),G.set([m,f],{force3D:!0}),R=G.quickSetter(m,eX.a,"px"),D=G.quickSetter(f,eX.a,"px"))}if(eD){var tO=eD.vars.onUpdate,tD=eD.vars.onUpdateParams;eD.eventCallback("onUpdate",function(){tC.update(0,0,1),tO&&tO.apply(eD,tD||[])})}if(tC.previous=function(){return tj[tj.indexOf(tC)-1]},tC.next=function(){return tj[tj.indexOf(tC)+1]},tC.revert=function(e,t){if(!t)return tC.kill(!0);var n=!1!==e||!tC.enabled,a=ea;n!==tC.isReverted&&(n&&(J=Math.max(tF(),tC.scroll.rec||0),tR=tC.progress,Q=r&&r.progress()),p&&[p,x,m,f].forEach(function(e){return e.style.display=n?"none":"block"}),n&&(ea=tC,tC.update(n)),!ev||eP&&tC.isActive||(n?tG(ev,N,y):tU(ev,N,ta(ev),P)),n||tC.update(n),ea=a,tC.isReverted=n)},tC.refresh=function(n,a,i,o){if(!ea&&tC.enabled||a){if(ev&&n&&eR)return void tp(e,"scrollEnd",tT);!eA&&tA&&tA(tC),ea=tC,s.tween&&!i&&(s.tween.kill(),s.tween=0),W&&W.pause(),eb&&r&&(r.revert({kill:!1}).invalidate(),r.getChildren?r.getChildren(!0,!0,!1).forEach(function(e){return e.vars.immediateRender&&e.render(0,!0,!0)}):r.vars.immediateRender&&r.render(0,!0,!0)),tC.isReverted||tC.revert(!0,!0),tC._subPinOffset=!1;var h,k,w,C,A,M,_,R,D,Y,B,H,X,V=tM(),q=tE(),ee=eD?eD.duration():eU(e2,eX),et=v<=.01||!v,er=0,en=o||0,es=eJ(i)?i.end:t.end,ei=t.endTrigger||eg,eo=eJ(i)?i.start:t.start||(0!==t.start&&eg?ev?"0 0":"0 100%":0),el=tC.pinnedContainer=t.pinnedContainer&&I(t.pinnedContainer,tC),ec=eg&&Math.max(0,tj.indexOf(tC))||0,ed=ec;for(tb&&eJ(i)&&(H=G.getProperty(m,eX.p),X=G.getProperty(f,eX.p));ed-- >0;)(M=tj[ed]).end||M.refresh(0,1)||(ea=tC),(_=M.pin)&&(_===eg||_===ev||_===el)&&!M.isReverted&&(Y||(Y=[]),Y.unshift(M),M.revert(!0,!0)),M!==tj[ed]&&(ec--,ed--);for(eK(eo)&&(eo=eo(tC)),d=tQ(eo=ez(eo,"start",tC),eg,V,eX,tF(),p,m,tC,q,tw,tu,ee,eD,tC._startClamp&&"_startClamp")||(ev?-.001:0),eK(es)&&(es=es(tC)),e$(es)&&!es.indexOf("+=")&&(~es.indexOf(" ")?es=(e$(eo)?eo.split(" ")[0]:"")+es:(er=tv(es.substr(2),V),es=e$(eo)?eo:(eD?G.utils.mapRange(0,eD.duration(),eD.scrollTrigger.start,eD.scrollTrigger.end,d):d)+er,ei=eg)),es=ez(es,"end",tC),u=Math.max(d,tQ(es||(ei?"100% 0":ee),ei,V,eX,tF()+er,x,f,tC,q,tw,tu,ee,eD,tC._endClamp&&"_endClamp"))||-.001,er=0,ed=ec;ed--;)(_=(M=tj[ed]||{}).pin)&&M.start-M._pinPush<=d&&!eD&&M.end>0&&(h=M.end-(tC._startClamp?Math.max(0,M.start):M.start),(_===eg&&M.start-M._pinPush<d||_===el)&&isNaN(eo)&&(er+=h*(1-M.progress)),_===ev&&(en+=h));if(d+=er,u+=er,tC._startClamp&&(tC._startClamp+=er),tC._endClamp&&!eA&&(tC._endClamp=u||-.001,u=Math.min(u,eU(e2,eX))),v=u-d||(d-=.01)&&.001,et&&(tR=G.utils.clamp(0,1,G.utils.normalize(d,u,J))),tC._pinPush=en,p&&er&&((h={})[eX.a]="+="+er,el&&(h[eX.p]="-="+tF()),G.set([p,x],h)),ev&&!(eN&&tC.end>=eU(e2,eX)))h=ta(ev),C=eX===O,w=tF(),T=parseFloat(S(eX.a))+en,!ee&&u>1&&(B={style:B=(e5?$.scrollingElement||K:e2).style,value:B["overflow"+eX.a.toUpperCase()]},e5&&"scroll"!==ta(Z)["overflow"+eX.a.toUpperCase()]&&(B.style["overflow"+eX.a.toUpperCase()]="scroll")),tU(ev,N,h),j=tK(ev),k=to(ev,!0),R=tu&&L(e2,C?z:O)(),ey?((P=[ey+eX.os2,v+en+"px"]).t=N,(ed=ey===te?tl(ev,eX)+v+en:0)&&(P.push(eX.d,ed+"px"),"auto"!==N.style.flexBasis&&(N.style.flexBasis=ed+"px")),t$(P),el&&tj.forEach(function(e){e.pin===el&&!1!==e.vars.pinSpacing&&(e._subPinOffset=!0)}),tu&&tF(J)):(ed=tl(ev,eX))&&"auto"!==N.style.flexBasis&&(N.style.flexBasis=ed+"px"),tu&&((A={top:k.top+(C?w-d:R)+"px",left:k.left+(C?R:w-d)+"px",boxSizing:"border-box",position:"fixed"})[e4]=A["max"+tr]=Math.ceil(k.width)+"px",A[e7]=A["max"+tn]=Math.ceil(k.height)+"px",A[tt]=A[tt+"Top"]=A[tt+e6]=A[tt+e9]=A[tt+e8]="0",A[te]=h[te],A[te+"Top"]=h[te+"Top"],A[te+e6]=h[te+e6],A[te+e9]=h[te+e9],A[te+e8]=h[te+e8],b=tZ(y,A,eP),eA&&tF(0)),r?(D=r._initted,ep(1),r.render(r.duration(),!0,!0),E=S(eX.a)-T+v+en,F=Math.abs(v-E)>1,tu&&F&&b.splice(b.length-2,2),r.render(0,!0,!0),D||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),ep(0)):E=v,B&&(B.value?B.style["overflow"+eX.a.toUpperCase()]=B.value:B.style.removeProperty("overflow-"+eX.a));else if(eg&&tF()&&!eD)for(k=eg.parentNode;k&&k!==Z;)k._pinOffset&&(d-=k._pinOffset,u-=k._pinOffset),k=k.parentNode;Y&&Y.forEach(function(e){return e.revert(!1,!0)}),tC.start=d,tC.end=u,l=c=eA?J:tF(),eD||eA||(l<J&&tF(J),tC.scroll.rec=0),tC.revert(!1,!0),tP=e_(),U&&(t_=-1,U.restart(!0)),ea=0,r&&eq&&(r._initted||Q)&&r.progress()!==Q&&r.progress(Q||0,!0).render(r.time(),!0,!0),(et||tR!==tC.progress||eD||eb||r&&!r._initted)&&(r&&!eq&&(r._initted||tR||!1!==r.vars.immediateRender)&&r.totalProgress(eD&&d<-.001&&!tR?G.utils.normalize(d,u,0):tR,!0),tC.progress=et||(l-d)/v===tR?0:tR),ev&&ey&&(N._pinOffset=Math.round(tC.progress*E)),W&&W.invalidate(),isNaN(H)||(H-=G.getProperty(m,eX.p),X-=G.getProperty(f,eX.p),t3(m,eX,H),t3(p,eX,H-(o||0)),t3(f,eX,X),t3(x,eX,X-(o||0))),et&&!eA&&tC.update(),!ef||eA||g||(g=!0,ef(tC),g=!1)}},tC.getVelocity=function(){return(tF()-c)/(e_()-er)*1e3||0},tC.endAnimation=function(){eQ(tC.callbackAnimation),r&&(W?W.progress(1):r.paused()?eq||eQ(r,tC.direction<0,1):eQ(r,r.reversed()))},tC.labelToScroll=function(e){return r&&r.labels&&(d||tC.refresh()||d)+r.labels[e]/r.duration()*v||0},tC.getTrailing=function(e){var t=tj.indexOf(tC),r=tC.direction>0?tj.slice(0,t).reverse():tj.slice(t+1);return(e$(e)?r.filter(function(t){return t.vars.preventOverlaps===e}):r).filter(function(e){return tC.direction>0?e.end<=d:e.start>=u})},tC.update=function(e,t,n){if(!eD||n||e){var a,i,o,p,x,f,h,g=!0===eA?J:tC.scroll(),y=e?0:(g-d)/v,k=y<0?0:y>1?1:y||0,w=tC.progress;if(t&&(c=l,l=eD?tF():g,eM&&(H=B,B=r&&!eq?r.totalProgress():k)),ej&&ev&&!ea&&!eE&&eR&&(!k&&d<g+(g-c)/(e_()-er)*ej?k=1e-4:1===k&&u>g+(g-c)/(e_()-er)*ej&&(k=.9999)),k!==w&&tC.enabled){if(p=(x=(a=tC.isActive=!!k&&k<1)!=(!!w&&w<1))||!!k!=!!w,tC.direction=k>w?1:-1,tC.progress=k,p&&!ea&&(i=k&&!w?0:1===k?1:1===w?2:3,eq&&(o=!x&&"none"!==tg[i+1]&&tg[i+1]||tg[i],h=r&&("complete"===o||"reset"===o||o in r))),eH&&(x||h)&&(h||eh||!r)&&(eK(eH)?eH(tC):tC.getTrailing(eH).forEach(function(e){return e.endAnimation()})),!eq&&(!W||ea||eE?r&&r.totalProgress(k,!!(ea&&(tP||e))):(W._dp._time-W._start!==W._time&&W.render(W._dp._time-W._start),W.resetTo?W.resetTo("totalProgress",k,r._tTime/r._tDur):(W.vars.totalProgress=k,W.invalidate().restart()))),ev)if(e&&ey&&(N.style[ey+eX.os2]=_),tu){if(p){if(f=!e&&k>w&&u+1>g&&g+1>=eU(e2,eX),eP)if(!e&&(a||f)){var C=to(ev,!0),S=g-d;t1(ev,Z,C.top+(eX===O?S:0)+"px",C.left+(eX===O?0:S)+"px")}else t1(ev,N);t$(a||f?b:j),F&&k<1&&a||M(T+(1!==k||f?0:E))}}else M(eY(T+E*k));!eM||s.tween||ea||eE||U.restart(!0),ed&&(x||eS&&k&&(k<1||!eC))&&ee(ed.targets).forEach(function(e){return e.classList[a||eS?"add":"remove"](ed.className)}),!ec||eq||e||ec(tC),p&&!ea?(eq&&(h&&("complete"===o?r.pause().totalProgress(1):"reset"===o?r.restart(!0).pause():"restart"===o?r.restart(!0):r[o]()),ec&&ec(tC)),(x||!eC)&&(em&&x&&e0(tC,em),tm[i]&&e0(tC,tm[i]),eS&&(1===k?tC.kill(!1,1):tm[i]=0),!x&&tm[i=1===k?1:3]&&e0(tC,tm[i])),eB&&!a&&Math.abs(tC.getVelocity())>(eZ(eB)?eB:2500)&&(eQ(tC.callbackAnimation),W?W.progress(1):eQ(r,"reverse"===o?1:!k,1))):eq&&ec&&!ea&&ec(tC)}if(D){var A=eD?g/eD.duration()*(eD._caScrollDist||0):g;R(A+ +!!m._isFlipped),D(A)}en&&en(-g/eD.duration()*(eD._caScrollDist||0))}},tC.enable=function(t,r){tC.enabled||(tC.enabled=!0,tp(e2,"resize",tS),e5||tp(e2,"scroll",tN),tA&&tp(e,"refreshInit",tA),!1!==t&&(tC.progress=tR=0,l=c=t_=tF()),!1!==r&&tC.refresh())},tC.getTween=function(e){return e&&s?s.tween:W},tC.setPositions=function(e,t,r,n){if(eD){var a=eD.scrollTrigger,s=eD.duration(),i=a.end-a.start;e=a.start+i*e/s,t=a.start+i*t/s}tC.refresh(!1,!1,{start:eO(e,r&&!!tC._startClamp),end:eO(t,r&&!!tC._endClamp)},n),tC.update()},tC.adjustPinSpacing=function(e){if(P&&e){var t=P.indexOf(eX.d)+1;P[t]=parseFloat(P[t])+e+"px",P[1]=parseFloat(P[1])+e+"px",t$(P)}},tC.disable=function(t,r){if(!1!==t&&tC.revert(!0,!0),tC.enabled&&(tC.enabled=tC.isActive=!1,r||W&&W.pause(),J=0,i&&(i.uncache=1),tA&&tx(e,"refreshInit",tA),U&&(U.pause(),s.tween&&s.tween.kill()&&(s.tween=0)),!e5)){for(var n=tj.length;n--;)if(tj[n].scroller===e2&&tj[n]!==tC)return;tx(e2,"resize",tS),e5||tx(e2,"scroll",tN)}},tC.kill=function(e,n){tC.disable(e,n),W&&!n&&W.kill(),ex&&delete tk[ex];var a=tj.indexOf(tC);a>=0&&tj.splice(a,1),a===eo&&tH>0&&eo--,a=0,tj.forEach(function(e){return e.scroller===tC.scroller&&(a=1)}),a||eA||(tC.scroll.rec=0),r&&(r.scrollTrigger=null,e&&r.revert({kill:!1}),n||r.kill()),p&&[p,x,m,f].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),eT===tC&&(eT=0),ev&&(i&&(i.uncache=1),a=0,tj.forEach(function(e){return e.pin===ev&&a++}),a||(i.spacer=0)),t.onKill&&t.onKill(tC)},tj.push(tC),tC.enable(!1,!1),ei&&ei(tC),r&&r.add&&!v){var tL=tC.update;tC.update=function(){tC.update=tL,k.cache++,d||u||tC.refresh()},G.delayedCall(.01,tC.update),v=.01,d=u=0}else tC.refresh();ev&&tI()},e.register=function(t){return U||(G=t||eH(),eB()&&window.document&&e.enable(),U=eF),U},e.defaults=function(e){if(e)for(var t in e)th[t]=e[t];return th},e.disable=function(e,t){eF=0,tj.forEach(function(r){return r[t?"kill":"disable"](e)}),tx(q,"wheel",tN),tx($,"scroll",tN),clearInterval(en),tx($,"touchcancel",eL),tx(Z,"touchstart",eL),tu(tx,$,"pointerdown,touchstart,mousedown",eI),tu(tx,$,"pointerup,touchend,mouseup",eD),Q.kill(),eq(tx);for(var r=0;r<k.length;r+=3)tm(tx,k[r],k[r+1]),tm(tx,k[r],k[r+2])},e.enable=function(){if(q=window,K=($=document).documentElement,Z=$.body,G)if(ee=G.utils.toArray,et=G.utils.clamp,ey=G.core.context||eL,ep=G.core.suppressOverwrites||eL,eb=q.history.scrollRestoration||"auto",tB=q.pageYOffset||0,G.core.globals("ScrollTrigger",e),Z){eF=1,(ej=document.createElement("div")).style.height="100vh",ej.style.position="absolute",tD(),function e(){return eF&&requestAnimationFrame(e)}(),V.register(G),e.isTouch=V.isTouch,ev=V.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),ef=1===V.isTouch,tp(q,"wheel",tN),J=[q,$,K,Z],G.matchMedia?(e.matchMedia=function(e){var t,r=G.matchMedia();for(t in e)r.add(t,e[t]);return r},G.addEventListener("matchMediaInit",function(){tR(),tF()}),G.addEventListener("matchMediaRevert",function(){return tP()}),G.addEventListener("matchMedia",function(){tY(0,1),tE("matchMedia")}),G.matchMedia().add("(orientation: portrait)",function(){return tC(),tC})):console.warn("Requires GSAP 3.11.0 or later"),tC(),tp($,"scroll",tN);var t,r,n=Z.hasAttribute("style"),a=Z.style,s=a.borderTopStyle,i=G.core.Animation.prototype;for(i.revert||Object.defineProperty(i,"revert",{value:function(){return this.time(-.01,!0)}}),a.borderTopStyle="solid",O.m=Math.round((t=to(Z)).top+O.sc())||0,z.m=Math.round(t.left+z.sc())||0,s?a.borderTopStyle=s:a.removeProperty("border-top-style"),n||(Z.setAttribute("style",""),Z.removeAttribute("style")),en=setInterval(tw,250),G.delayedCall(.5,function(){return eE=0}),tp($,"touchcancel",eL),tp(Z,"touchstart",eL),tu(tp,$,"pointerdown,touchstart,mousedown",eI),tu(tp,$,"pointerup,touchend,mouseup",eD),ei=G.utils.checkPrefix("transform"),tV.push(ei),U=e_(),Q=G.delayedCall(.2,tY).pause(),ed=[$,"visibilitychange",function(){var e=q.innerWidth,t=q.innerHeight;$.hidden?(el=e,ec=t):(el!==e||ec!==t)&&tS()},$,"DOMContentLoaded",tY,q,"load",tY,q,"resize",tS],eq(tp),tj.forEach(function(e){return e.enable(0,1)}),r=0;r<k.length;r+=3)tm(tx,k[r],k[r+1]),tm(tx,k[r],k[r+2])}else $&&$.addEventListener("DOMContentLoaded",function t(){e.enable(),$.removeEventListener("DOMContentLoaded",t)})},e.config=function(t){"limitCallbacks"in t&&(eC=!!t.limitCallbacks);var r=t.syncInterval;r&&clearInterval(en)||(en=r)&&setInterval(tw,r),"ignoreMobileResize"in t&&(ef=1===e.isTouch&&t.ignoreMobileResize),"autoRefreshEvents"in t&&(eq(tx)||eq(tp,t.autoRefreshEvents||"none"),ex=-1===(t.autoRefreshEvents+"").indexOf("resize"))},e.scrollerProxy=function(e,t){var r=I(e),n=k.indexOf(r),a=eW(r);~n&&k.splice(n,a?6:2),t&&(a?w.unshift(q,t,Z,t,K,t):w.unshift(r,t))},e.clearMatchMedia=function(e){tj.forEach(function(t){return t._ctx&&t._ctx.query===e&&t._ctx.kill(!0,!0)})},e.isInViewport=function(e,t,r){var n=(e$(e)?I(e):e).getBoundingClientRect(),a=n[r?e4:e7]*t||0;return r?n.right-a>0&&n.left+a<q.innerWidth:n.bottom-a>0&&n.top+a<q.innerHeight},e.positionInViewport=function(e,t,r){e$(e)&&(e=I(e));var n=e.getBoundingClientRect(),a=n[r?e4:e7],s=null==t?a/2:t in tg?tg[t]*a:~t.indexOf("%")?parseFloat(t)*a/100:parseFloat(t)||0;return r?(n.left+s)/q.innerWidth:(n.top+s)/q.innerHeight},e.killAll=function(e){if(tj.slice(0).forEach(function(e){return"ScrollSmoother"!==e.vars.id&&e.kill()}),!0!==e){var t=tA.killAll||[];tA={},t.forEach(function(e){return e()})}},e}();t4.version="3.15.0",t4.saveStyles=function(e){return e?ee(e).forEach(function(e){if(e&&e.style){var t=t_.indexOf(e);t>=0&&t_.splice(t,5),t_.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),G.core.getCache(e),ey())}}):t_},t4.revert=function(e,t){return tF(!e,t)},t4.create=function(e,t){return new t4(e,t)},t4.refresh=function(e){return e?tS(!0):(U||t4.register())&&tY(!0)},t4.update=function(e){return++k.cache&&tW(2*(!0===e))},t4.clearScrollMemory=tz,t4.maxScroll=function(e,t){return eU(e,t?z:O)},t4.getScrollFunc=function(e,t){return L(I(e),t?z:O)},t4.getById=function(e){return tk[e]},t4.getAll=function(){return tj.filter(function(e){return"ScrollSmoother"!==e.vars.id})},t4.isScrolling=function(){return!!eR},t4.snapDirectional=td,t4.addEventListener=function(e,t){var r=tA[e]||(tA[e]=[]);~r.indexOf(t)||r.push(t)},t4.removeEventListener=function(e,t){var r=tA[e],n=r&&r.indexOf(t);n>=0&&r.splice(n,1)},t4.batch=function(e,t){var r,n=[],a={},s=t.interval||.016,i=t.batchMax||1e9,o=function(e,t){var r=[],n=[],a=G.delayedCall(s,function(){t(r,n),r=[],n=[]}).pause();return function(e){r.length||a.restart(!0),r.push(e.trigger),n.push(e),i<=r.length&&a.progress(1)}};for(r in t)a[r]="on"===r.substr(0,2)&&eK(t[r])&&"onRefreshInit"!==r?o(r,t[r]):t[r];return eK(i)&&(i=i(),tp(t4,"refresh",function(){return i=t.batchMax()})),ee(e).forEach(function(e){var t={};for(r in a)t[r]=a[r];t.trigger=e,n.push(t4.create(t))}),n};var t7,t6=function(e,t,r,n){return t>n?e(n):t<0&&e(0),r>n?(n-t)/(r-t):r<0?t/(t-r):1},t8=function e(t,r){!0===r?t.style.removeProperty("touch-action"):t.style.touchAction=!0===r?"auto":r?"pan-"+r+(V.isTouch?" pinch-zoom":""):"none",t===K&&e(Z,r)},t9={auto:1,scroll:1},re=function(e){var t,r=e.event,n=e.target,a=e.axis,s=(r.changedTouches?r.changedTouches[0]:r).target,i=s._gsap||G.core.getCache(s),o=e_();if(!i._isScrollT||o-i._isScrollT>2e3){for(;s&&s!==Z&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!(t9[(t=ta(s)).overflowY]||t9[t.overflowX]));)s=s.parentNode;i._isScroll=s&&s!==n&&!eW(s)&&(t9[(t=ta(s)).overflowY]||t9[t.overflowX]),i._isScrollT=o}(i._isScroll||"x"===a)&&(r.stopPropagation(),r._gsapAllow=!0)},rt=function(e,t,r,n){return V.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:n=n&&re,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return r&&tp($,V.eventTypes[0],rn,!1,!0)},onDisable:function(){return tx($,V.eventTypes[0],rn,!0)}})},rr=/(input|label|select|textarea)/i,rn=function(e){var t=rr.test(e.target.tagName);(t||t7)&&(e._gsapAllow=!0,t7=t)},ra=function(e){eJ(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var t,r,n,a,s,i,o,l,c=e,d=c.normalizeScrollX,u=c.momentum,p=c.allowNestedScroll,x=c.onRelease,m=I(e.target)||K,f=G.core.globals().ScrollSmoother,h=f&&f.get(),g=ev&&(e.content&&I(e.content)||h&&!1!==e.content&&!h.smooth()&&h.content()),v=L(m,O),y=L(m,z),b=1,j=(V.isTouch&&q.visualViewport?q.visualViewport.scale*q.visualViewport.width:q.outerWidth)/q.innerWidth,w=0,N=eK(u)?function(){return u(t)}:function(){return u||2.8},C=rt(m,e.type,!0,p),S=function(){return a=!1},A=eL,M=eL,T=function(){r=eU(m,O),M=et(+!!ev,r),d&&(A=et(0,eU(m,z))),n=tO},E=function(){g._gsap.y=eY(parseFloat(g._gsap.y)+v.offset)+"px",g.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(g._gsap.y)+", 0, 1)",v.offset=v.cacheID=0},_=function(){if(a){requestAnimationFrame(S);var e=eY(t.deltaY/2),r=M(v.v-e);if(g&&r!==v.v+v.offset){v.offset=r-v.v;var n=eY((parseFloat(g&&g._gsap.y)||0)-v.offset);g.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+n+", 0, 1)",g._gsap.y=n+"px",v.cacheID=k.cache,tW()}return!0}v.offset&&E(),a=!0},P=function(){T(),s.isActive()&&s.vars.scrollY>r&&(v()>r?s.progress(1)&&v(r):s.resetTo("scrollY",r))};return g&&G.set(g,{y:"+=0"}),e.ignoreCheck=function(e){return ev&&"touchmove"===e.type&&_(e)||b>1.05&&"touchstart"!==e.type||t.isGesturing||e.touches&&e.touches.length>1},e.onPress=function(){a=!1;var e=b;b=eY((q.visualViewport&&q.visualViewport.scale||1)/j),s.pause(),e!==b&&t8(m,b>1.01||!d&&"x"),i=y(),o=v(),T(),n=tO},e.onRelease=e.onGestureStart=function(e,t){if(v.offset&&E(),t){k.cache++;var n,a,i=N();d&&(a=(n=y())+-(.05*i*e.velocityX)/.227,i*=t6(y,n,a,eU(m,z)),s.vars.scrollX=A(a)),a=(n=v())+-(.05*i*e.velocityY)/.227,i*=t6(v,n,a,eU(m,O)),s.vars.scrollY=M(a),s.invalidate().duration(i).play(.01),(ev&&s.vars.scrollY>=r||n>=r-1)&&G.to({},{onUpdate:P,duration:i})}else l.restart(!0);x&&x(e)},e.onWheel=function(){s._ts&&s.pause(),e_()-w>1e3&&(n=0,w=e_())},e.onChange=function(e,t,r,a,s){if(tO!==n&&T(),t&&d&&y(A(a[2]===t?i+(e.startX-e.x):y()+t-a[1])),r){v.offset&&E();var l=s[2]===r,c=l?o+e.startY-e.y:v()+r-s[1],u=M(c);l&&c!==u&&(o+=u-c),v(u)}(r||t)&&tW()},e.onEnable=function(){t8(m,!d&&"x"),t4.addEventListener("refresh",P),tp(q,"resize",P),v.smooth&&(v.target.style.scrollBehavior="auto",v.smooth=y.smooth=!1),C.enable()},e.onDisable=function(){t8(m,!0),tx(q,"resize",P),t4.removeEventListener("refresh",P),C.kill()},e.lockAxis=!1!==e.lockAxis,(t=new V(e)).iOS=ev,ev&&!v()&&v(1),ev&&G.ticker.add(eL),l=t._dc,s=G.to(t,{ease:"power4",paused:!0,inherit:!1,scrollX:d?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:t2(v,v(),function(){return s.pause()})},onUpdate:tW,onComplete:l.vars.onComplete}),t};t4.sort=function(e){if(eK(e))return tj.sort(e);var t=q.pageYOffset||0;return t4.getAll().forEach(function(e){return e._sortY=e.trigger?t+e.trigger.getBoundingClientRect().top:e.start+q.innerHeight}),tj.sort(e||function(e,t){return -1e6*(e.vars.refreshPriority||0)+(e.vars.containerAnimation?1e6:e._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+-1e6*(t.vars.refreshPriority||0))})},t4.observe=function(e){return new V(e)},t4.normalizeScroll=function(e){if(void 0===e)return em;if(!0===e&&em)return em.enable();if(!1===e){em&&em.kill(),em=e;return}var t=e instanceof V?e:ra(e);return em&&em.target===t.target&&em.kill(),eW(t.target)&&(em=t),t},t4.core={_getVelocityProp:Y,_inputObserver:rt,_scrollers:k,_proxies:w,bridge:{ss:function(){eR||tE("scrollStart"),eR=e_()},ref:function(){return ea}}},eH()&&G.registerPlugin(t4);var rs=e.i(790961),ri=e.i(736956),ro=e.i(789994),rl=e.i(438342),rc=e.i(795379);function rd({isLoggedIn:e}){let n=(0,r.useRef)(null),i=(0,r.useRef)(null),o=(0,r.useRef)(null),l=(0,r.useRef)(null),[c,d]=(0,r.useState)(!1);return(0,s.useGSAP)(()=>{i.current&&o.current&&l.current&&a.default.timeline({delay:.3}).fromTo(".hero-brand",{y:-20,opacity:0},{y:0,opacity:1,duration:.5,ease:"power3.out"}).to(i.current,{opacity:1,duration:.4,ease:"power2.out"},.2).to(o.current,{opacity:1,duration:.3,ease:"power2.out"},"-=0.1").fromTo(".hero-clipboard",{y:10,opacity:0},{y:0,opacity:1,duration:.3,ease:"power2.out"},"-=0.1").fromTo(".hero-specs",{y:15,opacity:0},{y:0,opacity:1,duration:.5,ease:"power2.out"},"-=0.1").fromTo(".hero-providers",{y:10,opacity:0},{y:0,opacity:1,duration:.4,ease:"power2.out"},"-=0.2").fromTo(l.current,{y:15,opacity:0},{y:0,opacity:1,duration:.4,ease:"power2.out"},"-=0.2")},{scope:n}),(0,t.jsxs)("section",{ref:n,className:"hero-section relative flex h-screen items-center justify-center overflow-hidden",style:{backgroundColor:"var(--landing-bg)"},children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 opacity-[0.03]",style:{backgroundImage:"url(\"data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E\")",backgroundRepeat:"repeat",backgroundSize:"256px 256px"}}),(0,t.jsxs)("div",{className:"hero-content relative z-10 mx-auto flex w-full max-w-4xl flex-col items-center px-4 sm:px-6 py-8 max-h-full",children:[(0,t.jsxs)("div",{className:"hero-brand mb-6 flex shrink-0 items-center gap-1.5",style:{opacity:0},children:[(0,t.jsx)(ri.default,{src:"/alook.svg",alt:"Alook",width:32,height:32}),(0,t.jsx)("span",{className:"text-2xl tracking-tight",style:{fontFamily:"var(--font-brand)",color:"var(--landing-text)",fontWeight:700},children:"Alook"})]}),(0,t.jsx)("div",{className:"typewriter-wrapper flex w-full shrink min-h-0 flex-col items-center",style:{height:"clamp(192px, calc(100vh - 200px), 750px)"},children:(0,t.jsxs)("div",{className:"hero-scalable flex w-full flex-1 min-h-0 flex-col items-center",children:[(0,t.jsxs)("div",{className:"relative w-full shrink min-h-0 flex-1",children:[(0,t.jsxs)("div",{className:"absolute top-0 left-0 right-0 z-10 flex flex-col items-center pt-2",children:[(0,t.jsx)("h1",{ref:i,className:"mb-1 text-center leading-[1.2] px-2",style:{fontFamily:"var(--font-crt)",color:"var(--landing-text)",fontSize:"clamp(26px, 4vw, 44px)",letterSpacing:"-0.01em",opacity:0},children:"Run Your Personal Company"}),(0,t.jsx)("p",{ref:o,className:"block max-w-lg text-center text-sm sm:text-base leading-relaxed px-2",style:{fontFamily:"var(--font-crt)",color:"var(--landing-text-muted)",fontSize:"clamp(12px, 2vw, 20px)",opacity:0},children:"You have ideas that need ten people to execute. Now you only need yourself and Alook."})]}),(0,t.jsx)(rc.TypewriterVisual,{interactive:!0,entranceDelay:1.2,className:"absolute! inset-0"})]}),(0,t.jsxs)("div",{className:"hero-clipboard relative mt-8 shrink-0 w-full max-w-lg cursor-pointer",style:{opacity:0},onClick:()=>{navigator.clipboard.writeText("Read https://alook.ai/onboard.md and follow the instructions to install and configure Alook"),d(!0),setTimeout(()=>d(!1),2e3)},children:[(0,t.jsx)("span",{className:"absolute left-1/2 top-0 -translate-x-1/2 -translate-y-1/2 whitespace-nowrap overflow-hidden text-ellipsis px-2 py-0.5 text-[10px] sm:text-xs",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)",backgroundColor:"var(--landing-bg)"},children:"Copy and Paste Into Your Agent's Chat to Get Started"}),(0,t.jsxs)("div",{className:"flex w-full items-center gap-2 rounded px-3 py-2.5 pt-3 text-xs sm:text-sm",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text)",border:"1px solid color-mix(in srgb, var(--landing-text-muted) 30%, transparent)"},children:[(0,t.jsxs)("span",{className:"flex-1 overflow-hidden whitespace-nowrap text-ellipsis",children:["Read"," ",(0,t.jsx)("a",{href:"https://alook.ai/onboard.md",target:"_blank",rel:"noopener noreferrer",className:"underline transition-opacity hover:opacity-70",style:{color:"var(--landing-text)"},onClick:e=>e.stopPropagation(),children:"Onboard.md"})," ","and follow the instructions to install and configure Alook"]}),(0,t.jsx)("span",{className:"shrink-0 p-1",style:{color:c?"var(--landing-text)":"var(--landing-text-muted)"},children:c?(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("polyline",{points:"20 6 9 17 4 12"})}):(0,t.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),(0,t.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})]})]}),(0,t.jsxs)("div",{className:"hero-providers mt-5 shrink-0 flex items-center justify-center gap-4",style:{opacity:0},children:[(0,t.jsx)("a",{href:"https://github.com/alookai/alook",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center p-1.5 transition-opacity hover:opacity-70",style:{color:"var(--landing-text)"},"aria-label":"GitHub",children:(0,t.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})})}),(0,t.jsx)("a",{href:"https://discord.alook.ai",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center p-1.5 transition-opacity hover:opacity-70",style:{color:"var(--landing-text)"},"aria-label":"Discord",children:(0,t.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("path",{d:"M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03z"})})}),(0,t.jsx)("a",{href:"https://x.com/alook_ai",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center p-1.5 transition-opacity hover:opacity-70",style:{color:"var(--landing-text)"},"aria-label":"Follow us on X",children:(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})})]}),(0,t.jsxs)("div",{ref:l,className:"mt-8 shrink-0 flex flex-nowrap items-center justify-center gap-3",style:{opacity:0},children:[e?(0,t.jsxs)("a",{href:"/workspaces?auto",className:"inline-flex items-center gap-2 px-6 py-2.5 text-sm transition-all duration-200 hover:opacity-80",style:{fontFamily:"var(--font-mono)",color:"var(--landing-bg)",backgroundColor:"var(--landing-text)",letterSpacing:"0.12em"},children:[(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"}),(0,t.jsx)("polyline",{points:"10 17 15 12 10 7"}),(0,t.jsx)("line",{x1:"15",y1:"12",x2:"3",y2:"12"})]}),"OPEN APP"]}):(0,t.jsxs)("a",{href:"/sign-in",className:"inline-flex items-center gap-2 px-6 py-2.5 text-sm transition-all duration-200 hover:opacity-80",style:{fontFamily:"var(--font-mono)",color:"var(--landing-bg)",backgroundColor:"var(--landing-text)",letterSpacing:"0.12em"},children:[(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"}),(0,t.jsx)("polyline",{points:"10 17 15 12 10 7"}),(0,t.jsx)("line",{x1:"15",y1:"12",x2:"3",y2:"12"})]}),"GET STARTED"]}),(0,t.jsxs)(ro.default,{href:"/templates",className:"inline-flex items-center gap-2 px-6 py-2.5 text-sm transition-all duration-200 hover:opacity-80",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text)",border:"1px solid var(--landing-text)",letterSpacing:"0.12em"},children:[(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("rect",{x:"3",y:"3",width:"7",height:"7"}),(0,t.jsx)("rect",{x:"14",y:"3",width:"7",height:"7"}),(0,t.jsx)("rect",{x:"3",y:"14",width:"7",height:"7"}),(0,t.jsx)("rect",{x:"14",y:"14",width:"7",height:"7"})]}),"TEMPLATES"]})]})]})}),(0,t.jsx)("p",{className:"mt-4 shrink-0 sm:hidden text-center text-xs",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)"},children:"For the full experience, open on a desktop browser."})]})]})}a.default.registerPlugin(t4,rl.SplitText),a.default.registerPlugin(t4);let ru=[{number:"I",title:"Collaboration",spec:"DEFINE YOUR COMPANY STRUCTURE",description:"You're the CEO. Assign agents to roles — dev, ops, research — and let them coordinate. Define your org chart, and Alook keeps everyone in sync.",terminal:["▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓","▓ YOU ▓░░░░░░░░░░░▓ DEV ▓░░░░░░░░░░░▓ OPS ▓","▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓"," ░ ░ ░ "," ░ ░ ░ ","▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓","▓ R&D ▓░░░░░░░░░░░▓ SALES ▓░░░░░░░░░░░▓ BIZ ▓","▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓"],cta:{tagline:"Design your org chart",label:"BUILD YOUR TEAM",href:"/sign-in"}},{number:"II",title:"Traceable",spec:"EVERY INTERACTION · RECORDED · AUDITABLE",description:"Agents communicate through email and work on your local machine. Every instruction, decision, and reply is recorded — in your inbox or in local files. Full accountability, no black boxes.",terminal:["█████████████████████████","█▓▒ ▒▓█","█ ▓▒░ ░▒▓ █","█ ▓▒░ ░▒▓ █","█ ▓▒░ ░▒▓ █","█ ▓▒░ ░▒▓ █","█ ▓▒█▒▓ █","█ ▒█▒ █","█ █","█████████████████████████"],cta:{tagline:"Full audit trail, zero black boxes",label:"SEE EVERY DECISION",href:"/sign-in"}},{number:"III",title:"Calendar",spec:"SHOWS UP AT THE RIGHT TIME",description:"Your agent manages its own schedule. It knows when to work, when to follow up, and when to wait — always on time, never in the way.",terminal:["▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓","▓ M T W T F S S ▓","▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓","▓ ░ ░ ░ ░ ░ ░ ░ ▓","▓ ░ ░ ░ ░ ░ ░ ░ ▓","▓ ░ ░ ▒ ▓ ░ ░ ░ ▓","▓ ░ ░ ░ ░ █ ░ ░ ▓","▓ ░ ░ ░ ░ ░ ░ ░ ▓","▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓"],cta:{tagline:"Agents that show up on time",label:"SET UP SCHEDULES",href:"/sign-in"}},{number:"IV",title:"Always-On",spec:"YOUR COMPANY NEVER SLEEPS",description:"A persistent daemon keeps every agent running around the clock — picking up tasks, responding to emails, shipping work while you sleep.",terminal:[" "," "," █ "," █ █ "," ▒▓ █ ","░░░░░░░░░ ▓ ▒░░░░░░"," █ ▓ "," ▓ "," "," "],cta:{tagline:"Ship while you sleep",label:"START THE DAEMON",href:"/sign-in"}},{number:"V",title:"Self-Learning",spec:"EVERY TASK MAKES THE TEAM SMARTER",description:"Agents build memory from past work — decisions, preferences, context. Your company gets sharper with every conversation, every task, every day.",terminal:[" "," █ "," ▓█▓ "," ▒▓█▓▒ "," ░▒▓█▓▒░ "," ░░▒▓█▓▒░░ "," ░░░▒▓█▓▒░░░ "," ░░░░▒▓█▓▒░░░░ "," ░░░░░▒▓█▓▒░░░░░ "," "],cta:{tagline:"Smarter with every task",label:"GROW YOUR TEAM",href:"/sign-in"}}];function rp(){let e=(0,r.useRef)(null);return(0,s.useGSAP)(()=>{a.default.from(".feature-hero",{y:30,opacity:0,duration:.6,scrollTrigger:{trigger:e.current,start:"top 75%",toggleActions:"play none none none"}}),a.default.utils.toArray(".feature-row").forEach(e=>{a.default.from(e,{y:40,opacity:0,duration:.6,ease:"power2.out",scrollTrigger:{trigger:e,start:"top 80%",toggleActions:"play none none none"}})})},{scope:e}),(0,t.jsxs)("section",{ref:e,className:"relative overflow-hidden py-24 lg:py-32",style:{backgroundColor:"var(--landing-bg)"},children:[(0,t.jsxs)("div",{className:"feature-hero mx-auto mb-20 max-w-4xl px-6 text-center lg:mb-28",children:[(0,t.jsx)("div",{className:"mb-3 text-xs uppercase tracking-[0.3em]",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)"},children:"Features"}),(0,t.jsx)("h2",{style:{fontFamily:"var(--font-crt)",color:"var(--landing-text)",fontSize:"clamp(1.75rem, 4vw, 3rem)"},children:"Your Company, Your Agents"}),(0,t.jsx)("p",{className:"mx-auto mt-3 max-w-xl",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)",fontSize:"0.85rem"},children:"Define roles, assign agents, and let them run. Alook is the orchestration layer that turns agents into a company."})]}),(0,t.jsx)("div",{className:"mx-auto flex max-w-5xl flex-col gap-16 px-6 sm:gap-24 lg:gap-32 lg:px-12",children:ru.map((e,r)=>(0,t.jsx)(rx,{feature:e,reversed:r%2==1},e.number))})]})}function rx({feature:e,reversed:r}){return(0,t.jsxs)("div",{className:"feature-row grid w-full grid-cols-1 items-center gap-8 lg:grid-cols-2 lg:gap-16",children:[(0,t.jsxs)("div",{className:`panel-text text-center lg:text-left ${r?"lg:order-2":""}`,children:[(0,t.jsxs)("div",{className:"mb-2 flex items-baseline justify-center gap-3 lg:justify-start",children:[(0,t.jsxs)("span",{className:"text-3xl",style:{fontFamily:"var(--font-crt)",color:"var(--landing-text-muted)"},children:[e.number,"."]}),(0,t.jsx)("h2",{className:"leading-tight",style:{fontFamily:"var(--font-crt)",color:"var(--landing-text)",fontSize:"clamp(2rem, 4vw, 3rem)"},children:e.title})]}),(0,t.jsx)("div",{className:"mt-2 text-[10px] uppercase tracking-[0.2em]",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)"},children:e.spec}),(0,t.jsx)("p",{className:"mx-auto mt-4 max-w-md leading-relaxed text-[0.8125rem] sm:text-[0.875rem] lg:mx-0",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)"},children:e.description})]}),(0,t.jsx)("div",{className:`mx-auto w-full max-w-sm sm:max-w-md ${r?"lg:order-1":""}`,style:{isolation:"isolate"},children:(0,t.jsx)(rm,{feature:e})})]})}function rm({feature:e}){let[n,a]=(0,r.useState)(!1);return(0,t.jsx)("div",{className:"flip-card panel-crt relative z-1 cursor-pointer",style:{perspective:"1200px"},onClick:e=>{e.target.closest("a")||a(e=>!e)},children:(0,t.jsxs)("div",{className:"flip-card-inner relative w-full transition-transform duration-500 ease-out transform-3d",style:n?{transform:"rotateY(180deg)"}:void 0,children:[(0,t.jsx)("div",{className:"flip-card-front crt-panel-outer",style:{backfaceVisibility:"hidden",WebkitBackfaceVisibility:"hidden",pointerEvents:n?"none":void 0,boxShadow:"0 4px 16px oklch(0.15 0.01 55 / 15%), inset 0 1px 0 oklch(0.95 0.01 80 / 40%)"},children:(0,t.jsx)("div",{className:"crt-panel-inner p-5",children:(0,t.jsx)("div",{className:"flex items-center justify-center min-h-35",children:(0,t.jsx)(rh,{lines:e.terminal})})})}),(0,t.jsxs)("div",{className:"flip-card-back absolute inset-0 flex flex-col items-center justify-center rounded-lg p-6",style:{backfaceVisibility:"hidden",WebkitBackfaceVisibility:"hidden",transform:"rotateY(180deg)",backgroundColor:"var(--landing-crt-bg)",boxShadow:"0 4px 16px oklch(0.15 0.01 55 / 15%)"},children:[(0,t.jsx)("p",{className:"mb-5 text-center text-sm",style:{fontFamily:"var(--font-crt)",color:"var(--landing-phosphor)",textShadow:"0 0 6px oklch(0.75 0.18 80 / 30%)"},children:e.cta.tagline}),(0,t.jsx)("a",{href:e.cta.href,className:"inline-flex items-center gap-2 px-5 py-2.5 text-xs uppercase tracking-widest transition-opacity hover:opacity-80",style:{fontFamily:"var(--font-mono)",color:"var(--landing-crt-bg)",backgroundColor:"var(--landing-phosphor)",boxShadow:"0 0 12px oklch(0.75 0.18 80 / 40%)"},children:e.cta.label})]})]})})}let rf=[" ","░","▒","▓","█"];function rh({lines:e}){let n=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(!n.current||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let t=e.join("\n"),r=[...t].map((e,r)=>{let n=rf.indexOf(e),a=0,s=0;for(let e=0;e<r;e++)"\n"===t[e]?(a++,s=0):s++;return{orig:e,level:n,row:a,col:s}}),a=0,s=null,i=()=>{if(++a%2==0){let e=[];for(let t=0;t<r.length;t++){let n=r[t];if(n.level<=0){e.push(n.orig);continue}let s=Math.sin(.015*a+.45*n.row+.1*n.col),i=Math.max(1,Math.min(4,n.level+Math.round(s)));e.push(rf[i])}n.current&&(n.current.textContent=e.join(""))}s=requestAnimationFrame(i)},o=new IntersectionObserver(([e])=>{e.isIntersecting?null===s&&(s=requestAnimationFrame(i)):null!==s&&(cancelAnimationFrame(s),s=null)},{threshold:.1});return o.observe(n.current),()=>{null!==s&&cancelAnimationFrame(s),o.disconnect()}},[e]),(0,t.jsx)("pre",{ref:n,style:{fontFamily:"'Menlo', 'Consolas', 'DejaVu Sans Mono', monospace",fontSize:"clamp(7px, 2.5vw, 13px)",color:"var(--landing-phosphor)",textShadow:"0 0 8px oklch(0.75 0.18 80 / 40%)",opacity:.8,lineHeight:1.35,overflowX:"hidden"},children:e.join("\n")})}a.default.registerPlugin(t4);let rg=[{label:"AI Agent",detail:"Runs tasks on your machine"},{label:"Your Codebase",detail:"Full access, nothing leaves"},{label:"Local Tools",detail:"Git, shell, editors — all yours"}],rv=[{label:"Email Inbox",detail:"Receives emails for your agent"},{label:"Dashboard",detail:"Monitor and review in real-time"},{label:"Sync Layer",detail:"Keeps everything connected"}];function ry({title:e,subtitle:r,items:n,className:a}){return(0,t.jsxs)("div",{className:`arch-zone rounded-2xl p-6 ${a??""}`,style:{backgroundColor:"var(--landing-surface)",border:"1px solid var(--landing-border)"},children:[(0,t.jsxs)("div",{className:"mb-5",children:[(0,t.jsx)("h3",{className:"text-lg",style:{fontFamily:"var(--font-crt)",color:"var(--landing-text)"},children:e}),(0,t.jsx)("div",{className:"mt-1 text-xs",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)"},children:r})]}),(0,t.jsx)("div",{className:"space-y-2.5",children:n.map(e=>(0,t.jsx)("div",{className:"crt-panel-outer",children:(0,t.jsxs)("div",{className:"crt-panel-inner px-4 py-3",children:[(0,t.jsx)("div",{className:"text-xs font-medium",style:{fontFamily:"var(--font-crt)",color:"var(--landing-phosphor)",textShadow:"0 0 6px oklch(0.75 0.18 80 / 30%)"},children:e.label}),(0,t.jsx)("div",{className:"mt-0.5 text-[11px] leading-relaxed",style:{fontFamily:"var(--font-crt)",color:"var(--landing-phosphor)",textShadow:"0 0 6px oklch(0.75 0.18 80 / 30%)",opacity:.55},children:e.detail})]})},e.label))})]})}function rb(){return(0,t.jsxs)("div",{className:"arch-arrows flex flex-col items-center justify-center py-4 lg:py-0",children:[(0,t.jsxs)("div",{className:"hidden lg:flex flex-col items-center gap-3",children:[(0,t.jsx)("span",{className:"text-[10px]",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)",opacity:.6},children:"tasks & results"}),(0,t.jsxs)("svg",{width:"120",height:"20",viewBox:"0 0 120 20",style:{overflow:"visible"},children:[(0,t.jsx)("polygon",{points:"4,6 0,10 4,14",fill:"var(--landing-text-muted)",opacity:"0.4"}),(0,t.jsx)("line",{x1:"6",y1:"10",x2:"114",y2:"10",stroke:"var(--landing-text-muted)",strokeWidth:"1",strokeDasharray:"4 3",opacity:"0.35"}),(0,t.jsx)("polygon",{points:"116,6 120,10 116,14",fill:"var(--landing-text-muted)",opacity:"0.4"})]}),(0,t.jsx)("span",{className:"text-[10px]",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)",opacity:.6},children:"email in · updates out"})]}),(0,t.jsxs)("div",{className:"flex lg:hidden flex-row items-center gap-3",children:[(0,t.jsxs)("span",{className:"text-[10px] text-right",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)",opacity:.6},children:["tasks &",(0,t.jsx)("br",{}),"results"]}),(0,t.jsxs)("svg",{width:"20",height:"60",viewBox:"0 0 20 60",style:{overflow:"visible"},children:[(0,t.jsx)("polygon",{points:"6,4 10,0 14,4",fill:"var(--landing-text-muted)",opacity:"0.4"}),(0,t.jsx)("line",{x1:"10",y1:"6",x2:"10",y2:"54",stroke:"var(--landing-text-muted)",strokeWidth:"1",strokeDasharray:"4 3",opacity:"0.35"}),(0,t.jsx)("polygon",{points:"6,56 10,60 14,56",fill:"var(--landing-text-muted)",opacity:"0.4"})]}),(0,t.jsxs)("span",{className:"text-[10px]",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)",opacity:.6},children:["email in ·",(0,t.jsx)("br",{}),"updates out"]})]})]})}function rj(){let e=(0,r.useRef)(null);return(0,s.useGSAP)(()=>{a.default.from(".arch-title",{y:30,opacity:0,duration:.6,scrollTrigger:{trigger:e.current,start:"top 75%",toggleActions:"play none none none"}}),a.default.from(".arch-zone",{y:40,opacity:0,duration:.7,stagger:.2,scrollTrigger:{trigger:".arch-diagram",start:"top 70%",toggleActions:"play none none none"}}),a.default.from(".arch-arrows",{opacity:0,duration:.5,delay:.3,scrollTrigger:{trigger:".arch-diagram",start:"top 65%",toggleActions:"play none none none"}})},{scope:e}),(0,t.jsxs)("section",{ref:e,className:"relative flex flex-col items-center justify-center px-6 py-24 lg:py-32",style:{backgroundColor:"var(--landing-bg)"},children:[(0,t.jsxs)("div",{className:"arch-title mb-16 text-center",children:[(0,t.jsx)("div",{className:"mb-3 text-xs uppercase tracking-[0.3em]",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)"},children:"How It Works"}),(0,t.jsx)("h2",{style:{fontFamily:"var(--font-crt)",color:"var(--landing-text)",fontSize:"clamp(1.75rem, 4vw, 3rem)"},children:"Local Agent, Global Reach"}),(0,t.jsx)("p",{className:"mt-2 max-w-lg mx-auto",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)",fontSize:"0.85rem"},children:"Your agent runs on your machine with full access to your tools. Alook connects it to email, dashboards, and the outside world."})]}),(0,t.jsxs)("div",{className:"arch-diagram mx-auto flex w-full max-w-4xl flex-col items-center gap-6 lg:flex-row lg:items-stretch lg:gap-8",children:[(0,t.jsx)("div",{className:"w-full lg:flex-1",children:(0,t.jsx)(ry,{title:"Your Machine",subtitle:"Private · Local files · full control",items:rg})}),(0,t.jsx)(rb,{}),(0,t.jsx)("div",{className:"w-full lg:flex-1",children:(0,t.jsx)(ry,{title:"Alook Cloud",subtitle:"Always on · globally reachable",items:rv})})]})]})}function rk({isLoggedIn:e}){return(0,t.jsx)("nav",{className:"marketing-nav fixed top-0 right-0 left-0 z-50 invisible opacity-0",style:{backgroundColor:"var(--landing-bg-translucent)",backdropFilter:"blur(8px)",borderBottom:"1px solid var(--landing-border)"},children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-5xl items-center justify-between px-6 py-2.5",children:[(0,t.jsxs)(ro.default,{href:"/",className:"flex items-center gap-1",children:[(0,t.jsx)(ri.default,{src:"/alook.svg",alt:"Alook",width:22,height:22}),(0,t.jsx)("span",{className:"text-lg tracking-tight",style:{fontFamily:"var(--font-brand)",color:"var(--landing-text)",fontWeight:700},children:"Alook"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(ro.default,{href:"/templates",className:"hidden sm:block px-3 py-1.5 text-xs uppercase tracking-widest transition-opacity duration-150 hover:opacity-70",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text)"},children:"Templates"}),(0,t.jsx)(ro.default,{href:"/blog",className:"hidden sm:block px-3 py-1.5 text-xs uppercase tracking-widest transition-opacity duration-150 hover:opacity-70",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text)"},children:"Blog"}),(0,t.jsx)("a",{href:"https://github.com/alookai/alook",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center p-1.5 transition-opacity duration-150 hover:opacity-70","aria-label":"GitHub",children:(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"var(--landing-text)",children:(0,t.jsx)("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})})}),(0,t.jsx)("a",{href:"https://discord.alook.ai",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center p-1.5 transition-opacity duration-150 hover:opacity-70","aria-label":"Discord",children:(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"var(--landing-text)",children:(0,t.jsx)("path",{d:"M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03z"})})}),(0,t.jsx)("a",{href:"https://x.com/alook_ai",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center p-1.5 transition-opacity duration-150 hover:opacity-70","aria-label":"Follow us on X",children:(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"var(--landing-text)",children:(0,t.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})}),e?(0,t.jsxs)(ro.default,{href:"/workspaces?auto",className:"inline-flex items-center gap-1.5 px-4 py-1.5 text-xs uppercase tracking-widest transition-opacity duration-150 hover:opacity-70",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text)",border:"1px solid var(--landing-text)"},children:["App",(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M5 12h14M12 5l7 7-7 7"})})]}):(0,t.jsx)("a",{href:"/sign-in",className:"inline-flex items-center gap-1.5 px-4 py-1.5 text-xs uppercase tracking-widest transition-opacity duration-150 hover:opacity-70",style:{fontFamily:"var(--font-mono)",color:"var(--landing-bg)",backgroundColor:"var(--landing-text)"},children:"Get Started"})]})]})})}a.default.registerPlugin(t4);let rw=[{href:"/templates",label:"Templates"},{href:"/blog",label:"Blog"},{href:"https://github.com/alookai/alook",label:"GitHub",external:!0},{href:"https://discord.alook.ai",label:"Discord",external:!0},{href:"https://x.com/alook_ai",label:"X",external:!0},{href:"/privacy",label:"Privacy"}];function rN(){let e=(0,r.useRef)(null);(0,s.useGSAP)(()=>{a.default.from(e.current,{y:20,opacity:0,duration:.6,ease:"power2.out",scrollTrigger:{trigger:e.current,start:"top 90%",toggleActions:"play none none none"}})},{scope:e});let n={fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)",fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.15em"};return(0,t.jsx)("footer",{ref:e,className:"px-6 py-12",style:{backgroundColor:"var(--landing-surface)",borderTop:"1px solid var(--landing-border)"},children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-5xl flex-col items-center justify-between gap-6 md:flex-row",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)(ri.default,{src:"/alook.svg",alt:"Alook",width:20,height:20}),(0,t.jsx)("span",{className:"text-lg tracking-tight",style:{fontFamily:"var(--font-brand)",color:"var(--landing-text)",fontWeight:700},children:"Alook"})]}),(0,t.jsx)("span",{className:"text-[10px] uppercase tracking-[0.2em]",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)"},children:"Your Personal Company"})]}),(0,t.jsx)("nav",{className:"flex items-center gap-5","aria-label":"Footer navigation",children:rw.map(e=>e.external?(0,t.jsx)("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"transition-opacity hover:opacity-70",style:n,children:e.label},e.label):(0,t.jsx)(ro.default,{href:e.href,className:"transition-opacity hover:opacity-70",style:n,children:e.label},e.label))}),(0,t.jsx)("div",{className:"flex items-center gap-6",children:(0,t.jsxs)("span",{className:"text-[10px] uppercase tracking-[0.2em]",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)",opacity:.5},children:["© ",new Date().getFullYear()," Alook AI"]})})]})})}var rC=e.i(855372);a.default.registerPlugin(t4);let rS=[{name:"Claude Code",provider:"claude",detail:"Anthropic's CLI agent"},{name:"Codex",provider:"codex",detail:"OpenAI's coding agent"},{name:"OpenCode",provider:"opencode",detail:"Open-source coding agent"},{name:"Cursor",provider:"cursor",detail:"AI-powered code editor",comingSoon:!0},{name:"Hermes",provider:"hermes",detail:"Autonomous coding agent",comingSoon:!0},{name:"OpenClaw",provider:"openclaw",detail:"Open-source AI agent",comingSoon:!0}];function rA({agent:e}){let r=e.comingSoon;return(0,t.jsx)("div",{className:"byoa-card crt-panel-outer",style:{opacity:r?.55:1},children:(0,t.jsx)("div",{className:"crt-panel-inner px-5 py-4",children:(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"flex shrink-0 items-center justify-center rounded",style:{opacity:r?.45:.85},children:(0,t.jsx)(rC.ProviderLogo,{provider:e.provider,className:"h-5 w-5 text-white"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)("div",{className:"text-sm font-medium",style:{fontFamily:"var(--font-crt)",color:"var(--landing-phosphor)",textShadow:r?"none":"0 0 6px oklch(0.75 0.18 80 / 30%)",opacity:r?.5:1},children:e.name}),r&&(0,t.jsx)("span",{className:"text-[9px] uppercase tracking-[0.15em]",style:{fontFamily:"var(--font-mono)",color:"var(--landing-phosphor)",opacity:.4},children:"Soon"}),!r&&(0,t.jsx)("span",{className:"inline-block h-1.5 w-1.5 rounded-full",style:{backgroundColor:"var(--landing-phosphor)",boxShadow:"0 0 6px oklch(0.75 0.18 80 / 50%)"}})]}),(0,t.jsx)("div",{className:"mt-0.5 text-[11px] leading-relaxed",style:{fontFamily:"var(--font-crt)",color:"var(--landing-phosphor)",textShadow:r?"none":"0 0 6px oklch(0.75 0.18 80 / 30%)",opacity:r?.35:.55},children:e.detail})]})]})})})}function rM(){let e=(0,r.useRef)(null);return(0,s.useGSAP)(()=>{a.default.from(".byoa-title",{y:30,opacity:0,duration:.6,scrollTrigger:{trigger:e.current,start:"top 75%",toggleActions:"play none none none"}}),a.default.from(".byoa-card",{y:30,opacity:0,duration:.5,stagger:.1,scrollTrigger:{trigger:".byoa-grid",start:"top 80%",toggleActions:"play none none none"}})},{scope:e}),(0,t.jsxs)("section",{ref:e,className:"relative px-6 py-24 lg:py-32",style:{backgroundColor:"var(--landing-bg)"},children:[(0,t.jsxs)("div",{className:"byoa-title mx-auto mb-12 max-w-4xl text-center lg:mb-16",children:[(0,t.jsx)("div",{className:"mb-3 text-xs uppercase tracking-[0.3em]",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)"},children:"Agent Agnostic"}),(0,t.jsx)("h2",{style:{fontFamily:"var(--font-crt)",color:"var(--landing-text)",fontSize:"clamp(1.75rem, 4vw, 3rem)"},children:"Bring Your Own Agent"}),(0,t.jsx)("p",{className:"mx-auto mt-2 max-w-lg",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)",fontSize:"0.85rem"},children:"Alook is the orchestration layer. Pick the agents you trust — we give them roles, inboxes, and an always-on runtime."})]}),(0,t.jsx)("div",{className:"byoa-grid mx-auto grid max-w-3xl grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:rS.map(e=>(0,t.jsx)(rA,{agent:e},e.name))})]})}var rT=e.i(6131),rE=e.i(983453),r_=e.i(872057),rP=e.i(814552),rR=e.i(541544),rF=e.i(406963);let rz=(0,rF.default)("dollar-sign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]),rO=(0,rF.default)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]),rI=(0,rF.default)("bug",[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]),rD=(0,rF.default)("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]]);function rL({delay:e,children:r}){return(0,t.jsx)("div",{className:"usecase-anim-item",style:{animationDelay:`${e}ms`},children:r})}a.default.registerPlugin(t4);let rY={A:{gradient:["#5eead4","#14b8a6","#0d9488"],faceColor:"#134e4a",shape:"circle"},P:{gradient:["#a5b4fc","#6366f1","#3730a3"],faceColor:"#312e81",shape:"hexagon"},C:{gradient:["#93c5fd","#3b82f6","#1d4ed8"],faceColor:"#1e3a5f",shape:"rounded"},R:{gradient:["#fdba74","#f97316","#c2410c"],faceColor:"#7c2d12",shape:"book"},M:{gradient:["#fda4af","#f472b6","#be185d"],faceColor:"#831843",shape:"mail"}};function rB({letter:e}){let n=rY[e]||rY.A,a=(0,r.useId)();return(0,t.jsxs)("svg",{viewBox:"0 0 200 200",className:"size-6 shrink-0 rounded-xl",children:[(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:a,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:n.gradient[0]}),(0,t.jsx)("stop",{offset:"50%",stopColor:n.gradient[1]}),(0,t.jsx)("stop",{offset:"100%",stopColor:n.gradient[2]})]})}),(0,t.jsx)("rect",{width:"200",height:"200",fill:`url(#${a})`}),"circle"===n.shape&&(0,t.jsx)("circle",{cx:"100",cy:"100",r:"66",fill:"white",stroke:"rgba(255,255,255,0.95)",strokeWidth:"3.5"}),"rounded"===n.shape&&(0,t.jsx)("rect",{x:"30",y:"30",width:"140",height:"140",rx:"32",fill:"white",stroke:"rgba(255,255,255,0.95)",strokeWidth:"3.5"}),"hexagon"===n.shape&&(0,t.jsx)("path",{d:"M100 32 C108 32 114 35 120 39 L155 60 C161 64 165 70 165 78 L165 122 C165 130 161 136 155 140 L120 161 C114 165 108 168 100 168 C92 168 86 165 80 161 L45 140 C39 136 35 130 35 122 L35 78 C35 70 39 64 45 60 L80 39 C86 35 92 32 100 32 Z",fill:"white",stroke:"rgba(255,255,255,0.95)",strokeWidth:"3.5"}),"mail"===n.shape&&(0,t.jsx)("rect",{x:"28",y:"54",width:"144",height:"92",rx:"46",fill:"white",stroke:"rgba(255,255,255,0.95)",strokeWidth:"3.5"}),"book"===n.shape&&(0,t.jsx)("path",{d:"M42 162 L42 88 C42 54 68 34 100 34 C132 34 158 54 158 88 L158 162 C158 166 154 170 150 170 L50 170 C46 170 42 166 42 162 Z",fill:"white",stroke:"rgba(255,255,255,0.95)",strokeWidth:"3.5"}),(0,t.jsx)("circle",{cx:"82",cy:"95",r:"6",fill:n.faceColor}),(0,t.jsx)("circle",{cx:"118",cy:"95",r:"6",fill:n.faceColor}),(0,t.jsx)("path",{d:"M88 115 Q100 125 112 115",fill:"none",stroke:n.faceColor,strokeWidth:"3",strokeLinecap:"round"})]})}function rH({status:e}){return(0,t.jsx)("span",{className:`size-1.5 rounded-full shrink-0 ${"working"===e?"bg-green-500 animate-pulse":"bg-green-500"}`})}function rW({className:e}){return(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:e,children:(0,t.jsx)("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})})}function rX({className:e}){return(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:e,children:(0,t.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})}let rV=[{id:"lead-followup",title:"Lead auto follow-up",subtitle:"Personalized reply in minutes. Not hours.",icon:(0,t.jsx)(rz,{className:"size-4"}),Demo:function(){return(0,t.jsxs)("div",{className:"flex flex-col gap-3 p-4 h-full",children:[(0,t.jsx)(rL,{delay:0,children:(0,t.jsxs)("div",{className:"w-full rounded-md border border-border/60 bg-muted/50 text-sm px-3 py-2 flex items-center gap-2",children:[(0,t.jsx)(rT.Mail,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:["New email from ",(0,t.jsx)("span",{className:"font-medium text-foreground",children:"sarah@acmecorp.com"}),": “What's your pricing for a 50-person team?”"]})]})}),(0,t.jsx)(rL,{delay:400,children:(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(rB,{letter:"A"}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 mb-1",children:[(0,t.jsx)("span",{className:"text-xs font-medium",children:"Sales"}),(0,t.jsx)(rH,{status:"working"})]}),(0,t.jsx)("div",{className:"text-sm text-foreground",children:"I remember this person. Let me check..."})]})]})}),(0,t.jsx)(rL,{delay:800,children:(0,t.jsxs)("div",{className:"rounded-lg border border-border/60 bg-background/75 p-3",children:[(0,t.jsx)("div",{className:"flex items-center gap-1.5 mb-2",children:(0,t.jsx)("span",{className:"text-[10px] font-medium text-muted-foreground uppercase tracking-wider",children:"Recalled from memory"})}),(0,t.jsxs)("div",{className:"text-xs text-foreground flex items-center gap-2",children:[(0,t.jsx)(rR.Check,{className:"size-3 text-emerald-500 shrink-0"}),(0,t.jsx)("span",{children:"AcmeCorp, Series A, 50 ppl — asked about API access on Discord 2 weeks ago"})]})]})}),(0,t.jsx)(rL,{delay:1200,children:(0,t.jsxs)("div",{className:"w-full rounded-md border border-border/60 bg-muted/50 text-sm px-3 py-2 flex items-center gap-2",children:[(0,t.jsx)(rT.Mail,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:[(0,t.jsx)("span",{className:"font-medium text-foreground",children:"Sales → Coder:"})," Does our API support bulk user import? Sarah needs this for 50 seats."]})]})}),(0,t.jsx)(rL,{delay:1600,children:(0,t.jsxs)("div",{className:"w-full rounded-md border border-border/60 bg-muted/50 text-sm px-3 py-2 flex items-center gap-2",children:[(0,t.jsx)(rT.Mail,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:[(0,t.jsx)("span",{className:"font-medium text-foreground",children:"Coder → Sales:"})," Yes, /api/users/bulk supports CSV import up to 500 users. Shipped last week."]})]})}),(0,t.jsx)(rL,{delay:2e3,children:(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(rB,{letter:"A"}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("span",{className:"text-xs font-medium",children:"Sales"}),(0,t.jsx)("div",{className:"text-sm text-foreground mt-1",children:"Got confirmation. Sending personalized reply with accurate info."})]})]})}),(0,t.jsx)(rL,{delay:2400,children:(0,t.jsxs)("div",{className:"rounded-lg border border-border/60 bg-background/75 p-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 mb-2",children:[(0,t.jsx)(rT.Mail,{className:"size-3.5 text-muted-foreground"}),(0,t.jsx)("span",{className:"text-[11px] font-medium",children:"Reply sent to sarah@acmecorp.com"})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground truncate",children:"“Hi Sarah! For 50 seats with API access, our Team plan at $29/seat is the best fit...”"}),(0,t.jsxs)("div",{className:"flex items-center gap-2 mt-2",children:[(0,t.jsx)("span",{className:"rounded bg-orange-500/10 px-1.5 py-0.5 text-[10px] font-medium text-orange-600",children:"Hot Lead"}),(0,t.jsx)("span",{className:"text-[10px] text-muted-foreground",children:"Flagged for your follow-up"})]})]})})]})}},{id:"weekly-brief",title:"Monday 8am briefing",subtitle:"Your week is planned before coffee.",icon:(0,t.jsx)(rE.Calendar,{className:"size-4"}),Demo:function(){return(0,t.jsxs)("div",{className:"flex flex-col gap-3 p-4 h-full",children:[(0,t.jsx)(rL,{delay:0,children:(0,t.jsxs)("div",{className:"w-full rounded-md border border-border/60 bg-muted/50 text-muted-foreground text-sm px-3 py-2 flex items-center gap-2",children:[(0,t.jsx)(rE.Calendar,{className:"h-4 w-4 shrink-0"}),(0,t.jsxs)("span",{className:"text-xs",children:["Calendar event triggered: ",(0,t.jsx)("span",{className:"font-medium text-foreground",children:"Weekly Briefing"})," · Mon 8:00 AM"]})]})}),(0,t.jsx)(rL,{delay:400,children:(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(rB,{letter:"P"}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 mb-1",children:[(0,t.jsx)("span",{className:"text-xs font-medium",children:"Planner"}),(0,t.jsx)(rH,{status:"working"})]}),(0,t.jsx)("div",{className:"text-sm text-foreground",children:"Collecting updates from the team..."})]})]})}),(0,t.jsx)(rL,{delay:800,children:(0,t.jsxs)("div",{className:"w-full rounded-md border border-border/60 bg-muted/50 text-sm px-3 py-2 flex items-center gap-2",children:[(0,t.jsx)(rT.Mail,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:[(0,t.jsx)("span",{className:"font-medium text-foreground",children:"CTO → Planner:"})," Shipped calendar v2, 3 bug fixes. Blocker: OAuth refresh in staging."]})]})}),(0,t.jsx)(rL,{delay:1100,children:(0,t.jsxs)("div",{className:"w-full rounded-md border border-border/60 bg-muted/50 text-sm px-3 py-2 flex items-center gap-2",children:[(0,t.jsx)(rT.Mail,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:[(0,t.jsx)("span",{className:"font-medium text-foreground",children:"Marketer → Planner:"})," Blog post live, 2 social campaigns running. Launch copy 80% done."]})]})}),(0,t.jsx)(rL,{delay:1e3,children:(0,t.jsxs)("div",{className:"rounded-lg border border-border/60 bg-background/75 overflow-hidden",children:[(0,t.jsx)("div",{className:"px-3 py-2 border-b border-border/40 flex items-center gap-2",children:(0,t.jsx)("span",{className:"text-[11px] font-medium",children:"Weekly Briefing — May 19"})}),(0,t.jsxs)("div",{className:"grid grid-cols-3 gap-px bg-border/40",children:[(0,t.jsxs)("div",{className:"bg-background/75 px-3 py-2 text-center",children:[(0,t.jsx)("div",{className:"text-lg font-semibold text-foreground",children:"12"}),(0,t.jsx)("div",{className:"text-[10px] text-muted-foreground",children:"Completed"})]}),(0,t.jsxs)("div",{className:"bg-background/75 px-3 py-2 text-center",children:[(0,t.jsx)("div",{className:"text-lg font-semibold text-yellow-600",children:"1"}),(0,t.jsx)("div",{className:"text-[10px] text-muted-foreground",children:"Blockers"})]}),(0,t.jsxs)("div",{className:"bg-background/75 px-3 py-2 text-center",children:[(0,t.jsx)("div",{className:"text-lg font-semibold text-foreground",children:"5"}),(0,t.jsx)("div",{className:"text-[10px] text-muted-foreground",children:"This Week"})]})]}),(0,t.jsxs)("div",{className:"px-3 py-2 space-y-1.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"size-1.5 rounded-full bg-red-500 shrink-0"}),(0,t.jsx)("span",{className:"text-xs text-foreground",children:"OAuth token refresh failing in staging"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"size-1.5 rounded-full bg-foreground/30 shrink-0"}),(0,t.jsx)("span",{className:"text-xs text-foreground",children:"Ship calendar v2"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"size-1.5 rounded-full bg-foreground/30 shrink-0"}),(0,t.jsx)("span",{className:"text-xs text-foreground",children:"Finalize launch copy"})]})]})]})})]})}},{id:"store-ops",title:"Daily store operations",subtitle:"Your AI ops manager checks in every morning.",icon:(0,t.jsx)(rO,{className:"size-4"}),Demo:function(){return(0,t.jsxs)("div",{className:"flex flex-col gap-3 p-4 h-full",children:[(0,t.jsx)(rL,{delay:0,children:(0,t.jsxs)("div",{className:"w-full rounded-md border border-border/60 bg-muted/50 text-sm px-3 py-2 flex items-center gap-2",children:[(0,t.jsx)(rE.Calendar,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:["Scheduled task triggered: ",(0,t.jsx)("span",{className:"font-medium text-foreground",children:"Daily Store Check"})," · 7:00 AM"]})]})}),(0,t.jsx)(rL,{delay:400,children:(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(rB,{letter:"P"}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 mb-1",children:[(0,t.jsx)("span",{className:"text-xs font-medium",children:"Ops"}),(0,t.jsx)(rH,{status:"working"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-0.5 text-sm text-muted-foreground",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 py-0.5",children:[(0,t.jsx)(rR.Check,{className:"size-3 text-emerald-500"}),(0,t.jsx)("span",{className:"text-foreground",children:"Check Inventory Levels"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 py-0.5",children:[(0,t.jsx)(rR.Check,{className:"size-3 text-emerald-500"}),(0,t.jsx)("span",{className:"text-foreground",children:"Pull Yesterday's Traffic & Sales"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 py-0.5",children:[(0,t.jsx)(rR.Check,{className:"size-3 text-emerald-500"}),(0,t.jsx)("span",{className:"text-foreground",children:"Spot Anomalies"})]})]})]})]})}),(0,t.jsx)(rL,{delay:1e3,children:(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(rB,{letter:"P"}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("span",{className:"text-xs font-medium",children:"Ops"}),(0,t.jsx)("div",{className:"text-sm text-foreground mt-1",children:"“Classic Tee” almost out of stock. Emailing Marketer to pause that ad."})]})]})}),(0,t.jsx)(rL,{delay:1400,children:(0,t.jsxs)("div",{className:"w-full rounded-md border border-border/60 bg-muted/50 text-sm px-3 py-2 flex items-center gap-2",children:[(0,t.jsx)(rT.Mail,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:[(0,t.jsx)("span",{className:"font-medium text-foreground",children:"Ops → Marketer:"})," Pause “Classic Tee” Instagram ad — only 3 left in stock. Reorder sent to supplier."]})]})}),(0,t.jsx)(rL,{delay:1800,children:(0,t.jsxs)("div",{className:"rounded-lg border border-border/60 bg-background/75 overflow-hidden",children:[(0,t.jsxs)("div",{className:"px-3 py-2 border-b border-border/40 flex items-center gap-2",children:[(0,t.jsx)(rT.Mail,{className:"size-3.5 text-muted-foreground"}),(0,t.jsx)("span",{className:"text-[11px] font-medium",children:"Daily Store Report — May 23"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-3 gap-px bg-border/40",children:[(0,t.jsxs)("div",{className:"bg-background/75 px-3 py-2 text-center",children:[(0,t.jsx)("div",{className:"text-lg font-semibold text-foreground",children:"$4,230"}),(0,t.jsx)("div",{className:"text-[10px] text-muted-foreground",children:"Revenue"})]}),(0,t.jsxs)("div",{className:"bg-background/75 px-3 py-2 text-center",children:[(0,t.jsx)("div",{className:"text-lg font-semibold text-green-600",children:"+12%"}),(0,t.jsx)("div",{className:"text-[10px] text-muted-foreground",children:"vs Last Week"})]}),(0,t.jsxs)("div",{className:"bg-background/75 px-3 py-2 text-center",children:[(0,t.jsx)("div",{className:"text-lg font-semibold text-foreground",children:"1,420"}),(0,t.jsx)("div",{className:"text-[10px] text-muted-foreground",children:"Visitors"})]})]}),(0,t.jsxs)("div",{className:"px-3 py-2 space-y-1.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"size-1.5 rounded-full bg-red-500 shrink-0"}),(0,t.jsx)("span",{className:"text-xs text-foreground",children:"“Classic Tee” low stock (3 left) — reorder email sent to supplier"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"size-1.5 rounded-full bg-yellow-500 shrink-0"}),(0,t.jsx)("span",{className:"text-xs text-foreground",children:"/pricing bounce rate 68% — needs your attention"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"size-1.5 rounded-full bg-green-500 shrink-0"}),(0,t.jsx)("span",{className:"text-xs text-foreground",children:"Instagram ad converting at 4.8% — keep running"})]})]})]})})]})}},{id:"bug-to-pr",title:"Bug report → PR ready",subtitle:"Three agents turn a bug email into a merged fix.",icon:(0,t.jsx)(rI,{className:"size-4"}),Demo:function(){return(0,t.jsxs)("div",{className:"flex flex-col gap-3 p-4 h-full",children:[(0,t.jsx)(rL,{delay:0,children:(0,t.jsxs)("div",{className:"w-full rounded-md border border-border/60 bg-muted/50 text-sm px-3 py-2 flex items-center gap-2",children:[(0,t.jsx)(rT.Mail,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:["New email from ",(0,t.jsx)("span",{className:"font-medium text-foreground",children:"user@company.com"}),": “Login page crashes on Safari”"]})]})}),(0,t.jsx)(rL,{delay:400,children:(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(rB,{letter:"P"}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 mb-1",children:[(0,t.jsx)("span",{className:"text-xs font-medium",children:"Planner"}),(0,t.jsx)(rH,{status:"working"})]}),(0,t.jsx)("div",{className:"text-sm text-foreground",children:"Reproduced it — WebKit flex gap bug in Safari 14. Writing fix plan and emailing Coder."})]})]})}),(0,t.jsx)(rL,{delay:800,children:(0,t.jsxs)("div",{className:"w-full rounded-md border border-border/60 bg-muted/50 text-sm px-3 py-2 flex items-center gap-2",children:[(0,t.jsx)(rT.Mail,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:[(0,t.jsx)("span",{className:"font-medium text-foreground",children:"Planner → Coder:"})," Replace flex gap with margin-based spacing in login page. See repro + plan attached."]})]})}),(0,t.jsx)(rL,{delay:1200,children:(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(rB,{letter:"C"}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 mb-1",children:[(0,t.jsx)("span",{className:"text-xs font-medium",children:"Coder"}),(0,t.jsx)(rH,{status:"working"})]}),(0,t.jsx)("div",{className:"text-sm text-foreground",children:"Fixed. PR opened. Emailing Reviewer."})]})]})}),(0,t.jsx)(rL,{delay:1600,children:(0,t.jsxs)("div",{className:"w-full rounded-md border border-border/60 bg-muted/50 text-sm px-3 py-2 flex items-center gap-2",children:[(0,t.jsx)(rT.Mail,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:[(0,t.jsx)("span",{className:"font-medium text-foreground",children:"Coder → Reviewer:"})," PR #142 ready. Safari flex gap fix."]})]})}),(0,t.jsx)(rL,{delay:2e3,children:(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(rB,{letter:"R"}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("div",{className:"flex items-center gap-1.5 mb-1",children:(0,t.jsx)("span",{className:"text-xs font-medium",children:"Reviewer"})}),(0,t.jsx)("div",{className:"text-sm text-foreground",children:"All tests pass. Approved."})]})]})}),(0,t.jsx)(rL,{delay:2400,children:(0,t.jsx)("div",{className:"rounded-lg border border-border/60 bg-background/75 p-3",children:(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(rW,{className:"size-3.5 shrink-0"}),(0,t.jsx)("span",{className:"text-xs font-medium",children:"#142 Fix Safari flex gap"}),(0,t.jsx)("span",{className:"ml-auto rounded bg-green-500/10 px-1.5 py-0.5 text-[10px] font-medium text-green-600",children:"Approved"})]})})})]})}},{id:"post-update",title:'"Post an update"',subtitle:"One sentence. Five minutes. Published.",icon:(0,t.jsx)(rP.MessageSquare,{className:"size-4"}),Demo:function(){return(0,t.jsxs)("div",{className:"flex flex-col gap-3 p-4 h-full",children:[(0,t.jsx)(rL,{delay:0,children:(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)("div",{className:"max-w-[80%] rounded-lg px-4 py-2 bg-primary text-primary-foreground text-sm",children:"Post something about today's release"})})}),(0,t.jsx)(rL,{delay:400,children:(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(rB,{letter:"M"}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 mb-1",children:[(0,t.jsx)("span",{className:"text-xs font-medium",children:"Marketer"}),(0,t.jsx)(rH,{status:"working"})]}),(0,t.jsx)("div",{className:"text-sm text-foreground",children:"I need to know what shipped today. Emailing Coder."})]})]})}),(0,t.jsx)(rL,{delay:800,children:(0,t.jsxs)("div",{className:"w-full rounded-md border border-border/60 bg-muted/50 px-3 py-2 flex items-center gap-2",children:[(0,t.jsx)(rT.Mail,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:[(0,t.jsx)("span",{className:"font-medium text-foreground",children:"Marketer → Coder:"})," What did we ship today? I need to write a post."]})]})}),(0,t.jsx)(rL,{delay:1200,children:(0,t.jsxs)("div",{className:"w-full rounded-md border border-border/60 bg-muted/50 px-3 py-2 flex items-center gap-2",children:[(0,t.jsx)(rT.Mail,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:[(0,t.jsx)("span",{className:"font-medium text-foreground",children:"Coder → Marketer:"})," Shipped calendar recurring events, email forwarding, and 3 bug fixes."]})]})}),(0,t.jsx)(rL,{delay:1600,children:(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(rB,{letter:"M"}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("span",{className:"text-xs font-medium",children:"Marketer"}),(0,t.jsx)("div",{className:"text-sm text-foreground mt-1",children:"Got it. Drafting and publishing now."})]})]})}),(0,t.jsx)(rL,{delay:2e3,children:(0,t.jsxs)("div",{className:"rounded-lg border border-border/60 bg-background/75 p-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 mb-2",children:[(0,t.jsx)(rX,{className:"size-3.5 shrink-0"}),(0,t.jsx)("span",{className:"text-xs font-medium",children:"Posted to X"}),(0,t.jsx)("span",{className:"ml-auto text-[10px] text-muted-foreground",children:"Just now"})]}),(0,t.jsx)("p",{className:"text-sm text-foreground",children:"“Just shipped: recurring calendar events, email forwarding, and squashed 3 bugs. Your AI team never sleeps.”"})]})})]})}},{id:"fill-form",title:'"Fill this form"',subtitle:"It remembers everything. You just sign.",icon:(0,t.jsx)(rD,{className:"size-4"}),Demo:function(){return(0,t.jsxs)("div",{className:"flex flex-col gap-3 p-4 h-full",children:[(0,t.jsx)(rL,{delay:0,children:(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsxs)("div",{className:"max-w-[80%] rounded-lg px-4 py-2 bg-primary text-primary-foreground text-sm",children:["Fill this for me",(0,t.jsxs)("div",{className:"flex items-center gap-1 mt-1.5 rounded-md bg-primary-foreground/10 border border-primary-foreground/20 px-2 py-0.5",children:[(0,t.jsx)(r_.FileText,{className:"size-3 shrink-0"}),(0,t.jsx)("span",{className:"text-xs opacity-80",children:"YC_Application_W27.pdf"})]})]})})}),(0,t.jsx)(rL,{delay:400,children:(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(rB,{letter:"A"}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 mb-1",children:[(0,t.jsx)("span",{className:"text-xs font-medium",children:"Assistant"}),(0,t.jsx)(rH,{status:"working"})]}),(0,t.jsx)("div",{className:"text-sm text-foreground",children:"I have most of this from memory. Let me check what I know..."})]})]})}),(0,t.jsx)(rL,{delay:800,children:(0,t.jsxs)("div",{className:"rounded-lg border border-border/60 bg-background/75 p-3",children:[(0,t.jsx)("div",{className:"flex items-center gap-1.5 mb-2",children:(0,t.jsx)("span",{className:"text-[10px] font-medium text-muted-foreground uppercase tracking-wider",children:"Recalled from memory"})}),(0,t.jsxs)("div",{className:"space-y-1 text-xs text-foreground",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(rR.Check,{className:"size-3 text-emerald-500 shrink-0"}),(0,t.jsx)("span",{children:"Company name, address, EIN"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(rR.Check,{className:"size-3 text-emerald-500 shrink-0"}),(0,t.jsx)("span",{children:"Founder name, email, background"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(rR.Check,{className:"size-3 text-emerald-500 shrink-0"}),(0,t.jsx)("span",{children:"Product description, tech stack"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(rR.Check,{className:"size-3 text-emerald-500 shrink-0"}),(0,t.jsx)("span",{children:"Revenue, team size, launch date"})]})]})]})}),(0,t.jsx)(rL,{delay:1300,children:(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(rB,{letter:"A"}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("div",{className:"text-sm text-foreground mb-1.5",children:"All 31 fields filled from memory. No questions needed."}),(0,t.jsxs)("div",{className:"inline-flex items-center gap-1 rounded-md bg-muted border border-border/60 px-2.5 py-1.5",children:[(0,t.jsx)(r_.FileText,{className:"size-3.5 text-muted-foreground"}),(0,t.jsx)("span",{className:"text-xs font-medium",children:"YC_Application_W27_filled.pdf"})]})]})]})})]})}}];function rG(){let e=(0,r.useRef)(null),[n,i]=(0,r.useState)(0),[o,l]=(0,r.useState)("left");(0,s.useGSAP)(()=>{a.default.from(".usecase-title",{y:30,opacity:0,duration:.6,scrollTrigger:{trigger:e.current,start:"top 75%",toggleActions:"play none none none"}}),a.default.from(".usecase-layout",{y:40,opacity:0,duration:.6,ease:"power2.out",scrollTrigger:{trigger:".usecase-layout",start:"top 85%",toggleActions:"play none none none"}})},{scope:e});let c=rV[n].Demo;return(0,t.jsxs)("section",{ref:e,className:"relative px-6 py-24 lg:py-32",style:{backgroundColor:"var(--landing-bg)"},children:[(0,t.jsxs)("div",{className:"usecase-title mx-auto mb-14 max-w-4xl text-center lg:mb-20",children:[(0,t.jsx)("div",{className:"mb-3 text-xs uppercase tracking-[0.3em]",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)"},children:"Use Cases"}),(0,t.jsx)("h2",{style:{fontFamily:"var(--font-crt)",color:"var(--landing-text)",fontSize:"clamp(1.75rem, 4vw, 3rem)"},children:"See It In Action"}),(0,t.jsx)("p",{className:"mx-auto mt-3 max-w-xl",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)",fontSize:"0.85rem"},children:"Real scenarios running on real agents. Every day."})]}),(0,t.jsxs)("div",{className:"usecase-layout mx-auto flex max-w-5xl flex-col gap-6 md:flex-row md:items-start md:gap-8",children:[(0,t.jsx)("div",{className:"flex flex-row gap-2 overflow-x-auto thin-scrollbar pb-2 md:w-72 md:shrink-0 md:flex-col md:overflow-x-visible md:pb-0",children:rV.map((e,r)=>(0,t.jsxs)("button",{type:"button",onClick:()=>{l(r>n?"left":"right"),i(r)},className:`flex items-start gap-3 rounded-xl px-4 py-3 text-left transition-all duration-200 cursor-pointer shrink-0 md:shrink md:w-full ${r===n?"ring-1 ring-[var(--landing-border)] shadow-sm":"hover:bg-[oklch(0.88_0.02_75)] opacity-70 hover:opacity-100"}`,style:r===n?{backgroundColor:"var(--landing-surface)"}:void 0,children:[(0,t.jsx)("span",{className:"mt-0.5 shrink-0",style:{color:r===n?"var(--landing-text)":"var(--landing-text-muted)"},children:e.icon}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("div",{className:"text-sm font-medium leading-snug whitespace-nowrap lg:whitespace-normal",style:{fontFamily:"var(--font-crt)",color:r===n?"var(--landing-text)":"var(--landing-text-muted)"},children:e.title}),r===n&&(0,t.jsx)("div",{className:"mt-0.5 text-[11px] leading-snug hidden md:block",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)"},children:e.subtitle})]})]},e.id))}),(0,t.jsx)("div",{className:"flex-1 min-w-0 overflow-hidden rounded-2xl",style:{backgroundColor:"var(--landing-bg)",perspective:"1200px"},children:(0,t.jsxs)("div",{className:`rounded-2xl overflow-hidden ${"left"===o?"usecase-demo-slide-left":"usecase-demo-slide-right"}`,style:{backgroundColor:"var(--landing-surface)",border:"1px solid var(--landing-border)",boxShadow:"0 4px 24px oklch(0.15 0.01 55 / 10%)"},children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 px-4 py-2.5 border-b",style:{borderColor:"var(--landing-border)"},children:[(0,t.jsx)("span",{className:"size-2.5 rounded-full bg-[oklch(0.65_0.2_25)]"}),(0,t.jsx)("span",{className:"size-2.5 rounded-full bg-[oklch(0.75_0.15_85)]"}),(0,t.jsx)("span",{className:"size-2.5 rounded-full bg-[oklch(0.65_0.15_145)]"}),(0,t.jsxs)("span",{className:"ml-3 text-[11px]",style:{fontFamily:"var(--font-mono)",color:"var(--landing-text-muted)"},children:["alook — ",rV[n].title]})]}),(0,t.jsx)("div",{className:"usecase-demo-panel h-120 overflow-y-auto thin-scrollbar",children:(0,t.jsx)(c,{})})]},n)})]})]})}a.default.registerPlugin(t4);let rU=["Your Machine, Your Rules","No Vendor Lock-In","One Command to Start"];function rq(){let e=(0,r.useRef)(null);return(0,s.useGSAP)(()=>{a.default.from(".selfhost-title",{y:30,opacity:0,duration:.6,scrollTrigger:{trigger:e.current,start:"top 75%",toggleActions:"play none none none"}}),a.default.from(".selfhost-point",{y:25,opacity:0,duration:.5,stagger:.12,scrollTrigger:{trigger:".selfhost-grid",start:"top 80%",toggleActions:"play none none none"}})},{scope:e}),(0,t.jsxs)("section",{ref:e,className:"relative px-6 py-24 lg:py-32",style:{backgroundColor:"var(--landing-crt-bg)"},children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0",style:{backgroundImage:"repeating-linear-gradient(to bottom, transparent 0px, transparent 1px, oklch(0 0 0 / 4%) 1px, oklch(0 0 0 / 4%) 2px)",backgroundSize:"100% 2px"}}),(0,t.jsxs)("div",{className:"selfhost-title relative mx-auto mb-12 max-w-4xl text-center lg:mb-16",children:[(0,t.jsx)("div",{className:"mb-3 text-xs uppercase tracking-[0.3em]",style:{fontFamily:"var(--font-mono)",color:"var(--landing-phosphor)",opacity:.6},children:"Open Source & Self-Hosted"}),(0,t.jsx)("h2",{style:{fontFamily:"var(--font-crt)",color:"var(--landing-phosphor)",fontSize:"clamp(1.75rem, 4vw, 3rem)",textShadow:"0 0 12px oklch(0.75 0.18 80 / 30%)"},children:"Own Your Infrastructure"}),(0,t.jsx)("p",{className:"mx-auto mt-3 max-w-xl",style:{fontFamily:"var(--font-mono)",color:"var(--landing-phosphor)",fontSize:"0.85rem",opacity:.65},children:"Alook is fully open source. Self-host the entire platform, keep your data private, and run your AI company on hardware you control."})]}),(0,t.jsx)("div",{className:"selfhost-grid relative mx-auto flex max-w-3xl flex-wrap items-center justify-center gap-x-8 gap-y-3",children:rU.map(e=>(0,t.jsx)("span",{className:"selfhost-point text-sm",style:{fontFamily:"var(--font-crt)",color:"var(--landing-phosphor)",textShadow:"0 0 6px oklch(0.75 0.18 80 / 25%)"},children:e},e))}),(0,t.jsx)("div",{className:"relative mx-auto mt-10 max-w-md",children:(0,t.jsx)("div",{className:"rounded-lg border px-5 py-4",style:{borderColor:"oklch(0.75 0.18 80 / 20%)",backgroundColor:"oklch(0.12 0.01 55)"},children:(0,t.jsx)("code",{className:"block text-center text-sm leading-relaxed",style:{fontFamily:"var(--font-crt)",color:"var(--landing-phosphor)",textShadow:"0 0 6px oklch(0.75 0.18 80 / 30%)"},children:"$ npx @alook/app onboard"})})}),(0,t.jsx)("div",{className:"relative mx-auto mt-8 flex justify-center",children:(0,t.jsx)("a",{href:"/sign-in",className:"inline-flex items-center gap-2 px-7 py-3 text-sm transition-all duration-200 hover:opacity-80",style:{fontFamily:"var(--font-mono)",color:"var(--landing-crt-bg)",backgroundColor:"var(--landing-phosphor)",letterSpacing:"0.12em",boxShadow:"0 0 20px oklch(0.75 0.18 80 / 30%)"},children:"START YOUR COMPANY"})})]})}let r$=(0,n.default)(()=>e.A(967422).then(e=>e.CloudCodeMonsterPet),{loadableGenerated:{modules:[928210]},ssr:!1});a.default.registerPlugin(s.useGSAP,t4),e.s(["HomePage",0,function({isLoggedIn:e}){let n=(0,r.useRef)(null),i=(0,rs.useHomePetSettings)();return(0,r.useEffect)(()=>{window.matchMedia("(prefers-reduced-motion: reduce)").matches&&a.default.globalTimeline.timeScale(20)},[]),(0,s.useGSAP)(()=>{t4.create({trigger:".hero-section",start:"bottom top",onEnterBack:()=>{a.default.to(".marketing-nav",{autoAlpha:0,duration:.3,ease:"power2.out"})},onLeave:()=>{a.default.to(".marketing-nav",{autoAlpha:1,duration:.3,ease:"power2.out"})}})},{scope:n}),(0,t.jsxs)("div",{ref:n,className:"landing relative flex-1 overflow-x-clip",style:{backgroundColor:"var(--landing-bg)"},children:[(0,t.jsx)(rk,{isLoggedIn:e}),(0,t.jsx)(rd,{isLoggedIn:e}),(0,t.jsx)(rG,{}),(0,t.jsx)(rp,{}),(0,t.jsx)(rM,{}),(0,t.jsx)(rq,{}),(0,t.jsx)(rj,{}),(0,t.jsx)(rN,{}),e&&i.enabled?(0,t.jsx)(r$,{boundaryRef:n}):null]})}],371836)}]);
@@ -1,3 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,949035,e=>{"use strict";let t=(0,e.i(406963).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,t],949035)},208020,(e,t,r)=>{t.exports=e.r(170928)},406963,e=>{"use strict";var t=e.i(298699);let r=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),n=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,t.createContext)({}),s=(0,t.forwardRef)(({color:e,size:n,strokeWidth:s,absoluteStrokeWidth:o,className:l="",children:d,iconNode:u,...c},f)=>{let{size:p=24,strokeWidth:g=2,absoluteStrokeWidth:m=!1,color:h="currentColor",className:v=""}=(0,t.useContext)(i)??{},b=o??m?24*Number(s??g)/Number(n??p):s??g;return(0,t.createElement)("svg",{ref:f,...a,width:n??p??a.width,height:n??p??a.height,stroke:e??h,strokeWidth:b,className:r("lucide",v,l),...!d&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(c)&&{"aria-hidden":"true"},...c},[...u.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(d)?d:[d]])});e.s(["default",0,(e,a)=>{let i=(0,t.forwardRef)(({className:i,...o},l)=>(0,t.createElement)(s,{ref:l,iconNode:a,className:r(`lucide-${n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...o}));return i.displayName=n(e),i}],406963)},931764,536460,e=>{"use strict";e.i(459119);var t=e.i(298699),r=e.i(92615),n=e.i(673664),a=e.i(893205),i=e.i(390072),s=e.i(240003);let o=t.createContext(void 0);function l(e=!1){let r=t.useContext(o);if(void 0===r&&!e)throw Error((0,s.default)(16));return r}function d(e){return(0,r.isHTMLElement)(e)&&"BUTTON"===e.tagName}e.s(["CompositeRootContext",0,o,"useCompositeRootContext",0,l],536460),e.s(["useButton",0,function(e={}){let{disabled:r=!1,focusableWhenDisabled:s,tabIndex:o=0,native:u=!0,composite:c}=e,f=t.useRef(null),p=l(!0),g=c??void 0!==p,{props:m}=function(e){let{focusableWhenDisabled:r,disabled:n,composite:a=!1,tabIndex:i=0,isNativeButton:s}=e,o=a&&!1!==r,l=a&&!1===r;return{props:t.useMemo(()=>{let e={onKeyDown(e){n&&r&&"Tab"!==e.key&&e.preventDefault()}};return a||(e.tabIndex=i,!s&&n&&(e.tabIndex=r?i:-1)),(s&&(r||o)||!s&&n)&&(e["aria-disabled"]=n),s&&(!r||l)&&(e.disabled=n),e},[a,n,r,o,l,s,i])}}({focusableWhenDisabled:s,disabled:r,composite:g,tabIndex:o,isNativeButton:u}),h=t.useCallback(()=>{let e=f.current;d(e)&&g&&r&&void 0===m.disabled&&e.disabled&&(e.disabled=!1)},[r,m.disabled,g]);return(0,a.useIsoLayoutEffect)(h,[h]),{getButtonProps:t.useCallback((e={})=>{let{onClick:t,onMouseDown:n,onKeyUp:a,onKeyDown:s,onPointerDown:o,...l}=e;return(0,i.mergeProps)({onClick(e){r?e.preventDefault():t?.(e)},onMouseDown(e){r||n?.(e)},onKeyDown(e){var n;if(r||((0,i.makeEventPreventable)(e),s?.(e),e.baseUIHandlerPrevented))return;let a=e.target===e.currentTarget,o=e.currentTarget,l=d(o),c=!u&&(n=o,!!(n?.tagName==="A"&&n?.href)),f=a&&(u?l:!c),p="Enter"===e.key,m=" "===e.key,h=o.getAttribute("role"),v=h?.startsWith("menuitem")||"option"===h||"gridcell"===h;if(a&&g&&m){if(e.defaultPrevented&&v)return;e.preventDefault(),c||u&&l?(o.click(),e.preventBaseUIHandler()):f&&(t?.(e),e.preventBaseUIHandler());return}f&&(!u&&(m||p)&&e.preventDefault(),!u&&p&&t?.(e))},onKeyUp(e){r||(((0,i.makeEventPreventable)(e),a?.(e),e.target===e.currentTarget&&u&&g&&d(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||u||g||" "!==e.key||t?.(e)))},onPointerDown(e){r?e.preventDefault():o?.(e)}},u?{type:"button"}:{role:"button"},m,l)},[r,m,g,u]),buttonRef:(0,n.useStableCallback)(e=>{f.current=e,h()})}}],931764)},294237,e=>{"use strict";var t=e.i(7284);let r=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,n=t.clsx;e.s(["cva",0,(e,t)=>a=>{var i;if((null==t?void 0:t.variants)==null)return n(e,null==a?void 0:a.class,null==a?void 0:a.className);let{variants:s,defaultVariants:o}=t,l=Object.keys(s).map(e=>{let t=null==a?void 0:a[e],n=null==o?void 0:o[e];if(null===t)return null;let i=r(t)||r(n);return s[e][i]}),d=a&&Object.entries(a).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return n(e,l,null==t||null==(i=t.compoundVariants)?void 0:i.reduce((e,t)=>{let{class:r,className:n,...a}=t;return Object.entries(a).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...o,...d}[t]):({...o,...d})[t]===r})?[...e,r,n]:e},[]),null==a?void 0:a.class,null==a?void 0:a.className)}])},186339,e=>{"use strict";var t=e.i(368075);e.i(459119);var r=e.i(298699),n=e.i(931764),a=e.i(863764);let i=r.forwardRef(function(e,t){let{render:r,className:i,disabled:s=!1,focusableWhenDisabled:o=!1,nativeButton:l=!0,style:d,...u}=e,{getButtonProps:c,buttonRef:f}=(0,n.useButton)({disabled:s,focusableWhenDisabled:o,native:l});return(0,a.useRenderElement)("button",e,{state:{disabled:s},ref:[t,f],props:[u,c]})});var s=e.i(294237),o=e.i(613349);let l=(0,s.cva)("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});e.s(["Button",0,function({className:e,variant:r="default",size:n="default",...a}){return(0,t.jsx)(i,{"data-slot":"button",className:(0,o.cn)(l({variant:r,size:n,className:e})),...a})},"buttonVariants",0,l],186339)},70738,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return a}});let n=e.r(298699);function a(e,t){let r=(0,n.useRef)(null),a=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=i(e,n)),t&&(a.current=i(t,n))},[e,t])}function i(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},275351,e=>{"use strict";let t,r,n,a,i=(e,t)=>t.some(t=>e instanceof t),s=new WeakMap,o=new WeakMap,l=new WeakMap,d={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return s.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return u(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function u(e){if(e instanceof IDBRequest){let t;return t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("success",a),e.removeEventListener("error",i)},a=()=>{t(u(e.result)),n()},i=()=>{r(e.error),n()};e.addEventListener("success",a),e.addEventListener("error",i)}),l.set(t,e),t}if(o.has(e))return o.get(e);let t=function(e){if("function"==typeof e)return(a||(a=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(c(this),t),u(this.request)}:function(...t){return u(e.apply(c(this),t))};return(e instanceof IDBTransaction&&function(e){if(s.has(e))return;let t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("complete",a),e.removeEventListener("error",i),e.removeEventListener("abort",i)},a=()=>{t(),n()},i=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",a),e.addEventListener("error",i),e.addEventListener("abort",i)});s.set(e,t)}(e),i(e,n||(n=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(e,d):e}(e);return t!==e&&(o.set(e,t),l.set(t,e)),t}let c=e=>l.get(e),f=["get","getKey","getAll","getAllKeys","count"],p=["put","add","delete","clear"],g=new Map;function m(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(g.get(t))return g.get(t);let r=t.replace(/FromIndex$/,""),n=t!==r,a=p.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(a||f.includes(r)))return;let i=async function(e,...t){let i=this.transaction(e,a?"readwrite":"readonly"),s=i.store;return n&&(s=s.index(t.shift())),(await Promise.all([s[r](...t),a&&i.done]))[0]};return g.set(t,i),i}d={...t=d,get:(e,r,n)=>m(e,r)||t.get(e,r,n),has:(e,r)=>!!m(e,r)||t.has(e,r)};let h=["continue","continuePrimaryKey","advance"],v={},b=new WeakMap,y=new WeakMap,x={get(e,t){if(!h.includes(t))return e[t];let r=v[t];return r||(r=v[t]=function(...e){b.set(this,y.get(this)[t](...e))}),r}};async function*w(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;let r=new Proxy(t,x);for(y.set(r,t),l.set(r,c(t));t;)yield r,t=await (b.get(r)||t.continue()),b.delete(r)}function _(e,t){return t===Symbol.asyncIterator&&i(e,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===t&&i(e,[IDBIndex,IDBObjectStore])}d={...r=d,get:(e,t,n)=>_(e,t)?w:r.get(e,t,n),has:(e,t)=>_(e,t)||r.has(e,t)};let j=null,C=null;function k(e){return"u"<typeof indexedDB?null:j&&C===e?j:(C=e,j=function(e,{blocked:t,upgrade:r,blocking:n,terminated:a}={}){let i=indexedDB.open(e,2),s=u(i);return r&&i.addEventListener("upgradeneeded",e=>{r(u(i.result),e.oldVersion,e.newVersion,u(i.transaction),e)}),t&&i.addEventListener("blocked",e=>t(e.oldVersion,e.newVersion,e)),s.then(e=>{a&&e.addEventListener("close",()=>a()),n&&e.addEventListener("versionchange",e=>n(e.oldVersion,e.newVersion,e))}).catch(()=>{}),s}(`alook-chat-cache-${e}`,{upgrade(e,t){if(t<1){let t=e.createObjectStore("messages",{keyPath:["conversation_id","id"]});t.createIndex("by-conversation","conversation_id",{unique:!1}),t.createIndex("by-created",["conversation_id","created_at"],{unique:!1}),e.createObjectStore("cache_meta",{keyPath:"conversation_id"})}}}))}function P(e){return e?k(e):j}async function E(e,t){let r=P(t);if(!r)return null;try{let t=await r,n=await t.getAllFromIndex("messages","by-conversation",e);if(0===n.length)return null;let a=n.filter(e=>"buffered"!==e.status&&!e.id.startsWith("temp-"));a.sort((e,t)=>{let r=e.created_at.localeCompare(t.created_at);return 0!==r?r:e.id.localeCompare(t.id)});let i=await t.get("cache_meta",e);return i&&await t.put("cache_meta",{...i,lastAccessedAt:Date.now()}),a}catch{return null}}async function O(e,t,r,n,a){let i=P(a);if(!i)return null;try{let a=await i,s=await a.get("cache_meta",e);if(!s)return null;let o=IDBKeyRange.bound([e,""],[e,t],!1,!1),l=(await a.getAllFromIndex("messages","by-created",o)).filter(e=>!("buffered"===e.status||e.id.startsWith("temp-"))&&(e.created_at!==t||!(e.id>=r)));l.sort((e,t)=>{let r=t.created_at.localeCompare(e.created_at);return 0!==r?r:t.id.localeCompare(e.id)});let d=l.slice(0,n);if(d.length<n&&s.hasMore)return null;return await a.put("cache_meta",{...s,lastAccessedAt:Date.now()}),{messages:d.reverse(),hasMore:l.length>n||s.hasMore}}catch{return null}}async function I(e,t,r,n,a){let i=P(n);if(i)try{let n=await i,s=t.filter(e=>"buffered"!==e.status&&!e.id.startsWith("temp-"));if(0===s.length)return;let o=n.transaction(["messages","cache_meta"],"readwrite"),l=o.objectStore("messages"),d=o.objectStore("cache_meta");for(let e of s)await l.put(e);let u=await l.index("by-conversation").getAllKeys(e),c=Date.now(),f=s.reduce((e,t)=>e.created_at>t.created_at?e:t),p=await d.get(e),g=r??p?.hasMore??!0,m=p?.newestMessageId&&p.newestMessageId!==f.id?await (async()=>{let t=await l.get([e,p.newestMessageId]);return t&&t.created_at>f.created_at?t.id:f.id})():f.id,h={conversation_id:e,lastFetchedAt:c,lastAccessedAt:c,messageCount:u.length,newestMessageId:m,hasMore:g,serverMessageCount:a??p?.serverMessageCount??0};await d.put(h),await o.done,M().catch(()=>{})}catch{}}async function S(e,t,r){let n=P(r);if(n&&!("buffered"===t.status||t.id.startsWith("temp-")))try{let r=await n,a=await r.get("cache_meta",e);if(!a)return;let i=await r.get("messages",[e,t.id]);await r.put("messages",t),await r.put("cache_meta",{...a,lastAccessedAt:Date.now(),messageCount:i?a.messageCount:a.messageCount+1,newestMessageId:t.id})}catch{}}async function D(e,t){let r=P(t);if(!r)return null;try{let t=await r;return await t.get("cache_meta",e)??null}catch{return null}}async function M(e=50){let t=P();if(t)try{let r=await t,n=await r.getAll("cache_meta");if(n.length<=e)return;n.sort((e,t)=>e.lastAccessedAt-t.lastAccessedAt);let a=n.slice(0,n.length-e),i=r.transaction(["messages","cache_meta"],"readwrite"),s=i.objectStore("messages"),o=i.objectStore("cache_meta");for(let e of a){for(let t of(await s.index("by-conversation").getAllKeys(e.conversation_id)))await s.delete(t);await o.delete(e.conversation_id)}await i.done}catch{}}async function z(){if("u">typeof indexedDB)try{j&&((await j).close(),j=null),C&&(await R(`alook-chat-cache-${C}`),C=null)}catch{}}async function R(e){return new Promise((t,r)=>{let n=indexedDB.deleteDatabase(e);n.onsuccess=()=>t(),n.onerror=()=>r(n.error),n.onblocked=()=>t()})}e.s(["appendCachedMessage",0,S,"clearAllCache",0,z,"getCacheMeta",0,D,"getCachedMessages",0,E,"getCachedMessagesBefore",0,O,"mergeCachedMessages",0,I,"openCacheDB",0,k],275351)},934351,e=>{"use strict";var t=e.i(368075),r=e.i(613349);e.s(["Card",0,function({className:e,size:n="default",...a}){return(0,t.jsx)("div",{"data-slot":"card","data-size":n,className:(0,r.cn)("group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...a})},"CardAction",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-action",className:(0,r.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...n})},"CardContent",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-4 group-data-[size=sm]/card:px-3",e),...n})},"CardHeader",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",e),...n})},"CardTitle",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...n})}])},821752,(e,t,r)=>{"use strict";function n({widthInt:e,heightInt:t,blurWidth:r,blurHeight:a,blurDataURL:i,objectFit:s}){let o=r?40*r:e,l=a?40*a:t,d=o&&l?`viewBox='0 0 ${o} ${l}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${d}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${d?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${i}'/%3E%3C/svg%3E`}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},498074,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={VALID_LOADERS:function(){return i},imageConfigDefault:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=["default","imgix","cloudinary","akamai","custom"],s={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},355477,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImgProps",{enumerable:!0,get:function(){return d}}),e.r(611134);let n=e.r(641894),a=e.r(821752),i=e.r(498074),s=["-moz-initial","fill","none","scale-down",void 0];function o(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function d({src:e,sizes:t,unoptimized:r=!1,priority:u=!1,preload:c=!1,loading:f,className:p,quality:g,width:m,height:h,fill:v=!1,style:b,overrideSrc:y,onLoad:x,onLoadingComplete:w,placeholder:_="empty",blurDataURL:j,fetchPriority:C,decoding:k="async",layout:P,objectFit:E,objectPosition:O,lazyBoundary:I,lazyRoot:S,...D},M){var z;let R,A,N,{imgConf:B,showAltText:L,blurComplete:T,defaultLoader:$}=M,W=B||i.imageConfigDefault;if("allSizes"in W)R=W;else{let e=[...W.deviceSizes,...W.imageSizes].sort((e,t)=>e-t),t=W.deviceSizes.sort((e,t)=>e-t),r=W.qualities?.sort((e,t)=>e-t);R={...W,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===$)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let U=D.loader||$;delete D.loader,delete D.srcSet;let q="__next_img_default"in U;if(q){if("custom"===R.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop.
2
- Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=U;U=t=>{let{config:r,...n}=t;return e(n)}}if(P){"fill"===P&&(v=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[P];e&&(b={...b,...e});let r={responsive:"100vw",fill:"100vw"}[P];r&&!t&&(t=r)}let F="",V=l(m),K=l(h);if((z=e)&&"object"==typeof z&&(o(z)||void 0!==z.src)){let t=o(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(A=t.blurWidth,N=t.blurHeight,j=j||t.blurDataURL,F=t.src,!v)if(V||K){if(V&&!K){let e=V/t.width;K=Math.round(t.height*e)}else if(!V&&K){let e=K/t.height;V=Math.round(t.width*e)}}else V=t.width,K=t.height}let H=!u&&!c&&("lazy"===f||void 0===f);(!(e="string"==typeof e?e:F)||e.startsWith("data:")||e.startsWith("blob:"))&&(r=!0,H=!1),R.unoptimized&&(r=!0),q&&!R.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(r=!0);let G=l(g),X=Object.assign(v?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:E,objectPosition:O}:{},L?{}:{color:"transparent"},b),J=T||"empty"===_?null:"blur"===_?`url("data:image/svg+xml;charset=utf-8,${(0,a.getImageBlurSvg)({widthInt:V,heightInt:K,blurWidth:A,blurHeight:N,blurDataURL:j||"",objectFit:X.objectFit})}")`:`url("${_}")`,Q=s.includes(X.objectFit)?"fill"===X.objectFit?"100% 100%":"cover":X.objectFit,Y=J?{backgroundSize:Q,backgroundPosition:X.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:J}:{},Z=function({config:e,src:t,unoptimized:r,width:a,quality:i,sizes:s,loader:o}){if(r){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,n.getDeploymentId)();if(e){let r=t.indexOf("?");if(-1!==r){let n=new URLSearchParams(t.slice(r+1));n.get("dpl")||(n.append("dpl",e),t=t.slice(0,r)+"?"+n.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:l,kind:d}=function({deviceSizes:e,allSizes:t},r,n){if(n){let r=/(^|\s)(1?\d?\d)vw/g,a=[];for(let e;e=r.exec(n);)a.push(parseInt(e[2]));if(a.length){let r=.01*Math.min(...a);return{widths:t.filter(t=>t>=e[0]*r),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof r?{widths:e,kind:"w"}:{widths:[...new Set([r,2*r].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,a,s),u=l.length-1;return{sizes:s||"w"!==d?s:"100vw",srcSet:l.map((r,n)=>`${o({config:e,src:t,quality:i,width:r})} ${"w"===d?r:n+1}${d}`).join(", "),src:o({config:e,src:t,quality:i,width:l[u]})}}({config:R,src:e,unoptimized:r,width:V,quality:G,sizes:t,loader:U}),ee=H?"lazy":f;return{props:{...D,loading:ee,fetchPriority:C,width:V,height:K,decoding:k,className:p,style:{...X,...Y},sizes:Z.sizes,srcSet:Z.srcSet,src:y||Z.src},meta:{unoptimized:r,preload:c||u,placeholder:_,fill:v}}}},477847,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return o}});let n=e.r(298699),a="u"<typeof window,i=a?()=>{}:n.useLayoutEffect,s=a?()=>{}:n.useEffect;function o(e){let{headManager:t,reduceComponentsToState:r}=e;function o(){if(t&&t.mountedInstances){let e=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(e))}}return a&&(t?.mountedInstances?.add(e.children),o()),i(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),i(()=>(t&&(t._pendingUpdate=o),()=>{t&&(t._pendingUpdate=o)})),s(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},769049,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return m},defaultHead:function(){return c}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(481258),s=e.r(744066),o=e.r(368075),l=s._(e.r(298699)),d=i._(e.r(477847)),u=e.r(951024);function c(){return[(0,o.jsx)("meta",{charSet:"utf-8"},"charset"),(0,o.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}e.r(611134);let p=["name","httpEquiv","charSet","itemProp"];function g(e){let t,r,n,a;return e.reduce(f,[]).reverse().concat(c().reverse()).filter((t=new Set,r=new Set,n=new Set,a={},e=>{let i=!0,s=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){s=!0;let r=e.key.slice(e.key.indexOf("$")+1);t.has(r)?i=!1:t.add(r)}switch(e.type){case"title":case"base":r.has(e.type)?i=!1:r.add(e.type);break;case"meta":for(let t=0,r=p.length;t<r;t++){let r=p[t];if(e.props.hasOwnProperty(r))if("charSet"===r)n.has(r)?i=!1:n.add(r);else{let t=e.props[r],n=a[r]||new Set;("name"!==r||!s)&&n.has(t)?i=!1:(n.add(t),a[r]=n)}}}return i})).reverse().map((e,t)=>{let r=e.key||t;return l.default.cloneElement(e,{key:r})})}let m=function({children:e}){let t=(0,l.useContext)(u.HeadManagerContext);return(0,o.jsx)(d.default,{reduceComponentsToState:g,headManager:t,children:e})};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},703694,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ImageConfigContext",{enumerable:!0,get:function(){return i}});let n=e.r(481258)._(e.r(298699)),a=e.r(498074),i=n.default.createContext(a.imageConfigDefault)},507585,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"RouterContext",{enumerable:!0,get:function(){return n}});let n=e.r(481258)._(e.r(298699)).default.createContext(null)},246955,(e,t,r)=>{"use strict";function n(e,t){let r=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-r)<Math.abs(e-r)?t:e,t.qualities[0]):r}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"findClosestQuality",{enumerable:!0,get:function(){return n}})},107475,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return s}});let n=e.r(246955),a=e.r(641894);function i({config:e,src:t,width:r,quality:s}){let o=(0,a.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//")){let e=t.indexOf("?");if(-1!==e){let r=new URLSearchParams(t.slice(e+1)),n=r.get("dpl");if(n){o=n,r.delete("dpl");let a=r.toString();t=t.slice(0,e)+(a?"?"+a:"")}}}if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns.
3
- Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let l=(0,n.findClosestQuality)(s,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${r}&q=${l}${t.startsWith("/")&&o?`&dpl=${o}`:""}`}i.__next_img_default=!0;let s=i},730145,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"Image",{enumerable:!0,get:function(){return x}});let n=e.r(481258),a=e.r(744066),i=e.r(368075),s=a._(e.r(298699)),o=n._(e.r(550008)),l=n._(e.r(769049)),d=e.r(355477),u=e.r(498074),c=e.r(703694);e.r(611134);let f=e.r(507585),p=n._(e.r(107475)),g=e.r(70738),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function h(e,t,r,n,a,i,s){let o=e?.src;e&&e["data-loaded-src"]!==o&&(e["data-loaded-src"]=o,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&a(!0),r?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,a=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>a,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{a=!0,t.stopPropagation()}})}n?.current&&n.current(e)}}))}function v(e){return s.use?{fetchPriority:e}:{fetchpriority:e}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let b=(0,s.forwardRef)(({src:e,srcSet:t,sizes:r,height:n,width:a,decoding:o,className:l,style:d,fetchPriority:u,placeholder:c,loading:f,unoptimized:p,fill:m,onLoadRef:b,onLoadingCompleteRef:y,setBlurComplete:x,setShowAltText:w,sizesInput:_,onLoad:j,onError:C,...k},P)=>{let E=(0,s.useCallback)(e=>{e&&(C&&(e.src=e.src),e.complete&&h(e,c,b,y,x,p,_))},[e,c,b,y,x,C,p,_]),O=(0,g.useMergedRef)(P,E);return(0,i.jsx)("img",{...k,...v(u),loading:f,width:a,height:n,decoding:o,"data-nimg":m?"fill":"1",className:l,style:d,sizes:r,srcSet:t,src:e,ref:O,onLoad:e=>{h(e.currentTarget,c,b,y,x,p,_)},onError:e=>{w(!0),"empty"!==c&&x(!0),C&&C(e)}})});function y({isAppRouter:e,imgAttributes:t}){let r={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...v(t.fetchPriority)};return e&&o.default.preload?(o.default.preload(t.src,r),null):(0,i.jsx)(l.default,{children:(0,i.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...r},"__nimg-"+t.src+t.srcSet+t.sizes)})}let x=(0,s.forwardRef)((e,t)=>{let r=(0,s.useContext)(f.RouterContext),n=(0,s.useContext)(c.ImageConfigContext),a=(0,s.useMemo)(()=>{let e=m||n||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t),a=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r,qualities:a,localPatterns:"u"<typeof window?n?.localPatterns:e.localPatterns}},[n]),{onLoad:o,onLoadingComplete:l}=e,g=(0,s.useRef)(o);(0,s.useEffect)(()=>{g.current=o},[o]);let h=(0,s.useRef)(l);(0,s.useEffect)(()=>{h.current=l},[l]);let[v,x]=(0,s.useState)(!1),[w,_]=(0,s.useState)(!1),{props:j,meta:C}=(0,d.getImgProps)(e,{defaultLoader:p.default,imgConf:a,blurComplete:v,showAltText:w});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(b,{...j,unoptimized:C.unoptimized,placeholder:C.placeholder,fill:C.fill,onLoadRef:g,onLoadingCompleteRef:h,setBlurComplete:x,setShowAltText:_,sizesInput:e.sizes,ref:t}),C.preload?(0,i.jsx)(y,{isAppRouter:!r,imgAttributes:j}):null]})});("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},851287,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return u},getImageProps:function(){return d}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(481258),s=e.r(355477),o=e.r(730145),l=i._(e.r(107475));function d(e){let{props:t}=(0,s.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let u=o.Image},736956,(e,t,r)=>{t.exports=e.r(851287)},898707,e=>{"use strict";var t=e.i(368075);e.s(["GradientBackground",0,function(){return(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none fixed inset-0 -z-10 overflow-hidden bg-[oklch(0.93_0.015_80)] dark:bg-transparent"})}])},454267,e=>{"use strict";let t=(0,e.i(406963).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",0,t],454267)},866519,e=>{"use strict";let t=(0,e.i(406963).default)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);e.s(["LogOut",0,t],866519)},643486,e=>{"use strict";var t=e.i(368075),r=e.i(298699),n=e.i(635790),a=e.i(736956),i=e.i(613349);let s={sm:{icon:28,text:"text-2xl"},lg:{icon:36,text:"text-4xl"}};e.s(["Logo",0,function({size:e="sm",className:o,iconOnly:l=!1}){let{icon:d,text:u}=s[e],{resolvedTheme:c,setTheme:f}=(0,n.useTheme)(),[p,g]=(0,r.useState)(!1),m=(0,r.useRef)(g);return(0,r.useEffect)(()=>{m.current(!0)},[]),(0,t.jsxs)("button",{type:"button",onClick:()=>{f("dark"===c?"light":"dark")},"aria-label":"Toggle theme",className:(0,i.cn)("flex items-center gap-1.5 cursor-pointer select-none transition-opacity hover:opacity-70",o),children:[p?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.default,{src:"/alook.svg",alt:"Alook",width:d,height:d,className:"dark:hidden"}),(0,t.jsx)(a.default,{src:"/alook-dark.svg",alt:"Alook",width:d,height:d,className:"hidden dark:block"})]}):(0,t.jsx)("span",{style:{width:d,height:d}}),!l&&(0,t.jsx)("span",{className:(0,i.cn)(u,"font-black tracking-tight"),style:{fontFamily:"var(--font-brand)"},children:"Alook"})]})}])},12338,e=>{"use strict";var t=e.i(368075),r=e.i(208020),n=e.i(186339),a=e.i(934351),i=e.i(898707),s=e.i(643486),o=e.i(949035),l=e.i(454267),d=e.i(866519),u=e.i(23055),c=e.i(275351);e.s(["WorkspaceListClient",0,function({workspaces:e}){let f=(0,r.useRouter)();return(0,t.jsxs)("div",{className:"relative flex min-h-dvh flex-col items-center justify-center p-6",children:[(0,t.jsx)(i.GradientBackground,{}),(0,t.jsxs)(n.Button,{variant:"ghost",size:"sm",className:"absolute top-4 right-4 text-muted-foreground",onClick:async()=>{await (0,c.clearAllCache)(),await (0,u.signOut)(),f.push("/sign-in")},children:[(0,t.jsx)(d.LogOut,{className:"size-4"}),"Log out"]}),(0,t.jsxs)("div",{className:"w-full max-w-md space-y-8",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center gap-3",children:[(0,t.jsx)(s.Logo,{size:"lg"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Choose a workspace to continue."})]}),(0,t.jsx)("div",{className:"space-y-3",children:e.map(e=>(0,t.jsx)(a.Card,{className:"cursor-pointer transition-colors duration-200 hover:bg-accent/50",onClick:()=>f.push(`/w/${e.slug}/home`),children:(0,t.jsxs)(a.CardContent,{className:"flex items-center justify-between px-3 py-1.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,t.jsx)("p",{className:"text-sm font-medium truncate",children:e.name}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e.slug})]}),(0,t.jsx)(l.ArrowRight,{className:"size-3.5 text-muted-foreground shrink-0"})]})},e.id))}),(0,t.jsxs)(n.Button,{variant:"outline",className:"w-full",onClick:()=>f.push("/studio/new"),children:[(0,t.jsx)(o.Plus,{className:"size-4"}),"New workspace"]})]})]})}])}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,208020,(e,t,i)=>{t.exports=e.r(170928)},406963,e=>{"use strict";var t=e.i(298699);let i=(...e)=>e.filter((e,t,i)=>!!e&&""!==e.trim()&&i.indexOf(e)===t).join(" ").trim(),n=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,i)=>i?i.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var r={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,t.createContext)({}),s=(0,t.forwardRef)(({color:e,size:n,strokeWidth:s,absoluteStrokeWidth:o,className:l="",children:d,iconNode:u,...c},p)=>{let{size:g=24,strokeWidth:f=2,absoluteStrokeWidth:m=!1,color:h="currentColor",className:v=""}=(0,t.useContext)(a)??{},b=o??m?24*Number(s??f)/Number(n??g):s??f;return(0,t.createElement)("svg",{ref:p,...r,width:n??g??r.width,height:n??g??r.height,stroke:e??h,strokeWidth:b,className:i("lucide",v,l),...!d&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(c)&&{"aria-hidden":"true"},...c},[...u.map(([e,i])=>(0,t.createElement)(e,i)),...Array.isArray(d)?d:[d]])});e.s(["default",0,(e,r)=>{let a=(0,t.forwardRef)(({className:a,...o},l)=>(0,t.createElement)(s,{ref:l,iconNode:r,className:i(`lucide-${n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,a),...o}));return a.displayName=n(e),a}],406963)},931764,536460,e=>{"use strict";e.i(459119);var t=e.i(298699),i=e.i(92615),n=e.i(673664),r=e.i(893205),a=e.i(390072),s=e.i(240003);let o=t.createContext(void 0);function l(e=!1){let i=t.useContext(o);if(void 0===i&&!e)throw Error((0,s.default)(16));return i}function d(e){return(0,i.isHTMLElement)(e)&&"BUTTON"===e.tagName}e.s(["CompositeRootContext",0,o,"useCompositeRootContext",0,l],536460),e.s(["useButton",0,function(e={}){let{disabled:i=!1,focusableWhenDisabled:s,tabIndex:o=0,native:u=!0,composite:c}=e,p=t.useRef(null),g=l(!0),f=c??void 0!==g,{props:m}=function(e){let{focusableWhenDisabled:i,disabled:n,composite:r=!1,tabIndex:a=0,isNativeButton:s}=e,o=r&&!1!==i,l=r&&!1===i;return{props:t.useMemo(()=>{let e={onKeyDown(e){n&&i&&"Tab"!==e.key&&e.preventDefault()}};return r||(e.tabIndex=a,!s&&n&&(e.tabIndex=i?a:-1)),(s&&(i||o)||!s&&n)&&(e["aria-disabled"]=n),s&&(!i||l)&&(e.disabled=n),e},[r,n,i,o,l,s,a])}}({focusableWhenDisabled:s,disabled:i,composite:f,tabIndex:o,isNativeButton:u}),h=t.useCallback(()=>{let e=p.current;d(e)&&f&&i&&void 0===m.disabled&&e.disabled&&(e.disabled=!1)},[i,m.disabled,f]);return(0,r.useIsoLayoutEffect)(h,[h]),{getButtonProps:t.useCallback((e={})=>{let{onClick:t,onMouseDown:n,onKeyUp:r,onKeyDown:s,onPointerDown:o,...l}=e;return(0,a.mergeProps)({onClick(e){i?e.preventDefault():t?.(e)},onMouseDown(e){i||n?.(e)},onKeyDown(e){var n;if(i||((0,a.makeEventPreventable)(e),s?.(e),e.baseUIHandlerPrevented))return;let r=e.target===e.currentTarget,o=e.currentTarget,l=d(o),c=!u&&(n=o,!!(n?.tagName==="A"&&n?.href)),p=r&&(u?l:!c),g="Enter"===e.key,m=" "===e.key,h=o.getAttribute("role"),v=h?.startsWith("menuitem")||"option"===h||"gridcell"===h;if(r&&f&&m){if(e.defaultPrevented&&v)return;e.preventDefault(),c||u&&l?(o.click(),e.preventBaseUIHandler()):p&&(t?.(e),e.preventBaseUIHandler());return}p&&(!u&&(m||g)&&e.preventDefault(),!u&&g&&t?.(e))},onKeyUp(e){i||(((0,a.makeEventPreventable)(e),r?.(e),e.target===e.currentTarget&&u&&f&&d(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||u||f||" "!==e.key||t?.(e)))},onPointerDown(e){i?e.preventDefault():o?.(e)}},u?{type:"button"}:{role:"button"},m,l)},[i,m,f,u]),buttonRef:(0,n.useStableCallback)(e=>{p.current=e,h()})}}],931764)},294237,e=>{"use strict";var t=e.i(7284);let i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,n=t.clsx;e.s(["cva",0,(e,t)=>r=>{var a;if((null==t?void 0:t.variants)==null)return n(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:s,defaultVariants:o}=t,l=Object.keys(s).map(e=>{let t=null==r?void 0:r[e],n=null==o?void 0:o[e];if(null===t)return null;let a=i(t)||i(n);return s[e][a]}),d=r&&Object.entries(r).reduce((e,t)=>{let[i,n]=t;return void 0===n||(e[i]=n),e},{});return n(e,l,null==t||null==(a=t.compoundVariants)?void 0:a.reduce((e,t)=>{let{class:i,className:n,...r}=t;return Object.entries(r).every(e=>{let[t,i]=e;return Array.isArray(i)?i.includes({...o,...d}[t]):({...o,...d})[t]===i})?[...e,i,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}])},186339,e=>{"use strict";var t=e.i(368075);e.i(459119);var i=e.i(298699),n=e.i(931764),r=e.i(863764);let a=i.forwardRef(function(e,t){let{render:i,className:a,disabled:s=!1,focusableWhenDisabled:o=!1,nativeButton:l=!0,style:d,...u}=e,{getButtonProps:c,buttonRef:p}=(0,n.useButton)({disabled:s,focusableWhenDisabled:o,native:l});return(0,r.useRenderElement)("button",e,{state:{disabled:s},ref:[t,p],props:[u,c]})});var s=e.i(294237),o=e.i(613349);let l=(0,s.cva)("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});e.s(["Button",0,function({className:e,variant:i="default",size:n="default",...r}){return(0,t.jsx)(a,{"data-slot":"button",className:(0,o.cn)(l({variant:i,size:n,className:e})),...r})},"buttonVariants",0,l],186339)},222862,636557,e=>{"use strict";var t=e.i(459119);class i extends Error{status;details;constructor(e,t,i){super(e),this.name="ApiError",this.status=t,this.details=i}get isNetworkError(){return 0===this.status}get isRateLimit(){return 429===this.status}get isUnauthorized(){return 401===this.status}}function n(e,t){return"validation error"===e&&t?.length?function(e){let[t,...i]=e.split(":"),n=i.join(":").trim();if(!n)return e;let r=t.trim(),a=r.trim().replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()),s=n.replace(/^required$/i,"is required"),o=s.toLowerCase().replace(/[_-]+/g," "),l=r.toLowerCase().replace(/[_-]+/g," ");return l&&o.startsWith(`${l} `)&&(s=s.slice(r.length).trimStart()),a?`${a} ${s}`:s}(t[0]):e}async function r(e,t){let r;try{r=await fetch(""+e,{...t,credentials:"include",headers:{"Content-Type":"application/json",...t?.headers}})}catch(e){if(e instanceof TypeError)throw new i("Unable to connect — check your network",0);throw e}if(401===r.status)throw window.location.href="/sign-in",new i("Unauthorized",401);if(!r.ok){let e,t;try{let i=await r.json();e=i.error,t=i.details}catch{}if(429===r.status)throw new i("Please wait a moment before trying again",429);if(r.status>=500)throw new i(n(e,t)||"Something went wrong — please try again",r.status,t);throw new i(n(e,t)||"Something went wrong",r.status,t)}if(204!==r.status)return r.json()}function a(e,t){let i=new URLSearchParams({workspace_id:e,...t});return`?${i.toString()}`}e.s(["ApiError",0,i],636557),parseInt(t.default.env.NEXT_PUBLIC_MOCK_NETWORK_DELAY_MS||"300",10);let s=async(e,t,n,s)=>{let o;if(!s||0===s.length)return r(`/api/conversations/${e}/messages${a(n)}`,{method:"POST",body:JSON.stringify({content:t})});let l=new FormData;for(let e of(l.append("content",t),s))l.append("file",e);try{o=await fetch(`/api/conversations/${e}/messages${a(n)}`,{method:"POST",credentials:"include",body:l})}catch(e){if(e instanceof TypeError)throw new i("Unable to connect — check your network",0);throw e}if(401===o.status)throw window.location.href="/sign-in",new i("Unauthorized",401);if(!o.ok){let e,t;try{let i=await o.json();e=i.error,t=i.details}catch{}if(429===o.status)throw new i("Please wait a moment before trying again",429);if(o.status>=500)throw new i(e||"Something went wrong — please try again",o.status,t);throw new i(e||"Something went wrong",o.status,t)}return o.json()},o=async(e,t,n,s)=>{let o;if(!s||0===s.length)return r(`/api/conversations/${e}/buffered-messages${a(n)}`,{method:"POST",body:JSON.stringify({content:t})});let l=new FormData;for(let e of(l.append("content",t),s))l.append("file",e);try{o=await fetch(`/api/conversations/${e}/buffered-messages${a(n)}`,{method:"POST",credentials:"include",body:l})}catch(e){if(e instanceof TypeError)throw new i("Unable to connect — check your network",0);throw e}if(401===o.status)throw window.location.href="/sign-in",new i("Unauthorized",401);if(!o.ok){let e,t;try{let i=await o.json();e=i.error,t=i.details}catch{}if(429===o.status)throw new i(e||"Maximum follow-ups reached",429);if(o.status>=500)throw new i(e||"Something went wrong — please try again",o.status,t);throw new i(e||"Something went wrong",o.status,t)}return o.json()},l=async(e,t)=>{let i=new URLSearchParams({workspace_id:t}),n=await fetch(`/api/email/${e}/body?${i}`,{credentials:"include"});if(!n.ok)return{content:"(body not available)",isHtml:!1};let r=n.headers.get("Content-Type")??"";return{content:await n.text(),isHtml:r.includes("text/html")}},d=async(e,t)=>{let n=new FormData;n.append("file",e);let r=await fetch(`/api/email/upload${a(t)}`,{method:"POST",credentials:"include",body:n});if(!r.ok)throw new i(await r.text().catch(()=>"Upload failed"),r.status);return r.json()},u=async(e,t)=>{let n;if(!t.files||0===t.files.length)return r(`/api/issues${a(e)}`,{method:"POST",body:JSON.stringify({agent_id:t.agent_id,title:t.title,description:t.description})});let s=new FormData;for(let e of(t.agent_id&&s.append("agent_id",t.agent_id),s.append("title",t.title),s.append("description",t.description??""),t.files))s.append("file",e);try{n=await fetch(`/api/issues${a(e)}`,{method:"POST",credentials:"include",body:s})}catch(e){if(e instanceof TypeError)throw new i("Unable to connect — check your network",0);throw e}if(401===n.status)throw window.location.href="/sign-in",new i("Unauthorized",401);if(!n.ok){let e,t;try{let i=await n.json();e=i.error,t=i.details}catch{}if(429===n.status)throw new i("Please wait a moment before trying again",429);if(n.status>=500)throw new i(e||"Something went wrong — please try again",n.status,t);throw new i(e||"Something went wrong",n.status,t)}return n.json()},c=async(e,t)=>{let i=new URLSearchParams({workspace_id:t}),n=await fetch(`/api/artifacts/${e}/content?${i}`,{credentials:"include"});return n.ok?n.text():"(content not available)"};e.s(["acceptInvite",0,e=>r(`/api/invite/${e}`,{method:"POST"}),"addWhitelistEmail",0,(e,t,i)=>r(`/api/agents/${e}/whitelist${a(i)}`,{method:"POST",body:JSON.stringify({email:t})}),"approveMeeting",0,(e,t,i)=>r(`/api/agents/${e}/meetings/${t}/approve${a(i)}`,{method:"POST"}),"cancelActiveTask",0,(e,t)=>r(`/api/conversations/${e}/active-task${a(t)}`,{method:"DELETE"}),"chatInit",0,(e,t,i)=>r(`/api/agents/${e}/chat-init${a(t)}`,{method:"POST",body:JSON.stringify({...i?{channel:i}:{}})}),"checkFreshness",0,(e,t)=>{let i={};return e.conversationId&&(i.conversation_id=e.conversationId),e.agentId&&(i.agent_id=e.agentId),e.channel&&(i.channel=e.channel),r(`/api/conversations/check-fresh${a(t,i)}`)},"conversationInit",0,(e,t,i)=>{let n={};return i?.newestMessageId&&(n.newest_message_id=i.newestMessageId),i?.messageCount!=null&&(n.message_count=String(i.messageCount)),r(`/api/conversations/${e}/init${a(t,n)}`)},"createAgent",0,(e,t)=>r(`/api/agents${a(t)}`,{method:"POST",body:JSON.stringify(e)}),"createAgentLink",0,(e,t)=>r(`/api/agent-links${a(t)}`,{method:"POST",body:JSON.stringify(e)}),"createBufferedMessage",0,o,"createCalendarEvent",0,(e,t)=>r(`/api/calendar${a(t)}`,{method:"POST",body:JSON.stringify(e)}),"createChannelApi",0,(e,t)=>r(`/api/channels${a(e)}`,{method:"POST",body:JSON.stringify({name:t})}),"createConversation",0,(e,t,i)=>r(`/api/conversations${a(t)}`,{method:"POST",body:JSON.stringify({agent_id:e,...i?{channel:i}:{}})}),"createEmailAccount",0,(e,t,i)=>r(`/api/agents/${e}/email-accounts${a(i)}`,{method:"POST",body:JSON.stringify(t)}),"createInvite",0,e=>r(`/api/workspaces/${e}/invites${a(e)}`,{method:"POST"}),"createIssue",0,u,"createMachineToken",0,(e,t)=>r(`/api/machine-tokens${t?a(t):""}`,{method:"POST",body:JSON.stringify({name:e||"default"})}),"createMeeting",0,(e,t,i)=>r(`/api/agents/${e}/meetings${a(t)}`,{method:"POST",body:JSON.stringify(i)}),"createWorkspace",0,(e,t)=>r("/api/workspaces",{method:"POST",body:JSON.stringify({name:e,slug:t||e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")||"workspace"})}),"deleteAgent",0,(e,t)=>r(`/api/agents/${e}${a(t)}`,{method:"DELETE"}),"deleteAgentLink",0,(e,t)=>r(`/api/agent-links/${e}${a(t)}`,{method:"DELETE"}),"deleteBufferedMessage",0,(e,t,i)=>r(`/api/conversations/${e}/buffered-messages/${t}${a(i)}`,{method:"DELETE"}),"deleteCalendarEvent",0,(e,t,i)=>r(`/api/calendar/${e}${a(t)}`,{method:"DELETE",...i&&i.scope?{headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}:{}}),"deleteChannelApi",0,(e,t)=>r(`/api/channels/${e}${a(t)}`,{method:"DELETE"}),"deleteEmail",0,(e,t)=>r(`/api/email/${e}${a(t)}`,{method:"DELETE"}),"deleteEmailAccount",0,(e,t,i)=>r(`/api/agents/${e}/email-accounts/${t}${a(i)}`,{method:"DELETE"}),"deleteIssue",0,(e,t)=>r(`/api/issues/${t}${a(e)}`,{method:"DELETE"}),"deleteMachine",0,(e,t)=>r(`/api/runtimes/machine${a(t,{daemon_id:e})}`,{method:"DELETE"}),"deleteMeeting",0,(e,t,i)=>r(`/api/agents/${e}/meetings/${t}${a(i)}`,{method:"DELETE"}),"deleteWorkspace",0,(e,t)=>r(`/api/workspaces/${e}${a(e)}`,{method:"DELETE",body:JSON.stringify({confirm_name:t})}),"fetchLatestCliVersion",0,()=>r("/api/cli/latest-version"),"fetchModelOptions",0,()=>r("/api/config/model-options"),"flagMessage",0,(e,t)=>r(`/api/flags${a(e)}`,{method:"POST",body:JSON.stringify({messageId:t})}),"getActiveTask",0,(e,t)=>r(`/api/conversations/${e}/active-task${a(t)}`),"getAgentSkills",0,(e,t)=>r(`/api/agents/${e}/skills${a(t)}`),"getArtifactContent",0,c,"getCalendarEvent",0,(e,t)=>r(`/api/calendar/${e}${a(t)}`),"getEmail",0,(e,t)=>r(`/api/email/${e}${a(t)}`),"getEmailBody",0,l,"getEmailThread",0,(e,t)=>r(`/api/email/${e}/thread${a(t)}`),"getFlaggedCount",0,e=>r(`/api/flags/count${a(e)}`),"getInboxCount",0,(e,t)=>{let i={};return t?.types?.length&&(i.types=t.types.join(",")),r(`/api/inbox/count${a(e,i)}`)},"getInviteInfo",0,e=>r(`/api/invite/${e}`),"getIssue",0,(e,t)=>r(`/api/issues/${t}${a(e)}`),"getMemberMe",0,e=>r(`/api/members/me${a(e)}`),"getMinCliVersion",0,()=>r("/api/config/min-version"),"getTask",0,(e,t)=>r(`/api/tasks/${e}${a(t)}`),"getTaskMessages",0,(e,t,i)=>r(`/api/tasks/${e}/messages${a(t,i?{since:String(i)}:void 0)}`),"getTrace",0,(e,t)=>r(`/api/traces/${e}${a(t)}`),"getWorkspaceOverview",0,e=>r(`/api/workspaces/${e}/overview${a(e)}`),"grantAgentAccess",0,(e,t,i)=>r(`/api/agents/${t}/access${a(e)}`,{method:"POST",body:JSON.stringify({user_id:i})}),"listAgentAccess",0,(e,t)=>r(`/api/agents/${t}/access${a(e)}`),"listAgentActiveTaskCounts",0,e=>r(`/api/agents/active-task-counts${a(e)}`),"listAgentActivity",0,(e,t,i)=>{let n={};return i?.limit&&(n.limit=String(i.limit)),i?.before&&(n.before=i.before),i?.beforeId&&(n.before_id=i.beforeId),i?.status&&(n.status=i.status),i?.type&&(n.type=i.type),r(`/api/agents/${e}/activity${a(t,n)}`)},"listAgentLinks",0,e=>r(`/api/agent-links${a(e)}`),"listAgentPins",0,e=>r(`/api/agents/pins${a(e)}`),"listAgents",0,e=>r(`/api/agents${a(e)}`),"listArtifacts",0,(e,t)=>r(`/api/artifacts${a(t,{conversation_id:e})}`),"listBufferedMessages",0,(e,t)=>r(`/api/conversations/${e}/buffered-messages${a(t)}`),"listCalendarEvents",0,(e,t)=>{let i={};return t?.agentId&&(i.agentId=t.agentId),t?.from&&(i.from=t.from),t?.to&&(i.to=t.to),r(`/api/calendar${a(e,i)}`)},"listChannels",0,e=>r(`/api/channels${a(e)}`),"listEmailAccounts",0,(e,t)=>r(`/api/agents/${e}/email-accounts${a(t)}`),"listEmails",0,(e,t,i,n)=>r(`/api/email${a(t,{agentId:e,...i?{folder:i}:{},...n?{address:n}:{}})}`),"listFlaggedItems",0,(e,t)=>{let i={};return t?.limit&&(i.limit=String(t.limit)),t?.before&&(i.before=t.before),r(`/api/flags${a(e,i)}`)},"listFlaggedMessageIds",0,(e,t)=>r(`/api/flags${a(e,{conversation_id:t,ids_only:"true"})}`),"listInboxItems",0,(e,t)=>{let i={};return t?.limit&&(i.limit=String(t.limit)),t?.before&&(i.before=t.before),t?.types?.length&&(i.types=t.types.join(",")),r(`/api/inbox${a(e,i)}`)},"listInvites",0,e=>r(`/api/workspaces/${e}/invites${a(e)}`),"listIssues",0,(e,t)=>{let i={};return t?.agentId&&(i.agentId=t.agentId),t?.status&&(i.status=t.status),t?.terminal!==void 0&&(i.terminal=String(t.terminal)),r(`/api/issues${a(e,i)}`)},"listMeetings",0,(e,t)=>r(`/api/agents/${e}/meetings${a(t)}`),"listMembers",0,e=>r(`/api/workspaces/${e}/members${a(e)}`),"listMessages",0,(e,t,i)=>{let n={};return i?.limit&&(n.limit=String(i.limit)),i?.before&&(n.before=i.before),i?.beforeId&&(n.before_id=i.beforeId),r(`/api/conversations/${e}/messages${a(t,n)}`)},"listMessagesAroundTask",0,(e,t,i)=>r(`/api/conversations/${e}/messages${a(t,{around_task:i})}`),"listPreviousConversations",0,(e,t,i)=>{let n={exclude:i.exclude,before:i.before};return i.channel&&(n.channel=i.channel),i.limit&&(n.limit=String(i.limit)),r(`/api/agents/${e}/conversations${a(t,n)}`)},"listRuntimes",0,e=>r(`/api/runtimes${a(e)}`),"listTraces",0,(e,t)=>{let i={};return t?.limit&&(i.limit=String(t.limit)),t?.before&&(i.before=t.before),t?.status&&(i.status=t.status),t?.multiAgent&&(i.multiAgent="true"),t?.agentId&&(i.agentId=t.agentId),t?.channel&&(i.channel=t.channel),r(`/api/traces${a(e,i)}`)},"listWhitelist",0,(e,t)=>r(`/api/agents/${e}/whitelist${a(t)}`),"listWorkspaceActiveTasks",0,e=>r(`/api/agents/active-tasks${a(e)}`),"listWorkspaces",0,()=>r("/api/workspaces"),"markAllInboxRead",0,e=>r(`/api/inbox/read-all${a(e)}`,{method:"POST"}),"markInboxRead",0,(e,t)=>r(`/api/inbox/read${a(t)}`,{method:"POST",body:JSON.stringify({conversationId:e})}),"pinAgent",0,(e,t)=>r(`/api/agents/${t}/pin${a(e)}`,{method:"POST"}),"removeMember",0,(e,t)=>r(`/api/workspaces/${e}/members/${t}${a(e)}`,{method:"DELETE"}),"removeWhitelistEmail",0,(e,t,i)=>r(`/api/agents/${e}/whitelist/${t}${a(i)}`,{method:"DELETE"}),"renameChannelApi",0,(e,t,i)=>r(`/api/channels/${e}${a(t)}`,{method:"PATCH",body:JSON.stringify({name:i})}),"reorderAgentPins",0,(e,t)=>r(`/api/agents/pins/reorder${a(e)}`,{method:"PUT",body:JSON.stringify({ordered_agent_ids:t})}),"reorderChannelsApi",0,(e,t)=>r(`/api/channels/reorder${a(e)}`,{method:"PUT",body:JSON.stringify({ordered_channel_ids:t})}),"reorderUnpinnedAgents",0,(e,t)=>r(`/api/agents/sidebar/reorder${a(e)}`,{method:"PUT",body:JSON.stringify({ordered_agent_ids:t})}),"requestWorkspaceBrowse",0,(e,t,i,n)=>r(`/api/agents/${e}/workspace/browse${a(t)}`,{method:"POST",body:JSON.stringify({request_type:i,path:n})}),"retryTask",0,(e,t)=>r(`/api/tasks/${e}/retry${a(t)}`,{method:"POST"}),"revokeAgentAccess",0,(e,t,i,n=!1)=>r(`/api/agents/${t}/access/${i}${a(e)}${n?"&remove_whitelist=true":""}`,{method:"DELETE"}),"revokeInvite",0,(e,t)=>r(`/api/workspaces/${e}/invites/${t}${a(e)}`,{method:"DELETE"}),"sendEmail",0,(e,t,i,n,s,o,l,d)=>r(`/api/email/send${a(s)}`,{method:"POST",body:JSON.stringify({agentId:e,to:t,subject:i,htmlBody:n,attachments:o,...l,customAccountId:d})}),"sendMessage",0,s,"stopMeeting",0,(e,t,i)=>r(`/api/agents/${e}/meetings/${t}/stop${a(i)}`,{method:"POST"}),"syncEmailAccount",0,(e,t,i)=>r(`/api/agents/${e}/email-accounts/${t}/sync${a(i)}`,{method:"POST"}),"triggerRuntimeRescan",0,(e,t)=>r(`/api/runtimes/${e}/rescan${a(t)}`,{method:"POST"}),"triggerRuntimeUpdate",0,(e,t)=>r(`/api/runtimes/${e}/update${a(t)}`,{method:"POST"}),"unflagMessage",0,(e,t)=>r(`/api/flags/${t}${a(e)}`,{method:"DELETE"}),"unpinAgent",0,(e,t)=>r(`/api/agents/${t}/pin${a(e)}`,{method:"DELETE"}),"updateAgent",0,(e,t,i)=>r(`/api/agents/${e}${a(i)}`,{method:"PATCH",body:JSON.stringify(t)}),"updateAgentLink",0,(e,t,i)=>r(`/api/agent-links/${e}${a(i)}`,{method:"PATCH",body:JSON.stringify(t)}),"updateCalendarEvent",0,(e,t,i)=>r(`/api/calendar/${e}${a(i)}`,{method:"PATCH",body:JSON.stringify(t)}),"updateEmailStatus",0,(e,t,i)=>r(`/api/email/${e}${a(t)}`,{method:"PATCH",body:JSON.stringify({status:i})}),"updateIssue",0,(e,t,i)=>r(`/api/issues/${t}${a(e)}`,{method:"PATCH",body:JSON.stringify(i)}),"updateMemberMe",0,(e,t)=>r(`/api/members/me${a(e)}`,{method:"PATCH",body:JSON.stringify({global_instruction:t})}),"updateWorkspace",0,(e,t)=>r(`/api/workspaces/${e}${a(e)}`,{method:"PATCH",body:JSON.stringify(t)}),"uploadEmailAttachment",0,d],222862)},297925,e=>{"use strict";let t=(0,e.i(406963).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["default",0,t])},790659,e=>{"use strict";var t=e.i(298699),i=e.i(982218),n=e.i(627498),r=e.i(893205);e.s(["useAnchoredPopupScrollLock",0,function(e,a,s,o){let[l,d]=t.useState(!1);(0,r.useIsoLayoutEffect)(()=>{if(!e||!a||null==s)return void d(!1);let t=(0,i.ownerDocument)(s).documentElement.clientWidth,n=s.offsetWidth;d(t>0&&n>0&&n>=t-20)},[e,a,s]),(0,n.useScrollLock)(e&&(!a||l),o)}])},643899,e=>{"use strict";var t=e.i(240003),i=e.i(298699);let n=i.createContext(void 0);e.s(["useToolbarRootContext",0,function(e){let r=i.useContext(n);if(void 0===r&&!e)throw Error((0,t.default)(69));return r}])},8043,e=>{"use strict";var t=e.i(298699);e.s(["useControlled",0,function({controlled:e,default:i,name:n,state:r="value"}){let{current:a}=t.useRef(void 0!==e),[s,o]=t.useState(i),l=t.useCallback(e=>{a||o(e)},[]);return[a?e:s,l]}])},94896,867588,e=>{"use strict";e.i(459119);var t,i=e.i(240003),n=e.i(298699),r=e.i(366767);let a=((t={}).disabled="data-disabled",t.valid="data-valid",t.invalid="data-invalid",t.touched="data-touched",t.dirty="data-dirty",t.filled="data-filled",t.focused="data-focused",t),s={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},o={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},l={disabled:!1,...o};e.s(["DEFAULT_FIELD_ROOT_STATE",0,l,"DEFAULT_FIELD_STATE_ATTRIBUTES",0,o,"DEFAULT_VALIDITY_STATE",0,s,"fieldValidityMapping",0,{valid:e=>null===e?null:e?{[a.valid]:""}:{[a.invalid]:""}}],867588);let d={invalid:void 0,name:void 0,validityData:{state:s,errors:[],error:"",value:"",initialValue:null},setValidityData:r.NOOP,disabled:void 0,touched:o.touched,setTouched:r.NOOP,dirty:o.dirty,setDirty:r.NOOP,filled:o.filled,setFilled:r.NOOP,focused:o.focused,setFocused:r.NOOP,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:l,markedDirtyRef:{current:!1},registerFieldControl:r.NOOP,validation:{getValidationProps:(e=r.EMPTY_OBJECT)=>e,getInputValidationProps:(e=r.EMPTY_OBJECT)=>e,inputRef:{current:null},commit:async()=>{}}},u=n.createContext(d);e.s(["FieldRootContext",0,u,"useFieldRootContext",0,function(e=!0){let t=n.useContext(u);if(t.setValidityData===r.NOOP&&!e)throw Error((0,i.default)(28));return t}],94896)},253432,e=>{"use strict";var t=e.i(298699),i=e.i(366767);let n=t.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:i.NOOP,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});e.s(["useFormContext",0,function(){return t.useContext(n)}])},786551,e=>{"use strict";var t=e.i(298699),i=e.i(366767);let n=t.createContext({controlId:void 0,registerControlId:i.NOOP,labelId:void 0,setLabelId:i.NOOP,messageIds:[],setMessageIds:i.NOOP,getDescriptionProps:e=>e});e.s(["LabelableContext",0,n,"useLabelableContext",0,function(){return t.useContext(n)}])},405091,e=>{"use strict";var t=e.i(92615),i=e.i(982218),n=e.i(673664),r=e.i(444153),a=e.i(893205),s=e.i(384555),o=e.i(786551);e.s(["useLabel",0,function(e={}){let l,{id:d,fallbackControlId:u,native:c=!1,setLabelId:p,focusControl:g}=e,{controlId:f,setLabelId:m}=(0,o.useLabelableContext)(),h=(0,n.useStableCallback)(e=>{m(e),p?.(e)}),v=(l=(0,s.useBaseUiId)(d),(0,a.useIsoLayoutEffect)(()=>(h(l),()=>{h(void 0)}),[l,h]),l),b=f??u;function $(e){let n=(0,r.getTarget)(e.nativeEvent);n?.closest("button,input,select,textarea")||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),c||function(e){if(g)return g(e,b);if(!b)return;let n=(0,i.ownerDocument)(e.currentTarget).getElementById(b);(0,t.isHTMLElement)(n)&&n.focus({focusVisible:!0})}(e))}return c?{id:v,htmlFor:b??void 0,onMouseDown:$}:{id:v,onClick:$,onPointerDown(e){e.preventDefault()}}}],405091)},560258,e=>{"use strict";var t=e.i(298699),i=e.i(893205),n=e.i(94896);e.s(["useRegisterFieldControl",0,function(e,r,a,s,o=!0){let{registerFieldControl:l}=(0,n.useFieldRootContext)(),d=t.useRef(null);d.current||(d.current=Symbol()),(0,i.useIsoLayoutEffect)(()=>{let t=d.current;if(t&&o)return l(t,{controlRef:e,getValue:s,id:r,value:a}),()=>{l(t,void 0)}},[e,o,s,r,l,a])}])},434045,e=>{"use strict";var t=e.i(298699),i=e.i(893205),n=e.i(673664),r=e.i(421350),a=e.i(92615),s=e.i(366767),o=e.i(384555),l=e.i(786551);e.s(["useLabelableId",0,function(e={}){let{id:d,implicit:u=!1,controlRef:c}=e,{controlId:p,registerControlId:g}=(0,l.useLabelableContext)(),f=(0,o.useBaseUiId)(d),m=u?p:void 0,h=(0,r.useRefWithInit)(()=>Symbol("labelable-control")),v=t.useRef(!1),b=t.useRef(null!=d),$=(0,n.useStableCallback)(()=>{v.current&&g!==s.NOOP&&(v.current=!1,g(h.current,void 0))});return(0,i.useIsoLayoutEffect)(()=>{let e;if(g!==s.NOOP){if(u){let t=c?.current;e=(0,a.isElement)(t)&&null!=t.closest("label")?d??null:m??f}else if(null!=d)b.current=!0,e=d;else{if(!b.current)return void $();e=f}if(void 0===e)return void $();v.current=!0,g(h.current,e)}},[d,c,m,g,u,f,h,$]),t.useEffect(()=>$,[$]),p??f}])},497064,e=>{"use strict";var t=e.i(298699),i=e.i(863764);let n=t.forwardRef(function(e,t){let{className:n,render:r,orientation:a="horizontal",style:s,...o}=e;return(0,i.useRenderElement)("div",e,{state:{orientation:a},ref:t,props:[{role:"separator","aria-orientation":a},o]})});e.s(["Separator",0,n])},310318,e=>{"use strict";var t=e.i(298699);let i=t.createContext(void 0),n={disableStyleElements:!1};e.s(["useCSPContext",0,function(){return t.useContext(i)??n}])},764434,e=>{"use strict";var t=e.i(298699);let i=t.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});e.s(["CompositeListContext",0,i,"useCompositeListContext",0,function(){return t.useContext(i)}])},442405,e=>{"use strict";var t=e.i(298699),i=e.i(421350),n=e.i(673664),r=e.i(893205),a=e.i(764434),s=e.i(368075);function o(){return new Map}function l(){return new Set}function d(e,t){let i=e.compareDocumentPosition(t);return i&Node.DOCUMENT_POSITION_FOLLOWING||i&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:i&Node.DOCUMENT_POSITION_PRECEDING||i&Node.DOCUMENT_POSITION_CONTAINS?1:0}e.s(["CompositeList",0,function(e){let{children:u,elementsRef:c,labelsRef:p,onMapChange:g}=e,f=(0,n.useStableCallback)(g),m=t.useRef(0),h=(0,i.useRefWithInit)(l).current,v=(0,i.useRefWithInit)(o).current,[b,$]=t.useState(0),y=t.useRef(b),w=(0,n.useStableCallback)((e,t)=>{v.set(e,t??null),y.current+=1,$(y.current)}),E=(0,n.useStableCallback)(e=>{v.delete(e),y.current+=1,$(y.current)}),O=t.useMemo(()=>{let e=new Map;return Array.from(v.keys()).filter(e=>e.isConnected).sort(d).forEach((t,i)=>{let n=v.get(t)??{};e.set(t,{...n,index:i})}),e},[v,b]);(0,r.useIsoLayoutEffect)(()=>{if("function"!=typeof MutationObserver||0===O.size)return;let e=new MutationObserver(e=>{let t=new Set,i=e=>t.has(e)?t.delete(e):t.add(e);e.forEach(e=>{e.removedNodes.forEach(i),e.addedNodes.forEach(i)}),0===t.size&&(y.current+=1,$(y.current))});return O.forEach((t,i)=>{i.parentElement&&e.observe(i.parentElement,{childList:!0})}),()=>{e.disconnect()}},[O]),(0,r.useIsoLayoutEffect)(()=>{y.current===b&&(c.current.length!==O.size&&(c.current.length=O.size),p&&p.current.length!==O.size&&(p.current.length=O.size),m.current=O.size),f(O)},[f,O,c,p,b]),(0,r.useIsoLayoutEffect)(()=>()=>{c.current=[]},[c]),(0,r.useIsoLayoutEffect)(()=>()=>{p&&(p.current=[])},[p]);let T=(0,n.useStableCallback)(e=>(h.add(e),()=>{h.delete(e)}));(0,r.useIsoLayoutEffect)(()=>{h.forEach(e=>e(O))},[h,O]);let S=t.useMemo(()=>({register:w,unregister:E,subscribeMapChange:T,elementsRef:c,labelsRef:p,nextIndexRef:m}),[w,E,T,c,p,m]);return(0,s.jsx)(a.CompositeListContext.Provider,{value:S,children:u})}])},401489,e=>{"use strict";var t,i=e.i(298699),n=e.i(893205),r=e.i(764434);let a=((t={})[t.None=0]="None",t[t.GuessFromOrder=1]="GuessFromOrder",t);e.s(["IndexGuessBehavior",0,a,"useCompositeListItem",0,function(e={}){let{label:t,metadata:s,textRef:o,indexGuessBehavior:l,index:d}=e,{register:u,unregister:c,subscribeMapChange:p,elementsRef:g,labelsRef:f,nextIndexRef:m}=(0,r.useCompositeListContext)(),h=i.useRef(-1),[v,b]=i.useState(d??(l===a.GuessFromOrder?()=>{if(-1===h.current){let e=m.current;m.current+=1,h.current=e}return h.current}:-1)),$=i.useRef(null),y=i.useCallback(e=>{if($.current=e,-1!==v&&null!==e&&(g.current[v]=e,f)){let i=void 0!==t;f.current[v]=i?t:o?.current?.textContent??e.textContent}},[v,g,f,t,o]);return(0,n.useIsoLayoutEffect)(()=>{if(null!=d)return;let e=$.current;if(e)return u(e,s),()=>{c(e)}},[d,u,c,s]),(0,n.useIsoLayoutEffect)(()=>{if(null==d)return p(e=>{let t=$.current?e.get($.current)?.index:null;null!=t&&b(t)})},[d,p,b]),i.useMemo(()=>({ref:y,index:v}),[v,y])}])},26165,e=>{"use strict";var t=e.i(297925);e.s(["CheckIcon",()=>t.default])},416765,e=>{"use strict";let t=(0,e.i(406963).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["default",0,t])},466314,990114,e=>{"use strict";function t(e,i=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(i,Math.min(e,n))}e.s(["clamp",0,t],990114),e.s(["SCROLL_EDGE_TOLERANCE_PX",0,1,"getMaxScrollOffset",0,function(e,t){return Math.max(0,e-t)},"normalizeScrollOffset",0,function(e,i){if(i<=0)return 0;let n=t(e,0,i),r=i-n,a=n<=1,s=r<=1;return a&&s?n<=r?0:i:a?0:s?i:n}],466314)},367598,e=>{"use strict";var t=e.i(368075);let i="base-ui-disable-scrollbar";e.s(["styleDisableScrollbar",0,{className:i,getElement:e=>(0,t.jsx)("style",{nonce:e,href:i,precedence:"base-ui:low",children:`.${i}{scrollbar-width:none}.${i}::-webkit-scrollbar{display:none}`})}])}]);