rigscope 0.1.8 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +1 -1
  3. package/.next/build-manifest.json +2 -2
  4. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  5. package/.next/server/app/_global-error.html +1 -1
  6. package/.next/server/app/_global-error.rsc +1 -1
  7. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  8. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  10. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  11. package/.next/server/app/_not-found.html +1 -1
  12. package/.next/server/app/_not-found.rsc +2 -2
  13. package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  14. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  15. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  16. package/.next/server/app/administration/page_client-reference-manifest.js +1 -1
  17. package/.next/server/app/administration.html +1 -1
  18. package/.next/server/app/administration.rsc +2 -2
  19. package/.next/server/app/administration.segments/_full.segment.rsc +2 -2
  20. package/.next/server/app/administration.segments/_tree.segment.rsc +2 -2
  21. package/.next/server/app/administration.segments/administration/__PAGE__.segment.rsc +2 -2
  22. package/.next/server/app/alerts/page_client-reference-manifest.js +1 -1
  23. package/.next/server/app/alerts.html +1 -1
  24. package/.next/server/app/alerts.rsc +2 -2
  25. package/.next/server/app/alerts.segments/_full.segment.rsc +2 -2
  26. package/.next/server/app/alerts.segments/_tree.segment.rsc +2 -2
  27. package/.next/server/app/alerts.segments/alerts/__PAGE__.segment.rsc +2 -2
  28. package/.next/server/app/connections/page_client-reference-manifest.js +1 -1
  29. package/.next/server/app/connections.html +1 -1
  30. package/.next/server/app/connections.rsc +2 -2
  31. package/.next/server/app/connections.segments/_full.segment.rsc +2 -2
  32. package/.next/server/app/connections.segments/_tree.segment.rsc +2 -2
  33. package/.next/server/app/connections.segments/connections/__PAGE__.segment.rsc +2 -2
  34. package/.next/server/app/history/page.js +2 -2
  35. package/.next/server/app/history/page_client-reference-manifest.js +1 -1
  36. package/.next/server/app/history.html +1 -1
  37. package/.next/server/app/history.rsc +5 -5
  38. package/.next/server/app/history.segments/_full.segment.rsc +5 -5
  39. package/.next/server/app/history.segments/_tree.segment.rsc +2 -2
  40. package/.next/server/app/history.segments/history/__PAGE__.segment.rsc +5 -5
  41. package/.next/server/app/index.html +1 -1
  42. package/.next/server/app/index.rsc +2 -2
  43. package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  44. package/.next/server/app/index.segments/_full.segment.rsc +2 -2
  45. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  46. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  47. package/.next/server/app/login.html +1 -1
  48. package/.next/server/app/login.rsc +2 -2
  49. package/.next/server/app/login.segments/_full.segment.rsc +2 -2
  50. package/.next/server/app/login.segments/_tree.segment.rsc +2 -2
  51. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  52. package/.next/server/app/machines/[machineId]/page_client-reference-manifest.js +1 -1
  53. package/.next/server/app/page_client-reference-manifest.js +1 -1
  54. package/.next/server/app/processes/page_client-reference-manifest.js +1 -1
  55. package/.next/server/app/processes.html +1 -1
  56. package/.next/server/app/processes.rsc +2 -2
  57. package/.next/server/app/processes.segments/_full.segment.rsc +2 -2
  58. package/.next/server/app/processes.segments/_tree.segment.rsc +2 -2
  59. package/.next/server/app/processes.segments/processes/__PAGE__.segment.rsc +2 -2
  60. package/.next/server/app-paths-manifest.json +1 -1
  61. package/.next/server/chunks/168.js +1 -1
  62. package/.next/server/middleware-build-manifest.js +1 -1
  63. package/.next/server/pages/404.html +1 -1
  64. package/.next/server/pages/500.html +1 -1
  65. package/.next/static/chunks/408-351fe4a1e9a2d556.js +1 -0
  66. package/.next/static/chunks/app/history/page-adc25194b30c689d.js +3 -0
  67. package/.next/static/css/{f5d3162842dcac31.css → 2abef6d49c1c2970.css} +1 -1
  68. package/ARCHITECTURE.md +25 -9
  69. package/CHANGELOG.md +27 -0
  70. package/README.md +10 -3
  71. package/dist/cli.cjs +106 -2
  72. package/dist/collector.cjs +23 -6
  73. package/dist/hub.cjs +3423 -1449
  74. package/dist/ops.cjs +1178 -888
  75. package/dist/system.cjs +65 -0
  76. package/docs/configuration.md +33 -1
  77. package/docs/installation.md +3 -3
  78. package/docs/monitoring.md +57 -17
  79. package/docs/operations.md +38 -9
  80. package/docs/telemetry-storage.md +187 -0
  81. package/package.json +3 -1
  82. package/.next/static/chunks/408-9fdba9e4e956ef08.js +0 -1
  83. package/.next/static/chunks/app/history/page-a25ba8fab7bd7cb9.js +0 -3
  84. /package/.next/static/{ip43TIgmaByEBn2GFtvfO → Jlbibe2_iFCljUO4-BUK7}/_buildManifest.js +0 -0
  85. /package/.next/static/{ip43TIgmaByEBn2GFtvfO → Jlbibe2_iFCljUO4-BUK7}/_ssgManifest.js +0 -0
@@ -20,11 +20,11 @@ f:I[2701,["944","$c","939","$2","103","$d","952","$e"],"Sidebar"]
20
20
  19:"MetadataBoundary"
21
21
  1a:I[484,[],"$19"]
22
22
  1c:I[7123,[],"default",1]
23
- :HL["/_next/static/css/f5d3162842dcac31.css","style"]
23
+ :HL["/_next/static/css/2abef6d49c1c2970.css","style"]
24
24
  9:X
25
25
  a:[["children",{"s":"__PAGE__","h":512,"d":{"r":["$","$1","c",{"children":[["$","$b",null,{"fallback":["$","div",null,{"className":"relative flex h-dvh overflow-hidden bg-background text-foreground","children":[["$","a",null,{"href":"#main-content","className":"sr-only z-50 rounded-md bg-card px-4 py-2 text-foreground focus:not-sr-only focus:absolute focus:start-2 focus:top-2 focus:outline-2 focus:outline-accent","children":"Skip to content"}],["$","div",null,{"className":"hidden md:flex","children":["$","$Lf",null,{"machineId":"$undefined","machineView":"$undefined"}]}],["$","div",null,{"className":"flex min-w-0 flex-1 flex-col","children":[["$","header",null,{"className":"flex min-h-14 shrink-0 flex-wrap items-center justify-between gap-2 border-b border-border px-4 py-2 md:px-6","children":[["$","div",null,{"className":"flex min-w-0 items-center gap-2","children":[["$","$L11",null,{"machineId":"$undefined","machineView":"$undefined"}],["$","h1",null,{"className":"truncate text-lg font-semibold tracking-tight","children":"Processes"}]]}],["$","div",null,{"className":"flex items-center gap-3","children":[null,["$","$L12",null,{}]]}]]}],["$","main",null,{"id":"main-content","tabIndex":-1,"className":"relative min-h-0 min-w-0 flex-1 overflow-x-hidden overscroll-contain p-4 outline-offset-[-2px] md:p-6 overflow-y-auto","children":["$","div",null,{"className":"mx-auto flex w-full min-w-0 max-w-[1500px] flex-col","children":["$","section",null,{"className":"flex min-w-0 flex-col rounded-xl border border-border bg-card p-5 mt-2","children":[["$","div",null,{"className":"flex shrink-0 items-center justify-between gap-4","children":[["$","h2",null,{"className":"text-sm font-medium tracking-tight","children":"Process detail"}],null]}],["$","div",null,{"className":"mt-4 flex min-h-0 flex-1 flex-col","children":["$","p",null,{"role":"status","className":"py-10 text-center text-sm text-muted-foreground","children":"Loading the process view…"}]}]]}]}]}]]}]]}],"children":["$","$L13",null,{}]}],null,["$","$L14",null,{"children":["$","$b",null,{"name":"Next.MetadataOutlet","children":"$@15"}]}]]}],"p":false,"v":null}}]]
26
26
  8:[["children",{"s":"processes","h":512,"d":{"r":["$","$1","c",{"children":[null,["$","$L6",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L7",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],"p":false,"v":"$9"},"c":"$Qa"}]]
27
- 0:{"P":null,"c":["","processes"],"q":"","i":false,"t":{"t":{"s":"","h":528,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f5d3162842dcac31.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L4",null,{"attribute":"class","defaultTheme":"dark","enableSystem":true,"children":["$","$L5",null,{"children":["$","$L6",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L7",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]}]]}],"p":false,"v":null},"c":"$Q8"},"h":{"r":["$","$1","h",{"children":[null,["$","$L17",null,{"children":"$L18"}],["$","$L1a",null,{"children":[["$","div",null,{"hidden":true,"children":["$","$b",null,{"name":"Next.Metadata","children":"$L1b"}]}],null]}],null]}],"p":false,"v":null}},"m":"$undefined","G":["$1c",[]],"S":true,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"ip43TIgmaByEBn2GFtvfO"}
27
+ 0:{"P":null,"c":["","processes"],"q":"","i":false,"t":{"t":{"s":"","h":528,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2abef6d49c1c2970.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L4",null,{"attribute":"class","defaultTheme":"dark","enableSystem":true,"children":["$","$L5",null,{"children":["$","$L6",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L7",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]}]]}],"p":false,"v":null},"c":"$Q8"},"h":{"r":["$","$1","h",{"children":[null,["$","$L17",null,{"children":"$L18"}],["$","$L1a",null,{"children":[["$","div",null,{"hidden":true,"children":["$","$b",null,{"name":"Next.Metadata","children":"$L1b"}]}],null]}],null]}],"p":false,"v":null}},"m":"$undefined","G":["$1c",[]],"S":true,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"Jlbibe2_iFCljUO4-BUK7"}
28
28
  9:C
29
29
  18:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
30
30
  1d:I[6869,[],"IconMark"]
@@ -1,4 +1,4 @@
1
- :HL["/_next/static/css/f5d3162842dcac31.css","style"]
1
+ :HL["/_next/static/css/2abef6d49c1c2970.css","style"]
2
2
  2:[["children",{"s":"__PAGE__","h":160}]]
3
3
  1:[["children",{"s":"processes","h":96,"c":"$Q2"}]]
4
- 0:{"b":"ip43TIgmaByEBn2GFtvfO","t":{"t":{"s":"","h":80,"c":"$Q1"}}}
4
+ 0:{"b":"Jlbibe2_iFCljUO4-BUK7","t":{"t":{"s":"","h":80,"c":"$Q1"}}}
@@ -20,13 +20,13 @@ f:"static/chunks/944-a7fe1d96f1d20531.js"
20
20
  1c:"MetadataBoundary"
21
21
  1d:I[484,[],"$1c"]
22
22
  1e:I[6869,[],"IconMark"]
23
- :HL["/_next/static/css/f5d3162842dcac31.css","style"]
23
+ :HL["/_next/static/css/2abef6d49c1c2970.css","style"]
24
24
  9:X
25
25
  c:X
26
26
  c:C
27
27
  d:[["children",{"s":"__PAGE__","h":160,"d":{"r":["$","$1","c",{"children":[["$","$e",null,{"fallback":["$","div",null,{"className":"relative flex h-dvh overflow-hidden bg-background text-foreground","children":[["$","a",null,{"href":"#main-content","className":"sr-only z-50 rounded-md bg-card px-4 py-2 text-foreground focus:not-sr-only focus:absolute focus:start-2 focus:top-2 focus:outline-2 focus:outline-accent","children":"Skip to content"}],["$","div",null,{"className":"hidden md:flex","children":["$","$L12",null,{}]}],["$","div",null,{"className":"flex min-w-0 flex-1 flex-col","children":[["$","header",null,{"className":"flex min-h-14 shrink-0 flex-wrap items-center justify-between gap-2 border-b border-border px-4 py-2 md:px-6","children":[["$","div",null,{"className":"flex min-w-0 items-center gap-2","children":[["$","$L14",null,{}],["$","h1",null,{"className":"truncate text-lg font-semibold tracking-tight","children":"Processes"}]]}],["$","div",null,{"className":"flex items-center gap-3","children":[null,["$","$L15",null,{}]]}]]}],["$","main",null,{"id":"main-content","tabIndex":-1,"className":"relative min-h-0 min-w-0 flex-1 overflow-x-hidden overscroll-contain p-4 outline-offset-[-2px] md:p-6 overflow-y-auto","children":["$","div",null,{"className":"mx-auto flex w-full min-w-0 max-w-[1500px] flex-col","children":["$","section",null,{"className":"flex min-w-0 flex-col rounded-xl border border-border bg-card p-5 mt-2","children":[["$","div",null,{"className":"flex shrink-0 items-center justify-between gap-4","children":[["$","h2",null,{"className":"text-sm font-medium tracking-tight","children":"Process detail"}],null]}],["$","div",null,{"className":"mt-4 flex min-h-0 flex-1 flex-col","children":["$","p",null,{"role":"status","className":"py-10 text-center text-sm text-muted-foreground","children":"Loading the process view…"}]}]]}]}]}]]}]]}],"children":["$","$L16",null,{}]}],null,["$","$L17",null,{"children":["$","$e",null,{"name":"Next.MetadataOutlet","children":"$@18"}]}]]}],"p":"$@19","v":null,"s":"$9"}}]]
28
28
  a:[["children",{"s":"processes","h":96,"d":{"r":["$","$1","c",{"children":[null,["$","$L6",null,{"parallelRouterKey":"children","template":["$","$L7",null,{}]}]]}],"p":"$@b","v":"$c","s":"$9"},"c":"$Qd"}]]
29
- 0:{"t":{"t":{"s":"","h":80,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f5d3162842dcac31.css","precedence":"next"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L4",null,{"attribute":"class","defaultTheme":"dark","enableSystem":true,"children":["$","$L5",null,{"children":["$","$L6",null,{"parallelRouterKey":"children","template":["$","$L7",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]}]}]}]}]]}],"p":"$@8","v":null,"s":"$9"},"c":"$Qa"},"h":{"r":["$","$1","h",{"children":[null,["$","$L1b",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","$L1d",null,{"children":[["$","div",null,{"hidden":true,"children":["$","$e",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"Processes — Rigscope"}],["$","meta","1",{"name":"description","content":"Self-hosted remote system monitor — a live fleet of collectors behind one authenticated hub."}],["$","link","2",{"rel":"icon","href":"/icon.svg?3b3fa3229e2d0d7a","type":"image/svg+xml","sizes":"any"}],["$","$L1e","3",{}]]}]}],null]}],null]}],"p":"$@1f","v":null,"s":"$9"}},"a":"$@20","u":"$@21","b":"ip43TIgmaByEBn2GFtvfO"}
29
+ 0:{"t":{"t":{"s":"","h":80,"d":{"r":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2abef6d49c1c2970.css","precedence":"next"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"children":["$","$L4",null,{"attribute":"class","defaultTheme":"dark","enableSystem":true,"children":["$","$L5",null,{"children":["$","$L6",null,{"parallelRouterKey":"children","template":["$","$L7",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]}]}]}]}]]}],"p":"$@8","v":null,"s":"$9"},"c":"$Qa"},"h":{"r":["$","$1","h",{"children":[null,["$","$L1b",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","$L1d",null,{"children":[["$","div",null,{"hidden":true,"children":["$","$e",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"Processes — Rigscope"}],["$","meta","1",{"name":"description","content":"Self-hosted remote system monitor — a live fleet of collectors behind one authenticated hub."}],["$","link","2",{"rel":"icon","href":"/icon.svg?3b3fa3229e2d0d7a","type":"image/svg+xml","sizes":"any"}],["$","$L1e","3",{}]]}]}],null]}],null]}],"p":"$@1f","v":null,"s":"$9"}},"a":"$@20","u":"$@21","b":"Jlbibe2_iFCljUO4-BUK7"}
30
30
  18:null
31
31
  9:300
32
32
  21:true
@@ -6,8 +6,8 @@
6
6
  "/alerts/page": "app/alerts/page.js",
7
7
  "/connections/page": "app/connections/page.js",
8
8
  "/login/page": "app/login/page.js",
9
- "/history/page": "app/history/page.js",
10
9
  "/page": "app/page.js",
10
+ "/history/page": "app/history/page.js",
11
11
  "/machines/[machineId]/page": "app/machines/[machineId]/page.js",
12
12
  "/processes/page": "app/processes/page.js"
13
13
  }
@@ -1 +1 @@
1
- "use strict";exports.id=168,exports.ids=[168],exports.modules={11449:(a,b,c)=>{c.d(b,{Cv:()=>e,H9:()=>d,Lf:()=>j,P$:()=>f,RL:()=>q,bP:()=>p,er:()=>m,oB:()=>i,ue:()=>o,yv:()=>l});let d=[{metric:"cpu.usage",label:"CPU usage",shortLabel:"CPU",unit:"percent",family:"cpu",colorSlot:0,description:"Total processor utilization"},{metric:"cpu.core",label:"Per-core CPU",shortLabel:"Per-core",unit:"percent",family:"cpu",colorSlot:0,description:"Logical-core utilization; heatmap for large selections"},{metric:"cpu.temperature",label:"CPU temperature",shortLabel:"Temperature",unit:"celsius",family:"cpu",colorSlot:3,description:"Identifiable CPU hwmon sensor temperature"},{metric:"cpu.power",label:"CPU package power",shortLabel:"Power",unit:"watts",family:"cpu",colorSlot:4,description:"Top-level RAPL package power draw"},{metric:"cpu.iowait",label:"CPU I/O wait",shortLabel:"I/O wait",unit:"percent",family:"cpu",colorSlot:2,description:"Processor time waiting on I/O"},{metric:"cpu.pressure",label:"CPU pressure",shortLabel:"Pressure",unit:"percent",family:"cpu",colorSlot:4,description:"Linux PSI CPU stall pressure (avg10)"},{metric:"memory.used",label:"Memory used",shortLabel:"Memory",unit:"bytes",family:"memory",colorSlot:1,description:"Physical memory in use"},{metric:"memory.usage",label:"Memory usage",shortLabel:"Memory %",unit:"percent",family:"memory",colorSlot:1,description:"Physical memory used as a share of total"},{metric:"memory.pressure.some",label:"Memory pressure (some)",shortLabel:"Pressure some",unit:"percent",family:"memory",colorSlot:2,description:"Linux PSI memory stall pressure, some tasks (avg10)"},{metric:"memory.pressure.full",label:"Memory pressure (full)",shortLabel:"Pressure full",unit:"percent",family:"memory",colorSlot:4,description:"Linux PSI memory stall pressure, all tasks (avg10)"},{metric:"swap.used",label:"Swap used",shortLabel:"Swap",unit:"bytes",family:"swap",colorSlot:2,description:"Swap space in use"},{metric:"gpu.utilization",label:"GPU utilization",shortLabel:"Utilization",unit:"percent",family:"gpus",colorSlot:0,description:"Per-card graphics processor utilization"},{metric:"gpu.memory.used",label:"GPU memory used",shortLabel:"VRAM",unit:"bytes",family:"gpus",colorSlot:1,description:"Per-card video memory in use"},{metric:"gpu.temperature",label:"GPU temperature",shortLabel:"Temperature",unit:"celsius",family:"gpus",colorSlot:3,description:"Per-card temperature"},{metric:"gpu.power",label:"GPU power",shortLabel:"Power",unit:"watts",family:"gpus",colorSlot:4,description:"Per-card power draw"},{metric:"fs.used",label:"Filesystem used",shortLabel:"Filesystem",unit:"bytes",family:"disks",colorSlot:1,description:"Used space per mounted filesystem"},{metric:"fs.usage",label:"Filesystem usage",shortLabel:"Filesystem %",unit:"percent",family:"disks",colorSlot:1,description:"Used capacity per mounted filesystem, derived from a positive total"},{metric:"fs.inodes.usage",label:"Inode usage",shortLabel:"Inodes %",unit:"percent",family:"disks",colorSlot:2,description:"Used inodes per filesystem where the collector can read them"},{metric:"disk.read",label:"Disk read",shortLabel:"Read",unit:"bytes_per_second",family:"disks",colorSlot:0,description:"Device read throughput"},{metric:"disk.write",label:"Disk write",shortLabel:"Write",unit:"bytes_per_second",family:"disks",colorSlot:2,description:"Device write throughput"},{metric:"disk.read.latency",label:"Disk read latency",shortLabel:"Read latency",unit:"milliseconds",family:"disks",colorSlot:0,description:"Average device read latency"},{metric:"disk.write.latency",label:"Disk write latency",shortLabel:"Write latency",unit:"milliseconds",family:"disks",colorSlot:2,description:"Average device write latency"},{metric:"disk.utilization",label:"Disk utilization",shortLabel:"Utilization",unit:"percent",family:"disks",colorSlot:3,description:"Share of time the device had I/O in flight"},{metric:"io.pressure.some",label:"I/O pressure (some)",shortLabel:"I/O some",unit:"percent",family:"disks",colorSlot:3,description:"Linux PSI I/O stall pressure, some tasks (avg10)"},{metric:"io.pressure.full",label:"I/O pressure (full)",shortLabel:"I/O full",unit:"percent",family:"disks",colorSlot:4,description:"Linux PSI I/O stall pressure, all tasks (avg10)"},{metric:"net.rx",label:"Network received",shortLabel:"Received",unit:"bytes_per_second",family:"network",colorSlot:0,description:"Interface receive rate"},{metric:"net.tx",label:"Network sent",shortLabel:"Sent",unit:"bytes_per_second",family:"network",colorSlot:2,description:"Interface transmit rate"}];function e(a,b){return a.filter(c=>{for(let[d,e,f]of[["memory","memory.used","memory.usage"],["filesystem","fs.used","fs.usage"]])if(a.includes(e)&&a.includes(f)&&(c===e||c===f))return c===("percent"===b[d]?f:e);return!0})}let f=[{id:"cpu",label:"CPU",metrics:["cpu.usage","cpu.core","cpu.iowait","cpu.pressure","cpu.temperature","cpu.power"]},{id:"memory",label:"Memory",metrics:["memory.used","memory.usage","swap.used","memory.pressure.some","memory.pressure.full"]},{id:"gpu",label:"GPU",metrics:["gpu.utilization","gpu.memory.used","gpu.temperature","gpu.power"]},{id:"disk",label:"Storage",metrics:["fs.used","fs.usage","fs.inodes.usage","disk.read","disk.write","disk.read.latency","disk.write.latency","disk.utilization","io.pressure.some","io.pressure.full"]},{id:"network",label:"Network",metrics:["net.rx","net.tx"]}],g=["var(--cpu)","var(--mem)","color-mix(in oklab, var(--swap) 75%, var(--foreground))","var(--warn)","var(--crit)","var(--accent)"],h=[void 0,"7 4","2 3","10 3 2 3","4 4","1 3"];function i(a){return d.find(b=>b.metric===a)??null}function j(a,b){let c=Math.max(0,b),d=a.colorSlot+c,e=(c+Math.floor(d/g.length))%h.length;return{color:g[d%g.length],dash:h[e]}}let k={cpu:"CPU",memory:"Memory",swap:"Swap",gpus:"GPU metrics",disks:"Disk metrics",network:"Network metrics"};function l(a,b){let c=i(b);if(null===c||void 0===a)return{available:!0,reason:null};let d=a.inventory?.capabilities?.[c.family];if(!d||"supported"===d.status)return{available:!0,reason:null};let e=d.reason?.trim();return{available:!1,reason:e?`${k[c.family]}: ${d.status} — ${e}`:`${k[c.family]} are ${d.status} on this machine.`}}function m(a){if(void 0===a)return[];let b=[],c=c=>{!(b.length>=16)&&l(a,c).available&&b.push(c)};c("cpu.usage"),c("memory.used");let d=function(a){let b=a.inventory?.memory.swapTotalBytes;if("number"==typeof b)return b;let c=a.metrics?.payload.swap;return c?.status==="ok"?c.totalBytes:null}(a);return null!==d&&d>0&&c("swap.used"),o(a,[]).length>0&&(c("gpu.utilization"),c("gpu.memory.used")),b}function n(a){let b=a.includes(":")?a.slice(a.indexOf(":")+1):a;return b.length<=18?b:`${b.slice(0,10)}…${b.slice(-4)}`}function o(a,b){let c=new Set(b.filter(a=>a.metric.startsWith("gpu.")&&""!==a.resourceId&&a.points.some(a=>null!==a.avg||null!==a.min||null!==a.max)).map(a=>a.resourceId)),d=[],e=new Set;(a?.inventory?.gpus??[]).forEach(a=>{let b="supported"===a.telemetry;(b||c.has(a.id))&&(e.add(a.id),d.push({id:a.id,label:a.name.trim()||n(a.id),index:d.length,totalBytes:a.memoryTotalBytes,supported:b,hasHistory:c.has(a.id)}))});let f=a?.metrics?.payload.gpus;if(f?.status==="ok")for(let a of f.devices)e.has(a.id)||"ok"!==a.status||(e.add(a.id),d.push({id:a.id,label:n(a.id),index:d.length,totalBytes:a.memoryTotalBytes,supported:!0,hasHistory:c.has(a.id)}));for(let a of[...c].sort())e.has(a)||d.push({id:a,label:a.startsWith("pci:")?`Previously detected GPU (${n(a)})`:n(a),index:d.length,totalBytes:null,supported:!0,hasHistory:!0});return d}function p(a,b,c){if(""===c)return i(b)?.shortLabel??"Total";let d=i(b);if(null===d)return n(c);switch(d.family){case"gpus":{let b=a?.inventory?.gpus.find(a=>a.id===c);return b?.name.trim()||n(c)}case"disks":{if(b.startsWith("fs.")){let b=a?.inventory?.filesystems.find(a=>a.id===c);return b?.mountPoint||n(c)}let d=a?.inventory?.disks.find(a=>a.id===c);return d?.name||n(c)}case"network":{let b=a?.inventory?.network.find(a=>a.id===c);return b?.name||n(c)}case"cpu":{let a=/^core:(\d+)$/.exec(c);return a?`Core ${a[1]}`:n(c)}default:return n(c)}}function q(a){switch(a){case"percent":return"%";case"bytes":return"bytes";case"bytes_per_second":return"bytes/s";case"celsius":return"\xb0C";case"watts":return"W";case"milliseconds":return"ms";default:return a}}},15670:(a,b,c)=>{c.d(b,{t:()=>k});var d=c(48249),e=c(67484),f=c(96480),g=c(66338),h=c(11449),i=c(55280),j=c(47978);function k(a){let{title:b,unit:c,series:k,fromMs:l,toMs:m,stepMs:n,gaps:o,hiddenKeys:p,onToggleSeries:q,emptyMessage:r,note:s}=a,t=(0,e.useMemo)(()=>k.filter(a=>!p.has(a.key)),[k,p]),u=(0,j.Au)({series:t,fromMs:l,toMs:m,stepMs:n,gaps:o}),v=(0,e.useRef)(null),w=(0,e.useMemo)(()=>t.flatMap(a=>a.points),[t]),x=w.some(a=>null!==a.avg||null!==a.min||null!==a.max),y=Math.max(1,m-l),z=(0,e.useMemo)(()=>(0,f.$z)(o,l,m,w),[o,l,m,w]),A=(0,e.useMemo)(()=>(0,f.kk)(c,w.flatMap(a=>[a.min,a.max,a.avg]).filter(a=>null!==a)),[c,w]),B=Math.max(1e-9,A.max-A.min),C=(0,e.useCallback)(a=>6+(Math.min(m,Math.max(l,a))-l)/y*788,[l,m,y]),D=(0,e.useCallback)(a=>6+(1-(a-A.min)/B)*148,[A.min,B]),E=(0,e.useMemo)(()=>t.map(b=>{let c=(0,f.o)(b.points,{stepMs:n,gaps:z,fromMs:l,toMs:m}).map(b=>(0,f.SG)(b,a.maxDrawPoints??601,n));return{...b,segments:c,envelope:c.filter(a=>a.length>1).map(a=>{let b=a.map(a=>`${C(a.t).toFixed(2)},${D(a.max??a.avg).toFixed(2)}`),c=[...a].reverse().map(a=>`${C(a.t).toFixed(2)},${D(a.min??a.avg).toFixed(2)}`);return`M${b.join("L")}L${c.join("L")}Z`}).join(" "),path:c.filter(a=>a.length>1).map(a=>a.map((a,b)=>`${0===b?"M":"L"}${C(a.t).toFixed(2)},${D(a.avg).toFixed(2)}`).join(" ")).join(" ")}}),[t,a.maxDrawPoints,n,z,l,m,C,D]),F=(0,e.useMemo)(()=>(function(a,b,c,d,e,h){if(0===c.length)return`${a} chart: no series selected.`;let i=c.map(a=>{let c=(0,f.T6)(a.points);return`${a.label}: ${function(a,b){let c=[];if(null!==a.latest){let d=null!==a.latestT?(0,g.ei)(a.latestT):null;c.push(`latest ${(0,g.dd)(a.latest,b)}${d?` at ${d}`:""}`)}return c.push(`average ${(0,g.dd)(a.avg,b)}`),null!==a.min&&null!==a.max&&c.push(`recorded range ${(0,g.dd)(a.min,b)} to ${(0,g.dd)(a.max,b)}`),c.join(", ")}(c,b)}`}),j=h>0?`${h} shaded interval${1===h?"":"s"} without stored data.`:"";return`${a} time-series chart. ${i.join(". ")}. ${j} Time range ${(0,g.ei)(d)} to ${(0,g.ei)(e)}.`})(b,c,t,l,m,z.length),[b,c,t,l,m,z.length]),G=(0,e.useMemo)(()=>new Map(k.map(a=>[a.key,(0,f.T6)(a.points)])),[k]),H=null===u.timeMs?[]:t.map(a=>({...a,point:(0,i.bO)(a.points,u.timeMs,n,o)})),I=null===u.timeMs?null:C(u.timeMs),J=`${u.id}-tooltip`,K=`${u.id}-instructions`,L=(0,e.useMemo)(()=>(0,d.jsxs)(d.Fragment,{children:[A.ticks.map(a=>(0,d.jsx)("line",{x1:6,x2:794,y1:D(a),y2:D(a),stroke:"var(--border)",strokeWidth:"1",vectorEffect:"non-scaling-stroke"},`grid-${a}`)),z.map(a=>(0,d.jsx)("rect",{x:C(a.fromMs),y:6,width:Math.max(1,C(a.toMs)-C(a.fromMs)),height:148,fill:"var(--muted-foreground)",opacity:"0.09"},`gap-${a.fromMs}-${a.toMs}-${a.kind}`)),E.map(a=>{let b=a.envelope;return""===b?null:(0,d.jsx)("path",{d:b,fill:a.color,opacity:"0.14",stroke:"none"},`band-${a.key}`)}),E.map(a=>{let b=a.path;return""===b?null:(0,d.jsx)("path",{d:b,fill:"none",stroke:a.color,strokeWidth:"2",strokeDasharray:a.dash,strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"},`line-${a.key}`)}),E.flatMap(a=>a.segments.filter(a=>1===a.length).map(b=>{let c=b[0],e=C(c.t),f=D(c.avg);return(0,d.jsx)("line",{x1:e-2.5,x2:e+2.5,y1:f,y2:f,stroke:a.color,strokeWidth:"2.5",strokeLinecap:"round",vectorEffect:"non-scaling-stroke"},`dot-${a.key}-${c.t}`)}))]}),[A,C,D,z,E]);return(0,d.jsxs)("figure",{className:`flex min-w-0 flex-col gap-2 ${a.className??""}`,children:[(0,d.jsxs)("div",{className:"flex min-h-8 flex-wrap items-center justify-between gap-2",children:[(0,d.jsx)("h3",{className:"text-xs font-medium tracking-tight text-foreground",children:b}),(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("span",{className:"tnum shrink-0 text-xs text-muted-foreground",children:s??(0,h.RL)(c)}),a.action]})]}),x?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex min-w-0 gap-2",children:[(0,d.jsx)("div",{"aria-hidden":!0,className:"flex h-40 w-14 shrink-0 flex-col justify-between py-0.5 text-right text-xs leading-none tnum text-muted-foreground",children:[...A.ticks].reverse().map(a=>(0,d.jsx)("span",{children:(0,g.Ah)(a,c)},a))}),(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsxs)("div",{className:"relative touch-pan-y select-none",onPointerLeave:a=>{"mouse"===a.pointerType&&u.clear()},onPointerDown:a=>{if("mouse"===a.pointerType)return;a.currentTarget.setPointerCapture(a.pointerId);let b=v.current?.getBoundingClientRect();b&&u.inspect((0,i.yk)(a.clientX,b.left,b.width,l,m,.0075))},onPointerCancel:u.clear,onContextMenu:a=>a.preventDefault(),onPointerMove:a=>{let b=v.current?.getBoundingClientRect();b&&u.inspect((0,i.yk)(a.clientX,b.left,b.width,l,m,.0075))},children:[(0,d.jsx)("p",{id:K,className:"sr-only",children:"Touch and drag horizontally to inspect readings. Use Left and Right arrows to inspect recorded readings, Home or End to jump, and Escape to dismiss."}),(0,d.jsxs)("svg",{ref:v,viewBox:"0 0 800 160",preserveAspectRatio:"none",role:"img","aria-label":F,tabIndex:0,"aria-describedby":`${K}${u.active?` ${J}`:""}`,onFocus:u.onFocus,onBlur:u.clear,onKeyDown:u.onKeyDown,className:"block h-40 w-full cursor-crosshair rounded-sm focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent",children:[(0,d.jsx)("title",{children:b}),L,null!==I?(0,d.jsxs)("g",{"aria-hidden":!0,pointerEvents:"none",children:[(0,d.jsx)("line",{x1:I,x2:I,y1:6,y2:154,stroke:"var(--muted-foreground)",strokeWidth:"1",strokeDasharray:"3 3",vectorEffect:"non-scaling-stroke"}),H.map(({key:a,color:b,point:c})=>c?.avg==null?null:(0,d.jsx)("circle",{cx:C(c.t),cy:D(c.avg),r:"3.5",fill:b,stroke:"var(--card)",strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"},a))]}):null]}),u.active&&null!==u.timeMs&&null!==I?(0,d.jsx)(j.eg,{id:J,timeMs:u.timeMs,fraction:I/800,unit:c,readings:H}):null]}),(0,d.jsx)("div",{"aria-hidden":!0,className:"mt-1 flex justify-between gap-2 text-xs leading-tight tnum text-muted-foreground",children:(0,f.Cf)(l,m).map((a,b,c)=>(0,d.jsx)("span",{className:`${0===b?"text-left":b===c.length-1?"text-right":"hidden text-center sm:inline"}`,children:(0,g.O5)(a,y)},a))})]})]}),(0,d.jsx)("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1.5 text-xs",children:k.map(a=>{let b=!p.has(a.key),e=G.get(a.key);return(0,d.jsxs)("label",{className:"inline-flex min-h-7 cursor-pointer items-center gap-1.5",title:b?`Hide ${a.label}`:`Show ${a.label}`,children:[(0,d.jsx)("input",{type:"checkbox",checked:b,onChange:()=>q(a.key),className:"peer sr-only"}),(0,d.jsx)("span",{"aria-hidden":!0,className:"flex h-4 w-5 shrink-0 items-center justify-center rounded-sm peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:[outline-color:var(--focus)]",children:(0,d.jsx)("svg",{viewBox:"0 0 20 8",className:"h-2 w-5","aria-hidden":!0,children:(0,d.jsx)("line",{x1:"1",y1:"4",x2:"19",y2:"4",stroke:a.color,strokeWidth:"2.5",strokeDasharray:a.dash,strokeLinecap:"round"})})}),(0,d.jsx)("span",{className:b?"text-foreground":"text-muted-foreground line-through",children:a.label}),(0,d.jsx)("span",{className:"tnum text-muted-foreground",children:(0,g.dd)(e.latest,c)})]},`legend-${a.key}`)})})]}):(0,d.jsx)("div",{className:"flex min-h-32 items-center justify-center rounded-lg border border-dashed border-border px-4 py-6 text-center text-xs text-muted-foreground",children:0===k.length?r:0===t.length?"All series are hidden. Re-enable one in the legend below.":r}),!x&&k.length>0?(0,d.jsx)("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1.5 text-xs",children:k.map(a=>{let b=!p.has(a.key);return(0,d.jsxs)("label",{className:"inline-flex min-h-7 cursor-pointer items-center gap-1.5",children:[(0,d.jsx)("input",{type:"checkbox",checked:b,onChange:()=>q(a.key),className:"peer sr-only"}),(0,d.jsx)("span",{"aria-hidden":!0,className:"flex h-4 w-5 shrink-0 items-center justify-center peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:[outline-color:var(--focus)]",children:(0,d.jsx)("svg",{viewBox:"0 0 20 8",className:"h-2 w-5","aria-hidden":!0,children:(0,d.jsx)("line",{x1:"1",y1:"4",x2:"19",y2:"4",stroke:a.color,strokeWidth:"2.5",strokeDasharray:a.dash,strokeLinecap:"round"})})}),(0,d.jsx)("span",{className:b?"text-foreground":"text-muted-foreground line-through",children:a.label})]},`legend-empty-${a.key}`)})}):null]})}},43607:(a,b,c)=>{c.d(b,{n:()=>e});var d=c(67484);function e({machineId:a,metricsKey:b,coreIdsKey:c,range:f,enabled:g=!0,autoRefresh:h=!0,refreshNonce:i=0}){let[j,k]=(0,d.useState)({machineId:a,metricsKey:b,coreIdsKey:c,range:f}),l=j.machineId===a&&j.range===f?j:{machineId:a,metricsKey:b,coreIdsKey:c,range:f},m=l.metricsKey,n=l.coreIdsKey,o=`${a}|${m}|${f}|${n??"all"}`,[p,q]=(0,d.useState)(null),[r,s]=(0,d.useState)(null),[t,u]=(0,d.useState)(null);return(0,d.useRef)(i),{data:g&&p?.result.machineId===a&&p.range===f?p:null,error:g&&r?.key===o?r.error:null,loading:g&&t?.key===o,manualRefreshing:g&&t?.key===o&&t.manual}}c(66338)},47978:(a,b,c)=>{c.d(b,{Au:()=>j,_C:()=>i,eg:()=>k});var d=c(48249),e=c(67484),f=c(55280),g=c(66338);let h=(0,e.createContext)(null);function i({children:a}){let[b,c]=(0,e.useState)(null),f=(0,e.useCallback)(a=>c(b=>b?.timeMs===a?.timeMs&&b?.source===a?.source?b:a),[]),g=(0,e.useMemo)(()=>({cursor:b,setCursor:f}),[b,f]);return(0,d.jsx)(h.Provider,{value:g,children:a})}function j({series:a,fromMs:b,toMs:c,stepMs:d,gaps:g}){let i=(0,e.useId)(),[k,l]=(0,e.useState)(null),m=(0,e.useContext)(h),n=m?m.cursor:k,o=m?m.setCursor:l,p=(0,e.useRef)(null),q=(0,e.useRef)(null),r=(0,e.useCallback)(()=>{null!==p.current&&cancelAnimationFrame(p.current),p.current=null,q.current=null},[]),s=(0,e.useMemo)(()=>(0,f.X)(a).filter(a=>a.t<=c&&a.t+d/2>=b),[a,b,c,d]),t=n&&n.timeMs>=b-d/2&&n.timeMs<=c?n.timeMs:null,u=null!==t&&n?.source===i,v=()=>{r(),n?.source===i&&o(null)};return{id:i,timeMs:t,active:u,inspect:a=>{let e=Math.max(b,Math.min(c,a)),h=(0,f.bO)(s,e,d,g);q.current={timeMs:h?.t??e,source:i},null===p.current&&(p.current=requestAnimationFrame(()=>{p.current=null,o(q.current),q.current=null}))},clear:v,onKeyDown:a=>{if(r(),"Escape"===a.key)a.preventDefault(),v();else if(["ArrowLeft","ArrowRight","Home","End"].includes(a.key)){a.preventDefault();let b=(0,f.o7)(s,t,a.key);null!==b&&o({timeMs:b,source:i})}},onFocus:()=>{r(),o({timeMs:s.at(-1)?.t??c,source:i})}}}function k({id:a,timeMs:b,fraction:c,unit:f,readings:h}){let[i]=(0,e.useState)(()=>c>.5?"left":"right");return(0,d.jsxs)("div",{id:a,role:"tooltip",className:`pointer-events-none absolute bottom-full mb-2 md:pointer-events-auto md:bottom-auto md:top-2 md:mb-0 z-10 max-h-56 w-56 max-w-[calc(100%-1rem)] overflow-y-auto rounded-md border border-border bg-card p-3 text-xs text-foreground ${"left"===i?"left-2":"right-2"}`,children:[(0,d.jsx)("p",{className:"tnum font-medium",children:(0,g.r6)(b)}),(0,d.jsx)("p",{className:"mb-2 text-muted-foreground",children:"Recorded bucket average"}),(0,d.jsx)("dl",{className:"grid grid-cols-[minmax(0,1fr)_auto] items-baseline gap-x-4 gap-y-1.5",children:h.map(({key:a,label:c,color:e,point:h})=>(0,d.jsxs)("div",{className:"contents",children:[(0,d.jsxs)("dt",{className:"flex min-w-0 items-center gap-1.5",children:[(0,d.jsx)("span",{"aria-hidden":!0,className:"h-2 w-2 shrink-0 rounded-full",style:{backgroundColor:e}}),(0,d.jsx)("span",{className:"break-words",children:c})]}),(0,d.jsxs)("dd",{className:"tnum text-right",children:[h?.avg==null?"No reading":(0,g.dd)(h.avg,f),h&&h.t!==b?(0,d.jsx)("span",{className:"block text-muted-foreground",children:(0,g.ei)(h.t)}):null]})]},a))})]})}},55280:(a,b,c)=>{function d(a,b,c,d){if(d.some(a=>b>a.fromMs&&b<a.toMs))return null;let e=0,f=a.length;for(;e<f;){let c=e+f>>>1;a[c].t<b?e=c+1:f=c}let g=a[e-1],h=a[e],i=g&&(!h||b-g.t<=h.t-b)?g:h;return!i||Math.abs(i.t-b)>c/2||d.some(a=>a.toMs>Math.min(b,i.t)&&a.fromMs<Math.max(b,i.t))?null:i}function e(a){return[...new Set(a.flatMap(a=>a.points.map(a=>a.t)))].sort((a,b)=>a-b).map(a=>({t:a,min:null,max:null,avg:null}))}function f(a,b,c,d,e,g=0){return Math.round(d+Math.max(0,Math.min(1,((c>0?(a-b)/c:0)-g)/(1-2*g)))*(e-d))}function g(a,b,c){return 0===a.length?null:"Home"===c?a[0].t:"End"===c||null===b?a.at(-1).t:"ArrowLeft"===c?[...a].reverse().find(a=>a.t<b)?.t??a[0].t:"ArrowRight"===c?a.find(a=>a.t>b)?.t??a.at(-1).t:b}c.d(b,{X:()=>e,bO:()=>d,o7:()=>g,yk:()=>f})},66338:(a,b,c)=>{c.d(b,{Ah:()=>l,I_:()=>p,O5:()=>o,Vw:()=>v,bf:()=>u,dd:()=>k,ei:()=>m,fH:()=>q,ly:()=>e,pI:()=>d,r6:()=>n,zp:()=>f});let d=[{id:"10m",shortLabel:"10m",label:"Last 10 minutes",ms:6e5,refreshMs:1e3},{id:"1h",shortLabel:"1h",label:"Last hour",ms:36e5,refreshMs:1e3},{id:"6h",shortLabel:"6h",label:"Last 6 hours",ms:216e5,refreshMs:1e3},{id:"24h",shortLabel:"24h",label:"Last 24 hours",ms:864e5,refreshMs:1e3},{id:"7d",shortLabel:"7d",label:"Last 7 days",ms:6048e5,refreshMs:1e3}];function e(a){return d.find(b=>b.id===a)??d[0]}function f(a){return e(a).refreshMs}let g=["B","KiB","MiB","GiB","TiB","PiB"];function h(a){let b=Math.abs(a),c=0;for(;b>=1024&&c<g.length-1;)b/=1024,c+=1;return{value:a<0?-b:b,unit:g[c]}}function i(a,b){return String(Number(a.toFixed(b)))}function j(a,b=""){let{value:c,unit:d}=h(a),e=Math.abs(c)>=100?0:1;return`${i(c,e)} ${d}${b}`}function k(a,b){if(null==a||!Number.isFinite(a))return"—";switch(b){case"percent":return`${i(a,1)}%`;case"bytes":return j(a);case"bytes_per_second":return j(a,"/s");case"celsius":return`${i(a,1)}\xb0C`;case"watts":return`${i(a,1)} W`;case"milliseconds":return`${i(a,10>Math.abs(a)?2:1)} ms`;default:return i(a,2)}}function l(a,b){if(!Number.isFinite(a))return"—";switch(b){case"percent":return`${i(a,0)}%`;case"bytes":case"bytes_per_second":{let{value:c,unit:d}=h(a),e=Math.abs(c)>=10||0===c?0:1;return`${i(c,e)} ${d}${"bytes_per_second"===b?"/s":""}`}case"celsius":return`${i(a,0)}\xb0C`;case"watts":return`${i(a,0)} W`;case"milliseconds":return`${i(a,+(10>Math.abs(a)))} ms`;default:return i(a,1)}}function m(a){return new Date(a).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}function n(a){return new Date(a).toLocaleString(void 0,{dateStyle:"medium",timeStyle:"medium"})}function o(a,b){let c=new Date(a);return b>=1728e5?c.toLocaleDateString(void 0,{month:"short",day:"numeric"}):b>=864e5?c.toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}):c.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",hour12:!1})}function p(a){let b=Math.max(0,a);return b>=36e5?`${i(b/36e5,1)} h`:b>=6e4?`${i(b/6e4,1)} min`:`${i(b/1e3,1)} s`}function q(a,b,c){let d=a.filter(a=>a.toMs>=b&&a.fromMs<=c);if(0===d.length)return"No recorded gaps in this range.";let e=d.filter(a=>"dropped"===a.kind).length,f=d.length-e,g=[];f>0&&g.push(`${f} missed interval${1===f?"":"s"}`),e>0&&g.push(`${e} dropped report${1===e?"":"s"}`);let h=[...new Set(d.map(a=>a.reason).filter(a=>"string"==typeof a&&a.length>0))],i=h.length>0?` (${h.slice(0,3).join("; ")})`:"";return`${g.join(" and ")}${i}.`}function r(a){return null!==a&&"object"==typeof a&&!Array.isArray(a)}function s(a){return"number"==typeof a&&Number.isFinite(a)}function t(a){return null===a||s(a)}function u(a){if(!r(a)||"string"!=typeof a.machineId||0===a.machineId.length||!s(a.fromMs)||!s(a.toMs)||a.toMs<=a.fromMs||!s(a.stepMs)||a.stepMs<=0||"raw"!==a.tier&&"1m"!==a.tier&&"1h"!==a.tier||"boolean"!=typeof a.truncated||!s(a.elapsedMs)||!Array.isArray(a.series)||!Array.isArray(a.gaps))return null;let b=[];for(let c of a.series){if(!r(c)||"string"!=typeof c.metric||"string"!=typeof c.resourceId||"string"!=typeof c.unit||!Array.isArray(c.points))return null;let a=[];for(let b of c.points){if(!r(b)||!s(b.t)||!t(b.min)||!t(b.max)||!t(b.avg))return null;a.push({t:b.t,min:b.min,max:b.max,avg:b.avg})}b.push({metric:c.metric,resourceId:c.resourceId,unit:c.unit,points:a})}let c=[];for(let b of a.gaps){if(!r(b)||!s(b.fromMs)||!s(b.toMs)||"missing"!==b.kind&&"dropped"!==b.kind)return null;let a={fromMs:b.fromMs,toMs:b.toMs,kind:b.kind};"string"==typeof b.reason&&(a.reason=b.reason),s(b.droppedRecords)&&(a.droppedRecords=b.droppedRecords),c.push(a)}return{machineId:a.machineId,fromMs:a.fromMs,toMs:a.toMs,stepMs:a.stepMs,tier:a.tier,series:b,gaps:c,truncated:a.truncated,elapsedMs:a.elapsedMs}}function v(a,b,c,d,f=600,g){let{fromMs:h,toMs:i}={fromMs:d-e(c).ms,toMs:d},j=new URLSearchParams({machineId:a,metrics:b.join(","),from:String(Math.floor(h)),to:String(Math.floor(i)),maxPoints:String(f)});return void 0!==g&&j.set("coreIds",g.join(",")),`/api/history?${j.toString()}`}},96480:(a,b,c)=>{function d(a){return null!==a.avg&&Number.isFinite(a.avg)}function e(a){return null!==a&&Number.isFinite(a)?a:null}function f(a){let b=[];for(let c of a){let a=b.at(-1);if(void 0!==a&&c.fromMs<=a.toMs){a.toMs=Math.max(a.toMs,c.toMs),"missing"===a.kind&&"dropped"===c.kind&&(a.kind="dropped"),void 0===a.reason&&void 0!==c.reason&&(a.reason=c.reason),void 0===a.droppedRecords&&void 0!==c.droppedRecords&&(a.droppedRecords=c.droppedRecords);continue}b.push({...c})}return b}function g(a,b,c,e){let g=f(a.map(a=>({...a,fromMs:Math.max(b,a.fromMs),toMs:Math.min(c,a.toMs)})).filter(a=>a.toMs>a.fromMs).sort((a,b)=>a.fromMs-b.fromMs||a.toMs-b.toMs));return void 0===e?g:function(a,b,c,e){if(0===a.length)return[];let g=[...new Set(b.filter(d).map(a=>a.t).filter(a=>Number.isFinite(a)))].sort((a,b)=>a-b),h=[];for(let b of a){let a=Math.max(c,Math.min(e,b.fromMs)),d=Math.max(c,Math.min(e,b.toMs));if(d<=a)continue;let f=Math.max(c,function(a,b){let c=0,d=a.length;for(;c<d;){let e=c+d>>>1;a[e]<=b?c=e+1:d=e}return c>0?a[c-1]:null}(g,a)??a),i=Math.min(e,function(a,b){let c=0,d=a.length;for(;c<d;){let e=c+d>>>1;a[e]<b?c=e+1:d=e}return c<a.length?a[c]:null}(g,d)??d);i<=f||h.push({...b,fromMs:f,toMs:i})}return h.sort((a,b)=>a.fromMs-b.fromMs||a.toMs-b.toMs),f(h)}(g,e,b,c)}function h(a,b,c){return Math.max(a,"1h"===b?36e5:"1m"===b?6e4:100,c??0)}function i(a,b){let c=[...a].sort((a,b)=>a.t-b.t),e=g(b.gaps,b.fromMs,b.toMs),f=Math.max(1,b.stepMs),h=[],i=[],j=()=>{i.length>0&&h.push(i),i=[]};for(let a of c){if(!d(a)){j();continue}let b=i.at(-1);if(void 0!==b){let c=!a.merged&&!b.merged&&(a.t<b.t||a.t-b.t>1.5*f),d=!0===a.gapBefore||function(a,b,c){return c.some(c=>c.toMs>a&&c.fromMs<b)}(b.t,a.t,e);(c||d)&&j()}i.push(a)}return j(),h}function j(a,b,c){if(b<=0)return[];let f=[...a].sort((a,b)=>a.t-b.t);if(f.length<=b)return f.map(a=>({...a}));let g=Math.max(2,Math.ceil(f.length/b)),h=Math.max(1,c),i=[],j=[],k=!1,l=null,m=()=>{if(0===j.length)return;let a=null,b=null,c=0,d=0;for(let f of j){let g=e(f.min),h=e(f.max);null!==g&&(null===a||g<a)&&(a=g),null!==h&&(null===b||h>b)&&(b=h);let i=e(f.avg);null!==i&&(c+=i,d+=1)}i.push({t:j[0].t,min:a,max:b,avg:d>0?c/d:null,...j.length>1?{merged:!0}:{},...k?{gapBefore:!0}:{}}),j=[],k=!1};for(let a of f){if(!d(a)){m(),i.push({...a}),l=null;continue}let b=null!==l&&a.t>=l.t&&a.t-l.t<=1.5*h;j.length>0&&(!b||j.length>=g)&&m(),0===j.length&&(k=null!==l&&!b),j.push(a),l=a}return m(),i}function k(a){let b=null,c=null,d=0,f=0,g=null,h=null,i=null,j=null;for(let k of a){if(null===k.avg)continue;(null===i||k.t<i)&&(i=k.t),(null===j||k.t>j)&&(j=k.t);let a=e(k.min),l=e(k.max);null!==a&&(null===b||a<b)&&(b=a),null!==l&&(null===c||l>c)&&(c=l),null!==k.avg&&Number.isFinite(k.avg)&&(d+=k.avg,f+=1,g=k.avg,h=k.t)}return{count:f,min:b,max:c,avg:f>0?d/f:null,latest:g,latestT:h,firstT:i,lastT:j}}function l(a){if(!Number.isFinite(a)||a<=0)return 1;let b=Math.pow(10,Math.floor(Math.log10(a))),c=a/b;return(c<=1?1:c<=2?2:c<=5?5:10)*b}function m(a,b){if("percent"===a)return{min:0,max:100,ticks:[0,25,50,75,100]};let c=b.filter(a=>null!==a&&Number.isFinite(a));if(0===c.length)return{min:0,max:1,ticks:[0,1]};let d=Math.min(...c),e=Math.max(...c);if("celsius"===a){let a=Math.max(1,(e-d)*.1);d=5*Math.floor((d-a)/5),e=5*Math.ceil((e+a)/5)}else d=0,e=e>0?e:1;e<=d&&(e=d+1);let f=l((e-d)/4),g=Math.floor(d/f)*f,h=Math.ceil(e/f)*f,i=function(a,b,c=4){if(!Number.isFinite(a)||!Number.isFinite(b))return[0,1];if(b<=a)return[a];let d=l((b-a)/Math.max(1,c)),e=Math.ceil(a/d)*d,f=[];for(let a=e;a<=b+.001*d&&f.length<20;a+=d)f.push(Number(a.toPrecision(12)));return f.length>0?f:[a,b]}(g,h,4);return{min:g,max:h,ticks:i}}function n(a,b,c=4){let d=Math.max(2,Math.floor(c)),e=Math.max(0,b-a);return Array.from({length:d},(b,c)=>a+e*c/(d-1))}c.d(b,{$z:()=>g,Cf:()=>n,SG:()=>j,T6:()=>k,jl:()=>h,kk:()=>m,o:()=>i})}};
1
+ "use strict";exports.id=168,exports.ids=[168],exports.modules={11449:(a,b,c)=>{c.d(b,{Cv:()=>e,H9:()=>d,Lf:()=>j,P$:()=>f,RL:()=>q,bP:()=>p,er:()=>m,oB:()=>i,ue:()=>o,yv:()=>l});let d=[{metric:"cpu.usage",label:"CPU usage",shortLabel:"CPU",unit:"percent",family:"cpu",colorSlot:0,description:"Total processor utilization"},{metric:"cpu.core",label:"Per-core CPU",shortLabel:"Per-core",unit:"percent",family:"cpu",colorSlot:0,description:"Logical-core utilization; heatmap for large selections"},{metric:"cpu.temperature",label:"CPU temperature",shortLabel:"Temperature",unit:"celsius",family:"cpu",colorSlot:3,description:"Identifiable CPU hwmon sensor temperature"},{metric:"cpu.power",label:"CPU package power",shortLabel:"Power",unit:"watts",family:"cpu",colorSlot:4,description:"Top-level RAPL package power draw"},{metric:"cpu.iowait",label:"CPU I/O wait",shortLabel:"I/O wait",unit:"percent",family:"cpu",colorSlot:2,description:"Processor time waiting on I/O"},{metric:"cpu.pressure",label:"CPU pressure",shortLabel:"Pressure",unit:"percent",family:"cpu",colorSlot:4,description:"Linux PSI CPU stall pressure (avg10)"},{metric:"memory.used",label:"Memory used",shortLabel:"Memory",unit:"bytes",family:"memory",colorSlot:1,description:"Physical memory in use"},{metric:"memory.usage",label:"Memory usage",shortLabel:"Memory %",unit:"percent",family:"memory",colorSlot:1,description:"Physical memory used as a share of total"},{metric:"memory.pressure.some",label:"Memory pressure (some)",shortLabel:"Pressure some",unit:"percent",family:"memory",colorSlot:2,description:"Linux PSI memory stall pressure, some tasks (avg10)"},{metric:"memory.pressure.full",label:"Memory pressure (full)",shortLabel:"Pressure full",unit:"percent",family:"memory",colorSlot:4,description:"Linux PSI memory stall pressure, all tasks (avg10)"},{metric:"swap.used",label:"Swap used",shortLabel:"Swap",unit:"bytes",family:"swap",colorSlot:2,description:"Swap space in use"},{metric:"gpu.utilization",label:"GPU utilization",shortLabel:"Utilization",unit:"percent",family:"gpus",colorSlot:0,description:"Per-card graphics processor utilization"},{metric:"gpu.memory.used",label:"GPU memory used",shortLabel:"VRAM",unit:"bytes",family:"gpus",colorSlot:1,description:"Per-card video memory in use"},{metric:"gpu.temperature",label:"GPU temperature",shortLabel:"Temperature",unit:"celsius",family:"gpus",colorSlot:3,description:"Per-card temperature"},{metric:"gpu.power",label:"GPU power",shortLabel:"Power",unit:"watts",family:"gpus",colorSlot:4,description:"Per-card power draw"},{metric:"fs.used",label:"Filesystem used",shortLabel:"Filesystem",unit:"bytes",family:"disks",colorSlot:1,description:"Used space per mounted filesystem"},{metric:"fs.usage",label:"Filesystem usage",shortLabel:"Filesystem %",unit:"percent",family:"disks",colorSlot:1,description:"Used capacity per mounted filesystem, derived from a positive total"},{metric:"fs.inodes.usage",label:"Inode usage",shortLabel:"Inodes %",unit:"percent",family:"disks",colorSlot:2,description:"Used inodes per filesystem where the collector can read them"},{metric:"disk.read",label:"Disk read",shortLabel:"Read",unit:"bytes_per_second",family:"disks",colorSlot:0,description:"Device read throughput"},{metric:"disk.write",label:"Disk write",shortLabel:"Write",unit:"bytes_per_second",family:"disks",colorSlot:2,description:"Device write throughput"},{metric:"disk.read.latency",label:"Disk read latency",shortLabel:"Read latency",unit:"milliseconds",family:"disks",colorSlot:0,description:"Average device read latency"},{metric:"disk.write.latency",label:"Disk write latency",shortLabel:"Write latency",unit:"milliseconds",family:"disks",colorSlot:2,description:"Average device write latency"},{metric:"disk.utilization",label:"Disk utilization",shortLabel:"Utilization",unit:"percent",family:"disks",colorSlot:3,description:"Share of time the device had I/O in flight"},{metric:"io.pressure.some",label:"I/O pressure (some)",shortLabel:"I/O some",unit:"percent",family:"disks",colorSlot:3,description:"Linux PSI I/O stall pressure, some tasks (avg10)"},{metric:"io.pressure.full",label:"I/O pressure (full)",shortLabel:"I/O full",unit:"percent",family:"disks",colorSlot:4,description:"Linux PSI I/O stall pressure, all tasks (avg10)"},{metric:"net.rx",label:"Network received",shortLabel:"Received",unit:"bytes_per_second",family:"network",colorSlot:0,description:"Interface receive rate"},{metric:"net.tx",label:"Network sent",shortLabel:"Sent",unit:"bytes_per_second",family:"network",colorSlot:2,description:"Interface transmit rate"}];function e(a,b){return a.filter(c=>{for(let[d,e,f]of[["memory","memory.used","memory.usage"],["filesystem","fs.used","fs.usage"]])if(a.includes(e)&&a.includes(f)&&(c===e||c===f))return c===("percent"===b[d]?f:e);return!0})}let f=[{id:"cpu",label:"CPU",metrics:["cpu.usage","cpu.core","cpu.iowait","cpu.pressure","cpu.temperature","cpu.power"]},{id:"memory",label:"Memory",metrics:["memory.used","memory.usage","swap.used","memory.pressure.some","memory.pressure.full"]},{id:"gpu",label:"GPU",metrics:["gpu.utilization","gpu.memory.used","gpu.temperature","gpu.power"]},{id:"disk",label:"Storage",metrics:["fs.used","fs.usage","fs.inodes.usage","disk.read","disk.write","disk.read.latency","disk.write.latency","disk.utilization","io.pressure.some","io.pressure.full"]},{id:"network",label:"Network",metrics:["net.rx","net.tx"]}],g=["var(--cpu)","var(--mem)","color-mix(in oklab, var(--swap) 75%, var(--foreground))","var(--warn)","var(--crit)","var(--accent)"],h=[void 0,"7 4","2 3","10 3 2 3","4 4","1 3"];function i(a){return d.find(b=>b.metric===a)??null}function j(a,b){let c=Math.max(0,b),d=a.colorSlot+c,e=(c+Math.floor(d/g.length))%h.length;return{color:g[d%g.length],dash:h[e]}}let k={cpu:"CPU",memory:"Memory",swap:"Swap",gpus:"GPU metrics",disks:"Disk metrics",network:"Network metrics"};function l(a,b){let c=i(b);if(null===c||void 0===a)return{available:!0,reason:null};let d=a.inventory?.capabilities?.[c.family];if(!d||"supported"===d.status)return{available:!0,reason:null};let e=d.reason?.trim();return{available:!1,reason:e?`${k[c.family]}: ${d.status} — ${e}`:`${k[c.family]} are ${d.status} on this machine.`}}function m(a){if(void 0===a)return[];let b=[],c=c=>{!(b.length>=16)&&l(a,c).available&&b.push(c)};c("cpu.usage"),c("memory.used");let d=function(a){let b=a.inventory?.memory.swapTotalBytes;if("number"==typeof b)return b;let c=a.metrics?.payload.swap;return c?.status==="ok"?c.totalBytes:null}(a);return null!==d&&d>0&&c("swap.used"),o(a,[]).length>0&&(c("gpu.utilization"),c("gpu.memory.used")),b}function n(a){let b=a.includes(":")?a.slice(a.indexOf(":")+1):a;return b.length<=18?b:`${b.slice(0,10)}…${b.slice(-4)}`}function o(a,b){let c=new Set(b.filter(a=>a.metric.startsWith("gpu.")&&""!==a.resourceId&&a.points.some(a=>null!==a.avg||null!==a.min||null!==a.max)).map(a=>a.resourceId)),d=[],e=new Set;(a?.inventory?.gpus??[]).forEach(a=>{let b="supported"===a.telemetry;(b||c.has(a.id))&&(e.add(a.id),d.push({id:a.id,label:a.name.trim()||n(a.id),index:d.length,totalBytes:a.memoryTotalBytes,supported:b,hasHistory:c.has(a.id)}))});let f=a?.metrics?.payload.gpus;if(f?.status==="ok")for(let a of f.devices)e.has(a.id)||"ok"!==a.status||(e.add(a.id),d.push({id:a.id,label:n(a.id),index:d.length,totalBytes:a.memoryTotalBytes,supported:!0,hasHistory:c.has(a.id)}));for(let a of[...c].sort())e.has(a)||d.push({id:a,label:a.startsWith("pci:")?`Previously detected GPU (${n(a)})`:n(a),index:d.length,totalBytes:null,supported:!0,hasHistory:!0});return d}function p(a,b,c){if(""===c)return i(b)?.shortLabel??"Total";let d=i(b);if(null===d)return n(c);switch(d.family){case"gpus":{let b=a?.inventory?.gpus.find(a=>a.id===c);return b?.name.trim()||n(c)}case"disks":{if(b.startsWith("fs.")){let b=a?.inventory?.filesystems.find(a=>a.id===c);return b?.mountPoint||n(c)}let d=a?.inventory?.disks.find(a=>a.id===c);return d?.name||n(c)}case"network":{let b=a?.inventory?.network.find(a=>a.id===c);return b?.name||n(c)}case"cpu":{let a=/^core:(\d+)$/.exec(c);return a?`Core ${a[1]}`:n(c)}default:return n(c)}}function q(a){switch(a){case"percent":return"%";case"bytes":return"bytes";case"bytes_per_second":return"bytes/s";case"celsius":return"\xb0C";case"watts":return"W";case"milliseconds":return"ms";default:return a}}},15670:(a,b,c)=>{c.d(b,{t:()=>k});var d=c(48249),e=c(67484),f=c(96480),g=c(66338),h=c(11449),i=c(55280),j=c(47978);function k(a){let{title:b,unit:c,series:k,fromMs:l,toMs:m,stepMs:n,gaps:o,hiddenKeys:p,onToggleSeries:q,emptyMessage:r,note:s}=a,t=(0,e.useMemo)(()=>k.filter(a=>!p.has(a.key)),[k,p]),u=(0,j.Au)({series:t,fromMs:l,toMs:m,stepMs:n,gaps:o}),v=(0,e.useRef)(null),w=(0,e.useMemo)(()=>t.flatMap(a=>a.points),[t]),x=w.some(a=>null!==a.avg||null!==a.min||null!==a.max),y=Math.max(1,m-l),z=(0,e.useMemo)(()=>(0,f.$z)(o,l,m,w),[o,l,m,w]),A=(0,e.useMemo)(()=>(0,f.kk)(c,w.flatMap(a=>[a.min,a.max,a.avg]).filter(a=>null!==a)),[c,w]),B=Math.max(1e-9,A.max-A.min),C=(0,e.useCallback)(a=>6+(Math.min(m,Math.max(l,a))-l)/y*788,[l,m,y]),D=(0,e.useCallback)(a=>6+(1-(a-A.min)/B)*148,[A.min,B]),E=(0,e.useMemo)(()=>t.map(b=>{let c=(0,f.o)(b.points,{stepMs:n,gaps:z,fromMs:l,toMs:m}).map(b=>(0,f.SG)(b,a.maxDrawPoints??601,n));return{...b,segments:c,envelope:c.filter(a=>a.length>1).map(a=>{let b=a.map(a=>`${C(a.t).toFixed(2)},${D(a.max??a.avg).toFixed(2)}`),c=[...a].reverse().map(a=>`${C(a.t).toFixed(2)},${D(a.min??a.avg).toFixed(2)}`);return`M${b.join("L")}L${c.join("L")}Z`}).join(" "),path:c.filter(a=>a.length>1).map(a=>a.map((a,b)=>`${0===b?"M":"L"}${C(a.t).toFixed(2)},${D(a.avg).toFixed(2)}`).join(" ")).join(" ")}}),[t,a.maxDrawPoints,n,z,l,m,C,D]),F=(0,e.useMemo)(()=>(function(a,b,c,d,e,h){if(0===c.length)return`${a} chart: no series selected.`;let i=c.map(a=>{let c=(0,f.T6)(a.points);return`${a.label}: ${function(a,b){let c=[];if(null!==a.latest){let d=null!==a.latestT?(0,g.ei)(a.latestT):null;c.push(`latest ${(0,g.dd)(a.latest,b)}${d?` at ${d}`:""}`)}return c.push(`average ${(0,g.dd)(a.avg,b)}`),null!==a.min&&null!==a.max&&c.push(`recorded range ${(0,g.dd)(a.min,b)} to ${(0,g.dd)(a.max,b)}`),c.join(", ")}(c,b)}`}),j=h>0?`${h} shaded interval${1===h?"":"s"} without stored data.`:"";return`${a} time-series chart. ${i.join(". ")}. ${j} Time range ${(0,g.ei)(d)} to ${(0,g.ei)(e)}.`})(b,c,t,l,m,z.length),[b,c,t,l,m,z.length]),G=(0,e.useMemo)(()=>new Map(k.map(a=>[a.key,(0,f.T6)(a.points)])),[k]),H=null===u.timeMs?[]:t.map(a=>({...a,point:(0,i.bO)(a.points,u.timeMs,n,o)})),I=null===u.timeMs?null:C(u.timeMs),J=`${u.id}-tooltip`,K=`${u.id}-instructions`,L=(0,e.useMemo)(()=>(0,d.jsxs)(d.Fragment,{children:[A.ticks.map(a=>(0,d.jsx)("line",{x1:6,x2:794,y1:D(a),y2:D(a),stroke:"var(--border)",strokeWidth:"1",vectorEffect:"non-scaling-stroke"},`grid-${a}`)),z.map(a=>(0,d.jsx)("rect",{x:C(a.fromMs),y:6,width:Math.max(1,C(a.toMs)-C(a.fromMs)),height:148,fill:"var(--muted-foreground)",opacity:"0.09"},`gap-${a.fromMs}-${a.toMs}-${a.kind}`)),E.map(a=>{let b=a.envelope;return""===b?null:(0,d.jsx)("path",{d:b,fill:a.color,opacity:"0.14",stroke:"none"},`band-${a.key}`)}),E.map(a=>{let b=a.path;return""===b?null:(0,d.jsx)("path",{d:b,fill:"none",stroke:a.color,strokeWidth:"2",strokeDasharray:a.dash,strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"},`line-${a.key}`)}),E.flatMap(a=>a.segments.filter(a=>1===a.length).map(b=>{let c=b[0],e=C(c.t),f=D(c.avg);return(0,d.jsx)("line",{x1:e-2.5,x2:e+2.5,y1:f,y2:f,stroke:a.color,strokeWidth:"2.5",strokeLinecap:"round",vectorEffect:"non-scaling-stroke"},`dot-${a.key}-${c.t}`)}))]}),[A,C,D,z,E]);return(0,d.jsxs)("figure",{className:`flex min-w-0 flex-col gap-2 ${a.className??""}`,children:[(0,d.jsxs)("div",{className:"flex min-h-8 flex-wrap items-center justify-between gap-2",children:[(0,d.jsx)("h3",{className:"text-xs font-medium tracking-tight text-foreground",children:b}),(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)("span",{className:"tnum shrink-0 text-xs text-muted-foreground",children:s??(0,h.RL)(c)}),a.action]})]}),x?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex min-w-0 gap-2",children:[(0,d.jsx)("div",{"aria-hidden":!0,className:"flex h-40 w-14 shrink-0 flex-col justify-between py-0.5 text-right text-xs leading-none tnum text-muted-foreground",children:[...A.ticks].reverse().map(a=>(0,d.jsx)("span",{children:(0,g.Ah)(a,c)},a))}),(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsxs)("div",{className:"relative touch-pan-y select-none",onPointerLeave:a=>{"mouse"===a.pointerType&&u.clear()},onPointerDown:a=>{if("mouse"===a.pointerType)return;a.currentTarget.setPointerCapture(a.pointerId);let b=v.current?.getBoundingClientRect();b&&u.inspect((0,i.yk)(a.clientX,b.left,b.width,l,m,.0075))},onPointerCancel:u.clear,onContextMenu:a=>a.preventDefault(),onPointerMove:a=>{let b=v.current?.getBoundingClientRect();b&&u.inspect((0,i.yk)(a.clientX,b.left,b.width,l,m,.0075))},children:[(0,d.jsx)("p",{id:K,className:"sr-only",children:"Touch and drag horizontally to inspect readings. Use Left and Right arrows to inspect recorded readings, Home or End to jump, and Escape to dismiss."}),(0,d.jsxs)("svg",{ref:v,viewBox:"0 0 800 160",preserveAspectRatio:"none",role:"img","aria-label":F,tabIndex:0,"aria-describedby":`${K}${u.active?` ${J}`:""}`,onFocus:u.onFocus,onBlur:u.clear,onKeyDown:u.onKeyDown,className:"block h-40 w-full cursor-crosshair rounded-sm focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent",children:[(0,d.jsx)("title",{children:b}),L,null!==I?(0,d.jsxs)("g",{"aria-hidden":!0,pointerEvents:"none",children:[(0,d.jsx)("line",{x1:I,x2:I,y1:6,y2:154,stroke:"var(--muted-foreground)",strokeWidth:"1",strokeDasharray:"3 3",vectorEffect:"non-scaling-stroke"}),H.map(({key:a,color:b,point:c})=>c?.avg==null?null:(0,d.jsx)("circle",{cx:C(c.t),cy:D(c.avg),r:"3.5",fill:b,stroke:"var(--card)",strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"},a))]}):null]}),u.active&&null!==u.timeMs&&null!==I?(0,d.jsx)(j.eg,{id:J,timeMs:u.timeMs,fraction:I/800,unit:c,readings:H}):null]}),(0,d.jsx)("div",{"aria-hidden":!0,className:"mt-1 flex justify-between gap-2 text-xs leading-tight tnum text-muted-foreground",children:(0,f.Cf)(l,m).map((a,b,c)=>(0,d.jsx)("span",{className:`${0===b?"text-left":b===c.length-1?"text-right":"hidden text-center sm:inline"}`,children:(0,g.O5)(a,y)},a))})]})]}),(0,d.jsx)("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1.5 text-xs",children:k.map(a=>{let b=!p.has(a.key),e=G.get(a.key);return(0,d.jsxs)("label",{className:"inline-flex min-h-7 cursor-pointer items-center gap-1.5",title:b?`Hide ${a.label}`:`Show ${a.label}`,children:[(0,d.jsx)("input",{type:"checkbox",checked:b,onChange:()=>q(a.key),className:"peer sr-only"}),(0,d.jsx)("span",{"aria-hidden":!0,className:"flex h-4 w-5 shrink-0 items-center justify-center rounded-sm peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:[outline-color:var(--focus)]",children:(0,d.jsx)("svg",{viewBox:"0 0 20 8",className:"h-2 w-5","aria-hidden":!0,children:(0,d.jsx)("line",{x1:"1",y1:"4",x2:"19",y2:"4",stroke:a.color,strokeWidth:"2.5",strokeDasharray:a.dash,strokeLinecap:"round"})})}),(0,d.jsx)("span",{className:b?"text-foreground":"text-muted-foreground line-through",children:a.label}),(0,d.jsx)("span",{className:"tnum text-muted-foreground",children:(0,g.dd)(e.latest,c)})]},`legend-${a.key}`)})})]}):(0,d.jsx)("div",{className:"flex min-h-32 items-center justify-center rounded-lg border border-dashed border-border px-4 py-6 text-center text-xs text-muted-foreground",children:0===k.length?r:0===t.length?"All series are hidden. Re-enable one in the legend below.":r}),!x&&k.length>0?(0,d.jsx)("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1.5 text-xs",children:k.map(a=>{let b=!p.has(a.key);return(0,d.jsxs)("label",{className:"inline-flex min-h-7 cursor-pointer items-center gap-1.5",children:[(0,d.jsx)("input",{type:"checkbox",checked:b,onChange:()=>q(a.key),className:"peer sr-only"}),(0,d.jsx)("span",{"aria-hidden":!0,className:"flex h-4 w-5 shrink-0 items-center justify-center peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:[outline-color:var(--focus)]",children:(0,d.jsx)("svg",{viewBox:"0 0 20 8",className:"h-2 w-5","aria-hidden":!0,children:(0,d.jsx)("line",{x1:"1",y1:"4",x2:"19",y2:"4",stroke:a.color,strokeWidth:"2.5",strokeDasharray:a.dash,strokeLinecap:"round"})})}),(0,d.jsx)("span",{className:b?"text-foreground":"text-muted-foreground line-through",children:a.label})]},`legend-empty-${a.key}`)})}):null]})}},43607:(a,b,c)=>{c.d(b,{n:()=>e});var d=c(67484);function e({machineId:a,metricsKey:b,coreIdsKey:c,range:f,enabled:g=!0,autoRefresh:h=!0,refreshNonce:i=0}){let[j,k]=(0,d.useState)({machineId:a,metricsKey:b,coreIdsKey:c,range:f}),l=j.machineId===a&&j.range===f?j:{machineId:a,metricsKey:b,coreIdsKey:c,range:f},m=l.metricsKey,n=l.coreIdsKey,o=`${a}|${m}|${f}|${n??"all"}`,[p,q]=(0,d.useState)(null),[r,s]=(0,d.useState)(null),[t,u]=(0,d.useState)(null);return(0,d.useRef)(i),{data:g&&p?.result.machineId===a&&p.range===f?p:null,error:g&&r?.key===o?r.error:null,loading:g&&t?.key===o,manualRefreshing:g&&t?.key===o&&t.manual}}c(66338)},47978:(a,b,c)=>{c.d(b,{Au:()=>j,_C:()=>i,eg:()=>k});var d=c(48249),e=c(67484),f=c(55280),g=c(66338);let h=(0,e.createContext)(null);function i({children:a}){let[b,c]=(0,e.useState)(null),f=(0,e.useCallback)(a=>c(b=>b?.timeMs===a?.timeMs&&b?.source===a?.source?b:a),[]),g=(0,e.useMemo)(()=>({cursor:b,setCursor:f}),[b,f]);return(0,d.jsx)(h.Provider,{value:g,children:a})}function j({series:a,fromMs:b,toMs:c,stepMs:d,gaps:g}){let i=(0,e.useId)(),[k,l]=(0,e.useState)(null),m=(0,e.useContext)(h),n=m?m.cursor:k,o=m?m.setCursor:l,p=(0,e.useRef)(null),q=(0,e.useRef)(null),r=(0,e.useCallback)(()=>{null!==p.current&&cancelAnimationFrame(p.current),p.current=null,q.current=null},[]),s=(0,e.useMemo)(()=>(0,f.X)(a).filter(a=>a.t<=c&&a.t+d/2>=b),[a,b,c,d]),t=n&&n.timeMs>=b-d/2&&n.timeMs<=c?n.timeMs:null,u=null!==t&&n?.source===i,v=()=>{r(),n?.source===i&&o(null)};return{id:i,timeMs:t,active:u,inspect:a=>{let e=Math.max(b,Math.min(c,a)),h=(0,f.bO)(s,e,d,g);q.current={timeMs:h?.t??e,source:i},null===p.current&&(p.current=requestAnimationFrame(()=>{p.current=null,o(q.current),q.current=null}))},clear:v,onKeyDown:a=>{if(r(),"Escape"===a.key)a.preventDefault(),v();else if(["ArrowLeft","ArrowRight","Home","End"].includes(a.key)){a.preventDefault();let b=(0,f.o7)(s,t,a.key);null!==b&&o({timeMs:b,source:i})}},onFocus:()=>{r(),o({timeMs:s.at(-1)?.t??c,source:i})}}}function k({id:a,timeMs:b,fraction:c,unit:f,readings:h}){let[i]=(0,e.useState)(()=>c>.5?"left":"right");return(0,d.jsxs)("div",{id:a,role:"tooltip",className:`pointer-events-none absolute bottom-full mb-2 md:pointer-events-auto md:bottom-auto md:top-2 md:mb-0 z-10 max-h-56 w-56 max-w-[calc(100%-1rem)] overflow-y-auto rounded-md border border-border bg-card p-3 text-xs text-foreground ${"left"===i?"left-2":"right-2"}`,children:[(0,d.jsx)("p",{className:"tnum font-medium",children:(0,g.r6)(b)}),(0,d.jsx)("p",{className:"mb-2 text-muted-foreground",children:"Recorded bucket average"}),(0,d.jsx)("dl",{className:"grid grid-cols-[minmax(0,1fr)_auto] items-baseline gap-x-4 gap-y-1.5",children:h.map(({key:a,label:c,color:e,point:h})=>(0,d.jsxs)("div",{className:"contents",children:[(0,d.jsxs)("dt",{className:"flex min-w-0 items-center gap-1.5",children:[(0,d.jsx)("span",{"aria-hidden":!0,className:"h-2 w-2 shrink-0 rounded-full",style:{backgroundColor:e}}),(0,d.jsx)("span",{className:"break-words",children:c})]}),(0,d.jsxs)("dd",{className:"tnum text-right",children:[h?.avg==null?"No reading":(0,g.dd)(h.avg,f),h&&h.t!==b?(0,d.jsx)("span",{className:"block text-muted-foreground",children:(0,g.ei)(h.t)}):null]})]},a))})]})}},55280:(a,b,c)=>{function d(a,b,c,d){if(d.some(a=>b>a.fromMs&&b<a.toMs))return null;let e=0,f=a.length;for(;e<f;){let c=e+f>>>1;a[c].t<b?e=c+1:f=c}let g=a[e-1],h=a[e],i=g&&(!h||b-g.t<=h.t-b)?g:h;return!i||Math.abs(i.t-b)>c/2||d.some(a=>a.toMs>Math.min(b,i.t)&&a.fromMs<Math.max(b,i.t))?null:i}function e(a){return[...new Set(a.flatMap(a=>a.points.map(a=>a.t)))].sort((a,b)=>a-b).map(a=>({t:a,min:null,max:null,avg:null}))}function f(a,b,c,d,e,g=0){return Math.round(d+Math.max(0,Math.min(1,((c>0?(a-b)/c:0)-g)/(1-2*g)))*(e-d))}function g(a,b,c){return 0===a.length?null:"Home"===c?a[0].t:"End"===c||null===b?a.at(-1).t:"ArrowLeft"===c?[...a].reverse().find(a=>a.t<b)?.t??a[0].t:"ArrowRight"===c?a.find(a=>a.t>b)?.t??a.at(-1).t:b}c.d(b,{X:()=>e,bO:()=>d,o7:()=>g,yk:()=>f})},66338:(a,b,c)=>{c.d(b,{Ah:()=>l,I_:()=>p,O5:()=>o,Vw:()=>v,bf:()=>u,dd:()=>k,ei:()=>m,fH:()=>q,ly:()=>e,pI:()=>d,r6:()=>n,zp:()=>f});let d=[{id:"10m",shortLabel:"10m",label:"Last 10 minutes",ms:6e5,refreshMs:1e3},{id:"1h",shortLabel:"1h",label:"Last hour",ms:36e5,refreshMs:1e3},{id:"6h",shortLabel:"6h",label:"Last 6 hours",ms:216e5,refreshMs:1e3},{id:"24h",shortLabel:"24h",label:"Last 24 hours",ms:864e5,refreshMs:1e3},{id:"7d",shortLabel:"7d",label:"Last 7 days",ms:6048e5,refreshMs:1e3}];function e(a){return d.find(b=>b.id===a)??d[0]}function f(a){return e(a).refreshMs}let g=["B","KiB","MiB","GiB","TiB","PiB"];function h(a){let b=Math.abs(a),c=0;for(;b>=1024&&c<g.length-1;)b/=1024,c+=1;return{value:a<0?-b:b,unit:g[c]}}function i(a,b){return String(Number(a.toFixed(b)))}function j(a,b=""){let{value:c,unit:d}=h(a),e=Math.abs(c)>=100?0:1;return`${i(c,e)} ${d}${b}`}function k(a,b){if(null==a||!Number.isFinite(a))return"—";switch(b){case"percent":return`${i(a,1)}%`;case"bytes":return j(a);case"bytes_per_second":return j(a,"/s");case"celsius":return`${i(a,1)}\xb0C`;case"watts":return`${i(a,1)} W`;case"milliseconds":return`${i(a,10>Math.abs(a)?2:1)} ms`;default:return i(a,2)}}function l(a,b){if(!Number.isFinite(a))return"—";switch(b){case"percent":return`${i(a,0)}%`;case"bytes":case"bytes_per_second":{let{value:c,unit:d}=h(a),e=Math.abs(c)>=10||0===c?0:1;return`${i(c,e)} ${d}${"bytes_per_second"===b?"/s":""}`}case"celsius":return`${i(a,0)}\xb0C`;case"watts":return`${i(a,0)} W`;case"milliseconds":return`${i(a,+(10>Math.abs(a)))} ms`;default:return i(a,1)}}function m(a){return new Date(a).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}function n(a){return new Date(a).toLocaleString(void 0,{dateStyle:"medium",timeStyle:"medium"})}function o(a,b){let c=new Date(a);return b>=1728e5?c.toLocaleDateString(void 0,{month:"short",day:"numeric"}):b>=864e5?c.toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}):c.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",hour12:!1})}function p(a){let b=Math.max(0,a);return b>=36e5?`${i(b/36e5,1)} h`:b>=6e4?`${i(b/6e4,1)} min`:`${i(b/1e3,1)} s`}function q(a,b,c){let d=a.filter(a=>a.toMs>=b&&a.fromMs<=c);if(0===d.length)return"No recorded gaps in this range.";let e=d.filter(a=>"dropped"===a.kind).length,f=d.length-e,g=[];f>0&&g.push(`${f} missed interval${1===f?"":"s"}`),e>0&&g.push(`${e} dropped report${1===e?"":"s"}`);let h=[...new Set(d.map(a=>a.reason).filter(a=>"string"==typeof a&&a.length>0))],i=h.length>0?` (${h.slice(0,3).join("; ")})`:"";return`${g.join(" and ")}${i}.`}function r(a){return null!==a&&"object"==typeof a&&!Array.isArray(a)}function s(a){return"number"==typeof a&&Number.isFinite(a)}function t(a){return null===a||s(a)}function u(a){if(!r(a)||"string"!=typeof a.machineId||0===a.machineId.length||!s(a.fromMs)||!s(a.toMs)||a.toMs<=a.fromMs||!s(a.stepMs)||a.stepMs<=0||"1s"!==a.tier&&"raw"!==a.tier&&"10s"!==a.tier&&"1m"!==a.tier&&"1h"!==a.tier||"boolean"!=typeof a.truncated||!s(a.elapsedMs)||!Array.isArray(a.series)||!Array.isArray(a.gaps))return null;let b=[];for(let c of a.series){if(!r(c)||"string"!=typeof c.metric||"string"!=typeof c.resourceId||"string"!=typeof c.unit||!Array.isArray(c.points))return null;let a=[];for(let b of c.points){if(!r(b)||!s(b.t)||!t(b.min)||!t(b.max)||!t(b.avg))return null;a.push({t:b.t,min:b.min,max:b.max,avg:b.avg})}b.push({metric:c.metric,resourceId:c.resourceId,unit:c.unit,points:a})}let c=[];for(let b of a.gaps){if(!r(b)||!s(b.fromMs)||!s(b.toMs)||"missing"!==b.kind&&"dropped"!==b.kind)return null;let a={fromMs:b.fromMs,toMs:b.toMs,kind:b.kind};"string"==typeof b.reason&&(a.reason=b.reason),s(b.droppedRecords)&&(a.droppedRecords=b.droppedRecords),c.push(a)}return{machineId:a.machineId,fromMs:a.fromMs,toMs:a.toMs,stepMs:a.stepMs,tier:a.tier,series:b,gaps:c,truncated:a.truncated,elapsedMs:a.elapsedMs}}function v(a,b,c,d,f=600,g){let{fromMs:h,toMs:i}={fromMs:d-e(c).ms,toMs:d},j=new URLSearchParams({machineId:a,metrics:b.join(","),from:String(Math.floor(h)),to:String(Math.floor(i)),maxPoints:String(f)});return void 0!==g&&j.set("coreIds",g.join(",")),`/api/history?${j.toString()}`}},96480:(a,b,c)=>{function d(a){return null!==a.avg&&Number.isFinite(a.avg)}function e(a){return null!==a&&Number.isFinite(a)?a:null}function f(a){let b=[];for(let c of a){let a=b.at(-1);if(void 0!==a&&c.fromMs<=a.toMs){a.toMs=Math.max(a.toMs,c.toMs),"missing"===a.kind&&"dropped"===c.kind&&(a.kind="dropped"),void 0===a.reason&&void 0!==c.reason&&(a.reason=c.reason),void 0===a.droppedRecords&&void 0!==c.droppedRecords&&(a.droppedRecords=c.droppedRecords);continue}b.push({...c})}return b}function g(a,b,c,e){let g=f(a.map(a=>({...a,fromMs:Math.max(b,a.fromMs),toMs:Math.min(c,a.toMs)})).filter(a=>a.toMs>a.fromMs).sort((a,b)=>a.fromMs-b.fromMs||a.toMs-b.toMs));return void 0===e?g:function(a,b,c,e){if(0===a.length)return[];let g=[...new Set(b.filter(d).map(a=>a.t).filter(a=>Number.isFinite(a)))].sort((a,b)=>a-b),h=[];for(let b of a){let a=Math.max(c,Math.min(e,b.fromMs)),d=Math.max(c,Math.min(e,b.toMs));if(d<=a)continue;let f=Math.max(c,function(a,b){let c=0,d=a.length;for(;c<d;){let e=c+d>>>1;a[e]<=b?c=e+1:d=e}return c>0?a[c-1]:null}(g,a)??a),i=Math.min(e,function(a,b){let c=0,d=a.length;for(;c<d;){let e=c+d>>>1;a[e]<b?c=e+1:d=e}return c<a.length?a[c]:null}(g,d)??d);i<=f||h.push({...b,fromMs:f,toMs:i})}return h.sort((a,b)=>a.fromMs-b.fromMs||a.toMs-b.toMs),f(h)}(g,e,b,c)}function h(a,b,c){return Math.max(a,"1h"===b?36e5:"1m"===b?6e4:"10s"===b?1e4:"1s"===b?1e3:100,c??0)}function i(a,b){let c=[...a].sort((a,b)=>a.t-b.t),e=g(b.gaps,b.fromMs,b.toMs),f=Math.max(1,b.stepMs),h=[],i=[],j=()=>{i.length>0&&h.push(i),i=[]};for(let a of c){if(!d(a)){j();continue}let b=i.at(-1);if(void 0!==b){let c=!a.merged&&!b.merged&&(a.t<b.t||a.t-b.t>1.5*f),d=!0===a.gapBefore||function(a,b,c){return c.some(c=>c.toMs>a&&c.fromMs<b)}(b.t,a.t,e);(c||d)&&j()}i.push(a)}return j(),h}function j(a,b,c){if(b<=0)return[];let f=[...a].sort((a,b)=>a.t-b.t);if(f.length<=b)return f.map(a=>({...a}));let g=Math.max(2,Math.ceil(f.length/b)),h=Math.max(1,c),i=[],j=[],k=!1,l=null,m=()=>{if(0===j.length)return;let a=null,b=null,c=0,d=0;for(let f of j){let g=e(f.min),h=e(f.max);null!==g&&(null===a||g<a)&&(a=g),null!==h&&(null===b||h>b)&&(b=h);let i=e(f.avg);null!==i&&(c+=i,d+=1)}i.push({t:j[0].t,min:a,max:b,avg:d>0?c/d:null,...j.length>1?{merged:!0}:{},...k?{gapBefore:!0}:{}}),j=[],k=!1};for(let a of f){if(!d(a)){m(),i.push({...a}),l=null;continue}let b=null!==l&&a.t>=l.t&&a.t-l.t<=1.5*h;j.length>0&&(!b||j.length>=g)&&m(),0===j.length&&(k=null!==l&&!b),j.push(a),l=a}return m(),i}function k(a){let b=null,c=null,d=0,f=0,g=null,h=null,i=null,j=null;for(let k of a){if(null===k.avg)continue;(null===i||k.t<i)&&(i=k.t),(null===j||k.t>j)&&(j=k.t);let a=e(k.min),l=e(k.max);null!==a&&(null===b||a<b)&&(b=a),null!==l&&(null===c||l>c)&&(c=l),null!==k.avg&&Number.isFinite(k.avg)&&(d+=k.avg,f+=1,g=k.avg,h=k.t)}return{count:f,min:b,max:c,avg:f>0?d/f:null,latest:g,latestT:h,firstT:i,lastT:j}}function l(a){if(!Number.isFinite(a)||a<=0)return 1;let b=Math.pow(10,Math.floor(Math.log10(a))),c=a/b;return(c<=1?1:c<=2?2:c<=5?5:10)*b}function m(a,b){if("percent"===a)return{min:0,max:100,ticks:[0,25,50,75,100]};let c=b.filter(a=>null!==a&&Number.isFinite(a));if(0===c.length)return{min:0,max:1,ticks:[0,1]};let d=Math.min(...c),e=Math.max(...c);if("celsius"===a){let a=Math.max(1,(e-d)*.1);d=5*Math.floor((d-a)/5),e=5*Math.ceil((e+a)/5)}else d=0,e=e>0?e:1;e<=d&&(e=d+1);let f=l((e-d)/4),g=Math.floor(d/f)*f,h=Math.ceil(e/f)*f,i=function(a,b,c=4){if(!Number.isFinite(a)||!Number.isFinite(b))return[0,1];if(b<=a)return[a];let d=l((b-a)/Math.max(1,c)),e=Math.ceil(a/d)*d,f=[];for(let a=e;a<=b+.001*d&&f.length<20;a+=d)f.push(Number(a.toPrecision(12)));return f.length>0?f:[a,b]}(g,h,4);return{min:g,max:h,ticks:i}}function n(a,b,c=4){let d=Math.max(2,Math.floor(c)),e=Math.max(0,b-a);return Array.from({length:d},(b,c)=>a+e*c/(d-1))}c.d(b,{$z:()=>g,Cf:()=>n,SG:()=>j,T6:()=>k,jl:()=>h,kk:()=>m,o:()=>i})}};
@@ -1 +1 @@
1
- globalThis.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],lowPriorityFiles:["static/ip43TIgmaByEBn2GFtvfO/_buildManifest.js","static/ip43TIgmaByEBn2GFtvfO/_ssgManifest.js"],rootMainFiles:["static/chunks/webpack-9ca43f4ce1bb8938.js","static/chunks/4bd1b696-c7408084347438ae.js","static/chunks/794-ceeb732a1a81bc27.js","static/chunks/main-app-f92328c8950d2e53.js"],rootMainFilesTree:{},pages:{"/_app":[]}};
1
+ globalThis.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],lowPriorityFiles:["static/Jlbibe2_iFCljUO4-BUK7/_buildManifest.js","static/Jlbibe2_iFCljUO4-BUK7/_ssgManifest.js"],rootMainFiles:["static/chunks/webpack-9ca43f4ce1bb8938.js","static/chunks/4bd1b696-c7408084347438ae.js","static/chunks/794-ceeb732a1a81bc27.js","static/chunks/main-app-f92328c8950d2e53.js"],rootMainFilesTree:{},pages:{"/_app":[]}};
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/f5d3162842dcac31.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-9ca43f4ce1bb8938.js"/><script src="/_next/static/chunks/4bd1b696-c7408084347438ae.js" async=""></script><script src="/_next/static/chunks/794-ceeb732a1a81bc27.js" async=""></script><script src="/_next/static/chunks/main-app-f92328c8950d2e53.js" async=""></script><script src="/_next/static/chunks/939-514e554087419c71.js" async=""></script><script src="/_next/static/chunks/app/layout-4feff677c4071745.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><title>Rigscope</title><meta name="description" content="Self-hosted remote system monitor — a live fleet of collectors behind one authenticated hub."/><link rel="icon" href="/icon.svg?3b3fa3229e2d0d7a" type="image/svg+xml" sizes="any"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><script>((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}})("class","theme","dark",null,["light","dark"],null,true,true)</script><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-9ca43f4ce1bb8938.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"static/chunks/939-514e554087419c71.js\"\n3:\"static/chunks/app/layout-4feff677c4071745.js\"\n4:I[2737,[\"939\",\"$2\",\"177\",\"$3\"],\"ThemeProvider\"]\n5:I[9939,[\"939\",\"$2\",\"177\",\"$3\"],\"LiveProvider\"]\n6:I[7121,[],\"\"]\n7:I[4581,[],\"\"]\nb:I[484,[],\"OutletBoundary\"]\nc:\"$Sreact.suspense\"\ne:\"ViewportBoundary\"\nf:I[484,[],\"$e\"]\n11:\"MetadataBoundary\"\n12:I[484,[],\"$11\"]\n14:I[7123,[],\"default\",1]\n:HL[\"/_next/static/css/f5d3162842dcac31.css\",\"style\"]\n9:X\na:[[\"children\",{\"s\":\"__PAGE__\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$Lb\",null,{\"children\":[\"$\",\"$c\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@d\"}]}]]}],\"p\":false,\"v\":null}}]]\n8:[[\"children\",{\"s\":\"_not-found\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],\"p\":false,\"v\":\"$9\"},\"c\":\"$Qa\"}]]\n0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/f5d3162842dcac31.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L4\",null,{\"attribute\":\"class\",\"defaultTheme\":\"dark\",\"enableSystem\":true,\"children\":[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]}]]}],\"p\":false,\"v\":null},\"c\":\"$Q8\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$Lf\",null,{\"children\":\"$L10\"}],[\"$\",\"$L12\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$c\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L13\"}]}],null]}],null]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$14\",[]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"ip43TIgmaByEBn2GFtvfO\"}\n"])</script><script>self.__next_f.push([1,"9:C\n10:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"15:I[6869,[],\"IconMark\"]\nd:null\n13:[[\"$\",\"title\",\"0\",{\"children\":\"Rigscope\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Self-hosted remote system monitor — a live fleet of collectors behind one authenticated hub.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/icon.svg?3b3fa3229e2d0d7a\",\"type\":\"image/svg+xml\",\"sizes\":\"any\"}],[\"$\",\"$L15\",\"3\",{}]]\n"])</script></body></html>
1
+ <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/2abef6d49c1c2970.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-9ca43f4ce1bb8938.js"/><script src="/_next/static/chunks/4bd1b696-c7408084347438ae.js" async=""></script><script src="/_next/static/chunks/794-ceeb732a1a81bc27.js" async=""></script><script src="/_next/static/chunks/main-app-f92328c8950d2e53.js" async=""></script><script src="/_next/static/chunks/939-514e554087419c71.js" async=""></script><script src="/_next/static/chunks/app/layout-4feff677c4071745.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><title>Rigscope</title><meta name="description" content="Self-hosted remote system monitor — a live fleet of collectors behind one authenticated hub."/><link rel="icon" href="/icon.svg?3b3fa3229e2d0d7a" type="image/svg+xml" sizes="any"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><script>((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}})("class","theme","dark",null,["light","dark"],null,true,true)</script><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-9ca43f4ce1bb8938.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"static/chunks/939-514e554087419c71.js\"\n3:\"static/chunks/app/layout-4feff677c4071745.js\"\n4:I[2737,[\"939\",\"$2\",\"177\",\"$3\"],\"ThemeProvider\"]\n5:I[9939,[\"939\",\"$2\",\"177\",\"$3\"],\"LiveProvider\"]\n6:I[7121,[],\"\"]\n7:I[4581,[],\"\"]\nb:I[484,[],\"OutletBoundary\"]\nc:\"$Sreact.suspense\"\ne:\"ViewportBoundary\"\nf:I[484,[],\"$e\"]\n11:\"MetadataBoundary\"\n12:I[484,[],\"$11\"]\n14:I[7123,[],\"default\",1]\n:HL[\"/_next/static/css/2abef6d49c1c2970.css\",\"style\"]\n9:X\na:[[\"children\",{\"s\":\"__PAGE__\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$Lb\",null,{\"children\":[\"$\",\"$c\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@d\"}]}]]}],\"p\":false,\"v\":null}}]]\n8:[[\"children\",{\"s\":\"_not-found\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],\"p\":false,\"v\":\"$9\"},\"c\":\"$Qa\"}]]\n0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/2abef6d49c1c2970.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L4\",null,{\"attribute\":\"class\",\"defaultTheme\":\"dark\",\"enableSystem\":true,\"children\":[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]}]]}],\"p\":false,\"v\":null},\"c\":\"$Q8\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$Lf\",null,{\"children\":\"$L10\"}],[\"$\",\"$L12\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$c\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L13\"}]}],null]}],null]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$14\",[]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"Jlbibe2_iFCljUO4-BUK7\"}\n"])</script><script>self.__next_f.push([1,"9:C\n10:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"15:I[6869,[],\"IconMark\"]\nd:null\n13:[[\"$\",\"title\",\"0\",{\"children\":\"Rigscope\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Self-hosted remote system monitor — a live fleet of collectors behind one authenticated hub.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/icon.svg?3b3fa3229e2d0d7a\",\"type\":\"image/svg+xml\",\"sizes\":\"any\"}],[\"$\",\"$L15\",\"3\",{}]]\n"])</script></body></html>
@@ -1 +1 @@
1
- <!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-9ca43f4ce1bb8938.js"/><script src="/_next/static/chunks/4bd1b696-c7408084347438ae.js" async=""></script><script src="/_next/static/chunks/794-ceeb732a1a81bc27.js" async=""></script><script src="/_next/static/chunks/main-app-f92328c8950d2e53.js" async=""></script><title>500: This page couldn’t load</title><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-9ca43f4ce1bb8938.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[7121,[],\"\"]\n3:I[4581,[],\"\"]\n7:I[484,[],\"OutletBoundary\"]\n8:\"$Sreact.suspense\"\na:\"ViewportBoundary\"\nb:I[484,[],\"$a\"]\nd:\"MetadataBoundary\"\ne:I[484,[],\"$d\"]\n10:I[7123,[],\"default\",1]\n4:X\n"])</script><script>self.__next_f.push([1,"6:[[\"children\",{\"s\":\"__PAGE__\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L7\",null,{\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@9\"}]}]]}],\"p\":false,\"v\":null}}]]\n"])</script><script>self.__next_f.push([1,"5:[[\"children\",{\"s\":\"_global-error\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],\"p\":false,\"v\":\"$4\"},\"c\":\"$Q6\"}]]\n0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],\"p\":false,\"v\":\"$4\"},\"c\":\"$Q5\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Lb\",null,{\"children\":\"$Lc\"}],[\"$\",\"$Le\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lf\"}]}],null]}],null]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$10\",[]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"ip43TIgmaByEBn2GFtvfO\"}\n"])</script><script>self.__next_f.push([1,"4:C\nc:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"9:null\nf:[]\n"])</script></body></html>
1
+ <!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-9ca43f4ce1bb8938.js"/><script src="/_next/static/chunks/4bd1b696-c7408084347438ae.js" async=""></script><script src="/_next/static/chunks/794-ceeb732a1a81bc27.js" async=""></script><script src="/_next/static/chunks/main-app-f92328c8950d2e53.js" async=""></script><title>500: This page couldn’t load</title><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-9ca43f4ce1bb8938.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[7121,[],\"\"]\n3:I[4581,[],\"\"]\n7:I[484,[],\"OutletBoundary\"]\n8:\"$Sreact.suspense\"\na:\"ViewportBoundary\"\nb:I[484,[],\"$a\"]\nd:\"MetadataBoundary\"\ne:I[484,[],\"$d\"]\n10:I[7123,[],\"default\",1]\n4:X\n"])</script><script>self.__next_f.push([1,"6:[[\"children\",{\"s\":\"__PAGE__\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L7\",null,{\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@9\"}]}]]}],\"p\":false,\"v\":null}}]]\n"])</script><script>self.__next_f.push([1,"5:[[\"children\",{\"s\":\"_global-error\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],\"p\":false,\"v\":\"$4\"},\"c\":\"$Q6\"}]]\n0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],\"p\":false,\"v\":\"$4\"},\"c\":\"$Q5\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Lb\",null,{\"children\":\"$Lc\"}],[\"$\",\"$Le\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lf\"}]}],null]}],null]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$10\",[]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"Jlbibe2_iFCljUO4-BUK7\"}\n"])</script><script>self.__next_f.push([1,"4:C\nc:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"9:null\nf:[]\n"])</script></body></html>
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[408],{4150:(e,t,r)=>{r.d(t,{Au:()=>u,_C:()=>a,eg:()=>c});var n=r(5155),s=r(2115),i=r(6304),l=r(5078);let o=(0,s.createContext)(null);function a({children:e}){let[t,r]=(0,s.useState)(null),i=(0,s.useCallback)(e=>r(t=>t?.timeMs===e?.timeMs&&t?.source===e?.source?t:e),[]),l=(0,s.useMemo)(()=>({cursor:t,setCursor:i}),[t,i]);return(0,n.jsx)(o.Provider,{value:l,children:e})}function u({series:e,fromMs:t,toMs:r,stepMs:n,gaps:l}){let a=(0,s.useId)(),[c,d]=(0,s.useState)(null),m=(0,s.useContext)(o),f=m?m.cursor:c,p=m?m.setCursor:d,h=(0,s.useRef)(null),g=(0,s.useRef)(null),y=(0,s.useCallback)(()=>{null!==h.current&&cancelAnimationFrame(h.current),h.current=null,g.current=null},[]);(0,s.useEffect)(()=>y,[y]);let b=(0,s.useMemo)(()=>(0,i.X)(e).filter(e=>e.t<=r&&e.t+n/2>=t),[e,t,r,n]),x=f&&f.timeMs>=t-n/2&&f.timeMs<=r?f.timeMs:null,v=null!==x&&f?.source===a;(0,s.useEffect)(()=>{if(!v)return;let e=e=>{"Escape"===e.key&&(y(),p(null))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[v,p,y]);let M=()=>{y(),f?.source===a&&p(null)};return{id:a,timeMs:x,active:v,inspect:e=>{let s=Math.max(t,Math.min(r,e)),o=(0,i.bO)(b,s,n,l);g.current={timeMs:o?.t??s,source:a},null===h.current&&(h.current=requestAnimationFrame(()=>{h.current=null,p(g.current),g.current=null}))},clear:M,onKeyDown:e=>{if(y(),"Escape"===e.key)e.preventDefault(),M();else if(["ArrowLeft","ArrowRight","Home","End"].includes(e.key)){e.preventDefault();let t=(0,i.o7)(b,x,e.key);null!==t&&p({timeMs:t,source:a})}},onFocus:()=>{y(),p({timeMs:b.at(-1)?.t??r,source:a})}}}function c({id:e,timeMs:t,fraction:r,unit:i,readings:o}){let[a]=(0,s.useState)(()=>r>.5?"left":"right");return(0,n.jsxs)("div",{id:e,role:"tooltip",className:`pointer-events-none absolute bottom-full mb-2 md:pointer-events-auto md:bottom-auto md:top-2 md:mb-0 z-10 max-h-56 w-56 max-w-[calc(100%-1rem)] overflow-y-auto rounded-md border border-border bg-card p-3 text-xs text-foreground ${"left"===a?"left-2":"right-2"}`,children:[(0,n.jsx)("p",{className:"tnum font-medium",children:(0,l.r6)(t)}),(0,n.jsx)("p",{className:"mb-2 text-muted-foreground",children:"Recorded bucket average"}),(0,n.jsx)("dl",{className:"grid grid-cols-[minmax(0,1fr)_auto] items-baseline gap-x-4 gap-y-1.5",children:o.map(({key:e,label:r,color:s,point:o})=>(0,n.jsxs)("div",{className:"contents",children:[(0,n.jsxs)("dt",{className:"flex min-w-0 items-center gap-1.5",children:[(0,n.jsx)("span",{"aria-hidden":!0,className:"h-2 w-2 shrink-0 rounded-full",style:{backgroundColor:s}}),(0,n.jsx)("span",{className:"break-words",children:r})]}),(0,n.jsxs)("dd",{className:"tnum text-right",children:[o?.avg==null?"No reading":(0,l.dd)(o.avg,i),o&&o.t!==t?(0,n.jsx)("span",{className:"block text-muted-foreground",children:(0,l.ei)(o.t)}):null]})]},e))})]})}},4567:(e,t,r)=>{r.d(t,{Cv:()=>s,H9:()=>n,Lf:()=>u,P$:()=>i,RL:()=>g,bP:()=>h,er:()=>m,oB:()=>a,ue:()=>p,yv:()=>d});let n=[{metric:"cpu.usage",label:"CPU usage",shortLabel:"CPU",unit:"percent",family:"cpu",colorSlot:0,description:"Total processor utilization"},{metric:"cpu.core",label:"Per-core CPU",shortLabel:"Per-core",unit:"percent",family:"cpu",colorSlot:0,description:"Logical-core utilization; heatmap for large selections"},{metric:"cpu.temperature",label:"CPU temperature",shortLabel:"Temperature",unit:"celsius",family:"cpu",colorSlot:3,description:"Identifiable CPU hwmon sensor temperature"},{metric:"cpu.power",label:"CPU package power",shortLabel:"Power",unit:"watts",family:"cpu",colorSlot:4,description:"Top-level RAPL package power draw"},{metric:"cpu.iowait",label:"CPU I/O wait",shortLabel:"I/O wait",unit:"percent",family:"cpu",colorSlot:2,description:"Processor time waiting on I/O"},{metric:"cpu.pressure",label:"CPU pressure",shortLabel:"Pressure",unit:"percent",family:"cpu",colorSlot:4,description:"Linux PSI CPU stall pressure (avg10)"},{metric:"memory.used",label:"Memory used",shortLabel:"Memory",unit:"bytes",family:"memory",colorSlot:1,description:"Physical memory in use"},{metric:"memory.usage",label:"Memory usage",shortLabel:"Memory %",unit:"percent",family:"memory",colorSlot:1,description:"Physical memory used as a share of total"},{metric:"memory.pressure.some",label:"Memory pressure (some)",shortLabel:"Pressure some",unit:"percent",family:"memory",colorSlot:2,description:"Linux PSI memory stall pressure, some tasks (avg10)"},{metric:"memory.pressure.full",label:"Memory pressure (full)",shortLabel:"Pressure full",unit:"percent",family:"memory",colorSlot:4,description:"Linux PSI memory stall pressure, all tasks (avg10)"},{metric:"swap.used",label:"Swap used",shortLabel:"Swap",unit:"bytes",family:"swap",colorSlot:2,description:"Swap space in use"},{metric:"gpu.utilization",label:"GPU utilization",shortLabel:"Utilization",unit:"percent",family:"gpus",colorSlot:0,description:"Per-card graphics processor utilization"},{metric:"gpu.memory.used",label:"GPU memory used",shortLabel:"VRAM",unit:"bytes",family:"gpus",colorSlot:1,description:"Per-card video memory in use"},{metric:"gpu.temperature",label:"GPU temperature",shortLabel:"Temperature",unit:"celsius",family:"gpus",colorSlot:3,description:"Per-card temperature"},{metric:"gpu.power",label:"GPU power",shortLabel:"Power",unit:"watts",family:"gpus",colorSlot:4,description:"Per-card power draw"},{metric:"fs.used",label:"Filesystem used",shortLabel:"Filesystem",unit:"bytes",family:"disks",colorSlot:1,description:"Used space per mounted filesystem"},{metric:"fs.usage",label:"Filesystem usage",shortLabel:"Filesystem %",unit:"percent",family:"disks",colorSlot:1,description:"Used capacity per mounted filesystem, derived from a positive total"},{metric:"fs.inodes.usage",label:"Inode usage",shortLabel:"Inodes %",unit:"percent",family:"disks",colorSlot:2,description:"Used inodes per filesystem where the collector can read them"},{metric:"disk.read",label:"Disk read",shortLabel:"Read",unit:"bytes_per_second",family:"disks",colorSlot:0,description:"Device read throughput"},{metric:"disk.write",label:"Disk write",shortLabel:"Write",unit:"bytes_per_second",family:"disks",colorSlot:2,description:"Device write throughput"},{metric:"disk.read.latency",label:"Disk read latency",shortLabel:"Read latency",unit:"milliseconds",family:"disks",colorSlot:0,description:"Average device read latency"},{metric:"disk.write.latency",label:"Disk write latency",shortLabel:"Write latency",unit:"milliseconds",family:"disks",colorSlot:2,description:"Average device write latency"},{metric:"disk.utilization",label:"Disk utilization",shortLabel:"Utilization",unit:"percent",family:"disks",colorSlot:3,description:"Share of time the device had I/O in flight"},{metric:"io.pressure.some",label:"I/O pressure (some)",shortLabel:"I/O some",unit:"percent",family:"disks",colorSlot:3,description:"Linux PSI I/O stall pressure, some tasks (avg10)"},{metric:"io.pressure.full",label:"I/O pressure (full)",shortLabel:"I/O full",unit:"percent",family:"disks",colorSlot:4,description:"Linux PSI I/O stall pressure, all tasks (avg10)"},{metric:"net.rx",label:"Network received",shortLabel:"Received",unit:"bytes_per_second",family:"network",colorSlot:0,description:"Interface receive rate"},{metric:"net.tx",label:"Network sent",shortLabel:"Sent",unit:"bytes_per_second",family:"network",colorSlot:2,description:"Interface transmit rate"}];function s(e,t){return e.filter(r=>{for(let[n,s,i]of[["memory","memory.used","memory.usage"],["filesystem","fs.used","fs.usage"]])if(e.includes(s)&&e.includes(i)&&(r===s||r===i))return r===("percent"===t[n]?i:s);return!0})}let i=[{id:"cpu",label:"CPU",metrics:["cpu.usage","cpu.core","cpu.iowait","cpu.pressure","cpu.temperature","cpu.power"]},{id:"memory",label:"Memory",metrics:["memory.used","memory.usage","swap.used","memory.pressure.some","memory.pressure.full"]},{id:"gpu",label:"GPU",metrics:["gpu.utilization","gpu.memory.used","gpu.temperature","gpu.power"]},{id:"disk",label:"Storage",metrics:["fs.used","fs.usage","fs.inodes.usage","disk.read","disk.write","disk.read.latency","disk.write.latency","disk.utilization","io.pressure.some","io.pressure.full"]},{id:"network",label:"Network",metrics:["net.rx","net.tx"]}],l=["var(--cpu)","var(--mem)","color-mix(in oklab, var(--swap) 75%, var(--foreground))","var(--warn)","var(--crit)","var(--accent)"],o=[void 0,"7 4","2 3","10 3 2 3","4 4","1 3"];function a(e){return n.find(t=>t.metric===e)??null}function u(e,t){let r=Math.max(0,t),n=e.colorSlot+r,s=(r+Math.floor(n/l.length))%o.length;return{color:l[n%l.length],dash:o[s]}}let c={cpu:"CPU",memory:"Memory",swap:"Swap",gpus:"GPU metrics",disks:"Disk metrics",network:"Network metrics"};function d(e,t){let r=a(t);if(null===r||void 0===e)return{available:!0,reason:null};let n=e.inventory?.capabilities?.[r.family];if(!n||"supported"===n.status)return{available:!0,reason:null};let s=n.reason?.trim();return{available:!1,reason:s?`${c[r.family]}: ${n.status} — ${s}`:`${c[r.family]} are ${n.status} on this machine.`}}function m(e){if(void 0===e)return[];let t=[],r=r=>{!(t.length>=16)&&d(e,r).available&&t.push(r)};r("cpu.usage"),r("memory.used");let n=function(e){let t=e.inventory?.memory.swapTotalBytes;if("number"==typeof t)return t;let r=e.metrics?.payload.swap;return r?.status==="ok"?r.totalBytes:null}(e);return null!==n&&n>0&&r("swap.used"),p(e,[]).length>0&&(r("gpu.utilization"),r("gpu.memory.used")),t}function f(e){let t=e.includes(":")?e.slice(e.indexOf(":")+1):e;return t.length<=18?t:`${t.slice(0,10)}…${t.slice(-4)}`}function p(e,t){let r=new Set(t.filter(e=>e.metric.startsWith("gpu.")&&""!==e.resourceId&&e.points.some(e=>null!==e.avg||null!==e.min||null!==e.max)).map(e=>e.resourceId)),n=[],s=new Set;(e?.inventory?.gpus??[]).forEach(e=>{let t="supported"===e.telemetry;(t||r.has(e.id))&&(s.add(e.id),n.push({id:e.id,label:e.name.trim()||f(e.id),index:n.length,totalBytes:e.memoryTotalBytes,supported:t,hasHistory:r.has(e.id)}))});let i=e?.metrics?.payload.gpus;if(i?.status==="ok")for(let e of i.devices)s.has(e.id)||"ok"!==e.status||(s.add(e.id),n.push({id:e.id,label:f(e.id),index:n.length,totalBytes:e.memoryTotalBytes,supported:!0,hasHistory:r.has(e.id)}));for(let e of[...r].sort())s.has(e)||n.push({id:e,label:e.startsWith("pci:")?`Previously detected GPU (${f(e)})`:f(e),index:n.length,totalBytes:null,supported:!0,hasHistory:!0});return n}function h(e,t,r){if(""===r)return a(t)?.shortLabel??"Total";let n=a(t);if(null===n)return f(r);switch(n.family){case"gpus":{let t=e?.inventory?.gpus.find(e=>e.id===r);return t?.name.trim()||f(r)}case"disks":{if(t.startsWith("fs.")){let t=e?.inventory?.filesystems.find(e=>e.id===r);return t?.mountPoint||f(r)}let n=e?.inventory?.disks.find(e=>e.id===r);return n?.name||f(r)}case"network":{let t=e?.inventory?.network.find(e=>e.id===r);return t?.name||f(r)}case"cpu":{let e=/^core:(\d+)$/.exec(r);return e?`Core ${e[1]}`:f(r)}default:return f(r)}}function g(e){switch(e){case"percent":return"%";case"bytes":return"bytes";case"bytes_per_second":return"bytes/s";case"celsius":return"\xb0C";case"watts":return"W";case"milliseconds":return"ms";default:return e}}},5078:(e,t,r)=>{r.d(t,{Ah:()=>d,I_:()=>h,O5:()=>p,Vw:()=>M,bf:()=>v,dd:()=>c,ei:()=>m,fH:()=>g,ly:()=>s,pI:()=>n,r6:()=>f,zp:()=>i});let n=[{id:"10m",shortLabel:"10m",label:"Last 10 minutes",ms:6e5,refreshMs:1e3},{id:"1h",shortLabel:"1h",label:"Last hour",ms:36e5,refreshMs:1e3},{id:"6h",shortLabel:"6h",label:"Last 6 hours",ms:216e5,refreshMs:1e3},{id:"24h",shortLabel:"24h",label:"Last 24 hours",ms:864e5,refreshMs:1e3},{id:"7d",shortLabel:"7d",label:"Last 7 days",ms:6048e5,refreshMs:1e3}];function s(e){return n.find(t=>t.id===e)??n[0]}function i(e){return s(e).refreshMs}let l=["B","KiB","MiB","GiB","TiB","PiB"];function o(e){let t=Math.abs(e),r=0;for(;t>=1024&&r<l.length-1;)t/=1024,r+=1;return{value:e<0?-t:t,unit:l[r]}}function a(e,t){return String(Number(e.toFixed(t)))}function u(e,t=""){let{value:r,unit:n}=o(e),s=Math.abs(r)>=100?0:1;return`${a(r,s)} ${n}${t}`}function c(e,t){if(null==e||!Number.isFinite(e))return"—";switch(t){case"percent":return`${a(e,1)}%`;case"bytes":return u(e);case"bytes_per_second":return u(e,"/s");case"celsius":return`${a(e,1)}\xb0C`;case"watts":return`${a(e,1)} W`;case"milliseconds":return`${a(e,10>Math.abs(e)?2:1)} ms`;default:return a(e,2)}}function d(e,t){if(!Number.isFinite(e))return"—";switch(t){case"percent":return`${a(e,0)}%`;case"bytes":case"bytes_per_second":{let{value:r,unit:n}=o(e),s=Math.abs(r)>=10||0===r?0:1;return`${a(r,s)} ${n}${"bytes_per_second"===t?"/s":""}`}case"celsius":return`${a(e,0)}\xb0C`;case"watts":return`${a(e,0)} W`;case"milliseconds":return`${a(e,+(10>Math.abs(e)))} ms`;default:return a(e,1)}}function m(e){return new Date(e).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}function f(e){return new Date(e).toLocaleString(void 0,{dateStyle:"medium",timeStyle:"medium"})}function p(e,t){let r=new Date(e);return t>=1728e5?r.toLocaleDateString(void 0,{month:"short",day:"numeric"}):t>=864e5?r.toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}):r.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",hour12:!1})}function h(e){let t=Math.max(0,e);return t>=36e5?`${a(t/36e5,1)} h`:t>=6e4?`${a(t/6e4,1)} min`:`${a(t/1e3,1)} s`}function g(e,t,r){let n=e.filter(e=>e.toMs>=t&&e.fromMs<=r);if(0===n.length)return"No recorded gaps in this range.";let s=n.filter(e=>"dropped"===e.kind).length,i=n.length-s,l=[];i>0&&l.push(`${i} missed interval${1===i?"":"s"}`),s>0&&l.push(`${s} dropped report${1===s?"":"s"}`);let o=[...new Set(n.map(e=>e.reason).filter(e=>"string"==typeof e&&e.length>0))],a=o.length>0?` (${o.slice(0,3).join("; ")})`:"";return`${l.join(" and ")}${a}.`}function y(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function b(e){return"number"==typeof e&&Number.isFinite(e)}function x(e){return null===e||b(e)}function v(e){if(!y(e)||"string"!=typeof e.machineId||0===e.machineId.length||!b(e.fromMs)||!b(e.toMs)||e.toMs<=e.fromMs||!b(e.stepMs)||e.stepMs<=0||"1s"!==e.tier&&"raw"!==e.tier&&"10s"!==e.tier&&"1m"!==e.tier&&"1h"!==e.tier||"boolean"!=typeof e.truncated||!b(e.elapsedMs)||!Array.isArray(e.series)||!Array.isArray(e.gaps))return null;let t=[];for(let r of e.series){if(!y(r)||"string"!=typeof r.metric||"string"!=typeof r.resourceId||"string"!=typeof r.unit||!Array.isArray(r.points))return null;let e=[];for(let t of r.points){if(!y(t)||!b(t.t)||!x(t.min)||!x(t.max)||!x(t.avg))return null;e.push({t:t.t,min:t.min,max:t.max,avg:t.avg})}t.push({metric:r.metric,resourceId:r.resourceId,unit:r.unit,points:e})}let r=[];for(let t of e.gaps){if(!y(t)||!b(t.fromMs)||!b(t.toMs)||"missing"!==t.kind&&"dropped"!==t.kind)return null;let e={fromMs:t.fromMs,toMs:t.toMs,kind:t.kind};"string"==typeof t.reason&&(e.reason=t.reason),b(t.droppedRecords)&&(e.droppedRecords=t.droppedRecords),r.push(e)}return{machineId:e.machineId,fromMs:e.fromMs,toMs:e.toMs,stepMs:e.stepMs,tier:e.tier,series:t,gaps:r,truncated:e.truncated,elapsedMs:e.elapsedMs}}function M(e,t,r,n,i=600,l){let{fromMs:o,toMs:a}={fromMs:n-s(r).ms,toMs:n},u=new URLSearchParams({machineId:e,metrics:t.join(","),from:String(Math.floor(o)),to:String(Math.floor(a)),maxPoints:String(i)});return void 0!==l&&u.set("coreIds",l.join(",")),`/api/history?${u.toString()}`}},6304:(e,t,r)=>{function n(e,t,r,n){if(n.some(e=>t>e.fromMs&&t<e.toMs))return null;let s=0,i=e.length;for(;s<i;){let r=s+i>>>1;e[r].t<t?s=r+1:i=r}let l=e[s-1],o=e[s],a=l&&(!o||t-l.t<=o.t-t)?l:o;return!a||Math.abs(a.t-t)>r/2||n.some(e=>e.toMs>Math.min(t,a.t)&&e.fromMs<Math.max(t,a.t))?null:a}function s(e){return[...new Set(e.flatMap(e=>e.points.map(e=>e.t)))].sort((e,t)=>e-t).map(e=>({t:e,min:null,max:null,avg:null}))}function i(e,t,r,n,s,l=0){return Math.round(n+Math.max(0,Math.min(1,((r>0?(e-t)/r:0)-l)/(1-2*l)))*(s-n))}function l(e,t,r){return 0===e.length?null:"Home"===r?e[0].t:"End"===r||null===t?e.at(-1).t:"ArrowLeft"===r?[...e].reverse().find(e=>e.t<t)?.t??e[0].t:"ArrowRight"===r?e.find(e=>e.t>t)?.t??e.at(-1).t:t}r.d(t,{X:()=>s,bO:()=>n,o7:()=>l,yk:()=>i})},7284:(e,t,r)=>{r.d(t,{t:()=>c});var n=r(5155),s=r(2115),i=r(7726),l=r(5078),o=r(4567),a=r(6304),u=r(4150);function c(e){let{title:t,unit:r,series:c,fromMs:d,toMs:m,stepMs:f,gaps:p,hiddenKeys:h,onToggleSeries:g,emptyMessage:y,note:b}=e,x=(0,s.useMemo)(()=>c.filter(e=>!h.has(e.key)),[c,h]),v=(0,u.Au)({series:x,fromMs:d,toMs:m,stepMs:f,gaps:p}),M=(0,s.useRef)(null),k=(0,s.useMemo)(()=>x.flatMap(e=>e.points),[x]),w=k.some(e=>null!==e.avg||null!==e.min||null!==e.max),$=Math.max(1,m-d),j=(0,s.useMemo)(()=>(0,i.$z)(p,d,m,k),[p,d,m,k]),S=(0,s.useMemo)(()=>(0,i.kk)(r,k.flatMap(e=>[e.min,e.max,e.avg]).filter(e=>null!==e)),[r,k]),L=Math.max(1e-9,S.max-S.min),N=(0,s.useCallback)(e=>6+(Math.min(m,Math.max(d,e))-d)/$*788,[d,m,$]),P=(0,s.useCallback)(e=>6+(1-(e-S.min)/L)*148,[S.min,L]),I=(0,s.useMemo)(()=>x.map(t=>{let r=(0,i.o)(t.points,{stepMs:f,gaps:j,fromMs:d,toMs:m}).map(t=>(0,i.SG)(t,e.maxDrawPoints??601,f));return{...t,segments:r,envelope:r.filter(e=>e.length>1).map(e=>{let t=e.map(e=>`${N(e.t).toFixed(2)},${P(e.max??e.avg).toFixed(2)}`),r=[...e].reverse().map(e=>`${N(e.t).toFixed(2)},${P(e.min??e.avg).toFixed(2)}`);return`M${t.join("L")}L${r.join("L")}Z`}).join(" "),path:r.filter(e=>e.length>1).map(e=>e.map((e,t)=>`${0===t?"M":"L"}${N(e.t).toFixed(2)},${P(e.avg).toFixed(2)}`).join(" ")).join(" ")}}),[x,e.maxDrawPoints,f,j,d,m,N,P]),C=(0,s.useMemo)(()=>(function(e,t,r,n,s,o){if(0===r.length)return`${e} chart: no series selected.`;let a=r.map(e=>{let r=(0,i.T6)(e.points);return`${e.label}: ${function(e,t){let r=[];if(null!==e.latest){let n=null!==e.latestT?(0,l.ei)(e.latestT):null;r.push(`latest ${(0,l.dd)(e.latest,t)}${n?` at ${n}`:""}`)}return r.push(`average ${(0,l.dd)(e.avg,t)}`),null!==e.min&&null!==e.max&&r.push(`recorded range ${(0,l.dd)(e.min,t)} to ${(0,l.dd)(e.max,t)}`),r.join(", ")}(r,t)}`}),u=o>0?`${o} shaded interval${1===o?"":"s"} without stored data.`:"";return`${e} time-series chart. ${a.join(". ")}. ${u} Time range ${(0,l.ei)(n)} to ${(0,l.ei)(s)}.`})(t,r,x,d,m,j.length),[t,r,x,d,m,j.length]),A=(0,s.useMemo)(()=>new Map(c.map(e=>[e.key,(0,i.T6)(e.points)])),[c]),D=null===v.timeMs?[]:x.map(e=>({...e,point:(0,a.bO)(e.points,v.timeMs,f,p)})),F=null===v.timeMs?null:N(v.timeMs),R=`${v.id}-tooltip`,T=`${v.id}-instructions`,U=(0,s.useMemo)(()=>(0,n.jsxs)(n.Fragment,{children:[S.ticks.map(e=>(0,n.jsx)("line",{x1:6,x2:794,y1:P(e),y2:P(e),stroke:"var(--border)",strokeWidth:"1",vectorEffect:"non-scaling-stroke"},`grid-${e}`)),j.map(e=>(0,n.jsx)("rect",{x:N(e.fromMs),y:6,width:Math.max(1,N(e.toMs)-N(e.fromMs)),height:148,fill:"var(--muted-foreground)",opacity:"0.09"},`gap-${e.fromMs}-${e.toMs}-${e.kind}`)),I.map(e=>{let t=e.envelope;return""===t?null:(0,n.jsx)("path",{d:t,fill:e.color,opacity:"0.14",stroke:"none"},`band-${e.key}`)}),I.map(e=>{let t=e.path;return""===t?null:(0,n.jsx)("path",{d:t,fill:"none",stroke:e.color,strokeWidth:"2",strokeDasharray:e.dash,strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"},`line-${e.key}`)}),I.flatMap(e=>e.segments.filter(e=>1===e.length).map(t=>{let r=t[0],s=N(r.t),i=P(r.avg);return(0,n.jsx)("line",{x1:s-2.5,x2:s+2.5,y1:i,y2:i,stroke:e.color,strokeWidth:"2.5",strokeLinecap:"round",vectorEffect:"non-scaling-stroke"},`dot-${e.key}-${r.t}`)}))]}),[S,N,P,j,I]);return(0,n.jsxs)("figure",{className:`flex min-w-0 flex-col gap-2 ${e.className??""}`,children:[(0,n.jsxs)("div",{className:"flex min-h-8 flex-wrap items-center justify-between gap-2",children:[(0,n.jsx)("h3",{className:"text-xs font-medium tracking-tight text-foreground",children:t}),(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)("span",{className:"tnum shrink-0 text-xs text-muted-foreground",children:b??(0,o.RL)(r)}),e.action]})]}),w?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex min-w-0 gap-2",children:[(0,n.jsx)("div",{"aria-hidden":!0,className:"flex h-40 w-14 shrink-0 flex-col justify-between py-0.5 text-right text-xs leading-none tnum text-muted-foreground",children:[...S.ticks].reverse().map(e=>(0,n.jsx)("span",{children:(0,l.Ah)(e,r)},e))}),(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsxs)("div",{className:"relative touch-pan-y select-none",onPointerLeave:e=>{"mouse"===e.pointerType&&v.clear()},onPointerDown:e=>{if("mouse"===e.pointerType)return;e.currentTarget.setPointerCapture(e.pointerId);let t=M.current?.getBoundingClientRect();t&&v.inspect((0,a.yk)(e.clientX,t.left,t.width,d,m,.0075))},onPointerCancel:v.clear,onContextMenu:e=>e.preventDefault(),onPointerMove:e=>{let t=M.current?.getBoundingClientRect();t&&v.inspect((0,a.yk)(e.clientX,t.left,t.width,d,m,.0075))},children:[(0,n.jsx)("p",{id:T,className:"sr-only",children:"Touch and drag horizontally to inspect readings. Use Left and Right arrows to inspect recorded readings, Home or End to jump, and Escape to dismiss."}),(0,n.jsxs)("svg",{ref:M,viewBox:"0 0 800 160",preserveAspectRatio:"none",role:"img","aria-label":C,tabIndex:0,"aria-describedby":`${T}${v.active?` ${R}`:""}`,onFocus:v.onFocus,onBlur:v.clear,onKeyDown:v.onKeyDown,className:"block h-40 w-full cursor-crosshair rounded-sm focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent",children:[(0,n.jsx)("title",{children:t}),U,null!==F?(0,n.jsxs)("g",{"aria-hidden":!0,pointerEvents:"none",children:[(0,n.jsx)("line",{x1:F,x2:F,y1:6,y2:154,stroke:"var(--muted-foreground)",strokeWidth:"1",strokeDasharray:"3 3",vectorEffect:"non-scaling-stroke"}),D.map(({key:e,color:t,point:r})=>r?.avg==null?null:(0,n.jsx)("circle",{cx:N(r.t),cy:P(r.avg),r:"3.5",fill:t,stroke:"var(--card)",strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"},e))]}):null]}),v.active&&null!==v.timeMs&&null!==F?(0,n.jsx)(u.eg,{id:R,timeMs:v.timeMs,fraction:F/800,unit:r,readings:D}):null]}),(0,n.jsx)("div",{"aria-hidden":!0,className:"mt-1 flex justify-between gap-2 text-xs leading-tight tnum text-muted-foreground",children:(0,i.Cf)(d,m).map((e,t,r)=>(0,n.jsx)("span",{className:`${0===t?"text-left":t===r.length-1?"text-right":"hidden text-center sm:inline"}`,children:(0,l.O5)(e,$)},e))})]})]}),(0,n.jsx)("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1.5 text-xs",children:c.map(e=>{let t=!h.has(e.key),s=A.get(e.key);return(0,n.jsxs)("label",{className:"inline-flex min-h-7 cursor-pointer items-center gap-1.5",title:t?`Hide ${e.label}`:`Show ${e.label}`,children:[(0,n.jsx)("input",{type:"checkbox",checked:t,onChange:()=>g(e.key),className:"peer sr-only"}),(0,n.jsx)("span",{"aria-hidden":!0,className:"flex h-4 w-5 shrink-0 items-center justify-center rounded-sm peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:[outline-color:var(--focus)]",children:(0,n.jsx)("svg",{viewBox:"0 0 20 8",className:"h-2 w-5","aria-hidden":!0,children:(0,n.jsx)("line",{x1:"1",y1:"4",x2:"19",y2:"4",stroke:e.color,strokeWidth:"2.5",strokeDasharray:e.dash,strokeLinecap:"round"})})}),(0,n.jsx)("span",{className:t?"text-foreground":"text-muted-foreground line-through",children:e.label}),(0,n.jsx)("span",{className:"tnum text-muted-foreground",children:(0,l.dd)(s.latest,r)})]},`legend-${e.key}`)})})]}):(0,n.jsx)("div",{className:"flex min-h-32 items-center justify-center rounded-lg border border-dashed border-border px-4 py-6 text-center text-xs text-muted-foreground",children:0===c.length?y:0===x.length?"All series are hidden. Re-enable one in the legend below.":y}),!w&&c.length>0?(0,n.jsx)("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1.5 text-xs",children:c.map(e=>{let t=!h.has(e.key);return(0,n.jsxs)("label",{className:"inline-flex min-h-7 cursor-pointer items-center gap-1.5",children:[(0,n.jsx)("input",{type:"checkbox",checked:t,onChange:()=>g(e.key),className:"peer sr-only"}),(0,n.jsx)("span",{"aria-hidden":!0,className:"flex h-4 w-5 shrink-0 items-center justify-center peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:[outline-color:var(--focus)]",children:(0,n.jsx)("svg",{viewBox:"0 0 20 8",className:"h-2 w-5","aria-hidden":!0,children:(0,n.jsx)("line",{x1:"1",y1:"4",x2:"19",y2:"4",stroke:e.color,strokeWidth:"2.5",strokeDasharray:e.dash,strokeLinecap:"round"})})}),(0,n.jsx)("span",{className:t?"text-foreground":"text-muted-foreground line-through",children:e.label})]},`legend-empty-${e.key}`)})}):null]})}},7726:(e,t,r)=>{function n(e){return null!==e.avg&&Number.isFinite(e.avg)}function s(e){return null!==e&&Number.isFinite(e)?e:null}function i(e){let t=[];for(let r of e){let e=t.at(-1);if(void 0!==e&&r.fromMs<=e.toMs){e.toMs=Math.max(e.toMs,r.toMs),"missing"===e.kind&&"dropped"===r.kind&&(e.kind="dropped"),void 0===e.reason&&void 0!==r.reason&&(e.reason=r.reason),void 0===e.droppedRecords&&void 0!==r.droppedRecords&&(e.droppedRecords=r.droppedRecords);continue}t.push({...r})}return t}function l(e,t,r,s){let l=i(e.map(e=>({...e,fromMs:Math.max(t,e.fromMs),toMs:Math.min(r,e.toMs)})).filter(e=>e.toMs>e.fromMs).sort((e,t)=>e.fromMs-t.fromMs||e.toMs-t.toMs));return void 0===s?l:function(e,t,r,s){if(0===e.length)return[];let l=[...new Set(t.filter(n).map(e=>e.t).filter(e=>Number.isFinite(e)))].sort((e,t)=>e-t),o=[];for(let t of e){let e=Math.max(r,Math.min(s,t.fromMs)),n=Math.max(r,Math.min(s,t.toMs));if(n<=e)continue;let i=Math.max(r,function(e,t){let r=0,n=e.length;for(;r<n;){let s=r+n>>>1;e[s]<=t?r=s+1:n=s}return r>0?e[r-1]:null}(l,e)??e),a=Math.min(s,function(e,t){let r=0,n=e.length;for(;r<n;){let s=r+n>>>1;e[s]<t?r=s+1:n=s}return r<e.length?e[r]:null}(l,n)??n);a<=i||o.push({...t,fromMs:i,toMs:a})}return o.sort((e,t)=>e.fromMs-t.fromMs||e.toMs-t.toMs),i(o)}(l,s,t,r)}function o(e,t,r){return Math.max(e,"1h"===t?36e5:"1m"===t?6e4:"10s"===t?1e4:"1s"===t?1e3:100,r??0)}function a(e,t){let r=[...e].sort((e,t)=>e.t-t.t),s=l(t.gaps,t.fromMs,t.toMs),i=Math.max(1,t.stepMs),o=[],a=[],u=()=>{a.length>0&&o.push(a),a=[]};for(let e of r){if(!n(e)){u();continue}let t=a.at(-1);if(void 0!==t){let r=!e.merged&&!t.merged&&(e.t<t.t||e.t-t.t>1.5*i),n=!0===e.gapBefore||function(e,t,r){return r.some(r=>r.toMs>e&&r.fromMs<t)}(t.t,e.t,s);(r||n)&&u()}a.push(e)}return u(),o}function u(e,t,r){if(t<=0)return[];let i=[...e].sort((e,t)=>e.t-t.t);if(i.length<=t)return i.map(e=>({...e}));let l=Math.max(2,Math.ceil(i.length/t)),o=Math.max(1,r),a=[],u=[],c=!1,d=null,m=()=>{if(0===u.length)return;let e=null,t=null,r=0,n=0;for(let i of u){let l=s(i.min),o=s(i.max);null!==l&&(null===e||l<e)&&(e=l),null!==o&&(null===t||o>t)&&(t=o);let a=s(i.avg);null!==a&&(r+=a,n+=1)}a.push({t:u[0].t,min:e,max:t,avg:n>0?r/n:null,...u.length>1?{merged:!0}:{},...c?{gapBefore:!0}:{}}),u=[],c=!1};for(let e of i){if(!n(e)){m(),a.push({...e}),d=null;continue}let t=null!==d&&e.t>=d.t&&e.t-d.t<=1.5*o;u.length>0&&(!t||u.length>=l)&&m(),0===u.length&&(c=null!==d&&!t),u.push(e),d=e}return m(),a}function c(e){let t=null,r=null,n=0,i=0,l=null,o=null,a=null,u=null;for(let c of e){if(null===c.avg)continue;(null===a||c.t<a)&&(a=c.t),(null===u||c.t>u)&&(u=c.t);let e=s(c.min),d=s(c.max);null!==e&&(null===t||e<t)&&(t=e),null!==d&&(null===r||d>r)&&(r=d),null!==c.avg&&Number.isFinite(c.avg)&&(n+=c.avg,i+=1,l=c.avg,o=c.t)}return{count:i,min:t,max:r,avg:i>0?n/i:null,latest:l,latestT:o,firstT:a,lastT:u}}function d(e){if(!Number.isFinite(e)||e<=0)return 1;let t=Math.pow(10,Math.floor(Math.log10(e))),r=e/t;return(r<=1?1:r<=2?2:r<=5?5:10)*t}function m(e,t){if("percent"===e)return{min:0,max:100,ticks:[0,25,50,75,100]};let r=t.filter(e=>null!==e&&Number.isFinite(e));if(0===r.length)return{min:0,max:1,ticks:[0,1]};let n=Math.min(...r),s=Math.max(...r);if("celsius"===e){let e=Math.max(1,(s-n)*.1);n=5*Math.floor((n-e)/5),s=5*Math.ceil((s+e)/5)}else n=0,s=s>0?s:1;s<=n&&(s=n+1);let i=d((s-n)/4),l=Math.floor(n/i)*i,o=Math.ceil(s/i)*i,a=function(e,t,r=4){if(!Number.isFinite(e)||!Number.isFinite(t))return[0,1];if(t<=e)return[e];let n=d((t-e)/Math.max(1,r)),s=Math.ceil(e/n)*n,i=[];for(let e=s;e<=t+.001*n&&i.length<20;e+=n)i.push(Number(e.toPrecision(12)));return i.length>0?i:[e,t]}(l,o,4);return{min:l,max:o,ticks:a}}function f(e,t,r=4){let n=Math.max(2,Math.floor(r)),s=Math.max(0,t-e);return Array.from({length:n},(t,r)=>e+s*r/(n-1))}r.d(t,{$z:()=>l,Cf:()=>f,SG:()=>u,T6:()=>c,jl:()=>o,kk:()=>m,o:()=>a})},9429:(e,t,r)=>{r.d(t,{n:()=>l});var n=r(2115),s=r(5078);async function i(e){let t=null;try{let r=await e.json();if(null!==r&&"object"==typeof r&&"error"in r){let e=r.error;"string"==typeof e&&(t=e)}}catch{}switch(e.status){case 401:return{kind:"unauthorized",message:"Your session is no longer accepted."};case 403:return{kind:"denied",message:t??"You do not have access to this machine's history."};case 404:return{kind:"missing",message:t??"This machine is not available to the hub."};case 429:return{kind:"rate-limited",message:t??"The hub is limiting history requests."};case 503:return{kind:"unavailable",message:t??"History is temporarily unavailable."};default:return{kind:"invalid",message:t??`The hub could not answer this history query (${e.status}).`}}}function l({machineId:e,metricsKey:t,coreIdsKey:r,range:o,enabled:a=!0,autoRefresh:u=!0,refreshNonce:c=0}){let[d,m]=(0,n.useState)({machineId:e,metricsKey:t,coreIdsKey:r,range:o}),f=d.machineId===e&&d.range===o;(0,n.useEffect)(()=>{if(!f)return void m({machineId:e,metricsKey:t,coreIdsKey:r,range:o});let n=window.setTimeout(()=>m({machineId:e,metricsKey:t,coreIdsKey:r,range:o}),300);return()=>window.clearTimeout(n)},[e,t,r,o,f]);let p=f?d:{machineId:e,metricsKey:t,coreIdsKey:r,range:o},h=p.metricsKey,g=p.coreIdsKey,y=`${e}|${h}|${o}|${g??"all"}`,[b,x]=(0,n.useState)(null),[v,M]=(0,n.useState)(null),[k,w]=(0,n.useState)(null),$=(0,n.useRef)(c);return(0,n.useEffect)(()=>{let t=$.current!==c;if($.current=c,!a||!e||!h)return;let r=!0,n=!1,l=!1,d=-1/0,m=new AbortController,f=(0,s.zp)(o),p=async(t=!1)=>{if(r&&!n&&!l){n=!0,d=Date.now(),w({key:y,manual:t});try{let t=await fetch((0,s.Vw)(e,h.split(","),o,Date.now(),600,void 0===g?void 0:g.split(",").filter(Boolean)),{signal:"function"!=typeof AbortSignal.any||"function"!=typeof AbortSignal.timeout?m.signal:AbortSignal.any([m.signal,AbortSignal.timeout(2e4)]),cache:"no-store",headers:{Accept:"application/json"}});if(!t.ok)throw await i(t);let n=(0,s.bf)(await t.json());if(null===n||n.machineId!==e)throw{kind:"invalid",message:"Unexpected history response."};if(!r)return;x({key:y,range:o,result:n,loadedAt:Date.now()}),M(null)}catch(t){if(!r||m.signal.aborted)return;let e=null!==t&&"object"==typeof t&&"kind"in t&&"message"in t&&"string"==typeof t.message?t:{kind:"network",message:"Could not reach the hub. Try again."};l="rate-limited"===e.kind,["unauthorized","denied","missing"].includes(e.kind)&&x(null),M({key:y,error:e})}finally{n=!1,r&&w(null)}}},b=()=>{"visible"!==document.visibilityState||Date.now()-d<f||p()};p(t);let v=u?window.setInterval(b,f):null;return u&&document.addEventListener("visibilitychange",b),()=>{r=!1,m.abort(),null!==v&&window.clearInterval(v),document.removeEventListener("visibilitychange",b)}},[a,e,h,g,o,y,u,c]),{data:a&&b?.result.machineId===e&&b.range===o?b:null,error:a&&v?.key===y?v.error:null,loading:a&&k?.key===y,manualRefreshing:a&&k?.key===y&&k.manual}}}}]);