@sleep2agi/agent-network-dashboard 0.6.3-preview.0 → 0.6.3-preview.2

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 (887) hide show
  1. package/.next/BUILD_COMMIT +1 -0
  2. package/.next/BUILD_ID +1 -1
  3. package/.next/app-path-routes-manifest.json +3 -0
  4. package/.next/build/chunks/{0eys_0hzxj57._.js → 0emd_0_wlp72._.js} +167 -167
  5. package/.next/build/chunks/0emd_0_wlp72._.js.map +47 -0
  6. package/.next/build/chunks/{[root-of-the-server]__0jzknqm._.js → [root-of-the-server]__0cyvgtf._.js} +7 -7
  7. package/.next/build/chunks/{[root-of-the-server]__0jzknqm._.js.map → [root-of-the-server]__0cyvgtf._.js.map} +2 -2
  8. package/.next/build/chunks/{[root-of-the-server]__02~~60i._.js → [root-of-the-server]__0z.4hvh._.js} +3 -3
  9. package/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_0ji7sn2._.js +13 -0
  10. package/.next/build/postcss.js +4 -4
  11. package/.next/build-manifest.json +8 -8
  12. package/.next/cache/.previewinfo +1 -1
  13. package/.next/cache/.rscinfo +1 -1
  14. package/.next/diagnostics/route-bundle-stats.json +168 -168
  15. package/.next/fallback-build-manifest.json +3 -3
  16. package/.next/prerender-manifest.json +3 -3
  17. package/.next/required-server-files.js +2 -2
  18. package/.next/required-server-files.json +2 -2
  19. package/.next/routes-manifest.json +18 -0
  20. package/.next/server/app/_global-error/page/build-manifest.json +5 -5
  21. package/.next/server/app/_global-error/page.js +9 -9
  22. package/.next/server/app/_global-error/page.js.nft.json +1 -1
  23. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  24. package/.next/server/app/_global-error.html +1 -1
  25. package/.next/server/app/_global-error.rsc +8 -8
  26. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +2 -2
  27. package/.next/server/app/_global-error.segments/_full.segment.rsc +8 -8
  28. package/.next/server/app/_global-error.segments/_head.segment.rsc +4 -4
  29. package/.next/server/app/_global-error.segments/_index.segment.rsc +3 -3
  30. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  31. package/.next/server/app/_not-found/page/build-manifest.json +5 -5
  32. package/.next/server/app/_not-found/page/next-font-manifest.json +1 -1
  33. package/.next/server/app/_not-found/page.js +12 -12
  34. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  35. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  36. package/.next/server/app/_not-found.html +2 -2
  37. package/.next/server/app/_not-found.rsc +13 -13
  38. package/.next/server/app/_not-found.segments/_full.segment.rsc +13 -13
  39. package/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
  40. package/.next/server/app/_not-found.segments/_index.segment.rsc +8 -8
  41. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  42. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  43. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  44. package/.next/server/app/admin/page/build-manifest.json +5 -5
  45. package/.next/server/app/admin/page/next-font-manifest.json +1 -1
  46. package/.next/server/app/admin/page.js +13 -13
  47. package/.next/server/app/admin/page.js.nft.json +1 -1
  48. package/.next/server/app/admin/page_client-reference-manifest.js +1 -1
  49. package/.next/server/app/admin.html +2 -2
  50. package/.next/server/app/admin.rsc +15 -15
  51. package/.next/server/app/admin.segments/_full.segment.rsc +15 -15
  52. package/.next/server/app/admin.segments/_head.segment.rsc +4 -4
  53. package/.next/server/app/admin.segments/_index.segment.rsc +8 -8
  54. package/.next/server/app/admin.segments/_tree.segment.rsc +2 -2
  55. package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +4 -4
  56. package/.next/server/app/admin.segments/admin.segment.rsc +3 -3
  57. package/.next/server/app/api/anet/config/route.js +6 -6
  58. package/.next/server/app/api/anet/config/route.js.nft.json +1 -1
  59. package/.next/server/app/api/anet/node-config/route/app-paths-manifest.json +3 -0
  60. package/.next/server/app/api/anet/node-config/route/build-manifest.json +9 -0
  61. package/.next/server/app/api/anet/node-config/route/server-reference-manifest.json +4 -0
  62. package/.next/server/app/api/anet/node-config/route.js +7 -0
  63. package/.next/server/app/api/anet/node-config/route.js.map +5 -0
  64. package/.next/server/app/api/anet/node-config/route.js.nft.json +1 -0
  65. package/.next/server/app/api/anet/node-config/route_client-reference-manifest.js +3 -0
  66. package/.next/server/app/api/anet/node-create/route/app-paths-manifest.json +3 -0
  67. package/.next/server/app/api/anet/node-create/route/build-manifest.json +9 -0
  68. package/.next/server/app/api/anet/node-create/route/server-reference-manifest.json +4 -0
  69. package/.next/server/app/api/anet/node-create/route.js +7 -0
  70. package/.next/server/app/api/anet/node-create/route.js.map +5 -0
  71. package/.next/server/app/api/anet/node-create/route.js.nft.json +1 -0
  72. package/.next/server/app/api/anet/node-create/route_client-reference-manifest.js +3 -0
  73. package/.next/server/app/api/anet/node-lifecycle/route/app-paths-manifest.json +3 -0
  74. package/.next/server/app/api/anet/node-lifecycle/route/build-manifest.json +9 -0
  75. package/.next/server/app/api/anet/node-lifecycle/route/server-reference-manifest.json +4 -0
  76. package/.next/server/app/api/anet/node-lifecycle/route.js +7 -0
  77. package/.next/server/app/api/anet/node-lifecycle/route.js.map +5 -0
  78. package/.next/server/app/api/anet/node-lifecycle/route.js.nft.json +1 -0
  79. package/.next/server/app/api/anet/node-lifecycle/route_client-reference-manifest.js +3 -0
  80. package/.next/server/app/api/auth/login/route.js +7 -7
  81. package/.next/server/app/api/auth/login/route.js.nft.json +1 -1
  82. package/.next/server/app/api/auth/logout/route.js +7 -7
  83. package/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
  84. package/.next/server/app/api/auth/v3/route.js +7 -7
  85. package/.next/server/app/api/auth/v3/route.js.nft.json +1 -1
  86. package/.next/server/app/api/hub/audit-log/route.js +6 -6
  87. package/.next/server/app/api/hub/audit-log/route.js.nft.json +1 -1
  88. package/.next/server/app/api/hub/auth/route.js +7 -7
  89. package/.next/server/app/api/hub/auth/route.js.nft.json +1 -1
  90. package/.next/server/app/api/hub/broadcast/route.js +6 -6
  91. package/.next/server/app/api/hub/broadcast/route.js.nft.json +1 -1
  92. package/.next/server/app/api/hub/events/route.js +6 -6
  93. package/.next/server/app/api/hub/events/route.js.nft.json +1 -1
  94. package/.next/server/app/api/hub/health/route.js +6 -6
  95. package/.next/server/app/api/hub/health/route.js.nft.json +1 -1
  96. package/.next/server/app/api/hub/inbox/route.js +6 -6
  97. package/.next/server/app/api/hub/inbox/route.js.nft.json +1 -1
  98. package/.next/server/app/api/hub/messages/route.js +6 -6
  99. package/.next/server/app/api/hub/messages/route.js.nft.json +1 -1
  100. package/.next/server/app/api/hub/networks/route.js +6 -6
  101. package/.next/server/app/api/hub/networks/route.js.nft.json +1 -1
  102. package/.next/server/app/api/hub/nodes/route.js +6 -6
  103. package/.next/server/app/api/hub/nodes/route.js.nft.json +1 -1
  104. package/.next/server/app/api/hub/register/route.js +6 -6
  105. package/.next/server/app/api/hub/register/route.js.nft.json +1 -1
  106. package/.next/server/app/api/hub/send/route.js +6 -6
  107. package/.next/server/app/api/hub/send/route.js.nft.json +1 -1
  108. package/.next/server/app/api/hub/server/[hostname]/agents/route.js +6 -6
  109. package/.next/server/app/api/hub/server/[hostname]/agents/route.js.nft.json +1 -1
  110. package/.next/server/app/api/hub/server/[hostname]/health/route.js +6 -6
  111. package/.next/server/app/api/hub/server/[hostname]/health/route.js.nft.json +1 -1
  112. package/.next/server/app/api/hub/server-logs/route.js +6 -6
  113. package/.next/server/app/api/hub/server-logs/route.js.nft.json +1 -1
  114. package/.next/server/app/api/hub/servers/route.js +6 -6
  115. package/.next/server/app/api/hub/servers/route.js.nft.json +1 -1
  116. package/.next/server/app/api/hub/session/route.js +6 -6
  117. package/.next/server/app/api/hub/session/route.js.nft.json +1 -1
  118. package/.next/server/app/api/hub/stats/route.js +6 -6
  119. package/.next/server/app/api/hub/stats/route.js.nft.json +1 -1
  120. package/.next/server/app/api/hub/status/route.js +6 -6
  121. package/.next/server/app/api/hub/status/route.js.nft.json +1 -1
  122. package/.next/server/app/api/hub/task-events/route.js +6 -6
  123. package/.next/server/app/api/hub/task-events/route.js.nft.json +1 -1
  124. package/.next/server/app/api/hub/tasks/route.js +6 -6
  125. package/.next/server/app/api/hub/tasks/route.js.nft.json +1 -1
  126. package/.next/server/app/api/hub/tmux/route.js +6 -6
  127. package/.next/server/app/api/hub/tmux/route.js.nft.json +1 -1
  128. package/.next/server/app/api/hub/tokens/route.js +6 -6
  129. package/.next/server/app/api/hub/tokens/route.js.nft.json +1 -1
  130. package/.next/server/app/api/hub/upload/route.js +6 -6
  131. package/.next/server/app/api/hub/upload/route.js.nft.json +1 -1
  132. package/.next/server/app/favicon.ico/route.js +6 -6
  133. package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  134. package/.next/server/app/index.html +2 -2
  135. package/.next/server/app/index.rsc +15 -15
  136. package/.next/server/app/index.segments/__PAGE__.segment.rsc +4 -4
  137. package/.next/server/app/index.segments/_full.segment.rsc +15 -15
  138. package/.next/server/app/index.segments/_head.segment.rsc +4 -4
  139. package/.next/server/app/index.segments/_index.segment.rsc +8 -8
  140. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  141. package/.next/server/app/login/page/build-manifest.json +5 -5
  142. package/.next/server/app/login/page/next-font-manifest.json +1 -1
  143. package/.next/server/app/login/page.js +13 -13
  144. package/.next/server/app/login/page.js.nft.json +1 -1
  145. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  146. package/.next/server/app/login.html +2 -2
  147. package/.next/server/app/login.rsc +15 -15
  148. package/.next/server/app/login.segments/_full.segment.rsc +15 -15
  149. package/.next/server/app/login.segments/_head.segment.rsc +4 -4
  150. package/.next/server/app/login.segments/_index.segment.rsc +8 -8
  151. package/.next/server/app/login.segments/_tree.segment.rsc +2 -2
  152. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +4 -4
  153. package/.next/server/app/login.segments/login.segment.rsc +3 -3
  154. package/.next/server/app/logs/page/build-manifest.json +5 -5
  155. package/.next/server/app/logs/page/next-font-manifest.json +1 -1
  156. package/.next/server/app/logs/page.js +13 -13
  157. package/.next/server/app/logs/page.js.nft.json +1 -1
  158. package/.next/server/app/logs/page_client-reference-manifest.js +1 -1
  159. package/.next/server/app/logs.html +2 -2
  160. package/.next/server/app/logs.rsc +15 -15
  161. package/.next/server/app/logs.segments/_full.segment.rsc +15 -15
  162. package/.next/server/app/logs.segments/_head.segment.rsc +4 -4
  163. package/.next/server/app/logs.segments/_index.segment.rsc +8 -8
  164. package/.next/server/app/logs.segments/_tree.segment.rsc +2 -2
  165. package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +4 -4
  166. package/.next/server/app/logs.segments/logs.segment.rsc +3 -3
  167. package/.next/server/app/manifest.webmanifest/route.js +6 -6
  168. package/.next/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  169. package/.next/server/app/messages/page/build-manifest.json +5 -5
  170. package/.next/server/app/messages/page/next-font-manifest.json +1 -1
  171. package/.next/server/app/messages/page.js +13 -13
  172. package/.next/server/app/messages/page.js.nft.json +1 -1
  173. package/.next/server/app/messages/page_client-reference-manifest.js +1 -1
  174. package/.next/server/app/messages.html +2 -2
  175. package/.next/server/app/messages.rsc +15 -15
  176. package/.next/server/app/messages.segments/_full.segment.rsc +15 -15
  177. package/.next/server/app/messages.segments/_head.segment.rsc +4 -4
  178. package/.next/server/app/messages.segments/_index.segment.rsc +8 -8
  179. package/.next/server/app/messages.segments/_tree.segment.rsc +2 -2
  180. package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +4 -4
  181. package/.next/server/app/messages.segments/messages.segment.rsc +3 -3
  182. package/.next/server/app/node/page/build-manifest.json +5 -5
  183. package/.next/server/app/node/page/next-font-manifest.json +1 -1
  184. package/.next/server/app/node/page.js +13 -13
  185. package/.next/server/app/node/page.js.nft.json +1 -1
  186. package/.next/server/app/node/page_client-reference-manifest.js +1 -1
  187. package/.next/server/app/node.html +2 -2
  188. package/.next/server/app/node.rsc +15 -15
  189. package/.next/server/app/node.segments/_full.segment.rsc +15 -15
  190. package/.next/server/app/node.segments/_head.segment.rsc +4 -4
  191. package/.next/server/app/node.segments/_index.segment.rsc +8 -8
  192. package/.next/server/app/node.segments/_tree.segment.rsc +2 -2
  193. package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +4 -4
  194. package/.next/server/app/node.segments/node.segment.rsc +3 -3
  195. package/.next/server/app/nodes/page/build-manifest.json +5 -5
  196. package/.next/server/app/nodes/page/next-font-manifest.json +1 -1
  197. package/.next/server/app/nodes/page.js +13 -13
  198. package/.next/server/app/nodes/page.js.nft.json +1 -1
  199. package/.next/server/app/nodes/page_client-reference-manifest.js +1 -1
  200. package/.next/server/app/nodes.html +2 -2
  201. package/.next/server/app/nodes.rsc +15 -15
  202. package/.next/server/app/nodes.segments/_full.segment.rsc +15 -15
  203. package/.next/server/app/nodes.segments/_head.segment.rsc +4 -4
  204. package/.next/server/app/nodes.segments/_index.segment.rsc +8 -8
  205. package/.next/server/app/nodes.segments/_tree.segment.rsc +2 -2
  206. package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +4 -4
  207. package/.next/server/app/nodes.segments/nodes.segment.rsc +3 -3
  208. package/.next/server/app/page/build-manifest.json +5 -5
  209. package/.next/server/app/page/next-font-manifest.json +1 -1
  210. package/.next/server/app/page.js +13 -13
  211. package/.next/server/app/page.js.nft.json +1 -1
  212. package/.next/server/app/page_client-reference-manifest.js +1 -1
  213. package/.next/server/app/server-logs/page/build-manifest.json +5 -5
  214. package/.next/server/app/server-logs/page/next-font-manifest.json +1 -1
  215. package/.next/server/app/server-logs/page.js +13 -13
  216. package/.next/server/app/server-logs/page.js.nft.json +1 -1
  217. package/.next/server/app/server-logs/page_client-reference-manifest.js +1 -1
  218. package/.next/server/app/server-logs.html +2 -2
  219. package/.next/server/app/server-logs.rsc +15 -15
  220. package/.next/server/app/server-logs.segments/_full.segment.rsc +15 -15
  221. package/.next/server/app/server-logs.segments/_head.segment.rsc +4 -4
  222. package/.next/server/app/server-logs.segments/_index.segment.rsc +8 -8
  223. package/.next/server/app/server-logs.segments/_tree.segment.rsc +2 -2
  224. package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +4 -4
  225. package/.next/server/app/server-logs.segments/server-logs.segment.rsc +3 -3
  226. package/.next/server/app/servers/page/build-manifest.json +5 -5
  227. package/.next/server/app/servers/page/next-font-manifest.json +1 -1
  228. package/.next/server/app/servers/page.js +13 -13
  229. package/.next/server/app/servers/page.js.nft.json +1 -1
  230. package/.next/server/app/servers/page_client-reference-manifest.js +1 -1
  231. package/.next/server/app/servers.html +2 -2
  232. package/.next/server/app/servers.rsc +15 -15
  233. package/.next/server/app/servers.segments/_full.segment.rsc +15 -15
  234. package/.next/server/app/servers.segments/_head.segment.rsc +4 -4
  235. package/.next/server/app/servers.segments/_index.segment.rsc +8 -8
  236. package/.next/server/app/servers.segments/_tree.segment.rsc +2 -2
  237. package/.next/server/app/servers.segments/servers/__PAGE__.segment.rsc +4 -4
  238. package/.next/server/app/servers.segments/servers.segment.rsc +3 -3
  239. package/.next/server/app/settings/networks/page/build-manifest.json +5 -5
  240. package/.next/server/app/settings/networks/page/next-font-manifest.json +1 -1
  241. package/.next/server/app/settings/networks/page.js +13 -13
  242. package/.next/server/app/settings/networks/page.js.nft.json +1 -1
  243. package/.next/server/app/settings/networks/page_client-reference-manifest.js +1 -1
  244. package/.next/server/app/settings/networks.html +2 -2
  245. package/.next/server/app/settings/networks.rsc +15 -15
  246. package/.next/server/app/settings/networks.segments/_full.segment.rsc +15 -15
  247. package/.next/server/app/settings/networks.segments/_head.segment.rsc +4 -4
  248. package/.next/server/app/settings/networks.segments/_index.segment.rsc +8 -8
  249. package/.next/server/app/settings/networks.segments/_tree.segment.rsc +2 -2
  250. package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +4 -4
  251. package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +3 -3
  252. package/.next/server/app/settings/networks.segments/settings.segment.rsc +3 -3
  253. package/.next/server/app/settings/page/build-manifest.json +5 -5
  254. package/.next/server/app/settings/page/next-font-manifest.json +1 -1
  255. package/.next/server/app/settings/page.js +13 -13
  256. package/.next/server/app/settings/page.js.nft.json +1 -1
  257. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  258. package/.next/server/app/settings/tokens/page/build-manifest.json +5 -5
  259. package/.next/server/app/settings/tokens/page/next-font-manifest.json +1 -1
  260. package/.next/server/app/settings/tokens/page.js +13 -13
  261. package/.next/server/app/settings/tokens/page.js.nft.json +1 -1
  262. package/.next/server/app/settings/tokens/page_client-reference-manifest.js +1 -1
  263. package/.next/server/app/settings/tokens.html +2 -2
  264. package/.next/server/app/settings/tokens.rsc +15 -15
  265. package/.next/server/app/settings/tokens.segments/_full.segment.rsc +15 -15
  266. package/.next/server/app/settings/tokens.segments/_head.segment.rsc +4 -4
  267. package/.next/server/app/settings/tokens.segments/_index.segment.rsc +8 -8
  268. package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +2 -2
  269. package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +4 -4
  270. package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +3 -3
  271. package/.next/server/app/settings/tokens.segments/settings.segment.rsc +3 -3
  272. package/.next/server/app/settings.html +2 -2
  273. package/.next/server/app/settings.rsc +15 -15
  274. package/.next/server/app/settings.segments/_full.segment.rsc +15 -15
  275. package/.next/server/app/settings.segments/_head.segment.rsc +4 -4
  276. package/.next/server/app/settings.segments/_index.segment.rsc +8 -8
  277. package/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
  278. package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +4 -4
  279. package/.next/server/app/settings.segments/settings.segment.rsc +3 -3
  280. package/.next/server/app/tasks/[id]/page/build-manifest.json +5 -5
  281. package/.next/server/app/tasks/[id]/page/next-font-manifest.json +1 -1
  282. package/.next/server/app/tasks/[id]/page.js +13 -13
  283. package/.next/server/app/tasks/[id]/page.js.nft.json +1 -1
  284. package/.next/server/app/tasks/[id]/page_client-reference-manifest.js +1 -1
  285. package/.next/server/app/tasks/page/build-manifest.json +5 -5
  286. package/.next/server/app/tasks/page/next-font-manifest.json +1 -1
  287. package/.next/server/app/tasks/page.js +13 -13
  288. package/.next/server/app/tasks/page.js.nft.json +1 -1
  289. package/.next/server/app/tasks/page_client-reference-manifest.js +1 -1
  290. package/.next/server/app/tasks.html +2 -2
  291. package/.next/server/app/tasks.rsc +15 -15
  292. package/.next/server/app/tasks.segments/_full.segment.rsc +15 -15
  293. package/.next/server/app/tasks.segments/_head.segment.rsc +4 -4
  294. package/.next/server/app/tasks.segments/_index.segment.rsc +8 -8
  295. package/.next/server/app/tasks.segments/_tree.segment.rsc +2 -2
  296. package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +4 -4
  297. package/.next/server/app/tasks.segments/tasks.segment.rsc +3 -3
  298. package/.next/server/app-paths-manifest.json +3 -0
  299. package/.next/server/chunks/0emd_next_0zjoz0g._.js +10 -0
  300. package/.next/server/chunks/0emd_next_0zjoz0g._.js.map +1 -0
  301. package/.next/server/chunks/0emd_next_dist_07_njzq._.js +18 -0
  302. package/.next/server/chunks/0emd_next_dist_07_njzq._.js.map +1 -0
  303. package/.next/server/chunks/0emd_next_dist_esm_build_templates_app-route_0ze.4~8.js +3 -0
  304. package/.next/server/chunks/0emd_next_dist_esm_build_templates_app-route_0ze.4~8.js.map +1 -0
  305. package/.next/server/chunks/0eys__next-internal_server_app_api_anet_node-config_route_actions_0vpbqmt.js +3 -0
  306. package/.next/server/chunks/0eys__next-internal_server_app_api_anet_node-create_route_actions_0ack5_x.js +3 -0
  307. package/.next/server/chunks/0eys__next-internal_server_app_api_anet_node-lifecycle_route_actions_13z6pk9.js +3 -0
  308. package/.next/server/chunks/0eys__next-internal_server_app_api_hub_server-logs_route_actions_13k0lzq.js +3 -0
  309. package/.next/server/chunks/0eys__next-internal_server_app_api_hub_task-events_route_actions_0eayccx.js +3 -0
  310. package/.next/server/chunks/0eys__next-internal_server_app_manifest_webmanifest_route_actions_03s5neg.js +3 -0
  311. package/.next/server/chunks/0raa_next-internal_server_app_api_hub_server_[hostname]_agents_route_actions_0q9dcjz.js +3 -0
  312. package/.next/server/chunks/0raa_next-internal_server_app_api_hub_server_[hostname]_health_route_actions_0s8k6m..js +3 -0
  313. package/.next/server/chunks/[root-of-the-server]__0-jphjp._.js +6 -0
  314. package/.next/server/chunks/[root-of-the-server]__0-jphjp._.js.map +1 -0
  315. package/.next/server/chunks/[root-of-the-server]__0-po71t._.js +3 -0
  316. package/.next/server/chunks/[root-of-the-server]__0-po71t._.js.map +1 -0
  317. package/.next/server/chunks/[root-of-the-server]__0.5kg~w._.js +3 -0
  318. package/.next/server/chunks/[root-of-the-server]__0.5kg~w._.js.map +1 -0
  319. package/.next/server/chunks/[root-of-the-server]__0._v9vf._.js +3 -0
  320. package/.next/server/chunks/{[root-of-the-server]__01cxv~5._.js.map → [root-of-the-server]__0._v9vf._.js.map} +1 -1
  321. package/.next/server/chunks/[root-of-the-server]__00gb0kv._.js +3 -0
  322. package/.next/server/chunks/{[root-of-the-server]__0fk~j-f._.js.map → [root-of-the-server]__00gb0kv._.js.map} +1 -1
  323. package/.next/server/chunks/[root-of-the-server]__013ptvb._.js +3 -0
  324. package/.next/server/chunks/[root-of-the-server]__013ptvb._.js.map +1 -0
  325. package/.next/server/chunks/[root-of-the-server]__03c6cit._.js +3 -0
  326. package/.next/server/chunks/[root-of-the-server]__03c6cit._.js.map +1 -0
  327. package/.next/server/chunks/[root-of-the-server]__04a200m._.js +3 -0
  328. package/.next/server/chunks/{[root-of-the-server]__0p77uu0._.js.map → [root-of-the-server]__04a200m._.js.map} +1 -1
  329. package/.next/server/chunks/[root-of-the-server]__05494tj._.js +3 -0
  330. package/.next/server/chunks/[root-of-the-server]__05494tj._.js.map +1 -0
  331. package/.next/server/chunks/[root-of-the-server]__065pywy._.js +3 -0
  332. package/.next/server/chunks/[root-of-the-server]__065pywy._.js.map +1 -0
  333. package/.next/server/chunks/[root-of-the-server]__07kt6aj._.js +3 -0
  334. package/.next/server/chunks/[root-of-the-server]__07kt6aj._.js.map +1 -0
  335. package/.next/server/chunks/[root-of-the-server]__07x377i._.js +3 -0
  336. package/.next/server/chunks/[root-of-the-server]__07x377i._.js.map +1 -0
  337. package/.next/server/chunks/[root-of-the-server]__0anx8ak._.js +3 -0
  338. package/.next/server/chunks/[root-of-the-server]__0anx8ak._.js.map +1 -0
  339. package/.next/server/chunks/[root-of-the-server]__0dqs1t5._.js +3 -0
  340. package/.next/server/chunks/[root-of-the-server]__0dqs1t5._.js.map +1 -0
  341. package/.next/server/chunks/[root-of-the-server]__0efa-e~._.js +3 -0
  342. package/.next/server/chunks/[root-of-the-server]__0efa-e~._.js.map +1 -0
  343. package/.next/server/chunks/[root-of-the-server]__0eonvri._.js +3 -0
  344. package/.next/server/chunks/[root-of-the-server]__0eonvri._.js.map +1 -0
  345. package/.next/server/chunks/[root-of-the-server]__0f5-nhl._.js +3 -0
  346. package/.next/server/chunks/{[root-of-the-server]__0t-zv8i._.js.map → [root-of-the-server]__0f5-nhl._.js.map} +1 -1
  347. package/.next/server/chunks/[root-of-the-server]__0f~mkgn._.js +3 -0
  348. package/.next/server/chunks/[root-of-the-server]__0f~mkgn._.js.map +1 -0
  349. package/.next/server/chunks/[root-of-the-server]__0go6s0b._.js +3 -0
  350. package/.next/server/chunks/{[root-of-the-server]__0r.6ku0._.js.map → [root-of-the-server]__0go6s0b._.js.map} +1 -1
  351. package/.next/server/chunks/[root-of-the-server]__0ixnvi-._.js +3 -0
  352. package/.next/server/chunks/{[root-of-the-server]__0ncl1y5._.js.map → [root-of-the-server]__0ixnvi-._.js.map} +1 -1
  353. package/.next/server/chunks/[root-of-the-server]__0jlzmrm._.js +3 -0
  354. package/.next/server/chunks/[root-of-the-server]__0jlzmrm._.js.map +1 -0
  355. package/.next/server/chunks/[root-of-the-server]__0k-0~jy._.js +3 -0
  356. package/.next/server/chunks/[root-of-the-server]__0k-0~jy._.js.map +1 -0
  357. package/.next/server/chunks/[root-of-the-server]__0kalz0~._.js +3 -0
  358. package/.next/server/chunks/[root-of-the-server]__0kalz0~._.js.map +1 -0
  359. package/.next/server/chunks/[root-of-the-server]__0ksm0bm._.js +3 -0
  360. package/.next/server/chunks/[root-of-the-server]__0ksm0bm._.js.map +1 -0
  361. package/.next/server/chunks/[root-of-the-server]__0lcdg4r._.js +3 -0
  362. package/.next/server/chunks/[root-of-the-server]__0lcdg4r._.js.map +1 -0
  363. package/.next/server/chunks/[root-of-the-server]__0lud1_2._.js +3 -0
  364. package/.next/server/chunks/[root-of-the-server]__0lud1_2._.js.map +1 -0
  365. package/.next/server/chunks/[root-of-the-server]__0n__sw5._.js +3 -0
  366. package/.next/server/chunks/[root-of-the-server]__0n__sw5._.js.map +1 -0
  367. package/.next/server/chunks/[root-of-the-server]__0ocd-7~._.js +3 -0
  368. package/.next/server/chunks/[root-of-the-server]__0ocd-7~._.js.map +1 -0
  369. package/.next/server/chunks/[root-of-the-server]__0osz.5l._.js +3 -0
  370. package/.next/server/chunks/{[root-of-the-server]__117_h7d._.js.map → [root-of-the-server]__0osz.5l._.js.map} +1 -1
  371. package/.next/server/chunks/[root-of-the-server]__0uc.~eb._.js +3 -0
  372. package/.next/server/chunks/[root-of-the-server]__0uc.~eb._.js.map +1 -0
  373. package/.next/server/chunks/[root-of-the-server]__0z~3-vx._.js +3 -0
  374. package/.next/server/chunks/[root-of-the-server]__0z~3-vx._.js.map +1 -0
  375. package/.next/server/chunks/[root-of-the-server]__0z~50bw._.js +3 -0
  376. package/.next/server/chunks/[root-of-the-server]__0z~50bw._.js.map +1 -0
  377. package/.next/server/chunks/[root-of-the-server]__10z4o-.._.js +3 -0
  378. package/.next/server/chunks/[root-of-the-server]__10z4o-.._.js.map +1 -0
  379. package/.next/server/chunks/[root-of-the-server]__11swhm2._.js +20 -0
  380. package/.next/server/chunks/[root-of-the-server]__11swhm2._.js.map +1 -0
  381. package/.next/server/chunks/dash-main-prep__next-internal_server_app_api_anet_config_route_actions_0eb-2a9.js +3 -0
  382. package/.next/server/chunks/dash-main-prep__next-internal_server_app_api_auth_login_route_actions_0_0zk8~.js +3 -0
  383. package/.next/server/chunks/dash-main-prep__next-internal_server_app_api_auth_logout_route_actions_0yy6u4n.js +3 -0
  384. package/.next/server/chunks/dash-main-prep__next-internal_server_app_api_auth_v3_route_actions_09dg3rk.js +3 -0
  385. package/.next/server/chunks/dash-main-prep__next-internal_server_app_api_hub_audit-log_route_actions_03wia4o.js +3 -0
  386. package/.next/server/chunks/dash-main-prep__next-internal_server_app_api_hub_auth_route_actions_0k.l0a-.js +3 -0
  387. package/.next/server/chunks/dash-main-prep__next-internal_server_app_api_hub_broadcast_route_actions_02wotps.js +3 -0
  388. package/.next/server/chunks/dash-main-prep__next-internal_server_app_api_hub_events_route_actions_0i1zyq~.js +3 -0
  389. package/.next/server/chunks/dash-main-prep__next-internal_server_app_api_hub_health_route_actions_0fe6lsz.js +3 -0
  390. package/.next/server/chunks/dash-main-prep__next-internal_server_app_api_hub_inbox_route_actions_0iup.xe.js +3 -0
  391. package/.next/server/chunks/dash-main-prep__next-internal_server_app_api_hub_messages_route_actions_0syf65m.js +3 -0
  392. package/.next/server/chunks/dash-main-prep__next-internal_server_app_api_hub_networks_route_actions_04dtp_m.js +3 -0
  393. package/.next/server/chunks/dash-main-prep__next-internal_server_app_api_hub_nodes_route_actions_0aghuq9.js +3 -0
  394. package/.next/server/chunks/dash-main-prep__next-internal_server_app_api_hub_register_route_actions_04g3.gx.js +3 -0
  395. package/.next/server/chunks/dash-main-prep__next-internal_server_app_api_hub_send_route_actions_01m4__p.js +3 -0
  396. package/.next/server/chunks/dash-main-prep__next-internal_server_app_api_hub_servers_route_actions_10lz59w.js +3 -0
  397. package/.next/server/chunks/dash-main-prep__next-internal_server_app_api_hub_session_route_actions_03ce57x.js +3 -0
  398. package/.next/server/chunks/dash-main-prep__next-internal_server_app_api_hub_stats_route_actions_0~xcq1-.js +3 -0
  399. package/.next/server/chunks/dash-main-prep__next-internal_server_app_api_hub_status_route_actions_0slss8r.js +3 -0
  400. package/.next/server/chunks/dash-main-prep__next-internal_server_app_api_hub_tasks_route_actions_0yvhaa_.js +3 -0
  401. package/.next/server/chunks/dash-main-prep__next-internal_server_app_api_hub_tmux_route_actions_0_f8h.h.js +3 -0
  402. package/.next/server/chunks/dash-main-prep__next-internal_server_app_api_hub_tokens_route_actions_0ke~8y8.js +3 -0
  403. package/.next/server/chunks/dash-main-prep__next-internal_server_app_api_hub_upload_route_actions_02jnx8r.js +3 -0
  404. package/.next/server/chunks/dash-main-prep__next-internal_server_app_favicon_ico_route_actions_09bgfok.js +3 -0
  405. package/.next/server/chunks/ssr/0emd_047jqdj._.js +33 -0
  406. package/.next/server/chunks/ssr/0emd_047jqdj._.js.map +1 -0
  407. package/.next/server/chunks/ssr/0emd_06kedq-._.js +3 -0
  408. package/.next/server/chunks/ssr/0emd_06kedq-._.js.map +1 -0
  409. package/.next/server/chunks/ssr/0emd_0_26t76._.js +3 -0
  410. package/.next/server/chunks/ssr/0emd_0_26t76._.js.map +1 -0
  411. package/.next/server/chunks/ssr/0emd_13t5_lo._.js +3 -0
  412. package/.next/server/chunks/ssr/0emd_13t5_lo._.js.map +1 -0
  413. package/.next/server/chunks/ssr/{0eys_next_0_~e226._.js → 0emd_next_0bnhxgq._.js} +3 -3
  414. package/.next/server/chunks/ssr/0emd_next_0bnhxgq._.js.map +1 -0
  415. package/.next/server/chunks/ssr/0emd_next_dist_00jgl6k._.js +6 -0
  416. package/.next/server/chunks/ssr/0emd_next_dist_00jgl6k._.js.map +1 -0
  417. package/.next/server/chunks/ssr/0emd_next_dist_client_components_00j7vwk._.js +3 -0
  418. package/.next/server/chunks/ssr/0emd_next_dist_client_components_00j7vwk._.js.map +1 -0
  419. package/.next/server/chunks/ssr/0emd_next_dist_client_components_builtin_forbidden_1087x.v.js +3 -0
  420. package/.next/server/chunks/ssr/0emd_next_dist_client_components_builtin_forbidden_1087x.v.js.map +1 -0
  421. package/.next/server/chunks/ssr/0emd_next_dist_client_components_builtin_global-error_0qrbd.p.js +3 -0
  422. package/.next/server/chunks/ssr/0emd_next_dist_client_components_builtin_global-error_0qrbd.p.js.map +1 -0
  423. package/.next/server/chunks/ssr/0emd_next_dist_client_components_builtin_unauthorized_0~qxw.r.js +3 -0
  424. package/.next/server/chunks/ssr/0emd_next_dist_client_components_builtin_unauthorized_0~qxw.r.js.map +1 -0
  425. package/.next/server/chunks/ssr/{0eys_next_dist_esm_build_templates_app-page_038w~o4.js → 0emd_next_dist_esm_build_templates_app-page_0.3fpy_.js} +3 -3
  426. package/.next/server/chunks/ssr/0emd_next_dist_esm_build_templates_app-page_0.3fpy_.js.map +1 -0
  427. package/.next/server/chunks/ssr/{0eys_next_dist_esm_build_templates_app-page_0gg19s6.js → 0emd_next_dist_esm_build_templates_app-page_016_j7..js} +3 -3
  428. package/.next/server/chunks/ssr/0emd_next_dist_esm_build_templates_app-page_016_j7..js.map +1 -0
  429. package/.next/server/chunks/ssr/{0eys_next_dist_esm_build_templates_app-page_0q4gvif.js → 0emd_next_dist_esm_build_templates_app-page_06x82hl.js} +3 -3
  430. package/.next/server/chunks/ssr/0emd_next_dist_esm_build_templates_app-page_06x82hl.js.map +1 -0
  431. package/.next/server/chunks/ssr/{0eys_next_dist_esm_build_templates_app-page_0unqv4v.js → 0emd_next_dist_esm_build_templates_app-page_0c0fklb.js} +3 -3
  432. package/.next/server/chunks/ssr/0emd_next_dist_esm_build_templates_app-page_0c0fklb.js.map +1 -0
  433. package/.next/server/chunks/ssr/0emd_next_dist_esm_build_templates_app-page_0j5dp2i.js +4 -0
  434. package/.next/server/chunks/ssr/0emd_next_dist_esm_build_templates_app-page_0j5dp2i.js.map +1 -0
  435. package/.next/server/chunks/ssr/0emd_next_dist_esm_build_templates_app-page_0kgge41.js +4 -0
  436. package/.next/server/chunks/ssr/0emd_next_dist_esm_build_templates_app-page_0kgge41.js.map +1 -0
  437. package/.next/server/chunks/ssr/{0eys_next_dist_esm_build_templates_app-page_097i4vb.js → 0emd_next_dist_esm_build_templates_app-page_0ospxq4.js} +3 -3
  438. package/.next/server/chunks/ssr/0emd_next_dist_esm_build_templates_app-page_0ospxq4.js.map +1 -0
  439. package/.next/server/chunks/ssr/{0eys_next_dist_esm_build_templates_app-page_0otan.0.js → 0emd_next_dist_esm_build_templates_app-page_0oz02hy.js} +3 -3
  440. package/.next/server/chunks/ssr/0emd_next_dist_esm_build_templates_app-page_0oz02hy.js.map +1 -0
  441. package/.next/server/chunks/ssr/{0eys_next_dist_esm_build_templates_app-page_0g0ea16.js → 0emd_next_dist_esm_build_templates_app-page_0r4~r~z.js} +3 -3
  442. package/.next/server/chunks/ssr/0emd_next_dist_esm_build_templates_app-page_0r4~r~z.js.map +1 -0
  443. package/.next/server/chunks/ssr/{0eys_next_dist_esm_build_templates_app-page_0ikgf-7.js → 0emd_next_dist_esm_build_templates_app-page_0rjp8.q.js} +3 -3
  444. package/.next/server/chunks/ssr/0emd_next_dist_esm_build_templates_app-page_0rjp8.q.js.map +1 -0
  445. package/.next/server/chunks/ssr/0emd_next_dist_esm_build_templates_app-page_0tqydx2.js +4 -0
  446. package/.next/server/chunks/ssr/0emd_next_dist_esm_build_templates_app-page_0tqydx2.js.map +1 -0
  447. package/.next/server/chunks/ssr/{0eys_next_dist_esm_build_templates_app-page_0s.as54.js → 0emd_next_dist_esm_build_templates_app-page_0u.fjk1.js} +3 -3
  448. package/.next/server/chunks/ssr/0emd_next_dist_esm_build_templates_app-page_0u.fjk1.js.map +1 -0
  449. package/.next/server/chunks/ssr/{0eys_next_dist_esm_build_templates_app-page_10~-.q1.js → 0emd_next_dist_esm_build_templates_app-page_0v3so27.js} +3 -3
  450. package/.next/server/chunks/ssr/0emd_next_dist_esm_build_templates_app-page_0v3so27.js.map +1 -0
  451. package/.next/server/chunks/ssr/{0eys_next_dist_esm_build_templates_app-page_0t88_uc.js → 0emd_next_dist_esm_build_templates_app-page_0xikgs1.js} +3 -3
  452. package/.next/server/chunks/ssr/0emd_next_dist_esm_build_templates_app-page_0xikgs1.js.map +1 -0
  453. package/.next/server/chunks/ssr/{0eys_next_dist_esm_build_templates_app-page_0xry76m.js → 0emd_next_dist_esm_build_templates_app-page_10jwiid.js} +3 -3
  454. package/.next/server/chunks/ssr/0emd_next_dist_esm_build_templates_app-page_10jwiid.js.map +1 -0
  455. package/.next/server/chunks/ssr/{0eys_next_dist_esm_build_templates_app-page_0fy2_ot.js → 0emd_next_dist_esm_build_templates_app-page_133cpo2.js} +3 -3
  456. package/.next/server/chunks/ssr/0emd_next_dist_esm_build_templates_app-page_133cpo2.js.map +1 -0
  457. package/.next/server/chunks/ssr/[root-of-the-server]__00c-m~h._.js +3 -0
  458. package/.next/server/chunks/ssr/[root-of-the-server]__00c-m~h._.js.map +1 -0
  459. package/.next/server/chunks/ssr/[root-of-the-server]__00t8yko._.js +3 -0
  460. package/.next/server/chunks/ssr/[root-of-the-server]__00t8yko._.js.map +1 -0
  461. package/.next/server/chunks/ssr/[root-of-the-server]__02e9x~u._.js +3 -0
  462. package/.next/server/chunks/ssr/[root-of-the-server]__02e9x~u._.js.map +1 -0
  463. package/.next/server/chunks/ssr/[root-of-the-server]__0337u7~._.js +3 -0
  464. package/.next/server/chunks/ssr/[root-of-the-server]__0337u7~._.js.map +1 -0
  465. package/.next/server/chunks/ssr/{[root-of-the-server]__0.bq9qd._.js → [root-of-the-server]__0342o.i._.js} +2 -2
  466. package/.next/server/chunks/ssr/[root-of-the-server]__0342o.i._.js.map +1 -0
  467. package/.next/server/chunks/ssr/[root-of-the-server]__03mvbey._.js +3 -0
  468. package/.next/server/chunks/ssr/[root-of-the-server]__03mvbey._.js.map +1 -0
  469. package/.next/server/chunks/ssr/[root-of-the-server]__0_nj.h9._.js +3 -0
  470. package/.next/server/chunks/ssr/[root-of-the-server]__0_nj.h9._.js.map +1 -0
  471. package/.next/server/chunks/ssr/[root-of-the-server]__0a..bh5._.js +3 -0
  472. package/.next/server/chunks/ssr/[root-of-the-server]__0a..bh5._.js.map +1 -0
  473. package/.next/server/chunks/ssr/[root-of-the-server]__0bhrs1j._.js +3 -0
  474. package/.next/server/chunks/ssr/[root-of-the-server]__0bhrs1j._.js.map +1 -0
  475. package/.next/server/chunks/ssr/[root-of-the-server]__0c1te6d._.js +3 -0
  476. package/.next/server/chunks/ssr/[root-of-the-server]__0c1te6d._.js.map +1 -0
  477. package/.next/server/chunks/ssr/[root-of-the-server]__0cbfccb._.js +3 -0
  478. package/.next/server/chunks/ssr/[root-of-the-server]__0cbfccb._.js.map +1 -0
  479. package/.next/server/chunks/ssr/[root-of-the-server]__0dog1cm._.js +3 -0
  480. package/.next/server/chunks/ssr/[root-of-the-server]__0dog1cm._.js.map +1 -0
  481. package/.next/server/chunks/ssr/[root-of-the-server]__0ei826c._.js +3 -0
  482. package/.next/server/chunks/ssr/[root-of-the-server]__0ei826c._.js.map +1 -0
  483. package/.next/server/chunks/ssr/[root-of-the-server]__0es3uv3._.js +3 -0
  484. package/.next/server/chunks/ssr/[root-of-the-server]__0es3uv3._.js.map +1 -0
  485. package/.next/server/chunks/ssr/[root-of-the-server]__0j5c4hr._.js +8 -0
  486. package/.next/server/chunks/ssr/[root-of-the-server]__0j5c4hr._.js.map +1 -0
  487. package/.next/server/chunks/ssr/[root-of-the-server]__0otzd58._.js +3 -0
  488. package/.next/server/chunks/ssr/[root-of-the-server]__0otzd58._.js.map +1 -0
  489. package/.next/server/chunks/ssr/[root-of-the-server]__0ppvi5_._.js +3 -0
  490. package/.next/server/chunks/ssr/[root-of-the-server]__0ppvi5_._.js.map +1 -0
  491. package/.next/server/chunks/ssr/[root-of-the-server]__0p~jybs._.js +3 -0
  492. package/.next/server/chunks/ssr/[root-of-the-server]__0p~jybs._.js.map +1 -0
  493. package/.next/server/chunks/ssr/[root-of-the-server]__0utp0~w._.js +33 -0
  494. package/.next/server/chunks/ssr/[root-of-the-server]__0utp0~w._.js.map +1 -0
  495. package/.next/server/chunks/ssr/[root-of-the-server]__0x7j2o1._.js +3 -0
  496. package/.next/server/chunks/ssr/[root-of-the-server]__0x7j2o1._.js.map +1 -0
  497. package/.next/server/chunks/ssr/[root-of-the-server]__0yacr~n._.js +6 -0
  498. package/.next/server/chunks/ssr/{[root-of-the-server]__0xsrxaq._.js.map → [root-of-the-server]__0yacr~n._.js.map} +1 -1
  499. package/.next/server/chunks/ssr/[root-of-the-server]__0~jfwze._.js +19 -0
  500. package/.next/server/chunks/ssr/[root-of-the-server]__0~jfwze._.js.map +1 -0
  501. package/.next/server/chunks/ssr/[root-of-the-server]__0~zzavb._.js +3 -0
  502. package/.next/server/chunks/ssr/[root-of-the-server]__0~zzavb._.js.map +1 -0
  503. package/.next/server/chunks/ssr/[root-of-the-server]__12oz5~2._.js +3 -0
  504. package/.next/server/chunks/ssr/[root-of-the-server]__12oz5~2._.js.map +1 -0
  505. package/.next/server/chunks/ssr/[root-of-the-server]__13ti3mc._.js +33 -0
  506. package/.next/server/chunks/ssr/[root-of-the-server]__13ti3mc._.js.map +1 -0
  507. package/.next/server/chunks/ssr/{p248-dash-release_03jozqe._.js → dash-main-prep_04jom44._.js} +3 -3
  508. package/.next/server/chunks/ssr/dash-main-prep_04jom44._.js.map +1 -0
  509. package/.next/server/chunks/ssr/dash-main-prep__next-internal_server_app__global-error_page_actions_07kk3nm.js +3 -0
  510. package/.next/server/chunks/ssr/dash-main-prep__next-internal_server_app__not-found_page_actions_0cb6n8e.js +3 -0
  511. package/.next/server/chunks/ssr/dash-main-prep__next-internal_server_app_admin_page_actions_0whq~om.js +3 -0
  512. package/.next/server/chunks/ssr/dash-main-prep__next-internal_server_app_login_page_actions_0lfb5vh.js +3 -0
  513. package/.next/server/chunks/ssr/dash-main-prep__next-internal_server_app_logs_page_actions_0a9g2gh.js +3 -0
  514. package/.next/server/chunks/ssr/dash-main-prep__next-internal_server_app_messages_page_actions_0_0a~oj.js +3 -0
  515. package/.next/server/chunks/ssr/dash-main-prep__next-internal_server_app_node_page_actions_0nt83da.js +3 -0
  516. package/.next/server/chunks/ssr/dash-main-prep__next-internal_server_app_nodes_page_actions_001898j.js +3 -0
  517. package/.next/server/chunks/ssr/dash-main-prep__next-internal_server_app_page_actions_10t6_cb.js +3 -0
  518. package/.next/server/chunks/ssr/dash-main-prep__next-internal_server_app_server-logs_page_actions_10i2y0v.js +3 -0
  519. package/.next/server/chunks/ssr/dash-main-prep__next-internal_server_app_servers_page_actions_0yfsnrz.js +3 -0
  520. package/.next/server/chunks/ssr/dash-main-prep__next-internal_server_app_settings_networks_page_actions_0.6z6e9.js +3 -0
  521. package/.next/server/chunks/ssr/dash-main-prep__next-internal_server_app_settings_page_actions_0t_etc1.js +3 -0
  522. package/.next/server/chunks/ssr/dash-main-prep__next-internal_server_app_settings_tokens_page_actions_0g~ilh~.js +3 -0
  523. package/.next/server/chunks/ssr/dash-main-prep__next-internal_server_app_settings_tokens_page_actions_0g~ilh~.js.map +1 -0
  524. package/.next/server/chunks/ssr/dash-main-prep__next-internal_server_app_tasks_[id]_page_actions_0jc~43n.js +3 -0
  525. package/.next/server/chunks/ssr/dash-main-prep__next-internal_server_app_tasks_[id]_page_actions_0jc~43n.js.map +1 -0
  526. package/.next/server/chunks/ssr/dash-main-prep__next-internal_server_app_tasks_page_actions_0k0da_-.js +3 -0
  527. package/.next/server/chunks/ssr/dash-main-prep__next-internal_server_app_tasks_page_actions_0k0da_-.js.map +1 -0
  528. package/.next/server/chunks/ssr/dash-main-prep_app_0-ei3ea._.js +3 -0
  529. package/.next/server/chunks/ssr/dash-main-prep_app_0-ei3ea._.js.map +1 -0
  530. package/.next/server/chunks/ssr/{p248-dash-release_app_01r5cp-._.js → dash-main-prep_app_00xe5ww._.js} +2 -2
  531. package/.next/server/chunks/ssr/dash-main-prep_app_00xe5ww._.js.map +1 -0
  532. package/.next/server/chunks/ssr/{p248-dash-release_app_0heiqx4._.js → dash-main-prep_app_02jbzgm._.js} +2 -2
  533. package/.next/server/chunks/ssr/dash-main-prep_app_02jbzgm._.js.map +1 -0
  534. package/.next/server/chunks/ssr/{p248-dash-release_app_0r.6wo3._.js → dash-main-prep_app_0_8.j.9._.js} +2 -2
  535. package/.next/server/chunks/ssr/dash-main-prep_app_0_8.j.9._.js.map +1 -0
  536. package/.next/server/chunks/ssr/dash-main-prep_app_0em9eg-._.js +3 -0
  537. package/.next/server/chunks/ssr/dash-main-prep_app_0em9eg-._.js.map +1 -0
  538. package/.next/server/chunks/ssr/{p248-dash-release_app_0415ugh._.js → dash-main-prep_app_0l5pr3q._.js} +2 -2
  539. package/.next/server/chunks/ssr/dash-main-prep_app_0l5pr3q._.js.map +1 -0
  540. package/.next/server/chunks/ssr/dash-main-prep_app_0vx7mgv._.js +3 -0
  541. package/.next/server/chunks/ssr/dash-main-prep_app_0vx7mgv._.js.map +1 -0
  542. package/.next/server/chunks/ssr/{p248-dash-release_app_07ks..b._.js → dash-main-prep_app_0z7jy81._.js} +2 -2
  543. package/.next/server/chunks/ssr/dash-main-prep_app_0z7jy81._.js.map +1 -0
  544. package/.next/server/chunks/ssr/{p248-dash-release_app_0.xbj-j._.js → dash-main-prep_app_0~~c86p._.js} +2 -2
  545. package/.next/server/chunks/ssr/dash-main-prep_app_0~~c86p._.js.map +1 -0
  546. package/.next/server/chunks/ssr/{p248-dash-release_app_0ict6f_._.js → dash-main-prep_app_105mjhx._.js} +2 -2
  547. package/.next/server/chunks/ssr/dash-main-prep_app_105mjhx._.js.map +1 -0
  548. package/.next/server/chunks/ssr/{p248-dash-release_app_components_0l8tz~8._.js → dash-main-prep_app_components_0p9bpx_._.js} +3 -3
  549. package/.next/server/chunks/ssr/dash-main-prep_app_components_0p9bpx_._.js.map +1 -0
  550. package/.next/server/chunks/ssr/dash-main-prep_app_nodes_page_tsx_0k20g4a._.js +3 -0
  551. package/.next/server/chunks/ssr/dash-main-prep_app_nodes_page_tsx_0k20g4a._.js.map +1 -0
  552. package/.next/server/chunks/ssr/{p248-dash-release_app_servers_page_tsx_0gjg_-r._.js → dash-main-prep_app_servers_page_tsx_0zrm2-z._.js} +2 -2
  553. package/.next/server/chunks/ssr/dash-main-prep_app_servers_page_tsx_0zrm2-z._.js.map +1 -0
  554. package/.next/server/chunks/ssr/{p248-dash-release_app_tasks_page_tsx_0qdyj8l._.js → dash-main-prep_app_tasks_page_tsx_013t47c._.js} +2 -2
  555. package/.next/server/chunks/ssr/dash-main-prep_app_tasks_page_tsx_013t47c._.js.map +1 -0
  556. package/.next/server/middleware-build-manifest.js +8 -8
  557. package/.next/server/middleware.js +3 -3
  558. package/.next/server/middleware.js.nft.json +1 -1
  559. package/.next/server/next-font-manifest.js +1 -1
  560. package/.next/server/next-font-manifest.json +15 -15
  561. package/.next/server/pages/404.html +2 -2
  562. package/.next/server/pages/500.html +1 -1
  563. package/.next/server/server-reference-manifest.js +1 -1
  564. package/.next/server/server-reference-manifest.json +1 -1
  565. package/.next/static/chunks/0..6bvayc~2v_.js +31 -0
  566. package/.next/static/chunks/0.4it~9-lgmdc.js +7 -0
  567. package/.next/static/chunks/008f8y0vjzx6q.js +1 -0
  568. package/.next/static/chunks/026_lvbjd5ehm.js +1 -0
  569. package/.next/static/chunks/038w1~wz8c.b_.js +1 -0
  570. package/.next/static/chunks/04ab~m7-c0hma.js +1 -0
  571. package/.next/static/chunks/05n6g8whg1rnw.js +4 -0
  572. package/.next/static/chunks/074qn1p5esp6v.js +1 -0
  573. package/.next/static/chunks/{11c-24vhb~5d5.js → 0_eh6-xnv.vas.js} +1 -1
  574. package/.next/static/chunks/0_q1lcvifkup1.js +4 -0
  575. package/.next/static/chunks/0cj3regqtbzgi.js +1 -0
  576. package/.next/static/chunks/{0u6y82jjwp2k_.js → 0e.5fp53g~gjx.js} +1 -1
  577. package/.next/static/chunks/{0f1nxmo-ba2au.js → 0fval~_yhzi56.js} +1 -1
  578. package/.next/static/chunks/0g76.rws7jb6p.js +4 -0
  579. package/.next/static/chunks/0lfg~2g8_-82b.js +1 -0
  580. package/.next/static/chunks/{0e~mf5-e4dl_e.js → 0n5d~z6jskv75.js} +1 -1
  581. package/.next/static/chunks/{0655qv_ed4zqk.js → 0nvbpp15hjh1k.js} +1 -1
  582. package/.next/static/chunks/0p..-4gjx~ua~.css +1 -0
  583. package/.next/static/chunks/{0td.dx.r1h_nl.js → 0r5q0e.lci5bj.js} +2 -2
  584. package/.next/static/chunks/0u5kv-8r.53y_.js +1 -0
  585. package/.next/static/chunks/0uroeke.37_qr.js +1 -0
  586. package/.next/static/chunks/0w66-7icvft37.js +2 -0
  587. package/.next/static/chunks/0w8djdzyh1ar0.js +1 -0
  588. package/.next/static/chunks/0wikbewneplt6.js +1 -0
  589. package/.next/static/chunks/0zozgpnx9_ex_.js +1 -0
  590. package/.next/static/chunks/135hvx8t2m~5~.js +1 -0
  591. package/.next/static/chunks/turbopack-1071etkj.k-n~.js +1 -0
  592. package/.next/trace +2 -2
  593. package/.next/trace-build +1 -1
  594. package/.next/types/routes.d.ts +4 -1
  595. package/.next/types/validator.ts +27 -0
  596. package/app/api/anet/node-config/route.ts +140 -0
  597. package/app/api/anet/node-create/route.ts +174 -0
  598. package/app/api/anet/node-lifecycle/route.ts +108 -0
  599. package/app/components/AgentCard.tsx +33 -3
  600. package/app/components/CreateNodeWizard.tsx +288 -0
  601. package/app/components/NodeSettingsPanel.tsx +695 -0
  602. package/app/lib/hub-mcp.ts +94 -0
  603. package/app/nodes/page.tsx +17 -1
  604. package/package.json +2 -1
  605. package/.next/build/chunks/0eys_0hzxj57._.js.map +0 -47
  606. package/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_0f_tr7e._.js +0 -13
  607. package/.next/server/chunks/0ctr__next-internal_server_app_api_anet_config_route_actions_0vfnpq~.js +0 -3
  608. package/.next/server/chunks/0ctr__next-internal_server_app_api_auth_logout_route_actions_0mnkdb1.js +0 -3
  609. package/.next/server/chunks/0ctr__next-internal_server_app_api_hub_audit-log_route_actions_01da9km.js +0 -3
  610. package/.next/server/chunks/0ctr__next-internal_server_app_api_hub_broadcast_route_actions_0-mzp~m.js +0 -3
  611. package/.next/server/chunks/0ctr__next-internal_server_app_api_hub_messages_route_actions_0yqdey-.js +0 -3
  612. package/.next/server/chunks/0ctr__next-internal_server_app_api_hub_networks_route_actions_08zwxgz.js +0 -3
  613. package/.next/server/chunks/0ctr__next-internal_server_app_api_hub_register_route_actions_059ib7..js +0 -3
  614. package/.next/server/chunks/0ctr__next-internal_server_app_api_hub_server-logs_route_actions_0.lpvmu.js +0 -3
  615. package/.next/server/chunks/0ctr__next-internal_server_app_api_hub_servers_route_actions_0n9er6w.js +0 -3
  616. package/.next/server/chunks/0ctr__next-internal_server_app_api_hub_session_route_actions_0clahzh.js +0 -3
  617. package/.next/server/chunks/0ctr__next-internal_server_app_api_hub_task-events_route_actions_0eupv~7.js +0 -3
  618. package/.next/server/chunks/0ctr__next-internal_server_app_manifest_webmanifest_route_actions_0zwabxo.js +0 -3
  619. package/.next/server/chunks/0eys_next_0qdv7h5._.js +0 -10
  620. package/.next/server/chunks/0eys_next_0qdv7h5._.js.map +0 -1
  621. package/.next/server/chunks/0eys_next_dist_0k3eipb._.js +0 -18
  622. package/.next/server/chunks/0eys_next_dist_0k3eipb._.js.map +0 -1
  623. package/.next/server/chunks/0eys_next_dist_esm_build_templates_app-route_0squ2oo.js +0 -3
  624. package/.next/server/chunks/0eys_next_dist_esm_build_templates_app-route_0squ2oo.js.map +0 -1
  625. package/.next/server/chunks/0n8__next-internal_server_app_api_hub_server_[hostname]_agents_route_actions_0td~w-3.js +0 -3
  626. package/.next/server/chunks/0n8__next-internal_server_app_api_hub_server_[hostname]_health_route_actions_0-cx2k4.js +0 -3
  627. package/.next/server/chunks/[root-of-the-server]__0030c3d._.js +0 -3
  628. package/.next/server/chunks/[root-of-the-server]__0030c3d._.js.map +0 -1
  629. package/.next/server/chunks/[root-of-the-server]__006ofg~._.js +0 -3
  630. package/.next/server/chunks/[root-of-the-server]__006ofg~._.js.map +0 -1
  631. package/.next/server/chunks/[root-of-the-server]__00hv4s.._.js +0 -3
  632. package/.next/server/chunks/[root-of-the-server]__00hv4s.._.js.map +0 -1
  633. package/.next/server/chunks/[root-of-the-server]__01cxv~5._.js +0 -3
  634. package/.next/server/chunks/[root-of-the-server]__03kos9q._.js +0 -3
  635. package/.next/server/chunks/[root-of-the-server]__03kos9q._.js.map +0 -1
  636. package/.next/server/chunks/[root-of-the-server]__03oze7j._.js +0 -3
  637. package/.next/server/chunks/[root-of-the-server]__03oze7j._.js.map +0 -1
  638. package/.next/server/chunks/[root-of-the-server]__04cd_-f._.js +0 -3
  639. package/.next/server/chunks/[root-of-the-server]__04cd_-f._.js.map +0 -1
  640. package/.next/server/chunks/[root-of-the-server]__04g4e2s._.js +0 -3
  641. package/.next/server/chunks/[root-of-the-server]__04g4e2s._.js.map +0 -1
  642. package/.next/server/chunks/[root-of-the-server]__06gsfmz._.js +0 -3
  643. package/.next/server/chunks/[root-of-the-server]__06gsfmz._.js.map +0 -1
  644. package/.next/server/chunks/[root-of-the-server]__06ze71n._.js +0 -6
  645. package/.next/server/chunks/[root-of-the-server]__06ze71n._.js.map +0 -1
  646. package/.next/server/chunks/[root-of-the-server]__0afgpqa._.js +0 -3
  647. package/.next/server/chunks/[root-of-the-server]__0afgpqa._.js.map +0 -1
  648. package/.next/server/chunks/[root-of-the-server]__0c36sc~._.js +0 -3
  649. package/.next/server/chunks/[root-of-the-server]__0c36sc~._.js.map +0 -1
  650. package/.next/server/chunks/[root-of-the-server]__0ef15nv._.js +0 -3
  651. package/.next/server/chunks/[root-of-the-server]__0ef15nv._.js.map +0 -1
  652. package/.next/server/chunks/[root-of-the-server]__0fk~j-f._.js +0 -3
  653. package/.next/server/chunks/[root-of-the-server]__0jd4sw5._.js +0 -3
  654. package/.next/server/chunks/[root-of-the-server]__0jd4sw5._.js.map +0 -1
  655. package/.next/server/chunks/[root-of-the-server]__0kp05ch._.js +0 -3
  656. package/.next/server/chunks/[root-of-the-server]__0kp05ch._.js.map +0 -1
  657. package/.next/server/chunks/[root-of-the-server]__0ncl1y5._.js +0 -3
  658. package/.next/server/chunks/[root-of-the-server]__0p77uu0._.js +0 -3
  659. package/.next/server/chunks/[root-of-the-server]__0q5wxvv._.js +0 -3
  660. package/.next/server/chunks/[root-of-the-server]__0q5wxvv._.js.map +0 -1
  661. package/.next/server/chunks/[root-of-the-server]__0q9lm4b._.js +0 -3
  662. package/.next/server/chunks/[root-of-the-server]__0q9lm4b._.js.map +0 -1
  663. package/.next/server/chunks/[root-of-the-server]__0qygdtt._.js +0 -20
  664. package/.next/server/chunks/[root-of-the-server]__0qygdtt._.js.map +0 -1
  665. package/.next/server/chunks/[root-of-the-server]__0r.6ku0._.js +0 -3
  666. package/.next/server/chunks/[root-of-the-server]__0r9rxeu._.js +0 -3
  667. package/.next/server/chunks/[root-of-the-server]__0r9rxeu._.js.map +0 -1
  668. package/.next/server/chunks/[root-of-the-server]__0sk08ba._.js +0 -3
  669. package/.next/server/chunks/[root-of-the-server]__0sk08ba._.js.map +0 -1
  670. package/.next/server/chunks/[root-of-the-server]__0t-zv8i._.js +0 -3
  671. package/.next/server/chunks/[root-of-the-server]__0ucvqha._.js +0 -3
  672. package/.next/server/chunks/[root-of-the-server]__0ucvqha._.js.map +0 -1
  673. package/.next/server/chunks/[root-of-the-server]__0wrd5yg._.js +0 -3
  674. package/.next/server/chunks/[root-of-the-server]__0wrd5yg._.js.map +0 -1
  675. package/.next/server/chunks/[root-of-the-server]__0xyksgx._.js +0 -3
  676. package/.next/server/chunks/[root-of-the-server]__0xyksgx._.js.map +0 -1
  677. package/.next/server/chunks/[root-of-the-server]__0zy55xw._.js +0 -3
  678. package/.next/server/chunks/[root-of-the-server]__0zy55xw._.js.map +0 -1
  679. package/.next/server/chunks/[root-of-the-server]__0~7jz1t._.js +0 -3
  680. package/.next/server/chunks/[root-of-the-server]__0~7jz1t._.js.map +0 -1
  681. package/.next/server/chunks/[root-of-the-server]__117_h7d._.js +0 -3
  682. package/.next/server/chunks/p248-dash-release__next-internal_server_app_api_auth_login_route_actions_0p0o8hb.js +0 -3
  683. package/.next/server/chunks/p248-dash-release__next-internal_server_app_api_auth_v3_route_actions_0gygcdb.js +0 -3
  684. package/.next/server/chunks/p248-dash-release__next-internal_server_app_api_hub_auth_route_actions_0qldbc..js +0 -3
  685. package/.next/server/chunks/p248-dash-release__next-internal_server_app_api_hub_events_route_actions_0dif~y4.js +0 -3
  686. package/.next/server/chunks/p248-dash-release__next-internal_server_app_api_hub_health_route_actions_006d2v..js +0 -3
  687. package/.next/server/chunks/p248-dash-release__next-internal_server_app_api_hub_inbox_route_actions_0hzbelp.js +0 -3
  688. package/.next/server/chunks/p248-dash-release__next-internal_server_app_api_hub_nodes_route_actions_0.v335w.js +0 -3
  689. package/.next/server/chunks/p248-dash-release__next-internal_server_app_api_hub_send_route_actions_0-c6c80.js +0 -3
  690. package/.next/server/chunks/p248-dash-release__next-internal_server_app_api_hub_stats_route_actions_10r2dnb.js +0 -3
  691. package/.next/server/chunks/p248-dash-release__next-internal_server_app_api_hub_status_route_actions_029-bam.js +0 -3
  692. package/.next/server/chunks/p248-dash-release__next-internal_server_app_api_hub_tasks_route_actions_03j_ebz.js +0 -3
  693. package/.next/server/chunks/p248-dash-release__next-internal_server_app_api_hub_tmux_route_actions_0w~1rqo.js +0 -3
  694. package/.next/server/chunks/p248-dash-release__next-internal_server_app_api_hub_tokens_route_actions_0u1pfzb.js +0 -3
  695. package/.next/server/chunks/p248-dash-release__next-internal_server_app_api_hub_upload_route_actions_0n4mpaq.js +0 -3
  696. package/.next/server/chunks/p248-dash-release__next-internal_server_app_favicon_ico_route_actions_0upntbn.js +0 -3
  697. package/.next/server/chunks/ssr/0ctr__next-internal_server_app_settings_networks_page_actions_0722nti.js +0 -3
  698. package/.next/server/chunks/ssr/0eys_0.9fypy._.js +0 -3
  699. package/.next/server/chunks/ssr/0eys_0.9fypy._.js.map +0 -1
  700. package/.next/server/chunks/ssr/0eys_0cilv2n._.js +0 -3
  701. package/.next/server/chunks/ssr/0eys_0cilv2n._.js.map +0 -1
  702. package/.next/server/chunks/ssr/0eys_0o_uhv8._.js +0 -33
  703. package/.next/server/chunks/ssr/0eys_0o_uhv8._.js.map +0 -1
  704. package/.next/server/chunks/ssr/0eys_0v03z7d._.js +0 -3
  705. package/.next/server/chunks/ssr/0eys_0v03z7d._.js.map +0 -1
  706. package/.next/server/chunks/ssr/0eys_next_0_~e226._.js.map +0 -1
  707. package/.next/server/chunks/ssr/0eys_next_dist_0temmfx._.js +0 -6
  708. package/.next/server/chunks/ssr/0eys_next_dist_0temmfx._.js.map +0 -1
  709. package/.next/server/chunks/ssr/0eys_next_dist_client_components_0j3h5if._.js +0 -3
  710. package/.next/server/chunks/ssr/0eys_next_dist_client_components_0j3h5if._.js.map +0 -1
  711. package/.next/server/chunks/ssr/0eys_next_dist_client_components_builtin_forbidden_0h3lxo-.js +0 -3
  712. package/.next/server/chunks/ssr/0eys_next_dist_client_components_builtin_forbidden_0h3lxo-.js.map +0 -1
  713. package/.next/server/chunks/ssr/0eys_next_dist_client_components_builtin_global-error_05on~t..js +0 -3
  714. package/.next/server/chunks/ssr/0eys_next_dist_client_components_builtin_global-error_05on~t..js.map +0 -1
  715. package/.next/server/chunks/ssr/0eys_next_dist_client_components_builtin_unauthorized_0jjp4gf.js +0 -3
  716. package/.next/server/chunks/ssr/0eys_next_dist_client_components_builtin_unauthorized_0jjp4gf.js.map +0 -1
  717. package/.next/server/chunks/ssr/0eys_next_dist_esm_build_templates_app-page_0-rhsex.js +0 -4
  718. package/.next/server/chunks/ssr/0eys_next_dist_esm_build_templates_app-page_0-rhsex.js.map +0 -1
  719. package/.next/server/chunks/ssr/0eys_next_dist_esm_build_templates_app-page_038w~o4.js.map +0 -1
  720. package/.next/server/chunks/ssr/0eys_next_dist_esm_build_templates_app-page_097i4vb.js.map +0 -1
  721. package/.next/server/chunks/ssr/0eys_next_dist_esm_build_templates_app-page_0fy2_ot.js.map +0 -1
  722. package/.next/server/chunks/ssr/0eys_next_dist_esm_build_templates_app-page_0g0ea16.js.map +0 -1
  723. package/.next/server/chunks/ssr/0eys_next_dist_esm_build_templates_app-page_0gg19s6.js.map +0 -1
  724. package/.next/server/chunks/ssr/0eys_next_dist_esm_build_templates_app-page_0ikgf-7.js.map +0 -1
  725. package/.next/server/chunks/ssr/0eys_next_dist_esm_build_templates_app-page_0otan.0.js.map +0 -1
  726. package/.next/server/chunks/ssr/0eys_next_dist_esm_build_templates_app-page_0q4gvif.js.map +0 -1
  727. package/.next/server/chunks/ssr/0eys_next_dist_esm_build_templates_app-page_0s.as54.js.map +0 -1
  728. package/.next/server/chunks/ssr/0eys_next_dist_esm_build_templates_app-page_0t88_uc.js.map +0 -1
  729. package/.next/server/chunks/ssr/0eys_next_dist_esm_build_templates_app-page_0unqv4v.js.map +0 -1
  730. package/.next/server/chunks/ssr/0eys_next_dist_esm_build_templates_app-page_0vrz6hg.js +0 -4
  731. package/.next/server/chunks/ssr/0eys_next_dist_esm_build_templates_app-page_0vrz6hg.js.map +0 -1
  732. package/.next/server/chunks/ssr/0eys_next_dist_esm_build_templates_app-page_0xb3.u..js +0 -4
  733. package/.next/server/chunks/ssr/0eys_next_dist_esm_build_templates_app-page_0xb3.u..js.map +0 -1
  734. package/.next/server/chunks/ssr/0eys_next_dist_esm_build_templates_app-page_0xry76m.js.map +0 -1
  735. package/.next/server/chunks/ssr/0eys_next_dist_esm_build_templates_app-page_10~-.q1.js.map +0 -1
  736. package/.next/server/chunks/ssr/[root-of-the-server]__0.bq9qd._.js.map +0 -1
  737. package/.next/server/chunks/ssr/[root-of-the-server]__0.p4.9p._.js +0 -3
  738. package/.next/server/chunks/ssr/[root-of-the-server]__0.p4.9p._.js.map +0 -1
  739. package/.next/server/chunks/ssr/[root-of-the-server]__02e2~_p._.js +0 -3
  740. package/.next/server/chunks/ssr/[root-of-the-server]__02e2~_p._.js.map +0 -1
  741. package/.next/server/chunks/ssr/[root-of-the-server]__07iv~-v._.js +0 -3
  742. package/.next/server/chunks/ssr/[root-of-the-server]__07iv~-v._.js.map +0 -1
  743. package/.next/server/chunks/ssr/[root-of-the-server]__08c1l7e._.js +0 -3
  744. package/.next/server/chunks/ssr/[root-of-the-server]__08c1l7e._.js.map +0 -1
  745. package/.next/server/chunks/ssr/[root-of-the-server]__09tg-yx._.js +0 -3
  746. package/.next/server/chunks/ssr/[root-of-the-server]__09tg-yx._.js.map +0 -1
  747. package/.next/server/chunks/ssr/[root-of-the-server]__09wz11l._.js +0 -19
  748. package/.next/server/chunks/ssr/[root-of-the-server]__09wz11l._.js.map +0 -1
  749. package/.next/server/chunks/ssr/[root-of-the-server]__0c0po7z._.js +0 -3
  750. package/.next/server/chunks/ssr/[root-of-the-server]__0c0po7z._.js.map +0 -1
  751. package/.next/server/chunks/ssr/[root-of-the-server]__0c~slby._.js +0 -3
  752. package/.next/server/chunks/ssr/[root-of-the-server]__0c~slby._.js.map +0 -1
  753. package/.next/server/chunks/ssr/[root-of-the-server]__0dhdbz9._.js +0 -3
  754. package/.next/server/chunks/ssr/[root-of-the-server]__0dhdbz9._.js.map +0 -1
  755. package/.next/server/chunks/ssr/[root-of-the-server]__0j_fyz7._.js +0 -33
  756. package/.next/server/chunks/ssr/[root-of-the-server]__0j_fyz7._.js.map +0 -1
  757. package/.next/server/chunks/ssr/[root-of-the-server]__0jsgoje._.js +0 -33
  758. package/.next/server/chunks/ssr/[root-of-the-server]__0jsgoje._.js.map +0 -1
  759. package/.next/server/chunks/ssr/[root-of-the-server]__0k2x-ou._.js +0 -3
  760. package/.next/server/chunks/ssr/[root-of-the-server]__0k2x-ou._.js.map +0 -1
  761. package/.next/server/chunks/ssr/[root-of-the-server]__0mwy~nq._.js +0 -3
  762. package/.next/server/chunks/ssr/[root-of-the-server]__0mwy~nq._.js.map +0 -1
  763. package/.next/server/chunks/ssr/[root-of-the-server]__0ni6cq0._.js +0 -3
  764. package/.next/server/chunks/ssr/[root-of-the-server]__0ni6cq0._.js.map +0 -1
  765. package/.next/server/chunks/ssr/[root-of-the-server]__0ny5rkb._.js +0 -8
  766. package/.next/server/chunks/ssr/[root-of-the-server]__0ny5rkb._.js.map +0 -1
  767. package/.next/server/chunks/ssr/[root-of-the-server]__0oj.su5._.js +0 -3
  768. package/.next/server/chunks/ssr/[root-of-the-server]__0oj.su5._.js.map +0 -1
  769. package/.next/server/chunks/ssr/[root-of-the-server]__0q0h5.4._.js +0 -3
  770. package/.next/server/chunks/ssr/[root-of-the-server]__0q0h5.4._.js.map +0 -1
  771. package/.next/server/chunks/ssr/[root-of-the-server]__0se0pbf._.js +0 -3
  772. package/.next/server/chunks/ssr/[root-of-the-server]__0se0pbf._.js.map +0 -1
  773. package/.next/server/chunks/ssr/[root-of-the-server]__0tb8onm._.js +0 -3
  774. package/.next/server/chunks/ssr/[root-of-the-server]__0tb8onm._.js.map +0 -1
  775. package/.next/server/chunks/ssr/[root-of-the-server]__0wm_kxh._.js +0 -3
  776. package/.next/server/chunks/ssr/[root-of-the-server]__0wm_kxh._.js.map +0 -1
  777. package/.next/server/chunks/ssr/[root-of-the-server]__0wt_.5g._.js +0 -3
  778. package/.next/server/chunks/ssr/[root-of-the-server]__0wt_.5g._.js.map +0 -1
  779. package/.next/server/chunks/ssr/[root-of-the-server]__0xmwsru._.js +0 -3
  780. package/.next/server/chunks/ssr/[root-of-the-server]__0xmwsru._.js.map +0 -1
  781. package/.next/server/chunks/ssr/[root-of-the-server]__0xsrxaq._.js +0 -6
  782. package/.next/server/chunks/ssr/[root-of-the-server]__0z12w52._.js +0 -3
  783. package/.next/server/chunks/ssr/[root-of-the-server]__0z12w52._.js.map +0 -1
  784. package/.next/server/chunks/ssr/p248-dash-release_03jozqe._.js.map +0 -1
  785. package/.next/server/chunks/ssr/p248-dash-release__next-internal_server_app__global-error_page_actions_0-_psx0.js +0 -3
  786. package/.next/server/chunks/ssr/p248-dash-release__next-internal_server_app__not-found_page_actions_0ab90fb.js +0 -3
  787. package/.next/server/chunks/ssr/p248-dash-release__next-internal_server_app_admin_page_actions_0-3dd6g.js +0 -3
  788. package/.next/server/chunks/ssr/p248-dash-release__next-internal_server_app_login_page_actions_0cxgr5r.js +0 -3
  789. package/.next/server/chunks/ssr/p248-dash-release__next-internal_server_app_logs_page_actions_13ncn5w.js +0 -3
  790. package/.next/server/chunks/ssr/p248-dash-release__next-internal_server_app_messages_page_actions_03eny7a.js +0 -3
  791. package/.next/server/chunks/ssr/p248-dash-release__next-internal_server_app_node_page_actions_01g~v8e.js +0 -3
  792. package/.next/server/chunks/ssr/p248-dash-release__next-internal_server_app_nodes_page_actions_0rp9d.z.js +0 -3
  793. package/.next/server/chunks/ssr/p248-dash-release__next-internal_server_app_page_actions_12.zc2x.js +0 -3
  794. package/.next/server/chunks/ssr/p248-dash-release__next-internal_server_app_server-logs_page_actions_12.~xmh.js +0 -3
  795. package/.next/server/chunks/ssr/p248-dash-release__next-internal_server_app_servers_page_actions_01fbube.js +0 -3
  796. package/.next/server/chunks/ssr/p248-dash-release__next-internal_server_app_settings_page_actions_049o_zl.js +0 -3
  797. package/.next/server/chunks/ssr/p248-dash-release__next-internal_server_app_settings_tokens_page_actions_0kwlo85.js +0 -3
  798. package/.next/server/chunks/ssr/p248-dash-release__next-internal_server_app_tasks_[id]_page_actions_0gaayz2.js +0 -3
  799. package/.next/server/chunks/ssr/p248-dash-release__next-internal_server_app_tasks_page_actions_05-6rq9.js +0 -3
  800. package/.next/server/chunks/ssr/p248-dash-release_app_0.xbj-j._.js.map +0 -1
  801. package/.next/server/chunks/ssr/p248-dash-release_app_01r5cp-._.js.map +0 -1
  802. package/.next/server/chunks/ssr/p248-dash-release_app_0415ugh._.js.map +0 -1
  803. package/.next/server/chunks/ssr/p248-dash-release_app_07ks..b._.js.map +0 -1
  804. package/.next/server/chunks/ssr/p248-dash-release_app_08-_z~z._.js +0 -3
  805. package/.next/server/chunks/ssr/p248-dash-release_app_08-_z~z._.js.map +0 -1
  806. package/.next/server/chunks/ssr/p248-dash-release_app_0heiqx4._.js.map +0 -1
  807. package/.next/server/chunks/ssr/p248-dash-release_app_0ict6f_._.js.map +0 -1
  808. package/.next/server/chunks/ssr/p248-dash-release_app_0m1nag5._.js +0 -3
  809. package/.next/server/chunks/ssr/p248-dash-release_app_0m1nag5._.js.map +0 -1
  810. package/.next/server/chunks/ssr/p248-dash-release_app_0me0gyz._.js +0 -3
  811. package/.next/server/chunks/ssr/p248-dash-release_app_0me0gyz._.js.map +0 -1
  812. package/.next/server/chunks/ssr/p248-dash-release_app_0r.6wo3._.js.map +0 -1
  813. package/.next/server/chunks/ssr/p248-dash-release_app_components_0l8tz~8._.js.map +0 -1
  814. package/.next/server/chunks/ssr/p248-dash-release_app_servers_page_tsx_0gjg_-r._.js.map +0 -1
  815. package/.next/server/chunks/ssr/p248-dash-release_app_tasks_page_tsx_0qdyj8l._.js.map +0 -1
  816. package/.next/static/chunks/0-.8ljnci668r.js +0 -4
  817. package/.next/static/chunks/0-wn37qh25iv8.js +0 -4
  818. package/.next/static/chunks/01rl0zgit9fpi.js +0 -1
  819. package/.next/static/chunks/03hid7at2hts9.js +0 -1
  820. package/.next/static/chunks/04z~zcny7e-hu.js +0 -1
  821. package/.next/static/chunks/097dcrj-frket.js +0 -1
  822. package/.next/static/chunks/0_b1~xhhddi_..js +0 -2
  823. package/.next/static/chunks/0cip10~ax7ih8.js +0 -1
  824. package/.next/static/chunks/0fgpa9eurf21a.js +0 -4
  825. package/.next/static/chunks/0fjr78ak.7m7k.js +0 -1
  826. package/.next/static/chunks/0hy~u-wxdvw2u.js +0 -1
  827. package/.next/static/chunks/0i_zf1gx2iz9e.js +0 -1
  828. package/.next/static/chunks/0kgcx1x2p~.3f.js +0 -31
  829. package/.next/static/chunks/0my4koa~eoc3m.js +0 -1
  830. package/.next/static/chunks/0oa_op0qrdcyz.js +0 -1
  831. package/.next/static/chunks/0po5q8_1xmof_.js +0 -1
  832. package/.next/static/chunks/0t_ctpqz4qkkt.css +0 -1
  833. package/.next/static/chunks/105_kfixakoke.js +0 -7
  834. package/.next/static/chunks/137i49j2u~mpw.js +0 -1
  835. package/.next/static/chunks/1529ngs_24ts..js +0 -1
  836. package/.next/static/chunks/turbopack-0yv4qlj-3gvbg.js +0 -1
  837. package/bun.lock +0 -1663
  838. /package/.next/build/chunks/{[root-of-the-server]__02~~60i._.js.map → [root-of-the-server]__0z.4hvh._.js.map} +0 -0
  839. /package/.next/build/chunks/{[turbopack-node]_transforms_postcss_ts_0f_tr7e._.js.map → [turbopack-node]_transforms_postcss_ts_0ji7sn2._.js.map} +0 -0
  840. /package/.next/server/chunks/{0ctr__next-internal_server_app_api_anet_config_route_actions_0vfnpq~.js.map → 0eys__next-internal_server_app_api_anet_node-config_route_actions_0vpbqmt.js.map} +0 -0
  841. /package/.next/server/chunks/{0ctr__next-internal_server_app_api_auth_logout_route_actions_0mnkdb1.js.map → 0eys__next-internal_server_app_api_anet_node-create_route_actions_0ack5_x.js.map} +0 -0
  842. /package/.next/server/chunks/{0ctr__next-internal_server_app_api_hub_audit-log_route_actions_01da9km.js.map → 0eys__next-internal_server_app_api_anet_node-lifecycle_route_actions_13z6pk9.js.map} +0 -0
  843. /package/.next/server/chunks/{0ctr__next-internal_server_app_api_hub_broadcast_route_actions_0-mzp~m.js.map → 0eys__next-internal_server_app_api_hub_server-logs_route_actions_13k0lzq.js.map} +0 -0
  844. /package/.next/server/chunks/{0ctr__next-internal_server_app_api_hub_messages_route_actions_0yqdey-.js.map → 0eys__next-internal_server_app_api_hub_task-events_route_actions_0eayccx.js.map} +0 -0
  845. /package/.next/server/chunks/{0ctr__next-internal_server_app_api_hub_networks_route_actions_08zwxgz.js.map → 0eys__next-internal_server_app_manifest_webmanifest_route_actions_03s5neg.js.map} +0 -0
  846. /package/.next/server/chunks/{0ctr__next-internal_server_app_api_hub_register_route_actions_059ib7..js.map → 0raa_next-internal_server_app_api_hub_server_[hostname]_agents_route_actions_0q9dcjz.js.map} +0 -0
  847. /package/.next/server/chunks/{0ctr__next-internal_server_app_api_hub_server-logs_route_actions_0.lpvmu.js.map → 0raa_next-internal_server_app_api_hub_server_[hostname]_health_route_actions_0s8k6m..js.map} +0 -0
  848. /package/.next/server/chunks/{0ctr__next-internal_server_app_api_hub_servers_route_actions_0n9er6w.js.map → dash-main-prep__next-internal_server_app_api_anet_config_route_actions_0eb-2a9.js.map} +0 -0
  849. /package/.next/server/chunks/{0ctr__next-internal_server_app_api_hub_session_route_actions_0clahzh.js.map → dash-main-prep__next-internal_server_app_api_auth_login_route_actions_0_0zk8~.js.map} +0 -0
  850. /package/.next/server/chunks/{0ctr__next-internal_server_app_api_hub_task-events_route_actions_0eupv~7.js.map → dash-main-prep__next-internal_server_app_api_auth_logout_route_actions_0yy6u4n.js.map} +0 -0
  851. /package/.next/server/chunks/{0ctr__next-internal_server_app_manifest_webmanifest_route_actions_0zwabxo.js.map → dash-main-prep__next-internal_server_app_api_auth_v3_route_actions_09dg3rk.js.map} +0 -0
  852. /package/.next/server/chunks/{0n8__next-internal_server_app_api_hub_server_[hostname]_agents_route_actions_0td~w-3.js.map → dash-main-prep__next-internal_server_app_api_hub_audit-log_route_actions_03wia4o.js.map} +0 -0
  853. /package/.next/server/chunks/{0n8__next-internal_server_app_api_hub_server_[hostname]_health_route_actions_0-cx2k4.js.map → dash-main-prep__next-internal_server_app_api_hub_auth_route_actions_0k.l0a-.js.map} +0 -0
  854. /package/.next/server/chunks/{p248-dash-release__next-internal_server_app_api_auth_login_route_actions_0p0o8hb.js.map → dash-main-prep__next-internal_server_app_api_hub_broadcast_route_actions_02wotps.js.map} +0 -0
  855. /package/.next/server/chunks/{p248-dash-release__next-internal_server_app_api_auth_v3_route_actions_0gygcdb.js.map → dash-main-prep__next-internal_server_app_api_hub_events_route_actions_0i1zyq~.js.map} +0 -0
  856. /package/.next/server/chunks/{p248-dash-release__next-internal_server_app_api_hub_auth_route_actions_0qldbc..js.map → dash-main-prep__next-internal_server_app_api_hub_health_route_actions_0fe6lsz.js.map} +0 -0
  857. /package/.next/server/chunks/{p248-dash-release__next-internal_server_app_api_hub_events_route_actions_0dif~y4.js.map → dash-main-prep__next-internal_server_app_api_hub_inbox_route_actions_0iup.xe.js.map} +0 -0
  858. /package/.next/server/chunks/{p248-dash-release__next-internal_server_app_api_hub_health_route_actions_006d2v..js.map → dash-main-prep__next-internal_server_app_api_hub_messages_route_actions_0syf65m.js.map} +0 -0
  859. /package/.next/server/chunks/{p248-dash-release__next-internal_server_app_api_hub_inbox_route_actions_0hzbelp.js.map → dash-main-prep__next-internal_server_app_api_hub_networks_route_actions_04dtp_m.js.map} +0 -0
  860. /package/.next/server/chunks/{p248-dash-release__next-internal_server_app_api_hub_nodes_route_actions_0.v335w.js.map → dash-main-prep__next-internal_server_app_api_hub_nodes_route_actions_0aghuq9.js.map} +0 -0
  861. /package/.next/server/chunks/{p248-dash-release__next-internal_server_app_api_hub_send_route_actions_0-c6c80.js.map → dash-main-prep__next-internal_server_app_api_hub_register_route_actions_04g3.gx.js.map} +0 -0
  862. /package/.next/server/chunks/{p248-dash-release__next-internal_server_app_api_hub_stats_route_actions_10r2dnb.js.map → dash-main-prep__next-internal_server_app_api_hub_send_route_actions_01m4__p.js.map} +0 -0
  863. /package/.next/server/chunks/{p248-dash-release__next-internal_server_app_api_hub_status_route_actions_029-bam.js.map → dash-main-prep__next-internal_server_app_api_hub_servers_route_actions_10lz59w.js.map} +0 -0
  864. /package/.next/server/chunks/{p248-dash-release__next-internal_server_app_api_hub_tasks_route_actions_03j_ebz.js.map → dash-main-prep__next-internal_server_app_api_hub_session_route_actions_03ce57x.js.map} +0 -0
  865. /package/.next/server/chunks/{p248-dash-release__next-internal_server_app_api_hub_tmux_route_actions_0w~1rqo.js.map → dash-main-prep__next-internal_server_app_api_hub_stats_route_actions_0~xcq1-.js.map} +0 -0
  866. /package/.next/server/chunks/{p248-dash-release__next-internal_server_app_api_hub_tokens_route_actions_0u1pfzb.js.map → dash-main-prep__next-internal_server_app_api_hub_status_route_actions_0slss8r.js.map} +0 -0
  867. /package/.next/server/chunks/{p248-dash-release__next-internal_server_app_api_hub_upload_route_actions_0n4mpaq.js.map → dash-main-prep__next-internal_server_app_api_hub_tasks_route_actions_0yvhaa_.js.map} +0 -0
  868. /package/.next/server/chunks/{p248-dash-release__next-internal_server_app_favicon_ico_route_actions_0upntbn.js.map → dash-main-prep__next-internal_server_app_api_hub_tmux_route_actions_0_f8h.h.js.map} +0 -0
  869. /package/.next/server/chunks/{ssr/0ctr__next-internal_server_app_settings_networks_page_actions_0722nti.js.map → dash-main-prep__next-internal_server_app_api_hub_tokens_route_actions_0ke~8y8.js.map} +0 -0
  870. /package/.next/server/chunks/{ssr/p248-dash-release__next-internal_server_app__global-error_page_actions_0-_psx0.js.map → dash-main-prep__next-internal_server_app_api_hub_upload_route_actions_02jnx8r.js.map} +0 -0
  871. /package/.next/server/chunks/{ssr/p248-dash-release__next-internal_server_app__not-found_page_actions_0ab90fb.js.map → dash-main-prep__next-internal_server_app_favicon_ico_route_actions_09bgfok.js.map} +0 -0
  872. /package/.next/server/chunks/ssr/{p248-dash-release__next-internal_server_app_admin_page_actions_0-3dd6g.js.map → dash-main-prep__next-internal_server_app__global-error_page_actions_07kk3nm.js.map} +0 -0
  873. /package/.next/server/chunks/ssr/{p248-dash-release__next-internal_server_app_login_page_actions_0cxgr5r.js.map → dash-main-prep__next-internal_server_app__not-found_page_actions_0cb6n8e.js.map} +0 -0
  874. /package/.next/server/chunks/ssr/{p248-dash-release__next-internal_server_app_logs_page_actions_13ncn5w.js.map → dash-main-prep__next-internal_server_app_admin_page_actions_0whq~om.js.map} +0 -0
  875. /package/.next/server/chunks/ssr/{p248-dash-release__next-internal_server_app_messages_page_actions_03eny7a.js.map → dash-main-prep__next-internal_server_app_login_page_actions_0lfb5vh.js.map} +0 -0
  876. /package/.next/server/chunks/ssr/{p248-dash-release__next-internal_server_app_node_page_actions_01g~v8e.js.map → dash-main-prep__next-internal_server_app_logs_page_actions_0a9g2gh.js.map} +0 -0
  877. /package/.next/server/chunks/ssr/{p248-dash-release__next-internal_server_app_nodes_page_actions_0rp9d.z.js.map → dash-main-prep__next-internal_server_app_messages_page_actions_0_0a~oj.js.map} +0 -0
  878. /package/.next/server/chunks/ssr/{p248-dash-release__next-internal_server_app_page_actions_12.zc2x.js.map → dash-main-prep__next-internal_server_app_node_page_actions_0nt83da.js.map} +0 -0
  879. /package/.next/server/chunks/ssr/{p248-dash-release__next-internal_server_app_server-logs_page_actions_12.~xmh.js.map → dash-main-prep__next-internal_server_app_nodes_page_actions_001898j.js.map} +0 -0
  880. /package/.next/server/chunks/ssr/{p248-dash-release__next-internal_server_app_servers_page_actions_01fbube.js.map → dash-main-prep__next-internal_server_app_page_actions_10t6_cb.js.map} +0 -0
  881. /package/.next/server/chunks/ssr/{p248-dash-release__next-internal_server_app_settings_page_actions_049o_zl.js.map → dash-main-prep__next-internal_server_app_server-logs_page_actions_10i2y0v.js.map} +0 -0
  882. /package/.next/server/chunks/ssr/{p248-dash-release__next-internal_server_app_settings_tokens_page_actions_0kwlo85.js.map → dash-main-prep__next-internal_server_app_servers_page_actions_0yfsnrz.js.map} +0 -0
  883. /package/.next/server/chunks/ssr/{p248-dash-release__next-internal_server_app_tasks_[id]_page_actions_0gaayz2.js.map → dash-main-prep__next-internal_server_app_settings_networks_page_actions_0.6z6e9.js.map} +0 -0
  884. /package/.next/server/chunks/ssr/{p248-dash-release__next-internal_server_app_tasks_page_actions_05-6rq9.js.map → dash-main-prep__next-internal_server_app_settings_page_actions_0t_etc1.js.map} +0 -0
  885. /package/.next/static/{88n5t5Pxmw08hbmLba3jI → aIXvzZuknEQ-phwB09c_j}/_buildManifest.js +0 -0
  886. /package/.next/static/{88n5t5Pxmw08hbmLba3jI → aIXvzZuknEQ-phwB09c_j}/_clientMiddlewareManifest.js +0 -0
  887. /package/.next/static/{88n5t5Pxmw08hbmLba3jI → aIXvzZuknEQ-phwB09c_j}/_ssgManifest.js +0 -0
@@ -0,0 +1,3 @@
1
+ module.exports=[50227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},5504,e=>{"use strict";var t=e.i(28969),r=e.i(34913),n=e.i(72246),a=e.i(4840),i=e.i(70086),o=e.i(96110),s=e.i(49352),l=e.i(94927),u=e.i(76463),d=e.i(32645),p=e.i(89504),c=e.i(4410),h=e.i(84496),v=e.i(4013),x=e.i(91537),g=e.i(93695);e.i(37367);var f=e.i(47471),R=e.i(12714),m=e.i(60526),w=e.i(50227),E=e.i(42515);let C=(0,w.join)((0,m.homedir)(),".anet","config.json");function y(e){return e.length<=8?"configured":`${e.slice(0,4)}...${e.slice(-4)}`}async function b(){let e=await (0,E.requireDashboardAuth)();if(e)return e;let t=process.env.COMMHUB_URL?.trim()||null,r=process.env.COMMHUB_AUTH_TOKEN?.trim()||"";try{let e=await (0,R.readFile)(C,"utf8"),n=JSON.parse(e),a="string"==typeof n.hub?n.hub:null,i="string"==typeof n.token?n.token:"",o=r||i,s=!!(t||r);return Response.json({path:C,exists:!0,source:s?"runtime-env":"file",hub:t||a,tokenConfigured:o.length>0,tokenPreview:o?y(o):null,error:s?"local config loaded; runtime environment overrides are active":void 0})}catch(n){let e="object"==typeof n&&null!==n&&"code"in n&&"ENOENT"===n.code;return Response.json({path:C,exists:!1,source:t||r?"runtime-env":"missing",hub:t,tokenConfigured:r.length>0,tokenPreview:r?y(r):null,error:e?"config not found":n instanceof Error?n.message:String(n)})}}e.s(["GET",0,b],4624);var A=e.i(4624);let N=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/anet/config/route",pathname:"/api/anet/config",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/dash-main-prep/app/api/anet/config/route.ts",nextConfigOutput:"",userland:A,...{}}),{workAsyncStorage:T,workUnitAsyncStorage:k,serverHooks:q}=N;async function O(e,t,n){n.requestMeta&&(0,a.setRequestMeta)(e,n.requestMeta),N.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let R="/api/anet/config/route";R=R.replace(/\/index$/,"")||"/";let m=await N.prepare(e,t,{srcPage:R,multiZoneDraftMode:!1});if(!m)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:w,params:E,nextConfig:C,parsedUrl:y,isDraftMode:b,prerenderManifest:A,routerServerContext:T,isOnDemandRevalidate:k,revalidateOnlyGenerated:q,resolvedPathname:O,clientReferenceManifest:P,serverActionsManifest:_}=m,S=(0,s.normalizeAppPath)(R),j=!!(A.dynamicRoutes[S]||A.routes[O]),H=async()=>((null==T?void 0:T.render404)?await T.render404(e,t,y,!1):t.end("This page could not be found"),null);if(j&&!b){let e=!!A.routes[O],t=A.dynamicRoutes[S];if(t&&!1===t.fallback&&!e){if(C.adapterPath)return await H();throw new g.NoFallbackError}}let U=null;!j||N.isDev||b||(U="/index"===(U=O)?"/":U);let M=!0===N.isDev||!j,I=j&&!M;_&&P&&(0,o.setManifestsSingleton)({page:R,clientReferenceManifest:P,serverActionsManifest:_});let D=e.method||"GET",$=(0,i.getTracer)(),F=$.getActiveScopeSpan(),K=!!(null==T?void 0:T.isWrappedByNextServer),B=!!(0,a.getRequestMeta)(e,"minimalMode"),L=(0,a.getRequestMeta)(e,"incrementalCache")||await N.getIncrementalCache(e,C,A,B);null==L||L.resetRequestCache(),globalThis.__incrementalCache=L;let G={params:E,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts},cacheComponents:!!C.cacheComponents,supportsDynamicResponse:M,incrementalCache:L,cacheLifeProfiles:C.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,a)=>N.onRequestError(e,t,n,a,T)},sharedContext:{buildId:w}},V=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),X=u.NextRequestAdapter.fromNodeNextRequest(V,(0,u.signalFromNodeResponse)(t));try{let a,o=async e=>N.handle(X,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${D} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t),a&&a!==e&&(a.setAttribute("http.route",n),a.updateName(t))}else e.updateName(`${D} ${R}`)}),s=async a=>{var i,s;let l=async({previousCacheEntry:r})=>{try{if(!B&&k&&q&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let i=await o(a);e.fetchMetrics=G.renderOpts.fetchMetrics;let s=G.renderOpts.pendingWaitUntil;s&&n.waitUntil&&(n.waitUntil(s),s=void 0);let l=G.renderOpts.collectedTags;if(!j)return await (0,c.sendResponse)(V,W,i,G.renderOpts.pendingWaitUntil),null;{let e=await i.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(i.headers);l&&(t[x.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=x.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,n=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=x.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:f.CachedRouteKind.APP_ROUTE,status:i.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await N.onRequestError(e,t,{routerKind:"App Router",routePath:R,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:I,isOnDemandRevalidate:k})},!1,T),t}},u=await N.handleResponse({req:e,nextConfig:C,cacheKey:U,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:k,revalidateOnlyGenerated:q,responseGenerator:l,waitUntil:n.waitUntil,isMinimalMode:B});if(!j)return null;if((null==u||null==(i=u.value)?void 0:i.kind)!==f.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(s=u.value)?void 0:s.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});B||t.setHeader("x-nextjs-cache",k?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),b&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let d=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return B&&j||d.delete(x.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||d.get("Cache-Control")||d.set("Cache-Control",(0,v.getCacheControlHeader)(u.cacheControl)),await (0,c.sendResponse)(V,W,new Response(u.value.body,{headers:d,status:u.value.status||200})),null};K&&F?await s(F):(a=$.getActiveScopeSpan(),await $.withPropagatedContext(e.headers,()=>$.trace(d.BaseServerSpan.handleRequest,{spanName:`${D} ${R}`,kind:i.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},s),void 0,!K))}catch(t){if(t instanceof g.NoFallbackError||await N.onRequestError(e,t,{routerKind:"App Router",routePath:S,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:I,isOnDemandRevalidate:k})},!1,T),j)throw t;return await (0,c.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",0,O,"patchFetch",0,function(){return(0,n.patchFetch)({workAsyncStorage:T,workUnitAsyncStorage:k})},"routeModule",0,N,"serverHooks",0,q,"workAsyncStorage",0,T,"workUnitAsyncStorage",0,k],5504)}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__013ptvb._.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../dash-main-prep/app/api/anet/config/route.ts","../../../../dash-main-prep/node_modules/next/dist/esm/build/templates/app-route.js"],"sourcesContent":["import { readFile } from 'node:fs/promises';\nimport { homedir } from 'node:os';\nimport { join } from 'node:path';\nimport { requireDashboardAuth } from '@/app/lib/dashboard-auth';\n\ninterface RawAnetConfig {\n hub?: unknown;\n token?: unknown;\n}\n\nconst CONFIG_PATH = join(homedir(), '.anet', 'config.json');\n\nfunction previewToken(token: string) {\n if (token.length <= 8) return 'configured';\n return `${token.slice(0, 4)}...${token.slice(-4)}`;\n}\n\nexport async function GET() {\n const authFailure = await requireDashboardAuth();\n if (authFailure) return authFailure;\n\n const envHub = process.env.COMMHUB_URL?.trim() || null;\n const envToken = process.env.COMMHUB_AUTH_TOKEN?.trim() || '';\n\n try {\n const text = await readFile(CONFIG_PATH, 'utf8');\n const raw = JSON.parse(text) as RawAnetConfig;\n const fileHub = typeof raw.hub === 'string' ? raw.hub : null;\n const fileToken = typeof raw.token === 'string' ? raw.token : '';\n const effectiveHub = envHub || fileHub;\n const effectiveToken = envToken || fileToken;\n const overriddenByEnv = Boolean(envHub || envToken);\n\n return Response.json({\n path: CONFIG_PATH,\n exists: true,\n source: overriddenByEnv ? 'runtime-env' : 'file',\n hub: effectiveHub,\n tokenConfigured: effectiveToken.length > 0,\n tokenPreview: effectiveToken ? previewToken(effectiveToken) : null,\n error: overriddenByEnv ? 'local config loaded; runtime environment overrides are active' : undefined,\n });\n } catch (e: unknown) {\n const isMissing =\n typeof e === 'object' &&\n e !== null &&\n 'code' in e &&\n e.code === 'ENOENT';\n\n return Response.json({\n path: CONFIG_PATH,\n exists: false,\n source: envHub || envToken ? 'runtime-env' : 'missing',\n hub: envHub,\n tokenConfigured: envToken.length > 0,\n tokenPreview: envToken ? previewToken(envToken) : null,\n error: isMissing ? 'config not found' : e instanceof Error ? e.message : String(e),\n });\n }\n}\n","import { AppRouteRouteModule } from \"next/dist/esm/server/route-modules/app-route/module.compiled\";\nimport { RouteKind } from \"next/dist/esm/server/route-kind\";\nimport { patchFetch as _patchFetch } from \"next/dist/esm/server/lib/patch-fetch\";\nimport { addRequestMeta, getRequestMeta, setRequestMeta } from \"next/dist/esm/server/request-meta\";\nimport { getTracer, SpanKind } from \"next/dist/esm/server/lib/trace/tracer\";\nimport { setManifestsSingleton } from \"next/dist/esm/server/app-render/manifests-singleton\";\nimport { normalizeAppPath } from \"next/dist/esm/shared/lib/router/utils/app-paths\";\nimport { NodeNextRequest, NodeNextResponse } from \"next/dist/esm/server/base-http/node\";\nimport { NextRequestAdapter, signalFromNodeResponse } from \"next/dist/esm/server/web/spec-extension/adapters/next-request\";\nimport { BaseServerSpan } from \"next/dist/esm/server/lib/trace/constants\";\nimport { getRevalidateReason } from \"next/dist/esm/server/instrumentation/utils\";\nimport { sendResponse } from \"next/dist/esm/server/send-response\";\nimport { fromNodeOutgoingHttpHeaders, toNodeOutgoingHttpHeaders } from \"next/dist/esm/server/web/utils\";\nimport { getCacheControlHeader } from \"next/dist/esm/server/lib/cache-control\";\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from \"next/dist/esm/lib/constants\";\nimport { NoFallbackError } from \"next/dist/esm/shared/lib/no-fallback-error.external\";\nimport { CachedRouteKind } from \"next/dist/esm/server/response-cache\";\nimport * as userland from \"INNER_APP_ROUTE\";\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\nconst nextConfigOutput = \"\"\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: \"/api/anet/config/route\",\n pathname: \"/api/anet/config\",\n filename: \"route\",\n bundlePath: \"\"\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: \"[project]/dash-main-prep/app/api/anet/config/route.ts\",\n nextConfigOutput,\n // The static import is used for initialization (methods, dynamic, etc.).\n userland: userland,\n // In Turbopack dev mode, also provide a getter that calls require() on every\n // request. This re-reads from devModuleCache so HMR updates are picked up,\n // and the async wrapper unwraps async-module Promises (ESM-only\n // serverExternalPackages) automatically.\n ...process.env.TURBOPACK && process.env.__NEXT_DEV_SERVER ? {\n getUserland: ()=>import(\"INNER_APP_ROUTE\")\n } : {}\n});\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage\n });\n}\nexport { routeModule, workAsyncStorage, workUnitAsyncStorage, serverHooks, patchFetch, };\nexport async function handler(req, res, ctx) {\n if (ctx.requestMeta) {\n setRequestMeta(req, ctx.requestMeta);\n }\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());\n }\n let srcPage = \"/api/anet/config/route\";\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/';\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/';\n }\n const multiZoneDraftMode = process.env.__NEXT_MULTI_ZONE_DRAFT_MODE;\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode\n });\n if (!prepareResult) {\n res.statusCode = 400;\n res.end('Bad Request');\n ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());\n return null;\n }\n const { buildId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest } = prepareResult;\n const normalizedSrcPage = normalizeAppPath(srcPage);\n let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || prerenderManifest.routes[resolvedPathname]);\n const render404 = async ()=>{\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext == null ? void 0 : routerServerContext.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false);\n } else {\n res.end('This page could not be found');\n }\n return null;\n };\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname]);\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.adapterPath) {\n return await render404();\n }\n throw new NoFallbackError();\n }\n }\n }\n let cacheKey = null;\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname;\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey;\n }\n const supportsDynamicResponse = // If we're in development, we always support dynamic HTML\n routeModule.isDev === true || // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr;\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse;\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest\n });\n }\n const method = req.method || 'GET';\n const tracer = getTracer();\n const activeSpan = tracer.getActiveScopeSpan();\n const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);\n const isMinimalMode = Boolean(getRequestMeta(req, 'minimalMode'));\n const incrementalCache = getRequestMeta(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, prerenderManifest, isMinimalMode);\n incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();\n globalThis.__incrementalCache = incrementalCache;\n const context = {\n params,\n previewProps: prerenderManifest.preview,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts)\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache,\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb)=>{\n res.on('close', cb);\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, routerServerContext)\n },\n sharedContext: {\n buildId\n }\n };\n const nodeNextReq = new NodeNextRequest(req);\n const nodeNextRes = new NodeNextResponse(res);\n const nextReq = NextRequestAdapter.fromNodeNextRequest(nodeNextReq, signalFromNodeResponse(res));\n try {\n let parentSpan;\n const invokeRouteModule = async (span)=>{\n return routeModule.handle(nextReq, context).finally(()=>{\n if (!span) return;\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false\n });\n const rootSpanAttributes = tracer.getRootSpanAttributes();\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return;\n }\n if (rootSpanAttributes.get('next.span_type') !== BaseServerSpan.handleRequest) {\n console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);\n return;\n }\n const route = rootSpanAttributes.get('next.route');\n if (route) {\n const name = `${method} ${route}`;\n span.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name\n });\n span.updateName(name);\n // Propagate http.route to the parent span if one exists (e.g.\n // a platform-created HTTP span in adapter deployments).\n if (parentSpan && parentSpan !== span) {\n parentSpan.setAttribute('http.route', route);\n parentSpan.updateName(name);\n }\n } else {\n span.updateName(`${method} ${srcPage}`);\n }\n });\n };\n const handleResponse = async (currentSpan)=>{\n var _cacheEntry_value;\n const responseGenerator = async ({ previousCacheEntry })=>{\n try {\n if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {\n res.statusCode = 404;\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED');\n res.end('This page could not be found');\n return null;\n }\n const response = await invokeRouteModule(currentSpan);\n req.fetchMetrics = context.renderOpts.fetchMetrics;\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil;\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil);\n pendingWaitUntil = undefined;\n }\n }\n const cacheTags = context.renderOpts.collectedTags;\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob();\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers);\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags;\n }\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type;\n }\n const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;\n const expire = typeof context.renderOpts.collectedExpire === 'undefined' || context.renderOpts.collectedExpire >= INFINITE_CACHE ? undefined : context.renderOpts.collectedExpire;\n // Create the cache entry for the response.\n const cacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers\n },\n cacheControl: {\n revalidate,\n expire\n }\n };\n return cacheEntry;\n } else {\n // send response without caching if not ISR\n await sendResponse(nodeNextReq, nodeNextRes, response, context.renderOpts.pendingWaitUntil);\n return null;\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n throw err;\n }\n };\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode\n });\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null;\n }\n if ((cacheEntry == null ? void 0 : (_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== CachedRouteKind.APP_ROUTE) {\n var _cacheEntry_value1;\n throw Object.defineProperty(new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`), \"__NEXT_ERROR_CODE\", {\n value: \"E701\",\n enumerable: false,\n configurable: true\n });\n }\n if (!isMinimalMode) {\n res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');\n }\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');\n }\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers);\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER);\n }\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {\n headers.set('Cache-Control', getCacheControlHeader(cacheEntry.cacheControl));\n }\n await sendResponse(nodeNextReq, nodeNextRes, // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200\n }));\n return null;\n };\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (isWrappedByNextServer && activeSpan) {\n await handleResponse(activeSpan);\n } else {\n parentSpan = tracer.getActiveScopeSpan();\n await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(BaseServerSpan.handleRequest, {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url\n }\n }, handleResponse), undefined, !isWrappedByNextServer);\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n // rethrow so that we can handle serving error page\n // If this is during static generation, throw the error again.\n if (isIsr) throw err;\n // Otherwise, send a 500 response.\n await sendResponse(nodeNextReq, nodeNextRes, new Response(null, {\n status: 500\n }));\n return null;\n }\n}\n\n//# sourceMappingURL=app-route.js.map\n"],"names":["CONFIG_PATH","previewToken","token","length","slice","tokenPreview","GET","authFailure","envHub","process","Response","env","COMMHUB_URL","trim","envToken","COMMHUB_AUTH_TOKEN","text","raw","JSON","parse","fileHub","hub","fileToken","effectiveHub","effectiveToken","overriddenByEnv","Boolean","json","path","exists","source","tokenConfigured","error","undefined","e","is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AAA,YAAA,AAAY,EAAC,EAAa,EAChC,IAAI,SAAS,EAAW,KAAK,CAAC,IAAI,CAAE,SAChC,EACA,OAAQ,EAAW,KAAK,CAAC,MAAM,EAAI,GACvC,IACO,IACX,EAGI,GAAyB,EACzB,MAAM,EAAe,EADgB,EAGrC,EAAa,EAAO,kBAAkB,GACtC,MAAM,EAAO,qBAAqB,CAAC,EAAI,OAAO,CAAE,IAAI,EAAO,KAAK,CAAC,EAAA,cAAc,CAAC,aAAa,CAAE,CACvF,SAAU,CAAA,EAAG,EAAO,CAAC,EAAE,EAAA,CAAS,CAChC,KAAM,EAAA,QAAQ,CAAC,MAAM,CACrB,WAAY,CACR,cAAe,EACf,cAAe,EAAI,GAAG,AAC1B,CACJ,EAAG,QAAiB,EAAW,CAAC,GAE5C,CAAE,MAAO,EAAK,CAeV,GAdM,aAAe,EAAA,eAAe,EAEhC,CAFmC,KAE7B,EAAY,cAAc,CAAC,EAAK,EAAK,CACvC,WAAY,aACZ,UAAW,EACX,UAAW,QACX,iBAAkB,CAAA,EAAA,EAAA,mBAAA,AAAmB,EAAC,oBAClC,uBACA,CACJ,EACJ,GAAG,AATgB,EASJ,GAIf,EAAO,MAAM,EAKjB,OAHA,MAAM,CAAA,EAAA,EAAA,YAAA,AAAY,EAAC,EAAa,EAAa,IAAI,SAAS,KAAM,CAC5D,OAAQ,GACZ,IACO,IACX,CACJ,mCA3TA,SAAS,EACL,MAAO,CAAA,EAAA,EAAA,UAAA,AAAW,EAAC,kBACf,uBACA,CACJ,EACJ","ignoreList":[1]}
@@ -0,0 +1,3 @@
1
+ module.exports=[50227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},8901,e=>{"use strict";var t=e.i(28969),r=e.i(34913),a=e.i(72246),n=e.i(4840),s=e.i(70086),o=e.i(96110),i=e.i(49352),l=e.i(94927),u=e.i(76463),d=e.i(32645),p=e.i(89504),c=e.i(4410),h=e.i(84496),x=e.i(4013),v=e.i(91537),R=e.i(93695);e.i(37367);var g=e.i(47471),f=e.i(42515);let w=process.env.COMMHUB_URL||"http://127.0.0.1:9200";async function m(){let e=await (0,f.getV3UserToken)(),t={};return e&&(t.Authorization=`Bearer ${e}`),t}async function E(e){let t=await (0,f.requireDashboardAuth)();if(t)return t;let{searchParams:r}=new URL(e.url),a=r.get("limit")||"200",n=r.get("since")||"";try{let e=new URLSearchParams({limit:a});n&&e.set("since",n);let t=await fetch(`${w}/api/server-logs?${e.toString()}`,{headers:await m(),next:{revalidate:0}});if(!t.ok)return Response.json({error:`hub ${t.status}`},{status:t.status});return Response.json(await t.json())}catch(e){return Response.json({error:"hub unreachable",detail:e instanceof Error?e.message:String(e)},{status:502})}}e.s(["GET",0,E],33346);var y=e.i(33346);let C=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/hub/server-logs/route",pathname:"/api/hub/server-logs",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/dash-main-prep/app/api/hub/server-logs/route.ts",nextConfigOutput:"",userland:y,...{}}),{workAsyncStorage:b,workUnitAsyncStorage:A,serverHooks:T}=C;async function q(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),C.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let f="/api/hub/server-logs/route";f=f.replace(/\/index$/,"")||"/";let w=await C.prepare(e,t,{srcPage:f,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:m,params:E,nextConfig:y,parsedUrl:b,isDraftMode:A,prerenderManifest:T,routerServerContext:q,isOnDemandRevalidate:N,revalidateOnlyGenerated:P,resolvedPathname:S,clientReferenceManifest:k,serverActionsManifest:_}=w,O=(0,i.normalizeAppPath)(f),j=!!(T.dynamicRoutes[O]||T.routes[S]),U=async()=>((null==q?void 0:q.render404)?await q.render404(e,t,b,!1):t.end("This page could not be found"),null);if(j&&!A){let e=!!T.routes[S],t=T.dynamicRoutes[O];if(t&&!1===t.fallback&&!e){if(y.adapterPath)return await U();throw new R.NoFallbackError}}let H=null;!j||C.isDev||A||(H="/index"===(H=S)?"/":H);let M=!0===C.isDev||!j,I=j&&!M;_&&k&&(0,o.setManifestsSingleton)({page:f,clientReferenceManifest:k,serverActionsManifest:_});let D=e.method||"GET",$=(0,s.getTracer)(),B=$.getActiveScopeSpan(),F=!!(null==q?void 0:q.isWrappedByNextServer),K=!!(0,n.getRequestMeta)(e,"minimalMode"),L=(0,n.getRequestMeta)(e,"incrementalCache")||await C.getIncrementalCache(e,y,T,K);null==L||L.resetRequestCache(),globalThis.__incrementalCache=L;let G={params:E,previewProps:T.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts},cacheComponents:!!y.cacheComponents,supportsDynamicResponse:M,incrementalCache:L,cacheLifeProfiles:y.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>C.onRequestError(e,t,a,n,q)},sharedContext:{buildId:m}},V=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),X=u.NextRequestAdapter.fromNodeNextRequest(V,(0,u.signalFromNodeResponse)(t));try{let n,o=async e=>C.handle(X,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${D} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${D} ${f}`)}),i=async n=>{var s,i;let l=async({previousCacheEntry:r})=>{try{if(!K&&N&&P&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await o(n);e.fetchMetrics=G.renderOpts.fetchMetrics;let i=G.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let l=G.renderOpts.collectedTags;if(!j)return await (0,c.sendResponse)(V,W,s,G.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[v.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=v.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,a=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=v.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:g.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await C.onRequestError(e,t,{routerKind:"App Router",routePath:f,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:I,isOnDemandRevalidate:N})},!1,q),t}},u=await C.handleResponse({req:e,nextConfig:y,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:T,isRoutePPREnabled:!1,isOnDemandRevalidate:N,revalidateOnlyGenerated:P,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:K});if(!j)return null;if((null==u||null==(s=u.value)?void 0:s.kind)!==g.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(i=u.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});K||t.setHeader("x-nextjs-cache",N?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),A&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let d=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return K&&j||d.delete(v.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||d.get("Cache-Control")||d.set("Cache-Control",(0,x.getCacheControlHeader)(u.cacheControl)),await (0,c.sendResponse)(V,W,new Response(u.value.body,{headers:d,status:u.value.status||200})),null};F&&B?await i(B):(n=$.getActiveScopeSpan(),await $.withPropagatedContext(e.headers,()=>$.trace(d.BaseServerSpan.handleRequest,{spanName:`${D} ${f}`,kind:s.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},i),void 0,!F))}catch(t){if(t instanceof R.NoFallbackError||await C.onRequestError(e,t,{routerKind:"App Router",routePath:O,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:I,isOnDemandRevalidate:N})},!1,q),j)throw t;return await (0,c.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",0,q,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:b,workUnitAsyncStorage:A})},"routeModule",0,C,"serverHooks",0,T,"workAsyncStorage",0,b,"workUnitAsyncStorage",0,A],8901)}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__03c6cit._.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../dash-main-prep/app/api/hub/server-logs/route.ts","../../../../dash-main-prep/node_modules/next/dist/esm/build/templates/app-route.js"],"sourcesContent":["import { requireDashboardAuth, getV3UserToken } from '@/app/lib/dashboard-auth';\n\nconst HUB_URL = process.env.COMMHUB_URL || 'http://127.0.0.1:9200';\n\nasync function hubHeaders(): Promise<Record<string, string>> {\n const userToken = await getV3UserToken();\n const h: Record<string, string> = {};\n if (userToken) h['Authorization'] = `Bearer ${userToken}`;\n return h;\n}\n\n/**\n * Proxy: GET /api/server-logs from CommHub. Newest-first ring buffer of\n * the hub's stdout/stderr lines. Admin-only on the hub side.\n */\nexport async function GET(req: Request) {\n const authFailure = await requireDashboardAuth();\n if (authFailure) return authFailure;\n\n const { searchParams } = new URL(req.url);\n const limit = searchParams.get('limit') || '200';\n const since = searchParams.get('since') || '';\n\n try {\n const params = new URLSearchParams({ limit });\n if (since) params.set('since', since);\n const res = await fetch(\n `${HUB_URL}/api/server-logs?${params.toString()}`,\n { headers: await hubHeaders(), next: { revalidate: 0 } },\n );\n if (!res.ok) {\n return Response.json({ error: `hub ${res.status}` }, { status: res.status });\n }\n return Response.json(await res.json());\n } catch (e: unknown) {\n return Response.json({ error: 'hub unreachable', detail: e instanceof Error ? e.message : String(e) }, { status: 502 });\n }\n}\n","import { AppRouteRouteModule } from \"next/dist/esm/server/route-modules/app-route/module.compiled\";\nimport { RouteKind } from \"next/dist/esm/server/route-kind\";\nimport { patchFetch as _patchFetch } from \"next/dist/esm/server/lib/patch-fetch\";\nimport { addRequestMeta, getRequestMeta, setRequestMeta } from \"next/dist/esm/server/request-meta\";\nimport { getTracer, SpanKind } from \"next/dist/esm/server/lib/trace/tracer\";\nimport { setManifestsSingleton } from \"next/dist/esm/server/app-render/manifests-singleton\";\nimport { normalizeAppPath } from \"next/dist/esm/shared/lib/router/utils/app-paths\";\nimport { NodeNextRequest, NodeNextResponse } from \"next/dist/esm/server/base-http/node\";\nimport { NextRequestAdapter, signalFromNodeResponse } from \"next/dist/esm/server/web/spec-extension/adapters/next-request\";\nimport { BaseServerSpan } from \"next/dist/esm/server/lib/trace/constants\";\nimport { getRevalidateReason } from \"next/dist/esm/server/instrumentation/utils\";\nimport { sendResponse } from \"next/dist/esm/server/send-response\";\nimport { fromNodeOutgoingHttpHeaders, toNodeOutgoingHttpHeaders } from \"next/dist/esm/server/web/utils\";\nimport { getCacheControlHeader } from \"next/dist/esm/server/lib/cache-control\";\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from \"next/dist/esm/lib/constants\";\nimport { NoFallbackError } from \"next/dist/esm/shared/lib/no-fallback-error.external\";\nimport { CachedRouteKind } from \"next/dist/esm/server/response-cache\";\nimport * as userland from \"INNER_APP_ROUTE\";\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\nconst nextConfigOutput = \"\"\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: \"/api/hub/server-logs/route\",\n pathname: \"/api/hub/server-logs\",\n filename: \"route\",\n bundlePath: \"\"\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: \"[project]/dash-main-prep/app/api/hub/server-logs/route.ts\",\n nextConfigOutput,\n // The static import is used for initialization (methods, dynamic, etc.).\n userland: userland,\n // In Turbopack dev mode, also provide a getter that calls require() on every\n // request. This re-reads from devModuleCache so HMR updates are picked up,\n // and the async wrapper unwraps async-module Promises (ESM-only\n // serverExternalPackages) automatically.\n ...process.env.TURBOPACK && process.env.__NEXT_DEV_SERVER ? {\n getUserland: ()=>import(\"INNER_APP_ROUTE\")\n } : {}\n});\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage\n });\n}\nexport { routeModule, workAsyncStorage, workUnitAsyncStorage, serverHooks, patchFetch, };\nexport async function handler(req, res, ctx) {\n if (ctx.requestMeta) {\n setRequestMeta(req, ctx.requestMeta);\n }\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());\n }\n let srcPage = \"/api/hub/server-logs/route\";\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/';\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/';\n }\n const multiZoneDraftMode = process.env.__NEXT_MULTI_ZONE_DRAFT_MODE;\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode\n });\n if (!prepareResult) {\n res.statusCode = 400;\n res.end('Bad Request');\n ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());\n return null;\n }\n const { buildId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest } = prepareResult;\n const normalizedSrcPage = normalizeAppPath(srcPage);\n let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || prerenderManifest.routes[resolvedPathname]);\n const render404 = async ()=>{\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext == null ? void 0 : routerServerContext.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false);\n } else {\n res.end('This page could not be found');\n }\n return null;\n };\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname]);\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.adapterPath) {\n return await render404();\n }\n throw new NoFallbackError();\n }\n }\n }\n let cacheKey = null;\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname;\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey;\n }\n const supportsDynamicResponse = // If we're in development, we always support dynamic HTML\n routeModule.isDev === true || // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr;\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse;\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest\n });\n }\n const method = req.method || 'GET';\n const tracer = getTracer();\n const activeSpan = tracer.getActiveScopeSpan();\n const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);\n const isMinimalMode = Boolean(getRequestMeta(req, 'minimalMode'));\n const incrementalCache = getRequestMeta(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, prerenderManifest, isMinimalMode);\n incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();\n globalThis.__incrementalCache = incrementalCache;\n const context = {\n params,\n previewProps: prerenderManifest.preview,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts)\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache,\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb)=>{\n res.on('close', cb);\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, routerServerContext)\n },\n sharedContext: {\n buildId\n }\n };\n const nodeNextReq = new NodeNextRequest(req);\n const nodeNextRes = new NodeNextResponse(res);\n const nextReq = NextRequestAdapter.fromNodeNextRequest(nodeNextReq, signalFromNodeResponse(res));\n try {\n let parentSpan;\n const invokeRouteModule = async (span)=>{\n return routeModule.handle(nextReq, context).finally(()=>{\n if (!span) return;\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false\n });\n const rootSpanAttributes = tracer.getRootSpanAttributes();\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return;\n }\n if (rootSpanAttributes.get('next.span_type') !== BaseServerSpan.handleRequest) {\n console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);\n return;\n }\n const route = rootSpanAttributes.get('next.route');\n if (route) {\n const name = `${method} ${route}`;\n span.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name\n });\n span.updateName(name);\n // Propagate http.route to the parent span if one exists (e.g.\n // a platform-created HTTP span in adapter deployments).\n if (parentSpan && parentSpan !== span) {\n parentSpan.setAttribute('http.route', route);\n parentSpan.updateName(name);\n }\n } else {\n span.updateName(`${method} ${srcPage}`);\n }\n });\n };\n const handleResponse = async (currentSpan)=>{\n var _cacheEntry_value;\n const responseGenerator = async ({ previousCacheEntry })=>{\n try {\n if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {\n res.statusCode = 404;\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED');\n res.end('This page could not be found');\n return null;\n }\n const response = await invokeRouteModule(currentSpan);\n req.fetchMetrics = context.renderOpts.fetchMetrics;\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil;\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil);\n pendingWaitUntil = undefined;\n }\n }\n const cacheTags = context.renderOpts.collectedTags;\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob();\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers);\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags;\n }\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type;\n }\n const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;\n const expire = typeof context.renderOpts.collectedExpire === 'undefined' || context.renderOpts.collectedExpire >= INFINITE_CACHE ? undefined : context.renderOpts.collectedExpire;\n // Create the cache entry for the response.\n const cacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers\n },\n cacheControl: {\n revalidate,\n expire\n }\n };\n return cacheEntry;\n } else {\n // send response without caching if not ISR\n await sendResponse(nodeNextReq, nodeNextRes, response, context.renderOpts.pendingWaitUntil);\n return null;\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n throw err;\n }\n };\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode\n });\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null;\n }\n if ((cacheEntry == null ? void 0 : (_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== CachedRouteKind.APP_ROUTE) {\n var _cacheEntry_value1;\n throw Object.defineProperty(new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`), \"__NEXT_ERROR_CODE\", {\n value: \"E701\",\n enumerable: false,\n configurable: true\n });\n }\n if (!isMinimalMode) {\n res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');\n }\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');\n }\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers);\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER);\n }\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {\n headers.set('Cache-Control', getCacheControlHeader(cacheEntry.cacheControl));\n }\n await sendResponse(nodeNextReq, nodeNextRes, // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200\n }));\n return null;\n };\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (isWrappedByNextServer && activeSpan) {\n await handleResponse(activeSpan);\n } else {\n parentSpan = tracer.getActiveScopeSpan();\n await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(BaseServerSpan.handleRequest, {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url\n }\n }, handleResponse), undefined, !isWrappedByNextServer);\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n // rethrow so that we can handle serving error page\n // If this is during static generation, throw the error again.\n if (isIsr) throw err;\n // Otherwise, send a 500 response.\n await sendResponse(nodeNextReq, nodeNextRes, new Response(null, {\n status: 500\n }));\n return null;\n }\n}\n\n//# sourceMappingURL=app-route.js.map\n"],"names":["HUB_URL","process","env","COMMHUB_URL","hubHeaders","userToken","h","req","GET","authFailure","searchParams","URL","url","limit","get","since","params","URLSearchParams","set","res","fetch","toString","headers","next","revalidate","ok","Response","json","error","status","e","detail","Error","message","String"],"mappings":"ujCCAA,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,MACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACAO,EAAAA,EAAAA,CAAAA,CAAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,MACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,MACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,CAAA,CAAA,OAAA,IAAA,EAAA,EAAA,CAAA,CAAA,ODhBA,EAAA,EAAA,CAAA,CAAA,OAEA,IAAMP,EAAUC,QAAQC,GAAG,CAACC,WAAW,EAAI,wBAE3C,eAAeC,IACb,IAAMC,EAAY,MAAM,CAAA,EAAA,EAAA,cAAA,AAAc,IAChCC,EAA4B,CAAC,EAEnC,OADID,IAAWC,CAAC,CAAC,aAAgB,CAAG,CAAC,OAAO,EAAED,EAAAA,CAAAA,AAAW,EAClDC,CAC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C,EAAW,YAAY,GAE9E,MAAM,CAAA,EAAA,EAAA,YAAA,AAAY,EAAC,EAAa,EAChC,IAAI,SAAS,EAAW,KAAK,CAAC,IAAI,CAAE,CAChC,UACA,OAAQ,EAAW,KAAK,CAAC,MAAM,EAAI,GACvC,IACO,IACX,EAGI,GAAyB,EACzB,MAAM,EAAe,EADgB,EAGrC,EAAa,EAAO,kBAAkB,GACtC,MAAM,EAAO,qBAAqB,CAAC,EAAI,OAAO,CAAE,IAAI,EAAO,KAAK,CAAC,EAAA,cAAc,CAAC,aAAa,CAAE,CACvF,SAAU,CAAA,EAAG,EAAO,CAAC,EAAE,EAAA,CAAS,CAChC,KAAM,EAAA,QAAQ,CAAC,MAAM,CACrB,WAAY,CACR,cAAe,EACf,cAAe,EAAI,GAAG,AAC1B,CACJ,EAAG,GAAiB,OAAW,CAAC,GAE5C,CAAE,MAAO,EAAK,CAeV,GAdM,aAAe,EAAA,eAAe,EAEhC,CAFmC,KAE7B,EAAY,cAAc,CAAC,EAAK,EAAK,CACvC,WAAY,aACZ,UAAW,EACX,UAAW,QACX,iBAAkB,CAAA,EAAA,EAAA,mBAAA,AAAmB,EAAC,oBAClC,uBACA,CACJ,EACJ,EATmB,CAShB,EAAY,GAIf,EAAO,MAAM,EAKjB,OAHA,MAAM,CAAA,EAAA,EAAA,YAAY,AAAZ,EAAa,EAAa,EAAa,IAAI,SAAS,KAAM,CAC5D,OAAQ,GACZ,IACO,IACX,CACJ,mCA3TA,SAAS,EACL,MAAO,CAAA,EAAA,EAAA,UAAW,AAAX,EAAY,kBACf,uBACA,CACJ,EACJ","ignoreList":[1]}
@@ -0,0 +1,3 @@
1
+ module.exports=[50227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},87947,e=>{"use strict";var t=e.i(28969),r=e.i(34913),a=e.i(72246),n=e.i(4840),o=e.i(70086),s=e.i(96110),i=e.i(49352),l=e.i(94927),d=e.i(76463),u=e.i(32645),p=e.i(89504),c=e.i(4410),h=e.i(84496),x=e.i(4013),R=e.i(91537),v=e.i(93695);e.i(37367);var g=e.i(47471),m=e.i(29160),f=e.i(42515);async function w(){let e=m.NextResponse.json({ok:!0});return e.cookies.set(f.DASHBOARD_SESSION_COOKIE,"",{httpOnly:!0,sameSite:"lax",path:"/",maxAge:0}),e}e.s(["POST",0,w],64553);var E=e.i(64553);let C=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/auth/logout/route",pathname:"/api/auth/logout",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/dash-main-prep/app/api/auth/logout/route.ts",nextConfigOutput:"",userland:E,...{}}),{workAsyncStorage:y,workUnitAsyncStorage:A,serverHooks:b}=C;async function S(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),C.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let m="/api/auth/logout/route";m=m.replace(/\/index$/,"")||"/";let f=await C.prepare(e,t,{srcPage:m,multiZoneDraftMode:!1});if(!f)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:w,params:E,nextConfig:y,parsedUrl:A,isDraftMode:b,prerenderManifest:S,routerServerContext:N,isOnDemandRevalidate:O,revalidateOnlyGenerated:T,resolvedPathname:q,clientReferenceManifest:P,serverActionsManifest:_}=f,k=(0,i.normalizeAppPath)(m),j=!!(S.dynamicRoutes[k]||S.routes[q]),H=async()=>((null==N?void 0:N.render404)?await N.render404(e,t,A,!1):t.end("This page could not be found"),null);if(j&&!b){let e=!!S.routes[q],t=S.dynamicRoutes[k];if(t&&!1===t.fallback&&!e){if(y.adapterPath)return await H();throw new v.NoFallbackError}}let I=null;!j||C.isDev||b||(I="/index"===(I=q)?"/":I);let U=!0===C.isDev||!j,D=j&&!U;_&&P&&(0,s.setManifestsSingleton)({page:m,clientReferenceManifest:P,serverActionsManifest:_});let M=e.method||"GET",K=(0,o.getTracer)(),$=K.getActiveScopeSpan(),F=!!(null==N?void 0:N.isWrappedByNextServer),B=!!(0,n.getRequestMeta)(e,"minimalMode"),L=(0,n.getRequestMeta)(e,"incrementalCache")||await C.getIncrementalCache(e,y,S,B);null==L||L.resetRequestCache(),globalThis.__incrementalCache=L;let G={params:E,previewProps:S.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts},cacheComponents:!!y.cacheComponents,supportsDynamicResponse:U,incrementalCache:L,cacheLifeProfiles:y.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>C.onRequestError(e,t,a,n,N)},sharedContext:{buildId:w}},V=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),X=d.NextRequestAdapter.fromNodeNextRequest(V,(0,d.signalFromNodeResponse)(t));try{let n,s=async e=>C.handle(X,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=K.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${M} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${M} ${m}`)}),i=async n=>{var o,i;let l=async({previousCacheEntry:r})=>{try{if(!B&&O&&T&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let o=await s(n);e.fetchMetrics=G.renderOpts.fetchMetrics;let i=G.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let l=G.renderOpts.collectedTags;if(!j)return await (0,c.sendResponse)(V,W,o,G.renderOpts.pendingWaitUntil),null;{let e=await o.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(o.headers);l&&(t[R.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=R.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,a=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=R.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:g.CachedRouteKind.APP_ROUTE,status:o.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await C.onRequestError(e,t,{routerKind:"App Router",routePath:m,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:O})},!1,N),t}},d=await C.handleResponse({req:e,nextConfig:y,cacheKey:I,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:S,isRoutePPREnabled:!1,isOnDemandRevalidate:O,revalidateOnlyGenerated:T,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:B});if(!j)return null;if((null==d||null==(o=d.value)?void 0:o.kind)!==g.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});B||t.setHeader("x-nextjs-cache",O?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),b&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return B&&j||u.delete(R.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,x.getCacheControlHeader)(d.cacheControl)),await (0,c.sendResponse)(V,W,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};F&&$?await i($):(n=K.getActiveScopeSpan(),await K.withPropagatedContext(e.headers,()=>K.trace(u.BaseServerSpan.handleRequest,{spanName:`${M} ${m}`,kind:o.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},i),void 0,!F))}catch(t){if(t instanceof v.NoFallbackError||await C.onRequestError(e,t,{routerKind:"App Router",routePath:k,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:O})},!1,N),j)throw t;return await (0,c.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",0,S,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:y,workUnitAsyncStorage:A})},"routeModule",0,C,"serverHooks",0,b,"workAsyncStorage",0,y,"workUnitAsyncStorage",0,A],87947)}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__04a200m._.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../p248-dash-release/app/api/auth/login/route.ts","../../../../p248-dash-release/app/lib/rate-limit.ts","../../../../p248-dash-release/node_modules/next/dist/esm/build/templates/app-route.js"],"sourcesContent":["import { NextResponse } from 'next/server';\nimport {\n createDashboardSessionValue,\n DASHBOARD_SESSION_COOKIE,\n verifyDashboardPassword,\n} from '@/app/lib/dashboard-auth';\nimport { checkRateLimit } from '@/app/lib/rate-limit';\n\nexport async function POST(req: Request) {\n const ip = req.headers.get('x-forwarded-for')?.split(',')[0]?.trim()\n || req.headers.get('x-real-ip')\n || 'unknown';\n\n const { allowed, retryAfterMs } = checkRateLimit(ip);\n if (!allowed) {\n return Response.json(\n { error: 'Too many login attempts. Try again later.' },\n { status: 429, headers: { 'Retry-After': String(Math.ceil(retryAfterMs / 1000)) } },\n );\n }\n\n const contentType = req.headers.get('content-type') || '';\n const password = contentType.includes('application/json')\n ? String((await req.json()).password || '')\n : String((await req.formData()).get('password') || '');\n\n if (!await verifyDashboardPassword(password)) {\n return Response.json({ error: 'invalid password' }, { status: 401 });\n }\n\n const sessionValue = await createDashboardSessionValue(password);\n const response = NextResponse.json({ ok: true });\n const proto = req.headers.get('x-forwarded-proto') || new URL(req.url).protocol.replace(':', '');\n const isHttps = proto === 'https';\n response.cookies.set(DASHBOARD_SESSION_COOKIE, sessionValue, {\n httpOnly: true,\n secure: isHttps && process.env.COOKIE_INSECURE !== '1',\n sameSite: 'lax',\n path: '/',\n maxAge: 60 * 60 * 12,\n });\n return response;\n}\n","/**\n * Simple in-memory rate limiter for login attempts.\n * Tracks by IP, allows `max` attempts per `windowMs`.\n */\nconst attempts = new Map<string, { count: number; resetAt: number }>();\n\nconst WINDOW_MS = 15 * 60 * 1000; // 15 minutes\nconst MAX_ATTEMPTS = 10;\n\nexport function checkRateLimit(ip: string): { allowed: boolean; remaining: number; retryAfterMs: number } {\n const now = Date.now();\n const entry = attempts.get(ip);\n\n if (!entry || now > entry.resetAt) {\n attempts.set(ip, { count: 1, resetAt: now + WINDOW_MS });\n return { allowed: true, remaining: MAX_ATTEMPTS - 1, retryAfterMs: 0 };\n }\n\n if (entry.count >= MAX_ATTEMPTS) {\n return { allowed: false, remaining: 0, retryAfterMs: entry.resetAt - now };\n }\n\n entry.count++;\n return { allowed: true, remaining: MAX_ATTEMPTS - entry.count, retryAfterMs: 0 };\n}\n\n// Cleanup stale entries every 5 minutes\nif (typeof setInterval !== 'undefined') {\n setInterval(() => {\n const now = Date.now();\n for (const [ip, entry] of attempts) {\n if (now > entry.resetAt) attempts.delete(ip);\n }\n }, 5 * 60 * 1000);\n}\n","import { AppRouteRouteModule } from \"next/dist/esm/server/route-modules/app-route/module.compiled\";\nimport { RouteKind } from \"next/dist/esm/server/route-kind\";\nimport { patchFetch as _patchFetch } from \"next/dist/esm/server/lib/patch-fetch\";\nimport { addRequestMeta, getRequestMeta, setRequestMeta } from \"next/dist/esm/server/request-meta\";\nimport { getTracer, SpanKind } from \"next/dist/esm/server/lib/trace/tracer\";\nimport { setManifestsSingleton } from \"next/dist/esm/server/app-render/manifests-singleton\";\nimport { normalizeAppPath } from \"next/dist/esm/shared/lib/router/utils/app-paths\";\nimport { NodeNextRequest, NodeNextResponse } from \"next/dist/esm/server/base-http/node\";\nimport { NextRequestAdapter, signalFromNodeResponse } from \"next/dist/esm/server/web/spec-extension/adapters/next-request\";\nimport { BaseServerSpan } from \"next/dist/esm/server/lib/trace/constants\";\nimport { getRevalidateReason } from \"next/dist/esm/server/instrumentation/utils\";\nimport { sendResponse } from \"next/dist/esm/server/send-response\";\nimport { fromNodeOutgoingHttpHeaders, toNodeOutgoingHttpHeaders } from \"next/dist/esm/server/web/utils\";\nimport { getCacheControlHeader } from \"next/dist/esm/server/lib/cache-control\";\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from \"next/dist/esm/lib/constants\";\nimport { NoFallbackError } from \"next/dist/esm/shared/lib/no-fallback-error.external\";\nimport { CachedRouteKind } from \"next/dist/esm/server/response-cache\";\nimport * as userland from \"INNER_APP_ROUTE\";\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\nconst nextConfigOutput = \"\"\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: \"/api/auth/login/route\",\n pathname: \"/api/auth/login\",\n filename: \"route\",\n bundlePath: \"\"\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: \"[project]/p248-dash-release/app/api/auth/login/route.ts\",\n nextConfigOutput,\n // The static import is used for initialization (methods, dynamic, etc.).\n userland: userland,\n // In Turbopack dev mode, also provide a getter that calls require() on every\n // request. This re-reads from devModuleCache so HMR updates are picked up,\n // and the async wrapper unwraps async-module Promises (ESM-only\n // serverExternalPackages) automatically.\n ...process.env.TURBOPACK && process.env.__NEXT_DEV_SERVER ? {\n getUserland: ()=>import(\"INNER_APP_ROUTE\")\n } : {}\n});\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage\n });\n}\nexport { routeModule, workAsyncStorage, workUnitAsyncStorage, serverHooks, patchFetch, };\nexport async function handler(req, res, ctx) {\n if (ctx.requestMeta) {\n setRequestMeta(req, ctx.requestMeta);\n }\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());\n }\n let srcPage = \"/api/auth/login/route\";\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/';\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/';\n }\n const multiZoneDraftMode = process.env.__NEXT_MULTI_ZONE_DRAFT_MODE;\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode\n });\n if (!prepareResult) {\n res.statusCode = 400;\n res.end('Bad Request');\n ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());\n return null;\n }\n const { buildId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest } = prepareResult;\n const normalizedSrcPage = normalizeAppPath(srcPage);\n let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || prerenderManifest.routes[resolvedPathname]);\n const render404 = async ()=>{\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext == null ? void 0 : routerServerContext.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false);\n } else {\n res.end('This page could not be found');\n }\n return null;\n };\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname]);\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.adapterPath) {\n return await render404();\n }\n throw new NoFallbackError();\n }\n }\n }\n let cacheKey = null;\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname;\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey;\n }\n const supportsDynamicResponse = // If we're in development, we always support dynamic HTML\n routeModule.isDev === true || // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr;\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse;\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest\n });\n }\n const method = req.method || 'GET';\n const tracer = getTracer();\n const activeSpan = tracer.getActiveScopeSpan();\n const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);\n const isMinimalMode = Boolean(getRequestMeta(req, 'minimalMode'));\n const incrementalCache = getRequestMeta(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, prerenderManifest, isMinimalMode);\n incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();\n globalThis.__incrementalCache = incrementalCache;\n const context = {\n params,\n previewProps: prerenderManifest.preview,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts)\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache,\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb)=>{\n res.on('close', cb);\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, routerServerContext)\n },\n sharedContext: {\n buildId\n }\n };\n const nodeNextReq = new NodeNextRequest(req);\n const nodeNextRes = new NodeNextResponse(res);\n const nextReq = NextRequestAdapter.fromNodeNextRequest(nodeNextReq, signalFromNodeResponse(res));\n try {\n let parentSpan;\n const invokeRouteModule = async (span)=>{\n return routeModule.handle(nextReq, context).finally(()=>{\n if (!span) return;\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false\n });\n const rootSpanAttributes = tracer.getRootSpanAttributes();\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return;\n }\n if (rootSpanAttributes.get('next.span_type') !== BaseServerSpan.handleRequest) {\n console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);\n return;\n }\n const route = rootSpanAttributes.get('next.route');\n if (route) {\n const name = `${method} ${route}`;\n span.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name\n });\n span.updateName(name);\n // Propagate http.route to the parent span if one exists (e.g.\n // a platform-created HTTP span in adapter deployments).\n if (parentSpan && parentSpan !== span) {\n parentSpan.setAttribute('http.route', route);\n parentSpan.updateName(name);\n }\n } else {\n span.updateName(`${method} ${srcPage}`);\n }\n });\n };\n const handleResponse = async (currentSpan)=>{\n var _cacheEntry_value;\n const responseGenerator = async ({ previousCacheEntry })=>{\n try {\n if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {\n res.statusCode = 404;\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED');\n res.end('This page could not be found');\n return null;\n }\n const response = await invokeRouteModule(currentSpan);\n req.fetchMetrics = context.renderOpts.fetchMetrics;\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil;\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil);\n pendingWaitUntil = undefined;\n }\n }\n const cacheTags = context.renderOpts.collectedTags;\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob();\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers);\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags;\n }\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type;\n }\n const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;\n const expire = typeof context.renderOpts.collectedExpire === 'undefined' || context.renderOpts.collectedExpire >= INFINITE_CACHE ? undefined : context.renderOpts.collectedExpire;\n // Create the cache entry for the response.\n const cacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers\n },\n cacheControl: {\n revalidate,\n expire\n }\n };\n return cacheEntry;\n } else {\n // send response without caching if not ISR\n await sendResponse(nodeNextReq, nodeNextRes, response, context.renderOpts.pendingWaitUntil);\n return null;\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n throw err;\n }\n };\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode\n });\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null;\n }\n if ((cacheEntry == null ? void 0 : (_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== CachedRouteKind.APP_ROUTE) {\n var _cacheEntry_value1;\n throw Object.defineProperty(new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`), \"__NEXT_ERROR_CODE\", {\n value: \"E701\",\n enumerable: false,\n configurable: true\n });\n }\n if (!isMinimalMode) {\n res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');\n }\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');\n }\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers);\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER);\n }\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {\n headers.set('Cache-Control', getCacheControlHeader(cacheEntry.cacheControl));\n }\n await sendResponse(nodeNextReq, nodeNextRes, // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200\n }));\n return null;\n };\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (isWrappedByNextServer && activeSpan) {\n await handleResponse(activeSpan);\n } else {\n parentSpan = tracer.getActiveScopeSpan();\n await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(BaseServerSpan.handleRequest, {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url\n }\n }, handleResponse), undefined, !isWrappedByNextServer);\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n // rethrow so that we can handle serving error page\n // If this is during static generation, throw the error again.\n if (isIsr) throw err;\n // Otherwise, send a 500 response.\n await sendResponse(nodeNextReq, nodeNextRes, new Response(null, {\n status: 500\n }));\n return null;\n }\n}\n\n//# sourceMappingURL=app-route.js.map\n"],"names":["MAX_ATTEMPTS","attempts","Map","now","WINDOW_MS","checkRateLimit","ip","Date","entry","get","resetAt","set","count","allowed","remaining","retryAfterMs","setInterval","delete"],"mappings":"ujCEAA,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACAA,EAAAA,EAAAA,CAAAA,CAAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACAG,EAAAA,EAAAA,CAAAA,CAAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,MACA,EAAA,EAAA,CAAA,CAAA,OACA,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AG,CAAC,gBAAiB,CAAA,EAAA,EAAA,qBAAA,AAAqB,EAAC,EAAW,YAAY,GAE9E,MAAM,CAAA,EAAA,EAAA,YAAA,AAAY,EAAC,EAAa,EAChC,IAAI,SAAS,EAAW,KAAK,CAAC,IAAI,CAAE,SAChC,EACA,OAAQ,EAAW,KAAK,CAAC,MAAM,EAAI,GACvC,IACO,IACX,EAGI,GAAyB,EACzB,MAAM,EAAe,EADgB,EAGrC,EAAa,EAAO,kBAAkB,GACtC,MAAM,EAAO,qBAAqB,CAAC,EAAI,OAAO,CAAE,IAAI,EAAO,KAAK,CAAC,EAAA,cAAc,CAAC,aAAa,CAAE,CACvF,SAAU,CAAA,EAAG,EAAO,CAAC,EAAE,EAAA,CAAS,CAChC,KAAM,EAAA,QAAQ,CAAC,MAAM,CACrB,WAAY,CACR,cAAe,EACf,cAAe,EAAI,GAAG,AAC1B,CACJ,EAAG,QAAiB,EAAW,CAAC,GAE5C,CAAE,MAAO,EAAK,CAeV,GAdM,aAAe,EAAA,eAAe,EAEhC,CAFmC,KAE7B,EAAY,cAAc,CAAC,EAAK,EAAK,CACvC,WAAY,aACZ,UAAW,EACX,UAAW,QACX,iBAAkB,CAAA,EAAA,EAAA,mBAAA,AAAmB,EAAC,oBAClC,EACA,sBACJ,EACJ,GAAG,AATgB,EASJ,GAIf,EAAO,MAAM,EAKjB,OAHA,MAAM,CAAA,EAAA,EAAA,YAAA,AAAY,EAAC,EAAa,EAAa,IAAI,SAAS,KAAM,CAC5D,OAAQ,GACZ,IACO,IACX,CACJ,mCA3TA,SAAS,EACL,MAAO,CAAA,EAAA,EAAA,UAAW,AAAX,EAAY,kBACf,uBACA,CACJ,EACJ","ignoreList":[2]}
1
+ {"version":3,"sources":["../../../../dash-main-prep/node_modules/next/dist/esm/build/templates/app-route.js","../../../../dash-main-prep/app/api/auth/logout/route.ts"],"sourcesContent":["import { AppRouteRouteModule } from \"next/dist/esm/server/route-modules/app-route/module.compiled\";\nimport { RouteKind } from \"next/dist/esm/server/route-kind\";\nimport { patchFetch as _patchFetch } from \"next/dist/esm/server/lib/patch-fetch\";\nimport { addRequestMeta, getRequestMeta, setRequestMeta } from \"next/dist/esm/server/request-meta\";\nimport { getTracer, SpanKind } from \"next/dist/esm/server/lib/trace/tracer\";\nimport { setManifestsSingleton } from \"next/dist/esm/server/app-render/manifests-singleton\";\nimport { normalizeAppPath } from \"next/dist/esm/shared/lib/router/utils/app-paths\";\nimport { NodeNextRequest, NodeNextResponse } from \"next/dist/esm/server/base-http/node\";\nimport { NextRequestAdapter, signalFromNodeResponse } from \"next/dist/esm/server/web/spec-extension/adapters/next-request\";\nimport { BaseServerSpan } from \"next/dist/esm/server/lib/trace/constants\";\nimport { getRevalidateReason } from \"next/dist/esm/server/instrumentation/utils\";\nimport { sendResponse } from \"next/dist/esm/server/send-response\";\nimport { fromNodeOutgoingHttpHeaders, toNodeOutgoingHttpHeaders } from \"next/dist/esm/server/web/utils\";\nimport { getCacheControlHeader } from \"next/dist/esm/server/lib/cache-control\";\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from \"next/dist/esm/lib/constants\";\nimport { NoFallbackError } from \"next/dist/esm/shared/lib/no-fallback-error.external\";\nimport { CachedRouteKind } from \"next/dist/esm/server/response-cache\";\nimport * as userland from \"INNER_APP_ROUTE\";\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\nconst nextConfigOutput = \"\"\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: \"/api/auth/logout/route\",\n pathname: \"/api/auth/logout\",\n filename: \"route\",\n bundlePath: \"\"\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: \"[project]/dash-main-prep/app/api/auth/logout/route.ts\",\n nextConfigOutput,\n // The static import is used for initialization (methods, dynamic, etc.).\n userland: userland,\n // In Turbopack dev mode, also provide a getter that calls require() on every\n // request. This re-reads from devModuleCache so HMR updates are picked up,\n // and the async wrapper unwraps async-module Promises (ESM-only\n // serverExternalPackages) automatically.\n ...process.env.TURBOPACK && process.env.__NEXT_DEV_SERVER ? {\n getUserland: ()=>import(\"INNER_APP_ROUTE\")\n } : {}\n});\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage\n });\n}\nexport { routeModule, workAsyncStorage, workUnitAsyncStorage, serverHooks, patchFetch, };\nexport async function handler(req, res, ctx) {\n if (ctx.requestMeta) {\n setRequestMeta(req, ctx.requestMeta);\n }\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());\n }\n let srcPage = \"/api/auth/logout/route\";\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/';\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/';\n }\n const multiZoneDraftMode = process.env.__NEXT_MULTI_ZONE_DRAFT_MODE;\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode\n });\n if (!prepareResult) {\n res.statusCode = 400;\n res.end('Bad Request');\n ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());\n return null;\n }\n const { buildId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest } = prepareResult;\n const normalizedSrcPage = normalizeAppPath(srcPage);\n let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || prerenderManifest.routes[resolvedPathname]);\n const render404 = async ()=>{\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext == null ? void 0 : routerServerContext.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false);\n } else {\n res.end('This page could not be found');\n }\n return null;\n };\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname]);\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.adapterPath) {\n return await render404();\n }\n throw new NoFallbackError();\n }\n }\n }\n let cacheKey = null;\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname;\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey;\n }\n const supportsDynamicResponse = // If we're in development, we always support dynamic HTML\n routeModule.isDev === true || // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr;\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse;\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest\n });\n }\n const method = req.method || 'GET';\n const tracer = getTracer();\n const activeSpan = tracer.getActiveScopeSpan();\n const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);\n const isMinimalMode = Boolean(getRequestMeta(req, 'minimalMode'));\n const incrementalCache = getRequestMeta(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, prerenderManifest, isMinimalMode);\n incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();\n globalThis.__incrementalCache = incrementalCache;\n const context = {\n params,\n previewProps: prerenderManifest.preview,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts)\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache,\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb)=>{\n res.on('close', cb);\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, routerServerContext)\n },\n sharedContext: {\n buildId\n }\n };\n const nodeNextReq = new NodeNextRequest(req);\n const nodeNextRes = new NodeNextResponse(res);\n const nextReq = NextRequestAdapter.fromNodeNextRequest(nodeNextReq, signalFromNodeResponse(res));\n try {\n let parentSpan;\n const invokeRouteModule = async (span)=>{\n return routeModule.handle(nextReq, context).finally(()=>{\n if (!span) return;\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false\n });\n const rootSpanAttributes = tracer.getRootSpanAttributes();\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return;\n }\n if (rootSpanAttributes.get('next.span_type') !== BaseServerSpan.handleRequest) {\n console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);\n return;\n }\n const route = rootSpanAttributes.get('next.route');\n if (route) {\n const name = `${method} ${route}`;\n span.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name\n });\n span.updateName(name);\n // Propagate http.route to the parent span if one exists (e.g.\n // a platform-created HTTP span in adapter deployments).\n if (parentSpan && parentSpan !== span) {\n parentSpan.setAttribute('http.route', route);\n parentSpan.updateName(name);\n }\n } else {\n span.updateName(`${method} ${srcPage}`);\n }\n });\n };\n const handleResponse = async (currentSpan)=>{\n var _cacheEntry_value;\n const responseGenerator = async ({ previousCacheEntry })=>{\n try {\n if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {\n res.statusCode = 404;\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED');\n res.end('This page could not be found');\n return null;\n }\n const response = await invokeRouteModule(currentSpan);\n req.fetchMetrics = context.renderOpts.fetchMetrics;\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil;\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil);\n pendingWaitUntil = undefined;\n }\n }\n const cacheTags = context.renderOpts.collectedTags;\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob();\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers);\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags;\n }\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type;\n }\n const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;\n const expire = typeof context.renderOpts.collectedExpire === 'undefined' || context.renderOpts.collectedExpire >= INFINITE_CACHE ? undefined : context.renderOpts.collectedExpire;\n // Create the cache entry for the response.\n const cacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers\n },\n cacheControl: {\n revalidate,\n expire\n }\n };\n return cacheEntry;\n } else {\n // send response without caching if not ISR\n await sendResponse(nodeNextReq, nodeNextRes, response, context.renderOpts.pendingWaitUntil);\n return null;\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n throw err;\n }\n };\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode\n });\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null;\n }\n if ((cacheEntry == null ? void 0 : (_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== CachedRouteKind.APP_ROUTE) {\n var _cacheEntry_value1;\n throw Object.defineProperty(new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`), \"__NEXT_ERROR_CODE\", {\n value: \"E701\",\n enumerable: false,\n configurable: true\n });\n }\n if (!isMinimalMode) {\n res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');\n }\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');\n }\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers);\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER);\n }\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {\n headers.set('Cache-Control', getCacheControlHeader(cacheEntry.cacheControl));\n }\n await sendResponse(nodeNextReq, nodeNextRes, // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200\n }));\n return null;\n };\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (isWrappedByNextServer && activeSpan) {\n await handleResponse(activeSpan);\n } else {\n parentSpan = tracer.getActiveScopeSpan();\n await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(BaseServerSpan.handleRequest, {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url\n }\n }, handleResponse), undefined, !isWrappedByNextServer);\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n // rethrow so that we can handle serving error page\n // If this is during static generation, throw the error again.\n if (isIsr) throw err;\n // Otherwise, send a 500 response.\n await sendResponse(nodeNextReq, nodeNextRes, new Response(null, {\n status: 500\n }));\n return null;\n }\n}\n\n//# sourceMappingURL=app-route.js.map\n","import { NextResponse } from 'next/server';\nimport { DASHBOARD_SESSION_COOKIE } from '@/app/lib/dashboard-auth';\n\nexport async function POST() {\n const response = NextResponse.json({ ok: true });\n response.cookies.set(DASHBOARD_SESSION_COOKIE, '', {\n httpOnly: true,\n sameSite: 'lax',\n path: '/',\n maxAge: 0,\n });\n return response;\n}\n"],"names":["POST","response","json","ok","cookies","set","httpOnly","sameSite","path","maxAge"],"mappings":"wjCAAA,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,MACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,MACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,MACA,EAAA,EAAA,CA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AK,CAeV,GAdM,aAAe,EAAA,eAAe,EAEhC,CAFmC,KAE7B,EAAY,cAAc,CAAC,EAAK,EAAK,CACvC,WAAY,aACZ,UAAW,EACX,UAAW,QACX,iBAAkB,CAAA,EAAA,EAAA,mBAAA,AAAmB,EAAC,oBAClC,uBACA,CACJ,EACJ,GAAG,AATgB,EASJ,GAIf,EAAO,MAAM,EAKjB,OAHA,MAAM,CAAA,EAAA,EAAA,YAAA,AAAY,EAAC,EAAa,EAAa,IAAI,SAAS,KAAM,CAC5D,OAAQ,GACZ,IACO,IACX,CACJ,mCA3TA,SAAS,EACL,MAAO,CAAA,EAAA,EAAA,UAAA,AAAW,EAAC,kBACf,uBACA,CACJ,EACJ","ignoreList":[0]}
@@ -0,0 +1,3 @@
1
+ module.exports=[14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},50227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54799,(e,t,r)=>{t.exports=e.x("crypto",()=>require("crypto"))},24868,(e,t,r)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},19765,e=>{"use strict";var t=e.i(28969),r=e.i(34913),a=e.i(72246),n=e.i(4840),s=e.i(70086),i=e.i(96110),o=e.i(49352),l=e.i(94927),u=e.i(76463),p=e.i(32645),d=e.i(89504),c=e.i(4410),h=e.i(84496),x=e.i(4013),f=e.i(91537),g=e.i(93695);e.i(37367);var m=e.i(47471),R=e.i(42515),v=e.i(54799),w=e.i(24868),y=e.i(14747);let C="/tmp/agent-network-dashboard-uploads";async function E(e){let t=await (0,R.requireDashboardAuth)();if(t)return t;try{var r,a,n;let t,s=(await e.formData()).get("file");if(!(s instanceof File))return Response.json({error:"missing file"},{status:400});if(r=s.type,a=s.name,!(r.startsWith("image/")||/\.(png|jpe?g|gif|webp)$/i.test(a)))return Response.json({error:"only image uploads are supported"},{status:400});if(s.size>0xc00000)return Response.json({error:"image is too large",max_bytes:0xc00000},{status:413});await (0,w.mkdir)(C,{recursive:!0});let i=(n=s.name,t=y.default.extname(n).toLowerCase().replace(/[^a-z0-9.]/g,""),`${Date.now()}-${(0,v.randomUUID)()}${t||".bin"}`),o=y.default.join(C,i),l=Buffer.from(await s.arrayBuffer());return await (0,w.writeFile)(o,l),Response.json({ok:!0,filename:i,path:o,url:`/api/hub/upload?file=${encodeURIComponent(i)}`,mime:s.type||"application/octet-stream",size:s.size})}catch(e){return Response.json({error:"upload failed",detail:e instanceof Error?e.message:String(e)},{status:500})}}async function b(e){let t=await (0,R.requireDashboardAuth)();if(t)return t;let r=new URL(e.url).searchParams.get("file")||"";if(!/^[0-9]+-[a-f0-9-]+\.[a-z0-9]+$/i.test(r))return Response.json({error:"invalid file"},{status:400});try{let e=y.default.join(C,r),t=await (0,w.readFile)(e),a=y.default.extname(r).toLowerCase();return new Response(t,{headers:{"Content-Type":".png"===a?"image/png":".jpg"===a||".jpeg"===a?"image/jpeg":".gif"===a?"image/gif":".webp"===a?"image/webp":"application/octet-stream","Cache-Control":"private, max-age=86400"}})}catch{return Response.json({error:"not found"},{status:404})}}e.s(["GET",0,b,"POST",0,E],1647);var A=e.i(1647);let j=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/hub/upload/route",pathname:"/api/hub/upload",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/dash-main-prep/app/api/hub/upload/route.ts",nextConfigOutput:"",userland:A,...{}}),{workAsyncStorage:q,workUnitAsyncStorage:T,serverHooks:P}=j;async function N(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),j.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let R="/api/hub/upload/route";R=R.replace(/\/index$/,"")||"/";let v=await j.prepare(e,t,{srcPage:R,multiZoneDraftMode:!1});if(!v)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:w,params:y,nextConfig:C,parsedUrl:E,isDraftMode:b,prerenderManifest:A,routerServerContext:q,isOnDemandRevalidate:T,revalidateOnlyGenerated:P,resolvedPathname:N,clientReferenceManifest:k,serverActionsManifest:S}=v,_=(0,o.normalizeAppPath)(R),O=!!(A.dynamicRoutes[_]||A.routes[N]),U=async()=>((null==q?void 0:q.render404)?await q.render404(e,t,E,!1):t.end("This page could not be found"),null);if(O&&!b){let e=!!A.routes[N],t=A.dynamicRoutes[_];if(t&&!1===t.fallback&&!e){if(C.adapterPath)return await U();throw new g.NoFallbackError}}let D=null;!O||j.isDev||b||(D="/index"===(D=N)?"/":D);let I=!0===j.isDev||!O,H=O&&!I;S&&k&&(0,i.setManifestsSingleton)({page:R,clientReferenceManifest:k,serverActionsManifest:S});let M=e.method||"GET",$=(0,s.getTracer)(),F=$.getActiveScopeSpan(),B=!!(null==q?void 0:q.isWrappedByNextServer),K=!!(0,n.getRequestMeta)(e,"minimalMode"),L=(0,n.getRequestMeta)(e,"incrementalCache")||await j.getIncrementalCache(e,C,A,K);null==L||L.resetRequestCache(),globalThis.__incrementalCache=L;let z={params:y,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts},cacheComponents:!!C.cacheComponents,supportsDynamicResponse:I,incrementalCache:L,cacheLifeProfiles:C.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>j.onRequestError(e,t,a,n,q)},sharedContext:{buildId:w}},G=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),V=u.NextRequestAdapter.fromNodeNextRequest(G,(0,u.signalFromNodeResponse)(t));try{let n,i=async e=>j.handle(V,z).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==p.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${M} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${M} ${R}`)}),o=async n=>{var s,o;let l=async({previousCacheEntry:r})=>{try{if(!K&&T&&P&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await i(n);e.fetchMetrics=z.renderOpts.fetchMetrics;let o=z.renderOpts.pendingWaitUntil;o&&a.waitUntil&&(a.waitUntil(o),o=void 0);let l=z.renderOpts.collectedTags;if(!O)return await (0,c.sendResponse)(G,W,s,z.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[f.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==z.renderOpts.collectedRevalidate&&!(z.renderOpts.collectedRevalidate>=f.INFINITE_CACHE)&&z.renderOpts.collectedRevalidate,a=void 0===z.renderOpts.collectedExpire||z.renderOpts.collectedExpire>=f.INFINITE_CACHE?void 0:z.renderOpts.collectedExpire;return{value:{kind:m.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await j.onRequestError(e,t,{routerKind:"App Router",routePath:R,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:H,isOnDemandRevalidate:T})},!1,q),t}},u=await j.handleResponse({req:e,nextConfig:C,cacheKey:D,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:T,revalidateOnlyGenerated:P,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:K});if(!O)return null;if((null==u||null==(s=u.value)?void 0:s.kind)!==m.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(o=u.value)?void 0:o.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});K||t.setHeader("x-nextjs-cache",T?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),b&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let p=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return K&&O||p.delete(f.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||p.get("Cache-Control")||p.set("Cache-Control",(0,x.getCacheControlHeader)(u.cacheControl)),await (0,c.sendResponse)(G,W,new Response(u.value.body,{headers:p,status:u.value.status||200})),null};B&&F?await o(F):(n=$.getActiveScopeSpan(),await $.withPropagatedContext(e.headers,()=>$.trace(p.BaseServerSpan.handleRequest,{spanName:`${M} ${R}`,kind:s.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},o),void 0,!B))}catch(t){if(t instanceof g.NoFallbackError||await j.onRequestError(e,t,{routerKind:"App Router",routePath:_,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:H,isOnDemandRevalidate:T})},!1,q),O)throw t;return await (0,c.sendResponse)(G,W,new Response(null,{status:500})),null}}e.s(["handler",0,N,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:q,workUnitAsyncStorage:T})},"routeModule",0,j,"serverHooks",0,P,"workAsyncStorage",0,q,"workUnitAsyncStorage",0,T],19765)}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__05494tj._.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../dash-main-prep/app/api/hub/upload/route.ts","../../../../dash-main-prep/node_modules/next/dist/esm/build/templates/app-route.js"],"sourcesContent":["import { requireDashboardAuth } from '@/app/lib/dashboard-auth';\nimport { randomUUID } from 'crypto';\nimport { mkdir, readFile, writeFile } from 'fs/promises';\nimport path from 'path';\n\nconst UPLOAD_DIR = '/tmp/agent-network-dashboard-uploads';\nconst MAX_BYTES = 12 * 1024 * 1024;\n\nfunction safeName(name: string) {\n const ext = path.extname(name).toLowerCase().replace(/[^a-z0-9.]/g, '');\n return `${Date.now()}-${randomUUID()}${ext || '.bin'}`;\n}\n\nfunction isImage(type: string, filename: string) {\n return type.startsWith('image/') || /\\.(png|jpe?g|gif|webp)$/i.test(filename);\n}\n\nexport async function POST(req: Request) {\n const authFailure = await requireDashboardAuth();\n if (authFailure) return authFailure;\n\n try {\n const form = await req.formData();\n const file = form.get('file');\n if (!(file instanceof File)) {\n return Response.json({ error: 'missing file' }, { status: 400 });\n }\n if (!isImage(file.type, file.name)) {\n return Response.json({ error: 'only image uploads are supported' }, { status: 400 });\n }\n if (file.size > MAX_BYTES) {\n return Response.json({ error: 'image is too large', max_bytes: MAX_BYTES }, { status: 413 });\n }\n\n await mkdir(UPLOAD_DIR, { recursive: true });\n const filename = safeName(file.name);\n const fullPath = path.join(UPLOAD_DIR, filename);\n const bytes = Buffer.from(await file.arrayBuffer());\n await writeFile(fullPath, bytes);\n\n return Response.json({\n ok: true,\n filename,\n path: fullPath,\n url: `/api/hub/upload?file=${encodeURIComponent(filename)}`,\n mime: file.type || 'application/octet-stream',\n size: file.size,\n });\n } catch (e: unknown) {\n return Response.json({ error: 'upload failed', detail: e instanceof Error ? e.message : String(e) }, { status: 500 });\n }\n}\n\nexport async function GET(req: Request) {\n const authFailure = await requireDashboardAuth();\n if (authFailure) return authFailure;\n\n const url = new URL(req.url);\n const filename = url.searchParams.get('file') || '';\n if (!/^[0-9]+-[a-f0-9-]+\\.[a-z0-9]+$/i.test(filename)) {\n return Response.json({ error: 'invalid file' }, { status: 400 });\n }\n\n try {\n const fullPath = path.join(UPLOAD_DIR, filename);\n const data = await readFile(fullPath);\n const ext = path.extname(filename).toLowerCase();\n const mime =\n ext === '.png' ? 'image/png' :\n ext === '.jpg' || ext === '.jpeg' ? 'image/jpeg' :\n ext === '.gif' ? 'image/gif' :\n ext === '.webp' ? 'image/webp' :\n 'application/octet-stream';\n return new Response(data, {\n headers: {\n 'Content-Type': mime,\n 'Cache-Control': 'private, max-age=86400',\n },\n });\n } catch {\n return Response.json({ error: 'not found' }, { status: 404 });\n }\n}\n","import { AppRouteRouteModule } from \"next/dist/esm/server/route-modules/app-route/module.compiled\";\nimport { RouteKind } from \"next/dist/esm/server/route-kind\";\nimport { patchFetch as _patchFetch } from \"next/dist/esm/server/lib/patch-fetch\";\nimport { addRequestMeta, getRequestMeta, setRequestMeta } from \"next/dist/esm/server/request-meta\";\nimport { getTracer, SpanKind } from \"next/dist/esm/server/lib/trace/tracer\";\nimport { setManifestsSingleton } from \"next/dist/esm/server/app-render/manifests-singleton\";\nimport { normalizeAppPath } from \"next/dist/esm/shared/lib/router/utils/app-paths\";\nimport { NodeNextRequest, NodeNextResponse } from \"next/dist/esm/server/base-http/node\";\nimport { NextRequestAdapter, signalFromNodeResponse } from \"next/dist/esm/server/web/spec-extension/adapters/next-request\";\nimport { BaseServerSpan } from \"next/dist/esm/server/lib/trace/constants\";\nimport { getRevalidateReason } from \"next/dist/esm/server/instrumentation/utils\";\nimport { sendResponse } from \"next/dist/esm/server/send-response\";\nimport { fromNodeOutgoingHttpHeaders, toNodeOutgoingHttpHeaders } from \"next/dist/esm/server/web/utils\";\nimport { getCacheControlHeader } from \"next/dist/esm/server/lib/cache-control\";\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from \"next/dist/esm/lib/constants\";\nimport { NoFallbackError } from \"next/dist/esm/shared/lib/no-fallback-error.external\";\nimport { CachedRouteKind } from \"next/dist/esm/server/response-cache\";\nimport * as userland from \"INNER_APP_ROUTE\";\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\nconst nextConfigOutput = \"\"\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: \"/api/hub/upload/route\",\n pathname: \"/api/hub/upload\",\n filename: \"route\",\n bundlePath: \"\"\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: \"[project]/dash-main-prep/app/api/hub/upload/route.ts\",\n nextConfigOutput,\n // The static import is used for initialization (methods, dynamic, etc.).\n userland: userland,\n // In Turbopack dev mode, also provide a getter that calls require() on every\n // request. This re-reads from devModuleCache so HMR updates are picked up,\n // and the async wrapper unwraps async-module Promises (ESM-only\n // serverExternalPackages) automatically.\n ...process.env.TURBOPACK && process.env.__NEXT_DEV_SERVER ? {\n getUserland: ()=>import(\"INNER_APP_ROUTE\")\n } : {}\n});\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage\n });\n}\nexport { routeModule, workAsyncStorage, workUnitAsyncStorage, serverHooks, patchFetch, };\nexport async function handler(req, res, ctx) {\n if (ctx.requestMeta) {\n setRequestMeta(req, ctx.requestMeta);\n }\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());\n }\n let srcPage = \"/api/hub/upload/route\";\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/';\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/';\n }\n const multiZoneDraftMode = process.env.__NEXT_MULTI_ZONE_DRAFT_MODE;\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode\n });\n if (!prepareResult) {\n res.statusCode = 400;\n res.end('Bad Request');\n ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());\n return null;\n }\n const { buildId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest } = prepareResult;\n const normalizedSrcPage = normalizeAppPath(srcPage);\n let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || prerenderManifest.routes[resolvedPathname]);\n const render404 = async ()=>{\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext == null ? void 0 : routerServerContext.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false);\n } else {\n res.end('This page could not be found');\n }\n return null;\n };\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname]);\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.adapterPath) {\n return await render404();\n }\n throw new NoFallbackError();\n }\n }\n }\n let cacheKey = null;\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname;\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey;\n }\n const supportsDynamicResponse = // If we're in development, we always support dynamic HTML\n routeModule.isDev === true || // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr;\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse;\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest\n });\n }\n const method = req.method || 'GET';\n const tracer = getTracer();\n const activeSpan = tracer.getActiveScopeSpan();\n const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);\n const isMinimalMode = Boolean(getRequestMeta(req, 'minimalMode'));\n const incrementalCache = getRequestMeta(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, prerenderManifest, isMinimalMode);\n incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();\n globalThis.__incrementalCache = incrementalCache;\n const context = {\n params,\n previewProps: prerenderManifest.preview,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts)\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache,\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb)=>{\n res.on('close', cb);\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, routerServerContext)\n },\n sharedContext: {\n buildId\n }\n };\n const nodeNextReq = new NodeNextRequest(req);\n const nodeNextRes = new NodeNextResponse(res);\n const nextReq = NextRequestAdapter.fromNodeNextRequest(nodeNextReq, signalFromNodeResponse(res));\n try {\n let parentSpan;\n const invokeRouteModule = async (span)=>{\n return routeModule.handle(nextReq, context).finally(()=>{\n if (!span) return;\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false\n });\n const rootSpanAttributes = tracer.getRootSpanAttributes();\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return;\n }\n if (rootSpanAttributes.get('next.span_type') !== BaseServerSpan.handleRequest) {\n console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);\n return;\n }\n const route = rootSpanAttributes.get('next.route');\n if (route) {\n const name = `${method} ${route}`;\n span.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name\n });\n span.updateName(name);\n // Propagate http.route to the parent span if one exists (e.g.\n // a platform-created HTTP span in adapter deployments).\n if (parentSpan && parentSpan !== span) {\n parentSpan.setAttribute('http.route', route);\n parentSpan.updateName(name);\n }\n } else {\n span.updateName(`${method} ${srcPage}`);\n }\n });\n };\n const handleResponse = async (currentSpan)=>{\n var _cacheEntry_value;\n const responseGenerator = async ({ previousCacheEntry })=>{\n try {\n if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {\n res.statusCode = 404;\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED');\n res.end('This page could not be found');\n return null;\n }\n const response = await invokeRouteModule(currentSpan);\n req.fetchMetrics = context.renderOpts.fetchMetrics;\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil;\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil);\n pendingWaitUntil = undefined;\n }\n }\n const cacheTags = context.renderOpts.collectedTags;\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob();\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers);\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags;\n }\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type;\n }\n const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;\n const expire = typeof context.renderOpts.collectedExpire === 'undefined' || context.renderOpts.collectedExpire >= INFINITE_CACHE ? undefined : context.renderOpts.collectedExpire;\n // Create the cache entry for the response.\n const cacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers\n },\n cacheControl: {\n revalidate,\n expire\n }\n };\n return cacheEntry;\n } else {\n // send response without caching if not ISR\n await sendResponse(nodeNextReq, nodeNextRes, response, context.renderOpts.pendingWaitUntil);\n return null;\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n throw err;\n }\n };\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode\n });\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null;\n }\n if ((cacheEntry == null ? void 0 : (_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== CachedRouteKind.APP_ROUTE) {\n var _cacheEntry_value1;\n throw Object.defineProperty(new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`), \"__NEXT_ERROR_CODE\", {\n value: \"E701\",\n enumerable: false,\n configurable: true\n });\n }\n if (!isMinimalMode) {\n res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');\n }\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');\n }\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers);\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER);\n }\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {\n headers.set('Cache-Control', getCacheControlHeader(cacheEntry.cacheControl));\n }\n await sendResponse(nodeNextReq, nodeNextRes, // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200\n }));\n return null;\n };\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (isWrappedByNextServer && activeSpan) {\n await handleResponse(activeSpan);\n } else {\n parentSpan = tracer.getActiveScopeSpan();\n await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(BaseServerSpan.handleRequest, {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url\n }\n }, handleResponse), undefined, !isWrappedByNextServer);\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n // rethrow so that we can handle serving error page\n // If this is during static generation, throw the error again.\n if (isIsr) throw err;\n // Otherwise, send a 500 response.\n await sendResponse(nodeNextReq, nodeNextRes, new Response(null, {\n status: 500\n }));\n return null;\n }\n}\n\n//# sourceMappingURL=app-route.js.map\n"],"names":["name","UPLOAD_DIR","MAX_BYTES","safeName","ext","extname","toLowerCase","replace","Date","now","isImage","type","filename","startsWith","test","POST","req","authFailure","form","formData","file","get","File","Response","json","error","status","size","max_bytes","recursive","fullPath","join","bytes","Buffer","from","arrayBuffer","ok","path","url","encodeURIComponent","mime","e","detail","Error","message","String","GET","URL","searchParams","data","headers"],"mappings":"2vCCAA,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,MACAA,EAAAA,EAAAA,CAAAA,CAAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,MACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,MACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,CAAA,CAAA,OAAA,IAAA,EAAA,EAAA,CAAA,CAAA,ODhBA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OAEA,IAAMC,EAAa,uCAYZ,eAAec,EAAKC,CAAY,EACrC,IAAMC,EAAc,MAAM,CAAA,EAAA,EAAA,oBAAA,AAAoB,IAC9C,GAAIA,EAAa,OAAOA,EAExB,GAAI,KARWN,EAAcC,EAAF,EAUzB,IAV2C,EAUrCQ,EADO,AACAF,OADMF,EAAIG,QAAQ,EAAA,EACbE,GAAG,CAAC,QACtB,GAAI,CAAC,CAACD,aAAgBE,IAAAA,CAAI,CACxB,EAD2B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EAAC,EAAW,YAAY,GAE9E,MAAM,CAAA,EAAA,EAAA,YAAA,AAAY,EAAC,EAAa,EAChC,IAAI,SAAS,EAAW,KAAK,CAAC,IAAI,CAAE,SAChC,EACA,OAAQ,EAAW,KAAK,CAAC,MAAM,EAAI,GACvC,IACO,IACX,CAGI,IAAyB,EACzB,MAAM,EAAe,EADgB,EAGrC,EAAa,EAAO,kBAAkB,GACtC,MAAM,EAAO,qBAAqB,CAAC,EAAI,OAAO,CAAE,IAAI,EAAO,KAAK,CAAC,EAAA,cAAc,CAAC,aAAa,CAAE,CACvF,SAAU,CAAA,EAAG,EAAO,CAAC,EAAE,EAAA,CAAS,CAChC,KAAM,EAAA,QAAQ,CAAC,MAAM,CACrB,WAAY,CACR,cAAe,EACf,cAAe,EAAI,GAAG,AAC1B,CACJ,EAAG,QAAiB,EAAW,CAAC,GAE5C,CAAE,MAAO,EAAK,CAeV,GAdM,aAAe,EAAA,eAAe,EAEhC,CAFmC,KAE7B,EAAY,cAAc,CAAC,EAAK,EAAK,CACvC,WAAY,aACZ,UAAW,EACX,UAAW,QACX,iBAAkB,CAAA,EAAA,EAAA,mBAAA,AAAmB,EAAC,oBAClC,uBACA,CACJ,EACJ,GAAG,AATgB,EASJ,GAIf,EAAO,MAAM,EAKjB,OAHA,MAAM,CAAA,EAAA,EAAA,YAAA,AAAY,EAAC,EAAa,EAAa,IAAI,SAAS,KAAM,CAC5D,OAAQ,GACZ,IACO,IACX,CACJ,mCA3TA,SAAS,EACL,MAAO,CAAA,EAAA,EAAA,UAAA,AAAW,EAAC,kBACf,uBACA,CACJ,EACJ","ignoreList":[1]}
@@ -0,0 +1,3 @@
1
+ module.exports=[66680,(e,r,t)=>{r.exports=e.x("node:crypto",()=>require("node:crypto"))},12714,(e,r,t)=>{r.exports=e.x("node:fs/promises",()=>require("node:fs/promises"))},60526,(e,r,t)=>{r.exports=e.x("node:os",()=>require("node:os"))},25683,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={ActionDidNotRevalidate:function(){return s},ActionDidRevalidateDynamicOnly:function(){return i},ActionDidRevalidateStaticAndDynamic:function(){return o}};for(var a in n)Object.defineProperty(t,a,{enumerable:!0,get:n[a]});let s=0,o=1,i=2},66177,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={MutableRequestCookiesAdapter:function(){return h},ReadonlyRequestCookiesError:function(){return u},RequestCookiesAdapter:function(){return d},appendMutableCookies:function(){return p},areCookiesMutableInCurrentPhase:function(){return g},createCookiesWithMutableAccessCheck:function(){return b},getModifiedCookieValues:function(){return f},responseCookiesToRequestCookies:function(){return m}};for(var a in n)Object.defineProperty(t,a,{enumerable:!0,get:n[a]});let s=e.r(82855),o=e.r(75945),i=e.r(56704),c=e.r(25683);class u extends Error{constructor(){super("Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#options")}static callable(){throw new u}}class d{static seal(e){return new Proxy(e,{get(e,r,t){switch(r){case"clear":case"delete":case"set":return u.callable;default:return o.ReflectAdapter.get(e,r,t)}}})}}let l=Symbol.for("next.mutated.cookies");function f(e){let r=e[l];return r&&Array.isArray(r)&&0!==r.length?r:[]}function p(e,r){let t=f(r);if(0===t.length)return!1;let n=new s.ResponseCookies(e),a=n.getAll();for(let e of t)n.set(e);for(let e of a)n.set(e);return!0}class h{static wrap(e,r){let t=new s.ResponseCookies(new Headers);for(let r of e.getAll())t.set(r);let n=[],a=new Set,u=()=>{let e=i.workAsyncStorage.getStore();if(e&&(e.pathWasRevalidated=c.ActionDidRevalidateStaticAndDynamic),n=t.getAll().filter(e=>a.has(e.name)),r){let e=[];for(let r of n){let t=new s.ResponseCookies(new Headers);t.set(r),e.push(t.toString())}r(e)}},d=new Proxy(t,{get(e,r,t){switch(r){case l:return n;case"delete":return function(...r){a.add("string"==typeof r[0]?r[0]:r[0].name);try{return e.delete(...r),d}finally{u()}};case"set":return function(...r){a.add("string"==typeof r[0]?r[0]:r[0].name);try{return e.set(...r),d}finally{u()}};default:return o.ReflectAdapter.get(e,r,t)}}});return d}}function b(e){let r=new Proxy(e.mutableCookies,{get(t,n,a){switch(n){case"delete":return function(...n){return y(e,"cookies().delete"),t.delete(...n),r};case"set":return function(...n){return y(e,"cookies().set"),t.set(...n),r};default:return o.ReflectAdapter.get(t,n,a)}}});return r}function g(e){return"action"===e.phase}function y(e,r){if(!g(e))throw new u}function m(e){let r=new s.RequestCookies(new Headers);for(let t of e.getAll())r.set(t);return r}},14431,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createDedupedByCallsiteServerErrorLoggerDev",{enumerable:!0,get:function(){return c}});let n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=a(void 0);if(r&&r.has(e))return r.get(e);var t={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var o=n?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(t,s,o):t[s]=e[s]}return t.default=e,r&&r.set(e,t),t}(e.r(80732));function a(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(a=function(e){return e?t:r})(e)}let s={current:null},o="function"==typeof n.cache?n.cache:e=>e,i=console.warn;function c(e){return function(...r){i(e(...r))}}o(e=>{try{i(s.current)}finally{s.current=null}})},58834,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"cookies",{enumerable:!0,get:function(){return p}});let n=e.r(66177),a=e.r(82855),s=e.r(56704),o=e.r(32319),i=e.r(29299),c=e.r(83336),u=e.r(65557),d=e.r(14431),l=e.r(12787),f=e.r(79383);function p(){let e="cookies",r=s.workAsyncStorage.getStore(),t=o.workUnitAsyncStorage.getStore();if(r){if(t&&"after"===t.phase&&!(0,l.isRequestAPICallableInsideAfter)())throw Object.defineProperty(Error(`Route ${r.route} used \`cookies()\` inside \`after()\`. This is not supported. If you need this data inside an \`after()\` callback, use \`cookies()\` outside of the callback. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E843",enumerable:!1,configurable:!0});if(r.forceStatic)return b(n.RequestCookiesAdapter.seal(new a.RequestCookies(new Headers({}))));if(r.dynamicShouldError)throw Object.defineProperty(new c.StaticGenBailoutError(`Route ${r.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`cookies()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E849",enumerable:!1,configurable:!0});if(t)switch(t.type){case"cache":let s=Object.defineProperty(Error(`Route ${r.route} used \`cookies()\` inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`cookies()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E831",enumerable:!1,configurable:!0});throw Error.captureStackTrace(s,p),r.invalidDynamicUsageError??=s,s;case"unstable-cache":throw Object.defineProperty(Error(`Route ${r.route} used \`cookies()\` inside a function cached with \`unstable_cache()\`. Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`cookies()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E846",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(Error(`Route ${r.route} used \`cookies()\` inside \`generateStaticParams\`. This is not supported because \`generateStaticParams\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E1123",enumerable:!1,configurable:!0});case"prerender":var d=r,g=t;let y=h.get(g);if(y)return y;let m=(0,u.makeHangingPromise)(g.renderSignal,d.route,"`cookies()`");return h.set(g,m),m;case"prerender-client":case"validation-client":let R="`cookies`";throw Object.defineProperty(new f.InvariantError(`${R} must not be used within a Client Component. Next.js should be preventing ${R} from being included in Client Components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1037",enumerable:!1,configurable:!0});case"prerender-ppr":return(0,i.postponeWithTracking)(r.route,e,t.dynamicTracking);case"prerender-legacy":return(0,i.throwToInterruptStaticGeneration)(e,r,t);case"prerender-runtime":return(0,u.delayUntilRuntimeStage)(t,b(t.cookies));case"private-cache":return b(t.cookies);case"request":let E;if((0,i.trackDynamicDataInDynamicRender)(t),E=(0,n.areCookiesMutableInCurrentPhase)(t)?t.userspaceMutableCookies:t.cookies,!t.asyncApiPromises)return b(E);{let e=(0,o.isInEarlyRenderStage)(t);if(E===t.mutableCookies)return e?t.asyncApiPromises.earlyMutableCookies:t.asyncApiPromises.mutableCookies;return e?t.asyncApiPromises.earlyCookies:t.asyncApiPromises.cookies}}}(0,o.throwForMissingRequestStore)(e)}e.r(4532);let h=new WeakMap;function b(e){let r=h.get(e);if(r)return r;let t=Promise.resolve(e);return h.set(e,t),t}(0,d.createDedupedByCallsiteServerErrorLoggerDev)(function(e,r){let t=e?`Route "${e}" `:"This route ";return Object.defineProperty(Error(`${t}used ${r}. \`cookies()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E830",enumerable:!1,configurable:!0})})},90020,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={HeadersAdapter:function(){return i},ReadonlyHeadersError:function(){return o}};for(var a in n)Object.defineProperty(t,a,{enumerable:!0,get:n[a]});let s=e.r(75945);class o extends Error{constructor(){super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers")}static callable(){throw new o}}class i extends Headers{constructor(e){super(),this.headers=new Proxy(e,{get(r,t,n){if("symbol"==typeof t)return s.ReflectAdapter.get(r,t,n);let a=t.toLowerCase(),o=Object.keys(e).find(e=>e.toLowerCase()===a);if(void 0!==o)return s.ReflectAdapter.get(r,o,n)},set(r,t,n,a){if("symbol"==typeof t)return s.ReflectAdapter.set(r,t,n,a);let o=t.toLowerCase(),i=Object.keys(e).find(e=>e.toLowerCase()===o);return s.ReflectAdapter.set(r,i??t,n,a)},has(r,t){if("symbol"==typeof t)return s.ReflectAdapter.has(r,t);let n=t.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0!==a&&s.ReflectAdapter.has(r,a)},deleteProperty(r,t){if("symbol"==typeof t)return s.ReflectAdapter.deleteProperty(r,t);let n=t.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0===a||s.ReflectAdapter.deleteProperty(r,a)}})}static seal(e){return new Proxy(e,{get(e,r,t){switch(r){case"append":case"delete":case"set":return o.callable;default:return s.ReflectAdapter.get(e,r,t)}}})}merge(e){return Array.isArray(e)?e.join(", "):e}static from(e){return e instanceof Headers?e:new i(e)}append(e,r){let t=this.headers[e];"string"==typeof t?this.headers[e]=[t,r]:Array.isArray(t)?t.push(r):this.headers[e]=r}delete(e){delete this.headers[e]}get(e){let r=this.headers[e];return void 0!==r?this.merge(r):null}has(e){return void 0!==this.headers[e]}set(e,r){this.headers[e]=r}forEach(e,r){for(let[t,n]of this.entries())e.call(r,n,t,this)}*entries(){for(let e of Object.keys(this.headers)){let r=e.toLowerCase(),t=this.get(r);yield[r,t]}}*keys(){for(let e of Object.keys(this.headers)){let r=e.toLowerCase();yield r}}*values(){for(let e of Object.keys(this.headers)){let r=this.get(e);yield r}}[Symbol.iterator](){return this.entries()}}},75438,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"headers",{enumerable:!0,get:function(){return f}});let n=e.r(90020),a=e.r(56704),s=e.r(32319),o=e.r(29299),i=e.r(83336),c=e.r(65557),u=e.r(14431),d=e.r(12787),l=e.r(79383);function f(){let e="headers",r=a.workAsyncStorage.getStore(),t=s.workUnitAsyncStorage.getStore();if(r){if(t&&"after"===t.phase&&!(0,d.isRequestAPICallableInsideAfter)())throw Object.defineProperty(Error(`Route ${r.route} used \`headers()\` inside \`after()\`. This is not supported. If you need this data inside an \`after()\` callback, use \`headers()\` outside of the callback. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E839",enumerable:!1,configurable:!0});if(r.forceStatic)return h(n.HeadersAdapter.seal(new Headers({})));if(t)switch(t.type){case"cache":{let e=Object.defineProperty(Error(`Route ${r.route} used \`headers()\` inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`headers()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E833",enumerable:!1,configurable:!0});throw Error.captureStackTrace(e,f),r.invalidDynamicUsageError??=e,e}case"unstable-cache":throw Object.defineProperty(Error(`Route ${r.route} used \`headers()\` inside a function cached with \`unstable_cache()\`. Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`headers()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E838",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(Error(`Route ${r.route} used \`headers()\` inside \`generateStaticParams\`. This is not supported because \`generateStaticParams\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E1134",enumerable:!1,configurable:!0})}if(r.dynamicShouldError)throw Object.defineProperty(new i.StaticGenBailoutError(`Route ${r.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`headers()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E828",enumerable:!1,configurable:!0});if(t)switch(t.type){case"prerender":var u=r,b=t;let a=p.get(b);if(a)return a;let g=(0,c.makeHangingPromise)(b.renderSignal,u.route,"`headers()`");return p.set(b,g),g;case"prerender-client":case"validation-client":let y="`headers`";throw Object.defineProperty(new l.InvariantError(`${y} must not be used within a client component. Next.js should be preventing ${y} from being included in client components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1017",enumerable:!1,configurable:!0});case"prerender-ppr":return(0,o.postponeWithTracking)(r.route,e,t.dynamicTracking);case"prerender-legacy":return(0,o.throwToInterruptStaticGeneration)(e,r,t);case"prerender-runtime":return(0,c.delayUntilRuntimeStage)(t,h(t.headers));case"private-cache":return h(t.headers);case"request":if((0,o.trackDynamicDataInDynamicRender)(t),t.asyncApiPromises)return(0,s.isInEarlyRenderStage)(t)?t.asyncApiPromises.earlyHeaders:t.asyncApiPromises.headers;return h(t.headers)}}(0,s.throwForMissingRequestStore)(e)}e.r(4532);let p=new WeakMap;function h(e){let r=p.get(e);if(r)return r;let t=Promise.resolve(e);return p.set(e,t),t}(0,u.createDedupedByCallsiteServerErrorLoggerDev)(function(e,r){let t=e?`Route "${e}" `:"This route ";return Object.defineProperty(Error(`${t}used ${r}. \`headers()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E836",enumerable:!1,configurable:!0})})},13801,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"draftMode",{enumerable:!0,get:function(){return l}});let n=e.r(32319),a=e.r(56704),s=e.r(29299),o=e.r(14431),i=e.r(83336),c=e.r(35005),u=e.r(79383),d=e.r(65557);function l(){let e="draftMode",r=a.workAsyncStorage.getStore(),t=n.workUnitAsyncStorage.getStore();switch((!r||!t)&&(0,n.throwForMissingRequestStore)(e),t.type){case"prerender-runtime":return(0,d.delayUntilRuntimeStage)(t,f(t.draftMode,r));case"request":return f(t.draftMode,r);case"cache":case"private-cache":case"unstable-cache":let s=(0,n.getDraftModeProviderForCacheScope)(r,t);if(s)return f(s,r);case"prerender":case"prerender-ppr":case"prerender-legacy":return f(null,r);case"prerender-client":case"validation-client":{let e="`draftMode`";throw Object.defineProperty(new u.InvariantError(`${e} must not be used within a Client Component. Next.js should be preventing ${e} from being included in Client Components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1046",enumerable:!1,configurable:!0})}case"generate-static-params":throw Object.defineProperty(Error(`Route ${r.route} used \`${e}()\` inside \`generateStaticParams\`. This is not supported because \`generateStaticParams\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E1132",enumerable:!1,configurable:!0});default:return t}}function f(e,r){let t=h.get(e??p);return t||Promise.resolve(new b(e))}e.r(75945);let p={},h=new WeakMap;class b{constructor(e){this._provider=e}get isEnabled(){return null!==this._provider&&this._provider.isEnabled}enable(){g("draftMode().enable()",this.enable),null!==this._provider&&this._provider.enable()}disable(){g("draftMode().disable()",this.disable),null!==this._provider&&this._provider.disable()}}function g(e,r){let t=a.workAsyncStorage.getStore(),o=n.workUnitAsyncStorage.getStore();if(t){if((null==o?void 0:o.phase)==="after")throw Object.defineProperty(Error(`Route ${t.route} used "${e}" inside \`after()\`. The enabled status of \`draftMode()\` can be read inside \`after()\` but you cannot enable or disable \`draftMode()\`. See more info here: https://nextjs.org/docs/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E845",enumerable:!1,configurable:!0});if(t.dynamicShouldError)throw Object.defineProperty(new i.StaticGenBailoutError(`Route ${t.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${e}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E553",enumerable:!1,configurable:!0});if(o)switch(o.type){case"cache":case"private-cache":{let n=Object.defineProperty(Error(`Route ${t.route} used "${e}" inside "use cache". The enabled status of \`draftMode()\` can be read in caches but you must not enable or disable \`draftMode()\` inside a cache. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E829",enumerable:!1,configurable:!0});throw Error.captureStackTrace(n,r),t.invalidDynamicUsageError??=n,n}case"unstable-cache":throw Object.defineProperty(Error(`Route ${t.route} used "${e}" inside a function cached with \`unstable_cache()\`. The enabled status of \`draftMode()\` can be read in caches but you must not enable or disable \`draftMode()\` inside a cache. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E844",enumerable:!1,configurable:!0});case"prerender":case"prerender-runtime":{let r=Object.defineProperty(Error(`Route ${t.route} used ${e} without first calling \`await connection()\`. See more info here: https://nextjs.org/docs/messages/next-prerender-sync-headers`),"__NEXT_ERROR_CODE",{value:"E126",enumerable:!1,configurable:!0});return(0,s.abortAndThrowOnSynchronousRequestDataAccess)(t.route,e,r,o)}case"prerender-client":case"validation-client":let n="`draftMode`";throw Object.defineProperty(new u.InvariantError(`${n} must not be used within a Client Component. Next.js should be preventing ${n} from being included in Client Components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1046",enumerable:!1,configurable:!0});case"prerender-ppr":return(0,s.postponeWithTracking)(t.route,e,o.dynamicTracking);case"prerender-legacy":o.revalidate=0;let a=Object.defineProperty(new c.DynamicServerError(`Route ${t.route} couldn't be rendered statically because it used \`${e}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E558",enumerable:!1,configurable:!0});throw t.dynamicUsageDescription=e,t.dynamicUsageStack=a.stack,a;case"request":(0,s.trackDynamicDataInDynamicRender)(o);break;case"generate-static-params":throw Object.defineProperty(Error(`Route ${t.route} used \`${e}\` inside \`generateStaticParams\`. This is not supported because \`generateStaticParams\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E1121",enumerable:!1,configurable:!0})}}}(0,o.createDedupedByCallsiteServerErrorLoggerDev)(function(e,r){let t=e?`Route "${e}" `:"This route ";return Object.defineProperty(Error(`${t}used ${r}. \`draftMode()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E835",enumerable:!1,configurable:!0})})},20924,(e,r,t)=>{r.exports.cookies=e.r(58834).cookies,r.exports.headers=e.r(75438).headers,r.exports.draftMode=e.r(13801).draftMode},42515,e=>{"use strict";var r=e.i(66680),t=e.i(12714),n=e.i(60526),a=e.i(50227),s=e.i(20924);let o="anet_dashboard_session",i=(0,a.join)((0,n.homedir)(),".anet","config.json");function c(e){return(0,r.createHash)("sha256").update(`anet-dashboard:${e}`).digest("hex")}function u(e,t){let n=Buffer.from(e),a=Buffer.from(t);return n.length===a.length&&(0,r.timingSafeEqual)(n,a)}async function d(){let e=JSON.parse(await (0,t.readFile)(i,"utf8"));return"string"==typeof e.token?e.token:""}async function l(){let e=process.env.DASHBOARD_PASSWORD||process.env.ANET_DASHBOARD_PASSWORD;if(e)return e;let r=await d();return r&&!process.env._DASHBOARD_TOKEN_WARN_SHOWN&&(console.warn("[dashboard] WARNING: using CommHub token as login password. Set DASHBOARD_PASSWORD for security."),process.env._DASHBOARD_TOKEN_WARN_SHOWN="1"),r}async function f(e){return c(e)}async function p(e){let r=await l();return r.length>0&&u(c(e),c(r))}async function h(){let e=await (0,s.cookies)(),r=e.get(o)?.value||"";if(r.startsWith("v3:")){let e=r.slice(3);return(e.startsWith("atok_")||e.startsWith("utok_")||e.startsWith("ntok_"))&&e.length>10}let t=await l();return t.length>0&&u(r,await f(t))}async function b(){let e=await (0,s.cookies)(),r=e.get(o)?.value||"";return r.startsWith("v3:")?r.slice(3):null}async function g(){return await h()?null:Response.json({error:"login required"},{status:401})}e.s(["DASHBOARD_SESSION_COOKIE",0,o,"createDashboardSessionValue",0,f,"getV3UserToken",0,b,"requireDashboardAuth",0,g,"verifyDashboardPassword",0,p])}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__065pywy._.js.map