apm-optima 1.0.5 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/README.md +54 -23
  2. package/dashboard-out/404/index.html +1 -1
  3. package/dashboard-out/404.html +1 -1
  4. package/dashboard-out/__next.__PAGE__.txt +4 -4
  5. package/dashboard-out/__next._full.txt +17 -17
  6. package/dashboard-out/__next._head.txt +4 -4
  7. package/dashboard-out/__next._index.txt +10 -10
  8. package/dashboard-out/__next._tree.txt +2 -2
  9. package/dashboard-out/_next/static/chunks/{2xjcsu4pgp14_.js → 062oipeclh9bq.js} +1 -1
  10. package/dashboard-out/_next/static/chunks/0ncbimuip0-o7.css +3 -0
  11. package/dashboard-out/_next/static/chunks/0xtgenoch3q77.js +1 -0
  12. package/dashboard-out/_next/static/chunks/1xln1-s87x5yp.js +27 -0
  13. package/dashboard-out/_not-found/__next._full.txt +15 -15
  14. package/dashboard-out/_not-found/__next._head.txt +4 -4
  15. package/dashboard-out/_not-found/__next._index.txt +10 -10
  16. package/dashboard-out/_not-found/__next._not-found.__PAGE__.txt +2 -2
  17. package/dashboard-out/_not-found/__next._not-found.txt +3 -3
  18. package/dashboard-out/_not-found/__next._tree.txt +2 -2
  19. package/dashboard-out/_not-found/index.html +1 -1
  20. package/dashboard-out/_not-found/index.txt +15 -15
  21. package/dashboard-out/index.html +1 -1
  22. package/dashboard-out/index.txt +17 -17
  23. package/dist/adapters/session-export.handler.d.ts +4 -0
  24. package/dist/adapters/session-export.handler.js +29 -0
  25. package/dist/adapters/socket.options.d.ts +3 -0
  26. package/dist/adapters/socket.options.js +16 -0
  27. package/dist/config/config.manager.d.ts +80 -3
  28. package/dist/config/config.manager.js +269 -89
  29. package/dist/config/config.types.d.ts +89 -13
  30. package/dist/core/delivery/buckets-request.d.ts +2 -0
  31. package/dist/core/delivery/buckets-request.js +18 -0
  32. package/dist/core/delivery/index.d.ts +1 -0
  33. package/dist/core/delivery/index.js +1 -0
  34. package/dist/core/delivery/metrics.publisher.d.ts +23 -10
  35. package/dist/core/delivery/metrics.publisher.js +22 -22
  36. package/dist/core/delivery/websocket.events.d.ts +14 -3
  37. package/dist/core/delivery/websocket.events.js +13 -2
  38. package/dist/core/domain/correlation.types.d.ts +37 -0
  39. package/dist/core/domain/correlation.types.js +2 -0
  40. package/dist/core/domain/dashboard.types.d.ts +16 -69
  41. package/dist/core/domain/dashboard.types.js +29 -0
  42. package/dist/core/domain/endpoints.types.d.ts +3 -0
  43. package/dist/core/domain/event.types.d.ts +14 -0
  44. package/dist/core/domain/event.types.js +2 -0
  45. package/dist/core/domain/incident.types.d.ts +50 -0
  46. package/dist/core/domain/incident.types.js +2 -0
  47. package/dist/core/domain/index.d.ts +5 -0
  48. package/dist/core/domain/index.js +5 -0
  49. package/dist/core/domain/live-bucket.types.d.ts +86 -0
  50. package/dist/core/domain/live-bucket.types.js +2 -0
  51. package/dist/core/domain/metrics.types.d.ts +41 -11
  52. package/dist/core/domain/session.types.d.ts +93 -0
  53. package/dist/core/domain/session.types.js +2 -0
  54. package/dist/core/domain/telemetry.types.d.ts +1 -0
  55. package/dist/core/organizers/event.manager.d.ts +19 -0
  56. package/dist/core/organizers/event.manager.js +73 -0
  57. package/dist/core/organizers/index.d.ts +2 -0
  58. package/dist/core/organizers/index.js +18 -0
  59. package/dist/core/organizers/interval.manager.d.ts +18 -0
  60. package/dist/core/organizers/interval.manager.js +54 -0
  61. package/dist/core/storage/index.d.ts +1 -0
  62. package/dist/core/storage/index.js +1 -0
  63. package/dist/core/storage/local.repository.d.ts +12 -12
  64. package/dist/core/storage/local.repository.js +38 -38
  65. package/dist/core/storage/persistence/persistence-writer.d.ts +48 -0
  66. package/dist/core/storage/persistence/persistence-writer.js +191 -0
  67. package/dist/core/storage/persistence/segment-index.d.ts +27 -0
  68. package/dist/core/storage/persistence/segment-index.js +206 -0
  69. package/dist/core/storage/persistence/session-registry.d.ts +28 -0
  70. package/dist/core/storage/persistence/session-registry.js +127 -0
  71. package/dist/core/storage/persistence/session-summary.d.ts +3 -0
  72. package/dist/core/storage/persistence/session-summary.js +112 -0
  73. package/dist/core/storage/persistence.layer.d.ts +69 -0
  74. package/dist/core/storage/persistence.layer.js +404 -0
  75. package/dist/core/storage/runtime/anomaly-detector.d.ts +11 -0
  76. package/dist/core/storage/runtime/anomaly-detector.js +42 -0
  77. package/dist/core/storage/stores/analytics.store.d.ts +5 -5
  78. package/dist/core/storage/stores/analytics.store.js +39 -12
  79. package/dist/core/storage/stores/bucket-metric.d.ts +85 -0
  80. package/dist/core/storage/stores/bucket-metric.js +168 -0
  81. package/dist/core/storage/stores/bucket-view.d.ts +44 -0
  82. package/dist/core/storage/stores/bucket-view.js +63 -0
  83. package/dist/core/storage/stores/bucket.store.d.ts +39 -36
  84. package/dist/core/storage/stores/bucket.store.js +112 -60
  85. package/dist/core/storage/stores/dashboard.store.d.ts +11 -4
  86. package/dist/core/storage/stores/dashboard.store.js +179 -47
  87. package/dist/core/storage/stores/endpoint.store.d.ts +1 -0
  88. package/dist/core/storage/stores/endpoint.store.js +21 -5
  89. package/dist/core/storage/stores/index.d.ts +0 -7
  90. package/dist/core/storage/stores/index.js +0 -7
  91. package/dist/core/storage/stores/metrics.store.d.ts +1 -1
  92. package/dist/core/storage/stores/metrics.store.js +1 -0
  93. package/dist/core/storage/stores/runtime.store.d.ts +77 -0
  94. package/dist/core/storage/stores/runtime.store.js +222 -0
  95. package/dist/core/storage/utility/common.d.ts +1 -0
  96. package/dist/core/storage/utility/common.js +11 -0
  97. package/dist/core/storage/utility/file-buffer.d.ts +31 -0
  98. package/dist/core/storage/utility/file-buffer.js +238 -0
  99. package/dist/core/storage/utility/histogram.d.ts +1 -2
  100. package/dist/core/storage/utility/histogram.js +1 -2
  101. package/dist/core/storage/utility/index.d.ts +2 -0
  102. package/dist/core/storage/utility/index.js +2 -0
  103. package/dist/core/storage/utility/persistence-files.d.ts +3 -0
  104. package/dist/core/storage/utility/persistence-files.js +34 -0
  105. package/dist/core/storage/utility/persistence-writer.d.ts +39 -0
  106. package/dist/core/storage/utility/persistence-writer.js +183 -0
  107. package/dist/core/storage/utility/session-export.d.ts +3 -0
  108. package/dist/core/storage/utility/session-export.js +31 -0
  109. package/dist/core/storage/utility/session-registry.d.ts +21 -0
  110. package/dist/core/storage/utility/session-registry.js +91 -0
  111. package/dist/core/storage/utility/session-window.d.ts +8 -0
  112. package/dist/core/storage/utility/session-window.js +43 -0
  113. package/dist/core/telemetry/analytics.service.d.ts +18 -0
  114. package/dist/core/telemetry/analytics.service.js +100 -0
  115. package/dist/core/telemetry/collector.service.d.ts +17 -15
  116. package/dist/core/telemetry/collector.service.js +23 -80
  117. package/dist/core/telemetry/correlation.service.d.ts +57 -9
  118. package/dist/core/telemetry/correlation.service.js +246 -54
  119. package/dist/core/telemetry/dashboard-live.service.d.ts +10 -0
  120. package/dist/core/telemetry/dashboard-live.service.js +110 -0
  121. package/dist/core/telemetry/dashboard.service.d.ts +20 -0
  122. package/dist/core/telemetry/dashboard.service.js +140 -0
  123. package/dist/core/telemetry/incident.service.d.ts +71 -0
  124. package/dist/core/telemetry/incident.service.js +239 -0
  125. package/dist/core/telemetry/logger.d.ts +4 -0
  126. package/dist/core/telemetry/logger.js +5 -2
  127. package/dist/core/telemetry/runtime.service.d.ts +14 -0
  128. package/dist/core/telemetry/runtime.service.js +56 -0
  129. package/dist/core/telemetry/telemetry-query.service.d.ts +82 -0
  130. package/dist/core/telemetry/telemetry-query.service.js +231 -0
  131. package/dist/core/telemetry/telemetry.service.d.ts +10 -4
  132. package/dist/core/telemetry/telemetry.service.js +60 -10
  133. package/dist/core/telemetry/utility/correlation-analysis.d.ts +9 -0
  134. package/dist/core/telemetry/utility/correlation-analysis.js +143 -0
  135. package/dist/core/telemetry/utility/correlation-finding.d.ts +70 -0
  136. package/dist/core/telemetry/utility/correlation-finding.js +41 -0
  137. package/dist/core/telemetry/utility/correlation-input.d.ts +59 -0
  138. package/dist/core/telemetry/utility/correlation-input.js +139 -0
  139. package/dist/core/telemetry/utility/correlation-replay.d.ts +24 -0
  140. package/dist/core/telemetry/utility/correlation-replay.js +46 -0
  141. package/dist/core/utility/correlation.analysis.d.ts +9 -0
  142. package/dist/core/utility/correlation.analysis.js +144 -0
  143. package/dist/core/utility/statistics.d.ts +65 -0
  144. package/dist/core/utility/statistics.js +141 -0
  145. package/dist/express/index.d.ts +1 -1
  146. package/dist/express/index.js +7 -5
  147. package/dist/express/metrics-websocket.adapter.d.ts +8 -2
  148. package/dist/express/metrics-websocket.adapter.js +52 -19
  149. package/dist/express/metrics.adapter.d.ts +1 -0
  150. package/dist/express/metrics.adapter.js +8 -1
  151. package/dist/express/metrics.bootstrap.d.ts +6 -1
  152. package/dist/express/metrics.bootstrap.js +48 -22
  153. package/dist/express/metrics.dashboard.d.ts +2 -1
  154. package/dist/express/metrics.dashboard.js +4 -1
  155. package/dist/express/metrics.middleware.d.ts +2 -1
  156. package/dist/express/metrics.middleware.js +23 -20
  157. package/dist/nest/metrics-websocket.adapter.d.ts +19 -3
  158. package/dist/nest/metrics-websocket.adapter.js +101 -21
  159. package/dist/nest/metrics.adapter.d.ts +4 -1
  160. package/dist/nest/metrics.adapter.js +24 -1
  161. package/dist/nest/metrics.bootstrap.service.d.ts +7 -3
  162. package/dist/nest/metrics.bootstrap.service.js +56 -21
  163. package/dist/nest/metrics.interceptor.d.ts +3 -3
  164. package/dist/nest/metrics.interceptor.js +11 -8
  165. package/dist/nest/metrics.module.d.ts +3 -0
  166. package/dist/nest/metrics.module.js +27 -9
  167. package/dist/runtime/index.d.ts +32 -0
  168. package/dist/runtime/index.js +104 -0
  169. package/dist/simulation/simulation.d.ts +5 -16
  170. package/dist/simulation/simulation.js +5 -8
  171. package/package.json +2 -1
  172. package/dashboard-out/_next/static/chunks/23soo6qkun-yv.js +0 -1
  173. package/dashboard-out/_next/static/chunks/3xoopocxi2vi8.css +0 -3
  174. package/dashboard-out/_next/static/chunks/3z-nzyp9z8vih.js +0 -3
  175. /package/dashboard-out/_next/static/{kFIRZt4fuL4Zsh38-jGui → 17egwqgk36_DSRF55LJZG}/_buildManifest.js +0 -0
  176. /package/dashboard-out/_next/static/{kFIRZt4fuL4Zsh38-jGui → 17egwqgk36_DSRF55LJZG}/_clientMiddlewareManifest.js +0 -0
  177. /package/dashboard-out/_next/static/{kFIRZt4fuL4Zsh38-jGui → 17egwqgk36_DSRF55LJZG}/_ssgManifest.js +0 -0
@@ -0,0 +1,3 @@
1
+ @font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/fef07dbb0973bf53-s.3p2_lha1f2xer.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/8a480f0b521d4e75-s.1qq4vpdcun5oj.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/53b9e256198e5412-s.390ncx5urfkfu.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/7178b3e590c64307-s.21jp631_3pja2.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Geist Fallback;src:local(Arial);ascent-override:95.94%;descent-override:28.16%;line-gap-override:0.0%;size-adjust:104.76%}.geist_a71539c9-module__T19VSG__className{font-family:Geist,Geist Fallback;font-style:normal}.geist_a71539c9-module__T19VSG__variable{--font-geist-sans:"Geist", "Geist Fallback"}
2
+ @font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/5ce348bf30bf5439-s.31988l_ccedte.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/4fa387ec64143e14-s.2tuy5pz7dlieh.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/6306c77e7c8268e4-s.2dbetqa9o8jxf.woff2)format("woff2");unicode-range:U+2000-2001,U+2004-2008,U+200A,U+23B8-23BD,U+2500-259F}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/7d817b4c03b0c5f1-s.1uyisp29ctx0d.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/bbc41e54d2fcbd21-s.1rgnod-3esatf.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/797e433ab948586e-s.p.0r6juujl39pe6.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Geist Mono Fallback;src:local(Arial);ascent-override:74.67%;descent-override:21.92%;line-gap-override:0.0%;size-adjust:134.59%}.geist_mono_8d43a2aa-module__8Li5zG__className{font-family:Geist Mono,Geist Mono Fallback;font-style:normal}.geist_mono_8d43a2aa-module__8Li5zG__variable{--font-geist-mono:"Geist Mono", "Geist Mono Fallback"}
3
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--color-yellow-400:#fac800;--color-yellow-500:#edb200;--color-yellow-600:#cd8900;--color-green-500:#00c758;--color-blue-400:#54a2ff;--color-blue-500:#3080ff;--color-gray-100:#f3f4f6;--color-gray-300:#d1d5dc;--color-gray-400:#99a1af;--color-gray-500:#6a7282;--color-gray-600:#4a5565;--color-gray-700:#364153;--color-gray-800:#1e2939;--color-gray-900:#101828;--color-gray-950:#030712;--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wider:.05em;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-geist-sans);--default-mono-font-family:var(--font-geist-mono);--color-background:var(--variant-2);--color-foreground:var(--variant-6);--color-accent:var(--variant-4);--color-accent-soft:var(--variant-5)}@supports (color:lab(0% 0 0)){:root,:host{--color-yellow-400:lab(83.2664% 8.65132 106.895);--color-yellow-500:lab(76.3898% 14.5258 98.4589);--color-yellow-600:lab(62.7799% 22.4197 86.1544);--color-green-500:lab(70.5521% -66.5147 45.8073);--color-blue-400:lab(65.0361% -1.42065 -56.9802);--color-blue-500:lab(54.1736% 13.3369 -74.6839);--color-gray-100:lab(96.1596% -.0823438 -1.13575);--color-gray-300:lab(85.1236% -.612259 -3.7138);--color-gray-400:lab(65.9269% -.832707 -8.17473);--color-gray-500:lab(47.7841% -.393182 -10.0268);--color-gray-600:lab(35.6337% -1.58697 -10.8425);--color-gray-700:lab(27.1134% -.956401 -12.3224);--color-gray-800:lab(16.1051% -1.18239 -11.7533);--color-gray-900:lab(8.11897% .811279 -12.254);--color-gray-950:lab(1.90334% .278696 -5.48866)}}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.top-0{top:0}.top-7{top:calc(var(--spacing) * 7)}.bottom-0{bottom:0}.bottom-3{bottom:calc(var(--spacing) * 3)}.bottom-7{bottom:calc(var(--spacing) * 7)}.bottom-full{bottom:100%}.left-0{left:0}.left-2\.5{left:calc(var(--spacing) * 2.5)}.left-\[15px\]{left:15px}.z-10{z-index:10}.z-\[9999\]{z-index:9999}.col-span-2{grid-column:span 2/span 2}.col-span-3{grid-column:span 3/span 3}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-2{margin:calc(var(--spacing) * 2)}.m-4{margin:calc(var(--spacing) * 4)}.mx-1{margin-inline:var(--spacing)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-auto{margin-inline:auto}.my-2{margin-block:calc(var(--spacing) * 2)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-4{margin-top:calc(var(--spacing) * 4)}.-mb-1{margin-bottom:calc(var(--spacing) * -1)}.mb-1{margin-bottom:var(--spacing)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.ml-1{margin-left:var(--spacing)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-4{margin-left:calc(var(--spacing) * 4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-10{height:calc(var(--spacing) * 10)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-24{height:calc(var(--spacing) * 24)}.h-48{height:calc(var(--spacing) * 48)}.h-80{height:calc(var(--spacing) * 80)}.h-\[10px\]{height:10px}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\[12px\]{max-height:12px}.max-h-\[300px\]{max-height:300px}.min-h-12{min-height:calc(var(--spacing) * 12)}.min-h-\[200px\]{min-height:200px}.min-h-screen{min-height:100vh}.w-0{width:0}.w-2{width:calc(var(--spacing) * 2)}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-3{width:calc(var(--spacing) * 3)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-11{width:calc(var(--spacing) * 11)}.w-20{width:calc(var(--spacing) * 20)}.w-32{width:calc(var(--spacing) * 32)}.w-\[1px\]{width:1px}.w-full{width:100%}.w-px{width:1px}.w-screen{width:100vw}.max-w-\[220px\]{max-width:220px}.min-w-full{min-width:100%}.flex-1{flex:1}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.-translate-x-1\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-75{--tw-scale-x:75%;--tw-scale-y:75%;--tw-scale-z:75%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-110{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.rotate-45{rotate:45deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-border>:not(:last-child)){border-color:var(--variant-3)}:where(.divide-gray-800>:not(:last-child)){border-color:var(--color-gray-800)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-r-sm{border-top-right-radius:var(--radius-sm);border-bottom-right-radius:var(--radius-sm)}.border,.border-1{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b,.border-b-1{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-l-3{border-left-style:var(--tw-border-style);border-left-width:3px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-\[var\(--chart-1\)\]{border-color:var(--chart-1)}.border-\[var\(--chart-3\)\]{border-color:var(--chart-3)}.border-\[var\(--chart-4\)\]{border-color:var(--chart-4)}.border-\[var\(--chart-5\)\]{border-color:var(--chart-5)}.border-\[var\(--chart-6\)\]{border-color:var(--chart-6)}.border-\[var\(--variant-3\)\]{border-color:var(--variant-3)}.border-\[var\(--variant-4\)\],.border-accent{border-color:var(--variant-4)}.border-accent-soft{border-color:var(--variant-5)}.border-blue-500{border-color:var(--color-blue-500)}.border-border{border-color:var(--variant-3)}.border-foreground{border-color:var(--variant-6)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-800{border-color:var(--color-gray-800)}.border-green-500{border-color:var(--color-green-500)}.border-yellow-500{border-color:var(--color-yellow-500)}.border-t-accent{border-top-color:var(--variant-4)}.bg-\[\#10B981\]{background-color:#10b981}.bg-\[\#EF4444\]{background-color:#ef4444}.bg-\[var\(--variant-1\)\]{background-color:var(--variant-1)}.bg-\[var\(--variant-3\)\]{background-color:var(--variant-3)}.bg-\[var\(--variant-4\)\]{background-color:var(--variant-4)}.bg-\[var\(--variant-5\)\]{background-color:var(--variant-5)}.bg-accent{background-color:var(--variant-4)}.bg-background{background-color:var(--variant-2)}.bg-black{background-color:var(--color-black)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-border{background-color:var(--variant-3)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-gray-900{background-color:var(--color-gray-900)}.bg-gray-950{background-color:var(--color-gray-950)}.bg-green-500{background-color:var(--color-green-500)}.bg-yellow-400{background-color:var(--color-yellow-400)}.stroke-2{stroke-width:2px}.p-1{padding:var(--spacing)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-8{padding-bottom:calc(var(--spacing) * 8)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-3{padding-left:calc(var(--spacing) * 3)}.text-center{text-align:center}.text-end{text-align:end}.text-left{text-align:left}.text-right{text-align:right}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[10px\]{font-size:10px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.break-words{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.text-\[\#9CA3AF\]{color:#9ca3af}.text-\[var\(--color-accent\)\]{color:var(--color-accent)}.text-\[var\(--variant-1\)\]{color:var(--variant-1)}.text-\[var\(--variant-4\)\]{color:var(--variant-4)}.text-\[var\(--variant-6\)\]{color:var(--variant-6)}.text-accent{color:var(--variant-4)}.text-accent-soft{color:var(--variant-5)}.text-foreground{color:var(--variant-6)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-white{color:var(--color-white)}.text-yellow-600{color:var(--color-yellow-600)}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-60{opacity:.6}.shadow-inner{--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-blue-500\/30{--tw-shadow-color:#3080ff4d}@supports (color:color-mix(in lab, red, red)){.shadow-blue-500\/30{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-blue-500) 30%, transparent) var(--tw-shadow-alpha), transparent)}}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.group-hover\:scale-100:is(:where(.group):hover *){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:bg-\[var\(--variant-2\)\]:hover{background-color:var(--variant-2)}.hover\:bg-\[var\(--variant-3\)\]:hover{background-color:var(--variant-3)}.hover\:bg-accent\/10:hover{background-color:var(--variant-4)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-accent\/10:hover{background-color:color-mix(in oklab, var(--variant-4) 10%, transparent)}}.hover\:stroke-white\/50:hover{stroke:#ffffff80}@supports (color:color-mix(in lab, red, red)){.hover\:stroke-white\/50:hover{stroke:color-mix(in oklab, var(--color-white) 50%, transparent)}}.hover\:stroke-2:hover{stroke-width:2px}.hover\:text-gray-900:hover{color:var(--color-gray-900)}.hover\:opacity-80:hover{opacity:.8}}.focus\:border-accent:focus{border-color:var(--variant-4)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-blue-400:focus-visible{--tw-ring-color:var(--color-blue-400)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-40:disabled{opacity:.4}@media (min-width:40rem){.sm\:mx-2{margin-inline:calc(var(--spacing) * 2)}.sm\:h-5{height:calc(var(--spacing) * 5)}.sm\:h-6{height:calc(var(--spacing) * 6)}.sm\:w-5{width:calc(var(--spacing) * 5)}.sm\:w-6{width:calc(var(--spacing) * 6)}.sm\:w-32{width:calc(var(--spacing) * 32)}.sm\:w-64{width:calc(var(--spacing) * 64)}.sm\:w-auto{width:auto}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:justify-between{justify-content:space-between}.sm\:gap-3{gap:calc(var(--spacing) * 3)}.sm\:px-4{padding-inline:calc(var(--spacing) * 4)}.sm\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.sm\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media (min-width:48rem){.md\:col-span-2{grid-column:span 2/span 2}.md\:col-span-3{grid-column:span 3/span 3}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\:grid-cols-\[1fr_5fr\]{grid-template-columns:1fr 5fr}}@media (min-width:64rem){.lg\:col-span-2{grid-column:span 2/span 2}.lg\:col-span-3{grid-column:span 3/span 3}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (prefers-color-scheme:dark){.dark\:bg-gray-700{background-color:var(--color-gray-700)}.dark\:text-white{color:var(--color-white)}}}:root{--chart-1:#059669;--chart-2:#4f46e5;--chart-3:#10b981;--chart-4:#d97706;--chart-5:#dc2626;--chart-6:#0d9488;--variant-6:#18221f;--variant-5:#52635d;--variant-4:#059669;--variant-3:#d1ded9;--variant-2:#f2f5f4;--variant-1:#fff}.dark{--chart-1:#34d399;--chart-2:#818cf8;--chart-3:#6ee7b7;--chart-4:#fbbf24;--chart-5:#f87171;--chart-6:#2dd4bf;--variant-6:#e2e8f0;--variant-5:#94a3b8;--variant-4:#34d399;--variant-3:#1e293b;--variant-2:#0b1311;--variant-1:#121e1b}body{background:radial-gradient(circle at top, var(--variant-3), transparent 70%), linear-gradient(180deg, var(--color-background) 0%, var(--color-background) 100%);color:var(--color-foreground);font-family:var(--font-geist-sans), Arial, Helvetica, sans-serif;min-height:100vh}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,49645,96780,10645,47808,56820,84703,92432,9958,63637,18376,87668,e=>{"use strict";var t=e.i(43476);e.s(["default",0,function(e){return(0,t.jsx)("svg",{className:"w-6 h-6 text-gray-800 dark:text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24",...e,children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M17 10v1.126c.367.095.714.24 1.032.428l.796-.797 1.415 1.415-.797.796c.188.318.333.665.428 1.032H21v2h-1.126c-.095.367-.24.714-.428 1.032l.797.796-1.415 1.415-.796-.797a3.979 3.979 0 0 1-1.032.428V20h-2v-1.126a3.977 3.977 0 0 1-1.032-.428l-.796.797-1.415-1.415.797-.796A3.975 3.975 0 0 1 12.126 16H11v-2h1.126c.095-.367.24-.714.428-1.032l-.797-.796 1.415-1.415.796.797A3.977 3.977 0 0 1 15 11.126V10h2Zm.406 3.578.016.016c.354.358.574.85.578 1.392v.028a2 2 0 0 1-3.409 1.406l-.01-.012a2 2 0 0 1 2.826-2.83ZM5 8a4 4 0 1 1 7.938.703 7.029 7.029 0 0 0-3.235 3.235A4 4 0 0 1 5 8Zm4.29 5H7a4 4 0 0 0-4 4v1a2 2 0 0 0 2 2h6.101A6.979 6.979 0 0 1 9 15c0-.695.101-1.366.29-2Z",clipRule:"evenodd"})})}],96780),e.s(["default",0,function(e){return(0,t.jsxs)("svg",{className:"w-6 h-6 text-gray-800 dark:text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24",...e,children:[(0,t.jsx)("path",{fillRule:"evenodd",d:"M20 10H4v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8ZM9 13v-1h6v1a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1Z",clipRule:"evenodd"}),(0,t.jsx)("path",{d:"M2 6a2 2 0 0 1 2-2h16a2 2 0 1 1 0 4H4a2 2 0 0 1-2-2Z"})]})}],10645),e.s(["default",0,function(e){return(0,t.jsxs)("svg",{className:"w-6 h-6 text-gray-800 dark:text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24",...e,children:[(0,t.jsx)("path",{d:"M3 4.92857C3 3.90506 3.80497 3 4.88889 3H19.1111C20.195 3 21 3.90506 21 4.92857V13h-3v-2c0-.5523-.4477-1-1-1h-4c-.5523 0-1 .4477-1 1v2H3V4.92857ZM3 15v1.0714C3 17.0949 3.80497 18 4.88889 18h3.47608L7.2318 19.3598c-.35356.4243-.29624 1.0548.12804 1.4084.42428.3536 1.05484.2962 1.40841-.128L10.9684 18h2.0632l2.2002 2.6402c.3535.4242.9841.4816 1.4084.128.4242-.3536.4816-.9841.128-1.4084L15.635 18h3.4761C20.195 18 21 17.0949 21 16.0714V15H3Z"}),(0,t.jsx)("path",{d:"M16 12v1h-2v-1h2Z"})]})}],47808),e.s(["default",0,function(e){return(0,t.jsx)("svg",{className:"w-6 h-6 text-gray-800 dark:text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24",...e,children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M9 7V2.221a2 2 0 0 0-.5.365L4.586 6.5a2 2 0 0 0-.365.5H9Zm2 0V2h7a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V9h5a2 2 0 0 0 2-2Zm-1 9a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2Zm2-5a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0v-6a1 1 0 0 1 1-1Zm4 4a1 1 0 1 0-2 0v3a1 1 0 1 0 2 0v-3Z",clipRule:"evenodd"})})}],56820),e.s(["default",0,function(e){return(0,t.jsx)("svg",{className:"w-6 h-6 text-gray-800 dark:text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24",...e,children:(0,t.jsx)("path",{d:"m7.4 3.736 3.43 3.429A5.046 5.046 0 0 1 12.133 7c.356.01.71.06 1.056.147l3.41-3.412a2.32 2.32 0 0 1 .451-.344A9.89 9.89 0 0 0 12.268 2a10.022 10.022 0 0 0-5.322 1.392c.165.095.318.211.454.344Zm11.451 1.54-.127-.127a.5.5 0 0 0-.706 0l-2.932 2.932c.03.023.05.054.078.077.237.194.454.41.651.645.033.038.077.067.11.107l2.926-2.927a.5.5 0 0 0 0-.707Zm-2.931 9.81c-.025.03-.058.052-.082.082a4.97 4.97 0 0 1-.633.639c-.04.036-.072.083-.115.117l2.927 2.927a.5.5 0 0 0 .707 0l.127-.127a.5.5 0 0 0 0-.707l-2.932-2.931Zm-1.443-4.763a3.037 3.037 0 0 0-1.383-1.1l-.012-.007a2.956 2.956 0 0 0-1-.213H12a2.964 2.964 0 0 0-2.122.893c-.285.29-.509.634-.657 1.013l-.009.016a2.96 2.96 0 0 0-.21 1 2.99 2.99 0 0 0 .488 1.716l.032.04a3.04 3.04 0 0 0 1.384 1.1l.012.007c.319.129.657.2 1 .213.393.015.784-.05 1.15-.192.012-.005.021-.013.033-.018a3.01 3.01 0 0 0 1.676-1.7v-.007a2.89 2.89 0 0 0 0-2.207 2.868 2.868 0 0 0-.27-.515c-.007-.012-.02-.025-.03-.039Zm6.137-3.373a2.53 2.53 0 0 1-.349.447l-3.426 3.426c.112.428.166.869.161 1.311a4.954 4.954 0 0 1-.148 1.054l3.413 3.412c.133.134.249.283.347.444A9.88 9.88 0 0 0 22 12.269a9.913 9.913 0 0 0-1.386-5.319ZM16.6 20.264l-3.42-3.421c-.386.1-.782.152-1.18.157h-.135c-.356-.01-.71-.06-1.056-.147L7.4 20.265a2.503 2.503 0 0 1-.444.347A9.884 9.884 0 0 0 11.732 22H12a9.9 9.9 0 0 0 5.044-1.388 2.515 2.515 0 0 1-.444-.348ZM3.735 16.6l3.426-3.426a4.608 4.608 0 0 1-.013-2.367L3.735 7.4a2.508 2.508 0 0 1-.349-.447 9.889 9.889 0 0 0 0 10.1 2.48 2.48 0 0 1 .35-.453Zm5.101-.758a4.959 4.959 0 0 1-.65-.645c-.034-.038-.078-.067-.11-.107L5.15 18.017a.5.5 0 0 0 0 .707l.127.127a.5.5 0 0 0 .706 0l2.932-2.933c-.029-.018-.049-.053-.078-.076Zm-.755-6.928c.03-.037.07-.063.1-.1.183-.22.383-.423.6-.609.046-.04.081-.092.128-.13L5.983 5.149a.5.5 0 0 0-.707 0l-.127.127a.5.5 0 0 0 0 .707l2.932 2.931Z"})})}],84703),e.s(["default",0,function(e){return(0,t.jsx)("svg",{className:"w-6 h-6 text-gray-800 dark:text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24",...e,children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm9.008-3.018a1.502 1.502 0 0 1 2.522 1.159v.024a1.44 1.44 0 0 1-1.493 1.418 1 1 0 0 0-1.037.999V14a1 1 0 1 0 2 0v-.539a3.44 3.44 0 0 0 2.529-3.256 3.502 3.502 0 0 0-7-.255 1 1 0 0 0 2 .076c.014-.398.187-.774.48-1.044Zm.982 7.026a1 1 0 1 0 0 2H12a1 1 0 1 0 0-2h-.01Z",clipRule:"evenodd"})})}],92432),e.s(["default",0,function(e){return(0,t.jsx)("svg",{className:"w-6 h-6 text-gray-800 dark:text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24",...e,children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M13 3a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0V3ZM6.343 4.929A1 1 0 0 0 4.93 6.343l1.414 1.414a1 1 0 0 0 1.414-1.414L6.343 4.929Zm12.728 1.414a1 1 0 0 0-1.414-1.414l-1.414 1.414a1 1 0 0 0 1.414 1.414l1.414-1.414ZM12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10Zm-9 4a1 1 0 1 0 0 2h2a1 1 0 1 0 0-2H3Zm16 0a1 1 0 1 0 0 2h2a1 1 0 1 0 0-2h-2ZM7.757 17.657a1 1 0 1 0-1.414-1.414l-1.414 1.414a1 1 0 1 0 1.414 1.414l1.414-1.414Zm9.9-1.414a1 1 0 0 0-1.414 1.414l1.414 1.414a1 1 0 0 0 1.414-1.414l-1.414-1.414ZM13 19a1 1 0 1 0-2 0v2a1 1 0 1 0 2 0v-2Z",clipRule:"evenodd"})})}],9958),e.s(["default",0,function(e){return(0,t.jsx)("svg",{className:"w-6 h-6 text-gray-800 dark:text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24",...e,children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M11.675 2.015a.998.998 0 0 0-.403.011C6.09 2.4 2 6.722 2 12c0 5.523 4.477 10 10 10 4.356 0 8.058-2.784 9.43-6.667a1 1 0 0 0-1.02-1.33c-.08.006-.105.005-.127.005h-.001l-.028-.002A5.227 5.227 0 0 0 20 14a8 8 0 0 1-8-8c0-.952.121-1.752.404-2.558a.996.996 0 0 0 .096-.428V3a1 1 0 0 0-.825-.985Z",clipRule:"evenodd"})})}],63637),e.s(["default",0,function(e){return(0,t.jsxs)("svg",{className:"w-6 h-6 text-gray-800 dark:text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24",...e,children:[(0,t.jsx)("path",{fillRule:"evenodd",d:"M13 11.15V4a1 1 0 1 0-2 0v7.15L8.78 8.374a1 1 0 1 0-1.56 1.25l4 5a1 1 0 0 0 1.56 0l4-5a1 1 0 1 0-1.56-1.25L13 11.15Z",clipRule:"evenodd"}),(0,t.jsx)("path",{fillRule:"evenodd",d:"M9.657 15.874 7.358 13H5a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-2.358l-2.3 2.874a3 3 0 0 1-4.685 0ZM17 16a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2H17Z",clipRule:"evenodd"})]})}],18376),e.s(["default",0,function(e){return(0,t.jsx)("svg",{className:"w-6 h-6 text-gray-800 dark:text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",...e,children:(0,t.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M15.041 13.862A4.999 4.999 0 0 1 17 17.831V21M7 3v3.169a5 5 0 0 0 1.891 3.916M17 3v3.169a5 5 0 0 1-2.428 4.288l-5.144 3.086A5 5 0 0 0 7 17.831V21M7 5h10M7.399 8h9.252M8 16h8.652M7 19h10"})})}],87668),e.s([],49645)},69507,25516,e=>{"use strict";var t=e.i(43476);let s=({size:e=64,color:s="#FFFFFF",className:r="",...i})=>(0,t.jsxs)("svg",{width:e,height:e,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,...i,children:[(0,t.jsx)("circle",{cx:"100",cy:"100",r:"75",stroke:s,strokeWidth:"7",strokeOpacity:"0.25"}),(0,t.jsx)("path",{d:"M 45 135 A 65 65 0 1 1 155 135",stroke:s,strokeWidth:"10",strokeLinecap:"round"}),(0,t.jsx)("circle",{cx:"50",cy:"130",r:"4",fill:s}),(0,t.jsx)("circle",{cx:"100",cy:"42",r:"4",fill:s}),(0,t.jsx)("circle",{cx:"150",cy:"130",r:"4",fill:s}),(0,t.jsx)("rect",{x:"78",y:"130",width:"7",height:"18",rx:"3.5",fill:s,fillOpacity:"0.5"}),(0,t.jsx)("rect",{x:"92",y:"118",width:"7",height:"30",rx:"3.5",fill:s,fillOpacity:"0.9"}),(0,t.jsx)("rect",{x:"106",y:"124",width:"7",height:"24",rx:"3.5",fill:s,fillOpacity:"0.6"}),(0,t.jsx)("path",{d:"M 100 100 L 132 68",stroke:s,strokeWidth:"8",strokeLinecap:"round"}),(0,t.jsx)("circle",{cx:"100",cy:"100",r:"8",fill:s})]});e.s(["default",0,s],25516),e.s(["default",0,({text:e="Loading..."})=>(0,t.jsxs)("div",{className:"flex items-center justify-center h-screen w-screen flex-col",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center w-20 h-20 mb-4",children:[(0,t.jsx)("div",{className:"w-20 h-20 absolute rounded-full border-2 border-accent-soft animate-spin border-t-accent"}),(0,t.jsx)(s,{size:60,color:"var(--color-foreground)"})]}),(0,t.jsx)("p",{className:"text-lg",children:e})]})],69507)},11350,e=>{"use strict";let t,s,r;var i,n,o,a=e.i(43476),h=e.i(71645);let l=Object.create(null);l.open="0",l.close="1",l.ping="2",l.pong="3",l.message="4",l.upgrade="5",l.noop="6";let c=Object.create(null);Object.keys(l).forEach(e=>{c[l[e]]=e});let u={type:"error",data:"parser error"},p="function"==typeof Blob||"u">typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),d="function"==typeof ArrayBuffer,f=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,m=({type:e,data:t},s,r)=>{if(p&&t instanceof Blob)if(s)return r(t);else return g(t,r);if(d&&(t instanceof ArrayBuffer||f(t)))if(s)return r(t);else return g(new Blob([t]),r);return r(l[e]+(t||""))},g=(e,t)=>{let s=new FileReader;return s.onload=function(){t("b"+(s.result.split(",")[1]||""))},s.readAsDataURL(e)};function y(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_="u"<typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<v.length;e++)_[v.charCodeAt(e)]=e;let b="function"==typeof ArrayBuffer,E=(e,t)=>{if("string"!=typeof e)return{type:"message",data:S(e,t)};let s=e.charAt(0);return"b"===s?{type:"message",data:w(e.substring(1),t)}:c[s]?e.length>1?{type:c[s],data:e.substring(1)}:{type:c[s]}:u},w=(e,t)=>b?S((e=>{let t=.75*e.length,s=e.length,r,i=0,n,o,a,h;"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);let l=new ArrayBuffer(t),c=new Uint8Array(l);for(r=0;r<s;r+=4)n=_[e.charCodeAt(r)],o=_[e.charCodeAt(r+1)],a=_[e.charCodeAt(r+2)],h=_[e.charCodeAt(r+3)],c[i++]=n<<2|o>>4,c[i++]=(15&o)<<4|a>>2,c[i++]=(3&a)<<6|63&h;return l})(e),t):{base64:!0,data:e},S=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer;function A(e){return e.reduce((e,t)=>e+t.length,0)}function k(e,t){if(e[0].length===t)return e.shift();let s=new Uint8Array(t),r=0;for(let i=0;i<t;i++)s[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),s}function T(e){if(e){var t=e;for(var s in T.prototype)t[s]=T.prototype[s];return t}}T.prototype.on=T.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},T.prototype.once=function(e,t){function s(){this.off(e,s),t.apply(this,arguments)}return s.fn=t,this.on(e,s),this},T.prototype.off=T.prototype.removeListener=T.prototype.removeAllListeners=T.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var s,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((s=r[i])===t||s.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},T.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),s=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(s){s=s.slice(0);for(var r=0,i=s.length;r<i;++r)s[r].apply(this,t)}return this},T.prototype.emitReserved=T.prototype.emit,T.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},T.prototype.hasListeners=function(e){return!!this.listeners(e).length};let R="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),x="u">typeof self?self:"u">typeof window?window:Function("return this")();function C(e,...t){return t.reduce((t,s)=>(e.hasOwnProperty(s)&&(t[s]=e[s]),t),{})}let O=x.setTimeout,N=x.clearTimeout;function L(e,t){t.useNativeTimers?(e.setTimeoutFn=O.bind(x),e.clearTimeoutFn=N.bind(x)):(e.setTimeoutFn=x.setTimeout.bind(x),e.clearTimeoutFn=x.clearTimeout.bind(x))}function B(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class M extends Error{constructor(e,t,s){super(e),this.description=t,this.context=s,this.type="TransportError"}}class I extends T{constructor(e){super(),this.writable=!1,L(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,s){return super.emitReserved("error",new M(e,t,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=E(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return -1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&443!==Number(this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){let t=function(e){let t="";for(let s in e)e.hasOwnProperty(s)&&(t.length&&(t+="&"),t+=encodeURIComponent(s)+"="+encodeURIComponent(e[s]));return t}(e);return t.length?"?"+t:""}}class P extends I{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let t=e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)};((e,t)=>{let s=e.split("\x1e"),r=[];for(let e=0;e<s.length;e++){let i=E(s[e],t);if(r.push(i),"error"===i.type)break}return r})(e,this.socket.binaryType).forEach(t),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){let e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){var t;let s,r,i;this.writable=!1,t=e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})},r=Array(s=e.length),i=0,e.forEach((e,n)=>{m(e,!1,e=>{r[n]=e,++i===s&&t(r.join("\x1e"))})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=B()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}let U=!1;try{U="u">typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}let j=U;function q(){}class D extends P{constructor(e){if(super(e),"u">typeof location){const t="https:"===location.protocol;let s=location.port;s||(s=t?"443":"80"),this.xd="u">typeof location&&e.hostname!==location.hostname||s!==e.port}}doWrite(e,t){let s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}class H extends T{constructor(e,t,s){super(),this.createRequest=e,L(this,s),this._opts=s,this._method=s.method||"GET",this._uri=t,this._data=void 0!==s.data?s.data:null,this._create()}_create(){var e;let t=C(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;let s=this._xhr=this.createRequest(t);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders)for(let e in s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0),this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&s.setRequestHeader(e,this._opts.extraHeaders[e])}catch(e){}if("POST"===this._method)try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{s.setRequestHeader("Accept","*/*")}catch(e){}null==(e=this._opts.cookieJar)||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var e;3===s.readyState&&(null==(e=this._opts.cookieJar)||e.parseCookies(s.getResponseHeader("set-cookie"))),4===s.readyState&&(200===s.status||1223===s.status?this._onLoad():this.setTimeoutFn(()=>{this._onError("number"==typeof s.status?s.status:0)},0))},s.send(this._data)}catch(e){this.setTimeoutFn(()=>{this._onError(e)},0);return}"u">typeof document&&(this._index=H.requestsCount++,H.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=q,e)try{this._xhr.abort()}catch(e){}"u">typeof document&&delete H.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}function F(){for(let e in H.requests)H.requests.hasOwnProperty(e)&&H.requests[e].abort()}H.requestsCount=0,H.requests={},"u">typeof document&&("function"==typeof attachEvent?attachEvent("onunload",F):"function"==typeof addEventListener&&addEventListener("onpagehide"in x?"pagehide":"unload",F,!1));let V=(r=W({xdomain:!1}))&&null!==r.responseType;function W(e){let t=e.xdomain;try{if("u">typeof XMLHttpRequest&&(!t||j))return new XMLHttpRequest}catch(e){}if(!t)try{return new x[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(e){}}let Z="u">typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class z extends I{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,s=Z?{}:C(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,s)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let s=e[t],r=t===e.length-1;m(s,this.supportsBinary,e=>{try{this.doWrite(s,e)}catch(e){}r&&R(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=B()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}let Y=x.WebSocket||x.MozWebSocket,Q={websocket:class extends z{createSocket(e,t,s){return Z?new Y(e,t,s):t?new Y(e,t):new Y(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends I{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{var r,i;let n,o,a,h,l=(r=Number.MAX_SAFE_INTEGER,i=this.socket.binaryType,s||(s=new TextDecoder),n=[],o=0,a=-1,h=!1,new TransformStream({transform(e,t){for(n.push(e);;){if(0===o){if(1>A(n))break;let e=k(n,1);h=(128&e[0])==128,o=(a=127&e[0])<126?3:126===a?1:2}else if(1===o){if(2>A(n))break;let e=k(n,2);a=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),o=3}else if(2===o){if(8>A(n))break;let e=k(n,8),s=new DataView(e.buffer,e.byteOffset,e.length),r=s.getUint32(0);if(r>2097151){t.enqueue(u);break}a=0x100000000*r+s.getUint32(4),o=3}else{if(A(n)<a)break;let e=k(n,a);t.enqueue(E(h?e:s.decode(e),i)),o=0}if(0===a||a>r){t.enqueue(u);break}}}})),c=e.readable.pipeThrough(l).getReader(),g=new TransformStream({transform(e,s){var r;r=t=>{let r,i=t.length;if(i<126)new DataView((r=new Uint8Array(1)).buffer).setUint8(0,i);else if(i<65536){let e=new DataView((r=new Uint8Array(3)).buffer);e.setUint8(0,126),e.setUint16(1,i)}else{let e=new DataView((r=new Uint8Array(9)).buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(i))}e.data&&"string"!=typeof e.data&&(r[0]|=128),s.enqueue(r),s.enqueue(t)},p&&e.data instanceof Blob?e.data.arrayBuffer().then(y).then(r):d&&(e.data instanceof ArrayBuffer||f(e.data))?r(y(e.data)):m(e,!1,e=>{t||(t=new TextEncoder),r(t.encode(e))})}});g.readable.pipeTo(e.writable),this._writer=g.writable.getWriter();let v=()=>{c.read().then(({done:e,value:t})=>{e||(this.onPacket(t),v())}).catch(e=>{})};v();let _={type:"open"};this.query.sid&&(_.data=`{"sid":"${this.query.sid}"}`),this._writer.write(_).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let s=e[t],r=t===e.length-1;this._writer.write(s).then(()=>{r&&R(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null==(e=this._transport)||e.close()}},polling:class extends D{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=V&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new H(W,this.uri(),e)}}},K=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,G=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function $(e){var t,s;let r,i;if(e.length>8e3)throw"URI too long";let n=e,o=e.indexOf("["),a=e.indexOf("]");-1!=o&&-1!=a&&(e=e.substring(0,o)+e.substring(o,a).replace(/:/g,";")+e.substring(a,e.length));let h=K.exec(e||""),l={},c=14;for(;c--;)l[G[c]]=h[c]||"";return -1!=o&&-1!=a&&(l.source=n,l.host=l.host.substring(1,l.host.length-1).replace(/;/g,":"),l.authority=l.authority.replace("[","").replace("]","").replace(/;/g,":"),l.ipv6uri=!0),r=(t=l.path).replace(/\/{2,9}/g,"/").split("/"),("/"==t.slice(0,1)||0===t.length)&&r.splice(0,1),"/"==t.slice(-1)&&r.splice(r.length-1,1),l.pathNames=r,s=l.query,i={},s.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,s){t&&(i[t]=s)}),l.queryKey=i,l}let J="function"==typeof addEventListener&&"function"==typeof removeEventListener,X=[];J&&addEventListener("offline",()=>{X.forEach(e=>e())},!1);class ee extends T{constructor(e,t){if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&"object"==typeof e&&(t=e,e=null),e){const s=$(e);t.hostname=s.host,t.secure="https"===s.protocol||"wss"===s.protocol,t.port=s.port,s.query&&(t.query=s.query)}else t.host&&(t.hostname=$(t.host).host);L(this,t),this.secure=null!=t.secure?t.secure:"u">typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("u">typeof location?location.hostname:"localhost"),this.port=t.port||("u">typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(e=>{let t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},s=e.split("&");for(let e=0,r=s.length;e<r;e++){let r=s[e].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}(this.opts.query)),J&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},X.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);let s=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](s)}_open(){if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);let e=this.opts.rememberUpgrade&&ee.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";let t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",e=>this._onClose("transport close",e))}onOpen(){this.readyState="open",ee.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let t=Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let s=this.writeBuffer[t].data;if(s&&(e+="string"==typeof s?function(e){let t=0,s=0;for(let r=0,i=e.length;r<i;r++)(t=e.charCodeAt(r))<128?s+=1:t<2048?s+=2:t<55296||t>=57344?s+=3:(r++,s+=4);return s}(s):Math.ceil(1.33*(s.byteLength||s.size))),t>0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,R(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,s){return this._sendPacket("message",e,t,s),this}send(e,t,s){return this._sendPacket("message",e,t,s),this}_sendPacket(e,t,s,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof s&&(r=s,s=null),"closing"===this.readyState||"closed"===this.readyState)return;(s=s||{}).compress=!1!==s.compress;let i={type:e,data:t,options:s};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}_onError(e){if(ee.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),J&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let e=X.indexOf(this._offlineEventListener);-1!==e&&X.splice(e,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}ee.protocol=4;class et extends ee{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),s=!1;ee.priorWebsocketSuccess=!1;let r=()=>{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!s)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;ee.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{s||"closed"!==this.readyState&&(l(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{let e=Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}))};function i(){s||(s=!0,l(),t.close(),t=null)}let n=e=>{let s=Error("probe error: "+e);s.transport=t.name,i(),this.emitReserved("upgradeError",s)};function o(){n("transport closed")}function a(){n("socket closed")}function h(e){t&&e.name!==t.name&&i()}let l=()=>{t.removeListener("open",r),t.removeListener("error",n),t.removeListener("close",o),this.off("close",a),this.off("upgrading",h)};t.once("open",r),t.once("error",n),t.once("close",o),this.once("close",a),this.once("upgrading",h),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let s=0;s<e.length;s++)~this.transports.indexOf(e[s])&&t.push(e[s]);return t}}class es extends et{constructor(e,t={}){const s="object"==typeof e,r=s?{...e}:{...t};(!r.transports||r.transports&&"string"==typeof r.transports[0])&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(e=>Q[e]).filter(e=>!!e)),super(s?r:e,r)}}es.protocol;let er="function"==typeof ArrayBuffer,ei=Object.prototype.toString,en="function"==typeof Blob||"u">typeof Blob&&"[object BlobConstructor]"===ei.call(Blob),eo="function"==typeof File||"u">typeof File&&"[object FileConstructor]"===ei.call(File);function ea(e){return er&&(e instanceof ArrayBuffer||("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer))||en&&e instanceof Blob||eo&&e instanceof File}let eh=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];(i=o||(o={}))[i.CONNECT=0]="CONNECT",i[i.DISCONNECT=1]="DISCONNECT",i[i.EVENT=2]="EVENT",i[i.ACK=3]="ACK",i[i.CONNECT_ERROR=4]="CONNECT_ERROR",i[i.BINARY_EVENT=5]="BINARY_EVENT",i[i.BINARY_ACK=6]="BINARY_ACK";class el extends T{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},"function"==typeof e?{reviver:e}:e)}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");let s=(t=this.decodeString(e)).type===o.BINARY_EVENT;s||t.type===o.BINARY_ACK?(t.type=s?o.EVENT:o.ACK,this.reconstructor=new ec(t)):super.emitReserved("decoded",t)}else if(ea(e)||e.base64)if(this.reconstructor)(t=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw Error("got binary data when not reconstructing a packet");else throw Error("Unknown type: "+e)}decodeString(e){let t=0,s={type:Number(e.charAt(0))};if(void 0===o[s.type])throw Error("unknown packet type "+s.type);if(s.type===o.BINARY_EVENT||s.type===o.BINARY_ACK){let r=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);let i=e.substring(r,t);if(i!=Number(i)||"-"!==e.charAt(t))throw Error("Illegal attachments");let n=Number(i);if(!eu(n)||n<1)throw Error("Illegal attachments");if(n>this.opts.maxAttachments)throw Error("too many attachments");s.attachments=n}if("/"===e.charAt(t+1)){let r=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);s.nsp=e.substring(r,t)}else s.nsp="/";let r=e.charAt(t+1);if(""!==r&&Number(r)==r){let r=t+1;for(;++t;){let s=e.charAt(t);if(null==s||Number(s)!=s){--t;break}if(t===e.length)break}s.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){let r=this.tryParse(e.substr(t));if(el.isPayloadValid(s.type,r))s.data=r;else throw Error("invalid payload")}return s}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case o.CONNECT:return ep(t);case o.DISCONNECT:return void 0===t;case o.CONNECT_ERROR:return"string"==typeof t||ep(t);case o.EVENT:case o.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===eh.indexOf(t[0]));case o.ACK:case o.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class ec{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t,s;let e=(t=this.reconPack,s=this.buffers,t.data=function e(t,s){if(!t)return t;if(t&&!0===t._placeholder){if("number"==typeof t.num&&t.num>=0&&t.num<s.length)return s[t.num];throw Error("illegal attachments")}if(Array.isArray(t))for(let r=0;r<t.length;r++)t[r]=e(t[r],s);else if("object"==typeof t)for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=e(t[r],s));return t}(t.data,s),delete t.attachments,t);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}let eu=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function ep(e){return"[object Object]"===Object.prototype.toString.call(e)}function ed(e,t,s){return e.on(t,s),function(){e.off(t,s)}}e.s(["Decoder",0,el,"Encoder",0,class{constructor(e){this.replacer=e}encode(e){return(e.type===o.EVENT||e.type===o.ACK)&&function e(t,s){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let s=0,r=t.length;s<r;s++)if(e(t[s]))return!0;return!1}if(ea(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1==arguments.length)return e(t.toJSON(),!0);for(let s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&e(t[s]))return!0;return!1}(e)?this.encodeAsBinary({type:e.type===o.EVENT?o.BINARY_EVENT:o.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===o.BINARY_EVENT||e.type===o.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t,s,r=(t=[],s=e.data,e.data=function e(t,s,r){if(!t)return t;if(ea(t)){let e={_placeholder:!0,num:s.length};return s.push(t),e}if(Array.isArray(t)){let r=Array(t.length);for(let i=0;i<t.length;i++)r[i]=e(t[i],s);return r}if("object"==typeof t&&!(t instanceof Date)){if(t.toJSON&&"function"==typeof t.toJSON&&!r)return e(t.toJSON(),s,!0);let i={};for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=e(t[r],s));return i}return t}(s,t),e.attachments=t.length,{packet:e,buffers:t}),i=this.encodeAsString(r.packet),n=r.buffers;return n.unshift(i),n}},"PacketType",0,o,"isPacketValid",0,function(e){var t;return"string"==typeof e.nsp&&(void 0===(t=e.id)||eu(t))&&function(e,t){switch(e){case o.CONNECT:return void 0===t||ep(t);case o.DISCONNECT:return void 0===t;case o.EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===eh.indexOf(t[0]));case o.ACK:return Array.isArray(t);case o.CONNECT_ERROR:return"string"==typeof t||ep(t);default:return!1}}(e.type,e.data)},"protocol",0,5],51890);let ef=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class em extends T{constructor(e,t,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[ed(e,"open",this.onopen.bind(this)),ed(e,"packet",this.onpacket.bind(this)),ed(e,"error",this.onerror.bind(this)),ed(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var s,r,i;if(ef.hasOwnProperty(e))throw Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let n={type:o.EVENT,data:t};if(n.options={},n.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){let e=this.ids++,s=t.pop();this._registerAckCallback(e,s),n.id=e}let a=null==(r=null==(s=this.io.engine)?void 0:s.transport)?void 0:r.writable,h=this.connected&&!(null==(i=this.io.engine)?void 0:i._hasPingExpired());return this.flags.volatile&&!a||(h?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){var s;let r=null!=(s=this.flags.timeout)?s:this._opts.ackTimeout;if(void 0===r){this.acks[e]=t;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error("operation has timed out"))},r),n=(...e)=>{this.io.clearTimeoutFn(i),t.apply(this,e)};n.withError=!0,this.acks[e]=n}emitWithAck(e,...t){return new Promise((s,r)=>{let i=(e,t)=>e?r(e):s(t);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());let s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...r)=>(this._queue[0],null!==e?s.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...r)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;let t=this._queue[0];(!t.pending||e)&&(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:o.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case o.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case o.EVENT:case o.BINARY_EVENT:this.onevent(e);break;case o.ACK:case o.BINARY_ACK:this.onack(e);break;case o.DISCONNECT:this.ondisconnect();break;case o.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){let t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length)for(let t of this._anyListeners.slice())t.apply(this,e);super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,s=!1;return function(...r){s||(s=!0,t.packet({type:o.ACK,id:e,data:r}))}}onack(e){let t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:o.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let s=0;s<t.length;s++)if(e===t[s]){t.splice(s,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let s=0;s<t.length;s++)if(e===t[s]){t.splice(s,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length)for(let t of this._anyOutgoingListeners.slice())t.apply(this,e.data)}}var eg=e.i(51890);function ey(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}ey.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),s=Math.floor(t*this.jitter*e);e=(1&Math.floor(10*t))==0?e-s:e+s}return 0|Math.min(e,this.max)},ey.prototype.reset=function(){this.attempts=0},ey.prototype.setMin=function(e){this.ms=e},ey.prototype.setMax=function(e){this.max=e},ey.prototype.setJitter=function(e){this.jitter=e};class ev extends T{constructor(e,t){var s;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,L(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!=(s=t.randomizationFactor)?s:.5),this.backoff=new ey({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const r=t.parser||eg;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null==(t=this.backoff)||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null==(t=this.backoff)||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null==(t=this.backoff)||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new es(this.uri,this.opts);let t=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;let r=ed(t,"open",function(){s.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},n=ed(t,"error",i);if(!1!==this._timeout){let e=this._timeout,s=this.setTimeoutFn(()=>{r(),i(Error("timeout")),t.close()},e);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}return this.subs.push(r),this.subs.push(n),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(ed(e,"ping",this.onping.bind(this)),ed(e,"data",this.ondata.bind(this)),ed(e,"error",this.onerror.bind(this)),ed(e,"close",this.onclose.bind(this)),ed(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){R(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new em(this,e,t),this.nsps[e]=s),s}_destroy(e){for(let e of Object.keys(this.nsps))if(this.nsps[e].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let s=0;s<t.length;s++)this.engine.write(t[s],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var s;this.cleanup(),null==(s=this.engine)||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let s=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}let e_={};function eb(e,t){let s;"object"==typeof e&&(t=e,e=void 0);let r=function(e,t="",s){let r=e;s=s||"u">typeof location&&location,null==e&&(e=s.protocol+"//"+s.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?s.protocol+e:s.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==s?s.protocol+"//"+e:"https://"+e),r=$(e)),!r.port&&(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";let i=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+t,r.href=r.protocol+"://"+i+(s&&s.port===r.port?"":":"+r.port),r}(e,(t=t||{}).path||"/socket.io"),i=r.source,n=r.id,o=r.path,a=e_[n]&&o in e_[n].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||a?s=new ev(i,t):(e_[n]||(e_[n]=new ev(i,t)),s=e_[n]),r.query&&!t.query&&(t.query=r.queryKey),s.socket(r.path,t)}Object.assign(eb,{Manager:ev,Socket:em,io:eb,connect:eb});var eE=e.i(69507);let ew=h.default.createContext(null);var eS=((n={}).REQUEST_SESSION_METADATA="request-session-metadata",n.RESPONSE_SESSION_METADATA="response-session-metadata",n.REQUEST_SESSION_SUMMARY="request-session-summary",n.RESPONSE_SESSION_SUMMARY="response-session-summary",n.REQUEST_CONFIGURATION="request-configuration",n.RESPONSE_CONFIGURATION="response-configuration",n.REQUEST_SYSTEM_DATA="request-system-data",n.RESPONSE_SYSTEM_DATA="response-system-data",n.REQUEST_ANALYTICS_DATA="request-analytics-data",n.RESPONSE_ANALYTICS_DATA="response-analytics-data",n.RESPONSE_FILTERED_ANALYTICS_DATA="response-filtered-analytics-data",n.REQUEST_HEALTH_DATA="request-health-data",n.RESPONSE_HEALTH_DATA="response-health-data",n.REQUEST_CORRELATION_DATA="request-correlation-data",n.RESPONSE_CORRELATION_DATA="response-correlation-data",n.REQUEST_CORRELATION_REPLAY="request-correlation-replay",n.RESPONSE_CORRELATION_REPLAY="response-correlation-replay",n.REQUEST_INCIDENTS="request-incidents",n.RESPONSE_INCIDENTS="response-incidents",n.REQUEST_DASHBOARD_BUCKETS="request-dashboard-buckets",n.RESPONSE_DASHBOARD_BUCKETS="response-dashboard-buckets",n);e.s(["ConnectionProvider",0,function({children:e}){let[t,s]=h.default.useState(!1),[r,i]=h.default.useState(!0),[n,o]=h.default.useState(null),l=h.default.useRef(null);return h.default.useEffect(()=>{let e=eb(window.location.origin,{path:"/socket.io/",transports:["polling","websocket"],reconnection:!0,reconnectionAttempts:1/0,reconnectionDelay:1e3,reconnectionDelayMax:5e3,autoConnect:!0,timeout:2e4});return l.current=e,e.on("response-configuration",e=>o(e)),e.on("connect",()=>{s(!0),i(!1),e.emit("request-configuration",null)}),e.on("disconnect",()=>{s(!1)}),()=>{e.removeAllListeners(),e.disconnect(),l.current===e&&(l.current=null),s(!1),i(!1)}},[]),(0,a.jsx)(ew.Provider,{value:{isConnected:t,isConnecting:r,registerEventListener:function(e,t){l.current?.on(e,t)},unregisterEventListener:function(e,t){l.current?.off(e,t)},emit:function(e,t){l.current?.connected&&l.current.emit(e,t)},configuration:n},children:r?(0,a.jsx)(eE.default,{text:"Connecting..."}):e})},"WebSocketEvents",()=>eS,"useConnection",0,function(){let e=h.default.useContext(ew);if(!e)throw Error("useConnection must be used within a ConnectionProvider");return e}],11350)},65327,e=>{"use strict";var t=e.i(43476),s=e.i(71645),r=e.i(11350);let i=(e,t)=>parseFloat((Math.random()*(t-e)+e).toFixed(2)),n={length:60,intervalS:1},o={sessionId:null,buckets:new Map,latestSequence:null,latestEndTime:null,unrecoverable:new Set};function a(e,t){if("RESET"===t.type)return o;let s=t.message,r=e.sessionId===s.sessionId?e:{...o,sessionId:s.sessionId},i=new Map(r.buckets);for(let e of s.buckets){let t=i.get(e.bucketId);i.set(e.bucketId,t?t.committed&&!e.committed?{...e,committed:!0}:e:e)}if(i.size>240)for(let e of[...i.values()].sort((e,t)=>e.sequence-t.sequence).slice(0,i.size-240))i.delete(e.bucketId);let n=null;for(let e of i.values())(!n||e.sequence>n.sequence)&&(n=e);let a=new Set(r.unrecoverable),h=new Set([...i.values()].map(e=>e.sequence));for(let[e,t]of s.gaps)for(let s=e;s<=t;s++)h.has(s)||a.add(s);if("backfill"===s.kind&&null!==s.requestedAfterSequence&&null!==s.lastSequence)for(let e=s.requestedAfterSequence+1;e<=s.lastSequence;e++)h.has(e)||a.add(e);if(a.size>2e3){let e=[...a].sort((e,t)=>e-t).slice(-2e3);a.clear(),e.forEach(e=>a.add(e))}return{sessionId:s.sessionId,buckets:i,latestSequence:n?.sequence??r.latestSequence,latestEndTime:n?.endTime??r.latestEndTime,unrecoverable:a}}let h=s.default.createContext(null);e.s(["MetricsProvider",0,function({children:e}){let{isConnected:l,registerEventListener:c,unregisterEventListener:u,emit:p,configuration:d}=(0,r.useConnection)(),f=s.default.useMemo(()=>d?{length:d.cache.viewWindowBuckets,intervalS:d.collection.bucketIntervalMs/1e3}:n,[d]),m=s.default.useRef(crypto.randomUUID()),g=s.default.useRef(null),[y,v]=s.default.useReducer(a,o),_=s.default.useRef(y);s.default.useEffect(()=>{_.current=y},[y]);let b=s.default.useMemo(()=>(function(e,{length:t,intervalS:s}){let r=new Map;for(let t of e.buckets.values())r.set(t.sequence,t);let i=e.latestSequence;if(null===i)return{points:Array(t).fill(null),times:Array.from({length:t},(e,s)=>s-t+1),latest:null,missing:[],firstMissingGapFilled:!0};let n=[],o=[];for(let s=i-t+1;s<=i;s++){let t=s>=1?r.get(s)??null:null;n.push(t),!(s>=1)||t||e.unrecoverable.has(s)||o.push(s)}let a=r.get(i),h=a?Date.parse(a.endTime):null,l=Array(n.length);for(let e=n.length-1;e>=0;e--){let t=n[e];t&&null!==h?l[e]=(Date.parse(t.endTime)-h)/1e3:l[e]=e===n.length-1?0:l[e+1]-s}return{points:n,times:l,latest:a??null,missing:o,firstMissingGapFilled:0===o.length}})(y,f),[y,f]),[E,w]=s.default.useState({systemStatus:{connectionStatus:"ONLINE",healthStatus:"HEALTHY",webSocketStatus:"DISCONNECTED"},systemInfo:{nodeVersion:"v0.0.0",uptime:800,env:"development"},analytics:{summary:{totalEndpoints:i(10,50),healthyEndpoints:i(5,25),slowEndpoints:i(0,5),slowEndpointsThreshold:parseFloat(i(100,500).toFixed(0)),errorEndpoints:i(0,5)},latencyDistribution:[{endpoint:"endpoint1",p50:i(0,100),p95:i(0,100),p99:i(0,100)},{endpoint:"endpoint2",p50:i(0,100),p95:i(0,100),p99:i(0,100)},{endpoint:"endpoint3",p50:i(0,100),p95:i(0,100),p99:i(0,100)}],requestVolume:[],history:[],impactEndpoints:[],endpointsTable:{data:[{method:"endpoint1",route:"/api/v1/endpoint1",rps:i(0,100),p50:i(0,100),p95:i(0,100),p99:i(0,100),errorRate:i(0,100),status:"healthy",requestCount:i(1e3,8e3),averageLatency:i(0,100)},{method:"endpoint2",route:"/api/v1/endpoint2",rps:i(0,100),p50:i(0,100),p95:i(0,100),p99:i(0,100),errorRate:i(0,100),status:"healthy",requestCount:i(0,1e3),averageLatency:i(0,100)}],pagination:{page:1,pageSize:10,perPageCount:2,totalCount:2}}},healthDetails:{cpu:{numberOfCores:8,perCoreUsage:Array.from({length:30},()=>i(0,100))},memory:{rssMemoryTotal:16e3,externalMemory:i(0,1e3)},eventLoop:{threshold:200},handles:{activeHandles:i(0,100),activeHandlesTimers:i(0,100),activeHandlesSockets:i(0,100),activeLibuvHandles:i(0,100),timers:i(0,100),fileDescriptors:i(0,100)},garbageCollection:{gcCount:i(0,100),gcTime:i(0,1e3),gcPauseAverage:i(0,100),minorGC:{runCount:i(0,100),averageTime:i(0,100)},majorGC:{runCount:i(0,100),averageTime:i(0,100)},incrementalGC:{runCount:i(0,100),averageTime:i(0,100)},heapSpaces:[],gcTotals:{totalPauseTime:i(0,1e3),freedMemory:i(0,1e3),promotions:i(0,100),tenuredSize:i(0,100)}},runtime:{pid:i(1e3,1e4),platform:"linux",nodeVersion:"14.15.0",v8Version:"8.1.381.32",libuvVersion:"1.40.0",openSSLVersion:"1.1.1j",threadPoolSize:i(1,16),activeThreads:i(1,16),startup:{bootstrapTime:i(0,1e3),requiredModules:i(0,100)}}},impactEndpoints:[],incidents:{rules:[],incidents:[],serverTime:""},correlation:{results:[{id:"1",xLabel:"CPU Usage",yLabel:"Heap Usage",expectedDirection:"POSITIVE",unexpectedDirection:!1,analysis:{status:"STRONG_LINEAR_ASSOCIATION",direction:"POSITIVE",pearsonR:.85,spearmanR:.82,rawPearsonR:.85,differencePearsonR:.03,determination:.72,lag:0,laggedPearsonR:.85,sampleSize:100,effectiveSampleSize:95,requiredSampleSize:80,autocorrelationX:.1,autocorrelationY:.15,trendDriven:!1,recommendation:"Monitor CPU and Heap usage closely for potential performance issues."}}],assessment:{status:"POSSIBLE_SATURATION",evidence:["Strong positive correlation between CPU usage and Heap usage.","High determination coefficient indicates a significant relationship."],recommendation:"Investigate the application's memory management and optimize resource usage to prevent potential saturation."}}}),S=s.default.useMemo(()=>{var e;let t,s,r;return b.latest?(t=e=>b.points.map(t=>t?e(t):null),s=b.points.filter(Boolean).length,{current:{rps:Math.round(b.latest?.rps??0),latency:b.latest?.averageLatencyMs??0,errorRate:b.latest?.errorRate??0,eventLoopLag:b.latest?.runtime.eventLoopLagMs??0,heapUsage:b.latest?.runtime.heapUsageBytes??0,heapSize:b.latest?.runtime.heapSizeBytes??0},timeline:b.times,history:{rps:t(e=>Math.round(e.rps)),latency:t(e=>e.averageLatencyMs),errorRate:t(e=>e.errorRate),eventLoopLag:t(e=>e.runtime.eventLoopLagMs),heapUsage:t(e=>e.runtime.heapUsageBytes),heapSize:t(e=>e.runtime.heapSizeBytes),rssMemory:t(e=>e.runtime.rssMemoryBytes),totalHeap:t(e=>e.runtime.heapLimitBytes),p95:t(e=>e.p95Ms),p99:t(e=>e.p99Ms)},charts:{throughput:{rps:t(e=>Math.round(e.rps)),errorClient:t(e=>e.clientErrorCount),errorServer:t(e=>e.serverErrorCount),totalCount:s},percentiles:{p50:t(e=>e.p50Ms),p95:t(e=>e.p95Ms),p99:t(e=>e.p99Ms),totalCount:s},runtimePerformance:{heapUsage:t(e=>e.runtime.heapUsageBytes),heapSize:t(e=>e.runtime.heapSizeBytes),lag:t(e=>e.runtime.eventLoopLagMs),totalCount:s}}}):(r=Array(e=f.length).fill(null),{timeline:Array.from({length:e},(t,s)=>s-e+1),current:{rps:0,latency:0,errorRate:0,eventLoopLag:0,heapUsage:0,heapSize:0},history:{rps:r,latency:r,errorRate:r,eventLoopLag:r,heapUsage:r,heapSize:r,rssMemory:r,totalHeap:r,p95:r,p99:r},charts:{throughput:{rps:r,errorClient:r,errorServer:r,totalCount:0},percentiles:{p50:r,p95:r,p99:r,totalCount:0},runtimePerformance:{heapUsage:r,heapSize:r,lag:r,totalCount:0}}})},[b,f]),A=s.default.useMemo(()=>{let e,t,s,r,{healthDetails:i,...n}=E;return{...n,health:(e=b.latest,s=(t=e=>Math.min(100,Math.max(0,e)))(e?.runtime.cpuPercent??0),r=e=>b.points.map(t=>t?e(t):null),{cpu:{...i.cpu,usageRate:s,userUsage:t(e?.runtime.cpuUserPercent??0),systemUsage:t(e?.runtime.cpuSystemPercent??0),idleUsage:100-s},memory:{...i.memory,heapUsage:e?.runtime.heapUsageBytes??0,heapSize:e?.runtime.heapSizeBytes??0,rssMemory:e?.runtime.rssMemoryBytes??0},eventLoop:{...i.eventLoop,lag:e?.runtime.eventLoopLagMs??0},handles:i.handles,garbageCollection:i.garbageCollection,runtime:i.runtime,history:{timeline:b.times,eventLoopLag:r(e=>e.runtime.eventLoopLagMs),memoryBreakdown:{usedHeap:r(e=>e.runtime.heapUsageBytes),totalHeap:r(e=>e.runtime.heapSizeBytes),rssMemory:r(e=>e.runtime.rssMemoryBytes)}}})}},[E,b]),[k,T]=s.default.useState({query:"",method:"ALL",page:1}),R=s.default.useRef(k),[x,C]=s.default.useState([]),[O,N]=s.default.useState(null),[L,B]=s.default.useState(null);function M(){g.current&&clearTimeout(g.current.timer),g.current=null}function I(e){let t=_.current,s=null;if(null!==e){for(let r of t.buckets.values())if(r.sequence===e){s=r.endTime;break}}M(),g.current={afterSequence:e,timer:setTimeout(()=>{g.current=null},5e3)},p(r.WebSocketEvents.REQUEST_DASHBOARD_BUCKETS,{subscriptionId:m.current,sessionId:t.sessionId,afterSequence:null===t.sessionId?null:e,afterEndTime:s})}async function P(e){if(!d||!1===d.dashboard)return;let t=await fetch(`${window.location.origin}${d.dashboard.path}/session/${e}/export`);if(!t.ok)throw Error(`Failed to download session ${e}: ${t.statusText}`);let s=await t.blob(),r=URL.createObjectURL(s),i=document.createElement("a");i.href=r,i.download=`session-${e}.json`,i.click(),URL.revokeObjectURL(r)}return s.default.useEffect(()=>{if(!l)return;let e=[[r.WebSocketEvents.RESPONSE_SESSION_METADATA,e=>{C(e.sessions),N(null),B(null)}],[r.WebSocketEvents.RESPONSE_SESSION_SUMMARY,e=>{e&&(B(e),N(e.sessionNumber))}],[r.WebSocketEvents.RESPONSE_SYSTEM_DATA,e=>{w(t=>({...t,systemInfo:e}))}],[r.WebSocketEvents.RESPONSE_ANALYTICS_DATA,e=>{var t;""!==(t=R.current).query||"ALL"!==t.method||1!==t.page?(w(t=>({...t,impactEndpoints:e.impactEndpoints})),p(r.WebSocketEvents.REQUEST_ANALYTICS_DATA,R.current)):w(t=>({...t,analytics:e,impactEndpoints:e.impactEndpoints}))}],[r.WebSocketEvents.RESPONSE_FILTERED_ANALYTICS_DATA,e=>{w(t=>({...t,analytics:e,impactEndpoints:e.impactEndpoints}))}],[r.WebSocketEvents.RESPONSE_HEALTH_DATA,e=>{w(t=>({...t,healthDetails:e}))}],[r.WebSocketEvents.RESPONSE_CORRELATION_DATA,e=>{w(t=>({...t,correlation:e}))}],[r.WebSocketEvents.RESPONSE_INCIDENTS,e=>{w(t=>({...t,incidents:e}))}],[r.WebSocketEvents.RESPONSE_DASHBOARD_BUCKETS,e=>{(null===e.subscriptionId||e.subscriptionId===m.current)&&("backfill"===e.kind&&M(),v({type:"MESSAGE",message:e}))}]];for(let[t,s]of e)c(t,s);return p(r.WebSocketEvents.REQUEST_SYSTEM_DATA,null),p(r.WebSocketEvents.REQUEST_ANALYTICS_DATA,null),p(r.WebSocketEvents.REQUEST_HEALTH_DATA,null),p(r.WebSocketEvents.REQUEST_CORRELATION_DATA,null),p(r.WebSocketEvents.REQUEST_INCIDENTS,null),p(r.WebSocketEvents.REQUEST_SESSION_METADATA,null),M(),I(_.current.latestSequence),()=>{for(let[t,s]of e)u(t,s);M()}},[l]),s.default.useEffect(()=>{l&&!g.current&&0!==b.missing.length&&I(Math.min(...b.missing)-1)},[b,l]),s.default.useEffect(()=>{R.current=k},[k]),(0,t.jsx)(h.Provider,{value:{data:A,dashboard:S,analyticsFilterSettings:k,sessions:x,selectedSession:O,selectedSessionSummary:L,updateAnalyticsFilters:function(e){console.log("Updating analytics filters:",e),T(t=>{let s={...t,...e};return p(r.WebSocketEvents.REQUEST_ANALYTICS_DATA,s),s})},selectSession:function(e){if(null===e){B(null),N(e);return}p(r.WebSocketEvents.REQUEST_SESSION_SUMMARY,{sessionNumber:e})},downloadSession:P},children:e})},"useMetrics",0,function(){let e=s.default.useContext(h);if(!e)throw Error("useMetrics must be used within a MetricsProvider");return e}],65327)},52446,e=>{"use strict";var t=e.i(43476),s=e.i(71645),r=e.i(69507);let i=s.default.createContext(null);e.s(["GateProvider",0,function({children:e}){let[n,o]=s.default.useState("/"),[a,h]=s.default.useState(!1),[l,c]=s.default.useState("Loading...");return s.default.useEffect(()=>{let e=()=>{o(window.location.hash.replace("#","")||"/")};return e(),window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)},[]),(0,t.jsx)(i.Provider,{value:{activeTab:n,displayLoadingGate:function(e){c(e||"Loading..."),h(!0)},clearLoadingGate:function(){h(!1),c("Loading...")}},children:(0,t.jsx)("html",{lang:"sr",children:(0,t.jsx)("body",{className:"flex min-h-screen text-brand-50 antialiased",children:a?(0,t.jsx)(r.default,{text:l}):e})})})},"useGate",0,function(){let e=s.default.useContext(i);if(!e)throw Error("useGate must be used within a GateProvider");return e}])}]);
@@ -0,0 +1,27 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,42775,e=>{"use strict";var t=e.i(43476),s=e.i(71645);function r(e=40,t=80){let[a,l]=s.default.useState(null),i=s.default.useCallback(e=>l(e),[]),[n,o]=s.default.useState(null);return s.default.useLayoutEffect(()=>{let e;if(!a)return;let t=()=>{let e=a.getBoundingClientRect(),t=Math.round(e.width),s=Math.round(e.height);0!==t&&0!==s&&o(e=>e&&e.width===t&&e.height===s?e:{width:t,height:s})};return t(),window.addEventListener("resize",t),"u">typeof ResizeObserver&&(e=new ResizeObserver(t)).observe(a),()=>{window.removeEventListener("resize",t),e?.disconnect()}},[a]),{width:n?.width??e,height:n?.height??t,isHydrated:null!==n,ref:i}}function a({data:e}){let s,{width:l,height:i,isHydrated:n,ref:o}=r(),c=0===(s=Math.max(0,...e.points.flatMap(e=>null===e.y?[]:[e.y])))?1:s,d=c+(c-0)*.1,x=0-(c-0)*.1,h=e.points.map(e=>e.x),u=Math.min(...h),m=Math.max(...h)-u||1,p=[],f=[];for(let t of e.points){if(null===t.y){f.length&&p.push(f.join(" ")),f=[];continue}let e=(t.x-u)/m*l,s=i-(t.y-x)/(d-x)*.5*i;f.push(`${e},${s}`)}return f.length&&p.push(f.join(" ")),(0,t.jsx)("div",{ref:o,className:"w-full h-16 rounded-md",id:"line-showcase",children:n&&(0,t.jsx)("svg",{className:"w-full h-full",children:p.map((s,r)=>(0,t.jsx)("polyline",{fill:"none",stroke:e.color,strokeWidth:"2",points:s},r))})})}var l=e.i(74080);function i({children:e,content:r}){let[a,n]=(0,s.useState)(!1),[o,c]=(0,s.useState)({top:0,bottom:0,left:0,arrowX:"50%"}),[d,x]=(0,s.useState)(!1),h=(0,s.useRef)(null),u=(0,s.useRef)(null);(0,s.useEffect)(()=>(x(!0),()=>x(!1)),[]);let m=()=>{if(!h.current)return;let e=h.current.getBoundingClientRect(),t=e.left+e.width/2,s=u.current?u.current.offsetWidth:200,r=u.current?u.current.offsetHeight:44,a=t-s/2;a<12?a=12:a+s>window.innerWidth-12&&(a=window.innerWidth-s-12);let l=t-a;c({top:e.top+window.scrollY-r-8,bottom:e.bottom+window.scrollY+8,left:a+window.scrollX,arrowX:`${l}px`})};(0,s.useEffect)(()=>{if(a){m();let e=setTimeout(m,0);return window.addEventListener("scroll",m),window.addEventListener("resize",m),()=>{clearTimeout(e),window.removeEventListener("scroll",m),window.removeEventListener("resize",m)}}},[a]);let p=()=>n(!0),f=()=>n(!1);return(0,t.jsxs)(t.Fragment,{children:[s.default.cloneElement(e,{ref:t=>{h.current=t;let{ref:s}=e;"function"==typeof s?s(t):s&&(s.current=t)},onMouseEnter:p,onMouseLeave:f,onFocus:p,onBlur:f}),a&&d&&(0,l.createPortal)((0,t.jsxs)("div",{ref:u,style:{position:"absolute",top:`${o.bottom}px`,left:`${o.left}px`},className:"z-[9999] pointer-events-none bg-black text-white text-xs px-3 py-2 rounded shadow-xl max-w-[220px] break-words text-center leading-relaxed",children:[(0,t.jsx)("div",{style:{left:o.arrowX},className:"absolute bottom-full -translate-x-1/2 w-2 h-2 rotate-45 bg-black -mb-1"}),r]}),document.body)]})}e.i(49645);var n=e.i(92432),n=n;function o({title:e,timestamp:s,isFolded:r,onToggle:a,tooltip:l}){return(0,t.jsxs)("div",{className:"flex items-center justify-between mb-1 cursor-pointer p-2 border-b-1 border-accent-soft",onClick:a,children:[(0,t.jsx)("h2",{className:"text-sm font-semibold text-accent",children:e}),(0,t.jsx)("p",{className:"text-xs text-accent-soft",children:s}),l&&(0,t.jsx)(i,{content:l,children:(0,t.jsx)(n.default,{className:"w-4 h-4 text-accent cursor-pointer"})})]})}function c({header:e,children:r,padding:a}){let[l,i]=s.default.useState(!1);return(0,t.jsxs)("div",{className:"bg-[var(--variant-1)] border border-[var(--variant-3)] rounded-md animate-fade-in",children:[e&&(0,t.jsx)(o,{title:e.title,timestamp:e.description||"",isFolded:l,onToggle:()=>{i(!l)},tooltip:e.tooltip}),(0,t.jsx)("div",{className:`justify-between ${a?"p-3":""}`,children:!l&&r})]})}var n=n;function d({children:e,header:s}){return(0,t.jsx)(c,{header:s,padding:!0,children:e})}function x({title:e,value:s,unit:r="",color:a="accent",tooltip:l}){let o="number"==typeof s?s.toFixed(2):s;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,t.jsx)("h2",{className:"text-sm font-semibold text-accent",children:e}),l&&(0,t.jsx)(i,{content:l,children:(0,t.jsx)(n.default,{className:"w-4 h-4 text-accent cursor-pointer"})})]}),(0,t.jsxs)("p",{className:"text-2xl font-bold",style:a?{color:a}:void 0,children:[o,r&&(0,t.jsxs)("span",{className:"text-sm text-gray-400",children:[" ",r]})]})]})}function h({variant:e="default",values:s}){return"default"===e?(0,t.jsx)("div",{className:"mt-2 mb-2 space-y-1",children:s&&Object.entries(s).map(([e,s])=>(0,t.jsxs)("div",{className:"flex justify-between text-sm text-accent-soft",children:[(0,t.jsxs)("p",{className:"text-sm text-accent-soft",children:[e,":"]}),(0,t.jsx)("span",{children:s})]},e))}):(0,t.jsx)(t.Fragment,{children:s&&Object.entries(s).map(([e,s])=>(0,t.jsxs)("div",{className:"flex flex-row justify-between h-full",children:[(0,t.jsx)("span",{className:"text-[10px] text-foreground uppercase tracking-wider font-semibold block mb-1",children:e}),(0,t.jsx)("span",{className:"text-[10px] text-foreground-soft uppercase tracking-wider font-semibold block mb-1 ml-2",children:s})]},e))})}let u=e=>null==e?"0":e>=1e3?(e/1e3).toFixed(1).replace(/\.0$/,"")+"k":e>=1e6?(e/1e6).toFixed(1).replace(/\.0$/,"")+"m":e.toString(),m=e=>Math.round(e/1048576*100)/100,p=e=>null===e?null:m(e);function f({data:e}){return(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-5 gap-4",children:[(0,t.jsxs)(d,{children:[(0,t.jsx)(x,{title:"CURRENT RPS",value:u(e.current.rps),unit:"req/s",color:"var(--chart-6)",tooltip:"The number of HTTP requests processed by the server during the last measurement interval. Higher values indicate increased traffic."}),(0,t.jsx)(a,{data:{points:e.history.rps.map((t,s)=>({x:e.timeline[s],y:t})),color:"var(--chart-6)",type:"solid"}})]}),(0,t.jsxs)(d,{children:[(0,t.jsx)(x,{title:"AVG LATENCY",value:e.current.latency,unit:"ms",color:"var(--chart-2)",tooltip:"Average response time of all processed requests. Shows how long users wait for server responses."}),(0,t.jsx)(a,{data:{points:e.history.latency.map((t,s)=>({x:e.timeline[s],y:t})),color:"var(--chart-2)",type:"solid"}})]}),(0,t.jsxs)(d,{children:[(0,t.jsx)(x,{title:"ERROR RATE",value:e.current.errorRate,unit:"%",color:"var(--chart-5)",tooltip:"Percentage of requests that failed with an HTTP error response. Includes client errors (4xx) and server errors (5xx)."}),(0,t.jsx)(a,{data:{points:e.history.errorRate.map((t,s)=>({x:e.timeline[s],y:t})),color:"var(--chart-5)",type:"solid"}})]}),(0,t.jsxs)(d,{children:[(0,t.jsx)(x,{title:"EVENT LOOP LAG",value:e.current.eventLoopLag,unit:"ms",color:"var(--chart-4)",tooltip:"Delay between scheduled Node.js tasks and their actual execution time. High values indicate that the server is blocked by CPU-heavy operations or synchronous code."}),(0,t.jsx)(a,{data:{points:e.history.eventLoopLag.map((t,s)=>({x:e.timeline[s],y:t})),color:"var(--chart-4)",type:"solid"}})]}),(0,t.jsxs)(d,{children:[(0,t.jsx)(x,{title:"HEAP USAGE",value:m(e.current.heapUsage),color:"var(--chart-1)",unit:"MB",tooltip:"Current JavaScript heap memory usage compared to the allocated heap limit."}),(0,t.jsx)(a,{data:{points:e.history.heapUsage.map((t,s)=>({x:e.timeline[s],y:p(t)})),color:"var(--chart-1)",type:"solid"}})]})]})}let g={top:5,right:5,bottom:5,left:25},v=s.default.forwardRef(function({isHydrated:e,chartWidth:s,chartHeight:r,minY:a=0,maxY:l=1,rows:i=5,cols:n=16,xAxisLabels:o,yAxisLabels:c,padding:d,renderLegend:x,children:h},u){let m={...g,...d},p=s-m.left-m.right,f=r-m.top-m.bottom;return(0,t.jsxs)("div",{id:"graph-wrapper",className:"relative w-full h-full p-4 pb-8",children:[x&&(0,t.jsx)("div",{className:"flex flex-wrap justify-end gap-2 text-xs text-brand-50",children:x()}),(0,t.jsx)("div",{ref:u,id:"graph-root",className:"relative w-full h-full max-h-[300px]",children:(0,t.jsxs)("svg",{className:"w-full h-full overflow-visible",viewBox:`0 0 ${s} ${r}`,preserveAspectRatio:"none",style:{visibility:e?"visible":"hidden"},children:[e&&function(){let e=[];for(let n=0;n<=i;n++){let o,d=n/i,x=r-m.bottom-d*f;if(c&&void 0!==c[n])o=c[n];else{let e=a+d*(l-a);o=Number.isInteger(e)?e.toString():e.toFixed(2)}e.push((0,t.jsxs)("g",{children:[(0,t.jsx)("text",{x:m.left-8,y:x+3,textAnchor:"end",fill:"var(--color-accent-soft)",fontSize:"10px",fontWeight:"500",className:"select-none pointer-events-none",children:o}),(0,t.jsx)("line",{x1:m.left,y1:x,x2:s-m.right,y2:x,stroke:"var(--variant-5)",strokeOpacity:"0.15",strokeWidth:"1"})]},`y-grid-${n}`))}for(let s=0;s<=n;s++){let a=n>1?s/n:0,l=m.left+a*p;e.push((0,t.jsxs)("g",{children:[o?.[s]&&(0,t.jsx)("text",{x:l,y:r-m.bottom+16,textAnchor:"middle",fill:"var(--color-accent-soft)",fontSize:"10px",fontWeight:"500",className:"select-none pointer-events-none",children:o[s]}),(0,t.jsx)("line",{x1:l,y1:m.top,x2:l,y2:r-m.bottom,stroke:"var(--variant-5)",strokeOpacity:"0.15",strokeWidth:"1"})]},`x-grid-${s}`))}return e}(),e&&h]})})]})});function j({categories:e,data:s,padding:a=g,defaultColor:l="#3b82f6"}){let{width:i,height:n,isHydrated:o,ref:c}=r();if(!e||0===e.length||!s||0===s.length)return null;let d=i-a.left-a.right,x=n-a.top-a.bottom,h=s.flatMap(e=>e.values),u=Math.max(...h,0),m=Math.min(...h,0),p=(0===u?1:u)-m,f=Array.from({length:6},(e,t)=>{let s=m+t/5*p;return Number.isInteger(s)?s.toString():s.toFixed(1)}),b=e.length,y=d/b,N=.8*y,w=s.length,$=Math.max(1,(N-2*(w-1))/w);return(0,t.jsx)(v,{ref:c,isHydrated:o,chartWidth:i,chartHeight:n,xAxisLabels:[],yAxisLabels:f,rows:5,cols:b,padding:a,renderLegend:()=>(0,t.jsx)(t.Fragment,{children:s.map((e,s)=>(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)("div",{className:"w-3 h-3 rounded-sm",style:{backgroundColor:e.color||l}}),(0,t.jsx)("span",{children:e.label})]},`legend-${s}`))}),children:e.map((e,r)=>{let i=a.left+r*y+(y-N)/2;return(0,t.jsxs)("g",{children:[(0,t.jsxs)("text",{x:a.left+r*y+y/2,y:n-a.bottom+16,textAnchor:"middle",fill:"var(--color-accent-soft)",fontSize:"10px",fontWeight:"500",className:"select-none",children:[(0,t.jsx)("title",{children:e}),function(e,t){let s=Math.max(3,Math.floor(t/6));if(e.length<=s)return e;let r=s-1,a=Math.ceil(r/2);return`${e.slice(0,a)}…${e.slice(e.length-(r-a))}`}(e,y-4)]}),s.map((s,o)=>{let c=s.values[r]??0,d=s.color||l,h=(c-m)/p*x,u=n-a.bottom-h;return(0,t.jsx)("rect",{x:i+o*($+2),y:u,width:$,height:Math.max(0,h),fill:d,fillOpacity:"0.85",rx:"3",className:"pointer-events-auto cursor-pointer transition-all duration-150 hover:fill-opacity-100",children:(0,t.jsx)("title",{children:`${e} (${s.label}): ${c}`})},`bar-${r}-${o}`)})]},`category-${r}`)})})}let b=(e,t)=>`${5*t}`;function y({data:e,padding:s=g,defaultColor:a="#3b82f6",defaultType:l="solid",withDots:i=!0,rows:n=6,cols:o=5,formatXLabel:c=b}){let{width:d,height:x,isHydrated:h,ref:u}=r();if(!e||0===e.length)return(0,t.jsx)("div",{ref:u,className:"w-full h-full"});let m=e.flatMap(e=>e.points.flatMap(e=>null===e.y?[]:[e.y]));if(0===m.length)return(0,t.jsx)("div",{ref:u,className:"w-full h-full"});let p=d-s.left-s.right,f=x-s.top-s.bottom,j=x-s.bottom,{min:N,max:w,step:$}=function(e,t,s){if(s<=0)throw Error("Number of rows must be greater than 0");if(e===t){let s=Math.abs(e)||1;e-=s,t+=s}let r=function(e,t){if(e<=0)return 1;let s=e/Math.max(1,t),r=Math.floor(Math.log10(s)),a=s/Math.pow(10,r);return(a<=1?1:a<=2?2:a<=5?5:10)*Math.pow(10,r)}(t-e,s),a=Math.floor(e/r)*r,l=Math.ceil(t/r)*r;if(a>e||l<t)throw Error("Nice scale calculation failed: min or max is out of bounds");return{min:a,max:l,step:r}}(Math.min(...m),Math.max(...m),n),S=w-N,T=e.reduce((e,t)=>t.points.length>e.length?t.points:e,[]),M=e.flatMap(e=>e.points.map(e=>e.x)),A=Math.min(...M),E=Math.max(...M)-A||1,R=Math.max(1,Math.ceil(Math.max(1,T.length-1)/o)),C=Array.from({length:R+1},(e,t)=>c(A+t/R*E,t)),L=Array.from({length:n+1},(e,t)=>{let s=N+t/n*S;return Number.isInteger(s)?s.toString():s.toFixed(1)});return(0,t.jsxs)(v,{ref:u,isHydrated:h,chartWidth:d,chartHeight:x,xAxisLabels:C,yAxisLabels:L,rows:n,cols:R,padding:s,renderLegend:()=>(0,t.jsx)(t.Fragment,{children:e.map((e,s)=>(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)("div",{className:"w-4 h-4 rounded",style:{backgroundColor:e.color||a}}),(0,t.jsx)("span",{children:e.label||`Series ${s+1}`})]},`legend-${s}`))}),children:[(0,t.jsx)("defs",{children:e.map((e,s)=>{let r=e.color||a;return(0,t.jsxs)("linearGradient",{id:`area-gradient-${s}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:r,stopOpacity:"0.35"}),(0,t.jsx)("stop",{offset:"100%",stopColor:r,stopOpacity:"0.0"})]},`fill-grad-${s}`)})}),e.map((e,r)=>{let n=function(e){let t=[],r=[];for(let a of e){if(null===a.y){r.length&&t.push(r),r=[];continue}let e=(a.x-A)/E,l=s.left+e*p,i=(a.y-N)/(S||1),n=x-s.bottom-i*f;r.push({x:l,y:n,raw:{x:a.x,y:a.y}})}return r.length&&t.push(r),t}(e.points);if(0===n.length)return null;let o=e.color||a,c=e.type||l,d=e.fillArea??!0;return(0,t.jsx)("g",{children:n.map((e,s)=>{let a=e[0].x,l=e[e.length-1].x,n=[`M ${a},${j}`,...e.map(e=>`L ${e.x},${e.y}`),`L ${l},${j}`,"Z"].join(" ");return(0,t.jsxs)("g",{children:[d&&e.length>1&&(0,t.jsx)("path",{d:n,fill:`url(#area-gradient-${r})`,stroke:"none"}),e.length>1?(0,t.jsx)("polyline",{fill:"none",stroke:o,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"dashed"===c?"6,6":void 0,points:e.map(e=>`${e.x},${e.y}`).join(" ")}):null,(i||1===e.length)&&e.map((e,a)=>(0,t.jsx)("circle",{cx:e.x,cy:e.y,r:i?"4":"2",className:"fill-brand-900 stroke-2 pointer-events-auto cursor-pointer",stroke:o,children:(0,t.jsx)("title",{children:`X: ${e.raw.x}, Y: ${e.raw.y}`})},`point-${r}-${s}-${a}`))]},`segment-${r}-${s}`)})},`series-${r}`)})]})}let N=e=>0===Math.round(e)?"now":`${Math.round(e)}s`;function w({data:e}){return(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mt-4",children:[(0,t.jsx)(c,{header:{title:"Throughput",description:"Requests per second",tooltip:"The number of HTTP requests processed by the server during the last measurement interval. Higher values indicate increased traffic."},children:(0,t.jsx)(y,{data:[{points:e.history.rps.map((t,s)=>({x:e.timeline[s],y:t})),color:"var(--chart-6)",type:"solid",label:"RPS"},{points:e.charts.throughput.errorClient.map((t,s)=>({x:e.timeline[s],y:t})),color:"var(--chart-4)",type:"dashed",label:"Client Errors (4xx)"},{points:e.charts.throughput.errorServer.map((t,s)=>({x:e.timeline[s],y:t})),color:"var(--chart-5)",type:"dashed",label:"Server Errors (5xx)"}],withDots:!1,formatXLabel:N})}),(0,t.jsx)(c,{header:{title:"Latency",description:"Response time percentiles",tooltip:"Percentile response times. Shows how fast most users experience the system. Example: 50% of users waited less than 30ms, 95% waited less than 100ms, and 99% waited less than 200ms."},children:(0,t.jsx)(y,{data:[{points:e.charts.percentiles.p50.map((t,s)=>({x:e.timeline[s],y:t})),color:"var(--chart-1)",type:"dashed",label:"P50 ms",fillArea:!1},{points:e.charts.percentiles.p95.map((t,s)=>({x:e.timeline[s],y:t})),color:"var(--chart-2)",type:"dashed",label:"P95 ms",fillArea:!1},{points:e.charts.percentiles.p99.map((t,s)=>({x:e.timeline[s],y:t})),color:"var(--chart-4)",type:"dashed",label:"P99 ms",fillArea:!1}],withDots:!1,formatXLabel:N})}),(0,t.jsx)(c,{header:{title:"Memory Usage",description:"Heap memory usage and size",tooltip:"Current JavaScript heap memory usage compared to the allocated heap limit."},children:(0,t.jsx)(y,{data:[{points:e.charts.runtimePerformance.heapUsage.map((t,s)=>({x:e.timeline[s],y:p(t)})),color:"var(--chart-1)",type:"solid",label:"heapUsed MB",fillArea:!1},{points:e.charts.runtimePerformance.heapSize.map((t,s)=>({x:e.timeline[s],y:p(t)})),color:"var(--chart-2)",type:"dashed",label:"heapTotal MB"}],withDots:!1,formatXLabel:N})}),(0,t.jsx)(c,{header:{title:"Event Loop Lag",description:"Event loop lag over time",tooltip:"Delay between scheduled Node.js tasks and their actual execution time. High values indicate that the server is blocked by CPU-heavy operations or synchronous code."},children:(0,t.jsx)(y,{data:[{points:e.charts.runtimePerformance.lag.map((t,s)=>({x:e.timeline[s],y:t})),color:"var(--chart-4)",type:"solid",label:"lag",fillArea:!1}],withDots:!1,formatXLabel:N})})]})}function $({columns:e,rows:s,rowKey:r,emptyText:a="No data.",selectedKey:l=null,onRowClick:i}){return 0===s.length?(0,t.jsx)("p",{className:"text-sm text-accent-soft p-6 text-center",children:a}):(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)("table",{className:"min-w-full divide-y divide-border",children:[(0,t.jsx)("thead",{children:(0,t.jsx)("tr",{children:e.map(e=>(0,t.jsx)("th",{scope:"col",className:`px-4 py-3 text-xs font-medium text-accent-soft uppercase tracking-wider ${e.numeric?"text-right":"text-left"}`,children:e.header},e.header))})}),(0,t.jsx)("tbody",{className:"divide-y divide-border",children:s.map((s,a)=>{let n=r(s,a);return(0,t.jsx)("tr",{className:`hover:bg-accent/10 ${i?"cursor-pointer":""} ${n===l?"bg-[var(--variant-3)]":""}`,onClick:i?()=>i(s):void 0,children:e.map(e=>(0,t.jsx)("td",{className:`px-4 py-3 whitespace-nowrap text-sm ${e.numeric?"text-right tabular-nums text-accent-soft":"text-foreground"}`,children:e.render(s,a)},e.header))},n)})})]})})}function S({label:e,color:s}){return(0,t.jsx)("span",{className:"text-xs font-semibold",style:{color:s},children:e})}let T={NORMAL:"border-[var(--chart-6)]",PENDING:"border-[var(--chart-3)]",FIRING:"border-[var(--chart-5)]",RESOLVED:"border-[var(--chart-1)]"},M=(e,t)=>null===e?"n/a":`${e.toFixed("%"===t?2:1)} ${t}`,A=e=>e?new Date(e).toLocaleTimeString():"";function E({rule:e}){return(0,t.jsxs)("div",{className:`flex flex-col p-2 border-l-3 ${T[e.state]} m-2`,children:[(0,t.jsxs)("div",{className:"flex justify-between text-sm text-foreground",children:[(0,t.jsx)("span",{children:e.title}),(0,t.jsx)("span",{className:"font-semibold",children:e.state})]}),(0,t.jsxs)("p",{className:"text-xs text-accent-soft",children:[e.valid?`${M(e.value,e.unit)} / limit ${M(e.threshold,e.unit)}`:`no valid data (${e.reason??"n/a"})`,e.since&&"NORMAL"!==e.state?` * since ${A(e.since)}`:""]})]})}function R({data:e}){return(0,t.jsxs)(c,{header:{title:"Incidents",description:"Rule state"},children:[e.rules.map(e=>(0,t.jsx)(E,{rule:e},e.ruleId)),e.incidents.map(e=>(0,t.jsxs)("div",{className:`flex flex-col p-2 border-l-3 ${T[e.status]} m-2`,children:[(0,t.jsxs)("p",{className:"text-sm text-foreground",children:[e.title," * ",e.status]}),(0,t.jsxs)("p",{className:"text-xs text-accent-soft",children:[A(e.firedAt),e.resolvedAt?` - ${A(e.resolvedAt)}`:"",` * peak ${M(e.peakValue,e.unit)} * ${e.severity}`]}),e.relatedFindings.length>0&&(0,t.jsxs)("p",{className:"text-xs text-accent-soft",children:["Changed together: ",e.relatedFindings.map(e=>e.pairId).join(", "),". ",e.causeNote]})]},e.incidentId))]})}let C=[{header:"Method",render:e=>(0,t.jsx)("span",{className:"font-semibold",children:e.method})},{header:"Route",render:e=>e.route},{header:"Impacted",numeric:!0,render:e=>u(e.impactedRequests??0)},{header:"RPS",numeric:!0,render:e=>e.rps.toFixed(1)},{header:"P95",numeric:!0,render:e=>`${e.p95.toFixed(1)} ms`},{header:"Errors",numeric:!0,render:e=>`${(100*e.errorRate).toFixed(2)} %`},{header:"Status",render:e=>(0,t.jsx)(S,{label:e.status??"",color:"HEALTHY"===e.status?"var(--chart-3)":"var(--chart-5)"})}];function L({data:e}){return(0,t.jsx)(c,{header:{title:"Top routes by Impact",description:"5xx + slow requests",tooltip:"Routes ranked by impacted requests in the recent window: server errors (5xx) plus requests slower than the slow latency threshold."},children:(0,t.jsx)($,{columns:C,rows:e,rowKey:e=>`${e.method}:${e.route}`,emptyText:"No impacted routes."})})}function I({impactEndpoints:e,incidents:s}){return(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-5 gap-4 mt-4",children:[(0,t.jsx)("div",{className:"col-span-3 md:col-span-3",children:(0,t.jsx)(L,{data:e})}),(0,t.jsx)("div",{className:"col-span-2 md:col-span-2",children:(0,t.jsx)(R,{data:s})})]})}var P=e.i(65327);function k(){let{dashboard:e,data:s}=(0,P.useMetrics)(),{impactEndpoints:r,incidents:a}=s;return(0,t.jsxs)("div",{className:"p-6",children:[(0,t.jsx)(f,{data:e}),(0,t.jsx)(w,{data:e}),(0,t.jsx)(I,{impactEndpoints:r,incidents:a})]})}function F({data:e}){let s=[...e.latencyDistribution].sort((e,t)=>t.p95-e.p95).slice(0,6),r=e.requestVolume.slice(0,6);return(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 mt-4",children:[(0,t.jsx)(c,{header:{title:"Latency by route",description:"Top 6 by P95",tooltip:"Latency percentiles of the routes with the highest P95 in the current window."},children:s.length>0?(0,t.jsx)(j,{categories:s.map(e=>e.endpoint),data:[{label:"P50",values:s.map(e=>e.p50),color:"var(--chart-3)"},{label:"P95",values:s.map(e=>e.p95),color:"var(--chart-4)"},{label:"P99",values:s.map(e=>e.p99),color:"var(--chart-5)"}]}):(0,t.jsx)("p",{className:"text-sm text-accent-soft p-4",children:"No requests in the current window."})}),(0,t.jsx)(c,{header:{title:"Request volume",description:"Top 6 by requests",tooltip:"Number of requests per route in the current window."},children:r.length>0?(0,t.jsx)(j,{categories:r.map(e=>e.endpoint),data:[{label:"Requests",values:r.map(e=>e.volume),color:"var(--chart-6)"}]}):(0,t.jsx)("p",{className:"text-sm text-accent-soft p-4",children:"No requests in the current window."})})]})}function O({data:e}){return(0,t.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[(0,t.jsx)(d,{children:(0,t.jsx)(x,{title:"Total Endpoints",value:e.summary.totalEndpoints,tooltip:"The total number of unique API endpoints that have been accessed by clients."})}),(0,t.jsx)(d,{children:(0,t.jsx)(x,{title:"Healthy Endpoints",value:e.summary.healthyEndpoints,color:"var(--chart-3)",tooltip:"The number of API endpoints that are currently healthy and responding successfully to client requests."})}),(0,t.jsx)(d,{children:(0,t.jsx)(x,{title:`Slow Endpoints (>${e.summary.slowEndpointsThreshold}ms)`,value:e.summary.slowEndpoints,color:"var(--chart-4)",tooltip:`The number of API endpoints that have an average response time exceeding ${e.summary.slowEndpointsThreshold} milliseconds.`})}),(0,t.jsx)(d,{children:(0,t.jsx)(x,{title:"High Error Rate",value:e.summary.errorEndpoints,color:"var(--chart-5)",tooltip:"The number of API endpoints that are currently experiencing a high error rate, indicating potential issues with the server or application."})})]})}let D=["ALL","GET","POST","PUT","DELETE"],U="bg-background text-foreground px-3 py-2 rounded-md border border-border focus:outline-none focus:border-accent text-sm";function q({settings:e,onChange:r}){let[a,l]=s.default.useState(e.query);return s.default.useEffect(()=>{let t=setTimeout(()=>{a!==e.query&&r?.({query:a,page:1})},300);return()=>clearTimeout(t)},[a,e.query,r]),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2 w-full sm:w-auto",children:[(0,t.jsx)("input",{type:"text",placeholder:"Search route...",className:`${U} sm:w-64`,value:a,onChange:e=>l(e.target.value)}),(0,t.jsx)("select",{className:`${U} cursor-pointer sm:w-32`,value:e.method,onChange:e=>r?.({method:e.target.value,page:1}),children:D.map(e=>(0,t.jsx)("option",{value:e,children:"ALL"===e?"All methods":e},e))})]})}function H({data:e,offset:s}){let r=[{header:"#",numeric:!0,render:(e,t)=>s+t+1},{header:"Method",render:e=>(0,t.jsx)("span",{className:"font-semibold",children:e.method})},{header:"Route",render:e=>e.route},{header:"Requests",numeric:!0,render:e=>u(e.requestCount)},{header:"Impacted",numeric:!0,render:e=>u(e.impactedRequests??0)},{header:"Avg",numeric:!0,render:e=>`${e.averageLatency?.toFixed(1)} ms`},{header:"P95",numeric:!0,render:e=>`${e.p95.toFixed(1)} ms`},{header:"P99",numeric:!0,render:e=>`${e.p99?.toFixed(1)} ms`},{header:"Errors",numeric:!0,render:e=>`${(100*e.errorRate).toFixed(2)} %`},{header:"Status",render:e=>(0,t.jsx)(S,{label:e.status??"",color:"HEALTHY"===e.status?"var(--chart-3)":"var(--chart-5)"})}];return(0,t.jsx)($,{columns:r,rows:e,rowKey:e=>`${e.method}:${e.route}`,emptyText:"No routes match the current filters."})}function z({meta:e,shown:s,onChange:r}){let a=Math.max(1,Math.ceil(e.totalCount/e.pageSize)),l=Math.min(e.page,a),i=0===e.totalCount?0:(l-1)*e.pageSize+1,n=(l-1)*e.pageSize+s,o="px-3 py-1 rounded-md text-sm text-foreground bg-[var(--variant-3)] cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed";return(0,t.jsxs)("div",{className:"flex justify-between items-center px-4 py-3 border-t border-border",children:[(0,t.jsxs)("span",{className:"text-sm text-accent-soft",children:[i,"-",n," of ",e.totalCount," routes"]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("button",{className:o,onClick:()=>r(l-1),disabled:l<=1,children:"Previous"}),(0,t.jsxs)("span",{className:"text-sm text-accent-soft",children:["Page ",l," of ",a]}),(0,t.jsx)("button",{className:o,onClick:()=>r(l+1),disabled:l>=a,children:"Next"})]})]})}function G({data:e,filters:s,onFilterChange:r}){let{data:a,pagination:l}=e.endpointsTable;return(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsxs)(c,{children:[(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 px-4 pt-4 pb-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-foreground",children:"Endpoints"}),(0,t.jsx)("p",{className:"text-xs text-accent-soft",children:"Recent window * impacted = 5xx + slow requests"})]}),(0,t.jsx)(q,{settings:s,onChange:r})]}),(0,t.jsx)(H,{data:a,offset:(l.page-1)*l.pageSize}),(0,t.jsx)(z,{meta:l,shown:a.length,onChange:e=>r?.({page:e})})]})})}function B(){let{data:e,analyticsFilterSettings:s,updateAnalyticsFilters:r}=(0,P.useMetrics)(),{analytics:a}=e;return(0,t.jsxs)("div",{className:"p-6",children:[(0,t.jsx)(O,{data:a}),(0,t.jsx)(F,{data:a}),(0,t.jsx)(G,{data:a,filters:s,onFilterChange:r})]})}function _({data:e,maxValue:s,color:r="var(--chart-6)"}){if(!e||0===e.length||e.every(e=>0===e.value))return null;let a=s??e.reduce((e,t)=>e+t.value,0);return(0,t.jsx)("div",{className:"w-full bg-[var(--variant-3)] rounded-full h-[10px] flex overflow-hidden",children:e.map((e,s)=>{let l=e.value/a*100;return l<=0?null:(0,t.jsx)("div",{className:"h-full transition-all duration-500 ease-in-out",style:{width:`${l}%`,backgroundColor:e.color||r},title:`${e.label}: ${e.value}`},s)})})}function V({data:e}){let s={heapUsage:m(e.memory.heapUsage),heapSize:m(e.memory.heapSize),rssMemory:m(e.memory.rssMemory),rssMemoryTotal:m(e.memory.rssMemoryTotal),externalMemory:m(e.memory.externalMemory)},r=[{label:"RSS Memory",value:`${s.rssMemory.toFixed(2)} MB`,sublabel:`/ ${s.rssMemoryTotal.toFixed(2)} MB total`,color:"var(--chart-1)"},{label:"External Memory",value:`${s.externalMemory.toFixed(2)} MB`,sublabel:"native C++ objects",color:"var(--chart-2)"},{label:"GC Pause Average",value:`${e.garbageCollection.gcPauseAverage.toFixed(2)} ms`,sublabel:"milliseconds",color:"var(--chart-3)"},{label:"Active Handles",value:`${e.handles.activeHandles}`,sublabel:`timers: ${e.handles.activeHandlesTimers} * sockets: ${e.handles.activeHandlesSockets}`,color:"var(--chart-4)"}];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,t.jsxs)(d,{children:[(0,t.jsx)(x,{title:"CPU Usage",value:e.cpu.usageRate,unit:"%",color:"[var(--chart-6)]"}),(0,t.jsx)(_,{data:[{label:"User",value:e.cpu.userUsage,color:"var(--chart-5)"},{label:"System",value:e.cpu.systemUsage,color:"var(--chart-1)"}],maxValue:100}),(0,t.jsx)(h,{values:{"Number of Cores":e.cpu.numberOfCores.toString(),"User Usage":`${e.cpu.userUsage.toFixed(2)}%`,"System Usage":`${e.cpu.systemUsage.toFixed(2)}%`,"Idle Usage":`${e.cpu.idleUsage.toFixed(2)}%`}})]}),(0,t.jsxs)(d,{children:[(0,t.jsx)(x,{title:"Heap Usage",value:s.heapUsage,unit:"MB",color:"[var(--chart-2)]"}),(0,t.jsx)(_,{data:[{label:"Heap Usage",value:s.heapUsage,color:"var(--chart-2)"}],maxValue:s.heapSize}),(0,t.jsx)(h,{values:{"Heap Size":`${s.heapSize.toFixed(2)} MB`,"External Memory":`${s.externalMemory.toFixed(2)} MB`}}),(0,t.jsx)(_,{data:[{label:"RSS Memory",value:s.rssMemory,color:"var(--chart-5)"}],maxValue:s.rssMemoryTotal}),(0,t.jsx)(h,{values:{"RSS Memory":`${s.rssMemory.toFixed(2)} MB`,"RSS Memory Total":`${s.rssMemoryTotal.toFixed(2)} MB`}})]}),(0,t.jsxs)(d,{children:[(0,t.jsx)(x,{title:"Event Loop Lag",value:e.eventLoop.lag,unit:"ms",color:"[var(--chart-4)]"}),(0,t.jsx)(_,{data:[{label:"Event Loop Lag",value:e.eventLoop.lag,color:"var(--chart-4)"}],maxValue:e.eventLoop.threshold}),(0,t.jsx)(h,{values:{Threshold:`${e.eventLoop.threshold} ms`}})]})]}),(0,t.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mt-4",children:r.map((e,s)=>(0,t.jsxs)(c,{padding:!0,children:[(0,t.jsx)("h2",{className:"text-lg font-semibold text-foreground mb-2",children:e.label}),(0,t.jsx)("p",{className:`text-2xl font-bold text-[${e.color}] mb-1`,children:e.value}),(0,t.jsx)("div",{className:"flex justify-between text-sm text-accent-soft",children:(0,t.jsx)("span",{children:e.sublabel})})]},s))})]})}let X=e=>0===Math.round(e)?"now":`${Math.round(e)}s`;function W({data:e}){return(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mt-4",children:[(0,t.jsx)(c,{header:{title:"Event Loop Lag",description:"Event loop lag over time",tooltip:"The event loop lag indicates how long it takes for the Node.js event loop to process events. A higher lag may indicate that the server is under heavy load or that there are blocking operations."},children:(0,t.jsx)(y,{data:[{label:"Event Loop Lag",points:e.history.eventLoopLag.map((t,s)=>({x:e.history.timeline[s],y:t})),color:"var(--chart-3)",type:"solid",fillArea:!1}],withDots:!1,formatXLabel:X})}),(0,t.jsx)(c,{header:{title:"Heap Memory Usage",description:"Heap memory usage over time",tooltip:"Heap memory is the memory used by the JavaScript engine to store objects, strings, and other data. This graph shows the amount of heap memory used over time."},children:(0,t.jsx)(y,{data:[{label:"Used MB",points:e.history.memoryBreakdown.usedHeap.map((t,s)=>({x:e.history.timeline[s],y:p(t)})),color:"var(--chart-3)",type:"solid",fillArea:!1},{label:"Total MB",points:e.history.memoryBreakdown.totalHeap.map((t,s)=>({x:e.history.timeline[s],y:p(t)})),color:"var(--chart-2)",type:"dashed",fillArea:!1},{label:"RSS MB",points:e.history.memoryBreakdown.rssMemory.map((t,s)=>({x:e.history.timeline[s],y:p(t)})),color:"var(--chart-4)",type:"solid",fillArea:!1}],withDots:!1,formatXLabel:X})})]})}function K({type:e="horizontal"}){return(0,t.jsx)("div",{className:`w-full ${"horizontal"===e?"h-px my-2":"h-full w-px mx-2"} bg-gray-300 dark:bg-gray-700`})}function Y({title:e,value:s}){return(0,t.jsxs)("div",{className:"flex flex-row justify-between h-full",children:[(0,t.jsx)("span",{className:"text-[10px] text-foreground uppercase tracking-wider font-semibold block mb-1 truncate",children:e}),(0,t.jsx)("span",{className:"text-[10px] text-foreground-soft uppercase tracking-wider font-semibold block mb-1 ml-2",children:s})]})}function J({data:e}){let s=[["PID",e.runtime.pid],["Platform",e.runtime.platform],["NODE.JS",e.runtime.nodeVersion],["V8 ENGINE",e.runtime.v8Version],["LIBUV",e.runtime.libuvVersion],["OPENSSL",e.runtime.openSSLVersion]];return(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mt-4",children:[(0,t.jsxs)(d,{header:{title:"Garbage Collection"},children:[(0,t.jsx)(h,{variant:"accent",values:{"Minor GC (SCAVENGE)":`Run Count: ${e.garbageCollection.minorGC.runCount} Total Time: ${e.garbageCollection.minorGC.averageTime.toFixed(2)} ms`,"Major GC (MARK_SWEEP)":`Run Count: ${e.garbageCollection.majorGC.runCount} Total Time: ${e.garbageCollection.majorGC.averageTime.toFixed(2)} ms`,"Incremental GC (INCREMENTAL_MARKING)":`Run Count: ${e.garbageCollection.incrementalGC.runCount} Total Time: ${e.garbageCollection.incrementalGC.averageTime.toFixed(2)} ms`}}),(0,t.jsx)("div",{className:"space-y-2",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mt-4",children:[(0,t.jsx)(c,{padding:!0,children:(0,t.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,t.jsx)("p",{className:"text-[10px] text-accent-soft uppercase tracking-wider font-semibold block",children:"HEAP SPACES"}),e.garbageCollection.heapSpaces.map((e,s)=>(0,t.jsx)(Y,{title:e.label,value:`${e.used.toFixed(2)} MB`},s))]})}),(0,t.jsx)(c,{padding:!0,children:(0,t.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,t.jsx)("p",{className:"text-[10px] text-accent-soft uppercase tracking-wider font-semibold block",children:"GC TOTALS"}),(0,t.jsx)(h,{variant:"accent",values:{"Total Pause":`${e.garbageCollection.gcTotals.totalPauseTime.toFixed(2)} ms`,"Freed Memory":`${e.garbageCollection.gcTotals.freedMemory.toFixed(2)} MB`,Promotions:`${e.garbageCollection.gcTotals.promotions}`,"Tenured Size":`${e.garbageCollection.gcTotals.tenuredSize.toFixed(2)} MB`}})]})})]})})]}),(0,t.jsxs)(d,{header:{title:"Process & Runtime Info"},children:[(0,t.jsx)("div",{className:"grid grid-cols-3 md:grid-cols-2 gap-4",children:s.map(([e,s],r)=>(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-[10px] text-accent-soft uppercase tracking-wider font-semibold block",children:e}),(0,t.jsx)("p",{className:"text-sm text-foreground",children:s})]},r))}),(0,t.jsx)(K,{}),(0,t.jsx)("p",{className:"text-[10px] text-accent-soft uppercase tracking-wider font-semibold block",children:"ACTIVE LIBUV HANDLES"}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-sm text-accent-soft",children:[(0,t.jsx)("p",{children:"TCP sockets:"}),(0,t.jsx)("span",{children:e.handles.activeLibuvHandles})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-sm text-accent-soft",children:[(0,t.jsx)("p",{children:"Timers:"}),(0,t.jsx)("span",{children:e.handles.timers})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-sm text-accent-soft",children:[(0,t.jsx)("p",{children:"File descriptors:"}),(0,t.jsx)("span",{children:e.handles.fileDescriptors})]}),(0,t.jsx)(K,{}),(0,t.jsx)("p",{className:"text-[10px] text-accent-soft uppercase tracking-wider font-semibold block",children:"THREAD POOL (UV_THREADPOOL_SIZE)"}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-sm text-accent-soft",children:[(0,t.jsx)("p",{children:"Size:"}),(0,t.jsx)("span",{children:e.runtime.threadPoolSize})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-sm text-accent-soft",children:[(0,t.jsx)("p",{children:"Active Threads:"}),(0,t.jsx)("span",{children:e.runtime.activeThreads})]}),(0,t.jsx)(K,{}),(0,t.jsx)("p",{className:"text-[10px] text-accent-soft uppercase tracking-wider font-semibold block",children:"STARTUP TIME"}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-sm text-accent-soft",children:[(0,t.jsx)("p",{children:"Bootstrap:"}),(0,t.jsxs)("span",{children:[e.runtime.startup.bootstrapTime.toFixed(2)," ms"]})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-sm text-accent-soft",children:[(0,t.jsx)("p",{children:"Requires:"}),(0,t.jsxs)("span",{children:[e.runtime.startup.requiredModules," modules"]})]})]})]})}function Z(){let{data:e}=(0,P.useMetrics)(),{health:s}=e;return(0,t.jsxs)("div",{className:"p-6",children:[(0,t.jsx)(V,{data:s}),(0,t.jsx)(W,{data:s}),(0,t.jsx)(J,{data:s})]})}function Q({sessions:e,selectedSessionNumber:r,onSessionClick:a}){let[l,i]=s.default.useState(0);if(!e||"object"!=typeof e||!Array.isArray(e)||0===e.length)return null;let n=e.slice(10*l,(l+1)*10);return(0,t.jsxs)(c,{padding:!0,header:{title:"Session Lifeline",description:`Total: ${e.length}`,tooltip:"This section displays the history of sessions."},children:[(0,t.jsx)("button",{type:"button",onClick:()=>i(e=>Math.max(e-1,0)),disabled:0===l,className:`
2
+ py-1 rounded-md w-full
3
+ text-sm font-semibold
4
+ bg-[var(--variant-4)]
5
+ transition-all duration-200
6
+ ${0===l?"bg-[var(--variant-5)] text-[var(--variant-1)] cursor-not-allowed":"text-white cursor-pointer"}
7
+ `,children:"Previous"}),(0,t.jsxs)("div",{className:"relative pl-2",children:[(0,t.jsx)("div",{className:"absolute left-[15px] top-7 bottom-7 w-px bg-[var(--variant-5)]"}),(0,t.jsx)("div",{className:"flex flex-col",children:n.map((e,s)=>{let l=r===e.sessionNumber;return n.length,(0,t.jsxs)("div",{className:"relative flex items-center min-h-12",children:[(0,t.jsx)("button",{type:"button",onClick:()=>a?.(e.sessionNumber),"aria-label":`Select session ${e.sessionNumber}`,className:`
8
+ group relative z-10 flex items-center justify-center w-4 h-4 rounded-full border-1
9
+ transition-all duration-200
10
+ focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-400
11
+ ${l?"border-blue-500 bg-blue-500 shadow-md shadow-blue-500/30 scale-110":"INTERRUPTED"===e.status?"border-yellow-500 bg-yellow-400 hover:scale-110":"border-green-500 bg-green-500 hover:scale-110"}
12
+ `,children:(0,t.jsx)("span",{className:`
13
+ w-3 h-3 rounded-full bg-[var(--variant-1)]
14
+ transition-transform duration-200
15
+ ${l?"scale-100":"scale-75 group-hover:scale-100"}
16
+ `})}),(0,t.jsxs)("button",{type:"button",onClick:()=>a?.(e.sessionNumber),className:`
17
+ ml-4 px-3 py-1.5 rounded-md
18
+ text-sm text-left
19
+ transition-all duration-200
20
+ ${l?"bg-[var(--variant-3)] text-[var(--variant-4)] font-semibold":"text-gray-600 hover:bg-[var(--variant-3)] hover:text-gray-900"}
21
+ `,children:["Session ",e.sessionNumber,"INTERRUPTED"===e.status&&(0,t.jsx)("p",{className:"ml-2 text-xs text-yellow-600",children:"interrupted"})]})]},e.sessionNumber)})})]}),(0,t.jsx)("button",{type:"button",onClick:()=>i(e=>e+1),disabled:(l+1)*10>=e.length,className:`
22
+ mt-2 py-1 rounded-md w-full
23
+ text-sm font-semibold
24
+ bg-[var(--variant-4)]
25
+ transition-all duration-200
26
+ ${(l+1)*10>=e.length?"bg-[var(--variant-5)] text-[var(--variant-1)] cursor-not-allowed":"text-white cursor-pointer"}
27
+ `,children:"Next"})]})}var ee=e.i(18376),ee=ee;let et={RUNNING:"var(--chart-6)",COMPLETED:"var(--chart-3)",INTERRUPTED:"var(--chart-4)"},es={FIRING:"border-[var(--chart-5)]",RESOLVED:"border-[var(--chart-1)]"},er=[{header:"Method",render:e=>(0,t.jsx)("span",{className:"font-semibold",children:e.method})},{header:"Route",render:e=>e.route},{header:"Impacted",numeric:!0,render:e=>u(e.impactedRequests)},{header:"Requests",numeric:!0,render:e=>u(e.requestCount)},{header:"P95",numeric:!0,render:e=>`${e.p95.toFixed(1)} ms`},{header:"5xx",numeric:!0,render:e=>`${(100*e.serverErrorRate).toFixed(2)} %`}];function ea(e){let t=Math.round(e/1e3),s=Math.floor(t/3600),r=Math.floor(t%3600/60),a=t%60;return s>0?`${s}h ${r}m`:r>0?`${r}m ${a}s`:`${a}s`}let el=e=>e?new Date(e).toLocaleString():"In Progress";function ei(e,t){let s=Date.parse(e.windowStart),r=e.series.resolutionMs,a=[],l=null;for(let i of e.series.points){let e=(Date.parse(i.startTime)-s)/1e3;null!==l&&e-l>r/1e3*1.5&&a.push({x:l+r/1e3,y:null}),a.push({x:e,y:t(i)}),l=e}return a}function en({selected:e}){let s,{downloadSession:r}=(0,P.useMetrics)();if(!e)return(0,t.jsx)("div",{className:"flex flex-col h-full w-full items-center justify-center",children:(0,t.jsx)("p",{className:"text-sm text-gray-500",children:"No session selected"})});let a=Date.parse(e.windowStart),l=e=>new Date(a+1e3*e).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),{quality:i}=e,n=e.incidents.filter(e=>"FIRING"===e.status).length;return(0,t.jsxs)("div",{className:"flex flex-col h-full w-full gap-2 pb-4",children:[(0,t.jsx)(c,{padding:!0,children:(0,t.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,t.jsxs)("div",{className:"flex w-full justify-between",children:[(0,t.jsxs)("p",{className:"text-sm font-medium text-gray-700",children:["Session ",e.sessionNumber,(0,t.jsx)("span",{className:"ml-2 text-xs font-semibold",style:{color:et[e.status]},children:e.status})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1 cursor-pointer",onClick:()=>r(e.sessionNumber),children:[(0,t.jsx)("p",{className:"text-xs text-gray-500",children:"Download Full"}),(0,t.jsx)(ee.default,{className:"w-4 h-4 text-[var(--color-accent)]"})]})]}),(0,t.jsxs)("div",{className:"flex w-full justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"text-xs text-gray-500",children:["Started: ",el(e.startedAt)]}),(0,t.jsxs)("p",{className:"text-xs text-gray-500",children:["Ended: ",el(e.endedAt)]})]}),(0,t.jsxs)("div",{className:"text-right",children:[(0,t.jsxs)("p",{className:"text-xs text-gray-500",children:["Measured: ",ea(e.measuredMs)," in ",i.bucketCount," intervals"]}),(0,t.jsx)("p",{className:`text-xs ${i.complete?"text-gray-500":"text-yellow-600"}`,children:i.complete?"Data complete":`Incomplete data: ${i.missingIntervals} missing intervals, ${i.conflicts} conflicts`})]})]})]})}),(0,t.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[(0,t.jsx)(d,{children:(0,t.jsx)(x,{title:"Requests",value:u(e.traffic.requestCount),tooltip:"Total number of HTTP requests measured in this session."})}),(0,t.jsx)(d,{children:(0,t.jsx)(x,{title:"Avg / Peak RPS",value:`${e.traffic.avgRps.toFixed(1)} / ${e.traffic.peakRps.toFixed(1)}`,tooltip:"Average requests per second over the measured time, and the highest single-interval value."})}),(0,t.jsx)(d,{children:(0,t.jsx)(x,{title:"Latency p50 / p95 / p99",value:`${e.latency.p50.toFixed(0)} / ${e.latency.p95.toFixed(0)} / ${e.latency.p99.toFixed(0)}`,unit:"ms",tooltip:`Latency percentiles of all requests in the session, from the latency histogram. Slowest request: ${e.latency.max.toFixed(2)} ms.`})}),(0,t.jsx)(d,{children:(0,t.jsx)(x,{title:"5xx Rate",value:(s=e.errors.serverErrorRate,`${(100*s).toFixed(2)}`),unit:`% (${e.errors.serverErrorCount}) * 4xx: ${e.errors.clientErrorCount}`,tooltip:"Share of requests that ended with a server error (5xx). Client errors (4xx) are shown separately."})})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-2",children:[(0,t.jsx)(c,{header:{title:"Throughput",description:`Per ${ea(e.series.resolutionMs)}`},children:(0,t.jsx)(y,{data:[{points:ei(e,e=>e.rps),color:"var(--color-accent)",type:"solid",fillArea:!1,label:"Average RPS"},{points:ei(e,e=>e.maxRps),color:"var(--chart-2)",type:"dashed",fillArea:!1,label:"Peak RPS"}],withDots:!1,formatXLabel:l})}),(0,t.jsx)(c,{header:{title:"Latency & Errors",description:`Per ${ea(e.series.resolutionMs)}`},children:(0,t.jsx)(y,{data:[{points:ei(e,e=>e.p95),color:"var(--chart-2)",type:"solid",fillArea:!1,label:"P95 ms"},{points:ei(e,e=>e.serverErrorCount),color:"var(--chart-5)",type:"solid",fillArea:!0,label:"5xx"},{points:ei(e,e=>e.clientErrorCount),color:"var(--chart-4)",type:"dashed",fillArea:!1,label:"4xx"}],withDots:!1,formatXLabel:l})})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-5 gap-2",children:[(0,t.jsx)("div",{className:"md:col-span-3",children:(0,t.jsx)(c,{header:{title:"Top routes by Impact",description:"5xx + slow requests",tooltip:"Routes ranked by impacted requests in this session: server errors (5xx) plus requests slower than the slow latency threshold."},children:(0,t.jsx)($,{columns:er,rows:e.topRoutes,rowKey:e=>`${e.method}:${e.route}`,emptyText:"No impacted routes."})})}),(0,t.jsx)("div",{className:"md:col-span-2",children:(0,t.jsxs)(c,{header:{title:"Incidents",description:`${e.incidents.length} total${n>0?`, ${n} open`:""}`},children:[0===e.incidents.length&&(0,t.jsx)("p",{className:"text-sm text-gray-500 p-4",children:"No incidents."}),e.incidents.map(e=>(0,t.jsxs)("div",{className:`flex flex-col p-2 border-l-3 ${es[e.status]} m-2`,children:[(0,t.jsxs)("p",{className:"text-sm text-foreground",children:[e.title," * ",e.status]}),(0,t.jsxs)("p",{className:"text-xs text-accent-soft",children:[el(e.firedAt),e.resolvedAt?` - ${new Date(e.resolvedAt).toLocaleTimeString()}`:"",` * peak ${e.peakValue.toFixed(2)} ${e.unit} * ${e.severity}`]})]},e.incidentId))]})})]})]})}function eo(){let{sessions:e,selectedSession:s,selectedSessionSummary:r,selectSession:a}=(0,P.useMetrics)();return(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-[1fr_5fr] gap-4 w-full h-full p-4",children:[(0,t.jsx)(Q,{onSessionClick:e=>a(e),selectedSessionNumber:s,sessions:e}),(0,t.jsx)(en,{selected:r})]})}let ec={INSUFFICIENT_DATA:"Insufficient data",NO_STRONG_ASSOCIATION:"No strong association",STRONG_LINEAR_ASSOCIATION:"Strong linear",STRONG_MONOTONIC_NONLINEAR_ASSOCIATION:"Strong monotonic"},ed={INSUFFICIENT_DATA:"var(--chart-1)",NO_STRONG_ASSOCIATION:"var(--chart-6)",STRONG_LINEAR_ASSOCIATION:"var(--chart-5)",STRONG_MONOTONIC_NONLINEAR_ASSOCIATION:"var(--chart-4)"},ex={POSITIVE:"↑",NEGATIVE:"↓",NONE:"–"},eh={INSUFFICIENT_DATA:"Insufficient data",NO_SATURATION_PATTERN:"No saturation pattern",POSSIBLE_SATURATION:"Possible saturation"},eu={INSUFFICIENT_DATA:"var(--chart-1)",NO_SATURATION_PATTERN:"var(--chart-3)",POSSIBLE_SATURATION:"var(--chart-5)"};function em({assessment:e}){let s=eu[e.status];return(0,t.jsx)(c,{padding:!0,children:(0,t.jsxs)("div",{className:"flex flex-col gap-2 pl-3 border-l-4",style:{borderColor:s},children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("p",{className:"text-xs font-semibold text-accent-soft uppercase tracking-wider",children:"Assessment"}),(0,t.jsx)("span",{className:"text-sm font-semibold",style:{color:s},children:eh[e.status]})]}),(0,t.jsx)("p",{className:"text-sm text-foreground",children:e.recommendation}),e.evidence.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:e.evidence.map(e=>(0,t.jsx)("span",{className:"text-xs px-2 py-1 rounded-md bg-[var(--variant-3)] text-foreground",children:e},e))})]})})}let ep=[{header:"Pair",render:e=>`${e.xLabel} → ${e.yLabel}`},{header:"Status",render:e=>(0,t.jsx)(S,{label:ec[e.analysis.status],color:ed[e.analysis.status]})},{header:"Dir",render:e=>(0,t.jsxs)(t.Fragment,{children:[ex[e.analysis.direction],e.unexpectedDirection&&(0,t.jsx)("span",{className:"ml-1 text-yellow-600",title:"Opposite to the expected direction",children:"!"})]})},{header:"Pearson",numeric:!0,render:e=>e.analysis.pearsonR.toFixed(3)},{header:"Spearman",numeric:!0,render:e=>e.analysis.spearmanR.toFixed(3)},{header:"Eff. N",numeric:!0,render:e=>{let s=e.analysis.effectiveSampleSize>=e.analysis.requiredSampleSize;return(0,t.jsx)("span",{className:s?void 0:"text-yellow-600",children:`${Math.round(e.analysis.effectiveSampleSize)} / ${e.analysis.requiredSampleSize}`})}},{header:"Lag",numeric:!0,render:e=>e.analysis.lag}];function ef({results:e,selectedId:s,onSelect:r}){return(0,t.jsx)(c,{header:{title:"Metric pairs",description:"Select a pair to view details"},children:(0,t.jsx)($,{columns:ep,rows:e,rowKey:e=>e.id,selectedKey:s,onRowClick:e=>r?.(e.id),emptyText:"No correlation results yet."})})}function eg({title:e,values:s}){return(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("p",{className:"text-[10px] text-accent-soft uppercase tracking-wider font-semibold",children:e}),s.map(([e,s])=>(0,t.jsxs)("div",{className:"flex justify-between text-sm",children:[(0,t.jsx)("span",{className:"text-accent-soft",children:e}),(0,t.jsx)("span",{className:"text-foreground font-medium",children:s})]},e))]})}function ev({result:e}){if(null===e)return(0,t.jsx)(c,{header:{title:"Details"},padding:!0,children:(0,t.jsx)("p",{className:"text-sm text-accent-soft",children:"No pair selected."})});let{analysis:s}=e;return(0,t.jsx)(c,{header:{title:"Details",description:`${e.xLabel} → ${e.yLabel}`},padding:!0,children:(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-sm font-semibold",style:{color:ed[s.status]},children:ec[s.status]}),(0,t.jsx)("span",{className:"text-sm text-accent-soft",children:`${ex[s.direction]} ${s.direction.toLowerCase()} (expected ${e.expectedDirection.toLowerCase()})`})]}),(0,t.jsx)(eg,{title:"Strength",values:[["Pearson r",s.pearsonR.toFixed(3)],["Spearman ρ",s.spearmanR.toFixed(3)],["Determination R²",s.determination.toFixed(3)]]}),(0,t.jsx)(eg,{title:"Time effects",values:[["Raw Pearson r",s.rawPearsonR.toFixed(3)],["Differenced Pearson r",s.differencePearsonR.toFixed(3)],["Best lag",`${s.lag}`],["Lagged Pearson r",s.laggedPearsonR.toFixed(3)],["Trend driven",s.trendDriven?"Yes":"No"]]}),(0,t.jsx)(eg,{title:"Sample",values:[["Sample size",`${s.sampleSize}`],["Effective / required",`${Math.round(s.effectiveSampleSize)} / ${s.requiredSampleSize}`],["Autocorrelation X",s.autocorrelationX.toFixed(3)],["Autocorrelation Y",s.autocorrelationY.toFixed(3)]]}),(0,t.jsx)("p",{className:"text-sm text-foreground border-t border-border pt-3",children:s.recommendation})]})})}function ej(){let[e,r]=s.default.useState(null),{data:a}=(0,P.useMetrics)(),{correlation:l}=a,i=l.results.find(t=>t.id===e)??l.results[0]??null;return(0,t.jsxs)("div",{className:"p-6 space-y-4",children:[(0,t.jsx)(em,{assessment:l.assessment}),(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-5 gap-4 items-start",children:[(0,t.jsx)("div",{className:"lg:col-span-3",children:(0,t.jsx)(ef,{results:l.results,selectedId:i?.id??null,onSelect:r})}),(0,t.jsx)("div",{className:"lg:col-span-2",children:(0,t.jsx)(ev,{result:i})})]})]})}var eb=e.i(11350);function ey(){let{configuration:e}=(0,eb.useConnection)();return e?(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 m-4",children:[["General",{applicationVersion:e.applicationVersion,tickIntervalMs:e.tickIntervalMs,publishIntervalMs:e.publisher.intervalMs}],["Collection",e.collection],["Thresholds",e.thresholds],["Cache",e.cache],["Dashboard",e.dashboard],["Persistence",e.persistence],["Incidents",e.incidents],["Correlation",e.correlation],["Simulation",e.simulation]].map(([e,s])=>(0,t.jsx)(d,{header:{title:e},children:!1===s?(0,t.jsx)("p",{className:"text-sm text-accent-soft",children:"Disabled"}):(0,t.jsx)(h,{variant:"default",values:Object.fromEntries(Object.entries(s).map(([e,t])=>[e,Array.isArray(t)?t.length?t.join(", "):"-":"boolean"==typeof t?t?"true":"false":null==t?"":String(t)]))})},e))}):(0,t.jsx)("p",{className:"m-4 text-sm text-accent-soft",children:"Configuration not received yet."})}var eN=e.i(52446);e.s(["default",0,function(){let{activeTab:e}=(0,eN.useGate)();return(0,t.jsxs)(t.Fragment,{children:["/"===e&&(0,t.jsx)(k,{}),"/analytics"===e&&(0,t.jsx)(B,{}),"/health"===e&&(0,t.jsx)(Z,{}),"/sessions"===e&&(0,t.jsx)(eo,{}),"/correlation"===e&&(0,t.jsx)(ej,{}),"/configuration"===e&&(0,t.jsx)(ey,{})]})}],42775)}]);
@@ -1,22 +1,22 @@
1
1
  1:"$Sreact.fragment"
2
- 2:I[98747,["./_next/static/chunks/2xjcsu4pgp14_.js","./_next/static/chunks/158myu8e_yme3.js","./_next/static/chunks/3z-nzyp9z8vih.js"],"ThemeProvider"]
3
- 3:I[52446,["./_next/static/chunks/2xjcsu4pgp14_.js","./_next/static/chunks/158myu8e_yme3.js","./_next/static/chunks/3z-nzyp9z8vih.js"],"GateProvider"]
4
- 4:I[11350,["./_next/static/chunks/2xjcsu4pgp14_.js","./_next/static/chunks/158myu8e_yme3.js","./_next/static/chunks/3z-nzyp9z8vih.js"],"ConnectionProvider"]
5
- 5:I[65327,["./_next/static/chunks/2xjcsu4pgp14_.js","./_next/static/chunks/158myu8e_yme3.js","./_next/static/chunks/3z-nzyp9z8vih.js"],"MetricsProvider"]
6
- 6:I[28874,["./_next/static/chunks/2xjcsu4pgp14_.js","./_next/static/chunks/158myu8e_yme3.js","./_next/static/chunks/3z-nzyp9z8vih.js"],"default"]
7
- 7:I[28407,["./_next/static/chunks/2xjcsu4pgp14_.js","./_next/static/chunks/158myu8e_yme3.js","./_next/static/chunks/3z-nzyp9z8vih.js"],"default"]
8
- 8:I[39756,["./_next/static/chunks/2xjcsu4pgp14_.js","./_next/static/chunks/158myu8e_yme3.js","./_next/static/chunks/3z-nzyp9z8vih.js"],"default"]
9
- 9:I[37457,["./_next/static/chunks/2xjcsu4pgp14_.js","./_next/static/chunks/158myu8e_yme3.js","./_next/static/chunks/3z-nzyp9z8vih.js"],"default"]
10
- a:I[97367,["./_next/static/chunks/2xjcsu4pgp14_.js","./_next/static/chunks/158myu8e_yme3.js","./_next/static/chunks/3z-nzyp9z8vih.js"],"OutletBoundary"]
2
+ 2:I[98747,["./_next/static/chunks/062oipeclh9bq.js","./_next/static/chunks/0xtgenoch3q77.js","./_next/static/chunks/158myu8e_yme3.js"],"ThemeProvider"]
3
+ 3:I[52446,["./_next/static/chunks/062oipeclh9bq.js","./_next/static/chunks/0xtgenoch3q77.js","./_next/static/chunks/158myu8e_yme3.js"],"GateProvider"]
4
+ 4:I[11350,["./_next/static/chunks/062oipeclh9bq.js","./_next/static/chunks/0xtgenoch3q77.js","./_next/static/chunks/158myu8e_yme3.js"],"ConnectionProvider"]
5
+ 5:I[65327,["./_next/static/chunks/062oipeclh9bq.js","./_next/static/chunks/0xtgenoch3q77.js","./_next/static/chunks/158myu8e_yme3.js"],"MetricsProvider"]
6
+ 6:I[28874,["./_next/static/chunks/062oipeclh9bq.js","./_next/static/chunks/0xtgenoch3q77.js","./_next/static/chunks/158myu8e_yme3.js"],"default"]
7
+ 7:I[28407,["./_next/static/chunks/062oipeclh9bq.js","./_next/static/chunks/0xtgenoch3q77.js","./_next/static/chunks/158myu8e_yme3.js"],"default"]
8
+ 8:I[39756,["./_next/static/chunks/062oipeclh9bq.js","./_next/static/chunks/0xtgenoch3q77.js","./_next/static/chunks/158myu8e_yme3.js"],"default"]
9
+ 9:I[37457,["./_next/static/chunks/062oipeclh9bq.js","./_next/static/chunks/0xtgenoch3q77.js","./_next/static/chunks/158myu8e_yme3.js"],"default"]
10
+ a:I[97367,["./_next/static/chunks/062oipeclh9bq.js","./_next/static/chunks/0xtgenoch3q77.js","./_next/static/chunks/158myu8e_yme3.js"],"OutletBoundary"]
11
11
  b:"$Sreact.suspense"
12
- e:I[97367,["./_next/static/chunks/2xjcsu4pgp14_.js","./_next/static/chunks/158myu8e_yme3.js","./_next/static/chunks/3z-nzyp9z8vih.js"],"ViewportBoundary"]
13
- 10:I[97367,["./_next/static/chunks/2xjcsu4pgp14_.js","./_next/static/chunks/158myu8e_yme3.js","./_next/static/chunks/3z-nzyp9z8vih.js"],"MetadataBoundary"]
14
- 12:I[68027,["./_next/static/chunks/2xjcsu4pgp14_.js","./_next/static/chunks/158myu8e_yme3.js","./_next/static/chunks/3z-nzyp9z8vih.js"],"default",1]
15
- :HL["./_next/static/chunks/3xoopocxi2vi8.css","style"]
16
- 0:{"P":null,"c":["","_not-found",""],"q":"","i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"./_next/static/chunks/3xoopocxi2vi8.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"./_next/static/chunks/2xjcsu4pgp14_.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"./_next/static/chunks/158myu8e_yme3.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"./_next/static/chunks/3z-nzyp9z8vih.js","async":true,"nonce":"$undefined"}]],["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"children":["$","$L5",null,{"children":["$","div",null,{"className":"flex flex-col w-full h-screen overflow-hidden","children":[["$","$L6",null,{}],["$","div",null,{"className":"flex flex-row w-full h-full overflow-hidden","children":[["$","$L7",null,{}],["$","div",null,{"className":"flex flex-col w-full h-full overflow-auto","children":[["$","$L8",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L9",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}],["$","div",null,{"className":"flex items-center justify-between h-10 p-3","children":[["$","p",null,{"className":"text-sm text-[var(--variant-6)]","children":"optima-agent v1.0.0"}],["$","p",null,{"className":"text-sm text-[var(--variant-6)]","children":"telemetry healthy"}]]}]]}]]}]]}]}]}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L8",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L9",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:1:props:children:1:props:children:0:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:1:props:children:1:props:children:0:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:1:props:children:1:props:children:0:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:1:props:children:1:props:children:0:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],null,["$","$La",null,{"children":["$","$b",null,{"name":"Next.MetadataOutlet","children":"$@c"}]}]]}],{},null,false,null]},null,false,"$@d"]},null,false,null],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$Le",null,{"children":"$Lf"}],["$","div",null,{"hidden":true,"children":["$","$L10",null,{"children":["$","$b",null,{"name":"Next.Metadata","children":"$L11"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$12",[["$","link","0",{"rel":"stylesheet","href":"./_next/static/chunks/3xoopocxi2vi8.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"kFIRZt4fuL4Zsh38-jGui"}
12
+ e:I[97367,["./_next/static/chunks/062oipeclh9bq.js","./_next/static/chunks/0xtgenoch3q77.js","./_next/static/chunks/158myu8e_yme3.js"],"ViewportBoundary"]
13
+ 10:I[97367,["./_next/static/chunks/062oipeclh9bq.js","./_next/static/chunks/0xtgenoch3q77.js","./_next/static/chunks/158myu8e_yme3.js"],"MetadataBoundary"]
14
+ 12:I[68027,["./_next/static/chunks/062oipeclh9bq.js","./_next/static/chunks/0xtgenoch3q77.js","./_next/static/chunks/158myu8e_yme3.js"],"default",1]
15
+ :HL["./_next/static/chunks/0ncbimuip0-o7.css","style"]
16
+ 0:{"P":null,"c":["","_not-found",""],"q":"","i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"./_next/static/chunks/0ncbimuip0-o7.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"./_next/static/chunks/062oipeclh9bq.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"./_next/static/chunks/0xtgenoch3q77.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"./_next/static/chunks/158myu8e_yme3.js","async":true,"nonce":"$undefined"}]],["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"children":["$","$L5",null,{"children":["$","div",null,{"className":"flex flex-col w-full h-screen overflow-hidden","children":[["$","$L6",null,{}],["$","div",null,{"className":"flex flex-row w-full h-full overflow-hidden","children":[["$","$L7",null,{}],["$","div",null,{"className":"flex flex-col w-full h-full overflow-auto","children":["$","$L8",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L9",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]]}]}]}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L8",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L9",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:1:props:children:1:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:1:props:children:1:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:1:props:children:1:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:1:props:children:1:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],null,["$","$La",null,{"children":["$","$b",null,{"name":"Next.MetadataOutlet","children":"$@c"}]}]]}],{},null,false,null]},null,false,"$@d"]},null,false,null],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$Le",null,{"children":"$Lf"}],["$","div",null,{"hidden":true,"children":["$","$L10",null,{"children":["$","$b",null,{"name":"Next.Metadata","children":"$L11"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$12",[["$","link","0",{"rel":"stylesheet","href":"./_next/static/chunks/0ncbimuip0-o7.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"17egwqgk36_DSRF55LJZG"}
17
17
  13:[]
18
18
  d:"$W13"
19
19
  f:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
20
- 14:I[27201,["./_next/static/chunks/2xjcsu4pgp14_.js","./_next/static/chunks/158myu8e_yme3.js","./_next/static/chunks/3z-nzyp9z8vih.js"],"IconMark"]
20
+ 14:I[27201,["./_next/static/chunks/062oipeclh9bq.js","./_next/static/chunks/0xtgenoch3q77.js","./_next/static/chunks/158myu8e_yme3.js"],"IconMark"]
21
21
  c:null
22
22
  11:[["$","title","0",{"children":"Optima"}],["$","meta","1",{"name":"description","content":"Generated by create next app"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.2vob68tjqpejf.ico","sizes":"256x256","type":"image/x-icon"}],["$","$L14","3",{}]]
@@ -1,6 +1,6 @@
1
1
  1:"$Sreact.fragment"
2
- 2:I[97367,["./_next/static/chunks/2xjcsu4pgp14_.js","./_next/static/chunks/158myu8e_yme3.js","./_next/static/chunks/3z-nzyp9z8vih.js"],"ViewportBoundary"]
3
- 3:I[97367,["./_next/static/chunks/2xjcsu4pgp14_.js","./_next/static/chunks/158myu8e_yme3.js","./_next/static/chunks/3z-nzyp9z8vih.js"],"MetadataBoundary"]
2
+ 2:I[97367,["./_next/static/chunks/062oipeclh9bq.js","./_next/static/chunks/0xtgenoch3q77.js","./_next/static/chunks/158myu8e_yme3.js"],"ViewportBoundary"]
3
+ 3:I[97367,["./_next/static/chunks/062oipeclh9bq.js","./_next/static/chunks/0xtgenoch3q77.js","./_next/static/chunks/158myu8e_yme3.js"],"MetadataBoundary"]
4
4
  4:"$Sreact.suspense"
5
- 5:I[27201,["./_next/static/chunks/2xjcsu4pgp14_.js","./_next/static/chunks/158myu8e_yme3.js","./_next/static/chunks/3z-nzyp9z8vih.js"],"IconMark"]
6
- 0:{"rsc":["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"Optima"}],["$","meta","1",{"name":"description","content":"Generated by create next app"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.2vob68tjqpejf.ico","sizes":"256x256","type":"image/x-icon"}],["$","$L5","3",{}]]}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"kFIRZt4fuL4Zsh38-jGui"}
5
+ 5:I[27201,["./_next/static/chunks/062oipeclh9bq.js","./_next/static/chunks/0xtgenoch3q77.js","./_next/static/chunks/158myu8e_yme3.js"],"IconMark"]
6
+ 0:{"rsc":["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"Optima"}],["$","meta","1",{"name":"description","content":"Generated by create next app"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.2vob68tjqpejf.ico","sizes":"256x256","type":"image/x-icon"}],["$","$L5","3",{}]]}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"17egwqgk36_DSRF55LJZG"}
@@ -1,11 +1,11 @@
1
1
  1:"$Sreact.fragment"
2
- 2:I[98747,["./_next/static/chunks/2xjcsu4pgp14_.js","./_next/static/chunks/158myu8e_yme3.js","./_next/static/chunks/3z-nzyp9z8vih.js"],"ThemeProvider"]
3
- 3:I[52446,["./_next/static/chunks/2xjcsu4pgp14_.js","./_next/static/chunks/158myu8e_yme3.js","./_next/static/chunks/3z-nzyp9z8vih.js"],"GateProvider"]
4
- 4:I[11350,["./_next/static/chunks/2xjcsu4pgp14_.js","./_next/static/chunks/158myu8e_yme3.js","./_next/static/chunks/3z-nzyp9z8vih.js"],"ConnectionProvider"]
5
- 5:I[65327,["./_next/static/chunks/2xjcsu4pgp14_.js","./_next/static/chunks/158myu8e_yme3.js","./_next/static/chunks/3z-nzyp9z8vih.js"],"MetricsProvider"]
6
- 6:I[28874,["./_next/static/chunks/2xjcsu4pgp14_.js","./_next/static/chunks/158myu8e_yme3.js","./_next/static/chunks/3z-nzyp9z8vih.js"],"default"]
7
- 7:I[28407,["./_next/static/chunks/2xjcsu4pgp14_.js","./_next/static/chunks/158myu8e_yme3.js","./_next/static/chunks/3z-nzyp9z8vih.js"],"default"]
8
- 8:I[39756,["./_next/static/chunks/2xjcsu4pgp14_.js","./_next/static/chunks/158myu8e_yme3.js","./_next/static/chunks/3z-nzyp9z8vih.js"],"default"]
9
- 9:I[37457,["./_next/static/chunks/2xjcsu4pgp14_.js","./_next/static/chunks/158myu8e_yme3.js","./_next/static/chunks/3z-nzyp9z8vih.js"],"default"]
10
- :HL["./_next/static/chunks/3xoopocxi2vi8.css","style"]
11
- 0:{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"./_next/static/chunks/3xoopocxi2vi8.css","precedence":"next"}],["$","script","script-0",{"src":"./_next/static/chunks/2xjcsu4pgp14_.js","async":true}],["$","script","script-1",{"src":"./_next/static/chunks/158myu8e_yme3.js","async":true}],["$","script","script-2",{"src":"./_next/static/chunks/3z-nzyp9z8vih.js","async":true}]],["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"children":["$","$L5",null,{"children":["$","div",null,{"className":"flex flex-col w-full h-screen overflow-hidden","children":[["$","$L6",null,{}],["$","div",null,{"className":"flex flex-row w-full h-full overflow-hidden","children":[["$","$L7",null,{}],["$","div",null,{"className":"flex flex-col w-full h-full overflow-auto","children":[["$","$L8",null,{"parallelRouterKey":"children","template":["$","$L9",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}],["$","div",null,{"className":"flex items-center justify-between h-10 p-3","children":[["$","p",null,{"className":"text-sm text-[var(--variant-6)]","children":"optima-agent v1.0.0"}],["$","p",null,{"className":"text-sm text-[var(--variant-6)]","children":"telemetry healthy"}]]}]]}]]}]]}]}]}]}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"kFIRZt4fuL4Zsh38-jGui"}
2
+ 2:I[98747,["./_next/static/chunks/062oipeclh9bq.js","./_next/static/chunks/0xtgenoch3q77.js","./_next/static/chunks/158myu8e_yme3.js"],"ThemeProvider"]
3
+ 3:I[52446,["./_next/static/chunks/062oipeclh9bq.js","./_next/static/chunks/0xtgenoch3q77.js","./_next/static/chunks/158myu8e_yme3.js"],"GateProvider"]
4
+ 4:I[11350,["./_next/static/chunks/062oipeclh9bq.js","./_next/static/chunks/0xtgenoch3q77.js","./_next/static/chunks/158myu8e_yme3.js"],"ConnectionProvider"]
5
+ 5:I[65327,["./_next/static/chunks/062oipeclh9bq.js","./_next/static/chunks/0xtgenoch3q77.js","./_next/static/chunks/158myu8e_yme3.js"],"MetricsProvider"]
6
+ 6:I[28874,["./_next/static/chunks/062oipeclh9bq.js","./_next/static/chunks/0xtgenoch3q77.js","./_next/static/chunks/158myu8e_yme3.js"],"default"]
7
+ 7:I[28407,["./_next/static/chunks/062oipeclh9bq.js","./_next/static/chunks/0xtgenoch3q77.js","./_next/static/chunks/158myu8e_yme3.js"],"default"]
8
+ 8:I[39756,["./_next/static/chunks/062oipeclh9bq.js","./_next/static/chunks/0xtgenoch3q77.js","./_next/static/chunks/158myu8e_yme3.js"],"default"]
9
+ 9:I[37457,["./_next/static/chunks/062oipeclh9bq.js","./_next/static/chunks/0xtgenoch3q77.js","./_next/static/chunks/158myu8e_yme3.js"],"default"]
10
+ :HL["./_next/static/chunks/0ncbimuip0-o7.css","style"]
11
+ 0:{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"./_next/static/chunks/0ncbimuip0-o7.css","precedence":"next"}],["$","script","script-0",{"src":"./_next/static/chunks/062oipeclh9bq.js","async":true}],["$","script","script-1",{"src":"./_next/static/chunks/0xtgenoch3q77.js","async":true}],["$","script","script-2",{"src":"./_next/static/chunks/158myu8e_yme3.js","async":true}]],["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"children":["$","$L5",null,{"children":["$","div",null,{"className":"flex flex-col w-full h-screen overflow-hidden","children":[["$","$L6",null,{}],["$","div",null,{"className":"flex flex-row w-full h-full overflow-hidden","children":[["$","$L7",null,{}],["$","div",null,{"className":"flex flex-col w-full h-full overflow-auto","children":["$","$L8",null,{"parallelRouterKey":"children","template":["$","$L9",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]}]]}]]}]}]}]}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"17egwqgk36_DSRF55LJZG"}
@@ -1,5 +1,5 @@
1
1
  1:"$Sreact.fragment"
2
- 2:I[97367,["./_next/static/chunks/2xjcsu4pgp14_.js","./_next/static/chunks/158myu8e_yme3.js","./_next/static/chunks/3z-nzyp9z8vih.js"],"OutletBoundary"]
2
+ 2:I[97367,["./_next/static/chunks/062oipeclh9bq.js","./_next/static/chunks/0xtgenoch3q77.js","./_next/static/chunks/158myu8e_yme3.js"],"OutletBoundary"]
3
3
  3:"$Sreact.suspense"
4
- 0:{"rsc":["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null,["$","$L2",null,{"children":["$","$3",null,{"name":"Next.MetadataOutlet","children":"$@4"}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"kFIRZt4fuL4Zsh38-jGui"}
4
+ 0:{"rsc":["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null,["$","$L2",null,{"children":["$","$3",null,{"name":"Next.MetadataOutlet","children":"$@4"}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"17egwqgk36_DSRF55LJZG"}
5
5
  4:null