@aeolus-fleet/console 0.20.1 → 0.20.3
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.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +3 -3
- package/.next/fallback-build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/inbox/page.js.nft.json +1 -1
- package/.next/server/app/inbox/page_client-reference-manifest.js +1 -1
- package/.next/server/app/labels/page.js.nft.json +1 -1
- package/.next/server/app/labels/page_client-reference-manifest.js +1 -1
- package/.next/server/app/needs-attention/page.js.nft.json +1 -1
- package/.next/server/app/needs-attention/page_client-reference-manifest.js +1 -1
- package/.next/server/app/needs-crew/page.js.nft.json +1 -1
- package/.next/server/app/needs-crew/page_client-reference-manifest.js +1 -1
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/page.js.nft.json +1 -1
- package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/server/app/ships/[shipId]/page.js.nft.json +1 -1
- package/.next/server/app/ships/[shipId]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/sign-in/failed/page.js.nft.json +1 -1
- package/.next/server/app/sign-in/failed/page_client-reference-manifest.js +1 -1
- package/.next/server/app/sign-in/page.js.nft.json +1 -1
- package/.next/server/app/sign-in/page_client-reference-manifest.js +1 -1
- package/.next/server/app/squadrons/[squadronId]/page.js.nft.json +1 -1
- package/.next/server/app/squadrons/[squadronId]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/squadrons/blueprints/[name]/page.js.nft.json +1 -1
- package/.next/server/app/squadrons/blueprints/[name]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/squadrons/connection/route.js.nft.json +1 -1
- package/.next/server/app/squadrons/page.js.nft.json +1 -1
- package/.next/server/app/squadrons/page_client-reference-manifest.js +1 -1
- package/.next/server/app/squadrons/templates/[name]/page.js.nft.json +1 -1
- package/.next/server/app/squadrons/templates/[name]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/trierarch-plugin/connection/route.js.nft.json +1 -1
- package/.next/server/app/trierarchs/[shipId]/page.js.nft.json +1 -1
- package/.next/server/app/trierarchs/[shipId]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/trierarchs/page.js.nft.json +1 -1
- package/.next/server/app/trierarchs/page_client-reference-manifest.js +1 -1
- package/.next/server/app/version/route.js.nft.json +1 -1
- package/.next/server/chunks/_0h366h9._.js +1 -1
- package/.next/server/chunks/packages_console_lib_connect-plugin_ts_197hf-1._.js +1 -1
- package/.next/server/chunks/ssr/_0dogq79._.js +1 -1
- package/.next/server/chunks/ssr/_0s2b6hb._.js +1 -1
- package/.next/server/chunks/ssr/_0sko-kt._.js +1 -1
- package/.next/server/chunks/ssr/_0sv2xqb._.js +1 -1
- package/.next/server/chunks/ssr/_0wtj0e-._.js +1 -1
- package/.next/server/chunks/ssr/_0xc3etp._.js +1 -1
- package/.next/server/chunks/ssr/_0xvm1ng._.js +1 -1
- package/.next/server/chunks/ssr/_0ziovn_._.js +1 -1
- package/.next/server/chunks/ssr/_11cgy8n._.js +1 -1
- package/.next/server/chunks/ssr/_1442xyx._.js +1 -1
- package/.next/server/chunks/ssr/_17u4fan._.js +1 -1
- package/.next/server/chunks/ssr/_181kpys._.js +1 -1
- package/.next/server/chunks/ssr/_19e0e-9._.js +1 -1
- package/.next/server/chunks/ssr/_1ejhqt9._.js +1 -1
- package/.next/server/chunks/ssr/_1kv8ma5._.js +1 -1
- package/.next/server/chunks/ssr/_1ommvbv._.js +1 -1
- package/.next/server/chunks/ssr/_1on9mjs._.js +1 -1
- package/.next/server/chunks/ssr/_1oofkty._.js +1 -1
- package/.next/server/chunks/ssr/_1r6ce_7._.js +1 -1
- package/.next/server/chunks/ssr/packages_console_0edevze._.js +1 -1
- package/.next/server/chunks/ssr/packages_console_0y7h5dm._.js +1 -1
- package/.next/server/chunks/ssr/packages_console_app_ships_[shipId]_page_tsx_0fudjay._.js +1 -1
- package/.next/server/chunks/ssr/packages_console_app_trierarchs_[shipId]_page_tsx_1rqyoj3._.js +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/{26dg2z_6kosr0.js → 0r8dost92fvd7.js} +1 -1
- package/.next/static/chunks/{3z61krti-vbu2.js → 108myfe5p_uik.js} +1 -1
- package/.next/static/chunks/{1bvfk_-_enrxp.js → 1dj9u_t1hus9k.js} +1 -1
- package/.next/static/chunks/{414186x82sxkk.js → 1jt80qxcc5_14.js} +1 -1
- package/.next/static/chunks/{28j4p-34f5axr.js → 1ntkufzth29k5.js} +1 -1
- package/.next/static/chunks/{3jsj5ozfio3me.js → 2c6e9e-s7rbf3.js} +1 -1
- package/.next/static/chunks/{1h0f7mfr5wxsj.js → 2ie6mvt-ssazt.js} +1 -1
- package/.next/static/chunks/{2wnrtdpkhbd_j.js → 2n90taswwrii-.js} +1 -1
- package/.next/static/chunks/{3splvoavlf-cc.js → 2yxtvf_jtfnbf.js} +5 -5
- package/.next/static/chunks/{2spn0c35v7c1b.js → 3plldogn92kay.js} +1 -1
- package/.next/static/chunks/3x1-acncumcu6.js +1 -0
- package/package.json +3 -3
- package/.next/static/chunks/1ct431l_sosvm.js +0 -1
- /package/.next/static/{tBoOmC5nKBL5eqDmRV5Vd → 2RcnmMJXP55xfywa0IWOJ}/_buildManifest.js +0 -0
- /package/.next/static/{tBoOmC5nKBL5eqDmRV5Vd → 2RcnmMJXP55xfywa0IWOJ}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{tBoOmC5nKBL5eqDmRV5Vd → 2RcnmMJXP55xfywa0IWOJ}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,52376,e=>{"use strict";e.s([],4824),e.i(4824);var t=e.i(71645),r=e.i(52245),n=e.i(33332);let s=t.createContext(void 0);function i(){let e=t.useContext(s);if(void 0===e)throw Error((0,n.default)(13));return e}let a={imageLoadingStatus:()=>null};var o=e.i(43476);let l=t.forwardRef(function(e,n){let{className:i,render:l,style:u,...c}=e,[d,h]=t.useState("idle"),f=t.useMemo(()=>({imageLoadingStatus:d,setImageLoadingStatus:h}),[d,h]),p=(0,r.useRenderElement)("span",e,{state:{imageLoadingStatus:d},ref:n,props:c,stateAttributesMapping:a});return(0,o.jsx)(s.Provider,{value:f,children:p})});var u=e.i(67865),c=e.i(46376),d=e.i(37584),h=e.i(74354),f=e.i(23910),p=e.i(56789);let m={...a,...h.transitionStatusMapping},g=t.forwardRef(function(e,n){let{className:s,render:a,onLoadingStatusChange:o,keepMounted:l=!1,style:h,sizes:g,srcSet:y,src:v,...b}=e,{setImageLoadingStatus:x}=i(),[k,S]=function(e,{referrerPolicy:r,crossOrigin:n,sizes:s,srcSet:i},a){let o=t.useState("idle"),l=o[1];return(0,c.useIsoLayoutEffect)(()=>{if(!a)return p.NOOP;if(!e&&!i)return l("error"),p.NOOP;let t=!0,o=new window.Image,u=e=>()=>{t&&l(e)};return l("loading"),o.onload=u("loaded"),o.onerror=u("error"),r&&(o.referrerPolicy=r),o.crossOrigin=n??null,s&&(o.sizes=s),i&&(o.srcset=i),e&&(o.src=e),o.complete&&l(o.naturalWidth>0?"loaded":"error"),()=>{t=!1}},[a,e,i,s,n,r,l]),o}(v,e,!l),C="loaded"===k,{mounted:E,transitionStatus:R,setMounted:j}=(0,f.useTransitionStatus)(C),w=t.useRef(null),M=t.useRef(!0);(0,c.useIsoLayoutEffect)(()=>{if(!l)return;let e=M.current;M.current=!1;let t=w.current;if(!t)return;if(!t.complete)return void S("loading");let r=t.naturalWidth>0?"loaded":"error";S(r),"loaded"===r&&e&&j(!0)},[l,v,y,g,b.crossOrigin,b.referrerPolicy,a,S,j]);let O=l?{"data-loading":"loading"===k?"":void 0,"data-error":"error"===k?"":void 0,"aria-hidden":"loaded"!==k||void 0,onLoad(){S("loaded")},onError(){S("error")}}:void 0,P=(0,u.useStableCallback)(e=>{o?.(e),x(e)});(0,c.useIsoLayoutEffect)(()=>{"idle"!==k&&P(k)},[k,P]),(0,c.useIsoLayoutEffect)(()=>()=>x("idle"),[x]),(0,d.useOpenChangeComplete)({enabled:!C,open:C,ref:w,onComplete(){C||j(!1)}});let A=l||E,N={};void 0!==g&&(N.sizes=g),void 0!==y&&(N.srcSet=y),void 0!==v&&(N.src=v);let T=(0,r.useRenderElement)("img",e,{state:{imageLoadingStatus:k,transitionStatus:l&&"ending"===R?void 0:R},ref:[n,w],props:[O,b,N],stateAttributesMapping:m,enabled:A});return A?T:null});var y=e.i(39957);let v=t.forwardRef(function(e,n){let{className:s,render:o,delay:l=0,style:u,...c}=e,{imageLoadingStatus:d}=i(),[h,f]=t.useState(0===l),p=(0,y.useTimeout)();return t.useEffect(()=>(l>0?p.start(l,()=>f(!0)):f(!0),p.clear),[p,l]),(0,r.useRenderElement)("span",e,{state:{imageLoadingStatus:d},ref:n,props:c,stateAttributesMapping:a,enabled:"loaded"!==d&&(0===l||h)})});e.s(["Fallback",0,v,"Image",0,g,"Root",0,l],14751);var b=e.i(14751);e.s(["Avatar",0,b],52376)},80862,e=>{"use strict";e.s(["endingStyle",0,"data-ending-style","startingStyle",0,"data-starting-style"])},74354,e=>{"use strict";var t=e.i(80862);let r={[t.startingStyle]:""},n={[t.endingStyle]:""};e.s(["transitionStatusMapping",0,{transitionStatus:e=>"starting"===e?r:"ending"===e?n:null}])},37584,22640,e=>{"use strict";var t=e.i(71645),r=e.i(67865),n=e.i(74080),s=e.i(8445),i=e.i(94603),a=e.i(80862);let o=null;function l(e,t=!1,u=!1){let c=(0,s.useAnimationFrame)();return(0,r.useStableCallback)((r,s=null)=>{c.cancel();let l=(0,i.resolveRef)(e);if(null==l)return;let d=()=>{if(!u)return void n.flushSync(r);if(!o){let e=[];o=e,queueMicrotask(()=>{o=null,n.flushSync(()=>{for(let t of e)t()})})}o.push(()=>{s?.aborted||r()})};if("function"!=typeof l.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void r();function h(){Promise.all(l.getAnimations().map(e=>e.finished)).then(()=>{s?.aborted||d()},()=>{s?.aborted||(l.getAnimations().some(e=>e.pending||"finished"!==e.playState)?h():d())})}if(t){let e=a.startingStyle;if(!l.hasAttribute(e))return void c.request(h);let t=new MutationObserver(()=>{l.hasAttribute(e)||(t.disconnect(),h())});return t.observe(l,{attributes:!0,attributeFilter:[e]}),void s?.addEventListener("abort",()=>t.disconnect(),{once:!0})}c.request(h)})}e.s(["useAnimationsFinished",0,l],22640),e.s(["useOpenChangeComplete",0,function(e){let{enabled:n=!0,open:s,ref:i,batch:a=!1,onComplete:o}=e,u=(0,r.useStableCallback)(o),c=l(i,s,a);t.useEffect(()=>{if(!n)return;let e=new AbortController;return c(u,e.signal),()=>{e.abort()}},[n,s,u,c])}],37584)},23910,e=>{"use strict";var t=e.i(71645),r=e.i(46376),n=e.i(8445);e.s(["useTransitionStatus",0,function(e,s=!1,i=!1,a=!1){let[o,l]=t.useState(e&&s?"idle":void 0),[u,c]=t.useState(e&&!a);return e&&!u&&(c(!0),l("starting")),e||!u||"ending"===o||i||l("ending"),e||u||"ending"!==o||l(void 0),(0,r.useIsoLayoutEffect)(()=>{if(!e&&u&&"ending"!==o&&i){let e=n.AnimationFrame.request(()=>{l("ending")});return()=>{n.AnimationFrame.cancel(e)}}},[e,u,o,i]),(0,r.useIsoLayoutEffect)(()=>{if(!e||s)return;let t=n.AnimationFrame.request(()=>{l(void 0)});return()=>{n.AnimationFrame.cancel(t)}},[s,e]),(0,r.useIsoLayoutEffect)(()=>{if(!e||!s)return;e&&u&&"idle"!==o&&l("starting");let t=n.AnimationFrame.request(()=>{l("idle")});return()=>{n.AnimationFrame.cancel(t)}},[s,e,u,o]),{mounted:u,setMounted:c,transitionStatus:o}}])},94603,e=>{"use strict";e.s(["resolveRef",0,function(e){return null==e?e:"current"in e?e.current:e}])},8445,e=>{"use strict";e.i(47167);var t=e.i(88940),r=e.i(26300);let n=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let r=0;r<t.length;r+=1)t[r]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||null!==this.callbacks[t]&&(this.callbacks[t]=null,this.callbacksCount-=1)}};class s{static create(){return new s}static request(e){return n.request(e)}static cancel(e){return n.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=n.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(n.cancel(this.currentId),this.currentId=null)};disposeEffect=()=>this.cancel}e.s(["AnimationFrame",0,s,"useAnimationFrame",0,function(){let e=(0,t.useRefWithInit)(s.create).current;return(0,r.useOnMount)(e.disposeEffect),e}])},26300,e=>{"use strict";var t=e.i(71645),r=e.i(56789);e.s(["useOnMount",0,function(e){t.useEffect(e,r.EMPTY_ARRAY)}])},39957,e=>{"use strict";var t=e.i(88940),r=e.i(26300);class n{static create(){return new n}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}e.s(["Timeout",0,n,"useTimeout",0,function(){let e=(0,t.useRefWithInit)(n.create).current;return(0,r.useOnMount)(e.disposeEffect),e}])},37750,e=>{"use strict";var t=e.i(56420);let r={name:"app-window",size:24,node:[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]};r.node;let n=(0,t.default)(r);e.s(["AppWindow",0,n],37750)},71567,e=>{"use strict";var t=e.i(56420);let r={name:"bot",size:24,node:[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]};r.node;let n=(0,t.default)(r);e.s(["Bot",0,n],71567)},92150,e=>{"use strict";var t=e.i(56420);let r={name:"boxes",size:24,node:[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]};r.node;let n=(0,t.default)(r);e.s(["Boxes",0,n],92150)},49287,e=>{"use strict";var t=e.i(56420);let r={name:"ship",size:24,node:[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 9.189V13",key:"yp40p3"}],["path",{d:"M19 12V6a2 2 0 00-2-2H7a2 2 0 00-2 2v6",key:"1wcigf"}],["path",{d:"M19.38 19A11.6 11.6 0 0021 13l-8.188-3.639a2 2 0 00-1.624 0L3 13.001a11.6 11.6 0 002.81 7.76",key:"1kdp0u"}],["path",{d:"M2 20c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"1l8w7g"}]]};r.node;let n=(0,t.default)(r);e.s(["Ship",0,n],49287)},83035,e=>{"use strict";var t=e.i(56420);let r={name:"square-terminal",size:24,node:[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],aliases:["terminal-square"]};r.node;let n=(0,t.default)(r);e.s(["SquareTerminal",0,n],83035)},94831,e=>{"use strict";var t=e.i(56420);let r={name:"unplug",size:24,node:[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]]};r.node;let n=(0,t.default)(r);e.s(["Unplug",0,n],94831)},22016,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return y},useLinkStatus:function(){return b}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=e.r(90809),a=e.r(43476),o=i._(e.r(71645)),l=e.r(95057),u=e.r(8372),c=e.r(18581),d=e.r(18967),h=e.r(5550),f=e.r(88540),p=e.r(91949),m=e.r(73668),g=e.r(9396);function y(t){var r;let n,s,i,[y,b]=(0,o.useOptimistic)(p.IDLE_LINK_STATUS),x=(0,o.useRef)(null),{href:k,as:S,children:C,prefetch:E=null,passHref:R,replace:j,shallow:w,scroll:M,onClick:O,onMouseEnter:P,onTouchStart:A,legacyBehavior:N=!1,onNavigate:T,transitionTypes:I,ref:_,unstable_dynamicOnHover:z,...L}=t;n=C,N&&("string"==typeof n||"number"==typeof n)&&(n=(0,a.jsx)("a",{children:n}));let q=o.default.useContext(u.AppRouterContext),D=!1!==E,F=!1===E?"none":!0===E?"full":"auto",$="none"!==F?"auto"===F?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,Q="string"==typeof(r=S||k)?r:(0,l.formatUrl)(r);if(N){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=o.default.Children.only(n)}let U=N?s&&"object"==typeof s&&s.ref:_,B,H=o.default.useCallback(e=>(null!==q&&(x.current=(0,p.mountLinkInstance)(e,Q,q,$,D,b,B)),()=>{x.current&&((0,p.unmountLinkForCurrentNavigation)(x.current),x.current=null),(0,p.unmountPrefetchableInstance)(e)}),[D,Q,q,$,b,B]),V={ref:(0,c.useMergedRef)(H,U),onClick(t){N||"function"!=typeof O||O(t),N&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!q||t.defaultPrevented||function(t,r,n,s,i,a,l,u="none"){if("u">typeof window){let c,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),a){let e=!1;if(a({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:h}=e.r(99781);o.default.startTransition(()=>{h(r,s?"replace":"push",!1===i?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,n.current,l,u)})}}(t,Q,x,j,M,T,I,F)},onMouseEnter(e){N||"function"!=typeof P||P(e),N&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),q&&D&&(0,p.onNavigationIntent)(e.currentTarget,!0===z)},onTouchStart:function(e){N||"function"!=typeof A||A(e),N&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),q&&D&&(0,p.onNavigationIntent)(e.currentTarget,!0===z)}};return(0,d.isAbsoluteUrl)(Q)?V.href=Q:N&&!R&&("a"!==s.type||"href"in s.props)||(V.href=(0,h.addBasePath)(Q)),i=N?o.default.cloneElement(s,V):(0,a.jsx)("a",{...L,...V,children:n}),(0,a.jsx)(v.Provider,{value:y,children:i})}let v=(0,o.createContext)(p.IDLE_LINK_STATUS),b=()=>(0,o.useContext)(v);("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)},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(71645);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=i(e,n)),t&&(s.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)},18967,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return k},MissingStaticPage:function(){return x},NormalizeError:function(){return v},PageNotFoundError:function(){return b},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return i},execOnce:function(){return a},getDisplayName:function(){return d},getLocationOrigin:function(){return u},getURL:function(){return c},isAbsoluteUrl:function(){return l},isResSent:function(){return h},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return f},stringifyError:function(){return S}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function a(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&o.test(e)};function u(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=u();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function h(e){return e.finished||e.headersSent}function f(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&h(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let m="u">typeof performance,g=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class v extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class x extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class k extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function S(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return i}});let n=e.r(18967),s=e.r(52817);function i(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return l},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return o}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});function i(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function a(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,a(e));else t.set(r,a(n));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},95057,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return o},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=e.r(90809)._(e.r(98183)),a=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",o=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(i.urlQueryToSearchParams(l)));let c=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||a.test(n))&&!1!==u?(u="//"+(u||""),s&&"/"!==s[0]&&(s="/"+s)):u||(u=""),o&&"#"!==o[0]&&(o="#"+o),c&&"?"!==c[0]&&(c="?"+c),s=s.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${s}${c}${o}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return o(e)}},24010,e=>{"use strict";var t=e.i(43476);e.s([],58762),e.i(58762);var r=e.i(66250),n=e.i(2820),s=e.i(56736),i=e.i(9793),a=e.i(84324),o=e.i(64951),l=e.i(77173);let u=e.i(13488).DialogTrigger;var c=e.i(74217),d=e.i(25326);class h extends d.DialogHandle{}e.s(["Backdrop",()=>n.DialogBackdrop,"Close",()=>s.DialogClose,"Description",()=>i.DialogDescription,"Handle",0,h,"Popup",()=>a.DialogPopup,"Portal",()=>o.DialogPortal,"Root",0,function(e){return(0,r.useRenderDialogRoot)("alert-dialog",e)},"Title",()=>l.DialogTitle,"Trigger",0,u,"Viewport",()=>c.DialogViewport,"createHandle",0,function(){return new h}],34604);var f=e.i(34604),f=f,p=e.i(90063),m=e.i(94945);e.s(["AlertDialog",0,function(e){return(0,t.jsx)(f.Root,{"data-slot":"alert-dialog",...e})},"AlertDialogClose",0,function(e){return(0,t.jsx)(f.Close,{"data-slot":"alert-dialog-close",...e})},"AlertDialogContent",0,function({className:e,size:r,children:n,...s}){return(0,t.jsxs)(f.Portal,{children:[(0,t.jsx)(f.Backdrop,{"data-slot":"alert-dialog-overlay",className:m.dialogSurface.overlay}),(0,t.jsx)(f.Popup,{"data-slot":"alert-dialog-content",className:(0,p.classNames)(m.dialogSurface.popup({size:r}),e),...s,children:n})]})},"AlertDialogDescription",0,function({className:e,...r}){return(0,t.jsx)(f.Description,{"data-slot":"alert-dialog-description",className:(0,p.classNames)(m.dialogSurface.description,e),...r})},"AlertDialogFooter",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,p.classNames)(m.dialogSurface.footer,e),...r})},"AlertDialogHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,p.classNames)(m.dialogSurface.header,e),...r})},"AlertDialogTitle",0,function({className:e,...r}){return(0,t.jsx)(f.Title,{"data-slot":"alert-dialog-title",className:(0,p.classNames)(m.dialogSurface.title,e),...r})}],24010)},94859,26478,e=>{"use strict";var t=e.i(43476),r=e.i(52376),n=e.i(25913),s=e.i(49287),i=e.i(56420);let a={name:"user-round",size:24,node:[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],aliases:["user-2"]};a.node;let o=(0,i.default)(a);e.s(["UserRound",0,o],26478);var l=e.i(90063);let u=(0,n.cva)("inline-flex shrink-0 items-center justify-center overflow-hidden font-semibold uppercase select-none",{variants:{kind:{app:"rounded-sm bg-primary text-primary-foreground",account:"rounded-full bg-secondary font-sans text-foreground",ship:"rounded-sm bg-secondary font-mono text-foreground",argo:"rounded-sm bg-highlight text-primary",retired:"rounded-sm border border-dashed border-input font-mono font-medium text-muted-foreground"},size:{20:"size-5 text-micro [&_svg]:size-3",28:"size-7 text-micro [&_svg]:size-(--size-icon-sm)",36:"size-9 text-caption [&_svg]:size-(--size-icon)"}},defaultVariants:{kind:"ship",size:28}});e.s(["Avatar",0,function({kind:e="ship",size:n,name:i="",className:a}){let c=e??"ship";return(0,t.jsx)(r.Avatar.Root,{"aria-hidden":!0,"data-slot":"avatar",className:(0,l.classNames)(u({kind:e,size:n}),a),children:(0,t.jsx)(r.Avatar.Fallback,{children:"app"===c?(0,t.jsx)(s.Ship,{"aria-hidden":!0}):"argo"===c?(0,t.jsx)(o,{"aria-hidden":!0}):i.replaceAll("-","").slice(0,2)})})}],94859)},61966,8734,e=>{"use strict";var t=e.i(43476),r=e.i(89664),n=e.i(56420);let s={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};s.node;let i=(0,n.default)(s);e.s(["Copy",0,i],8734);var a=e.i(71645),o=e.i(15905);e.s(["CopyButton",0,function({value:e,label:n,size:s="xs",isLabeled:l=!1,onCopied:u,onCopyFailed:c,className:d,"data-testid":h}){let[f,p]=(0,a.useState)(!1);async function m(){try{await navigator.clipboard.writeText(e)}catch{c?.();return}p(!0),u?.(),setTimeout(()=>{p(!1)},1500)}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.Button,{variant:"ghost",size:s,isIconOnly:!l,"aria-label":n,title:l?void 0:n,icon:f?(0,t.jsx)(r.Check,{"aria-hidden":!0}):(0,t.jsx)(i,{"aria-hidden":!0}),className:d,"data-testid":h,onClick:()=>{m()},children:l?f?"Copied":"Copy":null}),(0,t.jsx)("span",{role:"status",className:"sr-only",children:f?"Copied.":""})]})}],61966)},95960,e=>{"use strict";var t=e.i(43476),r=e.i(92150),n=e.i(49287),s=e.i(86875),i=e.i(63676),a=e.i(90063);let o={"trierarch-plugin":s.ShipWheel,squadrons:r.Boxes,ship:n.Ship};e.s(["LabelChip",0,function({chip:e,onRemove:r,testId:n,className:s,trailing:l}){let u="none"===e.mark?null:o[e.mark],c=`${e.key}=${e.value}`,d="none"===e.mark?"you":e.ownerName;return(0,t.jsxs)("span",{"data-slot":"label-chip","data-testid":n,title:`${c}, by ${d}`,className:(0,a.classNames)("inline-flex h-5.5 max-w-full min-w-0 shrink-0 items-center gap-1 rounded-sm border border-border bg-secondary px-1.5 font-mono text-id whitespace-nowrap text-foreground [&_svg]:size-3 [&_svg]:shrink-0 [&_svg]:text-muted-foreground",s),children:[null===u?null:(0,t.jsx)(u,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"truncate",children:[(0,t.jsxs)("span",{className:"text-muted-foreground",children:[e.key,"="]}),(0,t.jsx)("span",{className:"font-medium",children:e.value})]}),l,void 0===r?null:(0,t.jsx)("button",{type:"button","aria-label":`Remove ${c}`,onClick:r,className:"-mr-1 ml-0.5 inline-flex size-4 items-center justify-center rounded-xs text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring",children:(0,t.jsx)(i.X,{"aria-hidden":!0})})]})}])},63481,e=>{"use strict";var t=e.i(43476),r=e.i(37750),n=e.i(71567),s=e.i(56420);let i={name:"cloud",size:24,node:[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]};i.node;let a=(0,s.default)(i),o={name:"laptop",size:24,node:[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]]};o.node;let l=(0,s.default)(o),u={name:"map-pin",size:24,node:[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]};u.node;let c=(0,s.default)(u),d={name:"message-circle",size:24,node:[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]};d.node;let h=(0,s.default)(d),f={name:"server",size:24,node:[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]};f.node;let p=(0,s.default)(f);var m=e.i(83035),g=e.i(94831),y=e.i(90063),v=e.i(66616),b=e.i(40798);let x={DEVICE:l,CLOUD:a,SERVER:p,OTHER:c},k={coding:m.SquareTerminal,chat:h,bot:n.Bot,console:r.AppWindow},S={md:"text-body",sm:"text-meta"};e.s(["LocationTag",0,function({kind:e,description:r=null,harness:n=null,isCompact:s=!1,size:i="md",className:a}){let o=(0,y.classNames)("inline-flex min-w-0 items-center gap-1.5 text-muted-foreground [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",S[i],a);if(null===e)return(0,t.jsxs)("span",{"data-slot":"location-tag",className:o,children:[(0,t.jsx)(g.Unplug,{"aria-hidden":!0}),"No session"]});let l=x[e],u=(0,b.locationKindWord)(e),c=null===r?u:`${u} \xb7 ${r}`;if(null!==n){let e=(0,v.harnessKind)(n),s=void 0===e?void 0:k[e],i=(0,v.harnessWord)(n);return(0,t.jsxs)("span",{"data-slot":"location-tag",className:o,title:null===r?`${i} \xb7 ${u}`:`${i} \xb7 ${u}: ${r}`,children:[void 0===s?null:(0,t.jsx)(s,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate text-foreground",children:i}),(0,t.jsx)("span",{"aria-hidden":!0,children:"·"}),(0,t.jsx)(l,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate",children:u}),null===r?null:(0,t.jsxs)("span",{className:"sr-only",children:[": ",r]})]})}return s?(0,t.jsxs)("span",{"data-slot":"location-tag",className:o,title:c,children:[(0,t.jsx)(l,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"sr-only",children:[u,": "]}),(0,t.jsx)("span",{className:"truncate text-foreground",children:r??u})]}):(0,t.jsxs)("span",{"data-slot":"location-tag",className:o,children:[(0,t.jsx)(l,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"truncate",children:[u,null===r?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":!0,children:" · "}),(0,t.jsx)("span",{className:"sr-only",children:", "}),(0,t.jsx)("span",{className:"text-foreground",children:r})]})]})]})}],63481)},66616,e=>{"use strict";let t={"claude-code":{word:"Claude Code",kind:"coding"},codex:{word:"Codex",kind:"coding"},"claude-chat":{word:"Claude chat",kind:"chat"},chatgpt:{word:"ChatGPT",kind:"chat"},grok:{word:"Grok",kind:"chat"},grokbot:{word:"Grokbot",kind:"bot"},console:{word:"Console",kind:"console"}};function r(e){return t[e]?.word??e}e.s(["crewLineHarnessWord",0,function(e){return"chat"===e?"Chat":r(e)},"harnessKind",0,function(e){return t[e]?.kind},"harnessWord",0,r])},53573,e=>{"use strict";e.i(31627);var t=e.i(83615),r=e.i(19273),n=e.i(12598),s=e.i(81384),i=e.i(73664),a=e.i(27001),o=e.i(54440),l=e.i(71645),u=e.i(15823),c=e.i(40143),d=e.i(69230);function h(e,t){let r=new Set(t);return e.filter(e=>!r.has(e))}var f=class extends u.Subscribable{#e;#t;#r;#n;#s;#i;#a;#o;#l;#u=[];constructor(e,t,r){super(),this.#e=e,this.#n=r,this.#r=[],this.#s=[],this.#t=[],this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.#s.forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(e=>{e.destroy()})}setQueries(e,t){this.#r=e,this.#n=t,c.notifyManager.batch(()=>{let e=this.#s,t=this.#d(this.#r);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),s=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,a=n.some((t,r)=>t!==e[r]),o=i||a,l=!!o||s.some((e,t)=>{let n=this.#t[t];return!n||!(0,r.shallowEqualObjects)(e,n)});(o||l)&&(o&&(this.#u=t,this.#s=n),this.#t=s,this.hasListeners()&&(o&&(h(e,n).forEach(e=>{e.destroy()}),h(n,e).forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})),this.#h()))})}getCurrentResult(){return this.#t}getQueries(){return this.#s.map(e=>e.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(e,t){let r=this.#d(e),n=r.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),s=r.map(e=>e.defaultedQueryOptions.queryHash);return[n,e=>this.#f(e??n,t,s),()=>this.#p(n,r)]}#p(e,t){let r=new Set;return t.map((n,s)=>{let i=e[s];return n.defaultedQueryOptions.notifyOnChangeProps?i:n.observer.trackResult(i,e=>{r.has(e)||(r.add(e),t.forEach(t=>{t.observer.trackProp(e)}))})})}#f(e,t,n){if(t){let s=this.#l,i=void 0!==n&&void 0!==s&&(s.length!==n.length||n.some((e,t)=>e!==s[t]));return(this.#t!==this.#o||i||t!==this.#a)&&(this.#a=t,this.#o=this.#t,void 0!==n&&(this.#l=n),this.#i=(0,r.replaceEqualDeep)(this.#i,t(e))),this.#i}return e}#m(){return!this.#n?.combine||this.#s.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#d(e){let t=new Map;this.#s.forEach(e=>{let r=e.options.queryHash;if(!r)return;let n=t.get(r);n?n.push(e):t.set(r,[e])});let r=[];return e.forEach(e=>{let n=this.#e.defaultQueryOptions(e),s=t.get(n.queryHash)?.shift()??new d.QueryObserver(this.#e,n);r.push({defaultedQueryOptions:n,observer:s})}),r}#c(e,t){let r=this.#s.indexOf(e);-1!==r&&(this.#t=this.#t.slice(),this.#t[r]=t,this.#h())}#h(){if(this.hasListeners()){let e=this.#m(),t=this.#i,r=e?t:this.#f(this.#p(this.#t,this.#u),this.#n?.combine);(e||t!==r)&&c.notifyManager.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},p=e.i(66027),m=e.i(5387),g=e.i(27702);e.s(["useMessage",0,function(e){let t=(0,g.useTRPC)();return(0,p.useQuery)(t.fleet.message.queryOptions(void 0===e?r.skipToken:{messageId:e}))},"useShip",0,function(e){let t=(0,g.useTRPC)();return(0,p.useQuery)(t.fleet.ship.queryOptions(void 0===e?r.skipToken:{shipId:e},{refetchInterval:m.LAST_SEEN_REFRESH_MS}))},"useShipMessages",0,function(e){let t=(0,g.useTRPC)();return(0,p.useQuery)(t.fleet.shipMessages.queryOptions({shipId:e}))},"useShipTimeline",0,function(e){let t=(0,g.useTRPC)();return(0,p.useQuery)(t.fleet.shipTimeline.queryOptions({shipId:e}))},"useShips",0,function(e){let u=(0,g.useTRPC)(),h=function({queries:e,...t}){let u=(0,n.useQueryClient)(void 0),h=(0,s.useIsRestoring)(),p=(0,i.useQueryErrorResetBoundary)(),m=!1!==t.subscribed,g=l.useMemo(()=>e.map(e=>{let t=u.defaultQueryOptions(e);return t._optimisticResults=h?"isRestoring":m?"optimistic":void 0,t}),[e,u,h,m]);g.forEach(e=>{(0,o.ensureSuspenseTimers)(e);let t=u.getQueryCache().get(e.queryHash);(0,a.ensurePreventErrorBoundaryRetry)(e,p,t)}),(0,a.useClearResetErrorBoundary)(p);let[y]=l.useState(()=>new f(u,g,t)),[v,b,x]=y.getOptimisticResult(g,t.combine),k=!h&&m;l.useSyncExternalStore(l.useCallback(e=>k?y.subscribe(c.notifyManager.batchCalls(e)):r.noop,[y,k]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),l.useEffect(()=>{y.setQueries(g,t)},[g,t,y]);let S=v.some((e,t)=>(0,o.shouldSuspend)(g[t],e))?v.flatMap((e,t)=>{let r=g[t];if(r&&(0,o.shouldSuspend)(r,e)){let e=new d.QueryObserver(u,r);return(0,o.fetchOptimistic)(r,e,p)}return[]}):[];if(S.length>0)throw Promise.all(S);let C=v.find((e,t)=>{let r=g[t];return r&&(0,a.getHasError)({result:e,errorResetBoundary:p,throwOnError:r.throwOnError,query:u.getQueryCache().get(r.queryHash),suspense:r.suspense})});if(C)throw C.error;return b(x())}({queries:e.flatMap(e=>{let r=(0,t.idSchema)("ship").safeParse(e);return r.success?[r.data]:[]}).map(e=>u.fleet.ship.queryOptions({shipId:e},{refetchInterval:m.LAST_SEEN_REFRESH_MS}))}),p=new Map;for(let e of h)e.data&&p.set(e.data.id,e.data);return p}],53573)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,52376,e=>{"use strict";e.s([],4824),e.i(4824);var t=e.i(71645),r=e.i(52245),n=e.i(33332);let s=t.createContext(void 0);function i(){let e=t.useContext(s);if(void 0===e)throw Error((0,n.default)(13));return e}let a={imageLoadingStatus:()=>null};var o=e.i(43476);let l=t.forwardRef(function(e,n){let{className:i,render:l,style:u,...c}=e,[d,h]=t.useState("idle"),f=t.useMemo(()=>({imageLoadingStatus:d,setImageLoadingStatus:h}),[d,h]),p=(0,r.useRenderElement)("span",e,{state:{imageLoadingStatus:d},ref:n,props:c,stateAttributesMapping:a});return(0,o.jsx)(s.Provider,{value:f,children:p})});var u=e.i(67865),c=e.i(46376),d=e.i(37584),h=e.i(74354),f=e.i(23910),p=e.i(56789);let m={...a,...h.transitionStatusMapping},g=t.forwardRef(function(e,n){let{className:s,render:a,onLoadingStatusChange:o,keepMounted:l=!1,style:h,sizes:g,srcSet:y,src:v,...b}=e,{setImageLoadingStatus:x}=i(),[k,S]=function(e,{referrerPolicy:r,crossOrigin:n,sizes:s,srcSet:i},a){let o=t.useState("idle"),l=o[1];return(0,c.useIsoLayoutEffect)(()=>{if(!a)return p.NOOP;if(!e&&!i)return l("error"),p.NOOP;let t=!0,o=new window.Image,u=e=>()=>{t&&l(e)};return l("loading"),o.onload=u("loaded"),o.onerror=u("error"),r&&(o.referrerPolicy=r),o.crossOrigin=n??null,s&&(o.sizes=s),i&&(o.srcset=i),e&&(o.src=e),o.complete&&l(o.naturalWidth>0?"loaded":"error"),()=>{t=!1}},[a,e,i,s,n,r,l]),o}(v,e,!l),C="loaded"===k,{mounted:E,transitionStatus:R,setMounted:j}=(0,f.useTransitionStatus)(C),w=t.useRef(null),M=t.useRef(!0);(0,c.useIsoLayoutEffect)(()=>{if(!l)return;let e=M.current;M.current=!1;let t=w.current;if(!t)return;if(!t.complete)return void S("loading");let r=t.naturalWidth>0?"loaded":"error";S(r),"loaded"===r&&e&&j(!0)},[l,v,y,g,b.crossOrigin,b.referrerPolicy,a,S,j]);let O=l?{"data-loading":"loading"===k?"":void 0,"data-error":"error"===k?"":void 0,"aria-hidden":"loaded"!==k||void 0,onLoad(){S("loaded")},onError(){S("error")}}:void 0,A=(0,u.useStableCallback)(e=>{o?.(e),x(e)});(0,c.useIsoLayoutEffect)(()=>{"idle"!==k&&A(k)},[k,A]),(0,c.useIsoLayoutEffect)(()=>()=>x("idle"),[x]),(0,d.useOpenChangeComplete)({enabled:!C,open:C,ref:w,onComplete(){C||j(!1)}});let P=l||E,T={};void 0!==g&&(T.sizes=g),void 0!==y&&(T.srcSet=y),void 0!==v&&(T.src=v);let N=(0,r.useRenderElement)("img",e,{state:{imageLoadingStatus:k,transitionStatus:l&&"ending"===R?void 0:R},ref:[n,w],props:[O,b,T],stateAttributesMapping:m,enabled:P});return P?N:null});var y=e.i(39957);let v=t.forwardRef(function(e,n){let{className:s,render:o,delay:l=0,style:u,...c}=e,{imageLoadingStatus:d}=i(),[h,f]=t.useState(0===l),p=(0,y.useTimeout)();return t.useEffect(()=>(l>0?p.start(l,()=>f(!0)):f(!0),p.clear),[p,l]),(0,r.useRenderElement)("span",e,{state:{imageLoadingStatus:d},ref:n,props:c,stateAttributesMapping:a,enabled:"loaded"!==d&&(0===l||h)})});e.s(["Fallback",0,v,"Image",0,g,"Root",0,l],14751);var b=e.i(14751);e.s(["Avatar",0,b],52376)},80862,e=>{"use strict";e.s(["endingStyle",0,"data-ending-style","startingStyle",0,"data-starting-style"])},74354,e=>{"use strict";var t=e.i(80862);let r={[t.startingStyle]:""},n={[t.endingStyle]:""};e.s(["transitionStatusMapping",0,{transitionStatus:e=>"starting"===e?r:"ending"===e?n:null}])},37584,22640,e=>{"use strict";var t=e.i(71645),r=e.i(67865),n=e.i(74080),s=e.i(8445),i=e.i(94603),a=e.i(80862);let o=null;function l(e,t=!1,u=!1){let c=(0,s.useAnimationFrame)();return(0,r.useStableCallback)((r,s=null)=>{c.cancel();let l=(0,i.resolveRef)(e);if(null==l)return;let d=()=>{if(!u)return void n.flushSync(r);if(!o){let e=[];o=e,queueMicrotask(()=>{o=null,n.flushSync(()=>{for(let t of e)t()})})}o.push(()=>{s?.aborted||r()})};if("function"!=typeof l.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void r();function h(){Promise.all(l.getAnimations().map(e=>e.finished)).then(()=>{s?.aborted||d()},()=>{s?.aborted||(l.getAnimations().some(e=>e.pending||"finished"!==e.playState)?h():d())})}if(t){let e=a.startingStyle;if(!l.hasAttribute(e))return void c.request(h);let t=new MutationObserver(()=>{l.hasAttribute(e)||(t.disconnect(),h())});return t.observe(l,{attributes:!0,attributeFilter:[e]}),void s?.addEventListener("abort",()=>t.disconnect(),{once:!0})}c.request(h)})}e.s(["useAnimationsFinished",0,l],22640),e.s(["useOpenChangeComplete",0,function(e){let{enabled:n=!0,open:s,ref:i,batch:a=!1,onComplete:o}=e,u=(0,r.useStableCallback)(o),c=l(i,s,a);t.useEffect(()=>{if(!n)return;let e=new AbortController;return c(u,e.signal),()=>{e.abort()}},[n,s,u,c])}],37584)},23910,e=>{"use strict";var t=e.i(71645),r=e.i(46376),n=e.i(8445);e.s(["useTransitionStatus",0,function(e,s=!1,i=!1,a=!1){let[o,l]=t.useState(e&&s?"idle":void 0),[u,c]=t.useState(e&&!a);return e&&!u&&(c(!0),l("starting")),e||!u||"ending"===o||i||l("ending"),e||u||"ending"!==o||l(void 0),(0,r.useIsoLayoutEffect)(()=>{if(!e&&u&&"ending"!==o&&i){let e=n.AnimationFrame.request(()=>{l("ending")});return()=>{n.AnimationFrame.cancel(e)}}},[e,u,o,i]),(0,r.useIsoLayoutEffect)(()=>{if(!e||s)return;let t=n.AnimationFrame.request(()=>{l(void 0)});return()=>{n.AnimationFrame.cancel(t)}},[s,e]),(0,r.useIsoLayoutEffect)(()=>{if(!e||!s)return;e&&u&&"idle"!==o&&l("starting");let t=n.AnimationFrame.request(()=>{l("idle")});return()=>{n.AnimationFrame.cancel(t)}},[s,e,u,o]),{mounted:u,setMounted:c,transitionStatus:o}}])},94603,e=>{"use strict";e.s(["resolveRef",0,function(e){return null==e?e:"current"in e?e.current:e}])},8445,e=>{"use strict";e.i(47167);var t=e.i(88940),r=e.i(26300);let n=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let r=0;r<t.length;r+=1)t[r]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||null!==this.callbacks[t]&&(this.callbacks[t]=null,this.callbacksCount-=1)}};class s{static create(){return new s}static request(e){return n.request(e)}static cancel(e){return n.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=n.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(n.cancel(this.currentId),this.currentId=null)};disposeEffect=()=>this.cancel}e.s(["AnimationFrame",0,s,"useAnimationFrame",0,function(){let e=(0,t.useRefWithInit)(s.create).current;return(0,r.useOnMount)(e.disposeEffect),e}])},26300,e=>{"use strict";var t=e.i(71645),r=e.i(56789);e.s(["useOnMount",0,function(e){t.useEffect(e,r.EMPTY_ARRAY)}])},39957,e=>{"use strict";var t=e.i(88940),r=e.i(26300);class n{static create(){return new n}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}e.s(["Timeout",0,n,"useTimeout",0,function(){let e=(0,t.useRefWithInit)(n.create).current;return(0,r.useOnMount)(e.disposeEffect),e}])},37750,e=>{"use strict";var t=e.i(56420);let r={name:"app-window",size:24,node:[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]};r.node;let n=(0,t.default)(r);e.s(["AppWindow",0,n],37750)},71567,e=>{"use strict";var t=e.i(56420);let r={name:"bot",size:24,node:[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]};r.node;let n=(0,t.default)(r);e.s(["Bot",0,n],71567)},92150,e=>{"use strict";var t=e.i(56420);let r={name:"boxes",size:24,node:[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]};r.node;let n=(0,t.default)(r);e.s(["Boxes",0,n],92150)},49287,e=>{"use strict";var t=e.i(56420);let r={name:"ship",size:24,node:[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 9.189V13",key:"yp40p3"}],["path",{d:"M19 12V6a2 2 0 00-2-2H7a2 2 0 00-2 2v6",key:"1wcigf"}],["path",{d:"M19.38 19A11.6 11.6 0 0021 13l-8.188-3.639a2 2 0 00-1.624 0L3 13.001a11.6 11.6 0 002.81 7.76",key:"1kdp0u"}],["path",{d:"M2 20c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"1l8w7g"}]]};r.node;let n=(0,t.default)(r);e.s(["Ship",0,n],49287)},83035,e=>{"use strict";var t=e.i(56420);let r={name:"square-terminal",size:24,node:[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],aliases:["terminal-square"]};r.node;let n=(0,t.default)(r);e.s(["SquareTerminal",0,n],83035)},94831,e=>{"use strict";var t=e.i(56420);let r={name:"unplug",size:24,node:[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]]};r.node;let n=(0,t.default)(r);e.s(["Unplug",0,n],94831)},22016,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return y},useLinkStatus:function(){return b}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=e.r(90809),a=e.r(43476),o=i._(e.r(71645)),l=e.r(95057),u=e.r(8372),c=e.r(18581),d=e.r(18967),h=e.r(5550),f=e.r(88540),p=e.r(91949),m=e.r(73668),g=e.r(9396);function y(t){var r;let n,s,i,[y,b]=(0,o.useOptimistic)(p.IDLE_LINK_STATUS),x=(0,o.useRef)(null),{href:k,as:S,children:C,prefetch:E=null,passHref:R,replace:j,shallow:w,scroll:M,onClick:O,onMouseEnter:A,onTouchStart:P,legacyBehavior:T=!1,onNavigate:N,transitionTypes:I,ref:_,unstable_dynamicOnHover:z,...L}=t;n=C,T&&("string"==typeof n||"number"==typeof n)&&(n=(0,a.jsx)("a",{children:n}));let q=o.default.useContext(u.AppRouterContext),D=!1!==E,$=!1===E?"none":!0===E?"full":"auto",F="none"!==$?"auto"===$?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,Q="string"==typeof(r=S||k)?r:(0,l.formatUrl)(r);if(T){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=o.default.Children.only(n)}let U=T?s&&"object"==typeof s&&s.ref:_,B,H=o.default.useCallback(e=>(null!==q&&(x.current=(0,p.mountLinkInstance)(e,Q,q,F,D,b,B)),()=>{x.current&&((0,p.unmountLinkForCurrentNavigation)(x.current),x.current=null),(0,p.unmountPrefetchableInstance)(e)}),[D,Q,q,F,b,B]),V={ref:(0,c.useMergedRef)(H,U),onClick(t){T||"function"!=typeof O||O(t),T&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!q||t.defaultPrevented||function(t,r,n,s,i,a,l,u="none"){if("u">typeof window){let c,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),a){let e=!1;if(a({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:h}=e.r(99781);o.default.startTransition(()=>{h(r,s?"replace":"push",!1===i?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,n.current,l,u)})}}(t,Q,x,j,M,N,I,$)},onMouseEnter(e){T||"function"!=typeof A||A(e),T&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),q&&D&&(0,p.onNavigationIntent)(e.currentTarget,!0===z)},onTouchStart:function(e){T||"function"!=typeof P||P(e),T&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),q&&D&&(0,p.onNavigationIntent)(e.currentTarget,!0===z)}};return(0,d.isAbsoluteUrl)(Q)?V.href=Q:T&&!R&&("a"!==s.type||"href"in s.props)||(V.href=(0,h.addBasePath)(Q)),i=T?o.default.cloneElement(s,V):(0,a.jsx)("a",{...L,...V,children:n}),(0,a.jsx)(v.Provider,{value:y,children:i})}let v=(0,o.createContext)(p.IDLE_LINK_STATUS),b=()=>(0,o.useContext)(v);("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)},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(71645);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=i(e,n)),t&&(s.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)},18967,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return k},MissingStaticPage:function(){return x},NormalizeError:function(){return v},PageNotFoundError:function(){return b},SP:function(){return m},ST:function(){return g},WEB_VITALS:function(){return i},execOnce:function(){return a},getDisplayName:function(){return d},getLocationOrigin:function(){return u},getURL:function(){return c},isAbsoluteUrl:function(){return l},isResSent:function(){return h},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return f},stringifyError:function(){return S}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function a(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&o.test(e)};function u(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=u();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function h(e){return e.finished||e.headersSent}function f(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&h(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let m="u">typeof performance,g=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class v extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class x extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class k extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function S(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return i}});let n=e.r(18967),s=e.r(52817);function i(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return l},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return o}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});function i(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function a(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,a(e));else t.set(r,a(n));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},95057,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return o},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=e.r(90809)._(e.r(98183)),a=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",o=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(i.urlQueryToSearchParams(l)));let c=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||a.test(n))&&!1!==u?(u="//"+(u||""),s&&"/"!==s[0]&&(s="/"+s)):u||(u=""),o&&"#"!==o[0]&&(o="#"+o),c&&"?"!==c[0]&&(c="?"+c),s=s.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${s}${c}${o}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return o(e)}},24010,e=>{"use strict";var t=e.i(43476);e.s([],58762),e.i(58762);var r=e.i(66250),n=e.i(2820),s=e.i(56736),i=e.i(9793),a=e.i(84324),o=e.i(64951),l=e.i(77173);let u=e.i(13488).DialogTrigger;var c=e.i(74217),d=e.i(25326);class h extends d.DialogHandle{}e.s(["Backdrop",()=>n.DialogBackdrop,"Close",()=>s.DialogClose,"Description",()=>i.DialogDescription,"Handle",0,h,"Popup",()=>a.DialogPopup,"Portal",()=>o.DialogPortal,"Root",0,function(e){return(0,r.useRenderDialogRoot)("alert-dialog",e)},"Title",()=>l.DialogTitle,"Trigger",0,u,"Viewport",()=>c.DialogViewport,"createHandle",0,function(){return new h}],34604);var f=e.i(34604),f=f,p=e.i(90063),m=e.i(94945);e.s(["AlertDialog",0,function(e){return(0,t.jsx)(f.Root,{"data-slot":"alert-dialog",...e})},"AlertDialogClose",0,function(e){return(0,t.jsx)(f.Close,{"data-slot":"alert-dialog-close",...e})},"AlertDialogContent",0,function({className:e,size:r,children:n,...s}){return(0,t.jsxs)(f.Portal,{children:[(0,t.jsx)(f.Backdrop,{"data-slot":"alert-dialog-overlay",className:m.dialogSurface.overlay}),(0,t.jsx)(f.Popup,{"data-slot":"alert-dialog-content",className:(0,p.classNames)(m.dialogSurface.popup({size:r}),e),...s,children:n})]})},"AlertDialogDescription",0,function({className:e,...r}){return(0,t.jsx)(f.Description,{"data-slot":"alert-dialog-description",className:(0,p.classNames)(m.dialogSurface.description,e),...r})},"AlertDialogFooter",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,p.classNames)(m.dialogSurface.footer,e),...r})},"AlertDialogHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,p.classNames)(m.dialogSurface.header,e),...r})},"AlertDialogTitle",0,function({className:e,...r}){return(0,t.jsx)(f.Title,{"data-slot":"alert-dialog-title",className:(0,p.classNames)(m.dialogSurface.title,e),...r})}],24010)},94859,26478,e=>{"use strict";var t=e.i(43476),r=e.i(52376),n=e.i(25913),s=e.i(49287),i=e.i(56420);let a={name:"user-round",size:24,node:[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],aliases:["user-2"]};a.node;let o=(0,i.default)(a);e.s(["UserRound",0,o],26478);var l=e.i(90063);let u=(0,n.cva)("inline-flex shrink-0 items-center justify-center overflow-hidden font-semibold uppercase select-none",{variants:{kind:{app:"rounded-sm bg-primary text-primary-foreground",account:"rounded-full bg-secondary font-sans text-foreground",ship:"rounded-sm bg-secondary font-mono text-foreground",argo:"rounded-sm bg-highlight text-primary",retired:"rounded-sm border border-dashed border-input font-mono font-medium text-muted-foreground"},size:{20:"size-5 text-micro [&_svg]:size-3",28:"size-7 text-micro [&_svg]:size-(--size-icon-sm)",36:"size-9 text-caption [&_svg]:size-(--size-icon)"}},defaultVariants:{kind:"ship",size:28}});e.s(["Avatar",0,function({kind:e="ship",size:n,name:i="",className:a}){let c=e??"ship";return(0,t.jsx)(r.Avatar.Root,{"aria-hidden":!0,"data-slot":"avatar",className:(0,l.classNames)(u({kind:e,size:n}),a),children:(0,t.jsx)(r.Avatar.Fallback,{children:"app"===c?(0,t.jsx)(s.Ship,{"aria-hidden":!0}):"argo"===c?(0,t.jsx)(o,{"aria-hidden":!0}):i.replaceAll("-","").slice(0,2)})})}],94859)},61966,8734,e=>{"use strict";var t=e.i(43476),r=e.i(89664),n=e.i(56420);let s={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};s.node;let i=(0,n.default)(s);e.s(["Copy",0,i],8734);var a=e.i(71645),o=e.i(15905);e.s(["CopyButton",0,function({value:e,label:n,size:s="xs",isLabeled:l=!1,onCopied:u,onCopyFailed:c,className:d,"data-testid":h}){let[f,p]=(0,a.useState)(!1);async function m(){try{await navigator.clipboard.writeText(e)}catch{c?.();return}p(!0),u?.(),setTimeout(()=>{p(!1)},1500)}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.Button,{variant:"ghost",size:s,isIconOnly:!l,"aria-label":n,title:l?void 0:n,icon:f?(0,t.jsx)(r.Check,{"aria-hidden":!0}):(0,t.jsx)(i,{"aria-hidden":!0}),className:d,"data-testid":h,onClick:()=>{m()},children:l?f?"Copied":"Copy":null}),(0,t.jsx)("span",{role:"status",className:"sr-only",children:f?"Copied.":""})]})}],61966)},95960,e=>{"use strict";var t=e.i(43476),r=e.i(92150),n=e.i(49287),s=e.i(86875),i=e.i(63676),a=e.i(90063);let o={"trierarch-plugin":s.ShipWheel,squadrons:r.Boxes,ship:n.Ship};e.s(["LabelChip",0,function({chip:e,onRemove:r,testId:n,className:s,trailing:l}){let u="none"===e.mark?null:o[e.mark],c=`${e.key}=${e.value}`,d="none"===e.mark?"you":e.ownerName;return(0,t.jsxs)("span",{"data-slot":"label-chip","data-testid":n,title:`${c}, by ${d}`,className:(0,a.classNames)("inline-flex h-5.5 max-w-full min-w-0 shrink-0 items-center gap-1 rounded-sm border border-border bg-secondary px-1.5 font-mono text-id whitespace-nowrap text-foreground [&_svg]:size-3 [&_svg]:shrink-0 [&_svg]:text-muted-foreground",s),children:[null===u?null:(0,t.jsx)(u,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"truncate",children:[(0,t.jsxs)("span",{className:"text-muted-foreground",children:[e.key,"="]}),(0,t.jsx)("span",{className:"font-medium",children:e.value})]}),l,void 0===r?null:(0,t.jsx)("button",{type:"button","aria-label":`Remove ${c}`,onClick:r,className:"-mr-1 ml-0.5 inline-flex size-4 items-center justify-center rounded-xs text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring",children:(0,t.jsx)(i.X,{"aria-hidden":!0})})]})}])},63481,e=>{"use strict";var t=e.i(43476),r=e.i(37750),n=e.i(71567),s=e.i(56420);let i={name:"cloud",size:24,node:[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]};i.node;let a=(0,s.default)(i),o={name:"laptop",size:24,node:[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]]};o.node;let l=(0,s.default)(o),u={name:"map-pin",size:24,node:[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]};u.node;let c=(0,s.default)(u),d={name:"message-circle",size:24,node:[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]};d.node;let h=(0,s.default)(d),f={name:"server",size:24,node:[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]};f.node;let p=(0,s.default)(f);var m=e.i(83035),g=e.i(94831),y=e.i(90063),v=e.i(66616),b=e.i(40798);let x={DEVICE:l,CLOUD:a,SERVER:p,OTHER:c},k={coding:m.SquareTerminal,chat:h,bot:n.Bot,console:r.AppWindow},S={md:"text-body",sm:"text-meta"};e.s(["LocationTag",0,function({kind:e,description:r=null,harness:n=null,isCompact:s=!1,size:i="md",className:a}){let o=(0,y.classNames)("inline-flex min-w-0 items-center gap-1.5 text-muted-foreground [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0",S[i],a);if(null===e)return(0,t.jsxs)("span",{"data-slot":"location-tag",className:o,children:[(0,t.jsx)(g.Unplug,{"aria-hidden":!0}),"No session"]});let l=x[e],u=(0,b.locationKindWord)(e),c=null===r?u:`${u} \xb7 ${r}`;if(null!==n){let e=(0,v.harnessKind)(n),s=void 0===e?void 0:k[e],i=(0,v.harnessWord)(n);return(0,t.jsxs)("span",{"data-slot":"location-tag",className:o,title:null===r?`${i} \xb7 ${u}`:`${i} \xb7 ${u}: ${r}`,children:[void 0===s?null:(0,t.jsx)(s,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate text-foreground",children:i}),(0,t.jsx)("span",{"aria-hidden":!0,children:"·"}),(0,t.jsx)(l,{"aria-hidden":!0}),(0,t.jsx)("span",{className:"truncate",children:u}),null===r?null:(0,t.jsxs)("span",{className:"sr-only",children:[": ",r]})]})}return s?(0,t.jsxs)("span",{"data-slot":"location-tag",className:o,title:c,children:[(0,t.jsx)(l,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"sr-only",children:[u,": "]}),(0,t.jsx)("span",{className:"truncate text-foreground",children:r??u})]}):(0,t.jsxs)("span",{"data-slot":"location-tag",className:o,children:[(0,t.jsx)(l,{"aria-hidden":!0}),(0,t.jsxs)("span",{className:"truncate",children:[u,null===r?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":!0,children:" · "}),(0,t.jsx)("span",{className:"sr-only",children:", "}),(0,t.jsx)("span",{className:"text-foreground",children:r})]})]})]})}],63481)},66616,e=>{"use strict";var t=e.i(49635);let r={"claude-code":{word:"Claude Code",kind:"coding"},codex:{word:"Codex",kind:"coding"},"claude-chat":{word:"Claude chat",kind:"chat"},chatgpt:{word:"ChatGPT",kind:"chat"},grok:{word:"Grok",kind:"chat"},grokbot:{word:"Grokbot",kind:"bot"},console:{word:"Console",kind:"console"}};function n(e){return r[e]?.word??e}e.s(["crewLineHarnessWord",0,function(e){return"chat"===e?"Chat":n(e)},"harnessDetection",0,function(e,r){if(void 0===e.version)return;if(void 0===e.modelsConfirmedAt||null===e.modelsConfirmedAt)return`${e.version} \xb7 no model confirmed`;let n=(0,t.relativeTime)(new Date(e.modelsConfirmedAt),r);return`${e.version} \xb7 models confirmed ${"Just now"===n?"just now":n}`},"harnessKind",0,function(e){return r[e]?.kind},"harnessWord",0,n])},53573,e=>{"use strict";e.i(31627);var t=e.i(83615),r=e.i(19273),n=e.i(12598),s=e.i(81384),i=e.i(73664),a=e.i(27001),o=e.i(54440),l=e.i(71645),u=e.i(15823),c=e.i(40143),d=e.i(69230);function h(e,t){let r=new Set(t);return e.filter(e=>!r.has(e))}var f=class extends u.Subscribable{#e;#t;#r;#n;#s;#i;#a;#o;#l;#u=[];constructor(e,t,r){super(),this.#e=e,this.#n=r,this.#r=[],this.#s=[],this.#t=[],this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.#s.forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(e=>{e.destroy()})}setQueries(e,t){this.#r=e,this.#n=t,c.notifyManager.batch(()=>{let e=this.#s,t=this.#d(this.#r);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),s=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,a=n.some((t,r)=>t!==e[r]),o=i||a,l=!!o||s.some((e,t)=>{let n=this.#t[t];return!n||!(0,r.shallowEqualObjects)(e,n)});(o||l)&&(o&&(this.#u=t,this.#s=n),this.#t=s,this.hasListeners()&&(o&&(h(e,n).forEach(e=>{e.destroy()}),h(n,e).forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})),this.#h()))})}getCurrentResult(){return this.#t}getQueries(){return this.#s.map(e=>e.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(e,t){let r=this.#d(e),n=r.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),s=r.map(e=>e.defaultedQueryOptions.queryHash);return[n,e=>this.#f(e??n,t,s),()=>this.#p(n,r)]}#p(e,t){let r=new Set;return t.map((n,s)=>{let i=e[s];return n.defaultedQueryOptions.notifyOnChangeProps?i:n.observer.trackResult(i,e=>{r.has(e)||(r.add(e),t.forEach(t=>{t.observer.trackProp(e)}))})})}#f(e,t,n){if(t){let s=this.#l,i=void 0!==n&&void 0!==s&&(s.length!==n.length||n.some((e,t)=>e!==s[t]));return(this.#t!==this.#o||i||t!==this.#a)&&(this.#a=t,this.#o=this.#t,void 0!==n&&(this.#l=n),this.#i=(0,r.replaceEqualDeep)(this.#i,t(e))),this.#i}return e}#m(){return!this.#n?.combine||this.#s.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#d(e){let t=new Map;this.#s.forEach(e=>{let r=e.options.queryHash;if(!r)return;let n=t.get(r);n?n.push(e):t.set(r,[e])});let r=[];return e.forEach(e=>{let n=this.#e.defaultQueryOptions(e),s=t.get(n.queryHash)?.shift()??new d.QueryObserver(this.#e,n);r.push({defaultedQueryOptions:n,observer:s})}),r}#c(e,t){let r=this.#s.indexOf(e);-1!==r&&(this.#t=this.#t.slice(),this.#t[r]=t,this.#h())}#h(){if(this.hasListeners()){let e=this.#m(),t=this.#i,r=e?t:this.#f(this.#p(this.#t,this.#u),this.#n?.combine);(e||t!==r)&&c.notifyManager.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},p=e.i(66027),m=e.i(5387),g=e.i(27702);e.s(["useMessage",0,function(e){let t=(0,g.useTRPC)();return(0,p.useQuery)(t.fleet.message.queryOptions(void 0===e?r.skipToken:{messageId:e}))},"useShip",0,function(e){let t=(0,g.useTRPC)();return(0,p.useQuery)(t.fleet.ship.queryOptions(void 0===e?r.skipToken:{shipId:e},{refetchInterval:m.LAST_SEEN_REFRESH_MS}))},"useShipMessages",0,function(e){let t=(0,g.useTRPC)();return(0,p.useQuery)(t.fleet.shipMessages.queryOptions({shipId:e}))},"useShipTimeline",0,function(e){let t=(0,g.useTRPC)();return(0,p.useQuery)(t.fleet.shipTimeline.queryOptions({shipId:e}))},"useShips",0,function(e){let u=(0,g.useTRPC)(),h=function({queries:e,...t}){let u=(0,n.useQueryClient)(void 0),h=(0,s.useIsRestoring)(),p=(0,i.useQueryErrorResetBoundary)(),m=!1!==t.subscribed,g=l.useMemo(()=>e.map(e=>{let t=u.defaultQueryOptions(e);return t._optimisticResults=h?"isRestoring":m?"optimistic":void 0,t}),[e,u,h,m]);g.forEach(e=>{(0,o.ensureSuspenseTimers)(e);let t=u.getQueryCache().get(e.queryHash);(0,a.ensurePreventErrorBoundaryRetry)(e,p,t)}),(0,a.useClearResetErrorBoundary)(p);let[y]=l.useState(()=>new f(u,g,t)),[v,b,x]=y.getOptimisticResult(g,t.combine),k=!h&&m;l.useSyncExternalStore(l.useCallback(e=>k?y.subscribe(c.notifyManager.batchCalls(e)):r.noop,[y,k]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),l.useEffect(()=>{y.setQueries(g,t)},[g,t,y]);let S=v.some((e,t)=>(0,o.shouldSuspend)(g[t],e))?v.flatMap((e,t)=>{let r=g[t];if(r&&(0,o.shouldSuspend)(r,e)){let e=new d.QueryObserver(u,r);return(0,o.fetchOptimistic)(r,e,p)}return[]}):[];if(S.length>0)throw Promise.all(S);let C=v.find((e,t)=>{let r=g[t];return r&&(0,a.getHasError)({result:e,errorResetBoundary:p,throwOnError:r.throwOnError,query:u.getQueryCache().get(r.queryHash),suspense:r.suspense})});if(C)throw C.error;return b(x())}({queries:e.flatMap(e=>{let r=(0,t.idSchema)("ship").safeParse(e);return r.success?[r.data]:[]}).map(e=>u.fleet.ship.queryOptions({shipId:e},{refetchInterval:m.LAST_SEEN_REFRESH_MS}))}),p=new Map;for(let e of h)e.data&&p.set(e.data.id,e.data);return p}],53573)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,52376,e=>{"use strict";e.s([],4824),e.i(4824);var t=e.i(71645),r=e.i(52245),n=e.i(33332);let s=t.createContext(void 0);function i(){let e=t.useContext(s);if(void 0===e)throw Error((0,n.default)(13));return e}let o={imageLoadingStatus:()=>null};var a=e.i(43476);let u=t.forwardRef(function(e,n){let{className:i,render:u,style:l,...c}=e,[d,f]=t.useState("idle"),h=t.useMemo(()=>({imageLoadingStatus:d,setImageLoadingStatus:f}),[d,f]),p=(0,r.useRenderElement)("span",e,{state:{imageLoadingStatus:d},ref:n,props:c,stateAttributesMapping:o});return(0,a.jsx)(s.Provider,{value:h,children:p})});var l=e.i(67865),c=e.i(46376),d=e.i(37584),f=e.i(74354),h=e.i(23910),p=e.i(56789);let g={...o,...f.transitionStatusMapping},m=t.forwardRef(function(e,n){let{className:s,render:o,onLoadingStatusChange:a,keepMounted:u=!1,style:f,sizes:m,srcSet:y,src:b,...v}=e,{setImageLoadingStatus:S}=i(),[C,E]=function(e,{referrerPolicy:r,crossOrigin:n,sizes:s,srcSet:i},o){let a=t.useState("idle"),u=a[1];return(0,c.useIsoLayoutEffect)(()=>{if(!o)return p.NOOP;if(!e&&!i)return u("error"),p.NOOP;let t=!0,a=new window.Image,l=e=>()=>{t&&u(e)};return u("loading"),a.onload=l("loaded"),a.onerror=l("error"),r&&(a.referrerPolicy=r),a.crossOrigin=n??null,s&&(a.sizes=s),i&&(a.srcset=i),e&&(a.src=e),a.complete&&u(a.naturalWidth>0?"loaded":"error"),()=>{t=!1}},[o,e,i,s,n,r,u]),a}(b,e,!u),R="loaded"===C,{mounted:k,transitionStatus:O,setMounted:P}=(0,h.useTransitionStatus)(R),x=t.useRef(null),w=t.useRef(!0);(0,c.useIsoLayoutEffect)(()=>{if(!u)return;let e=w.current;w.current=!1;let t=x.current;if(!t)return;if(!t.complete)return void E("loading");let r=t.naturalWidth>0?"loaded":"error";E(r),"loaded"===r&&e&&P(!0)},[u,b,y,m,v.crossOrigin,v.referrerPolicy,o,E,P]);let T=u?{"data-loading":"loading"===C?"":void 0,"data-error":"error"===C?"":void 0,"aria-hidden":"loaded"!==C||void 0,onLoad(){E("loaded")},onError(){E("error")}}:void 0,A=(0,l.useStableCallback)(e=>{a?.(e),S(e)});(0,c.useIsoLayoutEffect)(()=>{"idle"!==C&&A(C)},[C,A]),(0,c.useIsoLayoutEffect)(()=>()=>S("idle"),[S]),(0,d.useOpenChangeComplete)({enabled:!R,open:R,ref:x,onComplete(){R||P(!1)}});let I=u||k,M={};void 0!==m&&(M.sizes=m),void 0!==y&&(M.srcSet=y),void 0!==b&&(M.src=b);let j=(0,r.useRenderElement)("img",e,{state:{imageLoadingStatus:C,transitionStatus:u&&"ending"===O?void 0:O},ref:[n,x],props:[T,v,M],stateAttributesMapping:g,enabled:I});return I?j:null});var y=e.i(39957);let b=t.forwardRef(function(e,n){let{className:s,render:a,delay:u=0,style:l,...c}=e,{imageLoadingStatus:d}=i(),[f,h]=t.useState(0===u),p=(0,y.useTimeout)();return t.useEffect(()=>(u>0?p.start(u,()=>h(!0)):h(!0),p.clear),[p,u]),(0,r.useRenderElement)("span",e,{state:{imageLoadingStatus:d},ref:n,props:c,stateAttributesMapping:o,enabled:"loaded"!==d&&(0===u||f)})});e.s(["Fallback",0,b,"Image",0,m,"Root",0,u],14751);var v=e.i(14751);e.s(["Avatar",0,v],52376)},80862,e=>{"use strict";e.s(["endingStyle",0,"data-ending-style","startingStyle",0,"data-starting-style"])},74354,e=>{"use strict";var t=e.i(80862);let r={[t.startingStyle]:""},n={[t.endingStyle]:""};e.s(["transitionStatusMapping",0,{transitionStatus:e=>"starting"===e?r:"ending"===e?n:null}])},37584,22640,e=>{"use strict";var t=e.i(71645),r=e.i(67865),n=e.i(74080),s=e.i(8445),i=e.i(94603),o=e.i(80862);let a=null;function u(e,t=!1,l=!1){let c=(0,s.useAnimationFrame)();return(0,r.useStableCallback)((r,s=null)=>{c.cancel();let u=(0,i.resolveRef)(e);if(null==u)return;let d=()=>{if(!l)return void n.flushSync(r);if(!a){let e=[];a=e,queueMicrotask(()=>{a=null,n.flushSync(()=>{for(let t of e)t()})})}a.push(()=>{s?.aborted||r()})};if("function"!=typeof u.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void r();function f(){Promise.all(u.getAnimations().map(e=>e.finished)).then(()=>{s?.aborted||d()},()=>{s?.aborted||(u.getAnimations().some(e=>e.pending||"finished"!==e.playState)?f():d())})}if(t){let e=o.startingStyle;if(!u.hasAttribute(e))return void c.request(f);let t=new MutationObserver(()=>{u.hasAttribute(e)||(t.disconnect(),f())});return t.observe(u,{attributes:!0,attributeFilter:[e]}),void s?.addEventListener("abort",()=>t.disconnect(),{once:!0})}c.request(f)})}e.s(["useAnimationsFinished",0,u],22640),e.s(["useOpenChangeComplete",0,function(e){let{enabled:n=!0,open:s,ref:i,batch:o=!1,onComplete:a}=e,l=(0,r.useStableCallback)(a),c=u(i,s,o);t.useEffect(()=>{if(!n)return;let e=new AbortController;return c(l,e.signal),()=>{e.abort()}},[n,s,l,c])}],37584)},23910,e=>{"use strict";var t=e.i(71645),r=e.i(46376),n=e.i(8445);e.s(["useTransitionStatus",0,function(e,s=!1,i=!1,o=!1){let[a,u]=t.useState(e&&s?"idle":void 0),[l,c]=t.useState(e&&!o);return e&&!l&&(c(!0),u("starting")),e||!l||"ending"===a||i||u("ending"),e||l||"ending"!==a||u(void 0),(0,r.useIsoLayoutEffect)(()=>{if(!e&&l&&"ending"!==a&&i){let e=n.AnimationFrame.request(()=>{u("ending")});return()=>{n.AnimationFrame.cancel(e)}}},[e,l,a,i]),(0,r.useIsoLayoutEffect)(()=>{if(!e||s)return;let t=n.AnimationFrame.request(()=>{u(void 0)});return()=>{n.AnimationFrame.cancel(t)}},[s,e]),(0,r.useIsoLayoutEffect)(()=>{if(!e||!s)return;e&&l&&"idle"!==a&&u("starting");let t=n.AnimationFrame.request(()=>{u("idle")});return()=>{n.AnimationFrame.cancel(t)}},[s,e,l,a]),{mounted:l,setMounted:c,transitionStatus:a}}])},94603,e=>{"use strict";e.s(["resolveRef",0,function(e){return null==e?e:"current"in e?e.current:e}])},8445,e=>{"use strict";e.i(47167);var t=e.i(88940),r=e.i(26300);let n=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let r=0;r<t.length;r+=1)t[r]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||null!==this.callbacks[t]&&(this.callbacks[t]=null,this.callbacksCount-=1)}};class s{static create(){return new s}static request(e){return n.request(e)}static cancel(e){return n.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=n.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(n.cancel(this.currentId),this.currentId=null)};disposeEffect=()=>this.cancel}e.s(["AnimationFrame",0,s,"useAnimationFrame",0,function(){let e=(0,t.useRefWithInit)(s.create).current;return(0,r.useOnMount)(e.disposeEffect),e}])},26300,e=>{"use strict";var t=e.i(71645),r=e.i(56789);e.s(["useOnMount",0,function(e){t.useEffect(e,r.EMPTY_ARRAY)}])},39957,e=>{"use strict";var t=e.i(88940),r=e.i(26300);class n{static create(){return new n}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}e.s(["Timeout",0,n,"useTimeout",0,function(){let e=(0,t.useRefWithInit)(n.create).current;return(0,r.useOnMount)(e.disposeEffect),e}])},49287,e=>{"use strict";var t=e.i(56420);let r={name:"ship",size:24,node:[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 9.189V13",key:"yp40p3"}],["path",{d:"M19 12V6a2 2 0 00-2-2H7a2 2 0 00-2 2v6",key:"1wcigf"}],["path",{d:"M19.38 19A11.6 11.6 0 0021 13l-8.188-3.639a2 2 0 00-1.624 0L3 13.001a11.6 11.6 0 002.81 7.76",key:"1kdp0u"}],["path",{d:"M2 20c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"1l8w7g"}]]};r.node;let n=(0,t.default)(r);e.s(["Ship",0,n],49287)},22016,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return y},useLinkStatus:function(){return v}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=e.r(90809),o=e.r(43476),a=i._(e.r(71645)),u=e.r(95057),l=e.r(8372),c=e.r(18581),d=e.r(18967),f=e.r(5550),h=e.r(88540),p=e.r(91949),g=e.r(73668),m=e.r(9396);function y(t){var r;let n,s,i,[y,v]=(0,a.useOptimistic)(p.IDLE_LINK_STATUS),S=(0,a.useRef)(null),{href:C,as:E,children:R,prefetch:k=null,passHref:O,replace:P,shallow:x,scroll:w,onClick:T,onMouseEnter:A,onTouchStart:I,legacyBehavior:M=!1,onNavigate:j,transitionTypes:_,ref:N,unstable_dynamicOnHover:L,...D}=t;n=R,M&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let q=a.default.useContext(l.AppRouterContext),F=!1!==k,Q=!1===k?"none":!0===k?"full":"auto",z="none"!==Q?"auto"===Q?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,U="string"==typeof(r=E||C)?r:(0,u.formatUrl)(r);if(M){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=a.default.Children.only(n)}let B=M?s&&"object"==typeof s&&s.ref:N,$,H=a.default.useCallback(e=>(null!==q&&(S.current=(0,p.mountLinkInstance)(e,U,q,z,F,v,$)),()=>{S.current&&((0,p.unmountLinkForCurrentNavigation)(S.current),S.current=null),(0,p.unmountPrefetchableInstance)(e)}),[F,U,q,z,v,$]),K={ref:(0,c.useMergedRef)(H,B),onClick(t){M||"function"!=typeof T||T(t),M&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!q||t.defaultPrevented||function(t,r,n,s,i,o,u,l="none"){if("u">typeof window){let c,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,g.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:f}=e.r(99781);a.default.startTransition(()=>{f(r,s?"replace":"push",!1===i?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,u,l)})}}(t,U,S,P,w,j,_,Q)},onMouseEnter(e){M||"function"!=typeof A||A(e),M&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),q&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===L)},onTouchStart:function(e){M||"function"!=typeof I||I(e),M&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),q&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===L)}};return(0,d.isAbsoluteUrl)(U)?K.href=U:M&&!O&&("a"!==s.type||"href"in s.props)||(K.href=(0,f.addBasePath)(U)),i=M?a.default.cloneElement(s,K):(0,o.jsx)("a",{...D,...K,children:n}),(0,o.jsx)(b.Provider,{value:y,children:i})}let b=(0,a.createContext)(p.IDLE_LINK_STATUS),v=()=>(0,a.useContext)(b);("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)},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(71645);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=i(e,n)),t&&(s.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)},18967,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return C},MissingStaticPage:function(){return S},NormalizeError:function(){return b},PageNotFoundError:function(){return v},SP:function(){return g},ST:function(){return m},WEB_VITALS:function(){return i},execOnce:function(){return o},getDisplayName:function(){return d},getLocationOrigin:function(){return l},getURL:function(){return c},isAbsoluteUrl:function(){return u},isResSent:function(){return f},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return E}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function o(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&a.test(e)};function l(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=l();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function h(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let g="u">typeof performance,m=g&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class b extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class S extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class C extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function E(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return i}});let n=e.r(18967),s=e.r(52817);function i(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return u},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return a}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});function i(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function o(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function a(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,o(e));else t.set(r,o(n));return t}function u(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},95057,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return a},formatWithValidation:function(){return l},urlObjectKeys:function(){return u}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=e.r(90809)._(e.r(98183)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",a=e.hash||"",u=e.query||"",l=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?l=t+e.host:r&&(l=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(l+=":"+e.port)),u&&"object"==typeof u&&(u=String(i.urlQueryToSearchParams(u)));let c=e.search||u&&`?${u}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==l?(l="//"+(l||""),s&&"/"!==s[0]&&(s="/"+s)):l||(l=""),a&&"#"!==a[0]&&(a="#"+a),c&&"?"!==c[0]&&(c="?"+c),s=s.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${l}${s}${c}${a}`}let u=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return a(e)}},24010,e=>{"use strict";var t=e.i(43476);e.s([],58762),e.i(58762);var r=e.i(66250),n=e.i(2820),s=e.i(56736),i=e.i(9793),o=e.i(84324),a=e.i(64951),u=e.i(77173);let l=e.i(13488).DialogTrigger;var c=e.i(74217),d=e.i(25326);class f extends d.DialogHandle{}e.s(["Backdrop",()=>n.DialogBackdrop,"Close",()=>s.DialogClose,"Description",()=>i.DialogDescription,"Handle",0,f,"Popup",()=>o.DialogPopup,"Portal",()=>a.DialogPortal,"Root",0,function(e){return(0,r.useRenderDialogRoot)("alert-dialog",e)},"Title",()=>u.DialogTitle,"Trigger",0,l,"Viewport",()=>c.DialogViewport,"createHandle",0,function(){return new f}],34604);var h=e.i(34604),h=h,p=e.i(90063),g=e.i(94945);e.s(["AlertDialog",0,function(e){return(0,t.jsx)(h.Root,{"data-slot":"alert-dialog",...e})},"AlertDialogClose",0,function(e){return(0,t.jsx)(h.Close,{"data-slot":"alert-dialog-close",...e})},"AlertDialogContent",0,function({className:e,size:r,children:n,...s}){return(0,t.jsxs)(h.Portal,{children:[(0,t.jsx)(h.Backdrop,{"data-slot":"alert-dialog-overlay",className:g.dialogSurface.overlay}),(0,t.jsx)(h.Popup,{"data-slot":"alert-dialog-content",className:(0,p.classNames)(g.dialogSurface.popup({size:r}),e),...s,children:n})]})},"AlertDialogDescription",0,function({className:e,...r}){return(0,t.jsx)(h.Description,{"data-slot":"alert-dialog-description",className:(0,p.classNames)(g.dialogSurface.description,e),...r})},"AlertDialogFooter",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,p.classNames)(g.dialogSurface.footer,e),...r})},"AlertDialogHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,p.classNames)(g.dialogSurface.header,e),...r})},"AlertDialogTitle",0,function({className:e,...r}){return(0,t.jsx)(h.Title,{"data-slot":"alert-dialog-title",className:(0,p.classNames)(g.dialogSurface.title,e),...r})}],24010)},94859,26478,e=>{"use strict";var t=e.i(43476),r=e.i(52376),n=e.i(25913),s=e.i(49287),i=e.i(56420);let o={name:"user-round",size:24,node:[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],aliases:["user-2"]};o.node;let a=(0,i.default)(o);e.s(["UserRound",0,a],26478);var u=e.i(90063);let l=(0,n.cva)("inline-flex shrink-0 items-center justify-center overflow-hidden font-semibold uppercase select-none",{variants:{kind:{app:"rounded-sm bg-primary text-primary-foreground",account:"rounded-full bg-secondary font-sans text-foreground",ship:"rounded-sm bg-secondary font-mono text-foreground",argo:"rounded-sm bg-highlight text-primary",retired:"rounded-sm border border-dashed border-input font-mono font-medium text-muted-foreground"},size:{20:"size-5 text-micro [&_svg]:size-3",28:"size-7 text-micro [&_svg]:size-(--size-icon-sm)",36:"size-9 text-caption [&_svg]:size-(--size-icon)"}},defaultVariants:{kind:"ship",size:28}});e.s(["Avatar",0,function({kind:e="ship",size:n,name:i="",className:o}){let c=e??"ship";return(0,t.jsx)(r.Avatar.Root,{"aria-hidden":!0,"data-slot":"avatar",className:(0,u.classNames)(l({kind:e,size:n}),o),children:(0,t.jsx)(r.Avatar.Fallback,{children:"app"===c?(0,t.jsx)(s.Ship,{"aria-hidden":!0}):"argo"===c?(0,t.jsx)(a,{"aria-hidden":!0}):i.replaceAll("-","").slice(0,2)})})}],94859)},61966,8734,e=>{"use strict";var t=e.i(43476),r=e.i(89664),n=e.i(56420);let s={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};s.node;let i=(0,n.default)(s);e.s(["Copy",0,i],8734);var o=e.i(71645),a=e.i(15905);e.s(["CopyButton",0,function({value:e,label:n,size:s="xs",isLabeled:u=!1,onCopied:l,onCopyFailed:c,className:d,"data-testid":f}){let[h,p]=(0,o.useState)(!1);async function g(){try{await navigator.clipboard.writeText(e)}catch{c?.();return}p(!0),l?.(),setTimeout(()=>{p(!1)},1500)}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.Button,{variant:"ghost",size:s,isIconOnly:!u,"aria-label":n,title:u?void 0:n,icon:h?(0,t.jsx)(r.Check,{"aria-hidden":!0}):(0,t.jsx)(i,{"aria-hidden":!0}),className:d,"data-testid":f,onClick:()=>{g()},children:u?h?"Copied":"Copy":null}),(0,t.jsx)("span",{role:"status",className:"sr-only",children:h?"Copied.":""})]})}],61966)},66616,e=>{"use strict";let t={"claude-code":{word:"Claude Code",kind:"coding"},codex:{word:"Codex",kind:"coding"},"claude-chat":{word:"Claude chat",kind:"chat"},chatgpt:{word:"ChatGPT",kind:"chat"},grok:{word:"Grok",kind:"chat"},grokbot:{word:"Grokbot",kind:"bot"},console:{word:"Console",kind:"console"}};function r(e){return t[e]?.word??e}e.s(["crewLineHarnessWord",0,function(e){return"chat"===e?"Chat":r(e)},"harnessKind",0,function(e){return t[e]?.kind},"harnessWord",0,r])},53573,e=>{"use strict";e.i(31627);var t=e.i(83615),r=e.i(19273),n=e.i(12598),s=e.i(81384),i=e.i(73664),o=e.i(27001),a=e.i(54440),u=e.i(71645),l=e.i(15823),c=e.i(40143),d=e.i(69230);function f(e,t){let r=new Set(t);return e.filter(e=>!r.has(e))}var h=class extends l.Subscribable{#e;#t;#r;#n;#s;#i;#o;#a;#u;#l=[];constructor(e,t,r){super(),this.#e=e,this.#n=r,this.#r=[],this.#s=[],this.#t=[],this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.#s.forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(e=>{e.destroy()})}setQueries(e,t){this.#r=e,this.#n=t,c.notifyManager.batch(()=>{let e=this.#s,t=this.#d(this.#r);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),s=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,o=n.some((t,r)=>t!==e[r]),a=i||o,u=!!a||s.some((e,t)=>{let n=this.#t[t];return!n||!(0,r.shallowEqualObjects)(e,n)});(a||u)&&(a&&(this.#l=t,this.#s=n),this.#t=s,this.hasListeners()&&(a&&(f(e,n).forEach(e=>{e.destroy()}),f(n,e).forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})),this.#f()))})}getCurrentResult(){return this.#t}getQueries(){return this.#s.map(e=>e.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(e,t){let r=this.#d(e),n=r.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),s=r.map(e=>e.defaultedQueryOptions.queryHash);return[n,e=>this.#h(e??n,t,s),()=>this.#p(n,r)]}#p(e,t){let r=new Set;return t.map((n,s)=>{let i=e[s];return n.defaultedQueryOptions.notifyOnChangeProps?i:n.observer.trackResult(i,e=>{r.has(e)||(r.add(e),t.forEach(t=>{t.observer.trackProp(e)}))})})}#h(e,t,n){if(t){let s=this.#u,i=void 0!==n&&void 0!==s&&(s.length!==n.length||n.some((e,t)=>e!==s[t]));return(this.#t!==this.#a||i||t!==this.#o)&&(this.#o=t,this.#a=this.#t,void 0!==n&&(this.#u=n),this.#i=(0,r.replaceEqualDeep)(this.#i,t(e))),this.#i}return e}#g(){return!this.#n?.combine||this.#s.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#d(e){let t=new Map;this.#s.forEach(e=>{let r=e.options.queryHash;if(!r)return;let n=t.get(r);n?n.push(e):t.set(r,[e])});let r=[];return e.forEach(e=>{let n=this.#e.defaultQueryOptions(e),s=t.get(n.queryHash)?.shift()??new d.QueryObserver(this.#e,n);r.push({defaultedQueryOptions:n,observer:s})}),r}#c(e,t){let r=this.#s.indexOf(e);-1!==r&&(this.#t=this.#t.slice(),this.#t[r]=t,this.#f())}#f(){if(this.hasListeners()){let e=this.#g(),t=this.#i,r=e?t:this.#h(this.#p(this.#t,this.#l),this.#n?.combine);(e||t!==r)&&c.notifyManager.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},p=e.i(66027),g=e.i(5387),m=e.i(27702);e.s(["useMessage",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.message.queryOptions(void 0===e?r.skipToken:{messageId:e}))},"useShip",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.ship.queryOptions(void 0===e?r.skipToken:{shipId:e},{refetchInterval:g.LAST_SEEN_REFRESH_MS}))},"useShipMessages",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.shipMessages.queryOptions({shipId:e}))},"useShipTimeline",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.shipTimeline.queryOptions({shipId:e}))},"useShips",0,function(e){let l=(0,m.useTRPC)(),f=function({queries:e,...t}){let l=(0,n.useQueryClient)(void 0),f=(0,s.useIsRestoring)(),p=(0,i.useQueryErrorResetBoundary)(),g=!1!==t.subscribed,m=u.useMemo(()=>e.map(e=>{let t=l.defaultQueryOptions(e);return t._optimisticResults=f?"isRestoring":g?"optimistic":void 0,t}),[e,l,f,g]);m.forEach(e=>{(0,a.ensureSuspenseTimers)(e);let t=l.getQueryCache().get(e.queryHash);(0,o.ensurePreventErrorBoundaryRetry)(e,p,t)}),(0,o.useClearResetErrorBoundary)(p);let[y]=u.useState(()=>new h(l,m,t)),[b,v,S]=y.getOptimisticResult(m,t.combine),C=!f&&g;u.useSyncExternalStore(u.useCallback(e=>C?y.subscribe(c.notifyManager.batchCalls(e)):r.noop,[y,C]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),u.useEffect(()=>{y.setQueries(m,t)},[m,t,y]);let E=b.some((e,t)=>(0,a.shouldSuspend)(m[t],e))?b.flatMap((e,t)=>{let r=m[t];if(r&&(0,a.shouldSuspend)(r,e)){let e=new d.QueryObserver(l,r);return(0,a.fetchOptimistic)(r,e,p)}return[]}):[];if(E.length>0)throw Promise.all(E);let R=b.find((e,t)=>{let r=m[t];return r&&(0,o.getHasError)({result:e,errorResetBoundary:p,throwOnError:r.throwOnError,query:l.getQueryCache().get(r.queryHash),suspense:r.suspense})});if(R)throw R.error;return v(S())}({queries:e.flatMap(e=>{let r=(0,t.idSchema)("ship").safeParse(e);return r.success?[r.data]:[]}).map(e=>l.fleet.ship.queryOptions({shipId:e},{refetchInterval:g.LAST_SEEN_REFRESH_MS}))}),p=new Map;for(let e of f)e.data&&p.set(e.data.id,e.data);return p}],53573)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,52376,e=>{"use strict";e.s([],4824),e.i(4824);var t=e.i(71645),r=e.i(52245),n=e.i(33332);let s=t.createContext(void 0);function i(){let e=t.useContext(s);if(void 0===e)throw Error((0,n.default)(13));return e}let o={imageLoadingStatus:()=>null};var a=e.i(43476);let u=t.forwardRef(function(e,n){let{className:i,render:u,style:l,...c}=e,[d,f]=t.useState("idle"),h=t.useMemo(()=>({imageLoadingStatus:d,setImageLoadingStatus:f}),[d,f]),p=(0,r.useRenderElement)("span",e,{state:{imageLoadingStatus:d},ref:n,props:c,stateAttributesMapping:o});return(0,a.jsx)(s.Provider,{value:h,children:p})});var l=e.i(67865),c=e.i(46376),d=e.i(37584),f=e.i(74354),h=e.i(23910),p=e.i(56789);let g={...o,...f.transitionStatusMapping},m=t.forwardRef(function(e,n){let{className:s,render:o,onLoadingStatusChange:a,keepMounted:u=!1,style:f,sizes:m,srcSet:y,src:b,...v}=e,{setImageLoadingStatus:S}=i(),[C,E]=function(e,{referrerPolicy:r,crossOrigin:n,sizes:s,srcSet:i},o){let a=t.useState("idle"),u=a[1];return(0,c.useIsoLayoutEffect)(()=>{if(!o)return p.NOOP;if(!e&&!i)return u("error"),p.NOOP;let t=!0,a=new window.Image,l=e=>()=>{t&&u(e)};return u("loading"),a.onload=l("loaded"),a.onerror=l("error"),r&&(a.referrerPolicy=r),a.crossOrigin=n??null,s&&(a.sizes=s),i&&(a.srcset=i),e&&(a.src=e),a.complete&&u(a.naturalWidth>0?"loaded":"error"),()=>{t=!1}},[o,e,i,s,n,r,u]),a}(b,e,!u),R="loaded"===C,{mounted:k,transitionStatus:O,setMounted:x}=(0,h.useTransitionStatus)(R),P=t.useRef(null),w=t.useRef(!0);(0,c.useIsoLayoutEffect)(()=>{if(!u)return;let e=w.current;w.current=!1;let t=P.current;if(!t)return;if(!t.complete)return void E("loading");let r=t.naturalWidth>0?"loaded":"error";E(r),"loaded"===r&&e&&x(!0)},[u,b,y,m,v.crossOrigin,v.referrerPolicy,o,E,x]);let A=u?{"data-loading":"loading"===C?"":void 0,"data-error":"error"===C?"":void 0,"aria-hidden":"loaded"!==C||void 0,onLoad(){E("loaded")},onError(){E("error")}}:void 0,T=(0,l.useStableCallback)(e=>{a?.(e),S(e)});(0,c.useIsoLayoutEffect)(()=>{"idle"!==C&&T(C)},[C,T]),(0,c.useIsoLayoutEffect)(()=>()=>S("idle"),[S]),(0,d.useOpenChangeComplete)({enabled:!R,open:R,ref:P,onComplete(){R||x(!1)}});let I=u||k,M={};void 0!==m&&(M.sizes=m),void 0!==y&&(M.srcSet=y),void 0!==b&&(M.src=b);let j=(0,r.useRenderElement)("img",e,{state:{imageLoadingStatus:C,transitionStatus:u&&"ending"===O?void 0:O},ref:[n,P],props:[A,v,M],stateAttributesMapping:g,enabled:I});return I?j:null});var y=e.i(39957);let b=t.forwardRef(function(e,n){let{className:s,render:a,delay:u=0,style:l,...c}=e,{imageLoadingStatus:d}=i(),[f,h]=t.useState(0===u),p=(0,y.useTimeout)();return t.useEffect(()=>(u>0?p.start(u,()=>h(!0)):h(!0),p.clear),[p,u]),(0,r.useRenderElement)("span",e,{state:{imageLoadingStatus:d},ref:n,props:c,stateAttributesMapping:o,enabled:"loaded"!==d&&(0===u||f)})});e.s(["Fallback",0,b,"Image",0,m,"Root",0,u],14751);var v=e.i(14751);e.s(["Avatar",0,v],52376)},80862,e=>{"use strict";e.s(["endingStyle",0,"data-ending-style","startingStyle",0,"data-starting-style"])},74354,e=>{"use strict";var t=e.i(80862);let r={[t.startingStyle]:""},n={[t.endingStyle]:""};e.s(["transitionStatusMapping",0,{transitionStatus:e=>"starting"===e?r:"ending"===e?n:null}])},37584,22640,e=>{"use strict";var t=e.i(71645),r=e.i(67865),n=e.i(74080),s=e.i(8445),i=e.i(94603),o=e.i(80862);let a=null;function u(e,t=!1,l=!1){let c=(0,s.useAnimationFrame)();return(0,r.useStableCallback)((r,s=null)=>{c.cancel();let u=(0,i.resolveRef)(e);if(null==u)return;let d=()=>{if(!l)return void n.flushSync(r);if(!a){let e=[];a=e,queueMicrotask(()=>{a=null,n.flushSync(()=>{for(let t of e)t()})})}a.push(()=>{s?.aborted||r()})};if("function"!=typeof u.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void r();function f(){Promise.all(u.getAnimations().map(e=>e.finished)).then(()=>{s?.aborted||d()},()=>{s?.aborted||(u.getAnimations().some(e=>e.pending||"finished"!==e.playState)?f():d())})}if(t){let e=o.startingStyle;if(!u.hasAttribute(e))return void c.request(f);let t=new MutationObserver(()=>{u.hasAttribute(e)||(t.disconnect(),f())});return t.observe(u,{attributes:!0,attributeFilter:[e]}),void s?.addEventListener("abort",()=>t.disconnect(),{once:!0})}c.request(f)})}e.s(["useAnimationsFinished",0,u],22640),e.s(["useOpenChangeComplete",0,function(e){let{enabled:n=!0,open:s,ref:i,batch:o=!1,onComplete:a}=e,l=(0,r.useStableCallback)(a),c=u(i,s,o);t.useEffect(()=>{if(!n)return;let e=new AbortController;return c(l,e.signal),()=>{e.abort()}},[n,s,l,c])}],37584)},23910,e=>{"use strict";var t=e.i(71645),r=e.i(46376),n=e.i(8445);e.s(["useTransitionStatus",0,function(e,s=!1,i=!1,o=!1){let[a,u]=t.useState(e&&s?"idle":void 0),[l,c]=t.useState(e&&!o);return e&&!l&&(c(!0),u("starting")),e||!l||"ending"===a||i||u("ending"),e||l||"ending"!==a||u(void 0),(0,r.useIsoLayoutEffect)(()=>{if(!e&&l&&"ending"!==a&&i){let e=n.AnimationFrame.request(()=>{u("ending")});return()=>{n.AnimationFrame.cancel(e)}}},[e,l,a,i]),(0,r.useIsoLayoutEffect)(()=>{if(!e||s)return;let t=n.AnimationFrame.request(()=>{u(void 0)});return()=>{n.AnimationFrame.cancel(t)}},[s,e]),(0,r.useIsoLayoutEffect)(()=>{if(!e||!s)return;e&&l&&"idle"!==a&&u("starting");let t=n.AnimationFrame.request(()=>{u("idle")});return()=>{n.AnimationFrame.cancel(t)}},[s,e,l,a]),{mounted:l,setMounted:c,transitionStatus:a}}])},94603,e=>{"use strict";e.s(["resolveRef",0,function(e){return null==e?e:"current"in e?e.current:e}])},8445,e=>{"use strict";e.i(47167);var t=e.i(88940),r=e.i(26300);let n=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let r=0;r<t.length;r+=1)t[r]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||null!==this.callbacks[t]&&(this.callbacks[t]=null,this.callbacksCount-=1)}};class s{static create(){return new s}static request(e){return n.request(e)}static cancel(e){return n.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=n.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(n.cancel(this.currentId),this.currentId=null)};disposeEffect=()=>this.cancel}e.s(["AnimationFrame",0,s,"useAnimationFrame",0,function(){let e=(0,t.useRefWithInit)(s.create).current;return(0,r.useOnMount)(e.disposeEffect),e}])},26300,e=>{"use strict";var t=e.i(71645),r=e.i(56789);e.s(["useOnMount",0,function(e){t.useEffect(e,r.EMPTY_ARRAY)}])},39957,e=>{"use strict";var t=e.i(88940),r=e.i(26300);class n{static create(){return new n}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}e.s(["Timeout",0,n,"useTimeout",0,function(){let e=(0,t.useRefWithInit)(n.create).current;return(0,r.useOnMount)(e.disposeEffect),e}])},49287,e=>{"use strict";var t=e.i(56420);let r={name:"ship",size:24,node:[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 9.189V13",key:"yp40p3"}],["path",{d:"M19 12V6a2 2 0 00-2-2H7a2 2 0 00-2 2v6",key:"1wcigf"}],["path",{d:"M19.38 19A11.6 11.6 0 0021 13l-8.188-3.639a2 2 0 00-1.624 0L3 13.001a11.6 11.6 0 002.81 7.76",key:"1kdp0u"}],["path",{d:"M2 20c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"1l8w7g"}]]};r.node;let n=(0,t.default)(r);e.s(["Ship",0,n],49287)},22016,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return y},useLinkStatus:function(){return v}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=e.r(90809),o=e.r(43476),a=i._(e.r(71645)),u=e.r(95057),l=e.r(8372),c=e.r(18581),d=e.r(18967),f=e.r(5550),h=e.r(88540),p=e.r(91949),g=e.r(73668),m=e.r(9396);function y(t){var r;let n,s,i,[y,v]=(0,a.useOptimistic)(p.IDLE_LINK_STATUS),S=(0,a.useRef)(null),{href:C,as:E,children:R,prefetch:k=null,passHref:O,replace:x,shallow:P,scroll:w,onClick:A,onMouseEnter:T,onTouchStart:I,legacyBehavior:M=!1,onNavigate:j,transitionTypes:_,ref:N,unstable_dynamicOnHover:L,...D}=t;n=R,M&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let q=a.default.useContext(l.AppRouterContext),F=!1!==k,Q=!1===k?"none":!0===k?"full":"auto",z="none"!==Q?"auto"===Q?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,U="string"==typeof(r=E||C)?r:(0,u.formatUrl)(r);if(M){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=a.default.Children.only(n)}let B=M?s&&"object"==typeof s&&s.ref:N,$,H=a.default.useCallback(e=>(null!==q&&(S.current=(0,p.mountLinkInstance)(e,U,q,z,F,v,$)),()=>{S.current&&((0,p.unmountLinkForCurrentNavigation)(S.current),S.current=null),(0,p.unmountPrefetchableInstance)(e)}),[F,U,q,z,v,$]),K={ref:(0,c.useMergedRef)(H,B),onClick(t){M||"function"!=typeof A||A(t),M&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!q||t.defaultPrevented||function(t,r,n,s,i,o,u,l="none"){if("u">typeof window){let c,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,g.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:f}=e.r(99781);a.default.startTransition(()=>{f(r,s?"replace":"push",!1===i?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,u,l)})}}(t,U,S,x,w,j,_,Q)},onMouseEnter(e){M||"function"!=typeof T||T(e),M&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),q&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===L)},onTouchStart:function(e){M||"function"!=typeof I||I(e),M&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),q&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===L)}};return(0,d.isAbsoluteUrl)(U)?K.href=U:M&&!O&&("a"!==s.type||"href"in s.props)||(K.href=(0,f.addBasePath)(U)),i=M?a.default.cloneElement(s,K):(0,o.jsx)("a",{...D,...K,children:n}),(0,o.jsx)(b.Provider,{value:y,children:i})}let b=(0,a.createContext)(p.IDLE_LINK_STATUS),v=()=>(0,a.useContext)(b);("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)},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(71645);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=i(e,n)),t&&(s.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)},18967,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return C},MissingStaticPage:function(){return S},NormalizeError:function(){return b},PageNotFoundError:function(){return v},SP:function(){return g},ST:function(){return m},WEB_VITALS:function(){return i},execOnce:function(){return o},getDisplayName:function(){return d},getLocationOrigin:function(){return l},getURL:function(){return c},isAbsoluteUrl:function(){return u},isResSent:function(){return f},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return E}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function o(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&a.test(e)};function l(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=l();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function h(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let g="u">typeof performance,m=g&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class b extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class S extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class C extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function E(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return i}});let n=e.r(18967),s=e.r(52817);function i(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return u},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return a}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});function i(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function o(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function a(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,o(e));else t.set(r,o(n));return t}function u(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},95057,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return a},formatWithValidation:function(){return l},urlObjectKeys:function(){return u}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=e.r(90809)._(e.r(98183)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",a=e.hash||"",u=e.query||"",l=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?l=t+e.host:r&&(l=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(l+=":"+e.port)),u&&"object"==typeof u&&(u=String(i.urlQueryToSearchParams(u)));let c=e.search||u&&`?${u}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==l?(l="//"+(l||""),s&&"/"!==s[0]&&(s="/"+s)):l||(l=""),a&&"#"!==a[0]&&(a="#"+a),c&&"?"!==c[0]&&(c="?"+c),s=s.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${l}${s}${c}${a}`}let u=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return a(e)}},24010,e=>{"use strict";var t=e.i(43476);e.s([],58762),e.i(58762);var r=e.i(66250),n=e.i(2820),s=e.i(56736),i=e.i(9793),o=e.i(84324),a=e.i(64951),u=e.i(77173);let l=e.i(13488).DialogTrigger;var c=e.i(74217),d=e.i(25326);class f extends d.DialogHandle{}e.s(["Backdrop",()=>n.DialogBackdrop,"Close",()=>s.DialogClose,"Description",()=>i.DialogDescription,"Handle",0,f,"Popup",()=>o.DialogPopup,"Portal",()=>a.DialogPortal,"Root",0,function(e){return(0,r.useRenderDialogRoot)("alert-dialog",e)},"Title",()=>u.DialogTitle,"Trigger",0,l,"Viewport",()=>c.DialogViewport,"createHandle",0,function(){return new f}],34604);var h=e.i(34604),h=h,p=e.i(90063),g=e.i(94945);e.s(["AlertDialog",0,function(e){return(0,t.jsx)(h.Root,{"data-slot":"alert-dialog",...e})},"AlertDialogClose",0,function(e){return(0,t.jsx)(h.Close,{"data-slot":"alert-dialog-close",...e})},"AlertDialogContent",0,function({className:e,size:r,children:n,...s}){return(0,t.jsxs)(h.Portal,{children:[(0,t.jsx)(h.Backdrop,{"data-slot":"alert-dialog-overlay",className:g.dialogSurface.overlay}),(0,t.jsx)(h.Popup,{"data-slot":"alert-dialog-content",className:(0,p.classNames)(g.dialogSurface.popup({size:r}),e),...s,children:n})]})},"AlertDialogDescription",0,function({className:e,...r}){return(0,t.jsx)(h.Description,{"data-slot":"alert-dialog-description",className:(0,p.classNames)(g.dialogSurface.description,e),...r})},"AlertDialogFooter",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,p.classNames)(g.dialogSurface.footer,e),...r})},"AlertDialogHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,p.classNames)(g.dialogSurface.header,e),...r})},"AlertDialogTitle",0,function({className:e,...r}){return(0,t.jsx)(h.Title,{"data-slot":"alert-dialog-title",className:(0,p.classNames)(g.dialogSurface.title,e),...r})}],24010)},94859,26478,e=>{"use strict";var t=e.i(43476),r=e.i(52376),n=e.i(25913),s=e.i(49287),i=e.i(56420);let o={name:"user-round",size:24,node:[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],aliases:["user-2"]};o.node;let a=(0,i.default)(o);e.s(["UserRound",0,a],26478);var u=e.i(90063);let l=(0,n.cva)("inline-flex shrink-0 items-center justify-center overflow-hidden font-semibold uppercase select-none",{variants:{kind:{app:"rounded-sm bg-primary text-primary-foreground",account:"rounded-full bg-secondary font-sans text-foreground",ship:"rounded-sm bg-secondary font-mono text-foreground",argo:"rounded-sm bg-highlight text-primary",retired:"rounded-sm border border-dashed border-input font-mono font-medium text-muted-foreground"},size:{20:"size-5 text-micro [&_svg]:size-3",28:"size-7 text-micro [&_svg]:size-(--size-icon-sm)",36:"size-9 text-caption [&_svg]:size-(--size-icon)"}},defaultVariants:{kind:"ship",size:28}});e.s(["Avatar",0,function({kind:e="ship",size:n,name:i="",className:o}){let c=e??"ship";return(0,t.jsx)(r.Avatar.Root,{"aria-hidden":!0,"data-slot":"avatar",className:(0,u.classNames)(l({kind:e,size:n}),o),children:(0,t.jsx)(r.Avatar.Fallback,{children:"app"===c?(0,t.jsx)(s.Ship,{"aria-hidden":!0}):"argo"===c?(0,t.jsx)(a,{"aria-hidden":!0}):i.replaceAll("-","").slice(0,2)})})}],94859)},61966,8734,e=>{"use strict";var t=e.i(43476),r=e.i(89664),n=e.i(56420);let s={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};s.node;let i=(0,n.default)(s);e.s(["Copy",0,i],8734);var o=e.i(71645),a=e.i(15905);e.s(["CopyButton",0,function({value:e,label:n,size:s="xs",isLabeled:u=!1,onCopied:l,onCopyFailed:c,className:d,"data-testid":f}){let[h,p]=(0,o.useState)(!1);async function g(){try{await navigator.clipboard.writeText(e)}catch{c?.();return}p(!0),l?.(),setTimeout(()=>{p(!1)},1500)}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.Button,{variant:"ghost",size:s,isIconOnly:!u,"aria-label":n,title:u?void 0:n,icon:h?(0,t.jsx)(r.Check,{"aria-hidden":!0}):(0,t.jsx)(i,{"aria-hidden":!0}),className:d,"data-testid":f,onClick:()=>{g()},children:u?h?"Copied":"Copy":null}),(0,t.jsx)("span",{role:"status",className:"sr-only",children:h?"Copied.":""})]})}],61966)},66616,e=>{"use strict";var t=e.i(49635);let r={"claude-code":{word:"Claude Code",kind:"coding"},codex:{word:"Codex",kind:"coding"},"claude-chat":{word:"Claude chat",kind:"chat"},chatgpt:{word:"ChatGPT",kind:"chat"},grok:{word:"Grok",kind:"chat"},grokbot:{word:"Grokbot",kind:"bot"},console:{word:"Console",kind:"console"}};function n(e){return r[e]?.word??e}e.s(["crewLineHarnessWord",0,function(e){return"chat"===e?"Chat":n(e)},"harnessDetection",0,function(e,r){if(void 0===e.version)return;if(void 0===e.modelsConfirmedAt||null===e.modelsConfirmedAt)return`${e.version} \xb7 no model confirmed`;let n=(0,t.relativeTime)(new Date(e.modelsConfirmedAt),r);return`${e.version} \xb7 models confirmed ${"Just now"===n?"just now":n}`},"harnessKind",0,function(e){return r[e]?.kind},"harnessWord",0,n])},53573,e=>{"use strict";e.i(31627);var t=e.i(83615),r=e.i(19273),n=e.i(12598),s=e.i(81384),i=e.i(73664),o=e.i(27001),a=e.i(54440),u=e.i(71645),l=e.i(15823),c=e.i(40143),d=e.i(69230);function f(e,t){let r=new Set(t);return e.filter(e=>!r.has(e))}var h=class extends l.Subscribable{#e;#t;#r;#n;#s;#i;#o;#a;#u;#l=[];constructor(e,t,r){super(),this.#e=e,this.#n=r,this.#r=[],this.#s=[],this.#t=[],this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.#s.forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(e=>{e.destroy()})}setQueries(e,t){this.#r=e,this.#n=t,c.notifyManager.batch(()=>{let e=this.#s,t=this.#d(this.#r);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),s=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,o=n.some((t,r)=>t!==e[r]),a=i||o,u=!!a||s.some((e,t)=>{let n=this.#t[t];return!n||!(0,r.shallowEqualObjects)(e,n)});(a||u)&&(a&&(this.#l=t,this.#s=n),this.#t=s,this.hasListeners()&&(a&&(f(e,n).forEach(e=>{e.destroy()}),f(n,e).forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})),this.#f()))})}getCurrentResult(){return this.#t}getQueries(){return this.#s.map(e=>e.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(e,t){let r=this.#d(e),n=r.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),s=r.map(e=>e.defaultedQueryOptions.queryHash);return[n,e=>this.#h(e??n,t,s),()=>this.#p(n,r)]}#p(e,t){let r=new Set;return t.map((n,s)=>{let i=e[s];return n.defaultedQueryOptions.notifyOnChangeProps?i:n.observer.trackResult(i,e=>{r.has(e)||(r.add(e),t.forEach(t=>{t.observer.trackProp(e)}))})})}#h(e,t,n){if(t){let s=this.#u,i=void 0!==n&&void 0!==s&&(s.length!==n.length||n.some((e,t)=>e!==s[t]));return(this.#t!==this.#a||i||t!==this.#o)&&(this.#o=t,this.#a=this.#t,void 0!==n&&(this.#u=n),this.#i=(0,r.replaceEqualDeep)(this.#i,t(e))),this.#i}return e}#g(){return!this.#n?.combine||this.#s.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#d(e){let t=new Map;this.#s.forEach(e=>{let r=e.options.queryHash;if(!r)return;let n=t.get(r);n?n.push(e):t.set(r,[e])});let r=[];return e.forEach(e=>{let n=this.#e.defaultQueryOptions(e),s=t.get(n.queryHash)?.shift()??new d.QueryObserver(this.#e,n);r.push({defaultedQueryOptions:n,observer:s})}),r}#c(e,t){let r=this.#s.indexOf(e);-1!==r&&(this.#t=this.#t.slice(),this.#t[r]=t,this.#f())}#f(){if(this.hasListeners()){let e=this.#g(),t=this.#i,r=e?t:this.#h(this.#p(this.#t,this.#l),this.#n?.combine);(e||t!==r)&&c.notifyManager.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},p=e.i(66027),g=e.i(5387),m=e.i(27702);e.s(["useMessage",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.message.queryOptions(void 0===e?r.skipToken:{messageId:e}))},"useShip",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.ship.queryOptions(void 0===e?r.skipToken:{shipId:e},{refetchInterval:g.LAST_SEEN_REFRESH_MS}))},"useShipMessages",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.shipMessages.queryOptions({shipId:e}))},"useShipTimeline",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.shipTimeline.queryOptions({shipId:e}))},"useShips",0,function(e){let l=(0,m.useTRPC)(),f=function({queries:e,...t}){let l=(0,n.useQueryClient)(void 0),f=(0,s.useIsRestoring)(),p=(0,i.useQueryErrorResetBoundary)(),g=!1!==t.subscribed,m=u.useMemo(()=>e.map(e=>{let t=l.defaultQueryOptions(e);return t._optimisticResults=f?"isRestoring":g?"optimistic":void 0,t}),[e,l,f,g]);m.forEach(e=>{(0,a.ensureSuspenseTimers)(e);let t=l.getQueryCache().get(e.queryHash);(0,o.ensurePreventErrorBoundaryRetry)(e,p,t)}),(0,o.useClearResetErrorBoundary)(p);let[y]=u.useState(()=>new h(l,m,t)),[b,v,S]=y.getOptimisticResult(m,t.combine),C=!f&&g;u.useSyncExternalStore(u.useCallback(e=>C?y.subscribe(c.notifyManager.batchCalls(e)):r.noop,[y,C]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),u.useEffect(()=>{y.setQueries(m,t)},[m,t,y]);let E=b.some((e,t)=>(0,a.shouldSuspend)(m[t],e))?b.flatMap((e,t)=>{let r=m[t];if(r&&(0,a.shouldSuspend)(r,e)){let e=new d.QueryObserver(l,r);return(0,a.fetchOptimistic)(r,e,p)}return[]}):[];if(E.length>0)throw Promise.all(E);let R=b.find((e,t)=>{let r=m[t];return r&&(0,o.getHasError)({result:e,errorResetBoundary:p,throwOnError:r.throwOnError,query:l.getQueryCache().get(r.queryHash),suspense:r.suspense})});if(R)throw R.error;return v(S())}({queries:e.flatMap(e=>{let r=(0,t.idSchema)("ship").safeParse(e);return r.success?[r.data]:[]}).map(e=>l.fleet.ship.queryOptions({shipId:e},{refetchInterval:g.LAST_SEEN_REFRESH_MS}))}),p=new Map;for(let e of f)e.data&&p.set(e.data.id,e.data);return p}],53573)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,52376,e=>{"use strict";e.s([],4824),e.i(4824);var t=e.i(71645),r=e.i(52245),n=e.i(33332);let s=t.createContext(void 0);function i(){let e=t.useContext(s);if(void 0===e)throw Error((0,n.default)(13));return e}let o={imageLoadingStatus:()=>null};var a=e.i(43476);let u=t.forwardRef(function(e,n){let{className:i,render:u,style:l,...c}=e,[d,f]=t.useState("idle"),h=t.useMemo(()=>({imageLoadingStatus:d,setImageLoadingStatus:f}),[d,f]),p=(0,r.useRenderElement)("span",e,{state:{imageLoadingStatus:d},ref:n,props:c,stateAttributesMapping:o});return(0,a.jsx)(s.Provider,{value:h,children:p})});var l=e.i(67865),c=e.i(46376),d=e.i(37584),f=e.i(74354),h=e.i(23910),p=e.i(56789);let g={...o,...f.transitionStatusMapping},m=t.forwardRef(function(e,n){let{className:s,render:o,onLoadingStatusChange:a,keepMounted:u=!1,style:f,sizes:m,srcSet:b,src:y,...v}=e,{setImageLoadingStatus:S}=i(),[E,R]=function(e,{referrerPolicy:r,crossOrigin:n,sizes:s,srcSet:i},o){let a=t.useState("idle"),u=a[1];return(0,c.useIsoLayoutEffect)(()=>{if(!o)return p.NOOP;if(!e&&!i)return u("error"),p.NOOP;let t=!0,a=new window.Image,l=e=>()=>{t&&u(e)};return u("loading"),a.onload=l("loaded"),a.onerror=l("error"),r&&(a.referrerPolicy=r),a.crossOrigin=n??null,s&&(a.sizes=s),i&&(a.srcset=i),e&&(a.src=e),a.complete&&u(a.naturalWidth>0?"loaded":"error"),()=>{t=!1}},[o,e,i,s,n,r,u]),a}(y,e,!u),C="loaded"===E,{mounted:k,transitionStatus:O,setMounted:P}=(0,h.useTransitionStatus)(C),A=t.useRef(null),w=t.useRef(!0);(0,c.useIsoLayoutEffect)(()=>{if(!u)return;let e=w.current;w.current=!1;let t=A.current;if(!t)return;if(!t.complete)return void R("loading");let r=t.naturalWidth>0?"loaded":"error";R(r),"loaded"===r&&e&&P(!0)},[u,y,b,m,v.crossOrigin,v.referrerPolicy,o,R,P]);let T=u?{"data-loading":"loading"===E?"":void 0,"data-error":"error"===E?"":void 0,"aria-hidden":"loaded"!==E||void 0,onLoad(){R("loaded")},onError(){R("error")}}:void 0,x=(0,l.useStableCallback)(e=>{a?.(e),S(e)});(0,c.useIsoLayoutEffect)(()=>{"idle"!==E&&x(E)},[E,x]),(0,c.useIsoLayoutEffect)(()=>()=>S("idle"),[S]),(0,d.useOpenChangeComplete)({enabled:!C,open:C,ref:A,onComplete(){C||P(!1)}});let I=u||k,M={};void 0!==m&&(M.sizes=m),void 0!==b&&(M.srcSet=b),void 0!==y&&(M.src=y);let _=(0,r.useRenderElement)("img",e,{state:{imageLoadingStatus:E,transitionStatus:u&&"ending"===O?void 0:O},ref:[n,A],props:[T,v,M],stateAttributesMapping:g,enabled:I});return I?_:null});var b=e.i(39957);let y=t.forwardRef(function(e,n){let{className:s,render:a,delay:u=0,style:l,...c}=e,{imageLoadingStatus:d}=i(),[f,h]=t.useState(0===u),p=(0,b.useTimeout)();return t.useEffect(()=>(u>0?p.start(u,()=>h(!0)):h(!0),p.clear),[p,u]),(0,r.useRenderElement)("span",e,{state:{imageLoadingStatus:d},ref:n,props:c,stateAttributesMapping:o,enabled:"loaded"!==d&&(0===u||f)})});e.s(["Fallback",0,y,"Image",0,m,"Root",0,u],14751);var v=e.i(14751);e.s(["Avatar",0,v],52376)},80862,e=>{"use strict";e.s(["endingStyle",0,"data-ending-style","startingStyle",0,"data-starting-style"])},74354,e=>{"use strict";var t=e.i(80862);let r={[t.startingStyle]:""},n={[t.endingStyle]:""};e.s(["transitionStatusMapping",0,{transitionStatus:e=>"starting"===e?r:"ending"===e?n:null}])},37584,22640,e=>{"use strict";var t=e.i(71645),r=e.i(67865),n=e.i(74080),s=e.i(8445),i=e.i(94603),o=e.i(80862);let a=null;function u(e,t=!1,l=!1){let c=(0,s.useAnimationFrame)();return(0,r.useStableCallback)((r,s=null)=>{c.cancel();let u=(0,i.resolveRef)(e);if(null==u)return;let d=()=>{if(!l)return void n.flushSync(r);if(!a){let e=[];a=e,queueMicrotask(()=>{a=null,n.flushSync(()=>{for(let t of e)t()})})}a.push(()=>{s?.aborted||r()})};if("function"!=typeof u.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void r();function f(){Promise.all(u.getAnimations().map(e=>e.finished)).then(()=>{s?.aborted||d()},()=>{s?.aborted||(u.getAnimations().some(e=>e.pending||"finished"!==e.playState)?f():d())})}if(t){let e=o.startingStyle;if(!u.hasAttribute(e))return void c.request(f);let t=new MutationObserver(()=>{u.hasAttribute(e)||(t.disconnect(),f())});return t.observe(u,{attributes:!0,attributeFilter:[e]}),void s?.addEventListener("abort",()=>t.disconnect(),{once:!0})}c.request(f)})}e.s(["useAnimationsFinished",0,u],22640),e.s(["useOpenChangeComplete",0,function(e){let{enabled:n=!0,open:s,ref:i,batch:o=!1,onComplete:a}=e,l=(0,r.useStableCallback)(a),c=u(i,s,o);t.useEffect(()=>{if(!n)return;let e=new AbortController;return c(l,e.signal),()=>{e.abort()}},[n,s,l,c])}],37584)},23910,e=>{"use strict";var t=e.i(71645),r=e.i(46376),n=e.i(8445);e.s(["useTransitionStatus",0,function(e,s=!1,i=!1,o=!1){let[a,u]=t.useState(e&&s?"idle":void 0),[l,c]=t.useState(e&&!o);return e&&!l&&(c(!0),u("starting")),e||!l||"ending"===a||i||u("ending"),e||l||"ending"!==a||u(void 0),(0,r.useIsoLayoutEffect)(()=>{if(!e&&l&&"ending"!==a&&i){let e=n.AnimationFrame.request(()=>{u("ending")});return()=>{n.AnimationFrame.cancel(e)}}},[e,l,a,i]),(0,r.useIsoLayoutEffect)(()=>{if(!e||s)return;let t=n.AnimationFrame.request(()=>{u(void 0)});return()=>{n.AnimationFrame.cancel(t)}},[s,e]),(0,r.useIsoLayoutEffect)(()=>{if(!e||!s)return;e&&l&&"idle"!==a&&u("starting");let t=n.AnimationFrame.request(()=>{u("idle")});return()=>{n.AnimationFrame.cancel(t)}},[s,e,l,a]),{mounted:l,setMounted:c,transitionStatus:a}}])},94603,e=>{"use strict";e.s(["resolveRef",0,function(e){return null==e?e:"current"in e?e.current:e}])},8445,e=>{"use strict";e.i(47167);var t=e.i(88940),r=e.i(26300);let n=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let r=0;r<t.length;r+=1)t[r]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||null!==this.callbacks[t]&&(this.callbacks[t]=null,this.callbacksCount-=1)}};class s{static create(){return new s}static request(e){return n.request(e)}static cancel(e){return n.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=n.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(n.cancel(this.currentId),this.currentId=null)};disposeEffect=()=>this.cancel}e.s(["AnimationFrame",0,s,"useAnimationFrame",0,function(){let e=(0,t.useRefWithInit)(s.create).current;return(0,r.useOnMount)(e.disposeEffect),e}])},26300,e=>{"use strict";var t=e.i(71645),r=e.i(56789);e.s(["useOnMount",0,function(e){t.useEffect(e,r.EMPTY_ARRAY)}])},39957,e=>{"use strict";var t=e.i(88940),r=e.i(26300);class n{static create(){return new n}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}e.s(["Timeout",0,n,"useTimeout",0,function(){let e=(0,t.useRefWithInit)(n.create).current;return(0,r.useOnMount)(e.disposeEffect),e}])},49287,e=>{"use strict";var t=e.i(56420);let r={name:"ship",size:24,node:[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 9.189V13",key:"yp40p3"}],["path",{d:"M19 12V6a2 2 0 00-2-2H7a2 2 0 00-2 2v6",key:"1wcigf"}],["path",{d:"M19.38 19A11.6 11.6 0 0021 13l-8.188-3.639a2 2 0 00-1.624 0L3 13.001a11.6 11.6 0 002.81 7.76",key:"1kdp0u"}],["path",{d:"M2 20c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"1l8w7g"}]]};r.node;let n=(0,t.default)(r);e.s(["Ship",0,n],49287)},22016,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return b},useLinkStatus:function(){return v}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=e.r(90809),o=e.r(43476),a=i._(e.r(71645)),u=e.r(95057),l=e.r(8372),c=e.r(18581),d=e.r(18967),f=e.r(5550),h=e.r(88540),p=e.r(91949),g=e.r(73668),m=e.r(9396);function b(t){var r;let n,s,i,[b,v]=(0,a.useOptimistic)(p.IDLE_LINK_STATUS),S=(0,a.useRef)(null),{href:E,as:R,children:C,prefetch:k=null,passHref:O,replace:P,shallow:A,scroll:w,onClick:T,onMouseEnter:x,onTouchStart:I,legacyBehavior:M=!1,onNavigate:_,transitionTypes:j,ref:N,unstable_dynamicOnHover:L,...D}=t;n=C,M&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let q=a.default.useContext(l.AppRouterContext),F=!1!==k,Q=!1===k?"none":!0===k?"full":"auto",U="none"!==Q?"auto"===Q?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,z="string"==typeof(r=R||E)?r:(0,u.formatUrl)(r);if(M){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=a.default.Children.only(n)}let B=M?s&&"object"==typeof s&&s.ref:N,$,H=a.default.useCallback(e=>(null!==q&&(S.current=(0,p.mountLinkInstance)(e,z,q,U,F,v,$)),()=>{S.current&&((0,p.unmountLinkForCurrentNavigation)(S.current),S.current=null),(0,p.unmountPrefetchableInstance)(e)}),[F,z,q,U,v,$]),K={ref:(0,c.useMergedRef)(H,B),onClick(t){M||"function"!=typeof T||T(t),M&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!q||t.defaultPrevented||function(t,r,n,s,i,o,u,l="none"){if("u">typeof window){let c,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,g.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:f}=e.r(99781);a.default.startTransition(()=>{f(r,s?"replace":"push",!1===i?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,u,l)})}}(t,z,S,P,w,_,j,Q)},onMouseEnter(e){M||"function"!=typeof x||x(e),M&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),q&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===L)},onTouchStart:function(e){M||"function"!=typeof I||I(e),M&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),q&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===L)}};return(0,d.isAbsoluteUrl)(z)?K.href=z:M&&!O&&("a"!==s.type||"href"in s.props)||(K.href=(0,f.addBasePath)(z)),i=M?a.default.cloneElement(s,K):(0,o.jsx)("a",{...D,...K,children:n}),(0,o.jsx)(y.Provider,{value:b,children:i})}let y=(0,a.createContext)(p.IDLE_LINK_STATUS),v=()=>(0,a.useContext)(y);("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)},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(71645);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=i(e,n)),t&&(s.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)},18967,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return b},MiddlewareNotFoundError:function(){return E},MissingStaticPage:function(){return S},NormalizeError:function(){return y},PageNotFoundError:function(){return v},SP:function(){return g},ST:function(){return m},WEB_VITALS:function(){return i},execOnce:function(){return o},getDisplayName:function(){return d},getLocationOrigin:function(){return l},getURL:function(){return c},isAbsoluteUrl:function(){return u},isResSent:function(){return f},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return R}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function o(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&a.test(e)};function l(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=l();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function h(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let g="u">typeof performance,m=g&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class b extends Error{}class y extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class S extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class E extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function R(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return i}});let n=e.r(18967),s=e.r(52817);function i(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return u},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return a}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});function i(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function o(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function a(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,o(e));else t.set(r,o(n));return t}function u(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},95057,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return a},formatWithValidation:function(){return l},urlObjectKeys:function(){return u}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=e.r(90809)._(e.r(98183)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",a=e.hash||"",u=e.query||"",l=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?l=t+e.host:r&&(l=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(l+=":"+e.port)),u&&"object"==typeof u&&(u=String(i.urlQueryToSearchParams(u)));let c=e.search||u&&`?${u}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==l?(l="//"+(l||""),s&&"/"!==s[0]&&(s="/"+s)):l||(l=""),a&&"#"!==a[0]&&(a="#"+a),c&&"?"!==c[0]&&(c="?"+c),s=s.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${l}${s}${c}${a}`}let u=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return a(e)}},24010,e=>{"use strict";var t=e.i(43476);e.s([],58762),e.i(58762);var r=e.i(66250),n=e.i(2820),s=e.i(56736),i=e.i(9793),o=e.i(84324),a=e.i(64951),u=e.i(77173);let l=e.i(13488).DialogTrigger;var c=e.i(74217),d=e.i(25326);class f extends d.DialogHandle{}e.s(["Backdrop",()=>n.DialogBackdrop,"Close",()=>s.DialogClose,"Description",()=>i.DialogDescription,"Handle",0,f,"Popup",()=>o.DialogPopup,"Portal",()=>a.DialogPortal,"Root",0,function(e){return(0,r.useRenderDialogRoot)("alert-dialog",e)},"Title",()=>u.DialogTitle,"Trigger",0,l,"Viewport",()=>c.DialogViewport,"createHandle",0,function(){return new f}],34604);var h=e.i(34604),h=h,p=e.i(90063),g=e.i(94945);e.s(["AlertDialog",0,function(e){return(0,t.jsx)(h.Root,{"data-slot":"alert-dialog",...e})},"AlertDialogClose",0,function(e){return(0,t.jsx)(h.Close,{"data-slot":"alert-dialog-close",...e})},"AlertDialogContent",0,function({className:e,size:r,children:n,...s}){return(0,t.jsxs)(h.Portal,{children:[(0,t.jsx)(h.Backdrop,{"data-slot":"alert-dialog-overlay",className:g.dialogSurface.overlay}),(0,t.jsx)(h.Popup,{"data-slot":"alert-dialog-content",className:(0,p.classNames)(g.dialogSurface.popup({size:r}),e),...s,children:n})]})},"AlertDialogDescription",0,function({className:e,...r}){return(0,t.jsx)(h.Description,{"data-slot":"alert-dialog-description",className:(0,p.classNames)(g.dialogSurface.description,e),...r})},"AlertDialogFooter",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,p.classNames)(g.dialogSurface.footer,e),...r})},"AlertDialogHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,p.classNames)(g.dialogSurface.header,e),...r})},"AlertDialogTitle",0,function({className:e,...r}){return(0,t.jsx)(h.Title,{"data-slot":"alert-dialog-title",className:(0,p.classNames)(g.dialogSurface.title,e),...r})}],24010)},94859,26478,e=>{"use strict";var t=e.i(43476),r=e.i(52376),n=e.i(25913),s=e.i(49287),i=e.i(56420);let o={name:"user-round",size:24,node:[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],aliases:["user-2"]};o.node;let a=(0,i.default)(o);e.s(["UserRound",0,a],26478);var u=e.i(90063);let l=(0,n.cva)("inline-flex shrink-0 items-center justify-center overflow-hidden font-semibold uppercase select-none",{variants:{kind:{app:"rounded-sm bg-primary text-primary-foreground",account:"rounded-full bg-secondary font-sans text-foreground",ship:"rounded-sm bg-secondary font-mono text-foreground",argo:"rounded-sm bg-highlight text-primary",retired:"rounded-sm border border-dashed border-input font-mono font-medium text-muted-foreground"},size:{20:"size-5 text-micro [&_svg]:size-3",28:"size-7 text-micro [&_svg]:size-(--size-icon-sm)",36:"size-9 text-caption [&_svg]:size-(--size-icon)"}},defaultVariants:{kind:"ship",size:28}});e.s(["Avatar",0,function({kind:e="ship",size:n,name:i="",className:o}){let c=e??"ship";return(0,t.jsx)(r.Avatar.Root,{"aria-hidden":!0,"data-slot":"avatar",className:(0,u.classNames)(l({kind:e,size:n}),o),children:(0,t.jsx)(r.Avatar.Fallback,{children:"app"===c?(0,t.jsx)(s.Ship,{"aria-hidden":!0}):"argo"===c?(0,t.jsx)(a,{"aria-hidden":!0}):i.replaceAll("-","").slice(0,2)})})}],94859)},66616,e=>{"use strict";let t={"claude-code":{word:"Claude Code",kind:"coding"},codex:{word:"Codex",kind:"coding"},"claude-chat":{word:"Claude chat",kind:"chat"},chatgpt:{word:"ChatGPT",kind:"chat"},grok:{word:"Grok",kind:"chat"},grokbot:{word:"Grokbot",kind:"bot"},console:{word:"Console",kind:"console"}};function r(e){return t[e]?.word??e}e.s(["crewLineHarnessWord",0,function(e){return"chat"===e?"Chat":r(e)},"harnessKind",0,function(e){return t[e]?.kind},"harnessWord",0,r])},53573,e=>{"use strict";e.i(31627);var t=e.i(83615),r=e.i(19273),n=e.i(12598),s=e.i(81384),i=e.i(73664),o=e.i(27001),a=e.i(54440),u=e.i(71645),l=e.i(15823),c=e.i(40143),d=e.i(69230);function f(e,t){let r=new Set(t);return e.filter(e=>!r.has(e))}var h=class extends l.Subscribable{#e;#t;#r;#n;#s;#i;#o;#a;#u;#l=[];constructor(e,t,r){super(),this.#e=e,this.#n=r,this.#r=[],this.#s=[],this.#t=[],this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.#s.forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(e=>{e.destroy()})}setQueries(e,t){this.#r=e,this.#n=t,c.notifyManager.batch(()=>{let e=this.#s,t=this.#d(this.#r);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),s=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,o=n.some((t,r)=>t!==e[r]),a=i||o,u=!!a||s.some((e,t)=>{let n=this.#t[t];return!n||!(0,r.shallowEqualObjects)(e,n)});(a||u)&&(a&&(this.#l=t,this.#s=n),this.#t=s,this.hasListeners()&&(a&&(f(e,n).forEach(e=>{e.destroy()}),f(n,e).forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})),this.#f()))})}getCurrentResult(){return this.#t}getQueries(){return this.#s.map(e=>e.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(e,t){let r=this.#d(e),n=r.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),s=r.map(e=>e.defaultedQueryOptions.queryHash);return[n,e=>this.#h(e??n,t,s),()=>this.#p(n,r)]}#p(e,t){let r=new Set;return t.map((n,s)=>{let i=e[s];return n.defaultedQueryOptions.notifyOnChangeProps?i:n.observer.trackResult(i,e=>{r.has(e)||(r.add(e),t.forEach(t=>{t.observer.trackProp(e)}))})})}#h(e,t,n){if(t){let s=this.#u,i=void 0!==n&&void 0!==s&&(s.length!==n.length||n.some((e,t)=>e!==s[t]));return(this.#t!==this.#a||i||t!==this.#o)&&(this.#o=t,this.#a=this.#t,void 0!==n&&(this.#u=n),this.#i=(0,r.replaceEqualDeep)(this.#i,t(e))),this.#i}return e}#g(){return!this.#n?.combine||this.#s.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#d(e){let t=new Map;this.#s.forEach(e=>{let r=e.options.queryHash;if(!r)return;let n=t.get(r);n?n.push(e):t.set(r,[e])});let r=[];return e.forEach(e=>{let n=this.#e.defaultQueryOptions(e),s=t.get(n.queryHash)?.shift()??new d.QueryObserver(this.#e,n);r.push({defaultedQueryOptions:n,observer:s})}),r}#c(e,t){let r=this.#s.indexOf(e);-1!==r&&(this.#t=this.#t.slice(),this.#t[r]=t,this.#f())}#f(){if(this.hasListeners()){let e=this.#g(),t=this.#i,r=e?t:this.#h(this.#p(this.#t,this.#l),this.#n?.combine);(e||t!==r)&&c.notifyManager.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},p=e.i(66027),g=e.i(5387),m=e.i(27702);e.s(["useMessage",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.message.queryOptions(void 0===e?r.skipToken:{messageId:e}))},"useShip",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.ship.queryOptions(void 0===e?r.skipToken:{shipId:e},{refetchInterval:g.LAST_SEEN_REFRESH_MS}))},"useShipMessages",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.shipMessages.queryOptions({shipId:e}))},"useShipTimeline",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.shipTimeline.queryOptions({shipId:e}))},"useShips",0,function(e){let l=(0,m.useTRPC)(),f=function({queries:e,...t}){let l=(0,n.useQueryClient)(void 0),f=(0,s.useIsRestoring)(),p=(0,i.useQueryErrorResetBoundary)(),g=!1!==t.subscribed,m=u.useMemo(()=>e.map(e=>{let t=l.defaultQueryOptions(e);return t._optimisticResults=f?"isRestoring":g?"optimistic":void 0,t}),[e,l,f,g]);m.forEach(e=>{(0,a.ensureSuspenseTimers)(e);let t=l.getQueryCache().get(e.queryHash);(0,o.ensurePreventErrorBoundaryRetry)(e,p,t)}),(0,o.useClearResetErrorBoundary)(p);let[b]=u.useState(()=>new h(l,m,t)),[y,v,S]=b.getOptimisticResult(m,t.combine),E=!f&&g;u.useSyncExternalStore(u.useCallback(e=>E?b.subscribe(c.notifyManager.batchCalls(e)):r.noop,[b,E]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),u.useEffect(()=>{b.setQueries(m,t)},[m,t,b]);let R=y.some((e,t)=>(0,a.shouldSuspend)(m[t],e))?y.flatMap((e,t)=>{let r=m[t];if(r&&(0,a.shouldSuspend)(r,e)){let e=new d.QueryObserver(l,r);return(0,a.fetchOptimistic)(r,e,p)}return[]}):[];if(R.length>0)throw Promise.all(R);let C=y.find((e,t)=>{let r=m[t];return r&&(0,o.getHasError)({result:e,errorResetBoundary:p,throwOnError:r.throwOnError,query:l.getQueryCache().get(r.queryHash),suspense:r.suspense})});if(C)throw C.error;return v(S())}({queries:e.flatMap(e=>{let r=(0,t.idSchema)("ship").safeParse(e);return r.success?[r.data]:[]}).map(e=>l.fleet.ship.queryOptions({shipId:e},{refetchInterval:g.LAST_SEEN_REFRESH_MS}))}),p=new Map;for(let e of f)e.data&&p.set(e.data.id,e.data);return p}],53573)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,52376,e=>{"use strict";e.s([],4824),e.i(4824);var t=e.i(71645),r=e.i(52245),n=e.i(33332);let s=t.createContext(void 0);function i(){let e=t.useContext(s);if(void 0===e)throw Error((0,n.default)(13));return e}let o={imageLoadingStatus:()=>null};var a=e.i(43476);let u=t.forwardRef(function(e,n){let{className:i,render:u,style:l,...c}=e,[d,f]=t.useState("idle"),h=t.useMemo(()=>({imageLoadingStatus:d,setImageLoadingStatus:f}),[d,f]),p=(0,r.useRenderElement)("span",e,{state:{imageLoadingStatus:d},ref:n,props:c,stateAttributesMapping:o});return(0,a.jsx)(s.Provider,{value:h,children:p})});var l=e.i(67865),c=e.i(46376),d=e.i(37584),f=e.i(74354),h=e.i(23910),p=e.i(56789);let g={...o,...f.transitionStatusMapping},m=t.forwardRef(function(e,n){let{className:s,render:o,onLoadingStatusChange:a,keepMounted:u=!1,style:f,sizes:m,srcSet:b,src:y,...v}=e,{setImageLoadingStatus:S}=i(),[E,C]=function(e,{referrerPolicy:r,crossOrigin:n,sizes:s,srcSet:i},o){let a=t.useState("idle"),u=a[1];return(0,c.useIsoLayoutEffect)(()=>{if(!o)return p.NOOP;if(!e&&!i)return u("error"),p.NOOP;let t=!0,a=new window.Image,l=e=>()=>{t&&u(e)};return u("loading"),a.onload=l("loaded"),a.onerror=l("error"),r&&(a.referrerPolicy=r),a.crossOrigin=n??null,s&&(a.sizes=s),i&&(a.srcset=i),e&&(a.src=e),a.complete&&u(a.naturalWidth>0?"loaded":"error"),()=>{t=!1}},[o,e,i,s,n,r,u]),a}(y,e,!u),R="loaded"===E,{mounted:k,transitionStatus:O,setMounted:P}=(0,h.useTransitionStatus)(R),A=t.useRef(null),w=t.useRef(!0);(0,c.useIsoLayoutEffect)(()=>{if(!u)return;let e=w.current;w.current=!1;let t=A.current;if(!t)return;if(!t.complete)return void C("loading");let r=t.naturalWidth>0?"loaded":"error";C(r),"loaded"===r&&e&&P(!0)},[u,y,b,m,v.crossOrigin,v.referrerPolicy,o,C,P]);let T=u?{"data-loading":"loading"===E?"":void 0,"data-error":"error"===E?"":void 0,"aria-hidden":"loaded"!==E||void 0,onLoad(){C("loaded")},onError(){C("error")}}:void 0,x=(0,l.useStableCallback)(e=>{a?.(e),S(e)});(0,c.useIsoLayoutEffect)(()=>{"idle"!==E&&x(E)},[E,x]),(0,c.useIsoLayoutEffect)(()=>()=>S("idle"),[S]),(0,d.useOpenChangeComplete)({enabled:!R,open:R,ref:A,onComplete(){R||P(!1)}});let I=u||k,M={};void 0!==m&&(M.sizes=m),void 0!==b&&(M.srcSet=b),void 0!==y&&(M.src=y);let _=(0,r.useRenderElement)("img",e,{state:{imageLoadingStatus:E,transitionStatus:u&&"ending"===O?void 0:O},ref:[n,A],props:[T,v,M],stateAttributesMapping:g,enabled:I});return I?_:null});var b=e.i(39957);let y=t.forwardRef(function(e,n){let{className:s,render:a,delay:u=0,style:l,...c}=e,{imageLoadingStatus:d}=i(),[f,h]=t.useState(0===u),p=(0,b.useTimeout)();return t.useEffect(()=>(u>0?p.start(u,()=>h(!0)):h(!0),p.clear),[p,u]),(0,r.useRenderElement)("span",e,{state:{imageLoadingStatus:d},ref:n,props:c,stateAttributesMapping:o,enabled:"loaded"!==d&&(0===u||f)})});e.s(["Fallback",0,y,"Image",0,m,"Root",0,u],14751);var v=e.i(14751);e.s(["Avatar",0,v],52376)},80862,e=>{"use strict";e.s(["endingStyle",0,"data-ending-style","startingStyle",0,"data-starting-style"])},74354,e=>{"use strict";var t=e.i(80862);let r={[t.startingStyle]:""},n={[t.endingStyle]:""};e.s(["transitionStatusMapping",0,{transitionStatus:e=>"starting"===e?r:"ending"===e?n:null}])},37584,22640,e=>{"use strict";var t=e.i(71645),r=e.i(67865),n=e.i(74080),s=e.i(8445),i=e.i(94603),o=e.i(80862);let a=null;function u(e,t=!1,l=!1){let c=(0,s.useAnimationFrame)();return(0,r.useStableCallback)((r,s=null)=>{c.cancel();let u=(0,i.resolveRef)(e);if(null==u)return;let d=()=>{if(!l)return void n.flushSync(r);if(!a){let e=[];a=e,queueMicrotask(()=>{a=null,n.flushSync(()=>{for(let t of e)t()})})}a.push(()=>{s?.aborted||r()})};if("function"!=typeof u.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void r();function f(){Promise.all(u.getAnimations().map(e=>e.finished)).then(()=>{s?.aborted||d()},()=>{s?.aborted||(u.getAnimations().some(e=>e.pending||"finished"!==e.playState)?f():d())})}if(t){let e=o.startingStyle;if(!u.hasAttribute(e))return void c.request(f);let t=new MutationObserver(()=>{u.hasAttribute(e)||(t.disconnect(),f())});return t.observe(u,{attributes:!0,attributeFilter:[e]}),void s?.addEventListener("abort",()=>t.disconnect(),{once:!0})}c.request(f)})}e.s(["useAnimationsFinished",0,u],22640),e.s(["useOpenChangeComplete",0,function(e){let{enabled:n=!0,open:s,ref:i,batch:o=!1,onComplete:a}=e,l=(0,r.useStableCallback)(a),c=u(i,s,o);t.useEffect(()=>{if(!n)return;let e=new AbortController;return c(l,e.signal),()=>{e.abort()}},[n,s,l,c])}],37584)},23910,e=>{"use strict";var t=e.i(71645),r=e.i(46376),n=e.i(8445);e.s(["useTransitionStatus",0,function(e,s=!1,i=!1,o=!1){let[a,u]=t.useState(e&&s?"idle":void 0),[l,c]=t.useState(e&&!o);return e&&!l&&(c(!0),u("starting")),e||!l||"ending"===a||i||u("ending"),e||l||"ending"!==a||u(void 0),(0,r.useIsoLayoutEffect)(()=>{if(!e&&l&&"ending"!==a&&i){let e=n.AnimationFrame.request(()=>{u("ending")});return()=>{n.AnimationFrame.cancel(e)}}},[e,l,a,i]),(0,r.useIsoLayoutEffect)(()=>{if(!e||s)return;let t=n.AnimationFrame.request(()=>{u(void 0)});return()=>{n.AnimationFrame.cancel(t)}},[s,e]),(0,r.useIsoLayoutEffect)(()=>{if(!e||!s)return;e&&l&&"idle"!==a&&u("starting");let t=n.AnimationFrame.request(()=>{u("idle")});return()=>{n.AnimationFrame.cancel(t)}},[s,e,l,a]),{mounted:l,setMounted:c,transitionStatus:a}}])},94603,e=>{"use strict";e.s(["resolveRef",0,function(e){return null==e?e:"current"in e?e.current:e}])},8445,e=>{"use strict";e.i(47167);var t=e.i(88940),r=e.i(26300);let n=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let r=0;r<t.length;r+=1)t[r]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||null!==this.callbacks[t]&&(this.callbacks[t]=null,this.callbacksCount-=1)}};class s{static create(){return new s}static request(e){return n.request(e)}static cancel(e){return n.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=n.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(n.cancel(this.currentId),this.currentId=null)};disposeEffect=()=>this.cancel}e.s(["AnimationFrame",0,s,"useAnimationFrame",0,function(){let e=(0,t.useRefWithInit)(s.create).current;return(0,r.useOnMount)(e.disposeEffect),e}])},26300,e=>{"use strict";var t=e.i(71645),r=e.i(56789);e.s(["useOnMount",0,function(e){t.useEffect(e,r.EMPTY_ARRAY)}])},39957,e=>{"use strict";var t=e.i(88940),r=e.i(26300);class n{static create(){return new n}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}e.s(["Timeout",0,n,"useTimeout",0,function(){let e=(0,t.useRefWithInit)(n.create).current;return(0,r.useOnMount)(e.disposeEffect),e}])},49287,e=>{"use strict";var t=e.i(56420);let r={name:"ship",size:24,node:[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 9.189V13",key:"yp40p3"}],["path",{d:"M19 12V6a2 2 0 00-2-2H7a2 2 0 00-2 2v6",key:"1wcigf"}],["path",{d:"M19.38 19A11.6 11.6 0 0021 13l-8.188-3.639a2 2 0 00-1.624 0L3 13.001a11.6 11.6 0 002.81 7.76",key:"1kdp0u"}],["path",{d:"M2 20c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"1l8w7g"}]]};r.node;let n=(0,t.default)(r);e.s(["Ship",0,n],49287)},22016,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return b},useLinkStatus:function(){return v}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=e.r(90809),o=e.r(43476),a=i._(e.r(71645)),u=e.r(95057),l=e.r(8372),c=e.r(18581),d=e.r(18967),f=e.r(5550),h=e.r(88540),p=e.r(91949),g=e.r(73668),m=e.r(9396);function b(t){var r;let n,s,i,[b,v]=(0,a.useOptimistic)(p.IDLE_LINK_STATUS),S=(0,a.useRef)(null),{href:E,as:C,children:R,prefetch:k=null,passHref:O,replace:P,shallow:A,scroll:w,onClick:T,onMouseEnter:x,onTouchStart:I,legacyBehavior:M=!1,onNavigate:_,transitionTypes:j,ref:N,unstable_dynamicOnHover:L,...D}=t;n=R,M&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let q=a.default.useContext(l.AppRouterContext),F=!1!==k,Q=!1===k?"none":!0===k?"full":"auto",U="none"!==Q?"auto"===Q?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,z="string"==typeof(r=C||E)?r:(0,u.formatUrl)(r);if(M){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=a.default.Children.only(n)}let $=M?s&&"object"==typeof s&&s.ref:N,B,H=a.default.useCallback(e=>(null!==q&&(S.current=(0,p.mountLinkInstance)(e,z,q,U,F,v,B)),()=>{S.current&&((0,p.unmountLinkForCurrentNavigation)(S.current),S.current=null),(0,p.unmountPrefetchableInstance)(e)}),[F,z,q,U,v,B]),K={ref:(0,c.useMergedRef)(H,$),onClick(t){M||"function"!=typeof T||T(t),M&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!q||t.defaultPrevented||function(t,r,n,s,i,o,u,l="none"){if("u">typeof window){let c,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,g.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:f}=e.r(99781);a.default.startTransition(()=>{f(r,s?"replace":"push",!1===i?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,u,l)})}}(t,z,S,P,w,_,j,Q)},onMouseEnter(e){M||"function"!=typeof x||x(e),M&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),q&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===L)},onTouchStart:function(e){M||"function"!=typeof I||I(e),M&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),q&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===L)}};return(0,d.isAbsoluteUrl)(z)?K.href=z:M&&!O&&("a"!==s.type||"href"in s.props)||(K.href=(0,f.addBasePath)(z)),i=M?a.default.cloneElement(s,K):(0,o.jsx)("a",{...D,...K,children:n}),(0,o.jsx)(y.Provider,{value:b,children:i})}let y=(0,a.createContext)(p.IDLE_LINK_STATUS),v=()=>(0,a.useContext)(y);("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)},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(71645);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=i(e,n)),t&&(s.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)},18967,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return b},MiddlewareNotFoundError:function(){return E},MissingStaticPage:function(){return S},NormalizeError:function(){return y},PageNotFoundError:function(){return v},SP:function(){return g},ST:function(){return m},WEB_VITALS:function(){return i},execOnce:function(){return o},getDisplayName:function(){return d},getLocationOrigin:function(){return l},getURL:function(){return c},isAbsoluteUrl:function(){return u},isResSent:function(){return f},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return C}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function o(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&a.test(e)};function l(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=l();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function h(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let g="u">typeof performance,m=g&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class b extends Error{}class y extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class S extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class E extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function C(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return i}});let n=e.r(18967),s=e.r(52817);function i(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return u},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return a}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});function i(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function o(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function a(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,o(e));else t.set(r,o(n));return t}function u(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},95057,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return a},formatWithValidation:function(){return l},urlObjectKeys:function(){return u}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=e.r(90809)._(e.r(98183)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",a=e.hash||"",u=e.query||"",l=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?l=t+e.host:r&&(l=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(l+=":"+e.port)),u&&"object"==typeof u&&(u=String(i.urlQueryToSearchParams(u)));let c=e.search||u&&`?${u}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==l?(l="//"+(l||""),s&&"/"!==s[0]&&(s="/"+s)):l||(l=""),a&&"#"!==a[0]&&(a="#"+a),c&&"?"!==c[0]&&(c="?"+c),s=s.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${l}${s}${c}${a}`}let u=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return a(e)}},24010,e=>{"use strict";var t=e.i(43476);e.s([],58762),e.i(58762);var r=e.i(66250),n=e.i(2820),s=e.i(56736),i=e.i(9793),o=e.i(84324),a=e.i(64951),u=e.i(77173);let l=e.i(13488).DialogTrigger;var c=e.i(74217),d=e.i(25326);class f extends d.DialogHandle{}e.s(["Backdrop",()=>n.DialogBackdrop,"Close",()=>s.DialogClose,"Description",()=>i.DialogDescription,"Handle",0,f,"Popup",()=>o.DialogPopup,"Portal",()=>a.DialogPortal,"Root",0,function(e){return(0,r.useRenderDialogRoot)("alert-dialog",e)},"Title",()=>u.DialogTitle,"Trigger",0,l,"Viewport",()=>c.DialogViewport,"createHandle",0,function(){return new f}],34604);var h=e.i(34604),h=h,p=e.i(90063),g=e.i(94945);e.s(["AlertDialog",0,function(e){return(0,t.jsx)(h.Root,{"data-slot":"alert-dialog",...e})},"AlertDialogClose",0,function(e){return(0,t.jsx)(h.Close,{"data-slot":"alert-dialog-close",...e})},"AlertDialogContent",0,function({className:e,size:r,children:n,...s}){return(0,t.jsxs)(h.Portal,{children:[(0,t.jsx)(h.Backdrop,{"data-slot":"alert-dialog-overlay",className:g.dialogSurface.overlay}),(0,t.jsx)(h.Popup,{"data-slot":"alert-dialog-content",className:(0,p.classNames)(g.dialogSurface.popup({size:r}),e),...s,children:n})]})},"AlertDialogDescription",0,function({className:e,...r}){return(0,t.jsx)(h.Description,{"data-slot":"alert-dialog-description",className:(0,p.classNames)(g.dialogSurface.description,e),...r})},"AlertDialogFooter",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,p.classNames)(g.dialogSurface.footer,e),...r})},"AlertDialogHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,p.classNames)(g.dialogSurface.header,e),...r})},"AlertDialogTitle",0,function({className:e,...r}){return(0,t.jsx)(h.Title,{"data-slot":"alert-dialog-title",className:(0,p.classNames)(g.dialogSurface.title,e),...r})}],24010)},94859,26478,e=>{"use strict";var t=e.i(43476),r=e.i(52376),n=e.i(25913),s=e.i(49287),i=e.i(56420);let o={name:"user-round",size:24,node:[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],aliases:["user-2"]};o.node;let a=(0,i.default)(o);e.s(["UserRound",0,a],26478);var u=e.i(90063);let l=(0,n.cva)("inline-flex shrink-0 items-center justify-center overflow-hidden font-semibold uppercase select-none",{variants:{kind:{app:"rounded-sm bg-primary text-primary-foreground",account:"rounded-full bg-secondary font-sans text-foreground",ship:"rounded-sm bg-secondary font-mono text-foreground",argo:"rounded-sm bg-highlight text-primary",retired:"rounded-sm border border-dashed border-input font-mono font-medium text-muted-foreground"},size:{20:"size-5 text-micro [&_svg]:size-3",28:"size-7 text-micro [&_svg]:size-(--size-icon-sm)",36:"size-9 text-caption [&_svg]:size-(--size-icon)"}},defaultVariants:{kind:"ship",size:28}});e.s(["Avatar",0,function({kind:e="ship",size:n,name:i="",className:o}){let c=e??"ship";return(0,t.jsx)(r.Avatar.Root,{"aria-hidden":!0,"data-slot":"avatar",className:(0,u.classNames)(l({kind:e,size:n}),o),children:(0,t.jsx)(r.Avatar.Fallback,{children:"app"===c?(0,t.jsx)(s.Ship,{"aria-hidden":!0}):"argo"===c?(0,t.jsx)(a,{"aria-hidden":!0}):i.replaceAll("-","").slice(0,2)})})}],94859)},66616,e=>{"use strict";var t=e.i(49635);let r={"claude-code":{word:"Claude Code",kind:"coding"},codex:{word:"Codex",kind:"coding"},"claude-chat":{word:"Claude chat",kind:"chat"},chatgpt:{word:"ChatGPT",kind:"chat"},grok:{word:"Grok",kind:"chat"},grokbot:{word:"Grokbot",kind:"bot"},console:{word:"Console",kind:"console"}};function n(e){return r[e]?.word??e}e.s(["crewLineHarnessWord",0,function(e){return"chat"===e?"Chat":n(e)},"harnessDetection",0,function(e,r){if(void 0===e.version)return;if(void 0===e.modelsConfirmedAt||null===e.modelsConfirmedAt)return`${e.version} \xb7 no model confirmed`;let n=(0,t.relativeTime)(new Date(e.modelsConfirmedAt),r);return`${e.version} \xb7 models confirmed ${"Just now"===n?"just now":n}`},"harnessKind",0,function(e){return r[e]?.kind},"harnessWord",0,n])},53573,e=>{"use strict";e.i(31627);var t=e.i(83615),r=e.i(19273),n=e.i(12598),s=e.i(81384),i=e.i(73664),o=e.i(27001),a=e.i(54440),u=e.i(71645),l=e.i(15823),c=e.i(40143),d=e.i(69230);function f(e,t){let r=new Set(t);return e.filter(e=>!r.has(e))}var h=class extends l.Subscribable{#e;#t;#r;#n;#s;#i;#o;#a;#u;#l=[];constructor(e,t,r){super(),this.#e=e,this.#n=r,this.#r=[],this.#s=[],this.#t=[],this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.#s.forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(e=>{e.destroy()})}setQueries(e,t){this.#r=e,this.#n=t,c.notifyManager.batch(()=>{let e=this.#s,t=this.#d(this.#r);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),s=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,o=n.some((t,r)=>t!==e[r]),a=i||o,u=!!a||s.some((e,t)=>{let n=this.#t[t];return!n||!(0,r.shallowEqualObjects)(e,n)});(a||u)&&(a&&(this.#l=t,this.#s=n),this.#t=s,this.hasListeners()&&(a&&(f(e,n).forEach(e=>{e.destroy()}),f(n,e).forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})),this.#f()))})}getCurrentResult(){return this.#t}getQueries(){return this.#s.map(e=>e.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(e,t){let r=this.#d(e),n=r.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),s=r.map(e=>e.defaultedQueryOptions.queryHash);return[n,e=>this.#h(e??n,t,s),()=>this.#p(n,r)]}#p(e,t){let r=new Set;return t.map((n,s)=>{let i=e[s];return n.defaultedQueryOptions.notifyOnChangeProps?i:n.observer.trackResult(i,e=>{r.has(e)||(r.add(e),t.forEach(t=>{t.observer.trackProp(e)}))})})}#h(e,t,n){if(t){let s=this.#u,i=void 0!==n&&void 0!==s&&(s.length!==n.length||n.some((e,t)=>e!==s[t]));return(this.#t!==this.#a||i||t!==this.#o)&&(this.#o=t,this.#a=this.#t,void 0!==n&&(this.#u=n),this.#i=(0,r.replaceEqualDeep)(this.#i,t(e))),this.#i}return e}#g(){return!this.#n?.combine||this.#s.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#d(e){let t=new Map;this.#s.forEach(e=>{let r=e.options.queryHash;if(!r)return;let n=t.get(r);n?n.push(e):t.set(r,[e])});let r=[];return e.forEach(e=>{let n=this.#e.defaultQueryOptions(e),s=t.get(n.queryHash)?.shift()??new d.QueryObserver(this.#e,n);r.push({defaultedQueryOptions:n,observer:s})}),r}#c(e,t){let r=this.#s.indexOf(e);-1!==r&&(this.#t=this.#t.slice(),this.#t[r]=t,this.#f())}#f(){if(this.hasListeners()){let e=this.#g(),t=this.#i,r=e?t:this.#h(this.#p(this.#t,this.#l),this.#n?.combine);(e||t!==r)&&c.notifyManager.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},p=e.i(66027),g=e.i(5387),m=e.i(27702);e.s(["useMessage",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.message.queryOptions(void 0===e?r.skipToken:{messageId:e}))},"useShip",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.ship.queryOptions(void 0===e?r.skipToken:{shipId:e},{refetchInterval:g.LAST_SEEN_REFRESH_MS}))},"useShipMessages",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.shipMessages.queryOptions({shipId:e}))},"useShipTimeline",0,function(e){let t=(0,m.useTRPC)();return(0,p.useQuery)(t.fleet.shipTimeline.queryOptions({shipId:e}))},"useShips",0,function(e){let l=(0,m.useTRPC)(),f=function({queries:e,...t}){let l=(0,n.useQueryClient)(void 0),f=(0,s.useIsRestoring)(),p=(0,i.useQueryErrorResetBoundary)(),g=!1!==t.subscribed,m=u.useMemo(()=>e.map(e=>{let t=l.defaultQueryOptions(e);return t._optimisticResults=f?"isRestoring":g?"optimistic":void 0,t}),[e,l,f,g]);m.forEach(e=>{(0,a.ensureSuspenseTimers)(e);let t=l.getQueryCache().get(e.queryHash);(0,o.ensurePreventErrorBoundaryRetry)(e,p,t)}),(0,o.useClearResetErrorBoundary)(p);let[b]=u.useState(()=>new h(l,m,t)),[y,v,S]=b.getOptimisticResult(m,t.combine),E=!f&&g;u.useSyncExternalStore(u.useCallback(e=>E?b.subscribe(c.notifyManager.batchCalls(e)):r.noop,[b,E]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),u.useEffect(()=>{b.setQueries(m,t)},[m,t,b]);let C=y.some((e,t)=>(0,a.shouldSuspend)(m[t],e))?y.flatMap((e,t)=>{let r=m[t];if(r&&(0,a.shouldSuspend)(r,e)){let e=new d.QueryObserver(l,r);return(0,a.fetchOptimistic)(r,e,p)}return[]}):[];if(C.length>0)throw Promise.all(C);let R=y.find((e,t)=>{let r=m[t];return r&&(0,o.getHasError)({result:e,errorResetBoundary:p,throwOnError:r.throwOnError,query:l.getQueryCache().get(r.queryHash),suspense:r.suspense})});if(R)throw R.error;return v(S())}({queries:e.flatMap(e=>{let r=(0,t.idSchema)("ship").safeParse(e);return r.success?[r.data]:[]}).map(e=>l.fleet.ship.queryOptions({shipId:e},{refetchInterval:g.LAST_SEEN_REFRESH_MS}))}),p=new Map;for(let e of f)e.data&&p.set(e.data.id,e.data);return p}],53573)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,69644,69846,e=>{"use strict";var t=e.i(56420);let i={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]};i.node;let s=(0,t.default)(i);e.s(["FolderOpen",0,s],69644);let n={name:"git-branch",size:24,node:[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]};n.node;let a=(0,t.default)(n);e.s(["GitBranch",0,a],69846)},83035,e=>{"use strict";var t=e.i(56420);let i={name:"square-terminal",size:24,node:[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],aliases:["terminal-square"]};i.node;let s=(0,t.default)(i);e.s(["SquareTerminal",0,s],83035)},27290,e=>{"use strict";var t=e.i(43476),i=e.i(77071),s=e.i(71645),n=e.i(66390),a=e.i(15905),r=e.i(44824),o=e.i(45608),l=e.i(95475),d=e.i(2767);e.i(31627);var c=e.i(44827),h=e.i(22768),m=e.i(85595),u=e.i(16984),x=e.i(10818),p=e.i(90063),g=e.i(65160),f=e.i(91703),j=e.i(22212),v=e.i(94945),b=e.i(12470),y=e.i(91727),w=e.i(56478),C=e.i(17981);function N({activeNames:e,isPending:i,error:n,onSubmit:r}){let o=(0,s.useId)(),l=(0,s.useId)(),[d,h]=(0,s.useState)(""),x=(0,g.checkShipName)(d,{activeNames:e}),f="invalid"===x.kind||"reserved"===x.kind||"taken"===x.kind,v="available"===x.kind;return(0,t.jsxs)("form",{noValidate:!0,className:"contents",onSubmit:e=>{e.preventDefault(),v&&r(d)},children:[(0,t.jsxs)(j.DialogHeader,{children:[(0,t.jsx)(j.DialogTitle,{children:"Join a machine"}),(0,t.jsx)(j.DialogDescription,{children:"The trierarch plugin commissions a trierarch ship of this name. You then run its setup line on the machine, and the trierarch there starts sessions for the crew requests it is given."})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,t.jsx)(y.Label,{htmlFor:o,children:"Name"}),(0,t.jsxs)("span",{className:"text-caption text-muted-foreground tabular-nums",children:[d.length," / ",c.SHIP_HANDLE_MAX_LENGTH]})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(b.Input,{id:o,isMono:!0,autoComplete:"off",autoCapitalize:"off",spellCheck:!1,placeholder:"trierarch-mac","data-testid":"join-machine-name","aria-invalid":!!f||void 0,"aria-describedby":l,className:"pr-9 max-sm:h-(--size-control-touch) max-sm:text-input-touch",value:d,onChange:e=>{h((0,g.asHandle)(e.target.value))}}),"available"===x.kind?(0,t.jsx)(m.CircleCheck,{"aria-hidden":!0,className:"absolute top-1/2 right-3 size-(--size-icon) -translate-y-1/2 text-tone-ok-fg"}):f?(0,t.jsx)(u.CircleX,{"aria-hidden":!0,className:"absolute top-1/2 right-3 size-(--size-icon) -translate-y-1/2 text-destructive-text"}):null]}),(0,t.jsx)("p",{id:l,"aria-live":"polite",className:(0,p.classNames)("text-meta",f?"text-destructive-text":"text-muted-foreground"),children:x.message})]}),void 0===n?null:(0,t.jsx)(C.InlineError,{title:"Couldn’t join the machine",description:`${n} Nothing changed.`}),(0,t.jsxs)(j.DialogFooter,{children:[(0,t.jsx)(j.DialogClose,{render:(0,t.jsx)(a.Button,{type:"button",disabled:i}),children:"Cancel"}),(0,t.jsx)(a.Button,{type:"submit",variant:"primary",isLoading:i,disabled:!v,"data-testid":"join-machine-submit",children:i?"Joining":"Join machine"})]})]})}function k({joined:e}){let[i,n]=(0,s.useState)(!1),r=()=>{n(!1)},o=()=>{n(!0)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(j.DialogHeader,{children:[(0,t.jsxs)(j.DialogTitle,{children:[e.name," joined"]}),(0,t.jsxs)(j.DialogDescription,{children:["Run the setup line on the machine. It installs the trierarch, which then crews ",e.name," and reports what the machine offers."]})]}),(0,t.jsxs)("p",{className:"flex gap-2 rounded-lg border border-border bg-muted px-3 py-2 text-meta text-foreground",children:[(0,t.jsx)(x.Info,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0 text-muted-foreground"}),(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"font-medium",children:"Shown once. Copy it now."})," It carries the ship’s secret. If you lose it, get a new starting prompt on ",e.name,"’s ship page."]})]}),(0,t.jsx)(f.CodeBlock,{label:"Setup line",code:e.setupLine,isWrapped:!0,copyLabel:`Copy the setup line for ${e.name}`,codeTestId:"join-machine-setup-line",copyTestId:"join-machine-setup-line-copy",onCopied:r,onCopyFailed:o}),(0,t.jsx)(f.CodeBlock,{label:`Starting prompt for ${e.name}`,code:e.prompt,isWrapped:!0,copyLabel:`Copy the starting prompt for ${e.name}`,codeTestId:"join-machine-prompt",onCopied:r,onCopyFailed:o}),(0,t.jsx)(w.CrewLines,{crewLines:e.crewLines,subject:e.name,testIdPrefix:"join-machine-crew-line",onCopied:r,onCopyFailed:o}),(0,t.jsx)("p",{role:"status",className:"flex items-center gap-1.5 text-meta text-destructive-text empty:hidden",children:i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.CircleAlert,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),"Could not copy: select the text and copy it by hand."]}):null}),(0,t.jsx)(j.DialogFooter,{children:(0,t.jsx)(j.DialogClose,{render:(0,t.jsx)(a.Button,{variant:"primary"}),children:"Done"})})]})}function S(e){let{isOpen:i,onOpenChange:s,isPending:n,joined:a}=e;return(0,t.jsx)(j.Dialog,{open:i,onOpenChange:e=>{n||s(e)},children:(0,t.jsx)(j.DialogContent,{size:"md","data-testid":"join-machine-dialog",className:v.dialogSurface.phoneFullScreen,children:void 0===a?(0,t.jsx)(N,{...e}):(0,t.jsx)(k,{joined:a})})})}var T=e.i(42383),z=e.i(87792),L=e.i(90262),B=e.i(88721),I=e.i(5387),D=e.i(86413),$=e.i(18423),A=e.i(28459),O=e.i(96676),F=e.i(3979),M=e.i(78485),q=e.i(265);e.s(["default",0,function(){let e=(0,O.useNow)(),c=(0,B.useAccountMenu)(e),h=(0,D.useOpenInboxCount)(),m=(0,A.useNeedsAttention)(),u=(0,A.useAttentionCount)(),x=(0,$.useLiveFleet)(),p=(0,I.useFleetSnapshot)(),g=(0,q.useTrierarchPluginConnection)(),f=(0,q.useMachines)(),j=(0,q.useTrierarchPluginVersion)(),v=(0,q.useJoinMachine)(),b=(0,L.useAccess)(),y=(0,F.usePluginNav)(),[w,C]=(0,s.useState)(!1),[N,k]=(0,s.useState)(!1),[_,W]=(0,s.useState)(!1);(0,M.useSignInWhenSessionEnds)([m.error,x.error]);let H=b.canManage&&"connected"===g,P=()=>{v.reset(),C(!0)};return(0,t.jsxs)(z.ListLayout,{title:"Trierarchs",titleMeta:void 0===j?void 0:(0,t.jsxs)(n.Badge,{variant:"outline","data-testid":"trierarchs-plugin-version",children:["trierarch plugin ",j]}),description:"none"===g?"Not set up.":"Machines that run sessions for crew requests. The plugin picks a trierarch for each request.",live:x.live,nav:{active:"trierarchs",inboxCount:h,attentionCount:u,...y},primaryAction:H?(0,t.jsx)(a.Button,{variant:"primary",icon:(0,t.jsx)(i.Plus,{"aria-hidden":!0}),onClick:P,"data-testid":"trierarchs-join",children:"Join a machine"}):void 0,onCompose:b.canSend?()=>{k(!0)}:void 0,onSearch:()=>{W(!0)},account:c,banner:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.ConsoleNotices,{}),(0,t.jsx)(l.ConsoleGuide,{})]}),children:[(0,t.jsx)(T.MachineList,{connection:g,machines:f.data,ships:p.data??[],error:f.isError?f.error.message:void 0,onRetry:()=>{f.refetch()},onJoin:H?P:void 0,now:e}),H&&(0,t.jsx)(S,{activeNames:(p.data??[]).filter(e=>"retired"!==e.status).map(e=>e.name),isOpen:w,onOpenChange:e=>{C(e),e||v.reset()},isPending:v.isPending,error:v.error?.message,joined:v.data,onSubmit:e=>{v.mutate(e)}}),(0,t.jsx)(r.ComposeMessage,{isOpen:N,onOpenChange:k}),(0,t.jsx)(o.ConsoleCommands,{isOpen:_,onOpenChange:W,onCompose:()=>{k(!0)}})]})}],27290)},91703,e=>{"use strict";var t=e.i(43476),i=e.i(83035),s=e.i(90063),n=e.i(61966);e.s(["CodeBlock",0,function({label:e,code:a,isWrapped:r=!1,copyValue:o,copyLabel:l=`Copy ${e.toLowerCase()}`,onCopied:d,onCopyFailed:c,codeTestId:h,copyTestId:m}){return(0,t.jsxs)("div",{"data-slot":"code-block",className:"overflow-hidden rounded-lg border border-border bg-muted",children:[(0,t.jsxs)("div",{className:"flex h-9 items-center justify-between gap-2 border-b border-border pr-1.5 pl-3",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5 text-caption text-muted-foreground",children:[(0,t.jsx)(i.SquareTerminal,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e})]}),(0,t.jsx)(n.CopyButton,{value:o??a,label:l,isLabeled:!0,onCopied:d,onCopyFailed:c,"data-testid":m})]}),(0,t.jsx)("pre",{"data-testid":h,className:(0,s.classNames)("overflow-x-auto px-3 py-3 font-mono text-code text-foreground",r?"break-all whitespace-pre-wrap":"whitespace-pre"),children:a})]})}])},61966,8734,e=>{"use strict";var t=e.i(43476),i=e.i(89664),s=e.i(56420);let n={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};n.node;let a=(0,s.default)(n);e.s(["Copy",0,a],8734);var r=e.i(71645),o=e.i(15905);e.s(["CopyButton",0,function({value:e,label:s,size:n="xs",isLabeled:l=!1,onCopied:d,onCopyFailed:c,className:h,"data-testid":m}){let[u,x]=(0,r.useState)(!1);async function p(){try{await navigator.clipboard.writeText(e)}catch{c?.();return}x(!0),d?.(),setTimeout(()=>{x(!1)},1500)}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.Button,{variant:"ghost",size:n,isIconOnly:!l,"aria-label":s,title:l?void 0:s,icon:u?(0,t.jsx)(i.Check,{"aria-hidden":!0}):(0,t.jsx)(a,{"aria-hidden":!0}),className:h,"data-testid":m,onClick:()=>{p()},children:l?u?"Copied":"Copy":null}),(0,t.jsx)("span",{role:"status",className:"sr-only",children:u?"Copied.":""})]})}],61966)},54422,e=>{"use strict";var t=e.i(43476),i=e.i(90063),s=e.i(14695);let n={running:"bg-tone-ok-fg",crewing:"bg-tone-active-fg",releasing:"bg-tone-active-fg",restarting:"bg-tone-waiting-fg",crashed:"bg-tone-attention-fg"};e.s(["CapacityBar",0,function({spots:e,caps:a,unknownText:r="Unknown",testId:o}){let l=(0,s.capacityLine)(e,a);if(void 0===a||void 0===l)return(0,t.jsx)("span",{"data-testid":o,className:"text-meta text-muted-foreground",children:r});let d=Math.max(0,a.ships-e.length);return(0,t.jsxs)("span",{role:"img","aria-label":l,"data-testid":o,className:"inline-flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1",children:[(0,t.jsxs)("span",{"aria-hidden":!0,className:"inline-flex shrink-0 gap-0.5",children:[e.map((e,s)=>(0,t.jsx)("span",{title:`Spot ${String(s+1)}: ${e.name}, ${e.status}`,className:(0,i.classNames)("h-2 w-3 rounded-xs",n[e.status])},e.shipId)),Array.from({length:d},(i,s)=>(0,t.jsx)("span",{title:`Spot ${String(e.length+s+1)}: vacant`,className:"h-2 w-3 rounded-xs border border-input"},`free-${String(s)}`))]}),(0,t.jsx)("span",{className:"text-meta tabular-nums",children:l})]})}])},56478,e=>{"use strict";var t=e.i(43476),i=e.i(66616),s=e.i(91703);e.s(["CrewLines",0,function({crewLines:e,subject:n,testIdPrefix:a,onCopied:r,onCopyFailed:o}){return e.map(({harness:e,line:l})=>(0,t.jsx)(s.CodeBlock,{label:`Crew line, ${(0,i.harnessWord)(e)} with the aeolus plugin`,code:l,isWrapped:!0,copyLabel:`Copy the ${(0,i.harnessWord)(e)} crew line for ${n}`,codeTestId:`${a}-${e}`,copyTestId:`${a}-${e}-copy`,onCopied:r,onCopyFailed:o},e))}])},42383,94313,e=>{"use strict";var t=e.i(43476),i=e.i(77071),s=e.i(86875),n=e.i(94831),a=e.i(22016),r=e.i(14695),o=e.i(31513),l=e.i(15905),d=e.i(67874),c=e.i(17981),h=e.i(88393),m=e.i(71567),u=e.i(52886),x=e.i(69644),p=e.i(69846),g=e.i(66787),f=e.i(66616),j=e.i(49635),v=e.i(66390),b=e.i(54422),y=e.i(63481);let w={alive:"border-tone-ok-border bg-tone-ok-bg text-tone-ok-fg",silent:"border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg","not-started":"border-tone-waiting-border bg-tone-waiting-bg text-tone-waiting-fg"},C={alive:"Alive",silent:"Not answering","not-started":"Not started"};function N({machine:e,now:i}){let n=(0,r.machineLiveness)(e),a=null===e.lastSeenAt?null:new Date(e.lastSeenAt);return(0,t.jsxs)("span",{className:"inline-flex flex-wrap items-center gap-x-2 gap-y-1 text-meta","data-testid":"machine-liveness","data-liveness":n,children:[(0,t.jsxs)(v.Badge,{variant:"outline",className:w[n],children:["alive"===n?(0,t.jsx)(s.ShipWheel,{"aria-hidden":!0}):(0,t.jsx)(u.CircleDashed,{"aria-hidden":!0}),C[n]]}),null===a?(0,t.jsx)("span",{className:"text-muted-foreground",children:"· run its setup line on the machine"}):(0,t.jsxs)("time",{dateTime:e.lastSeenAt??void 0,title:(0,j.fullDateTime)(a),className:"text-muted-foreground tabular-nums",children:["· ","silent"===n?`since ${(0,j.clockTime)(a)}`:(0,j.lastSeen)(a,i).replace("Last seen","seen")]})]})}function k(e,t){let i=(0,j.relativeTime)(e,t);return"Just now"===i?"just now":i}function S({title:e,children:i,className:s}){return(0,t.jsxs)("div",{className:`flex min-w-0 flex-col gap-2 px-4.5 py-4 ${s??""}`,children:[(0,t.jsx)("span",{className:"text-caption font-medium text-muted-foreground",children:e}),i]})}function T({harness:e}){return(0,t.jsxs)("div",{className:"flex flex-col gap-1.5 border-t border-border py-2.5 first-of-type:border-t-0 first-of-type:pt-0",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-body font-medium [&_svg]:size-(--size-icon-sm) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(m.Bot,{"aria-hidden":!0}),(0,f.harnessWord)(e.harness)]}),(0,r.harnessOptions)(e.options).map(e=>(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1 text-meta",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:e.name}),e.values.map(i=>(0,t.jsxs)("span",{className:"font-mono text-id whitespace-nowrap",children:[i,i===e.defaultValue?(0,t.jsx)("span",{className:"font-sans text-muted-foreground",children:" (default)"}):null]},i))]},e.name)),0===e.flags.length?null:(0,t.jsx)("span",{className:"flex flex-wrap items-center gap-1.5",children:e.flags.map(i=>e.riskyFlags?.includes(i)===!0?(0,t.jsxs)("code",{"data-testid":"machine-risky-flag",title:"Risky: every launch runs without its harness's safeguards",className:"inline-flex items-center gap-1 rounded-sm border border-tone-waiting-border bg-tone-waiting-bg px-1.5 font-mono text-id text-tone-waiting-fg [&_svg]:size-(--size-icon-sm)",children:[(0,t.jsx)(g.TriangleAlert,{"aria-hidden":!0}),i,(0,t.jsx)("span",{className:"sr-only",children:" (risky)"})]},i):(0,t.jsx)("code",{className:"rounded-sm bg-muted px-1.5 font-mono text-id",children:i},i))})]})}function z({title:e,icon:i,names:s}){return(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("span",{className:"text-caption text-muted-foreground",children:e}),0===s.length?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"None"}):s.map(e=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-meta [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0 [&_svg]:text-muted-foreground",children:[i,e]},e))]})}function L({workspaces:e}){return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(z,{title:"Repositories · a new worktree per ship",icon:(0,t.jsx)(p.GitBranch,{"aria-hidden":!0}),names:e.repositories}),(0,t.jsx)(z,{title:"Folders · used as they are",icon:(0,t.jsx)(x.FolderOpen,{"aria-hidden":!0}),names:e.folders})]})}function B({machine:e,spots:i,location:n,now:r}){let{details:o,report:l}=e,d=null===l?null:new Date(l.reportedAt);return(0,t.jsxs)("section",{"aria-label":e.name,"data-testid":"machine-card",className:"grid grid-cols-[minmax(0,18.75rem)_minmax(0,1.25fr)_minmax(0,1fr)] divide-x divide-border rounded-lg border border-border bg-card shadow-sm max-lg:grid-cols-1 max-lg:divide-x-0 max-lg:divide-y",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-2.5 px-4.5 py-4",children:[(0,t.jsxs)(a.default,{href:`/trierarchs/${e.shipId}`,"data-testid":"machine-card-name",className:"inline-flex items-center gap-2 text-section font-semibold hover:underline [&_svg]:size-(--size-icon) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(s.ShipWheel,{"aria-hidden":!0}),e.name]}),(0,t.jsx)(N,{machine:e,now:r}),(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-1.5 text-meta text-muted-foreground",children:[(0,t.jsx)(y.LocationTag,{kind:n?.kind??null,description:n?.description}),null===o?null:(0,t.jsxs)("span",{className:"font-mono text-id",children:["· trierarch ",o.version]})]}),(0,t.jsx)("div",{role:"separator",className:"h-px bg-border"}),(0,t.jsx)("span",{className:"text-caption font-medium text-muted-foreground",children:"Capacity"}),(0,t.jsx)(b.CapacityBar,{spots:i,caps:o?.caps,testId:"machine-card-capacity",unknownText:null===d?"Unknown until it answers":`Unknown since ${(0,j.clockTime)(d)}`}),null===d?null:(0,t.jsxs)("time",{dateTime:l?.reportedAt,title:(0,j.fullDateTime)(d),className:"text-meta text-muted-foreground",children:["Last answer ",k(d,r)]})]}),(0,t.jsx)(S,{title:"Harnesses, options and flags",children:null===o?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"Unknown until it answers"}):o.harnesses.map(e=>(0,t.jsx)(T,{harness:e},e.harness))}),(0,t.jsx)(S,{title:"Workspaces",children:null===o?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"Unknown until it answers"}):(0,t.jsx)(L,{workspaces:o.workspaces})})]})}e.s(["HarnessOffer",0,T,"MachineCard",0,B,"MachineLiveness",0,N,"WorkspaceOffer",0,L,"lastAnswer",0,k],94313);let I=`${o.SOURCE_URL}/tree/main/packages/trierarch-plugin#readme`;e.s(["MachineList",0,function({connection:e,machines:o,ships:m,error:u,onRetry:x,onJoin:p,now:g}){return"none"===e?(0,t.jsx)(d.EmptyState,{icon:(0,t.jsx)(s.ShipWheel,{"aria-hidden":!0}),title:"The trierarch plugin is not set up for this fleet",description:"Crew requests work without it: they wait on Needs crew and you crew each ship by hand with its starting prompt. With the plugin, trierarchs on your machines start, restart and stop those sessions for you.",action:(0,t.jsx)(l.Button,{nativeButton:!1,render:({children:e,...i})=>(0,t.jsx)("a",{href:I,target:"_blank",rel:"noreferrer",...i,children:e}),"data-testid":"trierarchs-setup",children:"How to set up the trierarch plugin"})}):"not-connected"===e?(0,t.jsx)(d.EmptyState,{icon:(0,t.jsx)(n.Unplug,{"aria-hidden":!0}),title:"The trierarch plugin is not connected",description:"Connect it in Settings; its machines show up here then.",action:(0,t.jsx)(l.Button,{nativeButton:!1,render:(0,t.jsx)(a.default,{href:"/settings"}),"data-testid":"trierarchs-open-settings",children:"Open Settings"})}):void 0!==u?(0,t.jsx)(c.InlineError,{variant:"page",title:"Couldn’t read the machines",description:"Nothing changed.",detail:u,onRetry:x}):void 0===o||"unknown"===e?(0,t.jsx)(h.LoadingSkeleton,{variant:"cards",rows:2,label:"Loading the machines"}):0===o.length?(0,t.jsx)(d.EmptyState,{icon:(0,t.jsx)(s.ShipWheel,{"aria-hidden":!0}),title:"No machines yet",description:"Join a machine: its trierarch then starts sessions there for the crew requests the plugin gives it.",action:p?(0,t.jsx)(l.Button,{variant:"primary",icon:(0,t.jsx)(i.Plus,{"aria-hidden":!0}),onClick:p,"data-testid":"trierarchs-join-empty",children:"Join a machine"}):void 0}):(0,t.jsx)("div",{className:"flex flex-col gap-4","data-testid":"machine-list",children:o.map(e=>(0,t.jsx)(B,{machine:e,spots:(0,r.spotsOf)(e,m),location:m.find(t=>t.id===e.shipId)?.location??null,now:g},e.shipId))})}],42383)},87792,e=>{"use strict";var t=e.i(43476),i=e.i(19759),s=e.i(15905),n=e.i(77880),a=e.i(36779),r=e.i(15034),o=e.i(85538);e.s(["ListLayout",0,function({title:e,description:l,titleMeta:d,primaryAction:c,toolbar:h,live:m,nav:u,onCompose:x,onSearch:p,account:g,banner:f,children:j}){return(0,t.jsxs)("div",{className:"flex min-h-dvh bg-background",children:[(0,t.jsx)(a.Sidebar,{active:u.active,inboxCount:u.inboxCount,attentionCount:u.attentionCount,needsCrewCount:u.needsCrewCount,hasSquadrons:u.hasSquadrons,hasTrierarchs:u.hasTrierarchs,trierarchsCount:u.trierarchsCount,hasSettings:u.hasSettings,...g}),(0,t.jsxs)("div",{className:"flex min-w-0 grow flex-col",children:[(0,t.jsx)(n.Header,{breadcrumb:e,live:m,onCompose:x,onSearch:p}),f,(0,t.jsx)(o.TopBar,{title:e,live:m,account:g,onSearch:p,actions:x?(0,t.jsx)(s.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Compose","data-testid":"top-bar-compose",onClick:x,children:(0,t.jsx)(i.SquarePen,{"aria-hidden":!0})}):void 0}),(0,t.jsxs)("main",{className:"flex grow flex-col gap-5 px-8 py-6 max-sm:gap-3.5 max-sm:px-4 max-sm:pt-3.5 max-sm:pb-[calc(var(--size-tabbar)+var(--spacing)*4)]",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4 max-sm:gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1",children:[(0,t.jsx)("h1",{className:"text-title font-semibold tracking-tight text-foreground max-sm:hidden",children:e}),d]}),l?(0,t.jsx)("p",{className:"text-meta text-muted-foreground max-sm:text-body-touch",children:l}):null]}),c?(0,t.jsx)("div",{className:"shrink-0 max-sm:w-full max-sm:[&>*]:w-full",children:c}):null]}),h,j]})]}),(0,t.jsx)(r.TabBar,{active:"overview"===u.active||"needs-crew"===u.active?"fleet":"settings"===u.active?void 0:u.active,hasSquadrons:u.hasSquadrons,hasTrierarchs:u.hasTrierarchs,trierarchsCount:u.trierarchsCount,inboxCount:u.inboxCount,attentionCount:u.attentionCount})]})}])}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,69644,69846,e=>{"use strict";var t=e.i(56420);let i={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]};i.node;let s=(0,t.default)(i);e.s(["FolderOpen",0,s],69644);let n={name:"git-branch",size:24,node:[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]};n.node;let a=(0,t.default)(n);e.s(["GitBranch",0,a],69846)},83035,e=>{"use strict";var t=e.i(56420);let i={name:"square-terminal",size:24,node:[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],aliases:["terminal-square"]};i.node;let s=(0,t.default)(i);e.s(["SquareTerminal",0,s],83035)},27290,e=>{"use strict";var t=e.i(43476),i=e.i(77071),s=e.i(71645),n=e.i(66390),a=e.i(15905),r=e.i(44824),o=e.i(45608),l=e.i(95475),d=e.i(2767);e.i(31627);var c=e.i(44827),h=e.i(22768),m=e.i(85595),u=e.i(16984),x=e.i(10818),p=e.i(90063),g=e.i(65160),f=e.i(91703),j=e.i(22212),v=e.i(94945),b=e.i(12470),y=e.i(91727),w=e.i(56478),C=e.i(17981);function N({activeNames:e,isPending:i,error:n,onSubmit:r}){let o=(0,s.useId)(),l=(0,s.useId)(),[d,h]=(0,s.useState)(""),x=(0,g.checkShipName)(d,{activeNames:e}),f="invalid"===x.kind||"reserved"===x.kind||"taken"===x.kind,v="available"===x.kind;return(0,t.jsxs)("form",{noValidate:!0,className:"contents",onSubmit:e=>{e.preventDefault(),v&&r(d)},children:[(0,t.jsxs)(j.DialogHeader,{children:[(0,t.jsx)(j.DialogTitle,{children:"Join a machine"}),(0,t.jsx)(j.DialogDescription,{children:"The trierarch plugin commissions a trierarch ship of this name. You then run its setup line on the machine, and the trierarch there starts sessions for the crew requests it is given."})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,t.jsx)(y.Label,{htmlFor:o,children:"Name"}),(0,t.jsxs)("span",{className:"text-caption text-muted-foreground tabular-nums",children:[d.length," / ",c.SHIP_HANDLE_MAX_LENGTH]})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(b.Input,{id:o,isMono:!0,autoComplete:"off",autoCapitalize:"off",spellCheck:!1,placeholder:"trierarch-mac","data-testid":"join-machine-name","aria-invalid":!!f||void 0,"aria-describedby":l,className:"pr-9 max-sm:h-(--size-control-touch) max-sm:text-input-touch",value:d,onChange:e=>{h((0,g.asHandle)(e.target.value))}}),"available"===x.kind?(0,t.jsx)(m.CircleCheck,{"aria-hidden":!0,className:"absolute top-1/2 right-3 size-(--size-icon) -translate-y-1/2 text-tone-ok-fg"}):f?(0,t.jsx)(u.CircleX,{"aria-hidden":!0,className:"absolute top-1/2 right-3 size-(--size-icon) -translate-y-1/2 text-destructive-text"}):null]}),(0,t.jsx)("p",{id:l,"aria-live":"polite",className:(0,p.classNames)("text-meta",f?"text-destructive-text":"text-muted-foreground"),children:x.message})]}),void 0===n?null:(0,t.jsx)(C.InlineError,{title:"Couldn’t join the machine",description:`${n} Nothing changed.`}),(0,t.jsxs)(j.DialogFooter,{children:[(0,t.jsx)(j.DialogClose,{render:(0,t.jsx)(a.Button,{type:"button",disabled:i}),children:"Cancel"}),(0,t.jsx)(a.Button,{type:"submit",variant:"primary",isLoading:i,disabled:!v,"data-testid":"join-machine-submit",children:i?"Joining":"Join machine"})]})]})}function k({joined:e}){let[i,n]=(0,s.useState)(!1),r=()=>{n(!1)},o=()=>{n(!0)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(j.DialogHeader,{children:[(0,t.jsxs)(j.DialogTitle,{children:[e.name," joined"]}),(0,t.jsxs)(j.DialogDescription,{children:["Run the setup line on the machine. It installs the trierarch, which then crews ",e.name," and reports what the machine offers."]})]}),(0,t.jsxs)("p",{className:"flex gap-2 rounded-lg border border-border bg-muted px-3 py-2 text-meta text-foreground",children:[(0,t.jsx)(x.Info,{"aria-hidden":!0,className:"mt-0.5 size-(--size-icon-sm) shrink-0 text-muted-foreground"}),(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"font-medium",children:"Shown once. Copy it now."})," It carries the ship’s secret. If you lose it, get a new starting prompt on ",e.name,"’s ship page."]})]}),(0,t.jsx)(f.CodeBlock,{label:"Setup line",code:e.setupLine,isWrapped:!0,copyLabel:`Copy the setup line for ${e.name}`,codeTestId:"join-machine-setup-line",copyTestId:"join-machine-setup-line-copy",onCopied:r,onCopyFailed:o}),(0,t.jsx)(f.CodeBlock,{label:`Starting prompt for ${e.name}`,code:e.prompt,isWrapped:!0,copyLabel:`Copy the starting prompt for ${e.name}`,codeTestId:"join-machine-prompt",onCopied:r,onCopyFailed:o}),(0,t.jsx)(w.CrewLines,{crewLines:e.crewLines,subject:e.name,testIdPrefix:"join-machine-crew-line",onCopied:r,onCopyFailed:o}),(0,t.jsx)("p",{role:"status",className:"flex items-center gap-1.5 text-meta text-destructive-text empty:hidden",children:i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.CircleAlert,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),"Could not copy: select the text and copy it by hand."]}):null}),(0,t.jsx)(j.DialogFooter,{children:(0,t.jsx)(j.DialogClose,{render:(0,t.jsx)(a.Button,{variant:"primary"}),children:"Done"})})]})}function S(e){let{isOpen:i,onOpenChange:s,isPending:n,joined:a}=e;return(0,t.jsx)(j.Dialog,{open:i,onOpenChange:e=>{n||s(e)},children:(0,t.jsx)(j.DialogContent,{size:"md","data-testid":"join-machine-dialog",className:v.dialogSurface.phoneFullScreen,children:void 0===a?(0,t.jsx)(N,{...e}):(0,t.jsx)(k,{joined:a})})})}var T=e.i(42383),z=e.i(87792),L=e.i(90262),B=e.i(88721),I=e.i(5387),D=e.i(86413),$=e.i(18423),A=e.i(28459),O=e.i(96676),F=e.i(3979),M=e.i(78485),q=e.i(265);e.s(["default",0,function(){let e=(0,O.useNow)(),c=(0,B.useAccountMenu)(e),h=(0,D.useOpenInboxCount)(),m=(0,A.useNeedsAttention)(),u=(0,A.useAttentionCount)(),x=(0,$.useLiveFleet)(),p=(0,I.useFleetSnapshot)(),g=(0,q.useTrierarchPluginConnection)(),f=(0,q.useMachines)(),j=(0,q.useTrierarchPluginVersion)(),v=(0,q.useJoinMachine)(),b=(0,L.useAccess)(),y=(0,F.usePluginNav)(),[w,C]=(0,s.useState)(!1),[N,k]=(0,s.useState)(!1),[_,W]=(0,s.useState)(!1);(0,M.useSignInWhenSessionEnds)([m.error,x.error]);let H=b.canManage&&"connected"===g,P=()=>{v.reset(),C(!0)};return(0,t.jsxs)(z.ListLayout,{title:"Trierarchs",titleMeta:void 0===j?void 0:(0,t.jsxs)(n.Badge,{variant:"outline","data-testid":"trierarchs-plugin-version",children:["trierarch plugin ",j]}),description:"none"===g?"Not set up.":"Machines that run sessions for crew requests. The plugin picks a trierarch for each request.",live:x.live,nav:{active:"trierarchs",inboxCount:h,attentionCount:u,...y},primaryAction:H?(0,t.jsx)(a.Button,{variant:"primary",icon:(0,t.jsx)(i.Plus,{"aria-hidden":!0}),onClick:P,"data-testid":"trierarchs-join",children:"Join a machine"}):void 0,onCompose:b.canSend?()=>{k(!0)}:void 0,onSearch:()=>{W(!0)},account:c,banner:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.ConsoleNotices,{}),(0,t.jsx)(l.ConsoleGuide,{})]}),children:[(0,t.jsx)(T.MachineList,{connection:g,machines:f.data,ships:p.data??[],error:f.isError?f.error.message:void 0,onRetry:()=>{f.refetch()},onJoin:H?P:void 0,now:e}),H&&(0,t.jsx)(S,{activeNames:(p.data??[]).filter(e=>"retired"!==e.status).map(e=>e.name),isOpen:w,onOpenChange:e=>{C(e),e||v.reset()},isPending:v.isPending,error:v.error?.message,joined:v.data,onSubmit:e=>{v.mutate(e)}}),(0,t.jsx)(r.ComposeMessage,{isOpen:N,onOpenChange:k}),(0,t.jsx)(o.ConsoleCommands,{isOpen:_,onOpenChange:W,onCompose:()=>{k(!0)}})]})}],27290)},91703,e=>{"use strict";var t=e.i(43476),i=e.i(83035),s=e.i(90063),n=e.i(61966);e.s(["CodeBlock",0,function({label:e,code:a,isWrapped:r=!1,copyValue:o,copyLabel:l=`Copy ${e.toLowerCase()}`,onCopied:d,onCopyFailed:c,codeTestId:h,copyTestId:m}){return(0,t.jsxs)("div",{"data-slot":"code-block",className:"overflow-hidden rounded-lg border border-border bg-muted",children:[(0,t.jsxs)("div",{className:"flex h-9 items-center justify-between gap-2 border-b border-border pr-1.5 pl-3",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5 text-caption text-muted-foreground",children:[(0,t.jsx)(i.SquareTerminal,{"aria-hidden":!0,className:"size-(--size-icon-sm) shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e})]}),(0,t.jsx)(n.CopyButton,{value:o??a,label:l,isLabeled:!0,onCopied:d,onCopyFailed:c,"data-testid":m})]}),(0,t.jsx)("pre",{"data-testid":h,className:(0,s.classNames)("overflow-x-auto px-3 py-3 font-mono text-code text-foreground",r?"break-all whitespace-pre-wrap":"whitespace-pre"),children:a})]})}])},61966,8734,e=>{"use strict";var t=e.i(43476),i=e.i(89664),s=e.i(56420);let n={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};n.node;let a=(0,s.default)(n);e.s(["Copy",0,a],8734);var r=e.i(71645),o=e.i(15905);e.s(["CopyButton",0,function({value:e,label:s,size:n="xs",isLabeled:l=!1,onCopied:d,onCopyFailed:c,className:h,"data-testid":m}){let[u,x]=(0,r.useState)(!1);async function p(){try{await navigator.clipboard.writeText(e)}catch{c?.();return}x(!0),d?.(),setTimeout(()=>{x(!1)},1500)}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.Button,{variant:"ghost",size:n,isIconOnly:!l,"aria-label":s,title:l?void 0:s,icon:u?(0,t.jsx)(i.Check,{"aria-hidden":!0}):(0,t.jsx)(a,{"aria-hidden":!0}),className:h,"data-testid":m,onClick:()=>{p()},children:l?u?"Copied":"Copy":null}),(0,t.jsx)("span",{role:"status",className:"sr-only",children:u?"Copied.":""})]})}],61966)},54422,e=>{"use strict";var t=e.i(43476),i=e.i(90063),s=e.i(14695);let n={running:"bg-tone-ok-fg",crewing:"bg-tone-active-fg",releasing:"bg-tone-active-fg",restarting:"bg-tone-waiting-fg",crashed:"bg-tone-attention-fg"};e.s(["CapacityBar",0,function({spots:e,caps:a,unknownText:r="Unknown",testId:o}){let l=(0,s.capacityLine)(e,a);if(void 0===a||void 0===l)return(0,t.jsx)("span",{"data-testid":o,className:"text-meta text-muted-foreground",children:r});let d=Math.max(0,a.ships-e.length);return(0,t.jsxs)("span",{role:"img","aria-label":l,"data-testid":o,className:"inline-flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1",children:[(0,t.jsxs)("span",{"aria-hidden":!0,className:"inline-flex shrink-0 gap-0.5",children:[e.map((e,s)=>(0,t.jsx)("span",{title:`Spot ${String(s+1)}: ${e.name}, ${e.status}`,className:(0,i.classNames)("h-2 w-3 rounded-xs",n[e.status])},e.shipId)),Array.from({length:d},(i,s)=>(0,t.jsx)("span",{title:`Spot ${String(e.length+s+1)}: vacant`,className:"h-2 w-3 rounded-xs border border-input"},`free-${String(s)}`))]}),(0,t.jsx)("span",{className:"text-meta tabular-nums",children:l})]})}])},56478,e=>{"use strict";var t=e.i(43476),i=e.i(66616),s=e.i(91703);e.s(["CrewLines",0,function({crewLines:e,subject:n,testIdPrefix:a,onCopied:r,onCopyFailed:o}){return e.map(({harness:e,line:l})=>(0,t.jsx)(s.CodeBlock,{label:`Crew line, ${(0,i.harnessWord)(e)} with the aeolus plugin`,code:l,isWrapped:!0,copyLabel:`Copy the ${(0,i.harnessWord)(e)} crew line for ${n}`,codeTestId:`${a}-${e}`,copyTestId:`${a}-${e}-copy`,onCopied:r,onCopyFailed:o},e))}])},42383,94313,e=>{"use strict";var t=e.i(43476),i=e.i(77071),s=e.i(86875),n=e.i(94831),a=e.i(22016),r=e.i(14695),o=e.i(31513),l=e.i(15905),d=e.i(67874),c=e.i(17981),h=e.i(88393),m=e.i(71567),u=e.i(52886),x=e.i(69644),p=e.i(69846),g=e.i(66787),f=e.i(66616),j=e.i(49635),v=e.i(66390),b=e.i(54422),y=e.i(63481);let w={alive:"border-tone-ok-border bg-tone-ok-bg text-tone-ok-fg",silent:"border-tone-attention-border bg-tone-attention-bg text-tone-attention-fg","not-started":"border-tone-waiting-border bg-tone-waiting-bg text-tone-waiting-fg"},C={alive:"Alive",silent:"Not answering","not-started":"Not started"};function N({machine:e,now:i}){let n=(0,r.machineLiveness)(e),a=null===e.lastSeenAt?null:new Date(e.lastSeenAt);return(0,t.jsxs)("span",{className:"inline-flex flex-wrap items-center gap-x-2 gap-y-1 text-meta","data-testid":"machine-liveness","data-liveness":n,children:[(0,t.jsxs)(v.Badge,{variant:"outline",className:w[n],children:["alive"===n?(0,t.jsx)(s.ShipWheel,{"aria-hidden":!0}):(0,t.jsx)(u.CircleDashed,{"aria-hidden":!0}),C[n]]}),null===a?(0,t.jsx)("span",{className:"text-muted-foreground",children:"· run its setup line on the machine"}):(0,t.jsxs)("time",{dateTime:e.lastSeenAt??void 0,title:(0,j.fullDateTime)(a),className:"text-muted-foreground tabular-nums",children:["· ","silent"===n?`since ${(0,j.clockTime)(a)}`:(0,j.lastSeen)(a,i).replace("Last seen","seen")]})]})}function k(e,t){let i=(0,j.relativeTime)(e,t);return"Just now"===i?"just now":i}function S({title:e,children:i,className:s}){return(0,t.jsxs)("div",{className:`flex min-w-0 flex-col gap-2 px-4.5 py-4 ${s??""}`,children:[(0,t.jsx)("span",{className:"text-caption font-medium text-muted-foreground",children:e}),i]})}function T({harness:e,now:i}){let s=(0,f.harnessDetection)(e,i);return(0,t.jsxs)("div",{className:"flex flex-col gap-1.5 border-t border-border py-2.5 first-of-type:border-t-0 first-of-type:pt-0",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-body font-medium [&_svg]:size-(--size-icon-sm) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(m.Bot,{"aria-hidden":!0}),(0,f.harnessWord)(e.harness),void 0===s?null:(0,t.jsx)("span",{className:"font-normal text-meta text-muted-foreground",children:s})]}),(0,r.harnessOptions)(e.options).map(e=>(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1 text-meta",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:e.name}),e.values.map(i=>(0,t.jsxs)("span",{className:"font-mono text-id whitespace-nowrap",children:[i,i===e.defaultValue?(0,t.jsx)("span",{className:"font-sans text-muted-foreground",children:" (default)"}):null]},i))]},e.name)),0===e.flags.length?null:(0,t.jsx)("span",{className:"flex flex-wrap items-center gap-1.5",children:e.flags.map(i=>e.riskyFlags?.includes(i)===!0?(0,t.jsxs)("code",{"data-testid":"machine-risky-flag",title:"Risky: every launch runs without its harness's safeguards",className:"inline-flex items-center gap-1 rounded-sm border border-tone-waiting-border bg-tone-waiting-bg px-1.5 font-mono text-id text-tone-waiting-fg [&_svg]:size-(--size-icon-sm)",children:[(0,t.jsx)(g.TriangleAlert,{"aria-hidden":!0}),i,(0,t.jsx)("span",{className:"sr-only",children:" (risky)"})]},i):(0,t.jsx)("code",{className:"rounded-sm bg-muted px-1.5 font-mono text-id",children:i},i))})]})}function z({title:e,icon:i,names:s}){return(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("span",{className:"text-caption text-muted-foreground",children:e}),0===s.length?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"None"}):s.map(e=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-meta [&_svg]:size-(--size-icon-sm) [&_svg]:shrink-0 [&_svg]:text-muted-foreground",children:[i,e]},e))]})}function L({workspaces:e}){return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(z,{title:"Repositories · a new worktree per ship",icon:(0,t.jsx)(p.GitBranch,{"aria-hidden":!0}),names:e.repositories}),(0,t.jsx)(z,{title:"Folders · used as they are",icon:(0,t.jsx)(x.FolderOpen,{"aria-hidden":!0}),names:e.folders})]})}function B({machine:e,spots:i,location:n,now:r}){let{details:o,report:l}=e,d=null===l?null:new Date(l.reportedAt);return(0,t.jsxs)("section",{"aria-label":e.name,"data-testid":"machine-card",className:"grid grid-cols-[minmax(0,18.75rem)_minmax(0,1.25fr)_minmax(0,1fr)] divide-x divide-border rounded-lg border border-border bg-card shadow-sm max-lg:grid-cols-1 max-lg:divide-x-0 max-lg:divide-y",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-2.5 px-4.5 py-4",children:[(0,t.jsxs)(a.default,{href:`/trierarchs/${e.shipId}`,"data-testid":"machine-card-name",className:"inline-flex items-center gap-2 text-section font-semibold hover:underline [&_svg]:size-(--size-icon) [&_svg]:text-muted-foreground",children:[(0,t.jsx)(s.ShipWheel,{"aria-hidden":!0}),e.name]}),(0,t.jsx)(N,{machine:e,now:r}),(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-1.5 text-meta text-muted-foreground",children:[(0,t.jsx)(y.LocationTag,{kind:n?.kind??null,description:n?.description}),null===o?null:(0,t.jsxs)("span",{className:"font-mono text-id",children:["· trierarch ",o.version]})]}),(0,t.jsx)("div",{role:"separator",className:"h-px bg-border"}),(0,t.jsx)("span",{className:"text-caption font-medium text-muted-foreground",children:"Capacity"}),(0,t.jsx)(b.CapacityBar,{spots:i,caps:o?.caps,testId:"machine-card-capacity",unknownText:null===d?"Unknown until it answers":`Unknown since ${(0,j.clockTime)(d)}`}),null===d?null:(0,t.jsxs)("time",{dateTime:l?.reportedAt,title:(0,j.fullDateTime)(d),className:"text-meta text-muted-foreground",children:["Last answer ",k(d,r)]})]}),(0,t.jsx)(S,{title:"Harnesses, options and flags",children:null===o?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"Unknown until it answers"}):o.harnesses.map(e=>(0,t.jsx)(T,{harness:e,now:r},e.harness))}),(0,t.jsx)(S,{title:"Workspaces",children:null===o?(0,t.jsx)("span",{className:"text-meta text-muted-foreground",children:"Unknown until it answers"}):(0,t.jsx)(L,{workspaces:o.workspaces})})]})}e.s(["HarnessOffer",0,T,"MachineCard",0,B,"MachineLiveness",0,N,"WorkspaceOffer",0,L,"lastAnswer",0,k],94313);let I=`${o.SOURCE_URL}/tree/main/packages/trierarch-plugin#readme`;e.s(["MachineList",0,function({connection:e,machines:o,ships:m,error:u,onRetry:x,onJoin:p,now:g}){return"none"===e?(0,t.jsx)(d.EmptyState,{icon:(0,t.jsx)(s.ShipWheel,{"aria-hidden":!0}),title:"The trierarch plugin is not set up for this fleet",description:"Crew requests work without it: they wait on Needs crew and you crew each ship by hand with its starting prompt. With the plugin, trierarchs on your machines start, restart and stop those sessions for you.",action:(0,t.jsx)(l.Button,{nativeButton:!1,render:({children:e,...i})=>(0,t.jsx)("a",{href:I,target:"_blank",rel:"noreferrer",...i,children:e}),"data-testid":"trierarchs-setup",children:"How to set up the trierarch plugin"})}):"not-connected"===e?(0,t.jsx)(d.EmptyState,{icon:(0,t.jsx)(n.Unplug,{"aria-hidden":!0}),title:"The trierarch plugin is not connected",description:"Connect it in Settings; its machines show up here then.",action:(0,t.jsx)(l.Button,{nativeButton:!1,render:(0,t.jsx)(a.default,{href:"/settings"}),"data-testid":"trierarchs-open-settings",children:"Open Settings"})}):void 0!==u?(0,t.jsx)(c.InlineError,{variant:"page",title:"Couldn’t read the machines",description:"Nothing changed.",detail:u,onRetry:x}):void 0===o||"unknown"===e?(0,t.jsx)(h.LoadingSkeleton,{variant:"cards",rows:2,label:"Loading the machines"}):0===o.length?(0,t.jsx)(d.EmptyState,{icon:(0,t.jsx)(s.ShipWheel,{"aria-hidden":!0}),title:"No machines yet",description:"Join a machine: its trierarch then starts sessions there for the crew requests the plugin gives it.",action:p?(0,t.jsx)(l.Button,{variant:"primary",icon:(0,t.jsx)(i.Plus,{"aria-hidden":!0}),onClick:p,"data-testid":"trierarchs-join-empty",children:"Join a machine"}):void 0}):(0,t.jsx)("div",{className:"flex flex-col gap-4","data-testid":"machine-list",children:o.map(e=>(0,t.jsx)(B,{machine:e,spots:(0,r.spotsOf)(e,m),location:m.find(t=>t.id===e.shipId)?.location??null,now:g},e.shipId))})}],42383)},87792,e=>{"use strict";var t=e.i(43476),i=e.i(19759),s=e.i(15905),n=e.i(77880),a=e.i(36779),r=e.i(15034),o=e.i(85538);e.s(["ListLayout",0,function({title:e,description:l,titleMeta:d,primaryAction:c,toolbar:h,live:m,nav:u,onCompose:x,onSearch:p,account:g,banner:f,children:j}){return(0,t.jsxs)("div",{className:"flex min-h-dvh bg-background",children:[(0,t.jsx)(a.Sidebar,{active:u.active,inboxCount:u.inboxCount,attentionCount:u.attentionCount,needsCrewCount:u.needsCrewCount,hasSquadrons:u.hasSquadrons,hasTrierarchs:u.hasTrierarchs,trierarchsCount:u.trierarchsCount,hasSettings:u.hasSettings,...g}),(0,t.jsxs)("div",{className:"flex min-w-0 grow flex-col",children:[(0,t.jsx)(n.Header,{breadcrumb:e,live:m,onCompose:x,onSearch:p}),f,(0,t.jsx)(o.TopBar,{title:e,live:m,account:g,onSearch:p,actions:x?(0,t.jsx)(s.Button,{variant:"ghost",size:"touch",isIconOnly:!0,"aria-label":"Compose","data-testid":"top-bar-compose",onClick:x,children:(0,t.jsx)(i.SquarePen,{"aria-hidden":!0})}):void 0}),(0,t.jsxs)("main",{className:"flex grow flex-col gap-5 px-8 py-6 max-sm:gap-3.5 max-sm:px-4 max-sm:pt-3.5 max-sm:pb-[calc(var(--size-tabbar)+var(--spacing)*4)]",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4 max-sm:gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1",children:[(0,t.jsx)("h1",{className:"text-title font-semibold tracking-tight text-foreground max-sm:hidden",children:e}),d]}),l?(0,t.jsx)("p",{className:"text-meta text-muted-foreground max-sm:text-body-touch",children:l}):null]}),c?(0,t.jsx)("div",{className:"shrink-0 max-sm:w-full max-sm:[&>*]:w-full",children:c}):null]}),h,j]})]}),(0,t.jsx)(r.TabBar,{active:"overview"===u.active||"needs-crew"===u.active?"fleet":"settings"===u.active?void 0:u.active,hasSquadrons:u.hasSquadrons,hasTrierarchs:u.hasTrierarchs,trierarchsCount:u.trierarchsCount,inboxCount:u.inboxCount,attentionCount:u.attentionCount})]})}])}]);
|