elanous 0.2.44 → 0.3.1

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 (820) hide show
  1. package/README.md +3 -3
  2. package/apps/pwa/out/404/index.html +1 -1
  3. package/apps/pwa/out/404.html +1 -1
  4. package/apps/pwa/out/_next/static/98VlBaYvL-VVnCq93_lFS/_buildManifest.js +1 -0
  5. package/apps/pwa/out/_next/static/chunks/1388-1eb6df003f29bb9c.js +1 -0
  6. package/apps/pwa/out/_next/static/chunks/1434-a2c279f005d9c501.js +1 -0
  7. package/apps/pwa/out/_next/static/chunks/1464.14588e93d2ab3190.js +24 -0
  8. package/apps/pwa/out/_next/static/chunks/1465.85f9a1708f17853a.js +1 -0
  9. package/apps/pwa/out/_next/static/chunks/156.389be47355dc94c7.js +1 -0
  10. package/apps/pwa/out/_next/static/chunks/162.c03cf23572cb4136.js +1 -0
  11. package/apps/pwa/out/_next/static/chunks/1831.25868bc1e2cc0dae.js +1 -0
  12. package/apps/pwa/out/_next/static/chunks/1896.b6c635d0c8f65727.js +1 -0
  13. package/apps/pwa/out/_next/static/chunks/1939.3fa2506ad8e585bc.js +1 -0
  14. package/apps/pwa/out/_next/static/chunks/{5790.5eb06a653ebd8571.js → 1972.a8d37aadbc59ac43.js} +1 -1
  15. package/apps/pwa/out/_next/static/chunks/{8965-135a2c9eaa2464cb.js → 1997-f22e6f9510520182.js} +1 -1
  16. package/apps/pwa/out/_next/static/chunks/2242-6edf27c6c0ae7589.js +1 -0
  17. package/apps/pwa/out/_next/static/chunks/{46.57c783fa4884714f.js → 234.f25f5b0d65f89af8.js} +2 -2
  18. package/apps/pwa/out/_next/static/chunks/2344.795de26da3261060.js +23 -0
  19. package/apps/pwa/out/_next/static/chunks/2491.9ac5bd2f48bcd60c.js +226 -0
  20. package/apps/pwa/out/_next/static/chunks/2513.e03f6479c0079b6e.js +79 -0
  21. package/apps/pwa/out/_next/static/chunks/2551-43782d8812989ae7.js +1 -0
  22. package/apps/pwa/out/_next/static/chunks/2799.12b1a3e7090e27ef.js +1 -0
  23. package/apps/pwa/out/_next/static/chunks/2806.f04d7923f2adadb1.js +1 -0
  24. package/apps/pwa/out/_next/static/chunks/2862.b8ea08cbc69a63d4.js +1 -0
  25. package/apps/pwa/out/_next/static/chunks/295-1ff35d6a06be8400.js +1 -0
  26. package/apps/pwa/out/_next/static/chunks/3161.b9eb612f66d5ff04.js +1 -0
  27. package/apps/pwa/out/_next/static/chunks/3233.46021e4acc520c03.js +1 -0
  28. package/apps/pwa/out/_next/static/chunks/325.3cfd5b7571a9f740.js +1 -0
  29. package/apps/pwa/out/_next/static/chunks/{1266.a46cc33cb6a72d75.js → 3384.d91656787bec7922.js} +2 -2
  30. package/apps/pwa/out/_next/static/chunks/3414f5fa-46ae45073dca64f0.js +1 -0
  31. package/apps/pwa/out/_next/static/chunks/3589.a9094c2bc034055c.js +287 -0
  32. package/apps/pwa/out/_next/static/chunks/{2705.9816f3c244f8b85f.js → 367.1ffe524fe1ee7803.js} +1 -1
  33. package/apps/pwa/out/_next/static/chunks/3777.1450df79d987816d.js +1 -0
  34. package/apps/pwa/out/_next/static/chunks/3877-871ea505d778a6a7.js +1 -0
  35. package/apps/pwa/out/_next/static/chunks/4021.28d034c7fb0a6732.js +1 -0
  36. package/apps/pwa/out/_next/static/chunks/{6549dad0.2740b25e51bf8f05.js → 4069a63b.a074c39997560438.js} +1 -1
  37. package/apps/pwa/out/_next/static/chunks/4212.873105c37a871421.js +1 -0
  38. package/apps/pwa/out/_next/static/chunks/423-6be27163a1bce5d7.js +1 -0
  39. package/apps/pwa/out/_next/static/chunks/4231.644cd1e23974f1f6.js +1 -0
  40. package/apps/pwa/out/_next/static/chunks/4362.1adc1412509b7bb8.js +94 -0
  41. package/apps/pwa/out/_next/static/chunks/4431.83a630154376636a.js +41 -0
  42. package/apps/pwa/out/_next/static/chunks/4506-f8439f6fbd0a8483.js +1 -0
  43. package/apps/pwa/out/_next/static/chunks/4540-993e2e4e1d485a9a.js +1 -0
  44. package/apps/pwa/out/_next/static/chunks/4719-1d04b01d4d6166fc.js +1 -0
  45. package/apps/pwa/out/_next/static/chunks/4754-bfd5e1ad9016e176.js +1 -0
  46. package/apps/pwa/out/_next/static/chunks/5001.b39bf6d792509317.js +64 -0
  47. package/apps/pwa/out/_next/static/chunks/5021.7234ae147ab0a3e1.js +77 -0
  48. package/apps/pwa/out/_next/static/chunks/5230.3e562ed2a69cbc7b.js +1 -0
  49. package/apps/pwa/out/_next/static/chunks/5279.f75fafa19de6e131.js +1 -0
  50. package/apps/pwa/out/_next/static/chunks/{5a34fb2f.52f1b4e1baebb48a.js → 52bafb67.054ec9d048116d83.js} +3 -3
  51. package/apps/pwa/out/_next/static/chunks/5325-b9c1258cc7e579f9.js +1 -0
  52. package/apps/pwa/out/_next/static/chunks/5495-37306015ec740354.js +1 -0
  53. package/apps/pwa/out/_next/static/chunks/{1694.18debfd77562e56d.js → 5536.bbb17703f46e52e7.js} +2 -2
  54. package/apps/pwa/out/_next/static/chunks/{6245.1182e007e9d230d9.js → 5571.a062963c309338b4.js} +2 -2
  55. package/apps/pwa/out/_next/static/chunks/5658.d1e61315cb865f82.js +32 -0
  56. package/apps/pwa/out/_next/static/chunks/5709.867a5086d782dd97.js +286 -0
  57. package/apps/pwa/out/_next/static/chunks/5765.5949ec61cec63eac.js +1 -0
  58. package/apps/pwa/out/_next/static/chunks/587.e6b35bcbd947c58e.js +8 -0
  59. package/apps/pwa/out/_next/static/chunks/5951-f25e14d03e72135a.js +1 -0
  60. package/apps/pwa/out/_next/static/chunks/5962-1ab68b213684716b.js +1 -0
  61. package/apps/pwa/out/_next/static/chunks/{4502.bdcc877abd437a05.js → 5998.d426273cdd00305a.js} +1 -1
  62. package/apps/pwa/out/_next/static/chunks/6352.20c708245475cf50.js +1 -0
  63. package/apps/pwa/out/_next/static/chunks/6548-a160aa580fb9a8ff.js +1 -0
  64. package/apps/pwa/out/_next/static/chunks/673-40c924b2095a05eb.js +1 -0
  65. package/apps/pwa/out/_next/static/chunks/6731-c9308c2f71a1b8e3.js +1 -0
  66. package/apps/pwa/out/_next/static/chunks/{6881.9e7955847640c7fe.js → 6747.365eefdf3b4a0226.js} +17 -17
  67. package/apps/pwa/out/_next/static/chunks/691.6ff56b5f4b6ec918.js +309 -0
  68. package/apps/pwa/out/_next/static/chunks/6932.f80f616260b74131.js +1 -0
  69. package/apps/pwa/out/_next/static/chunks/6950-5d5edab502cc208b.js +1 -0
  70. package/apps/pwa/out/_next/static/chunks/6982.e8fecbf7feb3aba5.js +1 -0
  71. package/apps/pwa/out/_next/static/chunks/7051-0dbbb2c1ce4f519e.js +1 -0
  72. package/apps/pwa/out/_next/static/chunks/{8551.f762945c2cda2e95.js → 7087.99662912e4db6255.js} +1 -1
  73. package/apps/pwa/out/_next/static/chunks/709.bd9939dbb991de9f.js +1 -0
  74. package/apps/pwa/out/_next/static/chunks/7197.7b19aa948048e19a.js +93 -0
  75. package/apps/pwa/out/_next/static/chunks/7230-6527ac6be205c096.js +1 -0
  76. package/apps/pwa/out/_next/static/chunks/7233-d93f8ce1475f730c.js +1 -0
  77. package/apps/pwa/out/_next/static/chunks/7292-a4d5c8d2fe255e06.js +1 -0
  78. package/apps/pwa/out/_next/static/chunks/7304-dae57d61a8ccccf0.js +1 -0
  79. package/apps/pwa/out/_next/static/chunks/7382.bf53ab097670a235.js +27 -0
  80. package/apps/pwa/out/_next/static/chunks/7434.99c31fb661085b6a.js +1 -0
  81. package/apps/pwa/out/_next/static/chunks/7457-9ceddd4301467503.js +1 -0
  82. package/apps/pwa/out/_next/static/chunks/{3349.b5f09ee474d9533e.js → 7479.d00f44fde98cf34e.js} +1 -1
  83. package/apps/pwa/out/_next/static/chunks/7494.d8b8d01d8dcbafe8.js +2 -0
  84. package/apps/pwa/out/_next/static/chunks/{4757.67c6d7473a038e78.js → 751.95d127a92f7817e3.js} +1 -1
  85. package/apps/pwa/out/_next/static/chunks/7554-d9cec4ac2e6d556d.js +1 -0
  86. package/apps/pwa/out/_next/static/chunks/7733-6f0d8da7a3f3ce91.js +1 -0
  87. package/apps/pwa/out/_next/static/chunks/7757-6f4b6363cc651de5.js +1 -0
  88. package/apps/pwa/out/_next/static/chunks/{5a5078f8.2099200e5ea95e16.js → 77a1aef7.ba1c04f78a1493d9.js} +1 -1
  89. package/apps/pwa/out/_next/static/chunks/787-4d1d55b1311a5019.js +1 -0
  90. package/apps/pwa/out/_next/static/chunks/7915-a755af5ea69cfcfe.js +1 -0
  91. package/apps/pwa/out/_next/static/chunks/8029-2963385667511b16.js +1 -0
  92. package/apps/pwa/out/_next/static/chunks/8090.bc2349b6133b2cd5.js +1 -0
  93. package/apps/pwa/out/_next/static/chunks/8136.8ff2113530c27083.js +1 -0
  94. package/apps/pwa/out/_next/static/chunks/819.632a2a50f814f98e.js +74 -0
  95. package/apps/pwa/out/_next/static/chunks/8328.72a79ba9b81971ad.js +1 -0
  96. package/apps/pwa/out/_next/static/chunks/8448.4e25153e035786b0.js +62 -0
  97. package/apps/pwa/out/_next/static/chunks/{7679.32c40cdd14f20b4a.js → 8469.f67afe44a0fa8af0.js} +1 -1
  98. package/apps/pwa/out/_next/static/chunks/8613.76dfc054055f06ba.js +1 -0
  99. package/apps/pwa/out/_next/static/chunks/8649-fe9165a8879fad56.js +1 -0
  100. package/apps/pwa/out/_next/static/chunks/8840-53feb140de04dcfe.js +1 -0
  101. package/apps/pwa/out/_next/static/chunks/8873.ef8a37057644f876.js +1 -0
  102. package/apps/pwa/out/_next/static/chunks/8917-46eb4e608f44bf74.js +1 -0
  103. package/apps/pwa/out/_next/static/chunks/8954.e749ad9e9c5ca512.js +115 -0
  104. package/apps/pwa/out/_next/static/chunks/9065.8134b756614cf83f.js +36 -0
  105. package/apps/pwa/out/_next/static/chunks/9089.087fcd352568af49.js +1 -0
  106. package/apps/pwa/out/_next/static/chunks/9103.bd34694d18c05083.js +1 -0
  107. package/apps/pwa/out/_next/static/chunks/9140-bfcc4075cac3c387.js +1 -0
  108. package/apps/pwa/out/_next/static/chunks/9272.787cb6d987824708.js +1 -0
  109. package/apps/pwa/out/_next/static/chunks/9361-5b10273d3f34b21d.js +1 -0
  110. package/apps/pwa/out/_next/static/chunks/9396.097c14dd4df77c43.js +1 -0
  111. package/apps/pwa/out/_next/static/chunks/9468.370ef15c86f7b141.js +1 -0
  112. package/apps/pwa/out/_next/static/chunks/{5989.7ecd362c5c44b747.js → 9531.ffbcd1e59e2c32fc.js} +17 -17
  113. package/apps/pwa/out/_next/static/chunks/963-66d3a6d98e977ae5.js +1 -0
  114. package/apps/pwa/out/_next/static/chunks/9644.a615f56876ed37b8.js +90 -0
  115. package/apps/pwa/out/_next/static/chunks/{4415-b9d6a90960920a4a.js → 9693-ab5bc28704a66601.js} +3 -3
  116. package/apps/pwa/out/_next/static/chunks/9705-bbcd00db4ffd3484.js +1 -0
  117. package/apps/pwa/out/_next/static/chunks/{7864.b1ff31d4030b8994.js → 9786.2d8c3b7368f18f1b.js} +3 -3
  118. package/apps/pwa/out/_next/static/chunks/9805.e17f9c6e3811e48b.js +24 -0
  119. package/apps/pwa/out/_next/static/chunks/9876-49a1e08c0dfe7b8c.js +1 -0
  120. package/apps/pwa/out/_next/static/chunks/9891.5995e75a99b53d4e.js +149 -0
  121. package/apps/pwa/out/_next/static/chunks/{178-4da509cd7266672a.js → 9912-2be6b6ea0321c365.js} +1 -1
  122. package/apps/pwa/out/_next/static/chunks/app/_not-found/page-c0543429ffa9cdfb.js +1 -0
  123. package/apps/pwa/out/_next/static/chunks/app/approvals/page-39f04d88df12b3e9.js +1 -0
  124. package/apps/pwa/out/_next/static/chunks/app/autopilot/page-e4f014aa82483cae.js +1 -0
  125. package/apps/pwa/out/_next/static/chunks/app/board/page-e86f9273877eab46.js +1 -0
  126. package/apps/pwa/out/_next/static/chunks/app/botlab/page-dbc30fbf2e8933d9.js +1 -0
  127. package/apps/pwa/out/_next/static/chunks/app/bots/page-d83a916672a8cfd3.js +1 -0
  128. package/apps/pwa/out/_next/static/chunks/app/ceo/page-22f27eaa5e6e68c7.js +1 -0
  129. package/apps/pwa/out/_next/static/chunks/app/chat/page-66477bf22d33b56e.js +1 -0
  130. package/apps/pwa/out/_next/static/chunks/app/consult/page-913f2a86ea109c65.js +1 -0
  131. package/apps/pwa/out/_next/static/chunks/app/control/page-ac51dc349381d564.js +1 -0
  132. package/apps/pwa/out/_next/static/chunks/app/decisions/page-cd09fc74dca72511.js +1 -0
  133. package/apps/pwa/out/_next/static/chunks/app/design-check/page-6c357f5b58598b67.js +1 -0
  134. package/apps/pwa/out/_next/static/chunks/app/editor/page-ab83de8c73bd2e4f.js +1 -0
  135. package/apps/pwa/out/_next/static/chunks/app/exec/page-6402ad2273b6f7b5.js +1 -0
  136. package/apps/pwa/out/_next/static/chunks/app/field/page-50d9b8d13b33f785.js +1 -0
  137. package/apps/pwa/out/_next/static/chunks/app/healthz/route-c0543429ffa9cdfb.js +1 -0
  138. package/apps/pwa/out/_next/static/chunks/app/inside/page-ffca50fc1f13759c.js +1 -0
  139. package/apps/pwa/out/_next/static/chunks/app/intake/page-3316bfc28a901722.js +1 -0
  140. package/apps/pwa/out/_next/static/chunks/app/layout-aef93e049341011e.js +1 -0
  141. package/apps/pwa/out/_next/static/chunks/app/live/page-8e67bb49fa81d4e5.js +1 -0
  142. package/apps/pwa/out/_next/static/chunks/app/live-run/page-8b8c8ac4a3edf0eb.js +1 -0
  143. package/apps/pwa/out/_next/static/chunks/app/loops/page-b5b994c9ea03f6d7.js +1 -0
  144. package/apps/pwa/out/_next/static/chunks/app/market/page-1a06f6f510439341.js +1 -0
  145. package/apps/pwa/out/_next/static/chunks/app/missions/[id]/{page-e187ac52a95538b3.js → page-d9720f6a03f31fa7.js} +1 -1
  146. package/apps/pwa/out/_next/static/chunks/app/morning/page-d7c891d78672d771.js +1 -0
  147. package/apps/pwa/out/_next/static/chunks/app/not-found-e915872b37ca7dcf.js +1 -0
  148. package/apps/pwa/out/_next/static/chunks/app/observatory/page-43c2ec7c00978377.js +1 -0
  149. package/apps/pwa/out/_next/static/chunks/app/ops/checklist/page-c2537aa89b121637.js +1 -0
  150. package/apps/pwa/out/_next/static/chunks/app/ops/release/page-3264666f6ef99431.js +1 -0
  151. package/apps/pwa/out/_next/static/chunks/app/ops/resources/page-efe9dd7bc58d4fc6.js +1 -0
  152. package/apps/pwa/out/_next/static/chunks/app/ops/seats/page-153277343c9956b8.js +1 -0
  153. package/apps/pwa/out/_next/static/chunks/app/outputs/page-c1457829d1506ad7.js +1 -0
  154. package/apps/pwa/out/_next/static/chunks/app/page-9622573651a4b6ce.js +1 -0
  155. package/apps/pwa/out/_next/static/chunks/app/reflection/page-5aeba1aa69ec67ad.js +1 -0
  156. package/apps/pwa/out/_next/static/chunks/app/scheduler/page-29cf1ba9ae2fdb92.js +1 -0
  157. package/apps/pwa/out/_next/static/chunks/app/sessions/page-99a060c6edd4726c.js +1 -0
  158. package/apps/pwa/out/_next/static/chunks/app/settings/devices/page-decfacd2237da403.js +1 -0
  159. package/apps/pwa/out/_next/static/chunks/app/settings/page-3650eed85a5c5c93.js +1 -0
  160. package/apps/pwa/out/_next/static/chunks/app/setup/done/page-14077f0eddcae22f.js +1 -0
  161. package/apps/pwa/out/_next/static/chunks/app/setup/layout-c0543429ffa9cdfb.js +1 -0
  162. package/apps/pwa/out/_next/static/chunks/app/setup/page-364ee29f223bdc6b.js +1 -0
  163. package/apps/pwa/out/_next/static/chunks/app/share/page-905fb1f67c2665a7.js +1 -0
  164. package/apps/pwa/out/_next/static/chunks/app/showroom/page-79907fc36e3113f4.js +1 -0
  165. package/apps/pwa/out/_next/static/chunks/app/tasks/page-8f01867ee2a701b6.js +1 -0
  166. package/apps/pwa/out/_next/static/chunks/app/term/page-310b734167671ba8.js +1 -0
  167. package/apps/pwa/out/_next/static/chunks/app/today/page-cb1ca7ae52803603.js +1 -0
  168. package/apps/pwa/out/_next/static/chunks/app/trace/page-5491f2fb8e9376b5.js +1 -0
  169. package/apps/pwa/out/_next/static/chunks/app/vault/page-7e98befd36460b21.js +1 -0
  170. package/apps/pwa/out/_next/static/chunks/app/workflows/chat-ui/page-220923eefd5149b5.js +1 -0
  171. package/apps/pwa/out/_next/static/chunks/app/workflows/page-afdef54bb570da39.js +1 -0
  172. package/apps/pwa/out/_next/static/chunks/app/workspace/page-19f8acddbff16091.js +1 -0
  173. package/apps/pwa/out/_next/static/chunks/app/worktrees/page-d327a7647a075184.js +1 -0
  174. package/apps/pwa/out/_next/static/chunks/bc1f8ef9.b79035bd0f565c66.js +1 -0
  175. package/apps/pwa/out/_next/static/chunks/{892fd990.456232f326cc39c2.js → c58bec24.d208786405e23259.js} +1 -1
  176. package/apps/pwa/out/_next/static/chunks/cf9ff424.b702f4a2ac70d836.js +1 -0
  177. package/apps/pwa/out/_next/static/chunks/d90ea774-d492ff408af303c1.js +1 -0
  178. package/apps/pwa/out/_next/static/chunks/{2e0f720a.a0697c08e3806a60.js → e7a93f74.aa8572069f848f17.js} +1 -1
  179. package/apps/pwa/out/_next/static/chunks/ec9064d2.691021d974525713.js +122 -0
  180. package/apps/pwa/out/_next/static/chunks/ef9d715f.186b83d00befb229.js +1 -0
  181. package/apps/pwa/out/_next/static/chunks/framework-f01b715c1ec2fb74.js +1 -0
  182. package/apps/pwa/out/_next/static/chunks/main-3267c2e627901292.js +1 -0
  183. package/apps/pwa/out/_next/static/chunks/main-app-a690bcbeac3c465d.js +1 -0
  184. package/apps/pwa/out/_next/static/chunks/pages/_app-124f11699738fd43.js +1 -0
  185. package/apps/pwa/out/_next/static/chunks/pages/_error-754b7bd073a36a5f.js +1 -0
  186. package/apps/pwa/out/_next/static/chunks/webpack-8ded1efe8121eba0.js +1 -0
  187. package/apps/pwa/out/_next/static/css/32b8e1b8996dbf5e.css +1 -0
  188. package/apps/pwa/out/_next/static/css/{62c858ad53854f47.css → 9e19f9d740cf4dcb.css} +1 -1
  189. package/apps/pwa/out/approvals/index.html +1 -1
  190. package/apps/pwa/out/approvals/index.txt +23 -23
  191. package/apps/pwa/out/autopilot/index.html +1 -1
  192. package/apps/pwa/out/autopilot/index.txt +23 -23
  193. package/apps/pwa/out/board/index.html +1 -1
  194. package/apps/pwa/out/board/index.txt +23 -23
  195. package/apps/pwa/out/botlab/index.html +1 -1
  196. package/apps/pwa/out/botlab/index.txt +22 -22
  197. package/apps/pwa/out/bots/index.html +1 -1
  198. package/apps/pwa/out/bots/index.txt +22 -22
  199. package/apps/pwa/out/ceo/index.html +1 -1
  200. package/apps/pwa/out/ceo/index.txt +23 -23
  201. package/apps/pwa/out/chat/index.html +1 -1
  202. package/apps/pwa/out/chat/index.txt +22 -22
  203. package/apps/pwa/out/consult/index.html +1 -1
  204. package/apps/pwa/out/consult/index.txt +23 -23
  205. package/apps/pwa/out/control/index.html +1 -1
  206. package/apps/pwa/out/control/index.txt +23 -23
  207. package/apps/pwa/out/decisions/index.html +1 -1
  208. package/apps/pwa/out/decisions/index.txt +22 -22
  209. package/apps/pwa/out/design-check/index.html +1 -1
  210. package/apps/pwa/out/design-check/index.txt +23 -23
  211. package/apps/pwa/out/editor/index.html +1 -1
  212. package/apps/pwa/out/editor/index.txt +24 -24
  213. package/apps/pwa/out/exec/index.html +1 -1
  214. package/apps/pwa/out/exec/index.txt +23 -23
  215. package/apps/pwa/out/field/index.html +1 -1
  216. package/apps/pwa/out/field/index.txt +23 -23
  217. package/apps/pwa/out/healthz +1 -1
  218. package/apps/pwa/out/index.html +1 -1
  219. package/apps/pwa/out/index.txt +22 -22
  220. package/apps/pwa/out/inside/index.html +1 -1
  221. package/apps/pwa/out/inside/index.txt +23 -23
  222. package/apps/pwa/out/intake/index.html +1 -1
  223. package/apps/pwa/out/intake/index.txt +23 -23
  224. package/apps/pwa/out/live/index.html +1 -1
  225. package/apps/pwa/out/live/index.txt +24 -24
  226. package/apps/pwa/out/live-run/index.html +1 -1
  227. package/apps/pwa/out/live-run/index.txt +24 -24
  228. package/apps/pwa/out/loops/index.html +1 -1
  229. package/apps/pwa/out/loops/index.txt +22 -22
  230. package/apps/pwa/out/market/index.html +1 -1
  231. package/apps/pwa/out/market/index.txt +22 -22
  232. package/apps/pwa/out/missions/placeholder/index.html +1 -1
  233. package/apps/pwa/out/missions/placeholder/index.txt +22 -22
  234. package/apps/pwa/out/morning/index.html +1 -1
  235. package/apps/pwa/out/morning/index.txt +23 -23
  236. package/apps/pwa/out/observatory/index.html +1 -1
  237. package/apps/pwa/out/observatory/index.txt +23 -23
  238. package/apps/pwa/out/ops/checklist/index.html +1 -1
  239. package/apps/pwa/out/ops/checklist/index.txt +22 -22
  240. package/apps/pwa/out/ops/release/index.html +1 -1
  241. package/apps/pwa/out/ops/release/index.txt +22 -22
  242. package/apps/pwa/out/ops/resources/index.html +1 -0
  243. package/apps/pwa/out/ops/resources/index.txt +30 -0
  244. package/apps/pwa/out/ops/seats/index.html +1 -1
  245. package/apps/pwa/out/ops/seats/index.txt +22 -22
  246. package/apps/pwa/out/outputs/index.html +1 -1
  247. package/apps/pwa/out/outputs/index.txt +22 -22
  248. package/apps/pwa/out/reflection/index.html +1 -1
  249. package/apps/pwa/out/reflection/index.txt +23 -23
  250. package/apps/pwa/out/scheduler/index.html +1 -1
  251. package/apps/pwa/out/scheduler/index.txt +23 -23
  252. package/apps/pwa/out/sessions/index.html +1 -1
  253. package/apps/pwa/out/sessions/index.txt +22 -22
  254. package/apps/pwa/out/settings/devices/index.html +1 -1
  255. package/apps/pwa/out/settings/devices/index.txt +23 -23
  256. package/apps/pwa/out/settings/index.html +1 -1
  257. package/apps/pwa/out/settings/index.txt +23 -23
  258. package/apps/pwa/out/setup/done/index.html +1 -1
  259. package/apps/pwa/out/setup/done/index.txt +23 -23
  260. package/apps/pwa/out/setup/index.html +1 -1
  261. package/apps/pwa/out/setup/index.txt +23 -23
  262. package/apps/pwa/out/share/index.html +1 -1
  263. package/apps/pwa/out/share/index.txt +23 -23
  264. package/apps/pwa/out/showroom/index.html +1 -1
  265. package/apps/pwa/out/showroom/index.txt +22 -22
  266. package/apps/pwa/out/tasks/index.html +1 -1
  267. package/apps/pwa/out/tasks/index.txt +23 -23
  268. package/apps/pwa/out/term/index.html +1 -1
  269. package/apps/pwa/out/term/index.txt +23 -23
  270. package/apps/pwa/out/today/index.html +1 -1
  271. package/apps/pwa/out/today/index.txt +23 -23
  272. package/apps/pwa/out/trace/index.html +1 -1
  273. package/apps/pwa/out/trace/index.txt +23 -23
  274. package/apps/pwa/out/vault/index.html +1 -1
  275. package/apps/pwa/out/vault/index.txt +23 -23
  276. package/apps/pwa/out/workflows/chat-ui/index.html +1 -1
  277. package/apps/pwa/out/workflows/chat-ui/index.txt +23 -23
  278. package/apps/pwa/out/workflows/index.html +1 -1
  279. package/apps/pwa/out/workflows/index.txt +23 -23
  280. package/apps/pwa/out/workspace/index.html +1 -1
  281. package/apps/pwa/out/workspace/index.txt +23 -23
  282. package/apps/pwa/out/worktrees/index.html +1 -1
  283. package/apps/pwa/out/worktrees/index.txt +23 -23
  284. package/docs/goal-context/01-goal-authoring-checks.md +1 -0
  285. package/graphs/intake/intake-daily.yaml +5 -1
  286. package/graphs/overlays/examples/demo1104-research-arg-runtime.yaml +28 -0
  287. package/graphs/steward/README.md +9 -0
  288. package/graphs/steward/entrance-dispatch-shadow.yaml +23 -0
  289. package/graphs/steward/recipes.yaml +3 -0
  290. package/graphs/video/README.md +38 -0
  291. package/graphs/video/explainer-line.yaml +20 -7
  292. package/package.json +4 -1
  293. package/packs/b2b-sales-public/content/example-answer.md +5 -0
  294. package/packs/b2b-sales-public/content/playbook.md +11 -0
  295. package/packs/b2b-sales-public/content/proposal-template.md +13 -0
  296. package/packs/b2b-sales-public/content/questions.md +10 -0
  297. package/packs/b2b-sales-public/knowledge-pack.json +31 -0
  298. package/packs/elanous-basics/.codex-plugin/plugin.json +12 -0
  299. package/packs/elanous-basics/plugin.json +20 -0
  300. package/packs/elanous-essentials/plugin.json +24 -0
  301. package/packs/elanous-hwp/.codex-plugin/plugin.json +12 -0
  302. package/packs/elanous-hwp/NOTICE.md +13 -0
  303. package/packs/elanous-hwp/README.md +21 -0
  304. package/packs/elanous-hwp/nodes/from-md.yaml +16 -0
  305. package/packs/elanous-hwp/nodes/to-md.yaml +15 -0
  306. package/packs/elanous-hwp/plugin.json +18 -0
  307. package/packs/elanous-hwp/scripts/hwp.py +405 -0
  308. package/packs/elanous-hwp/skills/hwp-fill/SKILL.md +8 -0
  309. package/packs/elanous-hwp/skills/hwp-read/SKILL.md +8 -0
  310. package/packs/elanous-hwp/skills/hwp-write/SKILL.md +8 -0
  311. package/packs/elanous-hwp/templates/official-letter.yaml +6 -0
  312. package/packs/elanous-hwp/templates/report.yaml +6 -0
  313. package/packs/elanous-hwp/test/consumer.py +24 -0
  314. package/packs/elanous-hwp/test/verify-python-hwpx.py +12 -0
  315. package/packs/elanous-media/.codex-plugin/plugin.json +12 -0
  316. package/packs/elanous-media/plugin.json +16 -0
  317. package/packs/image-first-shorts/.codex-plugin/plugin.json +12 -0
  318. package/packs/image-first-shorts/LICENSE +76 -0
  319. package/packs/image-first-shorts/README.md +45 -0
  320. package/packs/image-first-shorts/SOURCE.md +43 -0
  321. package/packs/image-first-shorts/examples/input.json +9 -0
  322. package/packs/image-first-shorts/examples/storyboard.json +31 -0
  323. package/packs/image-first-shorts/graphs/image-first-shorts.yaml +121 -0
  324. package/packs/image-first-shorts/graphs/recipes.yaml +56 -0
  325. package/packs/image-first-shorts/graphs/run-step.ts +270 -0
  326. package/packs/image-first-shorts/plugin.json +38 -0
  327. package/packs/image-first-shorts/skills/image-first-shorts/SKILL.md +115 -0
  328. package/packs/image-first-shorts/skills/image-first-shorts/templates/examples/image_example.vars.json +7 -0
  329. package/packs/image-first-shorts/skills/image-first-shorts/templates/examples/video_example.vars.json +6 -0
  330. package/packs/image-first-shorts/skills/image-first-shorts/templates/image_blocks.json +30 -0
  331. package/packs/image-first-shorts/skills/image-first-shorts/templates/image_runner_wrapper.txt +6 -0
  332. package/packs/image-first-shorts/skills/image-first-shorts/templates/image_template.txt +1 -0
  333. package/packs/image-first-shorts/skills/image-first-shorts/templates/music_plan_template.json +13 -0
  334. package/packs/image-first-shorts/skills/image-first-shorts/templates/pricing.json +7 -0
  335. package/packs/image-first-shorts/skills/image-first-shorts/templates/tts_request_template.json +8 -0
  336. package/packs/image-first-shorts/skills/image-first-shorts/templates/tts_template.txt +1 -0
  337. package/packs/image-first-shorts/skills/image-first-shorts/templates/video_blocks.json +13 -0
  338. package/packs/image-first-shorts/skills/image-first-shorts/templates/video_template.txt +1 -0
  339. package/packs/image-first-shorts/skills/image-first-shorts/tools/analyze_music.py +41 -0
  340. package/packs/image-first-shorts/skills/image-first-shorts/tools/asr_pick.py +50 -0
  341. package/packs/image-first-shorts/skills/image-first-shorts/tools/fill.py +61 -0
  342. package/packs/image-first-shorts/skills/image-first-shorts/tools/heavy.sh +25 -0
  343. package/packs/image-first-shorts/skills/image-first-shorts/tools/imagegen_runner.py +128 -0
  344. package/packs/image-first-shorts/skills/image-first-shorts/tools/ip_guard.py +54 -0
  345. package/packs/image-first-shorts/skills/image-first-shorts/tools/keyer.py +199 -0
  346. package/packs/image-first-shorts/skills/image-first-shorts/tools/matte.sh +65 -0
  347. package/packs/image-first-shorts/skills/image-first-shorts/tools/matte_queue.sh +34 -0
  348. package/packs/release-ops/README.md +18 -0
  349. package/packs/release-ops/policy.yaml +26 -0
  350. package/packs/semiconductor-process-public/content/glossary.md +8 -0
  351. package/packs/semiconductor-process-public/content/process-overview.md +15 -0
  352. package/packs/semiconductor-process-public/content/public-source-check.md +8 -0
  353. package/packs/semiconductor-process-public/content/questions.md +5 -0
  354. package/packs/semiconductor-process-public/knowledge-pack.json +31 -0
  355. package/packs/video-broll/.codex-plugin/plugin.json +12 -0
  356. package/packs/video-broll/plugin.json +18 -0
  357. package/packs/video-explainer/.codex-plugin/plugin.json +12 -0
  358. package/packs/video-explainer/README.md +37 -0
  359. package/packs/video-explainer/nodes/explainer.yaml +17 -0
  360. package/packs/video-explainer/nodes/field-reel.yaml +17 -0
  361. package/packs/video-explainer/plugin.json +21 -0
  362. package/packs/web-publish/.codex-plugin/plugin.json +12 -0
  363. package/packs/web-publish/LICENSE +24 -0
  364. package/packs/web-publish/README.md +77 -0
  365. package/packs/web-publish/SOURCE.md +70 -0
  366. package/packs/web-publish/examples/input.json +9 -0
  367. package/packs/web-publish/graphs/recipes.yaml +72 -0
  368. package/packs/web-publish/graphs/run-step.ts +618 -0
  369. package/packs/web-publish/graphs/web-publish.yaml +157 -0
  370. package/packs/web-publish/nodes/web-publish.yaml +18 -0
  371. package/packs/web-publish/plugin.json +42 -0
  372. package/packs/web-publish/skills/business-motion-websites/SKILL.md +104 -0
  373. package/packs/web-publish/skills/business-motion-websites/agents/openai.yaml +5 -0
  374. package/packs/web-publish/skills/business-motion-websites/assets/project-brief.md +70 -0
  375. package/packs/web-publish/skills/business-motion-websites/examples/evas.md +17 -0
  376. package/packs/web-publish/skills/business-motion-websites/references/art-direction.md +59 -0
  377. package/packs/web-publish/skills/business-motion-websites/references/business-content.md +77 -0
  378. package/packs/web-publish/skills/business-motion-websites/references/media-production.md +130 -0
  379. package/packs/web-publish/skills/business-motion-websites/references/scroll-and-mobile.md +80 -0
  380. package/packs/web-publish/skills/business-motion-websites/references/verification-and-release.md +73 -0
  381. package/packs/web-publish/skills/business-motion-websites/scripts/audit-media.mjs +181 -0
  382. package/plugins/cloud-burst/README.md +7 -0
  383. package/plugins/cloud-burst/mock-runtime.ts +62 -0
  384. package/plugins/cloud-burst/plugin.json +17 -0
  385. package/plugins/cloud-burst/plugin.ts +103 -0
  386. package/plugins/cloud-burst/runtime-types.ts +7 -0
  387. package/plugins/cloud-burst/service.ts +147 -0
  388. package/scripts/generate-ux-sim-device-manual.ts +21 -0
  389. package/scripts/install-doctor-result.ts +25 -0
  390. package/scripts/install.sh +144 -75
  391. package/scripts/intake-news.ts +10 -4
  392. package/scripts/intake-social.ts +10 -4
  393. package/scripts/land-enqueue.test.sh +60 -0
  394. package/scripts/lib/intake-check-cli.ts +15 -0
  395. package/scripts/measure-git-checkout-accel.ts +232 -0
  396. package/scripts/release-loop/auto-approve-node.ts +7 -3
  397. package/scripts/release-loop/fixtures/gate-verdict-0.2.46.json +148 -0
  398. package/scripts/release-loop/gate-baseline-receipt.ts +34 -3
  399. package/scripts/release-loop/gate-node-sim.ts +5 -1
  400. package/scripts/release-loop/gate-node.ts +507 -83
  401. package/scripts/release-loop/gate-radius-live.ts +5 -4
  402. package/scripts/release-loop/gate-shard-dispatch.ts +100 -10
  403. package/scripts/release-loop/gate-shard-receipts.ts +85 -5
  404. package/scripts/release-loop/known-issues-node.ts +33 -10
  405. package/scripts/release-loop/node-verdict.ts +3 -1
  406. package/scripts/release-loop/publish-node.ts +7 -1
  407. package/scripts/release-loop/resume-release.ts +67 -10
  408. package/scripts/release-loop/resume.ts +101 -14
  409. package/scripts/sim-world-runner.ts +29 -0
  410. package/scripts/test-diet/node.ts +1 -1
  411. package/scripts/test-pod40-control-inbox-isolation.ts +39 -0
  412. package/scripts/ux/demo-rehearsal.ts +45 -12
  413. package/scripts/ux-sim-merge-driver.mjs +187 -0
  414. package/scripts/ux-sim.ts +11 -0
  415. package/scripts/video-pipeline.ts +6 -1
  416. package/scripts/warm-pool-provider-config.ts +76 -6
  417. package/scripts/zero-sim-world.sh +81 -0
  418. package/skills/explainer-video/engine/build.mjs +39 -2
  419. package/src/acp/core-turn-bridge.ts +34 -10
  420. package/src/agent/agent-output-tool.ts +33 -10
  421. package/src/agent/identity-env.ts +1 -0
  422. package/src/agent/terminal-surface.ts +248 -3
  423. package/src/agent-mission/driver.ts +26 -12
  424. package/src/agent-mission/grok-auth-status.ts +60 -23
  425. package/src/agent-mission/resource-ladder.ts +11 -4
  426. package/src/agent-substrate/pr-reviewer.ts +127 -16
  427. package/src/agent-substrate/self-review-cli.ts +348 -60
  428. package/src/auto-research/question-ladder-contract.ts +2 -0
  429. package/src/auto-research/research-turn.ts +289 -14
  430. package/src/cli/codex-device-login-wait.ts +103 -0
  431. package/src/cli/config-test-sync.ts +6 -1
  432. package/src/cli/control-cli.ts +5 -0
  433. package/src/cli/decision-list-format.ts +9 -0
  434. package/src/cli/decision-list-since.ts +13 -0
  435. package/src/cli/decisions-cli.ts +84 -24
  436. package/src/cli/decisions-list-cli.ts +32 -0
  437. package/src/cli/doctor-cli.ts +16 -6
  438. package/src/cli/doctor-fix.ts +76 -13
  439. package/src/cli/fleet-cli.ts +18 -0
  440. package/src/cli/friendly-errors.ts +4 -0
  441. package/src/cli/ingest-token-cli.ts +1 -1
  442. package/src/cli/intake-cli.ts +38 -9
  443. package/src/cli/intake-source-cli.ts +20 -4
  444. package/src/cli/light-entry-route.ts +25 -3
  445. package/src/cli/log-federation-cli.ts +29 -0
  446. package/src/cli/logs-cli.ts +12 -3
  447. package/src/cli/msg-cli.ts +5 -28
  448. package/src/cli/msg-list-cli.ts +73 -0
  449. package/src/cli/plugin-cli.ts +82 -0
  450. package/src/cli/pr-cli.ts +42 -58
  451. package/src/cli/pr-land-options.ts +34 -0
  452. package/src/cli/pr-land-overlap-evidence.ts +82 -22
  453. package/src/cli/provider-cli.ts +54 -0
  454. package/src/cli/pty-drive-cli.ts +25 -1
  455. package/src/cli/pty-takeover-cli.ts +9 -6
  456. package/src/cli/release-checklist-landed-cli.ts +273 -0
  457. package/src/cli/release-checklist-set-cli.ts +137 -0
  458. package/src/cli/release-checklist-write.ts +34 -0
  459. package/src/cli/release-cli.ts +18 -6
  460. package/src/cli/remote-eln-pty.ts +301 -0
  461. package/src/cli/resource-ledger-cli.ts +248 -0
  462. package/src/cli/runs-tree-cli.ts +256 -0
  463. package/src/cli/secret-cli.test-helpers.ts +25 -0
  464. package/src/cli/secret-cli.ts +172 -0
  465. package/src/cli/self-update.ts +1 -1
  466. package/src/cli/setup-cli.ts +45 -14
  467. package/src/cli/setup-keys.ts +80 -8
  468. package/src/cli/sim-cli.ts +116 -0
  469. package/src/cli/tasks-advance-cli.ts +185 -0
  470. package/src/cli/tasks-cli.ts +59 -92
  471. package/src/cli/tasks-read-cli.ts +32 -21
  472. package/src/cli/train-throughput.ts +71 -0
  473. package/src/cli/tui-test-cli.ts +154 -22
  474. package/src/compact/pipeline.ts +6 -1
  475. package/src/context-bus/context-day.ts +60 -11
  476. package/src/context-bus/external-events.ts +2 -2
  477. package/src/context-bus/nightly-condense.ts +8 -7
  478. package/src/control-plane/ledger.ts +1 -1
  479. package/src/core-turn/run-core-turn.ts +17 -11
  480. package/src/core-turn/run-goal-loop.ts +77 -35
  481. package/src/core-turn/seat-turn-cap.ts +8 -8
  482. package/src/core-turn/short-question.ts +27 -4
  483. package/src/dashboard/acp-boot.ts +66 -10
  484. package/src/dashboard/classic-sidetab-mission-job.ts +64 -6
  485. package/src/dashboard/classic-sidetab-mission-pair.ts +20 -7
  486. package/src/dashboard/classic-sidetab-mission-reconcile.ts +212 -0
  487. package/src/dashboard/classic-sidetab-mission-trio.ts +91 -18
  488. package/src/dashboard/classic-sidetab-mission.ts +94 -26
  489. package/src/dashboard/first-screen-band.ts +2 -2
  490. package/src/dashboard/index.ts +36 -34
  491. package/src/dashboard/input/chat-main-plain-turn-runtime.ts +5 -4
  492. package/src/dashboard/input/goal-continue.ts +10 -0
  493. package/src/dashboard/visible-mission-diagnostics.ts +1 -3
  494. package/src/decisions/decision-cards.ts +6 -1
  495. package/src/decisions/decision-ledger.ts +5 -0
  496. package/src/domains/schedule-manage-tool.ts +1 -1
  497. package/src/ensure-bin-path.ts +5 -1
  498. package/src/error-report/report.ts +139 -4
  499. package/src/execution-loop/launch-gate.ts +115 -18
  500. package/src/fleet/burst-auto-wire-ladder.ts +34 -0
  501. package/src/fleet/burst-auto-within-budget.ts +108 -0
  502. package/src/fleet/burst-ready-ladder.ts +64 -0
  503. package/src/fleet/host-doctor.ts +94 -23
  504. package/src/fleet/resource-inventory.ts +154 -0
  505. package/src/git-fs/worktree.ts +40 -16
  506. package/src/graph-runner/graph-cli.ts +3 -2
  507. package/src/graph-runner/runner.ts +23 -9
  508. package/src/grid/ssh-broker.ts +436 -0
  509. package/src/harness/browser-act.ts +11 -4
  510. package/src/harness/dispatch-backpressure.ts +184 -34
  511. package/src/harness/harness-cli-command.ts +71 -13
  512. package/src/harness/harness-pod-dispatch.ts +37 -1
  513. package/src/index.ts +218 -47
  514. package/src/intake-plane/actions.ts +19 -7
  515. package/src/intake-plane/digest.ts +30 -7
  516. package/src/intake-plane/intake-sources.ts +92 -3
  517. package/src/intake-plane/items.ts +13 -0
  518. package/src/intake-plane/linear-wish.ts +24 -1
  519. package/src/light-cli.ts +52 -5
  520. package/src/llm.ts +136 -21
  521. package/src/loops/orchestrator/tick.ts +29 -9
  522. package/src/machines/machine-ledger.ts +7 -1
  523. package/src/maturity/feature-maturity.ts +4 -3
  524. package/src/msg/msg-store.ts +5 -2
  525. package/src/mss/logging/log-federation.ts +334 -0
  526. package/src/mss/logging/log-store.ts +16 -7
  527. package/src/native-tool-catalog.ts +13 -0
  528. package/src/nexus/api/harness-api.ts +16 -6
  529. package/src/nexus/api/harness-traversal.ts +78 -5
  530. package/src/nexus/api/http-server.ts +30 -0
  531. package/src/nexus/api/ops-api.ts +69 -1
  532. package/src/nexus/api/public-routes.ts +14 -0
  533. package/src/nexus/api/resource-guardian.ts +26 -0
  534. package/src/nexus/api/resource-ledger.ts +59 -0
  535. package/src/nexus/api/rest-route-paths.ts +3 -0
  536. package/src/nexus/api/train-throughput.ts +228 -0
  537. package/src/nexus/api/ux-sim-devices.ts +67 -0
  538. package/src/nexus/index.ts +2 -0
  539. package/src/oauth/codex-seat-home.ts +231 -0
  540. package/src/oauth/codex.ts +69 -16
  541. package/src/onboarding/summary.ts +2 -0
  542. package/src/onboarding/web-first.ts +111 -47
  543. package/src/onboarding.ts +9 -0
  544. package/src/plugins/install/plugin-grounding.ts +233 -0
  545. package/src/plugins/maker/wizard-generate.ts +13 -1
  546. package/src/pty-shell/pty-manifest-query-cache.ts +18 -0
  547. package/src/pty-shell/pty-manifest.ts +76 -0
  548. package/src/pty-shell/remote-eln-inventory.ts +88 -0
  549. package/src/release-loop/gate-host-reservation.ts +19 -11
  550. package/src/release-loop/gate-shard-ledger.ts +2 -0
  551. package/src/release-loop/placement.ts +18 -8
  552. package/src/release-loop/rehearsal.ts +86 -11
  553. package/src/release-loop/release-note.ts +84 -0
  554. package/src/release-loop/stage-mail.ts +71 -0
  555. package/src/repl/index.ts +8 -1
  556. package/src/research/axis-fanout.ts +73 -23
  557. package/src/research/entity-status-table.ts +305 -0
  558. package/src/research/evidence-attribution.ts +48 -0
  559. package/src/research/gap-followup.ts +6 -1
  560. package/src/resource-ledger/guardian-reconcile.ts +172 -0
  561. package/src/resource-ledger/lease-automation.ts +112 -0
  562. package/src/resource-ledger/lease-heartbeat-worker.ts +169 -0
  563. package/src/resource-ledger/machine-pool-inventory.ts +81 -0
  564. package/src/resource-ledger/resource-ledger.ts +310 -0
  565. package/src/seat-loop/seat-loop.ts +2 -1
  566. package/src/self-dev/dev-pipeline.ts +98 -10
  567. package/src/self-dev/launch-preflight.ts +10 -4
  568. package/src/self-dev/orchestrate-cli.ts +7 -0
  569. package/src/self-dev/orchestrate-parent-dispatch.ts +44 -0
  570. package/src/self-dev/review-provider-fallback.ts +108 -10
  571. package/src/self-dev/run-supervisor.ts +26 -9
  572. package/src/self-implement/fixtures/structural-red-default-reexport.fixture.mjs +3 -0
  573. package/src/self-implement/fixtures/structural-red-export-star.fixture.mjs +3 -0
  574. package/src/self-implement/fixtures/structural-red-named-export.fixture.mjs +3 -0
  575. package/src/self-implement/gate-remote.ts +63 -10
  576. package/src/self-implement/goal-author.ts +214 -9
  577. package/src/self-implement/merge-train.ts +12 -1
  578. package/src/self-implement/off-diff-evidence.ts +223 -3
  579. package/src/self-implement/orchestrator.ts +205 -46
  580. package/src/self-implement/pod-warm-pool-profile.ts +3 -0
  581. package/src/self-implement/run-step-projection.ts +18 -4
  582. package/src/self-implement/seams.ts +42 -1
  583. package/src/session/chat.ts +29 -2
  584. package/src/session/index.ts +34 -0
  585. package/src/session/request-size-guard.ts +7 -7
  586. package/src/session/session-start.ts +17 -2
  587. package/src/session-runtime/index.ts +1 -1
  588. package/src/session-runtime/search-processor.ts +5 -2
  589. package/src/sidetab-core/model.ts +9 -6
  590. package/src/sidetab-core/visible-agent-mission.ts +108 -19
  591. package/src/sim-world-device-catalogs.json +182 -0
  592. package/src/skills/tools/shell.ts +7 -4
  593. package/src/steward/entrance-dispatch-shadow-adapter-child.ts +26 -0
  594. package/src/steward/entrance-dispatch-shadow-adapter.ts +196 -0
  595. package/src/steward/entrance-dispatch-shadow.ts +318 -0
  596. package/src/storage/short-lived-read-cache.ts +119 -0
  597. package/src/task-agent/card-evidence.ts +2 -1
  598. package/src/task-agent/entrance-shadow.ts +178 -0
  599. package/src/task-agent/mission.ts +9 -19
  600. package/src/task-agent/parent-host.ts +74 -4
  601. package/src/task-agent/repair-cycle.ts +75 -1
  602. package/src/task-agent/task-card-state.ts +161 -0
  603. package/src/task-agent/task-hand.ts +41 -141
  604. package/src/task-agent/work-order-build.ts +22 -1
  605. package/src/task-orchestrator/surfaces/gate-pod-pool-policy.ts +309 -0
  606. package/src/task-orchestrator/surfaces/pod-ledger-events.ts +194 -12
  607. package/src/task-orchestrator/surfaces/pod-pool.ts +55 -4
  608. package/src/task-orchestrator/surfaces/pod-warm-worker-provider.ts +57 -16
  609. package/src/task-orchestrator/surfaces/self-implement-pod.ts +40 -5
  610. package/src/task-orchestrator/surfaces/warm-reuse-evidence.ts +61 -0
  611. package/src/tool-runtime/agent-output-runtime.ts +1 -1
  612. package/src/tool-runtime/browser-hand-runtime.ts +41 -11
  613. package/src/tool-runtime/elanous-control-runtimes.ts +5 -2
  614. package/src/tool-runtime/elanous-ux-sim-devices-runtime.ts +43 -0
  615. package/src/tool-runtime/index.ts +2 -0
  616. package/src/tui/entry.ts +74 -24
  617. package/src/tui/sidetab/attach.ts +212 -34
  618. package/src/tui/sidetab/remote.ts +89 -0
  619. package/src/tui-client/dashboard-session.ts +2 -0
  620. package/src/tui-client/local-chat-turn.ts +9 -2
  621. package/src/user-config.ts +7 -1
  622. package/src/ux-sim/aside-feedback-loop.ts +181 -0
  623. package/src/ux-sim/author-reviewer-precheck-device.ts +78 -0
  624. package/src/ux-sim/burst-ready-ladder-sim.ts +225 -0
  625. package/src/ux-sim/codex-wire-capture.ts +26 -0
  626. package/src/ux-sim/event-monkey.ts +20 -2
  627. package/src/ux-sim/fake-bin.ts +72 -1
  628. package/src/ux-sim/fake-cloud-vm.ts +241 -0
  629. package/src/ux-sim/fake-fleet.ts +123 -0
  630. package/src/ux-sim/fake-kubectl.ts +21 -6
  631. package/src/ux-sim/fake-llm.ts +14 -1
  632. package/src/ux-sim/fake-ssh.ts +125 -0
  633. package/src/ux-sim/fake-telegram-video.ts +54 -0
  634. package/src/ux-sim/fixtures/git-worktree-accel-linux.json +239 -0
  635. package/src/ux-sim/gate-shard-host-reroute.ts +7 -3
  636. package/src/ux-sim/graph-runtime-overlay-event-path-worker.ts +79 -0
  637. package/src/ux-sim/graph-runtime-overlay-event-path.ts +102 -0
  638. package/src/ux-sim/grid-chaos-driver.ts +205 -0
  639. package/src/ux-sim/grid-ledger.ts +259 -0
  640. package/src/ux-sim/grid-ready-tiers.ts +253 -0
  641. package/src/ux-sim/heal-reauthor-materialized.ts +115 -0
  642. package/src/ux-sim/in-process-cli.ts +1 -1
  643. package/src/ux-sim/mock-device-requests.ts +189 -0
  644. package/src/ux-sim/mock-scenario-catalog.json +2934 -71
  645. package/src/ux-sim/mock-scenario-catalog.ts +139 -4
  646. package/src/ux-sim/next-tui-seat-scenarios.ts +52 -4
  647. package/src/ux-sim/release-sim-rig.ts +299 -7
  648. package/src/ux-sim/research-decision-chain.ts +220 -0
  649. package/src/ux-sim/safe-public-copy-publish.ts +89 -0
  650. package/src/ux-sim/scenario.ts +133 -14
  651. package/src/ux-sim/seminar-rehearsal.ts +108 -0
  652. package/src/ux-sim/service-key-setup.ts +37 -2
  653. package/src/ux-sim/warm-pool-reuse-sim.ts +256 -0
  654. package/src/ux-sim/world-schema.ts +216 -0
  655. package/src/ux-sim/world-store.ts +421 -0
  656. package/src/ux-sim/world.ts +524 -0
  657. package/src/version/packed-revision.json +1 -1
  658. package/src/video-pipeline/recipes/explainer.ts +237 -10
  659. package/src/video-pipeline/telegram-video-sender.ts +47 -0
  660. package/src/workflow-runtime/triggers/scheduler.ts +4 -4
  661. package/apps/pwa/out/_next/static/HMXsxdy5MIIcHPMHv1wD4/_buildManifest.js +0 -1
  662. package/apps/pwa/out/_next/static/chunks/08334415.f0e80896acbef722.js +0 -1
  663. package/apps/pwa/out/_next/static/chunks/1032-78ba4f6391258cab.js +0 -1
  664. package/apps/pwa/out/_next/static/chunks/1082-53f86a26e03d309d.js +0 -1
  665. package/apps/pwa/out/_next/static/chunks/1109-7d0e264f6f2edbc7.js +0 -1
  666. package/apps/pwa/out/_next/static/chunks/1124-7c26330402481143.js +0 -1
  667. package/apps/pwa/out/_next/static/chunks/118.2a89982fe4276880.js +0 -23
  668. package/apps/pwa/out/_next/static/chunks/1244.6c435dbf1bf21d8a.js +0 -1
  669. package/apps/pwa/out/_next/static/chunks/1252.9e665904d3aa3b1a.js +0 -32
  670. package/apps/pwa/out/_next/static/chunks/1306.967240ede9a0f757.js +0 -24
  671. package/apps/pwa/out/_next/static/chunks/1344.3b95f3bd1b77a3fe.js +0 -94
  672. package/apps/pwa/out/_next/static/chunks/1401.22dfe92640a2b1ac.js +0 -309
  673. package/apps/pwa/out/_next/static/chunks/1431-f7c78bd5be21e011.js +0 -1
  674. package/apps/pwa/out/_next/static/chunks/1451-cdd35a8a0b31834b.js +0 -1
  675. package/apps/pwa/out/_next/static/chunks/1708-f03d587b7a7545c8.js +0 -1
  676. package/apps/pwa/out/_next/static/chunks/1775-fa7152bdeff6c95f.js +0 -1
  677. package/apps/pwa/out/_next/static/chunks/1850-522de4ee34957210.js +0 -1
  678. package/apps/pwa/out/_next/static/chunks/1876-c6f6e0ddcc76c6a1.js +0 -1
  679. package/apps/pwa/out/_next/static/chunks/1976.097066b072432242.js +0 -1
  680. package/apps/pwa/out/_next/static/chunks/1978.eeb60a606dc5deac.js +0 -2
  681. package/apps/pwa/out/_next/static/chunks/2043.e233e3b5a3e790f5.js +0 -1
  682. package/apps/pwa/out/_next/static/chunks/2150.71b94e3348107c83.js +0 -1
  683. package/apps/pwa/out/_next/static/chunks/2158.ebc6fc5a10280ab7.js +0 -1
  684. package/apps/pwa/out/_next/static/chunks/2216.802962c04f40a26e.js +0 -64
  685. package/apps/pwa/out/_next/static/chunks/2294.7890edcfa046c97d.js +0 -1
  686. package/apps/pwa/out/_next/static/chunks/235.c89aaae4bcd6233a.js +0 -74
  687. package/apps/pwa/out/_next/static/chunks/239.de075467b5523469.js +0 -287
  688. package/apps/pwa/out/_next/static/chunks/249.ba7051590d603c8f.js +0 -226
  689. package/apps/pwa/out/_next/static/chunks/2571.a6ac4e26c8618403.js +0 -1
  690. package/apps/pwa/out/_next/static/chunks/2610.e149cd564a08913e.js +0 -1
  691. package/apps/pwa/out/_next/static/chunks/2801.afeb8a4dae22f85f.js +0 -1
  692. package/apps/pwa/out/_next/static/chunks/2954.bbefc95d6b20e0d8.js +0 -1
  693. package/apps/pwa/out/_next/static/chunks/3042.96ec235fe41c8d4e.js +0 -1
  694. package/apps/pwa/out/_next/static/chunks/3097-8e358f158acef46b.js +0 -1
  695. package/apps/pwa/out/_next/static/chunks/3205-93b1abe28b4fb16a.js +0 -1
  696. package/apps/pwa/out/_next/static/chunks/3273.b4434f0dcae7eb29.js +0 -1
  697. package/apps/pwa/out/_next/static/chunks/3311.9cbc43ea0c90d60c.js +0 -1
  698. package/apps/pwa/out/_next/static/chunks/3503.a47a9755fb4d97b0.js +0 -1
  699. package/apps/pwa/out/_next/static/chunks/3506-5f429b3b7e1392b0.js +0 -1
  700. package/apps/pwa/out/_next/static/chunks/3843.bad404d008893291.js +0 -77
  701. package/apps/pwa/out/_next/static/chunks/3877-4b40e530b47e3bf9.js +0 -1
  702. package/apps/pwa/out/_next/static/chunks/435-ce2958253cf7de61.js +0 -1
  703. package/apps/pwa/out/_next/static/chunks/4393.28fa5228d0eec217.js +0 -149
  704. package/apps/pwa/out/_next/static/chunks/4404.7281c847c6e10dfc.js +0 -1
  705. package/apps/pwa/out/_next/static/chunks/447-5b304de1fe098f43.js +0 -1
  706. package/apps/pwa/out/_next/static/chunks/4484-8ebea83d431e6fae.js +0 -1
  707. package/apps/pwa/out/_next/static/chunks/4599-f95790fc5c65b8df.js +0 -1
  708. package/apps/pwa/out/_next/static/chunks/463-b9114e411f33728e.js +0 -1
  709. package/apps/pwa/out/_next/static/chunks/4659.a57d1f0c5d754cd2.js +0 -36
  710. package/apps/pwa/out/_next/static/chunks/4722-a847e7a28115035f.js +0 -1
  711. package/apps/pwa/out/_next/static/chunks/4874-c86f878ec4502ad3.js +0 -1
  712. package/apps/pwa/out/_next/static/chunks/4891.3f80ba517a3b2373.js +0 -1
  713. package/apps/pwa/out/_next/static/chunks/4998.810ca8833084caa9.js +0 -62
  714. package/apps/pwa/out/_next/static/chunks/4f98febc.ea5841d4d616bfb2.js +0 -1
  715. package/apps/pwa/out/_next/static/chunks/5052.7dbb12a55d4f18f5.js +0 -1
  716. package/apps/pwa/out/_next/static/chunks/5166-ca73b3e361085a6d.js +0 -1
  717. package/apps/pwa/out/_next/static/chunks/5180-039f4a18b07ad387.js +0 -1
  718. package/apps/pwa/out/_next/static/chunks/5232.5a2ce4daf7a9e11d.js +0 -115
  719. package/apps/pwa/out/_next/static/chunks/5439.3fec6dbce29ecb36.js +0 -1
  720. package/apps/pwa/out/_next/static/chunks/5612-074d9a5e00dfac6a.js +0 -1
  721. package/apps/pwa/out/_next/static/chunks/5675-01989d524a84c505.js +0 -1
  722. package/apps/pwa/out/_next/static/chunks/5751.af641a1adf5ec697.js +0 -1
  723. package/apps/pwa/out/_next/static/chunks/5758-c6cb98714d18ab0c.js +0 -1
  724. package/apps/pwa/out/_next/static/chunks/578eded8.b582637306e16964.js +0 -122
  725. package/apps/pwa/out/_next/static/chunks/5853-4033e5bd5afbe06b.js +0 -1
  726. package/apps/pwa/out/_next/static/chunks/5904.97d70bb7f46b2db7.js +0 -1
  727. package/apps/pwa/out/_next/static/chunks/6036-c302c34ff0b3d410.js +0 -1
  728. package/apps/pwa/out/_next/static/chunks/606.ef81c313381f4264.js +0 -1
  729. package/apps/pwa/out/_next/static/chunks/616.1af54a928b1ba704.js +0 -1
  730. package/apps/pwa/out/_next/static/chunks/6201.bc936f71f613a8e9.js +0 -41
  731. package/apps/pwa/out/_next/static/chunks/6204-fdc86e0e64c4f92d.js +0 -1
  732. package/apps/pwa/out/_next/static/chunks/63699a35.17262e162bc514b2.js +0 -1
  733. package/apps/pwa/out/_next/static/chunks/6420.494801a80030160c.js +0 -27
  734. package/apps/pwa/out/_next/static/chunks/6931.fcdfb94141e67b3d.js +0 -1
  735. package/apps/pwa/out/_next/static/chunks/6991-8e081c6ce38c0ba1.js +0 -1
  736. package/apps/pwa/out/_next/static/chunks/7010.1bbd17a7f2b3e376.js +0 -1
  737. package/apps/pwa/out/_next/static/chunks/7029.d1466acf55fae2ed.js +0 -1
  738. package/apps/pwa/out/_next/static/chunks/7152-a123aa8e129c131f.js +0 -1
  739. package/apps/pwa/out/_next/static/chunks/7455.196168fffac3b9c4.js +0 -24
  740. package/apps/pwa/out/_next/static/chunks/7638.6ca4770dd1129138.js +0 -1
  741. package/apps/pwa/out/_next/static/chunks/7649-f37d76260e5e2a5a.js +0 -1
  742. package/apps/pwa/out/_next/static/chunks/7751.04bfbd16b4c6cd0a.js +0 -1
  743. package/apps/pwa/out/_next/static/chunks/7869-c47bd2c075c1fefa.js +0 -1
  744. package/apps/pwa/out/_next/static/chunks/8442.2f09ca969d631615.js +0 -1
  745. package/apps/pwa/out/_next/static/chunks/8445.2738dbd59a78c78c.js +0 -1
  746. package/apps/pwa/out/_next/static/chunks/8447.5510c439f9938c6d.js +0 -286
  747. package/apps/pwa/out/_next/static/chunks/8635-57a9d8d9db70f4f1.js +0 -1
  748. package/apps/pwa/out/_next/static/chunks/86961958-4b0689a5048f756b.js +0 -1
  749. package/apps/pwa/out/_next/static/chunks/8709.3c6019bb18f8554f.js +0 -8
  750. package/apps/pwa/out/_next/static/chunks/8759.c999528a0a907bf6.js +0 -1
  751. package/apps/pwa/out/_next/static/chunks/87f498e5-0881de09f2e44707.js +0 -1
  752. package/apps/pwa/out/_next/static/chunks/8843.c3197f904c952b81.js +0 -1
  753. package/apps/pwa/out/_next/static/chunks/8971-8d3b9c96f8a6c958.js +0 -1
  754. package/apps/pwa/out/_next/static/chunks/9059.c8598d96f8e5e9cd.js +0 -1
  755. package/apps/pwa/out/_next/static/chunks/9115.90447ae198b84eae.js +0 -1
  756. package/apps/pwa/out/_next/static/chunks/9147.d9b0a02e0babc9b4.js +0 -93
  757. package/apps/pwa/out/_next/static/chunks/9204-83075f4b70c61cdc.js +0 -1
  758. package/apps/pwa/out/_next/static/chunks/9244-c32ef14b5dc72bdf.js +0 -1
  759. package/apps/pwa/out/_next/static/chunks/930.2a9a30f964350c66.js +0 -90
  760. package/apps/pwa/out/_next/static/chunks/9398.1f56e3f17795f43f.js +0 -1
  761. package/apps/pwa/out/_next/static/chunks/9527.3e5ad31c891c5fcb.js +0 -79
  762. package/apps/pwa/out/_next/static/chunks/9571-4ac933e774d1225c.js +0 -1
  763. package/apps/pwa/out/_next/static/chunks/app/_not-found/page-9fc644de2d8edae3.js +0 -1
  764. package/apps/pwa/out/_next/static/chunks/app/approvals/page-0c9dace2db62bee8.js +0 -1
  765. package/apps/pwa/out/_next/static/chunks/app/autopilot/page-f5e65c3dc9d89f2a.js +0 -1
  766. package/apps/pwa/out/_next/static/chunks/app/board/page-2a9c19b9a140b7b1.js +0 -1
  767. package/apps/pwa/out/_next/static/chunks/app/botlab/page-61533ad92141adfb.js +0 -1
  768. package/apps/pwa/out/_next/static/chunks/app/bots/page-112004ced6fd0329.js +0 -1
  769. package/apps/pwa/out/_next/static/chunks/app/ceo/page-f733318c237a49d8.js +0 -1
  770. package/apps/pwa/out/_next/static/chunks/app/chat/page-51ea677d2d33bbc0.js +0 -1
  771. package/apps/pwa/out/_next/static/chunks/app/consult/page-428b41f2f9566e3c.js +0 -1
  772. package/apps/pwa/out/_next/static/chunks/app/control/page-1b29396ea90a61e5.js +0 -1
  773. package/apps/pwa/out/_next/static/chunks/app/decisions/page-cf83ec613ac904bf.js +0 -1
  774. package/apps/pwa/out/_next/static/chunks/app/design-check/page-3f4c0ecbc284bb5f.js +0 -1
  775. package/apps/pwa/out/_next/static/chunks/app/editor/page-b63c322f54f70cc6.js +0 -1
  776. package/apps/pwa/out/_next/static/chunks/app/exec/page-fe328c4ee9aac6b4.js +0 -1
  777. package/apps/pwa/out/_next/static/chunks/app/field/page-bfb855c584f0fb98.js +0 -1
  778. package/apps/pwa/out/_next/static/chunks/app/healthz/route-9fc644de2d8edae3.js +0 -1
  779. package/apps/pwa/out/_next/static/chunks/app/inside/page-47b1710c110eabd7.js +0 -1
  780. package/apps/pwa/out/_next/static/chunks/app/intake/page-42895214458bc6d2.js +0 -1
  781. package/apps/pwa/out/_next/static/chunks/app/layout-d03de0ebd8366e23.js +0 -1
  782. package/apps/pwa/out/_next/static/chunks/app/live/page-3ed6c47e4b1c61c2.js +0 -1
  783. package/apps/pwa/out/_next/static/chunks/app/live-run/page-ae653e9bf261c738.js +0 -1
  784. package/apps/pwa/out/_next/static/chunks/app/loops/page-23f3f0a0209c0ac4.js +0 -1
  785. package/apps/pwa/out/_next/static/chunks/app/market/page-88c691273aae66f9.js +0 -1
  786. package/apps/pwa/out/_next/static/chunks/app/morning/page-6e45828daed1295e.js +0 -1
  787. package/apps/pwa/out/_next/static/chunks/app/not-found-edb5d7287bb46186.js +0 -1
  788. package/apps/pwa/out/_next/static/chunks/app/observatory/page-4a7eaacd93c3f6a5.js +0 -1
  789. package/apps/pwa/out/_next/static/chunks/app/ops/checklist/page-3ca073d43d74cc84.js +0 -1
  790. package/apps/pwa/out/_next/static/chunks/app/ops/release/page-1e9fee67b1199436.js +0 -1
  791. package/apps/pwa/out/_next/static/chunks/app/ops/seats/page-df1283ea963c6816.js +0 -1
  792. package/apps/pwa/out/_next/static/chunks/app/outputs/page-19fcf8d8301ccd18.js +0 -1
  793. package/apps/pwa/out/_next/static/chunks/app/page-5ab699e0303bbb40.js +0 -1
  794. package/apps/pwa/out/_next/static/chunks/app/reflection/page-7cde0d29756984c5.js +0 -1
  795. package/apps/pwa/out/_next/static/chunks/app/scheduler/page-9d4c598e8ee22f7a.js +0 -1
  796. package/apps/pwa/out/_next/static/chunks/app/sessions/page-cc1609a71f44ec62.js +0 -1
  797. package/apps/pwa/out/_next/static/chunks/app/settings/devices/page-7659a9a1345bfaa9.js +0 -1
  798. package/apps/pwa/out/_next/static/chunks/app/settings/page-0afef60ecc0c4af5.js +0 -1
  799. package/apps/pwa/out/_next/static/chunks/app/setup/done/page-a3553949f8f34f5f.js +0 -1
  800. package/apps/pwa/out/_next/static/chunks/app/setup/layout-9fc644de2d8edae3.js +0 -1
  801. package/apps/pwa/out/_next/static/chunks/app/setup/page-057a69702f3c67c7.js +0 -1
  802. package/apps/pwa/out/_next/static/chunks/app/share/page-c0f0e570f3f74c73.js +0 -1
  803. package/apps/pwa/out/_next/static/chunks/app/showroom/page-1825071ae34e3b89.js +0 -1
  804. package/apps/pwa/out/_next/static/chunks/app/tasks/page-6244e3e135d8ccfc.js +0 -1
  805. package/apps/pwa/out/_next/static/chunks/app/term/page-da787e8a10b8a82e.js +0 -1
  806. package/apps/pwa/out/_next/static/chunks/app/today/page-1316d32498e2be42.js +0 -1
  807. package/apps/pwa/out/_next/static/chunks/app/trace/page-4df94572e343de2e.js +0 -1
  808. package/apps/pwa/out/_next/static/chunks/app/vault/page-708969f7475e88c1.js +0 -1
  809. package/apps/pwa/out/_next/static/chunks/app/workflows/chat-ui/page-c58add08c919a1dc.js +0 -1
  810. package/apps/pwa/out/_next/static/chunks/app/workflows/page-a24847f45e5d5bf9.js +0 -1
  811. package/apps/pwa/out/_next/static/chunks/app/workspace/page-acfec65a3a60e22e.js +0 -1
  812. package/apps/pwa/out/_next/static/chunks/app/worktrees/page-3dfc598e6fbde245.js +0 -1
  813. package/apps/pwa/out/_next/static/chunks/framework-c658a626118411b7.js +0 -1
  814. package/apps/pwa/out/_next/static/chunks/main-4c73685fd891445b.js +0 -1
  815. package/apps/pwa/out/_next/static/chunks/main-app-6310f7e5de7dd01d.js +0 -1
  816. package/apps/pwa/out/_next/static/chunks/pages/_app-51c326bf48610be1.js +0 -1
  817. package/apps/pwa/out/_next/static/chunks/pages/_error-d0beadf754da59b0.js +0 -1
  818. package/apps/pwa/out/_next/static/chunks/webpack-acd243bfbf3f6732.js +0 -1
  819. package/apps/pwa/out/_next/static/css/d1f8bb401740a549.css +0 -1
  820. /package/apps/pwa/out/_next/static/{HMXsxdy5MIIcHPMHv1wD4 → 98VlBaYvL-VVnCq93_lFS}/_ssgManifest.js +0 -0
@@ -0,0 +1,286 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5709],{4168:(t,e,s)=>{s.d(e,{A:()=>a});var i=s(42804),r=s(14097),a=(0,i.K)((t,e)=>{let s;return"sandbox"===e&&(s=(0,r.Ltv)("#i"+t)),("sandbox"===e?(0,r.Ltv)(s.nodes()[0].contentDocument.body):(0,r.Ltv)("body")).select(`[id="${t}"]`)},"getDiagramElement")},45709:(t,e,s)=>{s.d(e,{diagram:()=>tc});var i=s(4168),r=s(60643),a=s(49897);s(87964);var n=s(84599);s(39402),s(67275),s(89205),s(37955),s(42328),s(31209),s(71501);var o=s(71194),l=s(70796),c=s(8212),h=s(45026),d=s(42804),u=s(14097),p=s(30045),y=function(){var t=(0,d.K)(function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s},"o"),e=[1,2],s=[1,3],i=[1,4],r=[2,4],a=[1,9],n=[1,11],o=[1,16],l=[1,17],c=[1,18],h=[1,19],u=[1,33],p=[1,20],y=[1,21],g=[1,22],f=[1,23],m=[1,24],S=[1,26],k=[1,27],b=[1,28],T=[1,29],_=[1,30],E=[1,31],x=[1,32],D=[1,35],$=[1,36],C=[1,37],v=[1,38],w=[1,34],I=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],L=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],A=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],R={trace:(0,d.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"--\x3e":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"--\x3e",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:(0,d.K)(function(t,e,s,i,r,a,n){var o=a.length-1;switch(r){case 3:return i.setRootDoc(a[o]),a[o];case 4:this.$=[];break;case 5:"nl"!=a[o]&&(a[o-1].push(a[o]),this.$=a[o-1]);break;case 6:case 7:case 12:this.$=a[o];break;case 8:this.$="nl";break;case 13:let l=a[o-1];l.description=i.trimColon(a[o]),this.$=l;break;case 14:this.$={stmt:"relation",state1:a[o-2],state2:a[o]};break;case 15:let c=i.trimColon(a[o]);this.$={stmt:"relation",state1:a[o-3],state2:a[o-1],description:c};break;case 19:this.$={stmt:"state",id:a[o-3],type:"default",description:"",doc:a[o-1]};break;case 20:var h=a[o],d=a[o-2].trim();if(a[o].match(":")){var u=a[o].split(":");h=u[0],d=[d,u[1]]}this.$={stmt:"state",id:h,type:"default",description:d};break;case 21:this.$={stmt:"state",id:a[o-3],type:"default",description:a[o-5],doc:a[o-1]};break;case 22:this.$={stmt:"state",id:a[o],type:"fork"};break;case 23:this.$={stmt:"state",id:a[o],type:"join"};break;case 24:this.$={stmt:"state",id:a[o],type:"choice"};break;case 25:this.$={stmt:"state",id:i.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:a[o-1].trim(),note:{position:a[o-2].trim(),text:a[o].trim()}};break;case 29:this.$=a[o].trim(),i.setAccTitle(this.$);break;case 30:case 31:this.$=a[o].trim(),i.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:a[o-3],url:a[o-2],tooltip:a[o-1]};break;case 33:this.$={stmt:"click",id:a[o-3],url:a[o-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:a[o-1].trim(),classes:a[o].trim()};break;case 36:this.$={stmt:"style",id:a[o-1].trim(),styleClass:a[o].trim()};break;case 37:this.$={stmt:"applyClass",id:a[o-1].trim(),styleClass:a[o].trim()};break;case 38:i.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:i.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:i.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:i.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:a[o].trim(),type:"default",description:""};break;case 46:case 47:this.$={stmt:"state",id:a[o-2].trim(),classes:[a[o].trim()],type:"default",description:""}}},"anonymous"),table:[{3:1,4:e,5:s,6:i},{1:[3]},{3:5,4:e,5:s,6:i},{3:6,4:e,5:s,6:i},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:n,8:8,9:10,10:12,11:13,12:14,13:15,16:o,17:l,19:c,22:h,24:u,25:p,26:y,27:g,28:f,29:m,32:25,33:S,35:k,37:b,38:T,41:_,45:E,48:x,51:D,52:$,53:C,54:v,57:w},t(I,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:o,17:l,19:c,22:h,24:u,25:p,26:y,27:g,28:f,29:m,32:25,33:S,35:k,37:b,38:T,41:_,45:E,48:x,51:D,52:$,53:C,54:v,57:w},t(I,[2,7]),t(I,[2,8]),t(I,[2,9]),t(I,[2,10]),t(I,[2,11]),t(I,[2,12],{14:[1,40],15:[1,41]}),t(I,[2,16]),{18:[1,42]},t(I,[2,18],{20:[1,43]}),{23:[1,44]},t(I,[2,22]),t(I,[2,23]),t(I,[2,24]),t(I,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(I,[2,28]),{34:[1,49]},{36:[1,50]},t(I,[2,31]),{13:51,24:u,57:w},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(L,[2,44],{58:[1,56]}),t(L,[2,45],{58:[1,57]}),t(I,[2,38]),t(I,[2,39]),t(I,[2,40]),t(I,[2,41]),t(I,[2,6]),t(I,[2,13]),{13:58,24:u,57:w},t(I,[2,17]),t(A,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(I,[2,29]),t(I,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(I,[2,14],{14:[1,71]}),{4:a,5:n,8:8,9:10,10:12,11:13,12:14,13:15,16:o,17:l,19:c,21:[1,72],22:h,24:u,25:p,26:y,27:g,28:f,29:m,32:25,33:S,35:k,37:b,38:T,41:_,45:E,48:x,51:D,52:$,53:C,54:v,57:w},t(I,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(I,[2,34]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(L,[2,46]),t(L,[2,47]),t(I,[2,15]),t(I,[2,19]),t(A,r,{7:78}),t(I,[2,26]),t(I,[2,27]),{5:[1,79]},{5:[1,80]},{4:a,5:n,8:8,9:10,10:12,11:13,12:14,13:15,16:o,17:l,19:c,21:[1,81],22:h,24:u,25:p,26:y,27:g,28:f,29:m,32:25,33:S,35:k,37:b,38:T,41:_,45:E,48:x,51:D,52:$,53:C,54:v,57:w},t(I,[2,32]),t(I,[2,33]),t(I,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:(0,d.K)(function(t,e){if(e.recoverable)this.trace(t);else{var s=Error(t);throw s.hash=e,s}},"parseError"),parse:(0,d.K)(function(t){var e=this,s=[0],i=[],r=[null],a=[],n=this.table,o="",l=0,c=0,h=0,u=a.slice.call(arguments,1),p=Object.create(this.lexer),y={};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(y[g]=this.yy[g]);p.setInput(t,y),y.lexer=p,y.parser=this,void 0===p.yylloc&&(p.yylloc={});var f=p.yylloc;a.push(f);var m=p.options&&p.options.ranges;function S(){var t;return"number"!=typeof(t=i.pop()||p.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof y.parseError?this.parseError=y.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,d.K)(function(t){s.length=s.length-2*t,r.length=r.length-t,a.length=a.length-t},"popStack"),(0,d.K)(S,"lex");for(var k,b,T,_,E,x,D,$,C,v={};;){if(T=s[s.length-1],this.defaultActions[T]?_=this.defaultActions[T]:(null==k&&(k=S()),_=n[T]&&n[T][k]),void 0===_||!_.length||!_[0]){var w="";for(x in C=[],n[T])this.terminals_[x]&&x>2&&C.push("'"+this.terminals_[x]+"'");w=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==k?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(w,{text:p.match,token:this.terminals_[k]||k,line:p.yylineno,loc:f,expected:C})}if(_[0]instanceof Array&&_.length>1)throw Error("Parse Error: multiple actions possible at state: "+T+", token: "+k);switch(_[0]){case 1:s.push(k),r.push(p.yytext),a.push(p.yylloc),s.push(_[1]),k=null,b?(k=b,b=null):(c=p.yyleng,o=p.yytext,l=p.yylineno,f=p.yylloc,h>0&&h--);break;case 2:if(D=this.productions_[_[1]][1],v.$=r[r.length-D],v._$={first_line:a[a.length-(D||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(D||1)].first_column,last_column:a[a.length-1].last_column},m&&(v._$.range=[a[a.length-(D||1)].range[0],a[a.length-1].range[1]]),void 0!==(E=this.performAction.apply(v,[o,c,l,y,_[1],r,a].concat(u))))return E;D&&(s=s.slice(0,-1*D*2),r=r.slice(0,-1*D),a=a.slice(0,-1*D)),s.push(this.productions_[_[1]][0]),r.push(v.$),a.push(v._$),$=n[s[s.length-2]][s[s.length-1]],s.push($);break;case 3:return!0}}return!0},"parse")};function N(){this.yy={}}return R.lexer={EOF:1,parseError:(0,d.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,d.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,d.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,d.K)(function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,d.K)(function(){return this._more=!0,this},"more"),reject:(0,d.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,d.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,d.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,d.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,d.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,d.K)(function(t,e){var s,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack)for(var a in r)this[a]=r[a];return!1},"test_match"),next:(0,d.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,s,i,r=this._currentRules(),a=0;a<r.length;a++)if((s=this._input.match(this.rules[r[a]]))&&(!e||s[0].length>e[0].length)){if(e=s,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,r[a])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,d.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,d.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,d.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,d.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,d.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,d.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,d.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,d.K)(function(t,e,s,i){function r(){let s=e.yytext.indexOf("%%");if(0===s)return!1;if(s>0){let i=e.yytext.slice(0,s),r=e.yytext.slice(s);r&&t.lexer.unput(r),e.yytext=i}return!0}switch((0,d.K)(r,"processId"),s){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:case 43:return 51;case 5:case 44:return 52;case 6:case 45:return 53;case 7:case 46:return 54;case 8:case 78:return 5;case 9:case 10:case 11:case 12:case 57:case 63:break;case 13:case 33:return this.pushState("SCALE"),17;case 14:case 34:return 18;case 15:case 21:case 35:case 50:case 54:this.popState();break;case 16:return this.begin("acc_title"),33;case 17:return this.popState(),"acc_title_value";case 18:return this.begin("acc_descr"),35;case 19:return this.popState(),"acc_descr_value";case 20:this.begin("acc_descr_multiline");break;case 22:return"acc_descr_multiline_value";case 23:return this.pushState("CLASSDEF"),41;case 24:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 25:return this.popState(),this.pushState("CLASSDEFID"),42;case 26:return this.popState(),43;case 27:return this.pushState("CLASS"),48;case 28:return this.popState(),this.pushState("CLASS_STYLE"),49;case 29:return this.popState(),50;case 30:return this.pushState("STYLE"),45;case 31:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 32:return this.popState(),47;case 36:this.pushState("STATE");break;case 37:case 40:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),25;case 38:case 41:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),26;case 39:case 42:return this.popState(),e.yytext=e.yytext.slice(0,-10).trim(),27;case 47:this.pushState("STATE_STRING");break;case 48:return this.pushState("STATE_ID"),"AS";case 49:case 65:if(!r())return;return this.popState(),"ID";case 51:return"STATE_DESCR";case 52:throw Error('Error: State name must be a single word. Found: "'+e.yytext.trim()+'"');case 53:return 19;case 55:return this.popState(),this.pushState("struct"),20;case 56:return this.popState(),21;case 58:return this.begin("NOTE"),29;case 59:return this.popState(),this.pushState("NOTE_ID"),59;case 60:return this.popState(),this.pushState("NOTE_ID"),60;case 61:this.popState(),this.pushState("FLOATING_NOTE");break;case 62:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 64:return"NOTE_TEXT";case 66:if(!r())return;return this.popState(),this.pushState("NOTE_TEXT"),24;case 67:return this.popState(),e.yytext=e.yytext.substr(2).trim(),31;case 68:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),31;case 69:case 70:return 6;case 71:return 16;case 72:return 57;case 73:if(!r())return;return 24;case 74:return e.yytext=e.yytext.trim(),14;case 75:return 15;case 76:return 28;case 77:return 58;case 79:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\w+\s+\w+.*?\{)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,56,57,58,72,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[65],inclusive:!1},FLOATING_NOTE:{rules:[62,63,64],inclusive:!1},NOTE_TEXT:{rules:[67,68],inclusive:!1},NOTE_ID:{rules:[66],inclusive:!1},NOTE:{rules:[59,60,61],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54,55],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,55,58,69,70,71,72,73,74,75,77,78,79],inclusive:!0}}},(0,d.K)(N,"Parser"),N.prototype=R,R.Parser=N,new N}();y.parser=y;var g="TB",f="state",m="root",S="relation",k="default",b="divider",T="fill:none",_="fill: #333",E="markdown",x="normal",D="rect",$="rectWithTitle",C="divider",v="roundedWithTitle",w="statediagram",I=`${w}-state`,L="transition",A=`${L} note-edge`,R=`${w}-note`,N=`${w}-cluster`,O=`${w}-cluster-alt`,K="parent",B="note",Y="----",F=`${Y}${B}`,P=`${Y}${K}`,G=new Map,W=0,j=0,M=new Map,z=(0,d.K)((t,e,s,i)=>{if(t===C&&s?.id!==void 0&&M.has(s.id)){let t=M.get(s.id);return M.set(e,t),t}let r=j++,a=i?void 0:r;return M.set(e,a),a},"colorSlotFor");function U(t="",e=0,s="",i=Y){let r=null!==s&&s.length>0?`${i}${s}`:"";return`state-${t}${r}-${e}`}(0,d.K)(U,"stateDomId");var H=(0,d.K)((t,e,s,i,r,a,n,o)=>{h.R.trace("items",e),e.forEach(e=>{switch(e.stmt){case f:case k:Q(t,e,s,i,r,a,n,o);break;case S:{Q(t,e.state1,s,i,r,a,n,o),Q(t,e.state2,s,i,r,a,n,o);let l="neo"===n,h={id:"edge"+W,start:e.state1.id,end:e.state2.id,arrowhead:"normal",arrowTypeEnd:l?"arrow_barb_neo":"arrow_barb",style:T,labelStyle:"",label:c.Y2.sanitizeText(e.description??"",(0,c.D7)()),arrowheadStyle:_,labelpos:"c",labelType:E,thickness:x,classes:L,look:n};r.push(h),W++}}})},"setupDoc"),X=(0,d.K)((t,e=g)=>{let s=e;if(t.doc)for(let e of t.doc)"dir"===e.stmt&&(s=e.value);return s},"getDir");function V(t,e,s){if(!e.id||"</join></fork>"===e.id||"</choice>"===e.id)return;e.cssClasses&&(Array.isArray(e.cssCompiledStyles)||(e.cssCompiledStyles=[]),e.cssClasses.split(" ").forEach(t=>{let i=s.get(t);i&&(e.cssCompiledStyles=[...e.cssCompiledStyles??[],...i.styles])}));let i=t.find(t=>t.id===e.id);i?Object.assign(i,e):t.push(e)}function J(t){return t?.classes?.join(" ")??""}function q(t){return t?.styles??[]}(0,d.K)(V,"insertOrUpdateNode"),(0,d.K)(J,"getClassesFromDbInfo"),(0,d.K)(q,"getStylesFromDbInfo");var Q=(0,d.K)((t,e,s,i,r,a,n,o)=>{let l=e.id,d=s.get(l),u=J(d),p=q(d),y=(0,c.D7)(),g=""!==u.trim()||p.length>0;if(h.R.info("dataFetcher parsedItem",e,d,p),"root"!==l){let s=D;!0===e.start?s="stateStart":!1===e.start&&(s="stateEnd"),e.type!==k&&(s=e.type),G.get(l)||G.set(l,{id:l,shape:s,description:c.Y2.sanitizeText(l,y),cssClasses:`${u} ${I}`,cssStyles:p});let d=G.get(l);e.description&&(Array.isArray(d.description)?(d.shape=$,d.description.push(e.description)):d.description?.length&&d.description.length>0?(d.shape=$,d.description===l?d.description=[e.description]:d.description=[d.description,e.description]):(d.shape=D,d.description=e.description),d.description=c.Y2.sanitizeTextOrArray(d.description,y)),d.description?.length===1&&d.shape===$&&("group"===d.type?d.shape=v:d.shape=D),!d.type&&e.doc&&(h.R.info("Setting cluster for XCX",l,X(e)),d.type="group",d.isGroup=!0,d.dir=X(e),d.shape=e.type===b?C:v,d.colorIndex=z(d.shape,l,t,g),d.cssClasses=`${d.cssClasses} ${N} ${a?O:""}`);let f={labelStyle:"",shape:d.shape,label:d.description,cssClasses:d.cssClasses,cssCompiledStyles:[],cssStyles:d.cssStyles,id:l,dir:d.dir,domId:U(l,W),type:d.type,isGroup:"group"===d.type,colorIndex:d.colorIndex,padding:8,rx:10,ry:10,look:n,labelType:"markdown"};if(f.shape===C&&(f.label=""),t&&"root"!==t.id&&(h.R.trace("Setting node ",l," to be child of its parent ",t.id),f.parentId=t.id),f.centerLabel=!0,e.note){let t={labelStyle:"",shape:"note",label:e.note.text,labelType:"markdown",cssClasses:R,cssStyles:[],cssCompiledStyles:[],id:l+F+"-"+W,domId:U(l,W,B),type:"node",isGroup:!1,padding:y.flowchart?.padding,look:n,position:e.note.position},s=l+P,a={labelStyle:"",shape:"noteGroup",label:e.note.text,cssClasses:d.cssClasses,cssStyles:[],id:l+P,domId:U(l,W,K),type:"group",isGroup:!0,padding:16,look:n,position:e.note.position};W++,a.id=s,t.parentId=s,V(i,a,o),V(i,t,o),V(i,f,o);let c=l,h=t.id;"left of"===e.note.position&&(c=t.id,h=l),r.push({id:c+"-"+h,start:c,end:h,arrowhead:"none",arrowTypeEnd:"",style:T,labelStyle:"",classes:A,pattern:"dashed",arrowheadStyle:_,labelpos:"c",labelType:E,thickness:x,look:n})}else V(i,f,o)}e.doc&&(h.R.trace("Adding nodes children "),H(e,e.doc,s,i,r,!a,n,o))},"dataFetcher"),Z=(0,d.K)(()=>{G.clear(),W=0,j=0,M.clear()},"reset"),tt=(0,d.K)((t,e=g)=>{if(!t.doc)return e;let s=e;for(let e of t.doc)"dir"===e.stmt&&(s=e.value);return s},"getDir"),te=(0,d.K)(function(t,e){return e.db.getClasses()},"getClasses"),ts=(0,d.K)(async function(t,e,s,n){h.R.info("REF0:"),h.R.info("Drawing state diagram (v2)",e);let{securityLevel:o,state:d,layout:u}=(0,c.D7)();n.db.extract(n.db.getRootDocV2());let p=n.db.getData(),y=(0,i.A)(e,o);p.type=n.type,p.layoutAlgorithm=(0,a.q7)(u),p.nodeSpacing=d?.nodeSpacing||50,p.rankSpacing=d?.rankSpacing||50,"neo"===(0,c.D7)().look?p.markers=["barbNeo"]:p.markers=["barb"],p.diagramId=e,await (0,a.XX)(p,y);try{("function"==typeof n.db.getLinks?n.db.getLinks():new Map).forEach((t,e)=>{let s,i="string"==typeof e?e:"string"==typeof e?.id?e.id:"",r=p.nodes.find(t=>t.id===i);if(!i)return void h.R.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(e));let a=y.node()?.querySelectorAll("g.node, g.rough-node");if(a?.forEach(t=>{let e=t.textContent?.trim();(t.id===r?.domId||e===i)&&(s=t)}),!s)return void h.R.warn("⚠️ Could not find node matching text:",i);let n=s.parentNode;if(!n)return void h.R.warn("⚠️ Node has no parent, cannot wrap:",i);let o=document.createElementNS("http://www.w3.org/2000/svg","a"),l=t.url.replace(/^"+|"+$/g,"");if(o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l),o.setAttribute("target","_blank"),t.tooltip){let e=t.tooltip.replace(/^"+|"+$/g,"");o.setAttribute("title",e),s.setAttribute("title",e)}n.replaceChild(o,s),o.appendChild(s),h.R.info("\uD83D\uDD17 Wrapped node in <a> tag for:",i,t.url)})}catch(t){h.R.error("❌ Error injecting clickable links:",t)}l._K.insertTitle(y,"statediagramTitleText",d?.titleTopMargin??25,n.db.getDiagramTitle()),(0,r.P)(y,8,w,d?.useMaxWidth??!0)},"draw"),ti={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","},tr=(0,d.K)(()=>new Map,"newClassesList"),ta=(0,d.K)(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),tn=(0,d.K)(t=>JSON.parse(JSON.stringify(t)),"clone"),to=class{constructor(t){this.version=t,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=tr(),this.documents={root:ta()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.funs=[],this.getAccTitle=c.iN,this.setAccTitle=c.SV,this.getAccDescription=c.m7,this.setAccDescription=c.EI,this.setDiagramTitle=c.ke,this.getDiagramTitle=c.ab,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this),this.bindFunctions=this.bindFunctions.bind(this)}static{(0,d.K)(this,"StateDB")}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(t){for(let e of(this.clear(!0),Array.isArray(t)?t:t.doc))switch(e.stmt){case f:this.addState(e.id.trim(),e.type,e.doc,e.description,e.note);break;case S:this.addRelation(e.state1,e.state2,e.description);break;case"classDef":this.addStyleClass(e.id.trim(),e.classes);break;case"style":this.handleStyleDef(e);break;case"applyClass":this.setCssClass(e.id.trim(),e.styleClass);break;case"click":this.addLink(e.id,e.url,e.tooltip)}let e=this.getStates(),s=(0,c.D7)();for(let t of(Z(),Q(void 0,this.getRootDocV2(),e,this.nodes,this.edges,!0,s.look,this.classes),this.nodes))if(Array.isArray(t.label)){if(t.description=t.label.slice(1),t.isGroup&&t.description.length>0)throw Error(`Group nodes can only have label. Remove the additional description for node [${t.id}]`);t.label=t.label[0]}}handleStyleDef(t){let e=t.id.trim().split(","),s=t.styleClass.split(",");for(let t of e){let e=this.getState(t);if(!e){let s=t.trim();this.addState(s),e=this.getState(s)}e&&(e.styles=s.map(t=>t.replace(/;/g,"")?.trim()))}}setRootDoc(t){h.R.info("Setting root doc",t),this.rootDoc=t,1===this.version?this.extract(t):this.extract(this.getRootDocV2())}docTranslator(t,e,s){if(e.stmt===S){this.docTranslator(t,e.state1,!0),this.docTranslator(t,e.state2,!1);return}if(e.stmt===f&&(e.id===ti.START_NODE?(e.id=t.id+(s?"_start":"_end"),e.start=s):e.id=e.id.trim()),e.stmt!==m&&e.stmt!==f||!e.doc)return;let i=[],r=[];for(let t of e.doc)if(t.type===b){let e=tn(t);e.doc=tn(r),i.push(e),r=[]}else r.push(t);if(i.length>0&&r.length>0){let t={stmt:f,id:(0,l.$C)(),type:"divider",doc:tn(r)};i.push(tn(t)),e.doc=i}e.doc.forEach(t=>this.docTranslator(e,t,!0))}getRootDocV2(){return this.docTranslator({id:m,stmt:m},{id:m,stmt:m,doc:this.rootDoc},!0),{id:m,doc:this.rootDoc}}addState(t,e=k,s,i,r,a,n,o){let l=t?.trim();if(this.currentDocument.states.has(l)){let t=this.currentDocument.states.get(l);if(!t)throw Error(`State not found: ${l}`);t.doc||(t.doc=s),t.type||(t.type=e)}else h.R.info("Adding state ",l,i),this.currentDocument.states.set(l,{stmt:f,id:l,descriptions:[],type:e,doc:s,note:r,classes:[],styles:[],textStyles:[]});if(i&&(h.R.info("Setting state description",l,i),(Array.isArray(i)?i:[i]).forEach(t=>this.addDescription(l,t.trim()))),r){let t=this.currentDocument.states.get(l);if(!t)throw Error(`State not found: ${l}`);t.note=r,t.note.text=c.Y2.sanitizeText(t.note.text,(0,c.D7)())}a&&(h.R.info("Setting state classes",l,a),(Array.isArray(a)?a:[a]).forEach(t=>this.setCssClass(l,t.trim()))),n&&(h.R.info("Setting state styles",l,n),(Array.isArray(n)?n:[n]).forEach(t=>this.setStyle(l,t.trim()))),o&&(h.R.info("Setting state styles",l,n),(Array.isArray(o)?o:[o]).forEach(t=>this.setTextStyle(l,t.trim())))}clear(t){this.nodes=[],this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.documents={root:ta()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=tr(),t||(this.links=new Map,(0,c.IU)())}getState(t){return this.currentDocument.states.get(t)}getStates(){return this.currentDocument.states}logDocuments(){h.R.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(t,e,s){this.links.set(t,{url:e,tooltip:s}),h.R.warn("Adding link",t,e,s)}getLinks(){return this.links}startIdIfNeeded(t=""){return t===ti.START_NODE?(this.startEndCount++,`${ti.START_TYPE}${this.startEndCount}`):t}startTypeIfNeeded(t="",e=k){return t===ti.START_NODE?ti.START_TYPE:e}endIdIfNeeded(t=""){return t===ti.END_NODE?(this.startEndCount++,`${ti.END_TYPE}${this.startEndCount}`):t}endTypeIfNeeded(t="",e=k){return t===ti.END_NODE?ti.END_TYPE:e}addRelationObjs(t,e,s=""){let i=this.startIdIfNeeded(t.id.trim()),r=this.startTypeIfNeeded(t.id.trim(),t.type),a=this.startIdIfNeeded(e.id.trim()),n=this.startTypeIfNeeded(e.id.trim(),e.type);this.addState(i,r,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.addState(a,n,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.currentDocument.relations.push({id1:i,id2:a,relationTitle:c.Y2.sanitizeText(s,(0,c.D7)())})}addRelation(t,e,s){if("object"==typeof t&&"object"==typeof e)this.addRelationObjs(t,e,s);else if("string"==typeof t&&"string"==typeof e){let i=this.startIdIfNeeded(t.trim()),r=this.startTypeIfNeeded(t),a=this.endIdIfNeeded(e.trim()),n=this.endTypeIfNeeded(e);this.addState(i,r),this.addState(a,n),this.currentDocument.relations.push({id1:i,id2:a,relationTitle:s?c.Y2.sanitizeText(s,(0,c.D7)()):void 0})}}addDescription(t,e){let s=this.currentDocument.states.get(t),i=e.startsWith(":")?e.replace(":","").trim():e;s?.descriptions?.push(c.Y2.sanitizeText(i,(0,c.D7)()))}cleanupLabel(t){return t.startsWith(":")?t.slice(2).trim():t.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(t,e=""){this.classes.has(t)||this.classes.set(t,{id:t,styles:[],textStyles:[]});let s=this.classes.get(t);e&&s&&e.split(ti.STYLECLASS_SEP).forEach(t=>{let e=t.replace(/([^;]*);/,"$1").trim();if(RegExp(ti.COLOR_KEYWORD).exec(t)){let t=e.replace(ti.FILL_KEYWORD,ti.BG_FILL).replace(ti.COLOR_KEYWORD,ti.FILL_KEYWORD);s.textStyles.push(t)}s.styles.push(e)})}getClasses(){return this.classes}setupToolTips(t){let e=(0,n.Ck)();(0,u.Ltv)(t).select("svg").selectAll("g.node, g.rough-node").on("mouseover",t=>{let s=(0,u.Ltv)(t.currentTarget),i=s.attr("title");if(null===i)return;let r=t.currentTarget?.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.style("left",window.scrollX+r.left+(r.right-r.left)/2+"px").style("top",window.scrollY+r.bottom+"px"),e.html(p.A.sanitize(i)),s.classed("hover",!0)}).on("mouseout",t=>{e.transition().duration(500).style("opacity",0),(0,u.Ltv)(t.currentTarget).classed("hover",!1)})}setCssClass(t,e){t.split(",").forEach(t=>{let s=this.getState(t);if(!s){let e=t.trim();this.addState(e),s=this.getState(e)}s?.classes?.push(e)})}setStyle(t,e){this.getState(t)?.styles?.push(e)}setTextStyle(t,e){this.getState(t)?.textStyles?.push(e)}bindFunctions(t){this.funs.forEach(e=>{e(t)})}getDirectionStatement(){return this.rootDoc.find(t=>"dir"===t.stmt)}getDirection(){return this.getDirectionStatement()?.value??"TB"}setDirection(t){let e=this.getDirectionStatement();e?e.value=t:this.rootDoc.unshift({stmt:"dir",value:t})}trimColon(t){return t.startsWith(":")?t.slice(1).trim():t.trim()}getData(){let t=(0,c.D7)();for(let e of this.nodes)e.wrappingWidth??=t.state?.wrappingWidth,e.isGroup||(e.minWidth??=t.state?.minNodeWidth);return{nodes:this.nodes,edges:this.edges,other:{},config:t,direction:tt(this.getRootDocV2())}}getConfig(){return(0,c.D7)().state}},tl=(0,d.K)(t=>{let{theme:e,bkgColorArray:s,borderColorArray:i}=t;if(!(0,o.P1)(e,i))return"";let r=(0,o.rq)(t.look),a=(0,o.Ic)(s),n="";for(let t=0;t<(0,o.Hu)(i);t++){let e=i[t],o=a?`fill: ${s[t%s.length]};`:"",l=`[data-look="${r}"][data-color-id="color-${t}"]`;n+=`
2
+
3
+ /* The title strip: \`rect.outer\` spans the whole composite and \`rect.inner\` covers
4
+ the body, so what stays visible of \`outer\` is the band behind the label. */
5
+ ${l}.statediagram-cluster rect.outer {
6
+ stroke: ${e};
7
+ ${o}
8
+ }
9
+
10
+ ${l}.statediagram-cluster rect.inner {
11
+ stroke: ${e};
12
+ }
13
+
14
+ /* Concurrency regions. Siblings of one composite share a slot, so a divided composite
15
+ reads as one thing split into parts rather than as several composites. */
16
+ ${l}.statediagram-cluster rect.divider {
17
+ stroke: ${e};
18
+ ${o}
19
+ }
20
+
21
+ /* handDrawn draws the same container as roughjs shapes rather than plain rects, so it
22
+ needs its own rules. \`roundedWithTitle\` and \`divider\` name those groups \`outer\`,
23
+ \`inner\` and \`divider\` to match the classic branch, which is what lets these
24
+ discriminate -- a bare \`.statediagram-cluster path\` rule reached the body as well and
25
+ tinted the whole composite, losing \`compositeBackground\` and diverging from what
26
+ classic and neo do.
27
+
28
+ roughjs emits two paths per shape and marks them: the filled shape carries
29
+ \`stroke="none"\` and the sketched outline carries \`fill="none"\`. Splitting on that is
30
+ what keeps \`fill\` off the outline -- a rough outline is open squiggles, not a closed
31
+ region, so filling it produces smears -- and keeps \`stroke\` off the fill shape, which
32
+ would otherwise gain an edge it was drawn without. */
33
+ ${l}.statediagram-cluster .outer path[stroke='none'] {
34
+ ${o}
35
+ }
36
+
37
+ ${l}.statediagram-cluster .outer path[fill='none'] {
38
+ stroke: ${e};
39
+ }
40
+
41
+ /* No \`.inner\` rule on purpose. The body shape is left entirely alone under handDrawn,
42
+ where a rect's \`inner\` counterpart cannot be recoloured safely: roughjs draws a
43
+ hachure fill as *stroked* lines, so its fill paths carry \`fill="none"\` exactly like
44
+ the outline and no selector separates them. An \`.inner\` stroke rule therefore
45
+ repainted the hatching of every alt composite in the palette colour instead of
46
+ leaving it on \`altBackground\`. The container still reads as palette-coloured: the
47
+ \`outer\` shape spans the whole composite, so its outline already frames the body. */
48
+
49
+ /* Regions split the same way, which is why \`divider\` fills solid rather than taking
50
+ roughjs's default hachure -- see the note on that call. Hatched, both of its paths
51
+ carried \`fill="none"\` and these two rules degenerated: the tint matched nothing and
52
+ the border rule repainted the hatching. */
53
+ ${l}.statediagram-cluster .divider path[stroke='none'] {
54
+ ${o}
55
+ }
56
+
57
+ ${l}.statediagram-cluster .divider path[fill='none'] {
58
+ stroke: ${e};
59
+ }
60
+ `}return n},"genColor"),tc={parser:y,get db(){return new to(2)},renderer:{getClasses:te,draw:ts,getDir:tt},styles:(0,d.K)(t=>`
61
+ ${tl(t)}
62
+ defs [id$="-barbEnd"] {
63
+ fill: ${t.transitionColor};
64
+ stroke: ${t.transitionColor};
65
+ }
66
+ g.stateGroup text {
67
+ fill: ${t.nodeBorder};
68
+ stroke: none;
69
+ font-size: 10px;
70
+ }
71
+ g.stateGroup text {
72
+ fill: ${t.textColor};
73
+ stroke: none;
74
+ font-size: 10px;
75
+
76
+ }
77
+ g.stateGroup .state-title {
78
+ font-weight: bolder;
79
+ fill: ${t.stateLabelColor};
80
+ }
81
+
82
+ g.stateGroup rect {
83
+ fill: ${t.mainBkg};
84
+ stroke: ${t.nodeBorder};
85
+ }
86
+
87
+ g.stateGroup line {
88
+ stroke: ${t.lineColor};
89
+ stroke-width: ${t.strokeWidth||1};
90
+ }
91
+
92
+ .transition {
93
+ stroke: ${t.transitionColor};
94
+ stroke-width: ${t.strokeWidth||1};
95
+ fill: none;
96
+ }
97
+
98
+ .stateGroup .composit {
99
+ fill: ${t.background};
100
+ border-bottom: 1px
101
+ }
102
+
103
+ .stateGroup .alt-composit {
104
+ fill: #e0e0e0;
105
+ border-bottom: 1px
106
+ }
107
+
108
+ .state-note {
109
+ stroke: ${t.noteBorderColor};
110
+ fill: ${t.noteBkgColor};
111
+
112
+ text {
113
+ fill: ${t.noteTextColor};
114
+ stroke: none;
115
+ font-size: 10px;
116
+ }
117
+ }
118
+
119
+ .stateLabel .box {
120
+ stroke: none;
121
+ stroke-width: 0;
122
+ fill: ${t.mainBkg};
123
+ opacity: 0.5;
124
+ }
125
+
126
+ .edgeLabel .label rect {
127
+ fill: ${t.labelBackgroundColor};
128
+ opacity: 0.5;
129
+ }
130
+ .edgeLabel {
131
+ background-color: ${t.edgeLabelBackground};
132
+ p {
133
+ background-color: ${t.edgeLabelBackground};
134
+ }
135
+ rect {
136
+ opacity: 0.5;
137
+ background-color: ${t.edgeLabelBackground};
138
+ fill: ${t.edgeLabelBackground};
139
+ }
140
+ text-align: center;
141
+ }
142
+ .edgeLabel .label text {
143
+ fill: ${t.transitionLabelColor||t.tertiaryTextColor};
144
+ }
145
+ .label div .edgeLabel {
146
+ color: ${t.transitionLabelColor||t.tertiaryTextColor};
147
+ }
148
+
149
+ .stateLabel text {
150
+ fill: ${t.stateLabelColor};
151
+ font-size: 10px;
152
+ font-weight: bold;
153
+ }
154
+
155
+ .node circle.state-start {
156
+ fill: ${t.specialStateColor};
157
+ stroke: ${t.specialStateColor};
158
+ }
159
+
160
+ .node .fork-join {
161
+ fill: ${t.specialStateColor};
162
+ stroke: ${t.specialStateColor};
163
+ }
164
+
165
+ .node circle.state-end {
166
+ fill: ${t.innerEndBackground};
167
+ stroke: ${t.background};
168
+ stroke-width: 1.5
169
+ }
170
+ .end-state-inner {
171
+ fill: ${t.compositeBackground||t.background};
172
+ // stroke: ${t.background};
173
+ stroke-width: 1.5
174
+ }
175
+
176
+ .node rect {
177
+ fill: ${t.stateBkg||t.mainBkg};
178
+ stroke: ${t.stateBorder||t.nodeBorder};
179
+ stroke-width: ${t.strokeWidth||1}px;
180
+ }
181
+ .node polygon {
182
+ fill: ${t.mainBkg};
183
+ stroke: ${t.stateBorder||t.nodeBorder};;
184
+ stroke-width: ${t.strokeWidth||1}px;
185
+ }
186
+ [id$="-barbEnd"] {
187
+ fill: ${t.lineColor};
188
+ }
189
+
190
+ .statediagram-cluster rect {
191
+ fill: ${t.compositeTitleBackground};
192
+ stroke: ${t.stateBorder||t.nodeBorder};
193
+ stroke-width: ${t.strokeWidth||1}px;
194
+ }
195
+
196
+ .cluster-label, .nodeLabel {
197
+ color: ${t.stateLabelColor};
198
+ // line-height: 1;
199
+ }
200
+
201
+ .statediagram-cluster rect.outer {
202
+ rx: 5px;
203
+ ry: 5px;
204
+ }
205
+ .statediagram-state .divider {
206
+ stroke: ${t.stateBorder||t.nodeBorder};
207
+ }
208
+
209
+ .statediagram-state .title-state {
210
+ rx: 5px;
211
+ ry: 5px;
212
+ }
213
+ .statediagram-cluster.statediagram-cluster .inner {
214
+ fill: ${t.compositeBackground||t.background};
215
+ }
216
+ .statediagram-cluster.statediagram-cluster-alt .inner {
217
+ fill: ${t.altBackground?t.altBackground:"#efefef"};
218
+ }
219
+
220
+ .statediagram-cluster .inner {
221
+ rx:0;
222
+ ry:0;
223
+ }
224
+
225
+ .statediagram-state rect.basic {
226
+ rx: 5px;
227
+ ry: 5px;
228
+ }
229
+ .statediagram-state rect.divider {
230
+ stroke-dasharray: 10,10;
231
+ fill: ${t.altBackground?t.altBackground:"#efefef"};
232
+ }
233
+
234
+ .note-edge {
235
+ stroke-dasharray: 5;
236
+ }
237
+
238
+ .statediagram-note rect {
239
+ fill: ${t.noteBkgColor};
240
+ stroke: ${t.noteBorderColor};
241
+ stroke-width: 1px;
242
+ rx: 0;
243
+ ry: 0;
244
+ }
245
+ .statediagram-note rect {
246
+ fill: ${t.noteBkgColor};
247
+ stroke: ${t.noteBorderColor};
248
+ stroke-width: 1px;
249
+ rx: 0;
250
+ ry: 0;
251
+ }
252
+
253
+ .statediagram-note text {
254
+ fill: ${t.noteTextColor};
255
+ }
256
+
257
+ .statediagram-note .nodeLabel {
258
+ color: ${t.noteTextColor};
259
+ }
260
+ .statediagram .edgeLabel {
261
+ color: red; // ${t.noteTextColor};
262
+ }
263
+
264
+ [id$="-dependencyStart"], [id$="-dependencyEnd"] {
265
+ fill: ${t.lineColor};
266
+ stroke: ${t.lineColor};
267
+ stroke-width: ${t.strokeWidth||1};
268
+ }
269
+
270
+ .statediagramTitleText {
271
+ text-anchor: middle;
272
+ font-size: 18px;
273
+ fill: ${t.textColor};
274
+ }
275
+
276
+ [data-look="neo"].statediagram-cluster rect {
277
+ fill: ${t.mainBkg};
278
+ stroke: ${t.useGradient?"url("+t.svgId+"-gradient)":t.stateBorder||t.nodeBorder};
279
+ stroke-width: ${t.strokeWidth??1};
280
+ }
281
+ [data-look="neo"].statediagram-cluster rect.outer {
282
+ rx: ${t.radius}px;
283
+ ry: ${t.radius}px;
284
+ filter: ${t.dropShadow?t.dropShadow.replace("url(#drop-shadow)",`url(${t.svgId}-drop-shadow)`):"none"}
285
+ }
286
+ `,"getStyles"),init:(0,d.K)(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")}},60643:(t,e,s)=>{s.d(e,{P:()=>n});var i=s(8212),r=s(45026),a=s(42804),n=(0,a.K)((t,e,s,a)=>{t.attr("class",s);let{width:n,height:c,x:h,y:d}=o(t,e);(0,i.a$)(t,c,n,a);let u=l(h,d,n,c,e);t.attr("viewBox",u),r.R.debug(`viewBox configured: ${u} with padding: ${e}`)},"setupViewPortForSVG"),o=(0,a.K)((t,e)=>{let s=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:s.width+2*e,height:s.height+2*e,x:s.x,y:s.y}},"calculateDimensionsWithPadding"),l=(0,a.K)((t,e,s,i,r)=>`${t-r} ${e-r} ${s} ${i}`,"createViewBox")},84599:(t,e,s)=>{s.d(e,{CP:()=>d,Ck:()=>y,HT:()=>p,PB:()=>u,aC:()=>h,lC:()=>l,m:()=>c,tk:()=>o});var i=s(8212),r=s(42804),a=s(76614),n=s(14097),o=(0,r.K)((t,e)=>{let s=t.append("rect");if(s.attr("x",e.x),s.attr("y",e.y),s.attr("fill",e.fill),s.attr("stroke",e.stroke),s.attr("width",e.width),s.attr("height",e.height),e.name&&s.attr("name",e.name),e.rx&&s.attr("rx",e.rx),e.ry&&s.attr("ry",e.ry),void 0!==e.attrs)for(let t in e.attrs)s.attr(t,e.attrs[t]);return e.class&&s.attr("class",e.class),s},"drawRect"),l=(0,r.K)((t,e)=>{o(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"}).lower()},"drawBackgroundRect"),c=(0,r.K)((t,e)=>{let s=e.text.replace(i.H1," "),r=t.append("text");r.attr("x",e.x),r.attr("y",e.y),r.attr("class","legend"),r.style("text-anchor",e.anchor),e.class&&r.attr("class",e.class);let a=r.append("tspan");return a.attr("x",e.x+2*e.textMargin),a.text(s),r},"drawText"),h=(0,r.K)((t,e,s,i)=>{let r=t.append("image");r.attr("x",e),r.attr("y",s);let n=(0,a.J)(i);r.attr("xlink:href",n)},"drawImage"),d=(0,r.K)((t,e,s,i)=>{let r=t.append("use");r.attr("x",e),r.attr("y",s);let n=(0,a.J)(i);r.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),u=(0,r.K)(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),p=(0,r.K)(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),y=(0,r.K)(()=>{let t=(0,n.Ltv)(".mermaidTooltip");return t.empty()&&(t=(0,n.Ltv)("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),t},"createTooltip")}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5765],{65765:(e,t,n)=>{n.d(t,{B:()=>c,OS:()=>k,QV:()=>_,dc:()=>N,ju:()=>b,sc:()=>P,sv:()=>h,xY:()=>X});var r=n(39402),a=n(67275),i=n(89205),d=n(37955),o=n(70796),s=n(8212),l=n(45026),g=n(42804),u=n(5230);function c(e,{edgePathsClass:t="edges edgePaths"}={}){let n=e.insert("g").attr("class","root"),r=n.insert("g").attr("class","clusters"),a=n.insert("g").attr("class",t);return{clusters:r,edgePaths:a,edgeLabels:n.insert("g").attr("class","edgeLabels"),nodes:n.insert("g").attr("class","nodes"),rootGroups:n}}async function f(e,t,n){if(t.label){let{shapeSvg:r,bbox:a}=await (0,d.Zk)(e,void 0===n?t:{...t,width:n});t.labelBBox={width:a.width,height:a.height},r.remove()}else t.labelBBox={width:0,height:0}}async function h(e,t,n){let r=await (0,i.on)(e,t,n),a=r.node()?.getBBox()??{width:0,height:0};return t.width=a.width,t.height=a.height,r}function p(e,t,n){let r=e,a=new Set;for(;r;){if(r.dir)return r.dir;if(!r.parentId||a.has(r.parentId))break;a.add(r.parentId),r=t.get(r.parentId)}return n}async function w(e,t,r={}){let i=new u.T({multigraph:!0,compound:!0}),d=[...t.edges],o=(0,s.D7)(),l=c(e),{edgeLabels:g,nodes:b}=l,R=new Map,m=new Map(t.nodes.map(e=>[e.id,e])),v=t.direction,y=null!=e.node();for(let e of(await Promise.all(t.nodes.map(async e=>{if(e.isGroup){if(y){let t=r.unwrapGroupLabels&&"markdown"!==e.labelType;await f(b,e,t?1/0:void 0)}i.setNode(e.id,{...e})}else{if(y){let t=await h(b,e,{config:o,dir:p(e,m,v)});R.set(e.id,t)}i.setNode(e.id,{...e})}})),d))y&&(0,a.a6)(e)&&await (0,a.jP)(g,e),i.setEdge(e.start,e.end,{...e},e.id),t.edges.some(t=>t.id===e.id)||t.edges.push(e);if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:r}=await n.e(162).then(n.bind(n,90162));r(e,t)}return{graph:i,groups:l,nodeElements:R}}(0,g.K)(c,"createLayoutElementGroups"),(0,g.K)(f,"measureGroupLabel"),(0,g.K)(h,"insertMeasuredNode"),(0,g.K)(p,"resolveNodeDir"),(0,g.K)(w,"createGraphWithElements");var b=new Map,R=new Map,m=new Map,v=(0,g.K)(()=>{R.clear(),m.clear(),b.clear()},"clear"),y=(0,g.K)((e,t)=>{let n=R.get(t)||[];return l.R.trace("In isDescendant",t," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),C=(0,g.K)((e,t)=>{let n=R.get(t)||[];return l.R.info("Descendants of ",t," is ",n),l.R.info("Edge is ",e),e.v!==t&&e.w!==t&&(n?n.includes(e.v)||y(e.v,t)||y(e.w,t)||n.includes(e.w):(l.R.debug("Tilt, ",t,",not in descendants"),!1))},"edgeInCluster"),K=(0,g.K)((e,t,n,r)=>{l.R.debug("Copying children of ",e,"root",r,"data",t.node(e),r);let a=t.children(e)||[];e!==r&&a.push(e),l.R.debug("Copying (nodes) clusterId",e,"nodes",a),a.forEach(a=>{if(t.children(a).length>0)K(a,t,n,r);else{let i=t.node(a);l.R.info("cp ",a," to ",r," with parent ",e),n.setNode(a,i),r!==t.parent(a)&&(l.R.debug("Setting parent",a,t.parent(a)),n.setParent(a,t.parent(a))),e!==r&&a!==e?(l.R.debug("Setting parent",a,e),n.setParent(a,e)):(l.R.info("In copy ",e,"root",r,"data",t.node(e),r),l.R.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==r,"node!==clusterId",a!==e));let d=t.edges(a);l.R.debug("Copying Edges",d),d.forEach(a=>{l.R.info("Edge",a);let i=t.edge(a.v,a.w,a.name);l.R.info("Edge data",i,r);try{C(a,r)?(l.R.info("Copying as ",a.v,a.w,i,a.name),n.setEdge(a.v,a.w,i,a.name),l.R.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):l.R.info("Skipping copy of edge ",a.v,"--\x3e",a.w," rootId: ",r," clusterId:",e)}catch(e){l.R.error(e)}})}l.R.debug("Removing node",a),t.removeNode(a)})},"copy"),E=(0,g.K)((e,t)=>{let n=t.children(e),r=[...n];for(let a of n)m.set(a,e),r=[...r,...E(a,t)];return r},"extractDescendants"),L=(0,g.K)((e,t,n)=>{let r=e.edges().filter(e=>e.v===t||e.w===t),a=e.edges().filter(e=>e.v===n||e.w===n),i=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),d=a.map(e=>({v:e.v,w:e.w}));return i.filter(e=>d.some(t=>e.v===t.v&&e.w===t.w))},"findCommonEdges"),N=(0,g.K)((e,t,n)=>{let r,a=t.children(e);if(l.R.trace("Searching children of id ",e,a),a.length<1)return e;for(let e of a){let a=N(e,t,n),i=L(t,n,a);if(a)if(!(i.length>0))return a;else r=a}return r},"findNonClusterChild"),x=(0,g.K)(e=>b.has(e)&&b.get(e).externalConnections&&b.has(e)?b.get(e).id:e,"getAnchorId"),k=(0,g.K)((e,t)=>{if(!e||t>10)return void l.R.debug("Opting out, no graph ");for(let t of(l.R.debug("Opting in, graph "),e.nodes().forEach(function(t){e.children(t).length>0&&(l.R.debug("Cluster identified",t," Replacement id in edges: ",N(t,e,t)),R.set(t,E(t,e)),b.set(t,{id:N(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){let n=e.children(t),r=e.edges();n.length>0?(l.R.debug("Cluster identified",t,R),r.forEach(e=>{y(e.v,t)^y(e.w,t)&&(l.R.debug("Edge: ",e," leaves cluster ",t),l.R.debug("Descendants of XXX ",t,": ",R.get(t)),b.get(t).externalConnections=!0)})):l.R.debug("Not a cluster ",t,R)}),b.keys())){let n=b.get(t).id,r=e.parent(n);r!==t&&b.has(r)&&!b.get(r).externalConnections&&(b.get(t).id=r);let a=e.edges().some(e=>e.v===t);if(n&&b.get(t)?.externalConnections&&a&&S(e,n,t)){let r=T(e,t,e.parent(n));r&&(b.get(t).id=r)}}e.edges().forEach(function(t){let n=e.edge(t);l.R.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),l.R.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let r=t.v,a=t.w;if(l.R.debug("Fix XXX",b,"ids:",t.v,t.w,"Translating: ",b.get(t.v)," --- ",b.get(t.w)),b.get(t.v)||b.get(t.w)){if(l.R.debug("Fixing and trying - removing XXX",t.v,t.w,t.name),r=x(t.v),a=x(t.w),e.removeEdge(t.v,t.w,t.name),r!==t.v){let a=e.parent(r);b.get(a).externalConnections=!0,n.fromCluster=t.v}if(a!==t.w){let r=e.parent(a);b.get(r).externalConnections=!0,n.toCluster=t.w}l.R.debug("Fix Replacing with XXX",r,a,t.name),e.setEdge(r,a,n,t.name)}}),I(e,0),l.R.trace(b)},"adjustClustersAndEdges"),I=(0,g.K)((e,t)=>{if(t>10)return void l.R.error("Bailing out");let n=e.nodes(),r=!1;for(let t of n){let n=e.children(t);r=r||n.length>0}if(!r)return void l.R.debug("Done, no node has children",e.nodes());for(let r of(l.R.debug("Nodes = ",n,t),n))if(l.R.debug("Extracting node",r,b,b.has(r)&&!b.get(r).externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",t),b.has(r))if(!b.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){l.R.debug("Cluster without external connections, without a parent and with children",r,t);let n="TB"===e.graph().rankdir?"LR":"TB";b.get(r)?.clusterData?.dir&&(n=b.get(r).clusterData.dir,l.R.debug("Fixing dir",b.get(r).clusterData.dir,n));let a=new u.T({multigraph:!0,compound:!0}).setGraph({rankdir:n,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});K(r,e,a,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:b.get(r).clusterData,label:b.get(r).label,graph:a})}else l.R.debug("Cluster ** ",r," **not meeting the criteria !externalConnections:",!b.get(r).externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),t),l.R.debug(b);else l.R.debug("Not a cluster",r,t);for(let r of(n=e.nodes(),l.R.debug("New list of nodes",n),n)){let n=e.node(r);l.R.debug(" Now next level",r,n),n?.clusterNode&&I(n.graph,t+1)}},"extractor"),D=(0,g.K)((e,t)=>{if(0===t.length)return[];let n=Object.assign([],t);return t.forEach(t=>{let r=e.children(t),a=D(e,r);n=[...n,...a]}),n},"sorter"),P=(0,g.K)(e=>D(e,e.children()),"sortNodesByHierarchy"),S=(0,g.K)((e,t,n)=>{let r=e.parent(t);for(;r&&r!==n;){let t=b.get(r);if(t&&!t.externalConnections)return!0;r=e.parent(r)}return!1},"isNodeInExtractableCluster"),T=(0,g.K)((e,t,n)=>{for(let r of e.children(t)??[]){if(r===n||y(r,n))continue;let a=N(r,e,t);if(a&&!S(e,a,t))return a}return null},"findSafeAnchorNode");function X({prepareLayout:e,measureLayout:t,runLayoutCore:n,paintLayout:r,afterPaint:i,paintOptions:d}){let o=t??_;return(0,g.K)(async function(t,s,l,g){let u=s.select("g");(l?.insertMarkers??a.g0)(u,t.markers,t.type,t.diagramId),B();let c={element:u,helpers:l,options:g};c.preparedLayout=await e?.(t,c);let f=await o(t,c),h=await n(t,c),p={...c,measure:f};r?await r(t,p,h):await M(t,p,d),await i?.(t,p,h)},"render")}function B(){(0,i.IU)(),(0,a.IU)(),(0,r.IU)(),v()}async function _(e,{element:t},n){return await w(t,e,n)}async function M(e,t,n={}){let{measure:r}=t,{groups:a}=r;for(let r of n.getNodes?.(e,t)??e.nodes)n.skipNode?.(r,t)||await G(a,r,t,n);let i=U(e.nodes);for(let r of e.edges)j(r,n)||await A(a,r,i,e,n,t)}async function G(e,t,n,a){t.clusterNode?(0,i.U_)(t):O(t,n,a)?await (0,r.U)(e.clusters,t):(0,i.U_)(t)}function O(e,t,n){return!0===e.isGroup&&(n.isCluster?.(e,t)??!0)}function U(e){let t=new Map;for(let n of e)n?.id&&t.set(n.id,n);return t}function j(e,t){return e.isLayoutOnly||!!t.skipEdge?.(e)}async function A(e,t,n,r,i,d){let o=(0,a.Jo)(e.edgePaths,{...t},i.clusterDb??new Map,r.type,F(t.start,t,n,d,i),F(t.end,t,n,d,i),r.diagramId,$(t,i));(0,a.a6)(t)&&(a.lP.has(t.id)||await (0,a.jP)(e.edgeLabels,t),J(t,o))}function F(e,t,n,r,a){return a.getEdgeNode?.(e,t,r)??(e?n.get(e)??{}:{})}function $(e,t){return"function"==typeof t.skipIntersect?t.skipIntersect(e):t.skipIntersect??!1}function J(e,t){let n=t?.updatedPath??t?.originalPath,r=(0,s.zj)(),{subGraphTitleTotalMargin:d}=(0,i.Oi)({flowchart:r.flowchart??{}});if(e.label){let n=a.lP.get(e.id),{x:r,y:i}=(0,a.Pk)(e,t);n.attr("transform",`translate(${r}, ${i+d/2})`)}for(let[t,r]of[["startLeft",e.startLabelLeft],["startRight",e.startLabelRight],["endLeft",e.endLabelLeft],["endRight",e.endLabelRight]])if(r){let{x:r,y:i}=Q(e,t,n);a.UQ.get(e.id)[t].attr("transform",`translate(${r}, ${i})`)}}(0,g.K)(X,"createCommonLayoutRenderer"),(0,g.K)(B,"clearLayoutRenderState"),(0,g.K)(_,"defaultMeasureLayout"),(0,g.K)(M,"paintLayoutData"),(0,g.K)(G,"paintLayoutNode"),(0,g.K)(O,"shouldPaintAsCluster"),(0,g.K)(U,"buildNodeLookup"),(0,g.K)(j,"shouldSkipPaintEdge"),(0,g.K)(A,"paintLayoutEdge"),(0,g.K)(F,"getRenderedNode"),(0,g.K)($,"shouldSkipIntersect"),(0,g.K)(J,"positionRenderedEdgeLabel");var z={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function Q(e,t,n){let r=e.terminalLabelCenters?.[t];if(r)return{...r};if(!n)return{x:e.x,y:e.y};let a=t.startsWith("start")?e.arrowTypeStart:e.arrowTypeEnd;return o._K.calcTerminalLabelPosition(10*!!a,z[t],n)}(0,g.K)(Q,"terminalLabelTranslate")}}]);
@@ -0,0 +1,8 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[587],{587:(e,t,r)=>{r.d(t,{diagram:()=>l});var s=r(99531);r(47965),r(4168),r(60643),r(55478),r(49897),r(87964),r(84599),r(39402),r(67275),r(89205),r(37955),r(42328),r(31209),r(71501),r(71194),r(70796),r(8212),r(45026);var a=(0,r(42804).K)(e=>`${(0,s.tM)(e)}
2
+ .swimlane.cluster:not([data-color-id]) rect {
3
+ stroke: ${e.clusterBorder} !important;
4
+ }
5
+ [data-look="neo"].cluster rect {
6
+ filter: none;
7
+ }
8
+ `,"getStyles"),l=(0,s.ur)({styles:a})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5951],{25074:(e,r,n)=>{n.d(r,{BX:()=>o});let t=new Map;function o(e,r){var n,o;let l=t.get(e);if(!l){let o;try{o=new EventSource(e)}catch(e){return null==(n=r.onConstructError)||n.call(r,e),()=>{}}let u={source:o,subscribers:new Set};o.onmessage=e=>{var r,n;for(let t of[...u.subscribers])null==(r=(n=t.handlers).onMessage)||r.call(n,e)},o.onerror=e=>{var r,n;for(let t of[...u.subscribers])null==(r=(n=t.handlers).onError)||r.call(n,e)},t.set(e,u),l=u}let u=l,i=[];for(let[e,n]of Object.entries(null!=(o=r.events)?o:{})){let r=e=>{n(e)};u.source.addEventListener(e,r),i.push([e,r])}let a={handlers:r};u.subscribers.add(a);let s=!1;return()=>{if(!s){for(let[e,r]of(s=!0,i))try{u.source.removeEventListener(e,r)}catch(e){}if(u.subscribers.delete(a),0===u.subscribers.size){try{u.source.close()}catch(e){}t.get(e)===u&&t.delete(e)}}}}},25951:(e,r,n)=>{n.d(r,{Ck:()=>E,Ux:()=>h,XL:()=>k,Yk:()=>A,b_:()=>F,hM:()=>p,j3:()=>f,mP:()=>d,oE:()=>v,up:()=>y,uz:()=>b,xd:()=>w,yM:()=>c,zD:()=>g});var t=n(61581),o=n(82638),l=n(19912),u=n(68107),i=n(22058),a=n(28626),s=n(25074);function d(){let e=(0,i.M1)(),r=(0,o.jE)(),n=(0,l.I)({queryKey:a.AF.workflows(),queryFn:()=>e.getWorkflows(),refetchInterval:6e4});return(0,t.useEffect)(()=>{let n=e.workflowsEventsUrl();if(n)return(0,s.BX)(n,{events:{change:()=>{r.invalidateQueries({queryKey:a.AF.workflows()})}}})},[e,r]),n}function f(e){var r;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=(0,i.M1)();return(0,l.I)({queryKey:a.AF.workflow(e),queryFn:()=>t.getWorkflow(e),enabled:null!=(r=n.enabled)?r:e.length>0})}function c(){let e=(0,i.M1)(),r=(0,o.jE)();return(0,u.n)({mutationFn:r=>{let{name:n,body:t}=r;return e.saveWorkflow(n,t)},onSuccess:(e,n)=>{let{name:t}=n;r.invalidateQueries({queryKey:a.AF.workflows()}),r.invalidateQueries({queryKey:a.AF.workflow(t)})}})}function v(){let e=(0,i.M1)(),r=(0,o.jE)();return(0,u.n)({mutationFn:r=>{let{name:n,scope:t}=r;return e.deleteWorkflow(n,t?{scope:t}:void 0)},onSuccess:(e,n)=>{let{name:t}=n;r.invalidateQueries({queryKey:a.AF.workflows()}),r.invalidateQueries({queryKey:a.AF.workflow(t)})}})}function w(){let e=(0,i.M1)();return(0,u.n)({mutationFn:r=>{let{yaml:n,signal:t}=r;return e.validateWorkflow(n,t?{signal:t}:void 0)}})}function y(){let e=(0,i.M1)();return(0,u.n)({mutationFn:r=>e.generateWorkflow(r)})}function p(){let e=(0,i.M1)();return(0,u.n)({mutationFn:r=>e.synthesizeWorkflow(r)})}function k(){let e=(0,i.M1)();return(0,u.n)({mutationFn:r=>{let{name:n,args:t,dryRun:o}=r;return e.runWorkflow(n,t,o?{dryRun:!0}:void 0)}})}function F(){var e;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,i.M1)();return(0,l.I)({queryKey:a.AF.workflowRuns(),queryFn:()=>n.getWorkflowRuns(),enabled:null==(e=r.enabled)||e,refetchInterval:3e4})}function g(){var e;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,i.M1)();return(0,l.I)({queryKey:a.AF.pendingApprovals(),queryFn:()=>n.getPendingApprovals(),enabled:null==(e=r.enabled)||e,refetchInterval:1e3})}function A(){let e=(0,i.M1)(),r=(0,o.jE)();return(0,u.n)({mutationFn:r=>{let{runId:n,response:t}=r;return e.approveRun(n,t?{response:t}:{})},onSuccess:(e,n)=>{let{runId:t}=n;r.invalidateQueries({queryKey:a.AF.pendingApprovals()}),r.invalidateQueries({queryKey:a.AF.workflowRun(t)})}})}function h(){let e=(0,i.M1)(),r=(0,o.jE)();return(0,u.n)({mutationFn:r=>{let{runId:n,reason:t}=r;return e.rejectRun(n,t?{reason:t}:{})},onSuccess:(e,n)=>{let{runId:t}=n;r.invalidateQueries({queryKey:a.AF.pendingApprovals()}),r.invalidateQueries({queryKey:a.AF.workflowRun(t)})}})}function b(e){let r=(0,i.M1)();return(0,l.I)({queryKey:e?a.AF.workflowRun(e):["nexus","workflow-run","__none__"],queryFn:()=>{if(!e)throw Error("runId required");return r.getWorkflowRun(e)},enabled:!!e,refetchInterval:e=>{let r=e.state.data;return r?void 0===r.ok&&3e4:3e4}})}function E(){var e;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,i.M1)(),l=(0,o.jE)(),u=null==(e=r.enabled)||e,s=r.EventSourceImpl;(0,t.useEffect)(()=>{if(u)return function(e,r){var n;let t,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=null!=(n=o.EventSourceImpl)?n:globalThis.EventSource;if(!l)return()=>{};let u="".concat(e,"/v1/events?topics=").concat(encodeURIComponent("workflow."));try{t=new l(u)}catch(e){return()=>{}}let i=e=>{try{var r;let n=JSON.parse(e.data);if("string"==typeof(null==n||null==(r=n.detail)?void 0:r.runId)&&n.detail.runId.length>0)return n.detail.runId}catch(e){}};for(let e of(t.addEventListener("workflow.approval.pending",()=>r.onApprovalPending()),t.addEventListener("workflow.approval.resolved",e=>r.onApprovalResolved(i(e))),["workflow.run.started","workflow.run.node-started","workflow.run.node-skipped","workflow.run.node-done","workflow.run.completed","workflow.run.failed"]))t.addEventListener(e,e=>r.onRunEvent(i(e)));return()=>{try{t.close()}catch(e){}}}(n.baseUrl,{onApprovalPending:()=>l.invalidateQueries({queryKey:a.AF.pendingApprovals()}),onApprovalResolved:e=>{l.invalidateQueries({queryKey:a.AF.pendingApprovals()}),e&&l.invalidateQueries({queryKey:a.AF.workflowRun(e)})},onRunEvent:e=>{l.invalidateQueries({queryKey:a.AF.workflowRuns()}),e&&l.invalidateQueries({queryKey:a.AF.workflowRun(e)})}},s?{EventSourceImpl:s}:{})},[n.baseUrl,u,l,s])}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5962],{22058:(e,t,n)=>{"use strict";n.d(t,{M1:()=>d,Qj:()=>c,tI:()=>i});var a=n(68441),r=n(61581),l=n(52643),o=n(82638);let s=(0,r.createContext)(null);function i(e){let{client:t,queryClient:n,defaultStaleTimeMs:i,children:d}=e,c=(0,r.useMemo)(()=>null!=n?n:new l.E({defaultOptions:{queries:{staleTime:null!=i?i:2e3,refetchOnWindowFocus:!1}}}),[n,i]);return(0,a.jsx)(s.Provider,{value:t,children:(0,a.jsx)(o.Ht,{client:c,children:d})})}function d(){let e=(0,r.useContext)(s);if(!e)throw Error("useNexusClient must be used within <NexusProvider>");return e}function c(){return(0,r.useContext)(s)}},24859:(e,t,n)=>{"use strict";n.d(t,{r:()=>o});var a=n(68441);let r={pending:"var(--border, #94a3b8)",running:"#f59e0b",passed:"var(--chart-2, #16a34a)",failed:"var(--destructive, #ef4444)"},l={pending:"대기",running:"도는 중",passed:"통과",failed:"실패"},o={groupBox:function(e){let{data:t}=e,n=r[t.state];return(0,a.jsx)("div",{"data-testid":"group-box-".concat(t.group),"data-state":t.state,className:"pointer-events-none rounded-xl border-2 border-dashed ".concat(t.unrecorded?"opacity-60":""),style:{width:t.width,height:t.height,borderColor:n,background:"color-mix(in srgb, ".concat(n," 6%, transparent)")},children:(0,a.jsxs)("div",{className:"pointer-events-auto flex items-center gap-2 px-2.5 py-1 text-xs",children:[(0,a.jsx)("span",{className:"font-mono font-semibold text-text-primary",children:t.group}),(0,a.jsx)("span",{className:"text-[11px]",style:{color:n},children:t.unrecorded?"기록 없음":l[t.state]}),(0,a.jsx)("span",{className:"text-[11px] text-text-tertiary",children:void 0===t.stepCount?"노드 ".concat(t.memberCount):"걸음 ".concat(t.stepCount)}),t.onCollapse&&(0,a.jsx)("button",{type:"button",onClick:e=>{var n;e.stopPropagation(),null==(n=t.onCollapse)||n.call(t,t.group)},className:"nodrag ml-auto rounded border border-border bg-background px-1.5 text-[11px] text-text-secondary",children:"접기"})]})})}}},25962:(e,t,n)=>{"use strict";n.d(t,{Yd:()=>q});var a=n(68441),r=n(61581),l=n(19912),o=n(50385),s=n(81715);n(39875),n(56004),n(59314),n(30004);var i=n(22058),d=n(85559),c=n(88394),u=n(40107),p=n(70848);let m="미계측",h=/(?:^|[-_:/.])(elanous_task_submit|skill_exec|aside_exec)(?:$|[-_:/.])/i,x=/(?:^|[-_:/.])aside(?:$|[-_:/.])/i,f=/(?:^|[-_:/.])elanous(?:$|[-_:/.])/i;function g(e,t){let n=x.test(e),a=f.test(e),r=x.test(t),l=f.test(t);if(n&&l)return"to-elanous";if(a&&r)return"to-aside";if(h.test(t)){if(/aside_exec/i.test(t)&&a)return"to-aside";if(/(?:elanous_task_submit|skill_exec)/i.test(t)&&n)return"to-elanous"}if(h.test(e)){if(/aside_exec/i.test(e)&&l)return"to-elanous";if(/(?:elanous_task_submit|skill_exec)/i.test(e)&&r)return"to-aside"}return null}function b(e,t){if(void 0!==t.sourceSeq&&Number.isFinite(e.seq))return Math.sign(e.seq-t.sourceSeq);let n=Date.parse(e.ts),a=Date.parse(t.at);return Number.isFinite(n)&&Number.isFinite(a)&&n!==a?Math.sign(n-a):null}let y=[["host","호스트"],["pod","Pod"],["models","모델"],["plugins","플러그인"]];var v=n(66666),w=n(24859);let j={agent:"#3b82f6",gate:"#f59e0b",git:"#10b981",judge:"#a855f7",observe:"#06b6d4",hitl:"#f43f5e",subgraph:"#8b5cf6"},k={pending:"var(--border, #cbd5e1)",running:"#f59e0b",passed:"var(--chart-2, #16a34a)",failed:"var(--destructive, #ef4444)"},N={pending:"대기",running:"도는 중",passed:"통과",failed:"실패"},M={pending:"workflow-node-status",running:"workflow-node-status workflow-node-status-running",passed:"workflow-node-status workflow-node-status-done",failed:"workflow-node-status workflow-node-status-failed"},_=[1,4,16],S=_[1],E={live:function(e){var t,n,r,l;let{data:i}=e;return(0,a.jsxs)("div",{"data-testid":"live-node-".concat(i.label),"data-state":i.state,"data-adaptive-event":i.adaptiveLabel,"data-birth-active":i.birthActive?"true":"false",className:"relative rounded-lg border-2 bg-surface px-3 py-2 shadow-sm transition-opacity duration-300 ".concat(M[i.state]," ").concat("pending"===i.state?i.unrecorded?"opacity-35":"opacity-60":""," ").concat(i.adaptiveLabel?"animate-pulse ring-2 ring-primary/60":""," ").concat(i.stageMode&&i.birthActive?"live-node-birth":""),style:{width:d.EP,height:i.height,borderColor:k[i.state],borderLeft:"5px solid ".concat(null!=(r=j[i.kind])?r:"#64748b"),outline:i.focused?"2px solid var(--accent, #8b5cf6)":void 0,outlineOffset:3},children:[(0,a.jsx)(o.h7,{id:"in",type:"target",position:s.yX.Left,className:"!pointer-events-none !opacity-0"}),(0,a.jsxs)("div",{"data-testid":"live-node-meta-".concat(i.label),className:"flex items-center gap-1 overflow-hidden text-[11px] text-text-tertiary",children:[(0,a.jsx)("span",{className:"truncate",children:"subgraph"===i.kind?"묶음 \xb7 눌러서 펼치기":i.kind}),i.entry&&(0,a.jsx)("span",{className:"shrink-0 rounded bg-success/15 px-1 text-success",children:"시작"}),i.terminal&&(0,a.jsx)("span",{className:"shrink-0 rounded bg-accent/15 px-1 text-accent",children:"끝"}),i.adaptiveLabel&&(0,a.jsx)("span",{"data-testid":"adaptive-event-".concat(i.label),className:"shrink-0 rounded bg-primary/15 px-1 text-primary animate-pulse",children:i.adaptiveLabel}),(0,a.jsx)("span",{"data-state-word":!0,className:"ml-auto shrink-0 font-medium",style:{color:k[i.state]},children:i.unrecorded?"기록 없음":N[i.state]})]}),(0,a.jsx)("div",{className:"overflow-x-auto whitespace-nowrap font-mono text-sm font-semibold text-text-primary",title:i.label,children:(0,v.Fi)(i.label)?"▣ ".concat(i.label.slice(v.EQ.length)):i.label}),i.stageMode&&(0,a.jsx)("div",{"data-testid":"live-node-resources-".concat(i.label),title:null==(t=i.resourceBadges)?void 0:t.join(" \xb7 "),className:"flex h-4 items-center gap-1 overflow-hidden whitespace-nowrap",children:(null!=(l=i.resourceBadges)?l:["호스트 미계측","모델 미계측"]).slice(0,3).map(e=>(0,a.jsx)("span",{className:"shrink-0 rounded-full border border-cyan-400/40 bg-cyan-400/10 px-1 text-[8px] leading-3 text-cyan-700 dark:text-cyan-200",children:e},e))}),(null==(n=i.provenance)?void 0:n.type)==="scenario-injection"?(0,a.jsxs)("div",{"data-testid":"scenario-injection-".concat(i.label),className:"truncate text-[10px] text-amber-700 dark:text-amber-300",title:"".concat(i.provenance.type).concat(i.provenance.scene?" \xb7 ".concat(i.provenance.scene):""," \xb7 ").concat(i.provenance.reason),children:["시나리오 주입",i.provenance.scene?" \xb7 ".concat(i.provenance.scene):"",i.provenance.mock?" \xb7 mock":""]}):i.stageMode?null:(0,a.jsxs)("div",{className:"truncate text-[11px] text-text-tertiary",title:i.recipe,children:[i.recipe," \xb7 최대 ",i.maxVisits,"회"]}),i.visits>1&&(0,a.jsxs)("span",{"data-testid":"visit-badge-".concat(i.label),className:"absolute -right-2 -top-2 rounded-full bg-amber-500 px-1.5 text-xs font-bold text-white shadow",children:["\xd7",i.visits]}),(0,a.jsx)(o.h7,{id:"out",type:"source",position:s.yX.Right,className:"!pointer-events-none !opacity-0"})]})},...w.r},C={live:function(e){var t;let{id:n,data:r,markerEnd:l,style:s}=e;if(!(null==r?void 0:r.route))return null;let{route:i}=r,d=(null==r?void 0:r.stageMode)&&"to-elanous"===r.mcpDirection?"#22d3ee":(null==r?void 0:r.stageMode)&&"to-aside"===r.mcpDirection?"#f472b6":(null==r?void 0:r.stageMode)&&"mcp"===r.mcpDirection?"#a78bfa":c.Bu[i.family],u=(null==r?void 0:r.stageMode)&&r.mcpDirection?d:null!=(t=null==s?void 0:s.stroke)?t:d,p="back"===i.kind||"fallback"===i.family,m="fallback"===i.family?"8 4":"6 4";return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("g",{"data-testid":r.taken?"edge-token-".concat(i.from,"-").concat(i.to):void 0,children:(0,a.jsx)(o.tE,{id:n,path:i.path,markerEnd:l,style:{strokeWidth:r.active?4:r.taken?3:1.5,opacity:r.active||r.taken?1:.22,transition:"opacity 300ms, stroke-width 300ms",...p?{strokeDasharray:m}:{},...s,...(null==s?void 0:s.stroke)?{opacity:1}:{},stroke:u}})}),r.active&&(0,a.jsxs)("g",{opacity:null==s?void 0:s.opacity,children:[(0,a.jsx)("circle",{r:7,fill:d,opacity:.25,children:(0,a.jsx)("animateMotion",{dur:"".concat(r.tokenMs,"ms"),fill:"freeze",path:i.path})}),(0,a.jsx)("circle",{r:4.5,fill:d,stroke:"var(--background, #fff)",strokeWidth:1.5,children:(0,a.jsx)("animateMotion",{dur:"".concat(r.tokenMs,"ms"),fill:"freeze",path:i.path})})]},r.tokenKey),i.label&&(0,a.jsx)(o.rV,{children:(0,a.jsx)("div",{className:"nodrag nopan pointer-events-none absolute whitespace-nowrap rounded-full border px-1.5 font-mono text-[11px] leading-4",style:{transform:"translate(-50%, -50%) translate(".concat(i.label.x,"px, ").concat(i.label.y,"px)"),width:i.label.width,textAlign:"center",borderColor:d,color:d,background:"var(--background, #fff)",opacity:r.active||r.taken?1:.35,fontWeight:r.active?700:500,...(null==s?void 0:s.opacity)!==void 0?{opacity:s.opacity}:{}},children:i.label.text})})]})}};function q(e){var t,n,s,h,x,f,w;let{runId:j,initialFolded:k=!1,clearFocusVersion:N=0,onNodeSelect:M,stageMode:q=!1}=e,I=(0,i.M1)(),F=(0,l.I)({queryKey:["harness-run-traversal",j],queryFn:()=>I.getHarnessRunTraversal(j),refetchInterval:e=>{var t;return(null==(t=e.state.data)?void 0:t.status)==="running"&&4e3}}),z=F.data,D=(null==z?void 0:z.status)==="running",[L,A]=(0,r.useState)(null),O=null!=L?L:D?"live":"replay",[T,V]=(0,r.useState)(-1),[Y,B]=(0,r.useState)(!1),[R,$]=(0,r.useState)(!1),[P,W]=(0,r.useState)(()=>q?4:S),[Z,H]=(0,r.useState)(null),[K,Q]=(0,r.useState)(null),X=(0,r.useMemo)(()=>{var e;return null!=(e=null==z?void 0:z.steps)?e:[]},[z]),G=(0,r.useMemo)(()=>{var e;return q?function(e,t,n){var a,r,l,o;if(n)return{steps:[...e.steps],graphEvents:[...null!=(a=e.graphEvents)?a:[]]};let s=t<0?[]:e.steps.slice(0,t+1),i=s.at(-1);if(!i)return{steps:s,graphEvents:0===e.steps.length?[...null!=(r=e.graphEvents)?r:[]]:[]};if(t>=e.steps.length-1)return{steps:s,graphEvents:[...null!=(l=e.graphEvents)?l:[]]};let d=i.sourceSeq,c=Date.parse(i.at);return{steps:s,graphEvents:(null!=(o=e.graphEvents)?o:[]).filter(e=>void 0!==d?e.seq<=d:Date.parse(e.ts)<=c)}}({steps:X,graphEvents:null==z?void 0:z.graphEvents},T,"live"===O):{steps:[...X],graphEvents:[...null!=(e=null==z?void 0:z.graphEvents)?e:[]]}},[q,X,null==z?void 0:z.graphEvents,T,O]),U=(0,l.I)({queryKey:["run-graph",null==z?void 0:z.graphId],queryFn:()=>I.getRunGraph(z.graphId),enabled:!!(null==z?void 0:z.graphId),retry:!1,staleTime:6e4}),J=(0,r.useMemo)(()=>{var e;if(!z)return null;let t=U.data,n=t?(0,p.D6)(t,G.steps):U.isLoading&&z.graphId?null:(0,p.Q)(null!=(e=z.graphId)?e:z.runId,G.steps);return n?(0,d.RC)(n,G.graphEvents):null},[z,U.data,U.isLoading,G]),[ee,et]=(0,r.useState)(()=>new Set),en=(0,r.useMemo)(()=>J?(0,v.S0)(J):[],[J]),ea=(0,r.useMemo)(()=>J?(0,v.F8)(J):new Map,[J]),er=(0,r.useRef)(!1);(0,r.useEffect)(()=>{k&&!er.current&&0!==en.length&&(er.current=!0,et(new Set(en)))},[k,en]);let el=(0,r.useMemo)(()=>J?(0,v.ws)(J,ee):null,[J,ee]),eo=(0,r.useMemo)(()=>el?X.map(e=>({...e,node:el.resolve(e.node)})):X,[el,X]),es=(0,r.useMemo)(()=>el?G.steps.map(e=>({...e,node:el.resolve(e.node)})):G.steps,[el,G.steps]),ei=(0,r.useMemo)(()=>(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],r=new Map;for(let e of a)r.set(t(e),{});for(let n of e){var l,o,s,i;let e=t(n.node),a={},d=null==(l=n.resources)?void 0:l.host,c=null==(o=n.resources)?void 0:o.pod;for(let e of("string"==typeof d&&d.trim()&&(a.host=d.trim()),"string"==typeof c&&c.trim()&&(a.pod=c.trim()),["models","plugins"])){let t=null==(i=n.resources)||null==(s=i[e])?void 0:s.filter(e=>"string"==typeof e&&e.trim()).map(e=>e.trim());(null==t?void 0:t.length)&&(a[e]=t)}r.set(e,a)}return new Map([...r].map(e=>{var t;let[a,r]=e,l=y.flatMap(e=>{let[t,n]=e,a=r[t];return a?["".concat(n," ").concat(Array.isArray(a)?a.join(", "):a)]:"host"===t||"models"===t?["".concat(n," 미계측")]:[]});return r.pod||(null==(t=r.plugins)?void 0:t.length)||!n||l.push("실행 ".concat(n)),[a,l]}))})(es,e=>e,null==z?void 0:z.substrate,null==el?void 0:el.graph.nodes.map(e=>e.node_id)),[es,null==z?void 0:z.substrate,el]),ed=(0,r.useMemo)(()=>el?(0,d.hl)(el.graph):null,[el]),ec=(0,r.useMemo)(()=>{var e;return null!=(e=null==ed?void 0:ed.edges.map(e=>({id:e.id,from:e.source,to:e.target,outcomes:e.data.route.outcomes})))?e:[]},[ed]),[eu,ep]=(0,r.useState)(!0),em=(0,r.useRef)(null),eh=(0,r.useRef)(null),[ex,ef]=(0,r.useState)(0),eg=(0,r.useRef)(!1),eb=(0,r.useRef)(j);(0,r.useEffect)(()=>{q&&P<4&&W(4)},[q,P]);let[ey,ev]=(0,r.useState)(()=>window.innerWidth>0?window.innerWidth:1024);(0,r.useEffect)(()=>{let e=()=>ev(window.innerWidth);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let ew=ey<700;(0,r.useEffect)(()=>{eb.current!==j&&(eb.current=j,eg.current=!1,er.current=!1,et(new Set),A(null),V(-1),B(!1),$(!1),W(q?4:S),H(null),Q(null),ep(!0))},[j]),(0,r.useEffect)(()=>{z&&!eg.current&&0!==X.length&&(eg.current=!0,"running"===z.status?(V(X.length-1),B(null===X.at(-1).outcome)):(V(0),B(!0),$(!0)))},[z,X]),(0,r.useEffect)(()=>{"live"===O&&0!==X.length&&(V(X.length-1),B(null===X.at(-1).outcome))},[O,X]),(0,r.useEffect)(()=>{if("replay"!==O||!R||0===X.length)return;let e=(0,u.bB)(X,T,P),t=window.setTimeout(()=>B(!1),e/2),n=window.setTimeout(()=>{if(T>=X.length-1)return void $(!1);V(e=>e+1),B(!0)},e);return()=>{window.clearTimeout(t),window.clearTimeout(n)}},[O,R,T,P,X]);let ej=(0,r.useMemo)(()=>new Set(eo.map(e=>e.node)),[eo]),ek=(0,r.useMemo)(()=>{let e=new Map;for(let t of G.graphEvents.slice(-8))"node-added"===t.type?e.set(t.node,"hand"===t.kind?"손 노드":"새 노드"):"unit-expanded"===t.type?e.set(t.node,"깊이 상승"):"edge-rerouted"===t.type&&(e.set(t.from,"경로 수리"),e.set(t.to,"경로 수리"));if(U.data){let t=new Set(U.data.nodes.map(e=>e.node_id));for(let n of X)t.has(n.node)||e.has(n.node)||e.set(n.node,"새로 추가")}return e},[G.graphEvents,U.data,X]),eN=(0,r.useMemo)(()=>{var e;if(!q)return new Set;let t="live"===O?eo.at(-2):T>0?eo[T-1]:void 0,n="live"===O?eo.at(-1):eo[T],a="live"===O||T>=X.length-1;return new Set((e=G.graphEvents,e.flatMap(e=>{if("node-added"!==e.type)return[];let r=t?b(e,t):null,l=n?b(e,n):null,o=a||!!(n&&null!==l&&l<=0);return(!t||null!==r&&r>0)&&o?[e.node]:[]})))},[q,O,eo,T,X.length,G.graphEvents]),eM=(0,r.useMemo)(()=>{var e;return(0,u.aZ)(null!=(e=null==ed?void 0:ed.nodes.map(e=>e.id))?e:[],ec,eo,T,Y)},[ed,ec,eo,T,Y]),e_=(0,r.useCallback)(e=>et(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}),[]),eS="replay"===O?Math.max(250,.6*(0,u.bB)(X,Math.max(0,T-1),P)):1200,eE=(0,r.useMemo)(()=>{var e;return(0,c.d1)((null==ed?void 0:ed.nodes.some(e=>e.id===K))?K:null,null!=(e=null==ed?void 0:ed.edges.map(e=>({id:e.id,from:e.source,to:e.target})))?e:[])},[K,ed]),eC=(0,r.useMemo)(()=>{if(!ed)return[];let e=ed.nodes.map(e=>{var t,n;return{...e,type:"live",zIndex:1,...eE&&!eE.nodes.has(e.id)?{style:{...e.style,opacity:c.zZ.dimNode}}:{},data:{...e.data,state:null!=(t=eM.nodeState[e.id])?t:"pending",visits:null!=(n=eM.visits[e.id])?n:0,focused:Z===e.id,stageMode:q,birthActive:eN.has(e.id),...q?{resourceBadges:ei.get(e.id)}:{},...ek.has(e.id)?{adaptiveLabel:ek.get(e.id)}:{},unrecorded:!D&&!ej.has(e.id)}}});return[...(0,v.Vc)(ed.nodes.map(e=>({id:e.id,position:e.position,width:d.EP,height:e.data.height})),ea).map(e=>({id:e.id,type:"groupBox",position:{x:e.x,y:e.y},zIndex:0,selectable:!1,draggable:!1,focusable:!1,data:{group:e.group,memberCount:e.members.length,width:e.width,height:e.height,onCollapse:e_,state:(0,v.Oc)(e.members.map(e=>{var t;return null!=(t=eM.nodeState[e])?t:"pending"})),unrecorded:!D&&e.members.every(e=>!ej.has(e))}})),...e]},[ed,eM,Z,eE,D,ej,ea,e_,ek,q,eN]),eq=(0,r.useMemo)(()=>{var e;return null!=(e=null==ed?void 0:ed.edges.map(e=>({...e,type:"live",...(0,c.f_)(eE,e.id),className:(null==eE?void 0:eE.edges.has(e.id))?"wiring-edge-flow":void 0,data:{...e.data,taken:eM.takenEdges.has(e.id),active:eM.activeEdge===e.id,tokenKey:"".concat(e.id,":").concat(eM.cursor),tokenMs:eS,mcpDirection:q?g(e.source,e.target):null,stageMode:q}})))?e:[]},[ed,eM,eS,eE,q]),eI=(0,r.useCallback)(e=>{H(e);let t=em.current;t&&(e?t.fitView({nodes:[{id:e}],duration:600,maxZoom:1.4,padding:.6}):t.fitView({duration:600,padding:.08,minZoom:.5}))},[]),eF=(0,r.useRef)(N);(0,r.useEffect)(()=>{eF.current!==N&&(eF.current=N,eI(null))},[N,eI]);let ez=(0,r.useRef)(j);(0,r.useEffect)(()=>{ez.current!==j&&(ez.current=j,eI(null))},[j,eI]);let eD=null!=(n=null==(t=eo[T])?void 0:t.node)?n:null;(0,r.useEffect)(()=>{var e,t,n;if(!eu||Z||!eD||!ed)return;let a=ed.nodes.find(e=>e.id===eD),r=em.current;if(!a||!r)return;let l=Math.min(1,Math.max((n=null!=(t=null==(e=eh.current)?void 0:e.clientWidth)?t:1e3)<700?.72:.78,n/900));r.setCenter(a.position.x+d.EP/2,a.position.y+a.data.height/2,{zoom:l,duration:400})},[eu,Z,eD,ed,ex]);let eL="replay"===O&&!R&&X.length>0&&T===X.length-1;(0,r.useEffect)(()=>{let e=ew?null:.5;if(!eL||!eu||Z||null===e)return;let t=window.setTimeout(()=>{var t;null==(t=em.current)||t.fitView({nodes:[...ej].map(e=>({id:e})),duration:800,padding:.08,minZoom:e})},1200);return()=>window.clearTimeout(t)},[eL,eu,Z,ej,ew]);let eA=e=>{A("replay"),$(!1),V(e),B(!1)};if(F.isLoading)return(0,a.jsx)("p",{className:"p-4 text-sm text-text-tertiary",children:"런 원장을 읽는 중…"});if(F.isError||!z)return(0,a.jsxs)("p",{role:"alert",className:"p-4 text-sm text-error",children:["이 런의 원장을 읽지 못했습니다 (",j,")."]});let eO=Z?X.map((e,t)=>({step:e,index:t})).filter(e=>{var t;let{step:n}=e;return(null!=(t=null==el?void 0:el.resolve(n.node))?t:n.node)===Z}):[],eT=T>=0?X[T]:void 0,eV=function(e,t){var n;let a=t?new Set(t.nodes.map(e=>e.node_id)).size:new Set(e.steps.map(e=>e.node)).size,r=t?t.edges.length:Math.max(0,new Set(e.steps.map(e=>e.node)).size>0?e.steps.length-1:0),l=function(e){let t=e.startedAt?Date.parse(e.startedAt):NaN,n=e.endedAt?Date.parse(e.endedAt):NaN;if(Number.isFinite(t)&&Number.isFinite(n)&&n>=t)return n-t;let a=e.steps.map(e=>Date.parse(e.at)).filter(e=>Number.isFinite(e)).at(-1);if(Number.isFinite(t)&&void 0!==a&&a>=t)return a-t;let r=e.steps.map(e=>e.durationMs).filter(e=>"number"==typeof e&&Number.isFinite(e)&&e>=0);return r.length>0&&r.length===e.steps.length?r.reduce((e,t)=>e+t,0):null}(e),o="number"==typeof(n=e.cost)&&Number.isFinite(n)?n:null;return{nodeCount:a,edgeCount:r,elapsed:null===l?m:(0,u.vV)(l),cost:null===o?m:String(o)}}(z,J),eY=function(e,t){var n,a,r;let l=null!=(n=e.graphEvents)?n:[],o=new Set,s=new Set;for(let e of null!=(a=null==t?void 0:t.edges)?a:[]){let t=e.map?Object.values(e.map):e.to?[e.to]:[],n=new Set(t);for(let a of[...t,...(null!=(r=e.fallback)?r:[]).filter(e=>!n.has(e.node)).map(e=>e.node)]){if(!a)continue;let t="".concat(e.from,"\0").concat(a);s.add(t),g(e.from,a)&&o.add(t)}}return{nodes:t?new Set(t.nodes.map(e=>e.node_id)).size:null,edges:t?s.size:null,visits:e.steps.length,failures:e.steps.filter(e=>{var t,n;return["fail","failed","error","blocked","rejected","aborted","timeout"].includes(null!=(n=null==(t=e.outcome)?void 0:t.toLowerCase())?n:"")}).length,repairs:l.filter(e=>"edge-rerouted"===e.type).length,mcpEdges:t?o.size:null,births:l.filter(e=>"node-added"===e.type).length}}(G,J),eB=function(e){var t;let n=e.steps.filter(e=>{var t,n;return["fail","failed","error","blocked","rejected","aborted","timeout"].includes(null!=(n=null==(t=e.outcome)?void 0:t.toLowerCase())?n:"")}),a=(null!=(t=e.graphEvents)?t:[]).filter(e=>"edge-rerouted"===e.type).flatMap(e=>{let t=n.filter(t=>{var n,a;return t.node===e.from&&(null!=(a=b(e,t))?a:-1)>0&&(!e.outcome||"$default"===e.outcome||e.outcome.toLowerCase()===(null==(n=t.outcome)?void 0:n.toLowerCase()))}).at(-1);return t?[{failure:t,repair:e}]:[]}).sort((e,t)=>t.repair.seq-e.repair.seq)[0];return null!=a?a:null}(G),eR=function(e,t,n){var a;let r=null!=(a=e.graphEvents)?a:[],l=n?e.steps:t<0?[]:e.steps.slice(0,t+1);return r.filter(t=>!Number.isFinite(t.seq)||0===e.steps.length||l.some(e=>null===b(t,e))).length}(z,T,"live"===O);return(0,a.jsxs)("div",{"data-stage-mode":q?"true":"false",className:"flex min-h-0 flex-1 flex-col ".concat(q?"gap-2":"gap-3"),children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsx)("span",{className:"rounded-full px-2 py-0.5 text-xs font-semibold ".concat(D?"bg-amber-500/15 text-amber-600 dark:text-amber-400":"completed"===z.status?"bg-success/15 text-success":"bg-error/15 text-error"),children:(0,p.az)(z.status)}),(0,a.jsx)("h2",{className:"order-first min-w-0 basis-full truncate font-semibold text-text-primary sm:order-none sm:basis-0 sm:flex-1 ".concat(q?"text-xl sm:text-2xl":"text-sm"),title:null!=(s=z.title)?s:void 0,children:null!=(h=z.title)?h:z.runId}),null!==z.prNumber&&(0,a.jsxs)("span",{className:"text-xs text-text-secondary",children:["PR #",z.prNumber]}),(0,a.jsxs)("span",{className:"font-mono text-[11px] text-text-tertiary",children:[z.runId.slice(0,12)," \xb7 ",null!=(x=z.graphId)?x:"그래프 모름",z.substrate?" \xb7 ".concat(z.substrate):""]})]}),q&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("dl",{"data-testid":"stage-metrics","aria-label":"무대 실측 숫자",className:"grid grid-cols-3 gap-2 sm:grid-cols-6",children:[["노드",eY.nodes],["간선",eY.edges],["방문",eY.visits],["실패",eY.failures],["재배선",eY.repairs],["MCP",eY.mcpEdges]].map(e=>{let[t,n]=e;return(0,a.jsxs)("div",{className:"stage-counter rounded-xl border border-white/15 bg-slate-950/90 px-3 py-2 text-center shadow-lg",children:[(0,a.jsx)("dt",{className:"text-[10px] font-semibold uppercase tracking-[0.2em] text-cyan-200/75",children:t}),(0,a.jsx)("dd",{className:"font-mono text-2xl font-black leading-tight text-white sm:text-4xl",children:null!=n?n:"—"})]},t)})}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-xs",children:[(0,a.jsx)("span",{"data-testid":"stage-recovery",className:"rounded-full px-3 py-1 font-bold ".concat(eB?"bg-emerald-400/20 text-emerald-200":"bg-amber-400/15 text-amber-200"),children:eB?"실패 → 수리 \xb7 ".concat(eB.repair.was," ↝ ").concat(eB.repair.to):eY.failures?"실패 기록 \xb7 수리 경로는 미기록":"이 런에 실패→수리 사건 없음"}),eR>0&&(0,a.jsxs)("span",{"data-testid":"stage-order-uncertainty",role:"status",className:"rounded-full border border-amber-300/40 px-2 py-1 text-amber-100",children:["사건 순서 미확인 ",eR]}),(0,a.jsxs)("span",{className:"rounded-full border border-cyan-300/40 px-2 py-1 text-cyan-100",children:["실행 기반 ",null!=(f=z.substrate)?f:"미계측"," \xb7 노드별 host/model은 배지 확인"]}),eY.births>0&&(0,a.jsxs)("span",{className:"rounded-full border border-fuchsia-300/40 px-2 py-1 text-fuchsia-100",children:["노드 탄생 ",eY.births]}),(0,a.jsxs)("span",{className:"ml-auto flex items-center gap-3 text-[11px] text-white/75",children:[(0,a.jsxs)("span",{children:[(0,a.jsx)("i",{className:"mr-1 inline-block h-2 w-2 rounded-full bg-cyan-300"}),"aside → 엘라누스 MCP"]}),(0,a.jsxs)("span",{children:[(0,a.jsx)("i",{className:"mr-1 inline-block h-2 w-2 rounded-full bg-pink-400"}),"엘라누스 → aside"]})]})]})]}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-xs",children:[(0,a.jsxs)("div",{role:"group","aria-label":"보기",className:"flex overflow-hidden rounded border border-border",children:[(0,a.jsx)("button",{type:"button",disabled:!D,onClick:()=>{A("live"),$(!1)},className:"px-2 py-1 ".concat("live"===O?"bg-primary text-primary-foreground":""," disabled:opacity-40"),children:"● 라이브"}),(0,a.jsx)("button",{type:"button",onClick:()=>{A("replay")},className:"px-2 py-1 ".concat("replay"===O?"bg-primary text-primary-foreground":""),children:"리플레이"})]}),"replay"===O&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button","aria-label":R?"일시정지":"재생",onClick:()=>{!R&&T>=X.length-1&&(V(0),B(!0)),$(!R)},className:"rounded border border-border px-2.5 py-1 font-semibold",children:R?"⏸ 일시정지":"▶ 재생"}),(0,a.jsx)("button",{type:"button",onClick:()=>{V(0),B(!0),$(!1)},className:"rounded border border-border px-2 py-1",children:"처음"}),(0,a.jsx)("div",{role:"group","aria-label":"속도",className:"flex overflow-hidden rounded border border-border",children:_.filter(e=>!q||e>=4).map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>W(e),"aria-pressed":P===e,className:"px-2 py-1 ".concat(P===e?"bg-accent/20 font-semibold text-text-primary":"text-text-secondary"),children:[e,"\xd7"]},e))}),(0,a.jsx)("input",{type:"range","aria-label":"재생 위치",min:0,max:Math.max(0,X.length-1),value:Math.max(0,T),onChange:e=>eA(Number(e.target.value)),className:"min-w-[120px] flex-1"})]}),(0,a.jsxs)("span",{className:"text-text-tertiary",children:[Math.max(0,T+1),"/",X.length," 단계",eT?" \xb7 ".concat(eT.node," \xd7").concat(eT.visit):""]}),(0,a.jsx)("button",{type:"button",onClick:()=>{ep(!1),null==M||M(null),eI(null)},className:"rounded border border-border px-2 py-1",children:"전체 보기"}),(0,a.jsx)("button",{type:"button","aria-pressed":eu,onClick:()=>{ep(!eu),null==M||M(null),H(null)},className:"rounded border px-2 py-1 ".concat(eu?"border-primary text-primary":"border-border"),children:"카메라 따라가기"}),en.length>0&&(0,a.jsx)("button",{type:"button","data-testid":"toggle-units",onClick:()=>{null==M||M(null),H(null),et(ee.size===en.length?new Set:new Set(en))},className:"rounded border border-border px-2 py-1",children:ee.size===en.length?"묶음 펼치기 (통합 보기)":"묶음 접기"})]}),!q&&(0,a.jsxs)("dl",{"data-testid":"live-run-metrics","aria-label":"런 지표",className:"grid grid-cols-2 gap-2 text-xs sm:grid-cols-4",children:[(0,a.jsxs)("div",{"data-testid":"metric-nodes",className:"rounded border border-border bg-surface px-2 py-1",children:[(0,a.jsx)("dt",{className:"text-text-tertiary",children:"노드 수"}),(0,a.jsx)("dd",{className:"font-mono font-semibold text-text-primary",children:eV.nodeCount})]}),(0,a.jsxs)("div",{"data-testid":"metric-edges",className:"rounded border border-border bg-surface px-2 py-1",children:[(0,a.jsx)("dt",{className:"text-text-tertiary",children:"간선 수"}),(0,a.jsx)("dd",{className:"font-mono font-semibold text-text-primary",children:eV.edgeCount})]}),(0,a.jsxs)("div",{"data-testid":"metric-elapsed",className:"rounded border border-border bg-surface px-2 py-1",children:[(0,a.jsx)("dt",{className:"text-text-tertiary",children:"경과 시간"}),(0,a.jsx)("dd",{className:"font-mono font-semibold text-text-primary",children:eV.elapsed})]}),(0,a.jsxs)("div",{"data-testid":"metric-cost",className:"rounded border border-border bg-surface px-2 py-1",children:[(0,a.jsx)("dt",{className:"text-text-tertiary",children:"비용"}),(0,a.jsx)("dd",{className:"font-mono font-semibold text-text-primary",children:eV.cost})]})]}),(0,a.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-3 ".concat(q?"stage-workspace":"lg:flex-row"),children:[(0,a.jsxs)("section",{ref:eh,"aria-label":"실행 그래프","data-viewport":ew?"narrow":"wide",className:"relative min-w-0 overflow-hidden rounded-lg border border-border bg-surface ".concat(q?"stage-canvas":"".concat(ew?"h-[65dvh] min-h-[380px]":"h-[60dvh] min-h-[340px]"," lg:h-[calc(100dvh-230px)] lg:min-h-[520px] lg:flex-1")),children:[0===X.length&&(0,a.jsx)("p",{className:"absolute left-3 top-3 z-10 text-xs text-text-tertiary",children:"아직 노드에 들어가지 않았습니다(원장에 `pipeline-node-entry` 없음)."}),ed&&(0,a.jsxs)(o.Gc,{nodes:eC,edges:eq,nodeTypes:E,edgeTypes:C,onInit:e=>{em.current=e,ef(e=>e+1)},onNodeMouseEnter:(e,t)=>{"groupBox"!==t.type&&Q(t.id)},onNodeMouseLeave:()=>Q(null),onNodeClick:(e,t)=>{if("groupBox"!==t.type){if((0,v.Fi)(t.id)){var n;let e=null!=(n=t.data.group)?n:t.id.slice(6);e_(e),null==M||M(null),H(null),window.setTimeout(()=>{var t;null==(t=em.current)||t.fitView({nodes:[{id:"box:".concat(e)}],duration:600,maxZoom:1.4,padding:.2})},80);return}null==M||M(Z===t.id?null:t.id),eI(Z===t.id?null:t.id)}},onPaneClick:()=>{Z&&(null==M||M(null),eI(null))},fitView:!0,fitViewOptions:{padding:.08,minZoom:.5},minZoom:.2,maxZoom:2,nodesDraggable:!1,nodesConnectable:!1,elementsSelectable:!1,edgesFocusable:!1,deleteKeyCode:null,proOptions:{hideAttribution:!0},className:"!bg-surface",children:[(0,a.jsx)(o.VS,{}),(0,a.jsx)(o.H2,{showInteractive:!1})]},"".concat(null!=(w=null==J?void 0:J.id)?w:"graph",":").concat([...ee].sort().join(","))),Z&&(0,a.jsxs)("div",{"data-testid":"node-detail",className:"absolute bottom-3 left-3 right-3 z-10 max-h-[45%] overflow-y-auto rounded-lg border border-border bg-background/95 p-3 text-xs shadow-lg backdrop-blur sm:right-auto sm:w-[320px]",children:[(0,a.jsxs)("div",{className:"mb-1 flex items-center gap-2",children:[(0,a.jsx)("span",{className:"font-mono text-sm font-semibold text-text-primary",children:Z}),(0,a.jsxs)("span",{className:"text-text-tertiary",children:["방문 ",eO.length,"회"]}),(0,a.jsx)("button",{type:"button",onClick:()=>eI(null),className:"ml-auto rounded border border-border px-1.5",children:"닫기"})]}),0===eO.length&&(0,a.jsx)("p",{className:"text-text-tertiary",children:D?"아직 이 노드에 들어가지 않았습니다.":"기록 없음 — 이 런의 원장에 이 노드의 사건이 없습니다."}),(0,a.jsx)("ul",{className:"space-y-1",children:eO.map(e=>{var t,n,r,l,o,s,i,d,c,p,m;let{step:h,index:x}=e;return(0,a.jsx)("li",{children:(0,a.jsxs)("button",{type:"button",onClick:()=>eA(x),className:"w-full rounded px-1 py-0.5 text-left hover:bg-surface-elevated",children:[(0,a.jsxs)("span",{className:"font-mono text-text-secondary",children:["시각 ",(0,u.Xf)(h.at)]})," ",(0,a.jsxs)("span",{className:"font-semibold",children:["\xd7",h.visit]})," ",(0,a.jsx)("span",{className:"fail"===h.outcome?"text-error":null===h.outcome?"text-amber-500":"text-success",children:null!=(i=h.outcome)?i:"도는 중"})," ",(0,a.jsxs)("span",{className:"text-text-tertiary",children:["소요 ",(0,u.vV)(h.durationMs)]}),q&&(0,a.jsxs)("span",{className:"mt-0.5 flex flex-wrap gap-x-2 text-[10px] text-cyan-700 dark:text-cyan-200","data-testid":"visit-resources-".concat(h.node,"-").concat(h.visit),children:[(0,a.jsxs)("span",{children:["호스트 ",null!=(d=null==(t=h.resources)?void 0:t.host)?d:"미계측"]}),(0,a.jsxs)("span",{children:["Pod ",null!=(c=null==(n=h.resources)?void 0:n.pod)?c:"미계측"]}),(0,a.jsxs)("span",{children:["모델 ",null!=(p=null==(l=h.resources)||null==(r=l.models)?void 0:r.join(", "))?p:"미계측"]}),(0,a.jsxs)("span",{children:["플러그인 ",null!=(m=null==(s=h.resources)||null==(o=s.plugins)?void 0:o.join(", "))?m:"미계측"]})]}),h.detail&&(0,a.jsx)("span",{className:"block text-text-secondary",children:h.detail})]})},x)})})]})]}),(0,a.jsxs)("aside",{"aria-label":"실행 타임라인",className:"overflow-y-auto rounded-lg border border-border bg-surface ".concat(q?"stage-timeline":"".concat(ew?"max-h-[300px]":"max-h-[420px]"," lg:max-h-[calc(100dvh-230px)] lg:w-[340px] lg:shrink-0")),children:[(0,a.jsx)("h3",{className:"sticky top-0 border-b border-border bg-surface px-3 py-2 text-xs font-semibold",children:"타임라인 (KST)"}),(0,a.jsx)("ol",{children:X.map((e,t)=>{var n,r;let l=t>T,o=t===T;return(0,a.jsx)("li",{children:(0,a.jsxs)("button",{type:"button",onClick:()=>{var n;eA(t),eI(null!=(n=null==el?void 0:el.resolve(e.node))?n:e.node)},"data-testid":"timeline-step-".concat(t),className:"grid w-full grid-cols-[64px_1fr_auto] items-baseline gap-x-2 border-b border-border/60 px-3 py-1.5 text-left text-xs transition-opacity ".concat(l?"opacity-35":""," ").concat(o?"bg-accent/10":"hover:bg-surface-elevated"),children:[(0,a.jsx)("span",{className:"font-mono text-text-tertiary",children:(0,u.Xf)(e.at)}),(0,a.jsxs)("span",{className:"font-mono font-semibold text-text-primary",children:[e.node,e.visit>1?" \xd7".concat(e.visit):""]}),(0,a.jsx)("span",{className:"fail"===e.outcome?"text-error":null===e.outcome?"text-amber-500":"text-success",children:null===e.outcome?"도는 중":"fail"===e.outcome?"실패":"통과"}),(0,a.jsx)("span",{className:"text-[11px] text-text-tertiary",children:(0,u.vV)(e.durationMs)}),(0,a.jsx)("span",{className:"col-span-2 truncate text-[11px] text-text-secondary",title:null!=(n=e.detail)?n:void 0,children:null!=(r=e.detail)?r:""})]})},t)})})]})]}),(0,a.jsxs)("p",{className:"shrink-0 text-[11px] text-text-tertiary",children:["배선도 디자인: ",(0,a.jsx)("a",{href:"https://malfoy-meme-making.vercel.app/wiring/index.html",target:"_blank",rel:"noopener noreferrer",className:"underline",children:"공냥이 AI 실험실"})]})]})}},30004:()=>{},40107:(e,t,n)=>{"use strict";n.d(t,{Xf:()=>o,aZ:()=>r,bB:()=>l,vV:()=>s});let a=new Set(["fail","failed","error","blocked","rejected","aborted","unconvergeable","timeout"]);function r(e,t,n,r){let l=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=Object.fromEntries(e.map(e=>[e,"pending"])),s={},i=new Set,d=null,c=Math.min(r,n.length-1);for(let e=0;e<=c;e+=1){var u,p;let r=n[e];if(s[r.node]=(null!=(u=s[r.node])?u:0)+1,o[r.node]=e===c&&l||null===(p=r.outcome)?"running":a.has(p.toLowerCase())?"failed":"passed",e>0){let a=n[e-1],l=function(e,t,n,a){var r;let l=e.filter(e=>e.from===t&&e.to===a);return 0===l.length?null:null!=(r=l.find(e=>null!==n&&e.outcomes.includes(n)))?r:l[0]}(t,a.node,a.outcome,r.node);l&&(i.add(l.id),e===c&&(d=l.id))}}return{nodeState:o,visits:s,takenEdges:i,activeEdge:d,cursor:c}}function l(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:900,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:4e3,l=e[t],o=e[t+1];if(!l||!o)return a/n;let s=Date.parse(o.at)-Date.parse(l.at);return(Number.isFinite(s)?Math.min(r,Math.max(a,s/60)):a)/Math.max(1,n)}function o(e){let t=Date.parse(e);return Number.isFinite(t)?new Date(t+324e5).toISOString().slice(11,19):"—"}function s(e){if(null===e||!Number.isFinite(e)||e<0)return"—";if(e<1e3)return"".concat(Math.round(e),"ms");let t=Math.round(e/1e3);if(t<60)return"".concat(t,"초");let n=Math.floor(t/60);return n<60?"".concat(n,"분 ").concat(t%60,"초"):"".concat(Math.floor(n/60),"시간 ").concat(n%60,"분")}},56004:()=>{},59314:()=>{},66666:(e,t,n)=>{"use strict";n.d(t,{EQ:()=>a,F8:()=>l,Fi:()=>r,Oc:()=>d,S0:()=>o,Vc:()=>i,ws:()=>s});let a="group:",r=e=>e.startsWith(a);function l(e){let t=new Map;for(let n of e.nodes){let e="string"==typeof n.group?n.group.trim():"";e&&t.set(n.node_id,e)}return t}function o(e){return[...new Set(l(e).values())]}function s(e,t){let n=l(e),r=e=>{let r=n.get(e);return r&&t.has(r)?"".concat(a).concat(r):e};if(![...n.values()].some(e=>t.has(e)))return{graph:e,resolve:r};let o=[],s=new Set;for(let t of e.nodes){let a=r(t.node_id);if(s.has(a))continue;if(s.add(a),a===t.node_id){o.push(t);continue}let l=n.get(t.node_id),i=e.nodes.filter(e=>n.get(e.node_id)===l);o.push({node_id:a,kind:"subgraph",recipe:"묶음 \xb7 노드 ".concat(i.length,"개"),max_visits:Math.max(...i.map(e=>e.max_visits)),group:l})}let i=[];for(let t of e.edges){let e=r(t.from);if(t.map){let n={};for(let[a,l]of Object.entries(t.map)){let t=r(l);t!==e&&(n[a]=t)}Object.keys(n).length&&i.push({from:e,...t.on?{on:t.on}:{},map:n})}else if(t.to){let n=r(t.to);n!==e&&i.push({from:e,to:n})}}let d=[];for(let e of i){let t=d.find(t=>t.from===e.from&&!!t.map==!!e.map&&(e.map||t.to===e.to));if(!t){d.push(e.map?{...e,map:{...e.map}}:e);continue}if(e.map&&t.map)for(let[n,r]of Object.entries(e.map))n in t.map?t.map[n]===r||Object.values(t.map).includes(r)||(t.map["".concat(n,"\xb7").concat(r.replace(a,""))]=r):t.map[n]=r}let c=r(e.entry_node),u=[...new Set(e.terminal_nodes.map(r))];return{graph:{...e,entry_node:c,terminal_nodes:u,nodes:o,edges:d},resolve:r}}function i(e,t){let n=new Map;for(let l of e){var a;let e=t.get(l.id);!e||r(l.id)||n.set(e,[...null!=(a=n.get(e))?a:[],l])}return[...n.entries()].map(e=>{let[t,n]=e,a=Math.min(...n.map(e=>e.position.x)),r=Math.min(...n.map(e=>e.position.y)),l=Math.max(...n.map(e=>e.position.x+e.width)),o=Math.max(...n.map(e=>e.position.y+e.height));return{id:"box:".concat(t),group:t,members:n.map(e=>e.id),x:a-18,y:r-18-26,width:l-a+36,height:o-r+36+26}})}function d(e){return e.includes("running")?"running":e.includes("failed")?"failed":e.includes("passed")?"passed":"pending"}},70848:(e,t,n)=>{"use strict";function a(e,t){var n,a,r;let l=[...new Set(t.map(e=>e.node))],o=new Map;for(let e=1;e<t.length;e+=1){let r=t[e-1],l=null!=(n=o.get(r.node))?n:{},s=null!=(a=r.outcome)?a:"pass";Object.values(l).includes(t[e].node)||(l[l[s]?"".concat(s,"\xb7").concat(t[e].node):s]=t[e].node),o.set(r.node,l)}return{id:e,source:"core",editable:!1,entry_node:null!=(r=l[0])?r:"",terminal_nodes:t.length?[t.at(-1).node]:[],nodes:l.map(e=>({node_id:e,kind:"agent",recipe:"원장에서 본 노드",max_visits:t.filter(t=>t.node===e).length})),edges:[...o.entries()].map(e=>{let[t,n]=e;return{from:t,on:"outcome",map:n}})}}function r(e,t){let n=new Set(e.nodes.map(e=>e.node_id)),a=[...new Set(t.map(e=>e.node))].filter(e=>!n.has(e)),r=t=>e.edges.filter(e=>e.from===t).flatMap(e=>e.map?Object.values(e.map):e.to?[e.to]:[]),l=[];for(let e=1;e<t.length;e+=1){let n=t[e-1].node,a=t[e].node;r(n).includes(a)||l.some(e=>e.from===n&&e.to===a)||l.push({from:n,to:a})}return 0===a.length&&0===l.length?e:{...e,nodes:[...e.nodes,...a.map(e=>({node_id:e,kind:"agent",recipe:"원장에서 본 노드(선언 밖)",max_visits:t.filter(t=>t.node===e).length}))],edges:[...e.edges,...l]}}function l(e){switch(e){case"running":return"● 도는 중";case"completed":return"완료";case"failed":return"실패";case"abandoned":return"버려짐";case"cancelled":return"취소됨";default:return e}}function o(e,t){let n=e=>(function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,a=(null!=(t=null==e?void 0:e.split("\n").map(e=>e.trim()).find(Boolean))?t:"").replace(/\s*\[truncated[^\]]*\]\s*$/,"").replace(/(?:~|\.{0,2})?\/?(?:[\w.@-]+\/)+([\w.@-]+)/g,"$1");return a.length>n?"".concat(a.slice(0,n-1),"…"):a})(e),a=[...e].sort((e,t)=>{var n,a;return Date.parse(null!=(n=t.lastActivityTimestamp)?n:"")-Date.parse(null!=(a=e.lastActivityTimestamp)?a:"")||0}).map(e=>{var t;return{runId:e.runId,label:n(e.objective)||e.runId,live:!0,at:null!=(t=e.lastActivityTimestamp)?t:null}}),r=new Set(a.map(e=>e.runId));return[...a,...t.filter(e=>!r.has(e.runId)).map(e=>({runId:e.runId,label:n(e.objective)||e.runId,live:!1,at:e.endedAt}))]}n.d(t,{D6:()=>r,Q:()=>a,az:()=>l,wk:()=>o})},85559:(e,t,n)=>{"use strict";n.d(t,{EP:()=>r,RC:()=>s,hl:()=>i,rl:()=>o});var a=n(88394);let r=190,l="horizontal";function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[...e].sort((e,t)=>e.seq-t.seq),n=t.filter(e=>"node-added"===e.type);return{orderedEvents:t.filter(e=>"node-added"===e.type||"unit-expanded"===e.type||"unit-collapsed"===e.type||"edge-rerouted"===e.type),addedNodes:n,depthChanges:t.filter(e=>"unit-expanded"===e.type||"unit-collapsed"===e.type),repairs:t.filter(e=>"edge-rerouted"===e.type),handNodes:n.filter(e=>"hand"===e.kind)}}function s(e,t){return[...t].sort((e,t)=>e.seq-t.seq).reduce((e,t)=>{if("node-added"===t.type){var n;let a=null!=(n=t.scene)?n:t.demo1104Scene,r="scenario-injection"===t.decider?{type:"scenario-injection",...a?{scene:a}:{},reason:t.reason,.../\bmock$/i.test(t.reason.trim())&&!/\bnot\s+mock$/i.test(t.reason.trim())?{mock:!0}:{}}:void 0,l=e.nodes.findIndex(e=>e.node_id===t.node);return l>=0?r?{...e,nodes:e.nodes.map((e,t)=>t===l?{...e,provenance:r}:e)}:e:{...e,nodes:[...e.nodes,{node_id:t.node,kind:t.kind,recipe:"runtime:".concat(t.decider),max_visits:1,...r?{provenance:r}:{}}]}}if("edge-rerouted"!==t.type)return e;let a=!1,r=e.edges.map(e=>{if(e.from!==t.from)return e;if(e.map&&"$default"!==t.outcome&&Object.hasOwn(e.map,t.outcome))return a=!0,{...e,map:{...e.map,[t.outcome]:t.to}};if(e.map&&"$absent"!==t.was){var n;let r=null==(n=Object.entries(e.map).find(e=>{let[,n]=e;return n===t.was}))?void 0:n[0];if(r)return a=!0,{...e,map:{...e.map,[r]:t.to}}}return e.to===t.was&&"$default"===t.outcome?(a=!0,{...e,to:t.to}):e});if(a)return{...e,edges:r};if("$absent"!==t.was)return e;let l="$default"!==t.outcome?r.map(e=>e.from===t.from&&e.map?{...e,map:{...e.map,[t.outcome]:t.to}}:e):r;return"$default"!==t.outcome&&l.some((e,t)=>e!==r[t])?{...e,edges:l}:{...e,edges:[...r,{from:t.from,to:t.to}]}},e)}function i(e){let t=e.edges.flatMap(e=>{var t;let n=e.map?Object.entries(e.map).map(t=>{let[n,a]=t;return{from:e.from,to:a,outcome:n}}):e.to?[{from:e.from,to:e.to,outcome:""}]:[],a=new Set(n.map(e=>e.to));return[...n,...(null!=(t=e.fallback)?t:[]).filter(e=>!a.has(e.node)).map(t=>({from:e.from,to:t.node,outcome:"fallback",family:"fallback",requires:t.requires}))]}),n=e=>t.filter(t=>t.from===e&&t.outcome&&"fallback"!==t.family).map(e=>e.outcome),o=e.nodes.map(e=>({id:e.node_id,width:r,height:n(e.node_id).length?86:70})),s=(0,a.Fq)(o,t,{entry:e.entry_node,flow:l,margin:25}),i=o.map(e=>{var t;return{...e,...null!=(t=s.get(e.id))?t:{x:0,y:0}}}),d=(0,a.gL)(i,(0,a.IU)(t),{flow:l}).map(e=>({id:e.id,source:e.from,target:e.to,sourceHandle:"out",targetHandle:"in",type:"tidy",...e.label?{label:e.label.text}:{},data:{route:e}})),c=new Set(e.terminal_nodes);return{nodes:e.nodes.map((t,a)=>({id:t.node_id,position:{x:i[a].x,y:i[a].y},data:{label:t.node_id,kind:t.kind,recipe:t.recipe,maxVisits:t.max_visits,entry:e.entry_node===t.node_id,terminal:c.has(t.node_id),outcomes:n(t.node_id),inputHandles:["in"],outputHandles:["out"],height:i[a].height,...t.provenance?{provenance:t.provenance}:{}}})),edges:d}}},88394:(e,t,n)=>{"use strict";n.d(t,{Bu:()=>i,Fq:()=>x,IU:()=>p,d1:()=>u,f_:()=>c,gL:()=>w,zZ:()=>d});var a=n(66548);let r=new Set(["pass","ok","passed","success","done","merged","approved"]),l=new Set(["fail","failed","error","blocked","rejected","aborted"]),o=new Set(["rework","retry","changes-requested"]),s=new Set(["fallback"]),i={pass:"var(--chart-2, #16a34a)",fail:"var(--destructive, #ef4444)",rework:"var(--chart-3, #f59e0b)",fallback:"var(--chart-4, #8b5cf6)",neutral:"var(--muted-foreground, #64748b)"},d={gold:"#D4AF37",flowDash:"3 14",dimNode:.22,dimEdge:.15,width:3};function c(e,t){return null===e?{}:e.edges.has(t)?{style:{stroke:d.gold,strokeWidth:d.width,strokeDasharray:d.flowDash},animated:!0}:{style:{opacity:d.dimEdge}}}function u(e,t){if(null===e)return null;let n=new Set([e]),a=new Set;for(let r of t)(r.from===e||r.to===e)&&(n.add(r.from===e?r.to:r.from),a.add(r.id));return{nodes:n,edges:a}}function p(e){let t=new Map;return e.forEach((e,n)=>{var a,r,l;let o="".concat(e.from,"\0").concat(e.to)+"\0"+("fallback"===e.family?"fallback":"regular"),s=t.get(o),i="fallback"===e.family?[e.outcome,...null!=(a=e.requires)?a:[]].filter((e,t,n)=>!!e&&n.indexOf(e)===t):e.outcome?[e.outcome]:[];if(s){for(let e of(s.indexes.push(n),i))s.outcomes.includes(e)||s.outcomes.push(e);if(null==(r=e.requires)?void 0:r.length)for(let t of(null!=s.requires||(s.requires=[]),e.requires))s.requires.includes(t)||s.requires.push(t)}else t.set(o,{id:"e".concat(n),from:e.from,to:e.to,outcomes:i,indexes:[n],...e.family?{family:e.family}:{},...(null==(l=e.requires)?void 0:l.length)?{requires:[...e.requires]}:{}})}),[...t.values()]}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.length?e.map(t).join(" \xb7 "):null}function h(e){let t=0;for(let n of e)t+=n.charCodeAt(0)>11904?1.7:1;return{width:Math.ceil(7.2*t+14),height:20}}function x(e,t){var n,r,l,o;let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=null!=(n=s.flow)?n:"horizontal",d=e.map(e=>e.id),c=new Set(d),u=p(t.filter(e=>c.has(e.from)&&c.has(e.to)&&e.from!==e.to)),x=function(e,t,n){var a;let r=new Map;for(let e of t)r.set(e.from,[...null!=(a=r.get(e.from))?a:[],e.to]);let l=new Map,o=new Set,s=t=>{let n=[{id:t,next:0}];for(l.set(t,1);n.length;){var a;let t=n[n.length-1],s=null!=(a=r.get(t.id))?a:[];if(t.next>=s.length){l.set(t.id,2),n.pop();continue}let i=s[t.next++],d=l.get(i);1===d?o.add("".concat(t.id,"\0").concat(i)):void 0===d&&e.includes(i)&&(l.set(i,1),n.push({id:i,next:0}))}};for(let t of n&&e.includes(n)?[n,...e.filter(e=>e!==n)]:[...e])l.has(t)||s(t);return o}(d,u,s.entry),y=u.filter(e=>!x.has("".concat(e.from,"\0").concat(e.to))),v=Math.max(0,...y.map(e=>{let t=m(e.outcomes,s.rename);return t?h(t)["horizontal"===i?"width":"height"]:0})),w=new a.Ay.graphlib.Graph;for(let t of(w.setDefaultEdgeLabel(()=>({})),w.setGraph({rankdir:"horizontal"===i?"LR":"TB",ranksep:Math.max("horizontal"===i?80:70,v+28),nodesep:"horizontal"===i?70:60,marginx:null!=(r=s.margin)?r:40,marginy:null!=(l=s.margin)?l:40}),e))w.setNode(t.id,{width:t.width,height:t.height});for(let e of y)w.setEdge(e.from,e.to);a.Ay.layout(w);let j=new Map;for(let t of e){let e=w.node(t.id);j.set(t.id,e?{x:Math.round(e.x-t.width/2),y:Math.round(e.y-t.height/2)}:{x:0,y:0})}return void 0!==s.lineLength&&function(e,t,n,a,r,l){let o="vertical"===n,s=e=>o?e.y:e.x,i=e=>o?e.x:e.y,d=e=>o?e.height:e.width,c=[...new Set(e.map(e=>s(t.get(e.id))+d(e)/2))].sort((e,t)=>e-t),u=new Map,p=[];for(let e of c)(!p.length||e-p[p.length-1]>4)&&p.push(e);for(let n of e){let e=s(t.get(n.id))+d(n)/2;u.set(n.id,p.findIndex(t=>4>=Math.abs(t-e)||t>e))}if(p.length<2)return;let m=(p[p.length-1]-p[0])/(p.length-1),h=Math.max(2,Math.floor((a-2*l-Math.max(...e.map(d)))/m)+1);if(p.length<=h)return;let x=Math.min(...e.map(e=>i(t.get(e.id)))),y=Math.max(...e.map(e=>i(t.get(e.id))+(o?e.width:e.height)))-x+Math.max(b+40,2*f+g*(r+1));for(let n of e){let e=t.get(n.id),a=Math.max(0,u.get(n.id)),r=Math.floor(a/h),l=(a-a%h)*m,s=o?{x:e.x+r*y,y:e.y-l}:{x:e.x-l,y:e.y+r*y};t.set(n.id,{x:Math.round(s.x),y:Math.round(s.y)})}}(e,j,i,s.lineLength,x.size,null!=(o=s.margin)?o:40),j}let f=24,g=26,b=80;function y(e,t,n,a,r){let l=1-r;return{x:l*l*l*e.x+3*l*l*r*t.x+3*l*r*r*n.x+r*r*r*a.x,y:l*l*l*e.y+3*l*l*r*t.y+3*l*r*r*n.y+r*r*r*a.y}}function v(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,a=Math.min(e.x+e.width/2,t.x+t.width/2)-Math.max(e.x-e.width/2,t.x-t.width/2)+n,r=Math.min(e.y+e.height/2,t.y+t.height/2)-Math.max(e.y-e.height/2,t.y-t.height/2)+n;return a>0&&r>0?a*r:0}function w(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a="vertical"===n.flow,i=e.map(e=>a?{id:e.id,x:e.y,y:e.x,w:e.height,h:e.width}:{id:e.id,x:e.x,y:e.y,w:e.width,h:e.height}),d=new Map(i.map(e=>[e.id,e])),c=e=>a?{x:e.y,y:e.x}:e,u=[];for(let e of t){let t=d.get(e.from),n=d.get(e.to);if(!t||!n||t===n)continue;let a=n.x+1<=t.x||n.x<t.x+t.w&&n.x+n.w>t.x,r=a?"back":"forward";if(!a){let e={x:t.x+t.w,y:t.y+t.h/2},a={x:n.x,y:n.y+n.h/2},l=Math.max(30,(a.x-e.x)/2),o=Array.from({length:17},(t,n)=>y(e,{x:e.x+l,y:e.y},{x:a.x-l,y:a.y},a,n/16)),s=e=>o.some((t,n)=>n>0&&function(e,t,n){let a=n.x-8,r=n.x+n.w+8,l=n.y-8,o=n.y+n.h+8,s=0,i=1,d=t.x-e.x,c=t.y-e.y;for(let[t,n]of[[-d,e.x-a],[d,r-e.x],[-c,e.y-l],[c,o-e.y]]){if(0===t){if(n<0)return!1;continue}let e=n/t;if(t<0){if(e>i)return!1;e>s&&(s=e)}else{if(e<s)return!1;e<i&&(i=e)}}return!0}(o[n-1],t,e));i.some(e=>e!==t&&e!==n&&s(e))&&(r="detour")}let l=Math.min(t.x,n.x),o=Math.max(t.x+t.w,n.x+n.w);u.push({...e,kind:r,s:t,t:n,lane:0,laneY:0,lo:l,hi:o})}for(let e of["back","detour"]){let t=u.filter(t=>t.kind===e).sort((e,t)=>e.hi-e.lo-(t.hi-t.lo)||e.indexes[0]-t.indexes[0]),n=[];for(let a of t){let t=0;for(;n.some(e=>e.lane===t&&e.lo<a.hi+18&&a.lo<e.hi+18);)t++;a.lane=t,n.push(a);let r=function(e,t,n,a){let r="back"===a&&n.y>=t.y+t.h,l=r?t.y:Math.min(t.y,n.y),o=r?t.y+t.h:Math.max(t.y+t.h,n.y+n.h),s=new Set([t,n].filter(e=>!r||e===t));for(let t=!0;t;)for(let a of(t=!1,e))s.has(a)||r&&a.y>=n.y||a.y<o+b&&a.y+a.h>l-b&&(s.add(a),l=Math.min(l,a.y),o=Math.max(o,a.y+a.h),t=!0);return[...s]}(i.filter(e=>e.x<a.hi&&e.x+e.w>a.lo),a.s,a.t,e);if(a.laneY="back"===e?Math.max(...r.map(e=>e.y+e.h))+f+t*g:Math.min(...r.map(e=>e.y))-f-t*g,"back"===e)for(;;){let e=i.find(e=>e!==a.s&&e!==a.t&&e.x<a.hi&&e.x+e.w>a.lo&&a.laneY>e.y-8&&a.laneY<e.y+e.h+8);if(e){a.laneY=e.y+e.h+f;continue}if(n.some(e=>e!==a&&e.laneY===a.laneY)){a.laneY+=g;continue}break}}}let p=new Map,x=(e,t)=>"forward"===e.kind?"s"===t?e.t.y+e.t.h/2:e.s.y+e.s.h/2:e.laneY;for(let e of i)for(let t of["s","t"]){let n=u.filter(n=>n[t]===e).sort((e,n)=>x(e,t)-x(n,t));n.forEach((a,r)=>p.set("".concat(e.id,"|").concat(t,"|").concat(a.id),e.y+e.h*(r+1)/(n.length+1)))}let w=u.map(e=>{var t,a;let i,d,u,{s:x,t:f}=e;if("back"===e.kind){let t=p.get("".concat(x.id,"|s|").concat(e.id)),n=p.get("".concat(f.id,"|t|").concat(e.id)),a=18+8*e.lane,r=x.x+x.w+a,l=f.x-a;i=[{x:x.x+x.w,y:t},{x:r,y:t},{x:r,y:e.laneY},{x:l,y:e.laneY},{x:l,y:n},{x:f.x,y:n}],u=[.5,.35,.65,.2,.8,.1,.9].map(t=>({x:r+(l-r)*t,y:e.laneY}))}else{let t=p.get("".concat(x.id,"|s|").concat(e.id)),n=p.get("".concat(f.id,"|t|").concat(e.id)),a={x:x.x+x.w,y:t},r={x:f.x,y:n};if("detour"===e.kind)i=[a,{x:a.x+18,y:t},{x:a.x+18,y:e.laneY},{x:r.x-18,y:e.laneY},{x:r.x-18,y:n},r],u=[.5,.35,.65,.2,.8].map(t=>({x:a.x+18+(r.x-a.x-36)*t,y:e.laneY}));else{let e=Math.max(30,(r.x-a.x)/2),t={x:a.x+e,y:a.y},n={x:r.x-e,y:r.y};i=Array.from({length:17},(e,l)=>y(a,t,n,r,l/16)),u=[.5,.4,.6,.3,.7,.22,.78].map(e=>y(a,t,n,r,e));let l=[a,t,n,r].map(c);d="M ".concat(l[0].x," ").concat(l[0].y," C ").concat(l[1].x," ").concat(l[1].y,", ").concat(l[2].x," ").concat(l[2].y,", ").concat(l[3].x," ").concat(l[3].y)}}let g=i.map(c);null!=d||(d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;if(e.length<2)return"";let n="M ".concat(e[0].x," ").concat(e[0].y);for(let a=1;a<e.length-1;a++){let r=e[a-1],l=e[a],o=e[a+1],s=Math.hypot(l.x-r.x,l.y-r.y),i=Math.hypot(o.x-l.x,o.y-l.y),d=Math.min(t,s/2,i/2);if(d<=.5){n+=" L ".concat(l.x," ").concat(l.y);continue}let c={x:l.x-(l.x-r.x)/s*d,y:l.y-(l.y-r.y)/s*d},u={x:l.x+(o.x-l.x)/i*d,y:l.y+(o.y-l.y)/i*d};n+=" L ".concat(c.x," ").concat(c.y," Q ").concat(l.x," ").concat(l.y," ").concat(u.x," ").concat(u.y)}let a=e[e.length-1];return"".concat(n," L ").concat(a.x," ").concat(a.y)}(g));let b=d,v=m(e.outcomes,n.rename);return{id:e.id,from:e.from,to:e.to,outcomes:e.outcomes,indexes:e.indexes,...e.requires?{requires:e.requires}:{},kind:e.kind,lane:e.lane,family:null!=(t=e.family)?t:0===(a=e.outcomes).length?"neutral":"fallback"===a[0]||a.every(e=>s.has(e))?"fallback":a.every(e=>r.has(e))?"pass":a.every(e=>l.has(e))?"fail":a.every(e=>o.has(e))?"rework":"neutral",points:g,path:b,label:v?{text:v,x:0,y:0,...h(v)}:null,candidates:u.map(c)}}),j=e.map(e=>({x:e.x+e.width/2,y:e.y+e.height/2,width:e.width,height:e.height})),k=[];for(let e of[...w].sort((e,t)=>("forward"!==e.kind)-("forward"!==t.kind))){if(!e.label)continue;let t=null,n=(a?e.label.width:e.label.height)+6,r=[1,-1,2,-2,3,-3,4,-4,6,-6].flatMap(t=>e.candidates.slice(0,3).map(e=>a?{x:e.x+t*n,y:e.y}:{x:e.x,y:e.y+t*n}));for(let n of[...e.candidates,...r]){let a={x:Math.round(n.x),y:Math.round(n.y),width:e.label.width,height:e.label.height},r=j.reduce((e,t)=>e+4*v(a,t,2),0)+k.reduce((e,t)=>e+v(a,t),0);if((!t||r<t.cost)&&(t={box:a,cost:r}),0===r)break}Object.assign(e.label,{x:t.box.x,y:t.box.y}),k.push(t.box)}return w.map(e=>{let{candidates:t,...n}=e;return n})}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4502],{84502:(t,e,a)=>{function i(t,e){let a=Error(e);return a.code=t,a}async function o(t){var e;if(!t.type.startsWith("audio/"))throw i("unsupported","not an audio file: ".concat(t.type||"(unknown)"));let a=null!=(e=globalThis.AudioContext)?e:globalThis.webkitAudioContext;if(!a)throw i("unavailable","Web Audio API unsupported");let o=new a;try{let e=await t.arrayBuffer();return{durationSec:(await o.decodeAudioData(e.slice(0)).catch(t=>{throw i("decode",t instanceof Error?t.message:String(t))})).duration,mimeType:t.type,sizeBytes:t.size}}finally{try{await o.close()}catch(t){}}}a.d(e,{extractAudioMeta:()=>o})}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5998],{65998:(t,e,a)=>{function i(t,e){let a=Error(e);return a.code=t,a}async function o(t){var e;if(!t.type.startsWith("audio/"))throw i("unsupported","not an audio file: ".concat(t.type||"(unknown)"));let a=null!=(e=globalThis.AudioContext)?e:globalThis.webkitAudioContext;if(!a)throw i("unavailable","Web Audio API unsupported");let o=new a;try{let e=await t.arrayBuffer();return{durationSec:(await o.decodeAudioData(e.slice(0)).catch(t=>{throw i("decode",t instanceof Error?t.message:String(t))})).duration,mimeType:t.type,sizeBytes:t.size}}finally{try{await o.close()}catch(t){}}}a.d(e,{extractAudioMeta:()=>o})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6352],{46352:(e,a,r)=>{r.d(a,{diagram:()=>l});var t=r(42848),n=r(8212),s=r(45026),d=r(42804),i=r(88328),p={parse:(0,d.K)(async e=>{let a=await (0,i.qg)("info",e);s.R.debug(a)},"parse")},g={version:"12.1.0"},o=(0,d.K)(()=>g.version,"getVersion"),l={parser:p,db:{getVersion:o},renderer:{draw:(0,d.K)((e,a,r)=>{s.R.debug("rendering info diagram\n"+e);let d=(0,t.D)(a);(0,n.a$)(d,100,400,!0),d.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${r}`)},"draw")}}}}]);