agentworkshop 0.7.41 → 0.7.44

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 (265) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/B8uy9iRW.js +1 -0
  3. package/.output/public/_nuxt/BGTYYQH-.js +1 -0
  4. package/.output/public/_nuxt/BUmHEJ77.js +2 -0
  5. package/.output/public/_nuxt/BY7YrV_D.js +1 -0
  6. package/.output/public/_nuxt/Bqcgz95s.js +18 -0
  7. package/.output/public/_nuxt/C7UlqPeD.js +1 -0
  8. package/.output/public/_nuxt/CTmDn-YP.js +1 -0
  9. package/.output/public/_nuxt/Cs8pVeVG.js +1 -0
  10. package/.output/public/_nuxt/DKySmNPI.js +14 -0
  11. package/.output/public/_nuxt/Di0NY_ht.js +1 -0
  12. package/.output/public/_nuxt/Du9v6qGB.js +1 -0
  13. package/.output/public/_nuxt/{DGbd-UiG.js → EHlEMRii.js} +1 -1
  14. package/.output/public/_nuxt/Eke1fs-U.js +1 -0
  15. package/.output/public/_nuxt/{DeJykBFf.js → H0BcqZtT.js} +1 -1
  16. package/.output/public/_nuxt/{C4oW1HsE.js → HSYEkkce.js} +1 -1
  17. package/.output/public/_nuxt/{D_OTvQza.js → J9oU00D1.js} +1 -1
  18. package/.output/public/_nuxt/OmpTerminalPanel.BxR5-lvi.css +1 -0
  19. package/.output/public/_nuxt/SSyAPaHc.js +1 -0
  20. package/.output/public/_nuxt/TownView.li4EMQxK.css +1 -0
  21. package/.output/public/_nuxt/VdLk4jLE2.js +1 -0
  22. package/.output/public/_nuxt/_id_.BhsXoEuk.css +1 -0
  23. package/.output/public/_nuxt/_id_.DQyj-WKN.css +1 -0
  24. package/.output/public/_nuxt/{_wsId_.B4WiqkIS.css → _wsId_.CTx-BlfF.css} +1 -1
  25. package/.output/public/_nuxt/aShsv_rG.js +19 -0
  26. package/.output/public/_nuxt/{yF0aYMF1.js → aesgXKSr.js} +3 -3
  27. package/.output/public/_nuxt/agents.B21nUEUX.css +1 -0
  28. package/.output/public/_nuxt/aml.ekTjxFkf.css +1 -0
  29. package/.output/public/_nuxt/builds/latest.json +1 -1
  30. package/.output/public/_nuxt/builds/meta/b5506ef0-f48e-4f14-a6c0-d65e505d0b09.json +1 -0
  31. package/.output/public/_nuxt/channel-templates.DplM1pJ3.css +1 -0
  32. package/.output/public/_nuxt/daq.BdVmoIfe.css +1 -0
  33. package/.output/public/_nuxt/dcw.DCgyzpWV.css +1 -0
  34. package/.output/public/_nuxt/{default.J32SgqFY.css → default.Bh3L2HU8.css} +1 -1
  35. package/.output/public/_nuxt/lHAxdSsj.js +1 -0
  36. package/.output/public/_nuxt/pages.j9rzRocr.css +1 -0
  37. package/.output/public/_nuxt/plugins.DhiZbHU8.css +1 -0
  38. package/.output/public/_nuxt/settings.BRx9rIDg.css +1 -0
  39. package/.output/public/_nuxt/teams.BLlOPB_Z.css +1 -0
  40. package/.output/public/_nuxt/tokens.De8xzszn.css +1 -0
  41. package/.output/public/_nuxt/workshop.D1jFNkrn.css +1 -0
  42. package/.output/server/chunks/_/nitro.mjs +748 -733
  43. package/.output/server/chunks/build/{OmpTerminalPanel-Cu_s4i0A.mjs → OmpTerminalPanel-CVvxpsF7.mjs} +15 -15
  44. package/.output/server/chunks/build/{OmpTerminalPanel-Cu_s4i0A.mjs.map → OmpTerminalPanel-CVvxpsF7.mjs.map} +1 -1
  45. package/.output/server/chunks/build/{TownView--otsnr_7.mjs → TownView-CJ6IsDCc.mjs} +226 -225
  46. package/.output/server/chunks/build/{TownView--otsnr_7.mjs.map → TownView-CJ6IsDCc.mjs.map} +1 -1
  47. package/.output/server/chunks/build/{_id_-Brv-JSvr.mjs → _id_-CVD_H0ir.mjs} +143 -142
  48. package/.output/server/chunks/build/_id_-CVD_H0ir.mjs.map +1 -0
  49. package/.output/server/chunks/build/{_id_-D9pl1OZy.mjs → _id_-CtxMb3qp.mjs} +41 -41
  50. package/.output/server/chunks/build/_id_-CtxMb3qp.mjs.map +1 -0
  51. package/.output/server/chunks/build/{_wsId_-BASfDf0s.mjs → _wsId_-DpY3T-md.mjs} +514 -444
  52. package/.output/server/chunks/build/{_wsId_-BASfDf0s.mjs.map → _wsId_-DpY3T-md.mjs.map} +1 -1
  53. package/.output/server/chunks/build/{agents-CLQqJF2y.mjs → agents-DsCkuXDV.mjs} +49 -46
  54. package/.output/server/chunks/build/agents-DsCkuXDV.mjs.map +1 -0
  55. package/.output/server/chunks/build/{aml-_7FdFL2p.mjs → aml-CT0xKGKI.mjs} +122 -105
  56. package/.output/server/chunks/build/aml-CT0xKGKI.mjs.map +1 -0
  57. package/.output/server/chunks/build/builtin-catalog-edpDcgfL.mjs +117 -0
  58. package/.output/server/chunks/build/builtin-catalog-edpDcgfL.mjs.map +1 -0
  59. package/.output/server/chunks/build/{channel-templates-p6SZNjlM.mjs → channel-templates-Dla9FbYa.mjs} +49 -37
  60. package/.output/server/chunks/build/channel-templates-Dla9FbYa.mjs.map +1 -0
  61. package/.output/server/chunks/build/{daq-DkMvD8sg.mjs → daq-DWWSKGAV.mjs} +89 -88
  62. package/.output/server/chunks/build/daq-DWWSKGAV.mjs.map +1 -0
  63. package/.output/server/chunks/build/{dcw-C1jgVJkO.mjs → dcw-CT8k17_E.mjs} +44 -43
  64. package/.output/server/chunks/build/dcw-CT8k17_E.mjs.map +1 -0
  65. package/.output/server/chunks/build/{default-BE4r0FZN.mjs → default-D3525UFX.mjs} +16 -15
  66. package/.output/server/chunks/build/{default-BE4r0FZN.mjs.map → default-D3525UFX.mjs.map} +1 -1
  67. package/.output/server/chunks/build/{monitor-C0okQaXz.mjs → monitor-Dh2Kvaq5.mjs} +2 -2
  68. package/.output/server/chunks/build/{monitor-C0okQaXz.mjs.map → monitor-Dh2Kvaq5.mjs.map} +1 -1
  69. package/.output/server/chunks/build/{pages-B0bUWnC6.mjs → pages-BHcSBM2D.mjs} +24 -18
  70. package/.output/server/chunks/build/pages-BHcSBM2D.mjs.map +1 -0
  71. package/.output/server/chunks/build/{plugins-lGlUr1lj.mjs → plugins-BNgIi61W.mjs} +23 -17
  72. package/.output/server/chunks/build/plugins-BNgIi61W.mjs.map +1 -0
  73. package/.output/server/chunks/build/{settings-Ddd1qx2Z.mjs → settings-ipYBDWdn.mjs} +45 -44
  74. package/.output/server/chunks/build/settings-ipYBDWdn.mjs.map +1 -0
  75. package/.output/server/chunks/build/{teams-MEDLZdMn.mjs → teams-5lx-CwFa.mjs} +47 -44
  76. package/.output/server/chunks/build/teams-5lx-CwFa.mjs.map +1 -0
  77. package/.output/server/chunks/build/{tokens-C7fTM5C2.mjs → tokens-q-IDT8Io.mjs} +73 -53
  78. package/.output/server/chunks/build/tokens-q-IDT8Io.mjs.map +1 -0
  79. package/.output/server/chunks/build/{town-CoQdblbZ.mjs → town-QJWB5wng.mjs} +3 -2
  80. package/.output/server/chunks/build/town-QJWB5wng.mjs.map +1 -0
  81. package/.output/server/chunks/build/{workshop-BL5bhfs0.mjs → workshop-BIlCj_ZP.mjs} +45 -45
  82. package/.output/server/chunks/build/workshop-BIlCj_ZP.mjs.map +1 -0
  83. package/.output/server/chunks/routes/renderer.mjs +1 -1
  84. package/.output/server/chunks/virtual/entry.mjs +637 -86
  85. package/.output/server/chunks/virtual/entry.mjs.map +1 -1
  86. package/.output/server/chunks/virtual/precomputed.mjs +1 -1
  87. package/.output/server/package.json +1 -1
  88. package/README-zh.md +13 -3
  89. package/README.md +13 -3
  90. package/app/components/AppHeader.vue +961 -959
  91. package/app/components/workshop/A2aRpcDebugger.vue +237 -237
  92. package/app/components/workshop/AgentInspectorDrawer.vue +424 -424
  93. package/app/components/workshop/AgentLanesView.vue +998 -998
  94. package/app/components/workshop/ArtifactCard.vue +120 -120
  95. package/app/components/workshop/AssetLibrary.vue +452 -452
  96. package/app/components/workshop/ChannelSessionList.vue +812 -804
  97. package/app/components/workshop/CommandPalette.vue +269 -269
  98. package/app/components/workshop/Composer.vue +827 -827
  99. package/app/components/workshop/DeviceTwinPanel.vue +643 -643
  100. package/app/components/workshop/EventBlock.vue +602 -602
  101. package/app/components/workshop/FileSelectorModal.vue +188 -188
  102. package/app/components/workshop/InspectorPanel.vue +301 -301
  103. package/app/components/workshop/MemoryPanel.vue +364 -364
  104. package/app/components/workshop/MultiChannelView.vue +189 -189
  105. package/app/components/workshop/TaskBoardView.vue +686 -686
  106. package/app/components/workshop/TaskInspectorDrawer.vue +390 -390
  107. package/app/components/workshop/TranscriptTimeline.vue +601 -601
  108. package/app/components/workshop/blocks/ClusterArtifact.vue +61 -61
  109. package/app/components/workshop/blocks/ClusterError.vue +85 -85
  110. package/app/components/workshop/blocks/ClusterLife.vue +87 -87
  111. package/app/components/workshop/blocks/ClusterMember.vue +95 -93
  112. package/app/components/workshop/blocks/ClusterMemory.vue +84 -84
  113. package/app/components/workshop/blocks/ClusterOther.vue +67 -67
  114. package/app/components/workshop/blocks/ClusterStatus.vue +149 -147
  115. package/app/components/workshop/blocks/ClusterTool.vue +158 -158
  116. package/app/components/workshop/terminal/OmpTerminalPanel.vue +1011 -1011
  117. package/app/components/workshop/town/TownView.vue +56 -56
  118. package/app/middleware/locale-cookie.global.ts +22 -0
  119. package/app/pages/aml/index.vue +24 -2
  120. package/app/pages/daq/[id].vue +11 -11
  121. package/app/pages/daq/index.vue +2316 -2316
  122. package/app/pages/dcw/[id].vue +18 -19
  123. package/app/pages/dcw/index.vue +3 -3
  124. package/app/pages/index.vue +987 -981
  125. package/app/pages/plugins/index.vue +317 -311
  126. package/app/pages/settings.vue +1564 -1562
  127. package/app/pages/tokens.vue +15 -15
  128. package/app/pages/workshop/agents.vue +612 -609
  129. package/app/pages/workshop/channel-templates.vue +18 -11
  130. package/app/pages/workshop/index.vue +668 -668
  131. package/app/pages/workshop/teams.vue +743 -740
  132. package/app/pages/workshop/w/[wsId].vue +704 -704
  133. package/app/plugins/locale-restore.client.ts +16 -1
  134. package/app/utils/builtin-catalog.ts +104 -0
  135. package/config.yml +170 -170
  136. package/docs/full-test-plan.md +2 -3
  137. package/i18n/locales/en.ts +293 -35
  138. package/i18n/locales/zh-CN.ts +265 -7
  139. package/package.json +2 -2
  140. package/scripts/_dbg-perms-e2e.mjs +132 -109
  141. package/scripts/_demo-agentteam-capture.mjs +278 -0
  142. package/scripts/_e2e-ui-functional.mjs +371 -0
  143. package/scripts/_i18n-en-cjk-scan.mjs +28 -0
  144. package/scripts/_i18n-en-verify.mjs +107 -0
  145. package/scripts/_i18n-extra-checks.mjs +53 -0
  146. package/scripts/_i18n-scan-hardcoded.mjs +180 -0
  147. package/scripts/_i18n-verify-keys.mjs +50 -0
  148. package/scripts/_loop-biax-campaign.mjs +15 -9
  149. package/scripts/_sweep-button-contrast.mjs +87 -0
  150. package/scripts/ui/record-demo.mjs +557 -0
  151. package/server/plugins-builtin/diag-bridge/index.mjs +608 -661
  152. package/server/plugins-builtin/rag-bridge/index.mjs +57 -133
  153. package/server/services/workshop/daq/drivers.ts +11 -0
  154. package/.output/public/_nuxt/88GOowgO2.js +0 -1
  155. package/.output/public/_nuxt/BN16aRdQ.js +0 -1
  156. package/.output/public/_nuxt/BWVhZntO.js +0 -1
  157. package/.output/public/_nuxt/BXxH0UQE.js +0 -1
  158. package/.output/public/_nuxt/BsROmY89.js +0 -1
  159. package/.output/public/_nuxt/C0ZrS1KL.js +0 -19
  160. package/.output/public/_nuxt/C4s_niy-.js +0 -14
  161. package/.output/public/_nuxt/D6mbFA-a.js +0 -1
  162. package/.output/public/_nuxt/DS8qj8EL.js +0 -1
  163. package/.output/public/_nuxt/DUjW5Yq5.js +0 -1
  164. package/.output/public/_nuxt/Dap5PmTL.js +0 -2
  165. package/.output/public/_nuxt/Dqw1lpr-.js +0 -1
  166. package/.output/public/_nuxt/DvLxILQP.js +0 -1
  167. package/.output/public/_nuxt/OmpTerminalPanel.B_Pl5Ynm.css +0 -1
  168. package/.output/public/_nuxt/TownView.f-YOdXRs.css +0 -1
  169. package/.output/public/_nuxt/_id_.D9ymtHB5.css +0 -1
  170. package/.output/public/_nuxt/_id_.jf-_8E_c.css +0 -1
  171. package/.output/public/_nuxt/agents.ZD0rVdHE.css +0 -1
  172. package/.output/public/_nuxt/aml.BN8ZEW4h.css +0 -1
  173. package/.output/public/_nuxt/builds/meta/78a295bb-2072-48a4-8b46-6d545fdae743.json +0 -1
  174. package/.output/public/_nuxt/channel-templates.BOtahzPi.css +0 -1
  175. package/.output/public/_nuxt/daq.DjSgY94l.css +0 -1
  176. package/.output/public/_nuxt/dcw.8Y7FqCVN.css +0 -1
  177. package/.output/public/_nuxt/eqq3wWQF.js +0 -18
  178. package/.output/public/_nuxt/pages.D7aSDlUI.css +0 -1
  179. package/.output/public/_nuxt/plugins.sb4nDGqr.css +0 -1
  180. package/.output/public/_nuxt/qr6R6Ha1.js +0 -1
  181. package/.output/public/_nuxt/settings.BTgR-NiE.css +0 -1
  182. package/.output/public/_nuxt/teams.CxnxKVVs.css +0 -1
  183. package/.output/public/_nuxt/tokens.BFY7qv4f.css +0 -1
  184. package/.output/public/_nuxt/workshop.CR_QzeAN.css +0 -1
  185. package/.output/server/chunks/build/_id_-Brv-JSvr.mjs.map +0 -1
  186. package/.output/server/chunks/build/_id_-D9pl1OZy.mjs.map +0 -1
  187. package/.output/server/chunks/build/agents-CLQqJF2y.mjs.map +0 -1
  188. package/.output/server/chunks/build/aml-_7FdFL2p.mjs.map +0 -1
  189. package/.output/server/chunks/build/channel-templates-p6SZNjlM.mjs.map +0 -1
  190. package/.output/server/chunks/build/daq-DkMvD8sg.mjs.map +0 -1
  191. package/.output/server/chunks/build/dcw-C1jgVJkO.mjs.map +0 -1
  192. package/.output/server/chunks/build/pages-B0bUWnC6.mjs.map +0 -1
  193. package/.output/server/chunks/build/plugins-lGlUr1lj.mjs.map +0 -1
  194. package/.output/server/chunks/build/settings-Ddd1qx2Z.mjs.map +0 -1
  195. package/.output/server/chunks/build/teams-MEDLZdMn.mjs.map +0 -1
  196. package/.output/server/chunks/build/tokens-C7fTM5C2.mjs.map +0 -1
  197. package/.output/server/chunks/build/town-CoQdblbZ.mjs.map +0 -1
  198. package/.output/server/chunks/build/workshop-BL5bhfs0.mjs.map +0 -1
  199. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.continue.json +0 -1
  200. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.json +0 -1
  201. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/054bb4bc4e4217a2ab0b0c6b663747214a9af464f5568ea60e784704e340bb0f.source +0 -153
  202. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/0554197c3d2bac203a1f5c48a5d52495d1336db1bd7aa4f4c19875810363e684.source +0 -153
  203. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/05c203d12a954fffba942e1d626e3f5fec05b18a5aef2bac003b7884a4b77406.source +0 -431
  204. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/145a6e6ba811af35aed31e0cc3211f53706a14980fa069ee9e3c1591139f96f0.source +0 -180
  205. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/1ae0fb281f97899c025e368ca73f41349b01fb5f85b19e08d7ebccff49095ed5.source +0 -112
  206. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/20ee9967aa0541c516db7575bdd4a1a745939bc7016bd10d7635903113edb8ec.source +0 -227
  207. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/233751843aeba9d4c5263f275b8102de00443c06f286918cbd23e0b6729e01aa.source +0 -131
  208. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/263c2e05b425e5c322e60c6475279f963bab3a873eb521b21df7fec935a46597.source +0 -160
  209. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/2ac5eaac28eaaee2178c4b32014df8e732f9dd432a285a872f5b7f31c1395fa4.source +0 -157
  210. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/33a0db0d2d95d2c11d0720090458e5fba1425376f5ceb5b422d1d3471be3226b.source +0 -348
  211. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/359e474ae83db35e4615d3728de6bf694b64d4dce9b536730a3b6518f9c0494a.source +0 -296
  212. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/37a4c3c31c4b70f6b719c53d1e9c4fcba603f31adfdd11bb6ef9f0d094923c56.source +0 -285
  213. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/461feca1c14a695eb8b0f17a6f95fe97eeceabc0510faaea4ba6d25bde147d8d.source +0 -217
  214. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/4cfadbda8591f29d5e1e230dc000e701b756e850441b3900fb596a4d2f6e98c2.source +0 -301
  215. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/50ca2810cf0b248c96948994c0c404531bbad6e553166b6816b3b03bfa0f75d2.source +0 -151
  216. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/52d9e8cb591a9ae86e238c3620a610cd386717bee222c0f37b25b2ac7e523dc4.source +0 -135
  217. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/6c87daafa4c006560a954636a97333f6123153c9d34d96203f7ee3a14e556357.source +0 -156
  218. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/77bc47854b577900621cacf1697f81fa2bc005af129d37614a97a3441c08f99f.source +0 -72
  219. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/7bbb789d3a527817118cf8399ed1861d6a962ade10878fd07223435d333a7089.source +0 -469
  220. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/86b7c1daafc8b60ba9982dde5bf1bcc74265709483c176e71f23ec6fc267451f.source +0 -259
  221. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/8df66d62bd41984d0970e8236882080c5085ac937d07a29779463d6a03b37c76.source +0 -97
  222. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/9962f2d1b3a85137bd40cc835725600b39f89ee02a27c06b2e0402e1eafde115.source +0 -277
  223. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/a1090ea066b792cb201739f4994e37bf7c12f52e805239a1eab87f18a537f266.source +0 -171
  224. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/a5241091650134d0919897e086a606a3846c8b2b54f8b4c84a8696c145ac3e9e.source +0 -425
  225. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/af19fa4c6e34d5540028be4b17600161283af3a2a2dfc61a3fdc0834436a0c14.source +0 -99
  226. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/b3713d78e2b2f93905ff6be8d58a8d0a2f42dea322eb67c987fda22ff6a084d5.source +0 -325
  227. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/b3849943c3aff102d1af815631fc843a2a52c17646a4b04696ece323e483bbec.source +0 -332
  228. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/bac735a3803a6650b7f1eb8f587e6dc5c68ea055000c3c99a11789438b78e837.source +0 -43
  229. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/d32c24d61eb8b33c73e5a8fc7e4dc7ef437aed238ee4371c2b00617e6104090a.source +0 -154
  230. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/d5170dc9a9879fda04fdf91d8a110d4efb6787ee38dda596d4da899883d36a72.source +0 -531
  231. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/dc59bcd7bb397be63ba2f2c3fec23f3782dcb17d2d75a9981eeced761f33eb32.source +0 -439
  232. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/eb5ff8cf66b92aec7bf6726781d8df74faa2b030c3aaac17d6b00c1fc04c9b32.source +0 -323
  233. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/f10615a6fae18436e70d1201b2d44fdae3174a3aa7bb4db97dea1b3ed291d721.source +0 -433
  234. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/f36d3e271668bc1260c2823542d22dbf1d0f7041ff16b1ac175bce2256e582ca.source +0 -280
  235. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/f94449380af09f31ac352152007146a75cc80bae8d6411ffe57b2c56f933b0ff.source +0 -117
  236. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/fe4dfd81178fd6b648335f6405d9ede71319aebde796008e50db21f8adf44c99.source +0 -160
  237. package/scripts/.mimosa/hook-state/sess_aeaecb58-8833-4b83-b93c-050467d21e03.mtxwtxme-61028-1f4519fbc4.baseline/ffb4e3aa548cfdadabaa44ab599f9b6a3ca6288176a2cc7a4b2fc2a12b5fb848.source +0 -101
  238. package/scripts/.mimosa/hook-status/sess_aeaecb58-8833-4b83-b93c-050467d21e03-d944d71bb3.json +0 -14
  239. package/scripts/_dbg-audit-all-pages.mjs +0 -43
  240. package/scripts/_dbg-daq-frames-e2e.mjs +0 -118
  241. package/scripts/_dbg-daq-rowstyle-verify.mjs +0 -112
  242. package/scripts/_dbg-hitl-timeout-e2e.mjs +0 -93
  243. package/scripts/_dbg-live-line-e2e.mjs +0 -279
  244. package/scripts/_dbg-minimal-omp.mjs +0 -77
  245. package/scripts/_dbg-mode-nav.mjs +0 -173
  246. package/scripts/_dbg-real-scenario-timeline.log +0 -55
  247. package/scripts/_dbg-team-repro.mjs +0 -76
  248. package/scripts/_dbg-town-agents-probe.mjs +0 -60
  249. package/scripts/_dbg-visual-acceptance.mjs +0 -63
  250. package/scripts/_townview_style.css +0 -1185
  251. package/scripts/_townview_template.html +0 -1215
  252. package/server/data/agent-node-bindings.json +0 -554
  253. package/server/data/daq-templates.json +0 -16
  254. package/server/data/daqs.json +0 -7464
  255. package/server/data/dcw-lines.json +0 -1787
  256. package/server/data/dcw-products.json +0 -1626
  257. package/server/data/dcw-recipes.json +0 -4672
  258. package/server/data/dcw-rollback.json +0 -20754
  259. package/server/data/dcw-runs.json +0 -6354
  260. package/server/data/dcw-templates.json +0 -146
  261. package/server/data/dcw-writes.json +0 -15650
  262. package/server/data/dcws.json +0 -9033
  263. package/server/data/device-twins.json +0 -133
  264. package/server/data/line-runs.json +0 -322
  265. package/server/data/scene-layouts.json +0 -277
@@ -0,0 +1 @@
1
+ import{a as e,c as t,n}from"./BU83-NnX.js";import{S as r,Ut as i,V as a,Vt as o,W as s,b as c,ct as l,d as u,dt as d,f,h as p,i as m,m as h,p as ee,pt as g,tt as _,xt as v,y}from"./CSkxz2NX.js";import{d as te}from"./BJHKLJJU.js";import{n as b}from"./DtYHUi5Z.js";import{n as x}from"./KZQX7xoM.js";import{n as S,t as ne}from"./BneN7fbu.js";import{n as re,r as ie,t as ae}from"./DDgJcSET.js";import{t as oe}from"./aWWIh8YL.js";import{r as se,t as ce}from"./DBHNsT1Y.js";import{i as le,n as ue,t as de}from"./BCGafdXT.js";import{t as fe}from"./pdk8jLGT.js";import{t as pe}from"./jZsY8yYz.js";import{t as me}from"./CClOy-Hz2.js";import{t as C}from"./DIaZ2PTo2.js";import{t as w}from"./BDNMzG2s2.js";import{t as T}from"./D0ZBQrN_2.js";import{t as E}from"./BN6iuJEg2.js";import{t as D}from"./CNs_Ozdc2.js";import{i as O}from"./Du9v6qGB.js";var he={class:`page`},ge={class:`head`},k={class:`sub`},A={class:`toolbar`},j={key:0,class:`admin-note`},M={class:`tpl-name`},N=[`title`],P={key:0,class:`h-miss`},F={class:`owner`},I={class:`inst-id`},L={class:`inst-ch`},_e={key:0,class:`empty`},ve=[`href`],ye={class:`mono`},be={key:1,class:`harness-caps`},R=w(r({__name:`agents`,setup(r){let{t:w}=x(),R=e=>O(w,e);D({layout:`default`});let z=E(),B=C(),V=g([]),H=g(!1),U=async()=>{H.value=!0;try{let e=await z.listTemplates();V.value=e?.data??[]}finally{H.value=!1}};U();let W=g(`all`),xe=u(()=>{let e=[{value:`all`,label:w(`chips.chipAll`,{n:V.value.length})},{value:`mine`,label:w(`chips.chipMine`,{n:V.value.filter(e=>e.ownerUserId===B.user?.id).length})},{value:`public`,label:w(`chips.chipPublic`,{n:V.value.filter(e=>e.visibility===`public`).length})},{value:`builtin`,label:w(`chips.chipBuiltin`,{n:V.value.filter(e=>e.isBuiltin).length})}];return B.isAdmin&&e.push({value:`others`,label:w(`chips.chipOthers`,{n:V.value.filter(e=>e.ownerUserId!==null&&e.ownerUserId!==B.user?.id&&e.visibility===`private`).length})}),e}),Se=u(()=>{let e=B.user?.id;switch(W.value){case`mine`:return V.value.filter(t=>t.ownerUserId===e);case`public`:return V.value.filter(e=>e.visibility===`public`);case`builtin`:return V.value.filter(e=>e.isBuiltin);case`others`:return V.value.filter(t=>t.ownerUserId!==null&&t.ownerUserId!==e&&t.visibility===`private`);default:return V.value}}),G=e=>!e.isBuiltin&&(e.ownerUserId===B.user?.id||B.isAdmin),K=e=>e.isBuiltin?{text:w(`agents.k3x23c017`),color:`default`,icon:`i-tabler-lock`}:e.visibility===`public`?{text:w(`agents.k3wv1t018`),color:`green`}:{text:w(`agents.k447jj019`),color:`default`},q=g([]),J=u(()=>new Map(q.value.map(e=>[e.id,e]))),Y=e=>J.value.get(e)?.available===!1,Ce=u(()=>(q.value.length>0?q.value:[{id:`mock`,label:w(`agents.hMock`),description:``,capabilities:{steer:!0,supervise:!1,hitl:!1,terminal:!1,contextStats:!1,compact:!1}},{id:`omp`,label:w(`agents.hOmp`),description:``,capabilities:{steer:!0,supervise:!0,hitl:!0,terminal:!0,contextStats:!0,compact:!0}},{id:`claude`,label:`claude`,description:``,capabilities:{steer:!1,supervise:!1,hitl:!1,terminal:!1,contextStats:!1,compact:!1}}]).map(e=>{let t=e.available===!1;return{value:e.id,label:t?`${e.label}(${w(`agents.notInstalled`)})`:e.label,disabled:t}})),X=e=>{let t=q.value.find(t=>t.id===e)?.capabilities;if(!t)return[];let n=[];return t.steer&&n.push(`steer`),t.supervise&&n.push(`lead`),t.hitl&&n.push(`HITL`),t.compact&&n.push(`compact`),n};(async()=>{try{let e=(await z.listHarnesses())?.data?.harnesses;Array.isArray(e)&&e.length>0&&(q.value=e)}catch{}})();let Z=g(!1),Q=g(null),$=d({name:``,harness:`mock`,configJson:`{}`,visibility:`private`}),we=()=>{Q.value=null,$.name=``,$.harness=`mock`,$.configJson=`{}`,$.visibility=`private`,Z.value=!0},Te=e=>{Q.value=e,$.name=e.name,$.harness=e.harness,$.configJson=JSON.stringify(e.config??{},null,2),$.visibility=e.visibility,Z.value=!0},Ee=async()=>{let t={};try{t=JSON.parse($.configJson||`{}`)}catch{e.error(w(`agents.badConfigJson`));return}if(Y($.harness)){e.error(J.value.get($.harness)?.error??w(`agents.notInstalled`));return}try{Q.value?(await z.updateTemplate(Q.value.id,{name:$.name,harness:$.harness,config:t,visibility:$.visibility}),e.success(w(`agents.k3n9aij020`))):(await z.createTemplate({name:$.name,harness:$.harness,config:t,visibility:$.visibility}),e.success(w(`agents.k3n5hak021`))),Z.value=!1,U()}catch(t){e.error(T(t))}},De=async t=>{await z.deleteTemplate(t.id),e.success(w(`agents.k3n5sd7022`)),U()},Oe=async e=>{await z.updateTemplate(e.id,{enabled:e.enabled===1?0:1}),U()},ke=async(t,n)=>{try{await z.updateTemplate(t.id,{visibility:n?`public`:`private`}),e.success(w(n?`agents.kxa6cxx023`:`agents.k1xxabaf024`)),U()}catch(t){e.error(T(t))}};return b({title:()=>w(`titles.agents`)}),(e,r)=>{let u=t,d=pe,g=ae,b=S,x=de,C=me,T=fe,E=ne,D=ce,O=ie,z=oe,V=ue,U=le,Ae=se,je=re,Me=n;return a(),p(`div`,he,[f(`div`,ge,[f(`div`,null,[f(`h2`,null,`Agent `+i(e.$t(`agents.k3pa5h4025`)),1),f(`p`,k,i(e.$t(`agents.k5nsz7y008`)),1)]),c(d,null,{default:_(()=>[c(u,{onClick:r[0]||=t=>(`navigateTo`in e?e.navigateTo:v(te))(`/workshop`)},{default:_(()=>[y(i(e.$t(`agents.krpx6qa009`)),1)]),_:1}),c(u,{type:`primary`,onClick:we},{default:_(()=>[y(i(e.$t(`agents.k1efixrj010`)),1)]),_:1})]),_:1})]),f(`div`,A,[c(g,{value:v(W),"onUpdate:value":r[1]||=e=>l(W)?W.value=e:null,size:`small`,options:v(xe)},null,8,[`value`,`options`]),v(B).isAdmin?(a(),p(`span`,j,[r[7]||=f(`span`,{class:`i-tabler-shield-check`},null,-1),y(` `+i(e.$t(`agents.ka1gpdj011`)),1)])):h(``,!0)]),c(E,{"data-source":v(Se),loading:v(H),"row-key":`id`,size:`small`,pagination:!1},{expandedRowRender:_(({record:t})=>[(a(!0),p(m,null,s(t.instances,e=>(a(),p(`div`,{key:e.id,class:`inst`},[c(x,{color:e.role===`lead`?`gold`:`blue`},{default:_(()=>[y(i(e.role),1)]),_:2},1032,[`color`]),f(`span`,I,i(e.id.slice(0,8)),1),f(`span`,L,`channel `+i(e.channelId.slice(0,8)),1)]))),128)),t.instances.length===0?(a(),p(`div`,_e,i(e.$t(`agents.k1d036zs014`)),1)):h(``,!0)]),default:_(()=>[c(b,{title:e.$t(`agents.k3xhia001`),"data-index":`name`},{default:_(({record:e})=>[f(`span`,M,[r[8]||=f(`span`,{class:`i-tabler-user-square`},null,-1),y(` `+i(R(e)),1)])]),_:1},8,[`title`]),c(b,{title:`harness`,"data-index":`harness`,width:120},{default:_(({record:e})=>[f(`span`,{class:o([`h-cell`,{off:Y(e.harness)}]),title:Y(e.harness)?v(J).get(e.harness)?.error??``:v(J).get(e.harness)?.resolvedPath??``},[r[9]||=f(`span`,{class:`h-dot`},null,-1),y(i(e.harness),1),Y(e.harness)?(a(),p(`span`,P,`(`+i(v(w)(`agents.notInstalled`))+`)`,1)):h(``,!0)],10,N)]),_:1}),c(b,{title:e.$t(`agents.k3lrqn0002`),width:120},{default:_(({record:t})=>[c(x,{color:K(t).color,class:`vis-tag`},{default:_(()=>[K(t).icon?(a(),p(`span`,{key:0,class:o(K(t).icon)},null,2)):h(``,!0),y(i(K(t).text),1)]),_:2},1032,[`color`]),!t.isBuiltin&&G(t)?(a(),ee(C,{key:0,checked:t.visibility===`public`,size:`small`,title:t.visibility===`public`?e.$t(`agents.toPrivate`):e.$t(`agents.toPublic`),onChange:e=>ke(t,e===!0)},null,8,[`checked`,`title`,`onChange`])):h(``,!0)]),_:1},8,[`title`]),c(b,{title:e.$t(`agents.k3l98u7003`),width:130},{default:_(({record:e})=>[f(`span`,F,i(e.ownerName??e.ownerUserId?.slice(0,8)??`-`),1)]),_:1},8,[`title`]),c(b,{title:e.$t(`agents.k3mr526004`),width:70},{default:_(({record:e})=>[y(i(e.instances.length),1)]),_:1},8,[`title`]),c(b,{title:e.$t(`agents.k3xhfg005`),width:70},{default:_(({record:e})=>[c(C,{checked:e.enabled===1,size:`small`,disabled:!G(e),onChange:t=>Oe(e)},null,8,[`checked`,`disabled`,`onChange`])]),_:1},8,[`title`]),c(b,{title:e.$t(`agents.k40aa6006`),width:130},{default:_(({record:t})=>[c(d,{size:`small`},{default:_(()=>[c(u,{size:`small`,type:`text`,disabled:!G(t),title:t.isBuiltin?e.$t(`agents.builtinNoEdit`):G(t)?e.$t(`common.edit`):e.$t(`agents.ownerOnlyEdit`),onClick:e=>Te(t)},{default:_(()=>[y(i(e.$t(`agents.k45eb0012`)),1)]),_:1},8,[`disabled`,`title`,`onClick`]),c(T,{title:e.$t(`agents.keetzvf007`),disabled:!G(t),onConfirm:e=>De(t)},{default:_(()=>[c(u,{size:`small`,type:`text`,danger:``,disabled:!G(t),title:t.isBuiltin?e.$t(`agents.builtinNoDelete`):e.$t(`common.delete`)},{default:_(()=>[y(i(e.$t(`agents.k3xakp013`)),1)]),_:1},8,[`disabled`,`title`])]),_:2},1032,[`title`,`disabled`,`onConfirm`])]),_:2},1024)]),_:1},8,[`title`])]),_:1},8,[`data-source`,`loading`]),c(Me,{open:v(Z),"onUpdate:open":r[6]||=e=>l(Z)?Z.value=e:null,title:v(Q)?e.$t(`agents.editTpl`):e.$t(`agents.newTpl`),"ok-text":e.$t(`common.save`),"cancel-text":e.$t(`common.cancel`),onOk:Ee},{default:_(()=>[c(je,{layout:`vertical`},{default:_(()=>[c(O,{label:e.$t(`agents.k3xhia001`)},{default:_(()=>[c(D,{value:v($).name,"onUpdate:value":r[2]||=e=>v($).name=e},null,8,[`value`])]),_:1},8,[`label`]),c(O,{label:`harness`},{default:_(()=>[c(z,{value:v($).harness,"onUpdate:value":r[3]||=e=>v($).harness=e,options:v(Ce)},{option:_(({value:e,label:t})=>[f(`span`,{class:o([`h-opt`,{off:Y(String(e))}])},[r[10]||=f(`span`,{class:`h-opt-dot`},null,-1),y(` `+i(t),1)],2)]),_:1},8,[`value`,`options`]),v(q).length>0?(a(),p(`div`,{key:0,class:o([`harness-status`,{off:Y(v($).harness)}])},[Y(v($).harness)?(a(),p(m,{key:0},[r[11]||=f(`span`,{class:`i-tabler-plug-off`},null,-1),y(` `+i(v(J).get(v($).harness)?.error)+` `,1),v(J).get(v($).harness)?.homepage?(a(),p(`a`,{key:0,class:`h-install`,href:v(J).get(v($).harness)?.homepage,target:`_blank`,rel:`noopener`},i(v(w)(`agents.installLink`)),9,ve)):h(``,!0)],64)):v(J).get(v($).harness)?.inprocess?(a(),p(m,{key:1},[r[12]||=f(`span`,{class:`i-tabler-plug-connected`},null,-1),y(` `+i(v(w)(`agents.harnessInprocess`)),1)],64)):v(J).get(v($).harness)?.resolvedPath?(a(),p(m,{key:2},[r[13]||=f(`span`,{class:`i-tabler-plug-connected`},null,-1),r[14]||=y(),f(`span`,ye,i(v(J).get(v($).harness)?.resolvedPath),1)],64)):h(``,!0)],2)):h(``,!0),X(v($).harness).length?(a(),p(`div`,be,[(a(!0),p(m,null,s(X(v($).harness),e=>(a(),p(`span`,{key:e,class:`harness-cap`},i(e),1))),128))])):h(``,!0)]),_:1}),c(O,{label:e.$t(`agents.k3lrqn0002`)},{default:_(()=>[c(U,{value:v($).visibility,"onUpdate:value":r[4]||=e=>v($).visibility=e},{default:_(()=>[c(V,{value:`private`},{default:_(()=>[y(i(e.$t(`agents.k17jfge3015`)),1)]),_:1}),c(V,{value:`public`},{default:_(()=>[y(i(e.$t(`agents.k1tt5zyo016`)),1)]),_:1})]),_:1},8,[`value`])]),_:1},8,[`label`]),c(O,{label:e.$t(`agents.configLabel`)},{default:_(()=>[c(Ae,{value:v($).configJson,"onUpdate:value":r[5]||=e=>v($).configJson=e,rows:6},null,8,[`value`])]),_:1},8,[`label`])]),_:1})]),_:1},8,[`open`,`title`,`ok-text`,`cancel-text`])])}}}),[[`__scopeId`,`data-v-6db201e9`]]);export{R as default};
@@ -0,0 +1 @@
1
+ var e=new Set([`temp-tc`,`pressure-tx`,`tension-cell`,`line-encoder`,`vision-cam`,`power-meter`,`thickness-scan`,`ccd-image`,`temp-sp`,`speed-sp`,`tension-sp`,`pressure-sp`]),t={"tpl-default-lead":`builtinSeeds.tplDefaultLead`,"tpl-default-backend":`builtinSeeds.tplDefaultBackend`,"tpl-default-frontend":`builtinSeeds.tplDefaultFrontend`,"tpl-default-qa":`builtinSeeds.tplDefaultQa`,"tpl-default-docs":`builtinSeeds.tplDefaultDocs`,"tpl-scenario-payment-lead":`builtinSeeds.tplScenarioPaymentLead`,"tpl-aml-lead":`builtinSeeds.tplAmlLead`,"tpl-aml-data":`builtinSeeds.tplAmlData`,"tpl-aml-trainer":`builtinSeeds.tplAmlTrainer`,"tpl-aml-eval":`builtinSeeds.tplAmlEval`,"team-default-fullstack":`builtinSeeds.teamDefaultFullstack`,"team-default-docs":`builtinSeeds.teamDefaultDocs`,"team-aml-shadow":`builtinSeeds.teamAmlShadow`,"chtpl-default-fullstack":`builtinSeeds.chtplDefaultFullstack`,"chtpl-default-review":`builtinSeeds.chtplDefaultReview`,"chtpl-preset-optical-film":`builtinSeeds.chtplPresetOpticalFilm`,"chtpl-preset-extrusion":`builtinSeeds.chtplPresetExtrusion`},n={"chtpl-default-fullstack":{desc:`builtinSeeds.chtplDefaultFullstackDesc`,scenario:`builtinSeeds.chtplDefaultFullstackScenario`},"chtpl-default-review":{desc:`builtinSeeds.chtplDefaultReviewDesc`,scenario:`builtinSeeds.chtplDefaultReviewScenario`},"chtpl-preset-optical-film":{desc:`builtinSeeds.chtplPresetOpticalFilmDesc`,scenario:`builtinSeeds.chtplPresetOpticalFilmScenario`},"chtpl-preset-extrusion":{desc:`builtinSeeds.chtplPresetExtrusionDesc`,scenario:`builtinSeeds.chtplPresetExtrusionScenario`}},r={"line-sentinel":`plugins.descLineSentinel`,"ops-notifier":`plugins.descOpsNotifier`,"sample-insight":`plugins.descSampleInsight`,"diag-bridge":`plugins.descDiagBridge`,"rag-bridge":`plugins.descRagBridge`,"serial-bridge":`plugins.descSerialBridge`},i={knight:{name:`builtinSeeds.mKnight`},mage:{name:`builtinSeeds.mMage`},bot:{name:`builtinSeeds.mBot`},"hero-3d":{name:`builtinSeeds.mHero3d`,hint:`builtinSeeds.mHero3dHint`},"yangyang-walk":{name:`builtinSeeds.mYangyang`,hint:`builtinSeeds.mYangyangHint`},"device-3d":{name:`builtinSeeds.mDevice3d`,hint:`builtinSeeds.mDevice3dHint`}},a={"设备实体(拖入场景生成数字孪生)":`builtinSeeds.mDeviceFallbackHint`,"角色 3D 模型(在频道成员管理中设置)":`builtinSeeds.mScannedCharacterHint`};function o(e,t){return i[t.id]?.name?e(i[t.id].name):t.name}function s(e,t){let n=i[t.id]?.hint;if(n)return e(n);let r=t.hint?a[t.hint]:void 0;return r?e(r):t.hint}function c(t,n){let r=n.key??n.id;return r&&e.has(r)?t(`tplCatalog.${r}`):n.name}function l(e,n){let r=t[n.id??n.templateId??``];return r?e(r):n.name}export{s as a,l as i,n,o,c as r,r as t};
@@ -1 +1 @@
1
- import{$ as e,P as t,R as n,S as r,Ut as i,V as a,d as o,f as s,h as c,p as l,pt as u,xt as d,y as f}from"./CSkxz2NX.js";import{d as p}from"./BJHKLJJU.js";import{t as m}from"./YnQxK3eG.js";import{t as h}from"./DIaZ2PTo2.js";import{t as g}from"./BDNMzG2s2.js";import{t as _}from"./CssgYAAL2.js";import{n as v,t as y}from"./BC9wjTJK2.js";import{t as b}from"./CNs_Ozdc2.js";import{t as x}from"./Dap5PmTL.js";var S={class:`town-page`},C={key:0,"data-hud":`town-empty`,class:`pane-empty`},w={class:`pe-title`},T={class:`pe-sub`},E={key:2,"data-hud":`town-loading`,class:`pane-loading`},D=g(r({__name:`town`,setup(r){b({layout:`town`,title:`Digital Twin`});let g=h(),D=v(),O=_(),{subscribe:k,unsubscribe:A}=y(),j=m(`token`),M=u(!1);e(()=>g.isLoggedIn,async e=>{if(!e){M.value=!1;return}if(await g.refresh(),g.isLoggedIn)try{await O.load(),M.value=!0}catch{}},{immediate:!0}),n(()=>{!g.isLoggedIn&&!j.value&&p(`/workshop`)}),e(j,e=>{!e&&!g.isLoggedIn&&p(`/workshop`)});let N=o(()=>{let e=[];for(let t of O.workspaces)for(let n of t.channelIds??[])e.includes(n)||e.push(n);return e});e(()=>N.value.join(`,`),()=>{for(let e of N.value)k(e)},{immediate:!0}),t(()=>{for(let e of N.value)A(e)});let P=o(()=>{let e=N.value[0];if(e&&D.channels[e])return e;for(let e of O.workspaces)for(let t of e.channelIds??[])if(D.channels[t])return t;return N.value[0]??void 0}),F=o(()=>N.value.length>0);return(e,t)=>{let n=x;return a(),c(`div`,S,[d(M)&&!d(F)?(a(),c(`div`,C,[t[0]||=s(`span`,{class:`pe-icon i-tabler-map-2`},null,-1),s(`div`,w,i(e.$t(`town.k1wm8wtr001`)),1),s(`div`,T,[f(i(e.$t(`town.k47e4s002`))+` `,1),s(`b`,null,`Agent `+i(e.$t(`town.k3n4mae005`)),1),f(` `+i(e.$t(`town.k17rerba003`)),1)])])):d(P)?(a(),l(n,{key:1,"channel-id":d(P),"all-channels":!0},null,8,[`channel-id`])):(a(),c(`div`,E,i(e.$t(`town.k1uc5mup004`)),1))])}}}),[[`__scopeId`,`data-v-83876687`]]);export{D as default};
1
+ import{$ as e,P as t,R as n,S as r,Ut as i,V as a,d as o,f as s,h as c,p as l,pt as u,xt as d,y as f}from"./CSkxz2NX.js";import{d as p}from"./BJHKLJJU.js";import{t as m}from"./YnQxK3eG.js";import{t as h}from"./DIaZ2PTo2.js";import{t as g}from"./BDNMzG2s2.js";import{t as _}from"./CssgYAAL2.js";import{n as v,t as y}from"./BC9wjTJK2.js";import{t as b}from"./CNs_Ozdc2.js";import{t as x}from"./BUmHEJ77.js";var S={class:`town-page`},C={key:0,"data-hud":`town-empty`,class:`pane-empty`},w={class:`pe-title`},T={class:`pe-sub`},E={key:2,"data-hud":`town-loading`,class:`pane-loading`},D=g(r({__name:`town`,setup(r){b({layout:`town`,title:`Digital Twin`});let g=h(),D=v(),O=_(),{subscribe:k,unsubscribe:A}=y(),j=m(`token`),M=u(!1);e(()=>g.isLoggedIn,async e=>{if(!e){M.value=!1;return}if(await g.refresh(),g.isLoggedIn)try{await O.load(),M.value=!0}catch{}},{immediate:!0}),n(()=>{!g.isLoggedIn&&!j.value&&p(`/workshop`)}),e(j,e=>{!e&&!g.isLoggedIn&&p(`/workshop`)});let N=o(()=>{let e=[];for(let t of O.workspaces)for(let n of t.channelIds??[])e.includes(n)||e.push(n);return e});e(()=>N.value.join(`,`),()=>{for(let e of N.value)k(e)},{immediate:!0}),t(()=>{for(let e of N.value)A(e)});let P=o(()=>{let e=N.value[0];if(e&&D.channels[e])return e;for(let e of O.workspaces)for(let t of e.channelIds??[])if(D.channels[t])return t;return N.value[0]??void 0}),F=o(()=>N.value.length>0);return(e,t)=>{let n=x;return a(),c(`div`,S,[d(M)&&!d(F)?(a(),c(`div`,C,[t[0]||=s(`span`,{class:`pe-icon i-tabler-map-2`},null,-1),s(`div`,w,i(e.$t(`town.k1wm8wtr001`)),1),s(`div`,T,[f(i(e.$t(`town.k47e4s002`))+` `,1),s(`b`,null,`Agent `+i(e.$t(`town.k3n4mae005`)),1),f(` `+i(e.$t(`town.k17rerba003`)),1)])])):d(P)?(a(),l(n,{key:1,"channel-id":d(P),"all-channels":!0},null,8,[`channel-id`])):(a(),c(`div`,E,i(e.$t(`town.k1uc5mup004`)),1))])}}}),[[`__scopeId`,`data-v-83876687`]]);export{D as default};
@@ -0,0 +1 @@
1
+ import{Ht as e,S as t,Ut as n,V as r,Vt as i,W as a,b as ee,d as o,dt as s,f as c,h as l,i as u,m as d,nt as f,pt as p,tt as te,xt as m,y as h,z as ne}from"./CSkxz2NX.js";import{c as g,f as _,l as v,s as re}from"./D6uzXueg.js";import{a as ie}from"./C__m4EhR.js";import{t as ae}from"./BHA40aHa.js";import{n as oe}from"./KZQX7xoM.js";import{t as se}from"./DZtm4l-P2.js";import{t as y}from"./BDNMzG2s2.js";import{t as b}from"./D0ZBQrN_2.js";import{t as ce}from"./D98NH8kG.js";import{n as le,t as ue}from"./ca4TJ3Op.js";import{t as de}from"./C3J6FYKa.js";import{r as fe}from"./Du9v6qGB.js";var pe={key:0,class:`page`},me={class:`banner bad`},he={key:1,class:`page`},ge={class:`aw-page-head`},_e={class:`aw-kicker`},ve={class:`sub`},ye={class:`badges mono`},be={class:`badge`},xe={class:`badge`},Se={class:`badge`},Ce={class:`aw-tile ctrl-card`},we={class:`ctrl-left`},Te=[`title`],Ee={class:`ctrl-right`},De={class:`ctrl-metrics mono`},Oe=[`title`],ke=[`title`],Ae=[`title`],je={key:1,class:`aw-tile adopt-card`},Me={class:`adopt-title`},Ne={class:`adopt-list`},Pe=[`onClick`],Fe=[`onClick`],Ie={class:`aw-tile line-card`},Le={class:`line-status`},Re={class:`line-info`},ze={key:0,class:`mono dim`},Be={key:1,class:`dim`},Ve={class:`line-ctl`},He={class:`ctl-sel`},Ue={value:``},We=[`value`],Ge={class:`ctl-sel`},Ke=[`disabled`],qe={value:``},Je=[`value`,`disabled`],Ye=[`disabled`,`title`],Xe=[`disabled`],Ze={key:0,class:`banner bad`,style:{"margin-top":`10px`}},Qe={key:1,class:`banner good`,style:{"margin-top":`10px`}},$e={class:`modal`},et={class:`m-title`},tt={class:`dim mono`},nt={class:`dim tpl-hint`},rt={class:`tpl-chips`},it=[`title`],at={class:`mono`},ot={class:`sec-label`},st={class:`f-grid tpl-form`},ct={class:`f`},lt=[`placeholder`],ut={class:`f`},dt=[`placeholder`],ft={class:`f`},pt=[`placeholder`],mt={class:`f`},ht=[`placeholder`],gt={class:`f`},_t=[`placeholder`],vt={class:`f`},yt=[`placeholder`],bt={class:`f`},xt={class:`f`},St=[`value`],Ct={class:`f`},wt=[`placeholder`],Tt={key:0,class:`banner good`,style:{"margin-top":`10px`}},Et={key:1,class:`m-err`},Dt={class:`m-actions`},Ot=[`disabled`],kt={class:`modal`},At={class:`m-title`},jt={class:`seg-row`},Mt={class:`f-grid`},Nt={class:`f`},Pt=[`value`],Ft={class:`f`},It=[`placeholder`],Lt={class:`f`},Rt=[`placeholder`],zt={class:`f`},Bt=[`placeholder`],Vt={class:`f-grid cal-form`},Ht={class:`f`},Ut={value:`none`},Wt={value:`linear`},Gt={class:`f`},Kt={style:{display:`flex`,gap:`6px`}},qt=[`disabled`,`title`],Jt=[`disabled`,`title`],Yt={class:`f-grid`},Xt={class:`f`},Zt=[`value`],Qt={key:0,class:`f-grid driver-form`},$t={key:0,style:{color:`var(--tone-danger-dot)`,"font-style":`normal`}},en=[`onUpdate:modelValue`],tn=[`value`],nn=[`onUpdate:modelValue`,`type`,`placeholder`],rn={key:2,class:`hint`},an={class:`test-row`},on=[`disabled`],sn={class:`f`},cn=[`placeholder`],ln={key:1,class:`m-err`},un={class:`m-actions`},dn=[`disabled`],fn={class:`aw-tile table-card`},pn={class:`nodes-table`},mn={class:`right`},hn={class:`mono dim`},gn={class:`mono ch`},_n=[`disabled`,`title`,`onClick`],vn={key:0,class:`st-pill paused`},yn={class:`mono val`},bn={key:0,class:`dim`},xn={class:`mono val`},Sn=[`title`],Cn={key:0,class:`dim`},wn=[`disabled`,`title`,`onClick`],Tn={class:`write-row`},En=[`onUpdate:modelValue`,`placeholder`,`min`,`max`,`step`,`disabled`,`title`],Dn=[`disabled`,`title`,`onClick`],On={class:`mono dim`},kn={class:`mono`},An=[`title`],jn={class:`right`},Mn=[`onClick`],Nn={key:0},Pn={colspan:`9`},Fn={class:`pane-empty`,style:{"min-height":`120px`}},In={class:`pe-sub`},Ln={class:`aw-tile recipe-card`},Rn={class:`recipe-hd`},zn={class:`panel-tag mono`},Bn={class:`recipe-sub`},Vn={key:0,class:`product-row`},Hn=[`title`,`onClick`],Un=[`title`,`onClick`],Wn={key:1,class:`dim`,style:{margin:`6px 0 12px`,"font-size":`12px`}},Gn={class:`recipe-grid`},Kn={class:`recipe-name`},qn=[`title`],Jn={class:`dim`},Yn={class:`mono dim`},Xn={key:0,class:`dim desc`},Zn={class:`recipe-params mono`},Qn=[`title`],$n={key:0,class:`chip-stale-tag`},er=[`title`],tr={key:0,class:`chip-stale-tag`},nr={class:`recipe-actions`},rr=[`onClick`],ir=[`onClick`],ar=[`onClick`],or={key:0,class:`mono`},sr=[`onClick`],cr={key:0,class:`pane-empty`,style:{"grid-column":`1 / -1`}},lr={key:2,class:`banner good`},ur=[`disabled`],dr={key:3,class:`runs`},fr={class:`sec-label`},pr={class:`nodes-table`},mr={class:`right`},hr={class:`mono`},gr={class:`mono dim`},_r={class:`right`},vr=[`disabled`,`onClick`],yr=[`onClick`],br={class:`modal`},xr={class:`m-title`},Sr={class:`sec-label`},Cr={class:`nodes-table`},wr={class:`mono dim`},Tr={class:`mono`},Er={class:`mono`},Dr={class:`mono dim`},Or={class:`mono dim`},kr={key:0},Ar={colspan:`6`,class:`dim`,style:{"text-align":`center`,padding:`12px`}},jr={class:`sec-label`},Mr={class:`nodes-table`},Nr={class:`mono`},Pr={class:`mono dim`},Fr={class:`mono dim`},Ir={key:0},Lr={colspan:`6`,class:`dim`,style:{"text-align":`center`,padding:`12px`}},Rr={class:`m-actions`},zr={class:`modal`},Br={class:`m-title`},Vr={class:`f-grid`},Hr={class:`f`},Ur=[`value`],Wr={class:`f`},Gr=[`placeholder`],Kr={class:`f`},qr=[`placeholder`],Jr={class:`sec-label`},Yr={class:`f`},Xr=[`onUpdate:modelValue`],Zr=[`value`],Qr={key:0,class:`row-stale`},$r={class:`f`},ei=[`onUpdate:modelValue`],ti={class:`f`},ni=[`onUpdate:modelValue`,`placeholder`],ri={class:`f`},ii=[`onUpdate:modelValue`,`placeholder`],ai=[`onClick`],oi={class:`sec-label`},si={class:`f`},ci=[`onUpdate:modelValue`],li=[`value`],ui={class:`f`},di=[`onUpdate:modelValue`],fi={class:`f`},pi=[`onUpdate:modelValue`],mi=[`onClick`],hi=[`disabled`,`title`],gi={key:0,class:`m-note`},_i={key:1,class:`m-err`},vi={class:`m-actions`},yi=[`disabled`],bi={class:`modal`,style:{"max-width":`760px`}},xi={class:`modal-head`},Si={key:0,class:`dim`,style:{"margin-left":`8px`,"font-size":`12px`}},Ci={key:0,class:`banner good`,style:{margin:`6px 0`}},wi={key:1,class:`dim`},Ti={key:2,class:`pane-empty`},Ei={class:`ver-head`},Di={class:`mono ver-v`},Oi={class:`mono dim`},ki={class:`ver-actor`},Ai=[`onClick`],ji={key:0,class:`ver-desc`},Mi={class:`ver-diff mono`},Ni={class:`aw-tile query-card`},Pi={class:`sec-label`},Fi={class:`q-grid`},Ii={class:`f`},Li={value:``},Ri=[`value`],zi={class:`f`},Bi=[`disabled`],Vi={value:``},Hi=[`value`],Ui={class:`f`},Wi={value:``},Gi=[`value`],Ki={class:`f`},qi={value:``},Ji=[`value`],Yi={class:`f`},Xi={class:`f`},Zi={class:`f q-actions`},Qi=[`disabled`],$i={key:0,class:`banner bad`,style:{"margin-top":`8px`}},ea={key:1,class:`q-result`},ta={class:`nodes-table`},na={class:`mono dim`},ra={class:`mono`},ia={class:`mono`},aa={class:`mono`},oa={class:`mono dim`},sa={key:6,class:`aw-tile table-card`},ca={class:`sec-label`},la={class:`nodes-table`},ua={class:`mono dim`},da={class:`mono`},fa={class:`mono dim`},pa={class:`dim`},ma={class:`modal`},ha={class:`m-title`},ga={class:`f-grid`},_a={class:`f`},va=[`placeholder`],ya={class:`f`},ba=[`placeholder`],xa={key:0,class:`m-err`},Sa={class:`m-actions`},Ca=[`disabled`],wa={key:8,class:`err`},Ta={class:`aw-tile ledger-card`},Ea={class:`ledger-head`},Da={value:``},Oa=[`value`],ka={class:`ledger-tri`},Aa={class:`tri-cell`},ja={class:`mono`},Ma={class:`tri-cell`},Na={class:`mono`},Pa={class:`tri-cell`},Fa={class:`mono`},Ia={class:`ledger-cols`},La={class:`ledger-col`},Ra={class:`sec-t`},za={class:`ledger-list mono`},Ba={class:`ledger-col`},Va={class:`sec-t`},Ha={class:`ledger-list`},Ua={class:`mono`},Wa=y(t({__name:`[id]`,setup(t){let{t:y}=oe(),Wa=ie(),x=ue(),Ga=ce(),Ka=de();Ga.load();let S=o(()=>String(Wa.params.id??``)),C=o(()=>x.lines.find(e=>e.id===S.value)),w=o(()=>x.lineStateOf(S.value));x.load();let qa=x.ensureWsFeed();ne(()=>qa());let Ja=e=>(e.deviceIds??(e.deviceBindingId?[e.deviceBindingId]:[])).map(e=>Ya(e)).join(` / `)||`—`,Ya=e=>e?Ka.twins.find(t=>t.id===e)?.name??e:y(`dcwDetail.k3own4q121`),Xa=o(()=>({idle:y(`dcwDetail.k3zgkk122`),writing:y(`dcwDetail.k3l3h80123`),ok:y(`dcwDetail.stAck`),error:y(`dcwDetail.k40reu124`),offline:y(`dcwDetail.k44c2n125`)}));function Za(e){let t=e??``;return x.templates.find(e=>e.key===(t.startsWith(`dcw-`)?t.slice(4):t))?.ch??t}function Qa(e){return x.nodeById(e)?.min}function $a(e){return x.nodeById(e)?.max}let eo=o(()=>Ga.nodes.filter(e=>e.lineId===S.value)),T=p(``),E=p(null),to=p(!1);async function no(){if(T.value){to.value=!0;try{E.value=await x.fetchLedger(T.value)}finally{to.value=!1}}}async function ro(){T.value&&(await x.rollbackNode(T.value),await no())}function io(e){return Ga.nodeById(e)?.name??e}let D=o(()=>x.nodes.filter(e=>e.lineId===S.value)),O=o(()=>x.products.filter(e=>e.lineId===S.value)),ao=o(()=>x.recipes.filter(e=>e.lineId===S.value)),oo=o(()=>x.runs.filter(e=>e.lineId===S.value)),so=o(()=>{let e=new Set(D.value.map(e=>e.id));return x.history.filter(t=>e.has(t.nodeId))}),co=o(()=>x.nodes.filter(e=>!e.lineId)),lo=o(()=>x.products.filter(e=>!e.lineId));async function uo(e){await x.patchNode(e,{lineId:S.value});let t=x.nodeById(e);t&&(t.lineId=S.value)}async function fo(e){await x.updateProduct(e,{lineId:S.value}),await x.load()}let k=s({}),po=p(``),A=p(``),mo=p(``);async function ho(e,t){po.value=e,A.value=``,mo.value=``;try{let n=await x.write(e,t);n.ok?(mo.value=y(`dcwDetail.k1alcbyu182`,{p0:x.nodeById(e)?.name??e,p1:n.message}),k[e]=``):A.value=y(`dcwDetail.kl1e9x9183`,{p0:x.nodeById(e)?.name??e,p1:n.message})}catch(e){A.value=b(e)}finally{po.value=``}}let go=p(``);async function _o(e){go.value=e,A.value=``;try{await x.readNode(e)}catch(e){A.value=b(e)}finally{go.value=``}}let vo=p(``);async function yo(e,t){vo.value=e,A.value=``;try{await x.patchNode(e,{enabled:t});let n=x.nodeById(e);n&&(n.enabled=t,t?n.state===`offline`&&(n.state=`idle`):n.state=`offline`)}catch(e){A.value=b(e)}finally{vo.value=``}}let j=p(!1),bo=p(`mock`),xo=p(x.templates[0]?.key??``),So=p(`mock`),Co=p(``),wo=p(null),To=p(null),M=p({}),N=s({kind:`none`,scale:1,offset:0}),Eo=p(``),Do=p(!1),P=p(null),Oo=p(!1),ko=p(``),Ao=o(()=>x.driverCatalog.length?x.driverCatalog:le.map(e=>({...e}))),jo=o(()=>Ao.value.find(e=>e.kind===So.value)),Mo=o(()=>jo.value?.configFields??[]);function No(){let e={};for(let t of Mo.value)t.default!==void 0&&(e[t.key]=t.default);M.value=e,P.value=null}No();async function Po(){Do.value=!0,P.value=null;try{P.value=await x.testDriver(So.value,M.value)}catch(e){P.value={ok:!1,message:b(e)}}finally{Do.value=!1}}async function Fo(){Oo.value=!0,ko.value=``;try{for(let e of Mo.value)if(e.required&&(M.value[e.key]===void 0||M.value[e.key]===``))throw Error(y(`dcwDetail.k8x1un1184`,{p0:e.label}));let e=N.kind===`linear`?{kind:`linear`,scale:Number(N.scale),offset:Number(N.offset)}:void 0;await x.createFromTemplate(`dcw-${xo.value}`,{name:Co.value.trim()||void 0,driver:So.value,driverConfig:{...M.value},transform:e,holdIntervalMs:wo.value,readIntervalMs:To.value,lineId:S.value,semantics:Eo.value.trim()||void 0}),j.value=!1,Co.value=``,Eo.value=``}catch(e){ko.value=b(e)}finally{Oo.value=!1}}let Io=p(!1),Lo=p(!1),F=p(``),I=p(``);function Ro(){Io.value=!0,F.value=``,I.value=``}let L=s({name:``,ch:``,code:``,unit:``,min:``,max:``,decimals:1,icon:`gateway`,semantics:``}),zo=[{key:`thermo`,label:y(`dcwDetail.k422b8126`)},{key:`pressure`,label:y(`dcwDetail.k3x6ff127`)},{key:`tension`,label:y(`dcwDetail.k3z9xc128`)},{key:`encoder`,label:y(`dcwDetail.kjb3vhs129`)},{key:`camera`,label:y(`dcwDetail.k47atw130`)},{key:`gateway`,label:y(`dcwDetail.k48c07131`)}];async function Bo(){Lo.value=!0,F.value=``,I.value=``;try{if(!L.name.trim())throw Error(y(`dcwDetail.k6ugbw2132`));if(L.unit.trim()===``)throw Error(y(`dcwDetail.kx3pg59133`));if(L.min===``||L.max===``)throw Error(y(`dcwDetail.k13awowo134`));let e=await x.createTemplate({name:L.name.trim(),ch:L.ch.trim()||L.name.trim(),code:L.code.trim()||`CUSTOM`,unit:L.unit.trim(),min:Number(L.min),max:Number(L.max),decimals:Number(L.decimals)||0,icon:L.icon,semantics:L.semantics.trim()||void 0});xo.value=e.key,I.value=y(`dcwDetail.ky4e1tr185`,{p0:fe(y,e)}),L.name=``,L.ch=``,L.code=``,L.unit=``,L.min=``,L.max=``,L.semantics=``}catch(e){F.value=b(e)}finally{Lo.value=!1}}let R=p(``),z=p(``),B=p(!1),V=p(``),H=p(``),Vo=o(()=>ao.value.filter(e=>e.productId===R.value));async function Ho(){B.value=!0,V.value=``,H.value=``;try{if(!z.value)throw Error(y(`dcwDetail.k1b6qe0r135`));await x.startLine(S.value,z.value),V.value=y(`dcwDetail.k17jteb9186`,{p0:w.value.productName,p1:w.value.recipeName,p2:w.value.runId})}catch(e){H.value=b(e)}finally{B.value=!1}}async function Uo(){B.value=!0,V.value=``,H.value=``;try{let e=`${w.value.productName??``} · ${w.value.recipeName??``}`;await x.stopLine(S.value),V.value=y(`dcwDetail.kzl49pd187`,{p0:e})}catch(e){H.value=b(e)}finally{B.value=!1}}let Wo=p(!1),Go=p(!1),Ko=p(``),U=s({name:``,description:``}),W=p(``);async function qo(){Go.value=!0,Ko.value=``;try{let e=await x.createProduct({name:U.name.trim(),description:U.description.trim(),lineId:S.value});R.value=e.id,W.value=e.id,Wo.value=!1,U.name=``,U.description=``}catch(e){Ko.value=b(e)}finally{Go.value=!1}}let Jo=o(()=>W.value?ao.value.filter(e=>e.productId===W.value):ao.value),Yo=e=>x.products.find(t=>t.id===e)?.name??e;function G(e,t){let n=x.nodes.find(t=>t.id===e);return n?n.enabled?t&&n.lineId!==t?{code:`unbound`,label:y(`dcwDetail.staleUnbound`)}:null:{code:`disabled`,label:y(`dcwDetail.staleDisabled`)}:{code:`deleted`,label:y(`dcwDetail.staleDeleted`)}}function Xo(e){return x.nodes.find(t=>t.id===e)?.name??e}function Zo(e,t){let n=Ga.nodes.find(t=>t.id===e);return n?n.enabled?t&&n.lineId!==t?{code:`unbound`,label:y(`dcwDetail.staleUnbound`)}:null:{code:`disabled`,label:y(`dcwDetail.staleDisabled`)}:{code:`deleted`,label:y(`dcwDetail.staleDeleted`)}}let Qo=p(!1),K=p(null),$o=p([]),es=p(!1),q=p(``);async function ts(e){K.value=x.recipes.find(t=>t.id===e)??null,Qo.value=!0,q.value=``,es.value=!0;try{$o.value=await x.recipeVersions(e)}catch(e){q.value=b(e)}finally{es.value=!1}}let ns=e=>e===`agent`?`Agent`:y(e===`system`?`dcwDetail.srcSystem`:`dcwDetail.srcUser`);function rs(e,t){if(t===0)return y(`dcwDetail.histInit`);let n=$o.value[t-1],r=e.params.map(e=>({p:e,old:n.params.find(t=>t.nodeId===e.nodeId)})).filter(({p:e,old:t})=>!t||t.value!==e.value).map(({p:e,old:t})=>`${x.nodes.find(t=>t.id===e.nodeId)?.name??e.nodeId}: ${t?.value??y(`dcwDetail.histAdded`)} → ${e.value}`);return r.length>0?r.join(`;`):y(`dcwDetail.histNoChange`)}async function is(e){if(K.value){q.value=``;try{let t=await x.revertRecipe(K.value.id,{version:e,reason:y(`dcwDetail.revertReasonUi`)});q.value=y(`dcwDetail.revertOk`,{p0:t.version??0}),$o.value=await x.recipeVersions(K.value.id)}catch(e){q.value=b(e)}}}let J=s({productId:``,recipeId:``,paramKey:``,nodeId:``,lastMin:30,bucketMs:15e3}),as=p(null),os=p(!1),ss=p(``);async function cs(){os.value=!0,ss.value=``,as.value=null;try{as.value=await x.queryLine({lineId:S.value,productId:J.productId||void 0,recipeId:J.recipeId||void 0,paramKey:J.paramKey||void 0,nodeId:J.nodeId||void 0,fromMs:Date.now()-J.lastMin*6e4,toMs:Date.now(),bucketMs:J.bucketMs>0?J.bucketMs:void 0,limit:2e3}),as.value.channels.length===0&&(ss.value=y(`dcwDetail.kszv5sq136`))}catch(e){ss.value=b(e)}finally{os.value=!1}}let ls=o(()=>x.templates.map(e=>e.key)),Y=p(!1),us=p(null),ds=p(!1),X=p(``),fs=p(``),Z=s({productId:``,name:``,description:``,params:[],daqWindows:[]}),Q=p(null),$=p(null),ps=p(!1);function ms(){us.value=null,X.value=``,Z.productId=W.value||R.value||O.value[0]?.id||``,Z.name=``,Z.description=``,Z.params=[{nodeId:D.value[0]?.id??``,value:``,min:``,max:``}],Z.daqWindows=[],Y.value=!0}function hs(e){let t=x.recipes.find(t=>t.id===e);if(!t)return;us.value=e,X.value=``;let n=t.params.filter(e=>x.nodes.some(t=>t.id===e.nodeId)),r=t.params.length-n.length;fs.value=r>0?y(`dcwDetail.staleDropped`,{p0:r}):``,Z.productId=t.productId,Z.name=t.name,Z.description=t.description,Z.params=n.map(e=>({nodeId:e.nodeId,value:e.value,min:e.min??``,max:e.max??``})),Z.daqWindows=(t.daqWindows??[]).map(e=>({nodeId:e.nodeId,min:e.min??``,max:e.max??``})),Y.value=!0}async function gs(){ds.value=!0,X.value=``;try{let e={productId:Z.productId,name:Z.name.trim(),description:Z.description.trim(),params:Z.params.filter(e=>e.nodeId&&e.value!==``&&Number.isFinite(Number(e.value))).map(e=>({nodeId:e.nodeId,value:Number(e.value),...e.min!==``&&Number.isFinite(Number(e.min))?{min:Number(e.min)}:{},...e.max!==``&&Number.isFinite(Number(e.max))?{max:Number(e.max)}:{}})),daqWindows:Z.daqWindows.filter(e=>e.nodeId&&(e.min!==``||e.max!==``)).map(e=>({nodeId:e.nodeId,...e.min!==``&&Number.isFinite(Number(e.min))?{min:Number(e.min)}:{},...e.max!==``&&Number.isFinite(Number(e.max))?{max:Number(e.max)}:{}}))};us.value?await x.updateRecipe(us.value,e):await x.createRecipe(e),Y.value=!1}catch(e){X.value=b(e)}finally{ds.value=!1}}async function _s(e){Q.value=null,A.value=``;try{let t=await x.applyRecipe(e),n=t.results.filter(e=>e.ok).length;Q.value={runId:t.id,ok:n,total:t.results.length},n<t.results.length&&(A.value=y(`dcwDetail.ks7szkt188`,{p0:t.results.filter(e=>!e.ok).map(e=>e.message).join(`;`)}))}catch(e){A.value=b(e)}}async function vs(e){ps.value=!0;try{let t=await x.runData(e);$.value={runId:e,data:t}}catch(e){A.value=b(e)}finally{ps.value=!1}}function ys(e){let t=e?.value??e?.avg;return t==null?`--`:String(Math.round(t*1e3)/1e3)}return(t,o)=>{let s=ae,p=se;return m(x).loaded&&!C.value?(r(),l(`div`,pe,[c(`p`,me,n(t.$t(`dcwDetail.k19337yp018`)),1),ee(s,{class:`pill-btn`,to:`/dcw`},{default:te(()=>[h(n(t.$t(`dcwDetail.kllwu1c019`)),1)]),_:1})])):(r(),l(`div`,he,[c(`div`,ge,[c(`div`,null,[c(`p`,_e,[c(`span`,{class:`line-chip`,style:e({background:C.value?.color??`#3aa0ff`})},null,4),h(`AGENTWORKSHOP / LINE / `+n(C.value?.name??S.value),1)]),c(`h1`,null,n(C.value?.name??t.$t(`dcwDetail.k1b2snna151`))+` · `+n(t.$t(`dcwDetail.k1l0iow1137`)),1),c(`p`,ve,n(C.value?.description||t.$t(`dcwDetail.kzcbfki152`)),1)]),c(`div`,ye,[c(`span`,be,n(t.$t(`dcwDetail.k45uio082`))+` `+n(D.value.length),1),c(`span`,xe,n(t.$t(`dcwDetail.k3waz1025`))+` `+n(O.value.length),1),c(`span`,Se,n(t.$t(`dcwDetail.k48grv027`))+` `+n(ao.value.length),1)])]),c(`section`,Ce,[c(`div`,we,[c(`button`,{class:i([`aw-pill`,{running:m(x).controller.running}]),title:t.$t(`dcwDetail.k1snap154`),onClick:o[0]||=e=>m(x).startStop(m(x).controller.running?`pause`:`resume`)},[c(`span`,{class:i(m(x).controller.running?`i-tabler-player-pause`:`i-tabler-player-play`)},null,2),h(` `+n(m(x).controller.running?t.$t(`dcwDetail.kplrsg153`):t.$t(`dcwDetail.knxgni9169`)),1)],10,Te)]),c(`div`,Ee,[c(`span`,De,[c(`span`,null,n(t.$t(`dcwDetail.k45uio082`))+` `+n(m(x).controller.nodesOnline)+`/`+n(m(x).controller.nodesTotal),1),o[55]||=c(`span`,{class:`sep`},`·`,-1),c(`span`,{title:t.$t(`dcwDetail.kd3ygmn001`)},n(t.$t(`dcwDetail.k3wtib138`))+` `+n(m(x).controller.writesTotal),9,Oe),o[56]||=c(`span`,{class:`sep`},`·`,-1),c(`span`,{class:i({warn:m(x).controller.writesFailed>0}),title:t.$t(`dcwDetail.kd3znl0002`)},n(t.$t(`dcwDetail.k3yit7139`))+` `+n(m(x).controller.writesFailed),11,ke)]),c(`button`,{class:`aw-pill outline`,title:t.$t(`dcwDetail.kc4ixly003`),onClick:Ro},[o[57]||=c(`span`,{class:`i-tabler-template`},null,-1),h(` `+n(t.$t(`dcwDetail.k1972dx9020`)),1)],8,Ae),c(`button`,{class:`aw-pill add-btn`,onClick:o[1]||=e=>j.value=!0},[o[58]||=c(`span`,{class:`i-tabler-plus`},null,-1),h(` `+n(t.$t(`dcwDetail.k1976uns021`)),1)])])]),A.value||mo.value?(r(),l(`p`,{key:0,class:i([`banner`,A.value?`bad`:`good`])},n(A.value||mo.value),3)):d(``,!0),co.value.length||lo.value.length?(r(),l(`section`,je,[c(`b`,Me,n(t.$t(`dcwDetail.kaebkky022`)),1),c(`div`,Ne,[(r(!0),l(u,null,a(co.value,e=>(r(),l(`span`,{key:e.id,class:`adopt-chip`},[h(n(e.name)+` `,1),c(`button`,{class:`mini-btn`,onClick:t=>uo(e.id)},n(t.$t(`dcwDetail.kyjp9fg023`)),9,Pe)]))),128)),(r(!0),l(u,null,a(lo.value,e=>(r(),l(`span`,{key:e.id,class:`adopt-chip`},[h(n(e.name)+`(`+n(t.$t(`dcwDetail.k3km252140`)),1),c(`button`,{class:`mini-btn`,onClick:t=>fo(e.id)},n(t.$t(`dcwDetail.kyjp9fg023`)),9,Fe)]))),128))])])):d(``,!0),c(`section`,Ie,[c(`div`,Le,[c(`span`,{class:i([`line-dot`,{on:w.value.active}])},null,2),c(`div`,Re,[c(`b`,null,n(w.value.active?t.$t(`dcwDetail.k1pxrhx0154`):t.$t(`dcwDetail.k1b2hxmx170`)),1),w.value.active?(r(),l(`small`,ze,n(w.value.productName)+` · `+n(w.value.recipeName)+` · `+n(t.$t(`dcwDetail.k400lb075`))+` `+n(w.value.runId)+` · `+n(t.$t(`dcwDetail.k3zkt2166`))+` `+n(w.value.startedAt?.slice(11,19))+` `+n(t.$t(`dcwDetail.k69vag8168`))+` `+n(w.value.taggedSamples)+` `+n(t.$t(`dcwDetail.k4118o085`)),1)):(r(),l(`small`,Be,n(t.$t(`dcwDetail.k19pof14024`)),1))])]),c(`div`,Ve,[c(`label`,He,[c(`span`,null,n(t.$t(`dcwDetail.k3waz1025`)),1),f(c(`select`,{"onUpdate:modelValue":o[2]||=e=>R.value=e,class:`inp`,onChange:o[3]||=e=>z.value=``},[c(`option`,Ue,n(t.$t(`dcwDetail.kuisodh026`)),1),(r(!0),l(u,null,a(O.value,e=>(r(),l(`option`,{key:e.id,value:e.id},n(e.name),9,We))),128))],544),[[g,R.value]])]),c(`label`,Ge,[c(`span`,null,n(t.$t(`dcwDetail.k48grv027`)),1),f(c(`select`,{"onUpdate:modelValue":o[4]||=e=>z.value=e,class:`inp`,disabled:!R.value},[c(`option`,qe,n(t.$t(`dcwDetail.kutxzsz028`)),1),(r(!0),l(u,null,a(Vo.value,e=>(r(),l(`option`,{key:e.id,value:e.id,disabled:e.params.length===0},n(e.name)+n(e.params.length===0?t.$t(`dcwDetail.k1hicmch155`):t.$t(`dcwDetail.k1lzfi4g180`,{p0:e.params.length})),9,Je))),128))],8,Ke),[[g,z.value]])]),w.value.active?(r(),l(`button`,{key:1,class:`pill-btn stop`,disabled:B.value,onClick:Uo},n(t.$t(`dcwDetail.k1xyhd2y030`)),9,Xe)):(r(),l(`button`,{key:0,class:`pill-btn`,disabled:B.value||!z.value,title:z.value?t.$t(`dcwDetail.startTip`):t.$t(`dcwDetail.startNeedRecipe`),onClick:Ho},n(t.$t(`dcwDetail.kfb8vml029`)),9,Ye))]),H.value?(r(),l(`p`,Ze,n(H.value),1)):d(``,!0),V.value?(r(),l(`p`,Qe,n(V.value),1)):d(``,!0)]),Io.value?(r(),l(`div`,{key:2,class:`modal-mask`,onClick:o[15]||=_(e=>Io.value=!1,[`self`])},[c(`div`,$e,[c(`h3`,et,[h(n(t.$t(`dcwDetail.k1x4vam0031`))+` `,1),c(`small`,tt,n(t.$t(`dcwDetail.k3x23c141`))+` `+n(m(x).templates.filter(e=>e.builtin).length)+` · `+n(t.$t(`dcwDetail.k3t616a142`))+` `+n(m(x).templates.filter(e=>!e.builtin).length),1)]),c(`p`,nt,n(t.$t(`dcwDetail.ke1iyud032`)),1),c(`div`,rt,[(r(!0),l(u,null,a(m(x).templates,e=>(r(),l(`span`,{key:e.key,class:`tpl-chip`,title:`${e.code} · ${e.min}~${e.max} ${e.unit}${e.semantics?` · ${e.semantics}`:``}`},[h(n((`catalogTplName`in t?t.catalogTplName:m(fe))(m(y),e))+` `,1),c(`small`,at,n(e.min)+`~`+n(e.max)+n(e.unit),1),c(`em`,{class:i([`tpl-tag`,{builtin:e.builtin}])},n(e.builtin?t.$t(`dcwDetail.k3x23c141`):t.$t(`dcwDetail.k3t616a142`)),3)],8,it))),128))]),c(`p`,ot,n(t.$t(`dcwDetail.k169eb4s033`)),1),c(`div`,st,[c(`label`,ct,[c(`span`,null,[h(n(t.$t(`dcwDetail.k1f55q76034`)),1),o[59]||=c(`em`,null,`*`,-1)]),f(c(`input`,{"onUpdate:modelValue":o[5]||=e=>L.name=e,class:`inp`,placeholder:t.$t(`dcwDetail.k1tooi3o004`)},null,8,lt),[[v,L.name]])]),c(`label`,ut,[c(`span`,null,n(t.$t(`dcwDetail.k1bqk219035`)),1),f(c(`input`,{"onUpdate:modelValue":o[6]||=e=>L.ch=e,class:`inp`,placeholder:t.$t(`dcwDetail.k698qz0005`)},null,8,dt),[[v,L.ch]])]),c(`label`,ft,[c(`span`,null,n(t.$t(`dcwDetail.k1ayxrqb036`)),1),f(c(`input`,{"onUpdate:modelValue":o[7]||=e=>L.code=e,class:`inp`,placeholder:t.$t(`dcwDetail.codePh`)},null,8,pt),[[v,L.code]])]),c(`label`,mt,[c(`span`,null,[h(n(t.$t(`dcwDetail.k3x4ef037`)),1),o[60]||=c(`em`,null,`*`,-1)]),f(c(`input`,{"onUpdate:modelValue":o[8]||=e=>L.unit=e,class:`inp`,placeholder:t.$t(`dcwDetail.unitPh`)},null,8,ht),[[v,L.unit]])]),c(`label`,gt,[c(`span`,null,[h(n(t.$t(`dcwDetail.k1l9jv5m038`)),1),o[61]||=c(`em`,null,`*`,-1)]),f(c(`input`,{"onUpdate:modelValue":o[9]||=e=>L.min=e,type:`number`,class:`inp`,placeholder:t.$t(`dcwDetail.kxz9174006`)},null,8,_t),[[v,L.min,void 0,{number:!0}]])]),c(`label`,vt,[c(`span`,null,[h(n(t.$t(`dcwDetail.k1l9jv4p039`)),1),o[62]||=c(`em`,null,`*`,-1)]),f(c(`input`,{"onUpdate:modelValue":o[10]||=e=>L.max=e,type:`number`,class:`inp`,placeholder:t.$t(`dcwDetail.kxz9167007`)},null,8,yt),[[v,L.max,void 0,{number:!0}]])]),c(`label`,bt,[c(`span`,null,n(t.$t(`dcwDetail.k3mxmcx040`)),1),f(c(`input`,{"onUpdate:modelValue":o[11]||=e=>L.decimals=e,type:`number`,min:`0`,max:`4`,class:`inp`},null,512),[[v,L.decimals,void 0,{number:!0}]])]),c(`label`,xt,[c(`span`,null,n(t.$t(`dcwDetail.k3xx56041`)),1),f(c(`select`,{"onUpdate:modelValue":o[12]||=e=>L.icon=e,class:`inp`},[(r(),l(u,null,a(zo,e=>c(`option`,{key:e.key,value:e.key},n(e.label),9,St)),64))],512),[[g,L.icon]])])]),c(`label`,Ct,[c(`span`,null,n(t.$t(`dcwDetail.knjmyfr042`)),1),f(c(`textarea`,{"onUpdate:modelValue":o[13]||=e=>L.semantics=e,class:`inp`,rows:`2`,placeholder:t.$t(`dcwDetail.k1qdnfzc008`)},null,8,wt),[[v,L.semantics]])]),I.value?(r(),l(`p`,Tt,n(I.value),1)):d(``,!0),F.value?(r(),l(`p`,Et,n(F.value),1)):d(``,!0),c(`div`,Dt,[c(`button`,{class:`aw-pill outline`,onClick:o[14]||=e=>Io.value=!1},n(t.$t(`dcwDetail.k3x62t043`)),1),c(`button`,{class:`pill-btn`,disabled:Lo.value||!L.name.trim()||L.unit.trim()===``||L.min===``||L.max===``,onClick:Bo},n(Lo.value?t.$t(`dcwDetail.k1bg4759156`):t.$t(`dcwDetail.k1bg9nga171`)),9,Ot)])])])):d(``,!0),j.value?(r(),l(`div`,{key:3,class:`modal-mask`,onClick:o[28]||=_(e=>j.value=!1,[`self`])},[c(`div`,kt,[c(`h3`,At,n(t.$t(`dcwDetail.k1976uns021`)),1),c(`div`,jt,[c(`button`,{class:i([`seg`,{on:bo.value===`mock`}]),onClick:o[16]||=e=>bo.value=`mock`},n(t.$t(`dcwDetail.mockPlc`)),3),c(`button`,{class:i([`seg`,{on:bo.value===`real`}]),onClick:o[17]||=e=>bo.value=`real`},n(t.$t(`dcwDetail.kyj8fen044`)),3)]),c(`div`,Mt,[c(`label`,Nt,[c(`span`,null,n(t.$t(`dcwDetail.k1ejzwqp045`)),1),f(c(`select`,{"onUpdate:modelValue":o[18]||=e=>xo.value=e,class:`inp`},[(r(!0),l(u,null,a(m(x).templates,e=>(r(),l(`option`,{key:e.key,value:e.key},n((`catalogTplName`in t?t.catalogTplName:m(fe))(m(y),e))+` · `+n(e.ch)+`(`+n(e.min)+`~`+n(e.max)+` `+n(e.unit)+`)`+n(e.builtin?``:t.$t(`dcwDetail.kr45rk9157`)),9,Pt))),128))],512),[[g,xo.value]])]),c(`label`,Ft,[c(`span`,null,n(t.$t(`dcwDetail.k1ce2k1y046`)),1),f(c(`input`,{"onUpdate:modelValue":o[19]||=e=>Co.value=e,class:`inp`,placeholder:t.$t(`dcwDetail.kgpxzy3009`)},null,8,It),[[v,Co.value]])]),c(`label`,Lt,[c(`span`,null,n(t.$t(`dcwDetail.k1vyb8im047`)),1),f(c(`input`,{"onUpdate:modelValue":o[20]||=e=>wo.value=e,type:`number`,min:`0`,max:`3600000`,step:`500`,class:`inp`,placeholder:t.$t(`dcwDetail.kb1srz0010`)},null,8,Rt),[[v,wo.value,void 0,{number:!0}]])]),c(`label`,zt,[c(`span`,null,n(t.$t(`dcwDetail.k9r7d4e016`)),1),f(c(`input`,{"onUpdate:modelValue":o[21]||=e=>To.value=e,type:`number`,min:`0`,max:`3600000`,step:`500`,class:`inp`,placeholder:t.$t(`dcwDetail.k9r7d4e017`)},null,8,Bt),[[v,To.value,void 0,{number:!0}]])])]),c(`div`,Vt,[c(`label`,Ht,[c(`span`,null,n(t.$t(`dcwDetail.kiune1f048`)),1),f(c(`select`,{"onUpdate:modelValue":o[22]||=e=>N.kind=e,class:`inp`},[c(`option`,Ut,n(t.$t(`dcwDetail.kkzy0k049`)),1),c(`option`,Wt,n(t.$t(`dcwDetail.linearCalOpt`)),1)],512),[[g,N.kind]])]),c(`label`,Gt,[o[63]||=c(`span`,null,`scale / offset`,-1),c(`div`,Kt,[f(c(`input`,{"onUpdate:modelValue":o[23]||=e=>N.scale=e,type:`number`,step:`0.1`,class:`inp`,disabled:N.kind!==`linear`,title:t.$t(`dcwDetail.calScaleTip`)},null,8,qt),[[v,N.scale,void 0,{number:!0}]]),f(c(`input`,{"onUpdate:modelValue":o[24]||=e=>N.offset=e,type:`number`,step:`0.1`,class:`inp`,disabled:N.kind!==`linear`,title:t.$t(`dcwDetail.calOffsetTip`)},null,8,Jt),[[v,N.offset,void 0,{number:!0}]])])])]),bo.value===`real`?(r(),l(u,{key:0},[c(`div`,Yt,[c(`label`,Xt,[c(`span`,null,n(t.$t(`dcwDetail.k1kt87rx050`)),1),f(c(`select`,{"onUpdate:modelValue":o[25]||=e=>So.value=e,class:`inp`},[(r(!0),l(u,null,a(Ao.value.filter(e=>e.status!==`builtin`),e=>(r(),l(`option`,{key:e.kind,value:e.kind},n(e.label)+n(e.plugin?` ⌁`:``),9,Zt))),128))],512),[[g,So.value]])])]),Mo.value.length?(r(),l(`div`,Qt,[(r(!0),l(u,null,a(Mo.value,e=>(r(),l(`label`,{key:e.key,class:`f`},[c(`span`,null,[h(n(e.label),1),e.required?(r(),l(`em`,$t,`*`)):d(``,!0)]),e.type===`select`?f((r(),l(`select`,{key:0,"onUpdate:modelValue":t=>M.value[e.key]=t,class:`inp`},[(r(!0),l(u,null,a(e.options,e=>(r(),l(`option`,{key:e.value,value:e.value},n(e.label),9,tn))),128))],8,en)),[[g,M.value[e.key]]]):f((r(),l(`input`,{key:1,"onUpdate:modelValue":t=>M.value[e.key]=t,type:e.type===`number`?`number`:`text`,placeholder:e.placeholder,class:`inp`},null,8,nn)),[[re,M.value[e.key]]]),e.hint?(r(),l(`small`,rn,n(e.hint),1)):d(``,!0)]))),128))])):d(``,!0),c(`div`,an,[c(`button`,{class:`pill-btn outline`,disabled:Do.value,onClick:Po},n(Do.value?t.$t(`dcwDetail.k1fsh720158`):t.$t(`dcwDetail.k1fstglk172`)),9,on),P.value?(r(),l(`span`,{key:0,class:i([`test-result`,P.value.ok?`good`:`bad`])},n(P.value.ok?`✓`:`✗`)+` `+n(P.value.message),3)):d(``,!0)])],64)):d(``,!0),c(`label`,sn,[c(`span`,null,n(t.$t(`dcwDetail.k1hgizn7051`)),1),f(c(`textarea`,{"onUpdate:modelValue":o[26]||=e=>Eo.value=e,class:`inp`,rows:`2`,placeholder:t.$t(`dcwDetail.k12bnyt9011`)},null,8,cn),[[v,Eo.value]])]),ko.value?(r(),l(`p`,ln,n(ko.value),1)):d(``,!0),c(`div`,un,[c(`button`,{class:`aw-pill outline`,onClick:o[27]||=e=>j.value=!1},n(t.$t(`dcwDetail.k3xdnn052`)),1),c(`button`,{class:`aw-pill`,disabled:Oo.value,onClick:Fo},n(Oo.value?t.$t(`dcwDetail.k1bg4759156`):t.$t(`dcwDetail.k1bge46t173`)),9,dn)])])])):d(``,!0),ee(p,{spinning:!m(x).loaded&&!m(x).error},{default:te(()=>[c(`section`,fn,[c(`table`,pn,[c(`thead`,null,[c(`tr`,null,[c(`th`,null,n(t.$t(`dcwDetail.k1e2dtkt053`)),1),c(`th`,null,n(t.$t(`dcwDetail.k403cy054`)),1),c(`th`,null,n(t.$t(`dcwDetail.k42w8s055`)),1),c(`th`,null,n(t.$t(`dcwDetail.k1deqh0d056`)),1),c(`th`,null,n(t.$t(`dcwDetail.k9r7d4e018`)),1),c(`th`,null,n(t.$t(`dcwDetail.k1k79ec9057`)),1),c(`th`,null,n(t.$t(`dcwDetail.k1dexou6058`)),1),c(`th`,null,n(t.$t(`dcwDetail.k1b1nnaa059`)),1),c(`th`,null,n(t.$t(`dcwDetail.k1i8rtqt060`)),1),c(`th`,mn,n(t.$t(`dcwDetail.k40aa6061`)),1)])]),c(`tbody`,null,[(r(!0),l(u,null,a(D.value,e=>(r(),l(`tr`,{key:e.id,class:i({"node-paused":!e.enabled})},[c(`td`,null,[c(`span`,hn,n(e.id.slice(0,8)),1),c(`b`,null,n(e.name),1),c(`small`,gn,n(Za(e.templateRef)),1)]),c(`td`,null,[c(`button`,{class:i([`ctrl-toggle`,{on:e.enabled}]),disabled:vo.value===e.id,title:e.enabled?t.$t(`dcwDetail.pauseCtrlTip`):t.$t(`dcwDetail.enableCtrlTip`),onClick:t=>yo(e.id,!e.enabled)},[o[64]||=c(`span`,{class:`ct-dot`},null,-1),h(` `+n(e.enabled?t.$t(`dcwDetail.k3o3ib3159`):t.$t(`dcwDetail.k3n93ed062`)),1)],10,_n)]),c(`td`,null,[e.enabled?(r(),l(`span`,{key:1,class:i([`st-pill`,e.state])},n(Xa.value[e.state]??e.state),3)):(r(),l(`span`,vn,n(t.$t(`dcwDetail.k3n93ed062`)),1))]),c(`td`,yn,[h(n(e.value==null?`--`:e.value.toFixed(e.decimals))+` `,1),c(`small`,null,n(e.unit),1),e.lastAckAt?(r(),l(`small`,bn,` · `+n(e.lastAckAt.slice(11,19)),1)):d(``,!0)]),c(`td`,xn,[c(`span`,{title:e.lastReadError??t.$t(`dcwDetail.k9r7d4e019`),class:i({"read-stale":e.lastReadError})},n(e.readValue==null?`--`:e.readValue.toFixed(e.decimals)),11,Sn),c(`small`,null,n(e.unit),1),e.lastReadAt?(r(),l(`small`,Cn,` · `+n(e.lastReadAt.slice(11,19)),1)):d(``,!0),c(`button`,{class:`mini-btn read-btn`,disabled:go.value===e.id,title:t.$t(`dcwDetail.k9r7d4e020`),onClick:t=>_o(e.id)},n(go.value===e.id?`···`:t.$t(`dcwDetail.k9r7d4e021`)),9,wn)]),c(`td`,null,[c(`div`,Tn,[f(c(`input`,{"onUpdate:modelValue":t=>k[e.id]=t,type:`number`,class:`inp write-inp mono`,placeholder:`${e.min}~${e.max}`,min:e.min,max:e.max,step:10**-e.decimals,disabled:!e.enabled,title:e.enabled?``:t.$t(`dcwDetail.pausedTip`)},null,8,En),[[v,k[e.id],void 0,{number:!0}]]),c(`button`,{class:`mini-btn write-btn`,disabled:!e.enabled||po.value===e.id||k[e.id]==null||k[e.id]===``,title:e.enabled?t.$t(`dcwDetail.writeTip`):t.$t(`dcwDetail.pausedTip`),onClick:t=>ho(e.id,Number(k[e.id]))},n(po.value===e.id?t.$t(`dcwDetail.k3l3h80123`):t.$t(`dcwDetail.k3w6td174`)),9,Dn)])]),c(`td`,On,n(e.min)+` ~ `+n(e.max)+` `+n(e.unit),1),c(`td`,kn,[h(n(e.holdIntervalMs==null?t.$t(`dcwDetail.k3zul4160`):`${e.holdIntervalMs}ms`)+` `,1),c(`small`,{class:`dim`,title:t.$t(`dcwDetail.k9r7d4e016`)},`· `+n(e.readIntervalMs===0?t.$t(`dcwDetail.k9r7d4e022`):e.readIntervalMs==null?t.$t(`dcwDetail.k9r7d4e023`):`${e.readIntervalMs}ms`),9,An)]),c(`td`,null,n(Ja(e)),1),c(`td`,jn,[c(`button`,{class:`mini-btn danger`,onClick:t=>m(x).removeNode(e.id)},n(t.$t(`dcwDetail.k3xakp063`)),9,Mn)])],2))),128)),m(x).loaded&&D.value.length===0?(r(),l(`tr`,Nn,[c(`td`,Pn,[c(`div`,Fn,[c(`p`,In,n(t.$t(`dcwDetail.k1wtecyw064`)),1)])])])):d(``,!0)])])])]),_:1},8,[`spinning`]),c(`section`,Ln,[c(`div`,Rn,[c(`h3`,null,n(t.$t(`dcwDetail.k1j8w3hd065`)),1),c(`span`,zn,n(O.value.length)+` `+n(t.$t(`dcwDetail.k1av3wgs143`))+` `+n(Jo.value.length)+` `+n(t.$t(`dcwDetail.k48grv027`)),1),c(`button`,{class:`pill-btn`,style:{"margin-left":`auto`},onClick:ms},n(t.$t(`dcwDetail.k1akm6dc066`)),1),c(`button`,{class:`mini-btn`,onClick:o[29]||=e=>Wo.value=!0},n(t.$t(`dcwDetail.k1aka0ki067`)),1)]),c(`p`,Bn,n(t.$t(`dcwDetail.k6bl2q8068`)),1),O.value.length?(r(),l(`div`,Vn,[c(`button`,{class:i([`prod-chip`,{on:W.value===``}]),onClick:o[30]||=e=>W.value=``},n(t.$t(`dcwDetail.k3x4t1069`)),3),(r(!0),l(u,null,a(O.value,e=>(r(),l(`button`,{key:e.id,class:i([`prod-chip`,{on:W.value===e.id}]),title:e.description,onClick:t=>W.value=e.id},[h(n(e.name)+` `,1),c(`span`,{class:`prod-del`,title:t.$t(`dcwDetail.k1bpfjgx012`),onClick:_(t=>m(x).removeProduct(e.id),[`stop`])},`×`,8,Un)],10,Hn))),128))])):(r(),l(`p`,Wn,n(t.$t(`dcwDetail.knov3zg070`)),1)),c(`div`,Gn,[(r(!0),l(u,null,a(Jo.value,e=>(r(),l(`div`,{key:e.id,class:`recipe-item`},[c(`div`,Kn,[c(`b`,null,n(e.name),1),e.version?(r(),l(`span`,{key:0,class:`param-chip mono`,title:m(y)(`dcwDetail.histTitle`)},`v`+n(e.version),9,qn)):d(``,!0),c(`small`,Jn,n(Yo(e.productId)),1),c(`small`,Yn,n(e.id),1)]),e.description?(r(),l(`p`,Xn,n(e.description),1)):d(``,!0),c(`div`,Zn,[(r(!0),l(u,null,a(e.params,(t,a)=>(r(),l(`span`,{key:a,class:i([`param-chip`,{stale:G(t.nodeId,e.lineId)}]),title:G(t.nodeId,e.lineId)?.label??``},[h(n(Xo(t.nodeId))+` = `+n(t.value),1),G(t.nodeId,e.lineId)?(r(),l(`span`,$n,n(G(t.nodeId,e.lineId).label),1)):d(``,!0)],10,Qn))),128)),(r(!0),l(u,null,a(e.daqWindows,(a,ee)=>(r(),l(`span`,{key:`w-${ee}`,class:i([`param-chip daqwin`,{stale:Zo(a.nodeId,e.lineId)}]),title:Zo(a.nodeId,e.lineId)?.label??t.$t(`dcwDetail.k1l11api013`)},[h(` ◎ `+n(io(a.nodeId))+` ∈ [`+n(a.min??`-∞`)+`, `+n(a.max??`+∞`)+`]`,1),Zo(a.nodeId,e.lineId)?(r(),l(`span`,tr,n(Zo(a.nodeId,e.lineId).label),1)):d(``,!0)],10,er))),128))]),c(`div`,nr,[c(`button`,{class:`pill-btn`,onClick:t=>_s(e.id)},n(t.$t(`dcwDetail.k1497qvr071`)),9,rr),c(`button`,{class:`mini-btn`,onClick:t=>hs(e.id)},n(t.$t(`dcwDetail.k45eb0072`)),9,ir),c(`button`,{class:`mini-btn`,onClick:t=>ts(e.id)},[h(n(m(y)(`dcwDetail.histBtn`)),1),e.version?(r(),l(`span`,or,`·v`+n(e.version),1)):d(``,!0)],8,ar),c(`button`,{class:`mini-btn danger`,onClick:t=>m(x).removeRecipe(e.id)},n(t.$t(`dcwDetail.k3xakp063`)),9,sr)])]))),128)),Jo.value.length===0?(r(),l(`div`,cr,n(t.$t(`dcwDetail.keko1xy073`)),1)):d(``,!0)]),Q.value?(r(),l(`div`,lr,[h(n(t.$t(`dcwDetail.k1l3hrvp144`))+` `+n(Q.value.runId)+` `+n(t.$t(`dcwDetail.k1g3lh2v167`))+n(Q.value.ok)+`/`+n(Q.value.total)+` `+n(t.$t(`dcwDetail.k1bqci06149`))+` `,1),c(`button`,{class:`mini-btn`,style:{"margin-left":`10px`},disabled:ps.value,onClick:o[31]||=e=>vs(Q.value.runId)},n(ps.value?t.$t(`dcwDetail.k1br0ij9161`):t.$t(`dcwDetail.kxwei5175`)),9,ur)])):d(``,!0),oo.value.length?(r(),l(`div`,dr,[c(`p`,fr,n(t.$t(`dcwDetail.k1rjer8d074`)),1),c(`table`,pr,[c(`thead`,null,[c(`tr`,null,[c(`th`,null,n(t.$t(`dcwDetail.k400lb075`)),1),c(`th`,null,n(t.$t(`dcwDetail.k48grv027`)),1),c(`th`,null,n(t.$t(`dcwDetail.k4497j076`)),1),c(`th`,null,n(t.$t(`dcwDetail.k1bqhtmu077`)),1),c(`th`,mr,n(t.$t(`dcwDetail.k40aa6061`)),1)])]),c(`tbody`,null,[(r(!0),l(u,null,a([...oo.value].reverse().slice(0,8),e=>(r(),l(`tr`,{key:e.id},[c(`td`,hr,n(e.id),1),c(`td`,null,n(e.recipeName),1),c(`td`,gr,n(e.startedAt.slice(5,19))+` ~ `+n(e.endedAt?e.endedAt.slice(5,19):t.$t(`dcwDetail.k3vpfg9162`)),1),c(`td`,null,[c(`span`,{class:i([`st-pill`,e.results.every(e=>e.ok)?`ok`:`warn`])},n(e.results.filter(e=>e.ok).length)+`/`+n(e.results.length),3)]),c(`td`,_r,[c(`button`,{class:`mini-btn`,disabled:ps.value,onClick:t=>vs(e.id)},n(t.$t(`dcwDetail.k1dzwrdp078`)),9,vr),e.endedAt?d(``,!0):(r(),l(`button`,{key:0,class:`mini-btn`,onClick:t=>m(x).closeRun(e.id)},n(t.$t(`dcwDetail.k1blr7y7079`)),9,yr))])]))),128))])])])):d(``,!0),$.value?(r(),l(`div`,{key:4,class:`modal-mask`,onClick:o[33]||=_(e=>$.value=null,[`self`])},[c(`div`,br,[c(`h3`,xr,n(t.$t(`dcwDetail.k11lq94k145`))+` `+n($.value.data.run.recipeName)+`(`+n($.value.runId)+`) `,1),c(`p`,Sr,n(t.$t(`dcwDetail.k1me41w8080`)),1),c(`table`,Cr,[c(`thead`,null,[c(`tr`,null,[c(`th`,null,n(t.$t(`dcwDetail.k48hde081`)),1),c(`th`,null,n(t.$t(`dcwDetail.k45uio082`)),1),c(`th`,null,n(t.$t(`dcwDetail.k40t11083`)),1),c(`th`,null,n(t.$t(`dcwDetail.k3xuaw084`)),1),o[65]||=c(`th`,null,`min ~ max`,-1),c(`th`,null,n(t.$t(`dcwDetail.k4118o085`)),1)])]),c(`tbody`,null,[(r(!0),l(u,null,a($.value.data.daq,e=>(r(),l(`tr`,{key:e.nodeId},[c(`td`,null,[h(n(e.ch),1),c(`small`,wr,n(e.unit),1)]),c(`td`,null,n(e.nodeName),1),c(`td`,Tr,n(e.latest),1),c(`td`,Er,n(e.avg),1),c(`td`,Dr,n(e.min)+` ~ `+n(e.max),1),c(`td`,Or,n(e.cnt),1)]))),128)),$.value.data.daq.length===0?(r(),l(`tr`,kr,[c(`td`,Ar,n(t.$t(`dcwDetail.kd457ry086`)),1)])):d(``,!0)])]),c(`p`,jr,n(t.$t(`dcwDetail.k12b7cxs087`)),1),c(`table`,Mr,[c(`thead`,null,[c(`tr`,null,[c(`th`,null,n(t.$t(`dcwDetail.k3xbjr088`)),1),c(`th`,null,n(t.$t(`dcwDetail.k45uio082`)),1),c(`th`,null,n(t.$t(`dcwDetail.k3ncbsh089`)),1),c(`th`,null,n(t.$t(`dcwDetail.k3lh3mz090`)),1),c(`th`,null,n(t.$t(`dcwDetail.k454pg091`)),1),c(`th`,null,n(t.$t(`dcwDetail.k40ieu092`)),1)])]),c(`tbody`,null,[(r(!0),l(u,null,a($.value.data.writes,(e,a)=>(r(),l(`tr`,{key:a},[c(`td`,null,n(e.param),1),c(`td`,null,n(e.nodeName),1),c(`td`,Nr,n(e.eng),1),c(`td`,Pr,n(e.raw),1),c(`td`,null,[c(`span`,{class:i([`st-pill`,e.ok?`ok`:`alarm`])},n(e.ok?`ACK`:t.$t(`dcwDetail.k3yit7139`)),3)]),c(`td`,Fr,n(e.at.slice(5,19)),1)]))),128)),$.value.data.writes.length===0?(r(),l(`tr`,Ir,[c(`td`,Lr,n(t.$t(`dcwDetail.knzcp8i093`)),1)])):d(``,!0)])]),c(`div`,Rr,[c(`button`,{class:`aw-pill outline`,onClick:o[32]||=e=>$.value=null},n(t.$t(`dcwDetail.k3x62t043`)),1)])])])):d(``,!0)]),Y.value?(r(),l(`div`,{key:4,class:`modal-mask`,onClick:o[40]||=_(e=>Y.value=!1,[`self`])},[c(`div`,zr,[c(`h3`,Br,n(us.value?t.$t(`dcwDetail.k1iiwk0i163`):t.$t(`dcwDetail.k1efq0r9176`)),1),c(`div`,Vr,[c(`label`,Hr,[c(`span`,null,[h(n(t.$t(`dcwDetail.k1dw4fzf094`)),1),o[66]||=c(`em`,null,`*`,-1)]),f(c(`select`,{"onUpdate:modelValue":o[34]||=e=>Z.productId=e,class:`inp`},[(r(!0),l(u,null,a(O.value,e=>(r(),l(`option`,{key:e.id,value:e.id},n(e.name),9,Ur))),128))],512),[[g,Z.productId]])]),c(`label`,Wr,[c(`span`,null,[h(n(t.$t(`dcwDetail.k1l3f8so095`)),1),o[67]||=c(`em`,null,`*`,-1)]),f(c(`input`,{"onUpdate:modelValue":o[35]||=e=>Z.name=e,class:`inp`,placeholder:t.$t(`dcwDetail.k12c11vm014`)},null,8,Gr),[[v,Z.name]])]),c(`label`,Kr,[c(`span`,null,n(t.$t(`dcwDetail.k40gkk096`)),1),f(c(`input`,{"onUpdate:modelValue":o[36]||=e=>Z.description=e,class:`inp`,placeholder:t.$t(`dcwDetail.k1hxx8hy015`)},null,8,qr),[[v,Z.description]])])]),c(`p`,Jr,n(t.$t(`dcwDetail.ka1kfgh097`)),1),(r(!0),l(u,null,a(Z.params,(e,i)=>(r(),l(`div`,{key:i,class:`param-row`},[c(`label`,Yr,[c(`span`,null,n(t.$t(`dcwDetail.k1e2dtkt053`)),1),f(c(`select`,{"onUpdate:modelValue":t=>e.nodeId=t,class:`inp`},[(r(!0),l(u,null,a(D.value,e=>(r(),l(`option`,{key:e.id,value:e.id},n(e.name)+`(`+n(Za(e.templateRef))+` · `+n(e.min)+`~`+n(e.max)+` `+n(e.unit)+`) `,9,Zr))),128))],8,Xr),[[g,e.nodeId]]),G(e.nodeId,S.value)?(r(),l(`span`,Qr,n(G(e.nodeId,S.value).label),1)):d(``,!0)]),c(`label`,$r,[c(`span`,null,[h(n(t.$t(`dcwDetail.k3renp2098`)),1),o[68]||=c(`em`,null,`*`,-1)]),f(c(`input`,{"onUpdate:modelValue":t=>e.value=t,type:`number`,class:`inp`,step:.1},null,8,ei),[[v,e.value,void 0,{number:!0}]])]),c(`label`,ti,[c(`span`,null,n(t.$t(`dcwDetail.k134rw3b146`))+n(Qa(e.nodeId)??`-`)+`)`,1),f(c(`input`,{"onUpdate:modelValue":t=>e.min=t,type:`number`,class:`inp`,step:.1,placeholder:t.$t(`dcwDetail.k5vew9z016`)},null,8,ni),[[v,e.min,void 0,{number:!0}]])]),c(`label`,ri,[c(`span`,null,n(t.$t(`dcwDetail.khrv911147`))+n($a(e.nodeId)??`-`)+`)`,1),f(c(`input`,{"onUpdate:modelValue":t=>e.max=t,type:`number`,class:`inp`,step:.1,placeholder:t.$t(`dcwDetail.kzoh5pr017`)},null,8,ii),[[v,e.max,void 0,{number:!0}]])]),c(`button`,{class:`mini-btn danger param-del`,onClick:e=>Z.params.splice(i,1)},n(t.$t(`dcwDetail.k44idg099`)),9,ai)]))),128)),c(`button`,{class:`mini-btn`,onClick:o[37]||=e=>Z.params.push({nodeId:D.value[0]?.id??``,value:``,min:``,max:``})},n(t.$t(`dcwDetail.k1broh7h100`)),1),c(`p`,oi,n(t.$t(`dcwDetail.k1h5gues101`)),1),(r(!0),l(u,null,a(Z.daqWindows,(e,i)=>(r(),l(`div`,{key:`dw-${i}`,class:`param-row`},[c(`label`,si,[c(`span`,null,n(t.$t(`dcwDetail.k1empnnb102`)),1),f(c(`select`,{"onUpdate:modelValue":t=>e.nodeId=t,class:`inp`},[(r(!0),l(u,null,a(eo.value,e=>(r(),l(`option`,{key:e.id,value:e.id},n(e.name)+`(`+n(e.min)+`~`+n(e.max)+` `+n(e.unit)+`) `,9,li))),128))],8,ci),[[g,e.nodeId]])]),c(`label`,ui,[c(`span`,null,n(t.$t(`dcwDetail.kqm08ap103`)),1),f(c(`input`,{"onUpdate:modelValue":t=>e.min=t,type:`number`,class:`inp`,step:.1},null,8,di),[[v,e.min,void 0,{number:!0}]])]),c(`label`,fi,[c(`span`,null,n(t.$t(`dcwDetail.kpypf8g104`)),1),f(c(`input`,{"onUpdate:modelValue":t=>e.max=t,type:`number`,class:`inp`,step:.1},null,8,pi),[[v,e.max,void 0,{number:!0}]])]),c(`button`,{class:`mini-btn danger param-del`,onClick:e=>Z.daqWindows.splice(i,1)},n(t.$t(`dcwDetail.k44idg099`)),9,mi)]))),128)),c(`button`,{class:`mini-btn`,disabled:eo.value.length===0,title:eo.value.length===0?t.$t(`dcwDetail.noDaqTip`):``,onClick:o[38]||=e=>Z.daqWindows.push({nodeId:eo.value[0]?.id??``,min:``,max:``})},n(t.$t(`dcwDetail.kv1de1p105`)),9,hi),fs.value?(r(),l(`p`,gi,n(fs.value),1)):d(``,!0),X.value?(r(),l(`p`,_i,n(X.value),1)):d(``,!0),c(`div`,vi,[c(`button`,{class:`aw-pill outline`,onClick:o[39]||=e=>Y.value=!1},n(t.$t(`dcwDetail.k3xdnn052`)),1),c(`button`,{class:`pill-btn`,disabled:ds.value,onClick:gs},n(ds.value?t.$t(`dcwDetail.k1b38d59164`):t.$t(`dcwDetail.k1b3kwg0177`)),9,yi)])])])):d(``,!0),Qo.value?(r(),l(`div`,{key:5,class:`modal-mask`,onClick:o[42]||=_(e=>Qo.value=!1,[`self`])},[c(`div`,bi,[c(`div`,xi,[c(`h3`,null,[h(n(m(y)(`dcwDetail.histTitle`)),1),K.value?(r(),l(`span`,Si,n(K.value.name)+` · v`+n(K.value.version),1)):d(``,!0)]),c(`button`,{class:`mini-btn`,onClick:o[41]||=e=>Qo.value=!1},` ✕ `)]),q.value?(r(),l(`p`,Ci,n(q.value),1)):d(``,!0),es.value?(r(),l(`p`,wi,n(m(y)(`dcwDetail.histLoading`)),1)):$o.value.length===0?(r(),l(`div`,Ti,n(m(y)(`dcwDetail.histEmpty`)),1)):(r(!0),l(u,{key:3},a($o.value,(e,t)=>(r(),l(`div`,{key:e.version,class:i([`ver-row`,{cur:e.current}])},[c(`div`,Ei,[c(`span`,Di,`v`+n(e.version),1),c(`span`,{class:i([`ver-src`,e.by??(e.current?`cur`:``)])},n(e.current?m(y)(`dcwDetail.histCurrent`):ns(e.by)),3),c(`span`,Oi,n(e.at.slice(0,19).replace(`T`,` `)),1),c(`span`,ki,n(e.actorName||`—`),1),e.current?d(``,!0):(r(),l(`button`,{key:0,class:`mini-btn`,onClick:t=>is(e.version)},n(m(y)(`dcwDetail.revertTo`)),9,Ai))]),e.description?(r(),l(`p`,ji,n(e.description),1)):d(``,!0),c(`p`,Mi,n(rs(e,t)),1)],2))),128))])])):d(``,!0),c(`section`,Ni,[c(`p`,Pi,n(t.$t(`dcwDetail.k1us3jse106`)),1),c(`div`,Fi,[c(`label`,Ii,[c(`span`,null,n(t.$t(`dcwDetail.k3waz1025`)),1),f(c(`select`,{"onUpdate:modelValue":o[43]||=e=>J.productId=e,class:`inp`,onChange:o[44]||=e=>J.recipeId=``},[c(`option`,Li,n(t.$t(`dcwDetail.k1bkl1jx107`)),1),(r(!0),l(u,null,a(O.value,e=>(r(),l(`option`,{key:e.id,value:e.id},n(e.name),9,Ri))),128))],544),[[g,J.productId]])]),c(`label`,zi,[c(`span`,null,n(t.$t(`dcwDetail.k48grv027`)),1),f(c(`select`,{"onUpdate:modelValue":o[45]||=e=>J.recipeId=e,class:`inp`,disabled:!J.productId},[c(`option`,Vi,n(t.$t(`dcwDetail.k1bkx7cr108`)),1),(r(!0),l(u,null,a(Jo.value,e=>(r(),l(`option`,{key:e.id,value:e.id},n(e.name),9,Hi))),128))],8,Bi),[[g,J.recipeId]])]),c(`label`,Ui,[c(`span`,null,n(t.$t(`dcwDetail.k1demcae109`)),1),f(c(`select`,{"onUpdate:modelValue":o[46]||=e=>J.paramKey=e,class:`inp`},[c(`option`,Wi,n(t.$t(`dcwDetail.k1bkx7ya110`)),1),(r(!0),l(u,null,a(ls.value,e=>(r(),l(`option`,{key:e,value:e},n(e),9,Gi))),128))],512),[[g,J.paramKey]])]),c(`label`,Ki,[c(`span`,null,n(t.$t(`dcwDetail.k45uio082`)),1),f(c(`select`,{"onUpdate:modelValue":o[47]||=e=>J.nodeId=e,class:`inp`},[c(`option`,qi,n(t.$t(`dcwDetail.k1bkul3k111`)),1),(r(!0),l(u,null,a(eo.value,e=>(r(),l(`option`,{key:e.id,value:e.id},n(e.name),9,Ji))),128))],512),[[g,J.nodeId]])]),c(`label`,Yi,[c(`span`,null,n(t.$t(`dcwDetail.kx2ojn0112`)),1),f(c(`input`,{"onUpdate:modelValue":o[48]||=e=>J.lastMin=e,type:`number`,min:`1`,max:`10080`,class:`inp`},null,512),[[v,J.lastMin,void 0,{number:!0}]])]),c(`label`,Xi,[c(`span`,null,n(t.$t(`dcwDetail.kjvnvn4113`)),1),f(c(`input`,{"onUpdate:modelValue":o[49]||=e=>J.bucketMs=e,type:`number`,min:`1000`,step:`500`,class:`inp`},null,512),[[v,J.bucketMs,void 0,{number:!0}]])]),c(`div`,Zi,[c(`button`,{class:`pill-btn`,disabled:os.value,onClick:cs},n(os.value?t.$t(`dcwDetail.k1eyx09r165`):t.$t(`dcwDetail.k416ek178`)),9,Qi)])]),ss.value?(r(),l(`p`,$i,n(ss.value),1)):d(``,!0),as.value?(r(),l(`div`,ea,[c(`table`,ta,[c(`thead`,null,[c(`tr`,null,[c(`th`,null,n(t.$t(`dcwDetail.k48hde081`)),1),c(`th`,null,n(t.$t(`dcwDetail.k45uio082`)),1),c(`th`,null,n(t.$t(`dcwDetail.k42kcu114`)),1),c(`th`,null,n(t.$t(`dcwDetail.k49ujb115`)),1),c(`th`,null,n(t.$t(`dcwDetail.k40pvw116`)),1),c(`th`,null,n(t.$t(`dcwDetail.k3xho3117`)),1)])]),c(`tbody`,null,[(r(!0),l(u,null,a(as.value.channels,e=>(r(),l(`tr`,{key:e.nodeId},[c(`td`,null,[h(n(e.ch),1),c(`small`,na,n(e.unit),1)]),c(`td`,null,n(e.nodeName),1),c(`td`,ra,n(e.points.length),1),c(`td`,ia,n(ys(e.points[0])),1),c(`td`,aa,n(ys(e.points[e.points.length-1])),1),c(`td`,oa,n(new Date(e.points[0]?.at??0).toLocaleTimeString())+` ~ `+n(new Date(e.points[e.points.length-1]?.at??0).toLocaleTimeString()),1)]))),128))])])])):d(``,!0)]),so.value.length?(r(),l(`section`,sa,[c(`p`,ca,n(t.$t(`dcwDetail.kw7ym9b148`))+` `+n(so.value.length)+` `+n(t.$t(`dcwDetail.k40bfz150`)),1),c(`table`,la,[c(`tbody`,null,[(r(!0),l(u,null,a(so.value.slice(0,12),e=>(r(),l(`tr`,{key:e.id},[c(`td`,ua,n(e.at.slice(5,19)),1),c(`td`,null,n(e.param),1),c(`td`,null,n(e.nodeName),1),c(`td`,da,n(e.eng),1),c(`td`,fa,` raw `+n(e.raw??`-`),1),c(`td`,null,[c(`span`,{class:i([`st-pill`,e.ok?`ok`:`alarm`])},n(e.ok?`ACK`:t.$t(`dcwDetail.k3yit7139`)),3)]),c(`td`,pa,n(e.recipeRunId?t.$t(`dcwDetail.k6vgks7181`,{p0:e.recipeRunId}):t.$t(`dcwDetail.manualTag`)),1)]))),128))])])])):d(``,!0),Wo.value?(r(),l(`div`,{key:7,class:`modal-mask`,onClick:o[53]||=_(e=>Wo.value=!1,[`self`])},[c(`div`,ma,[c(`h3`,ha,n(t.$t(`dcwDetail.k1efduyf118`)),1),c(`div`,ga,[c(`label`,_a,[c(`span`,null,[h(n(t.$t(`dcwDetail.k1avjrl6119`)),1),o[69]||=c(`em`,null,`*`,-1)]),f(c(`input`,{"onUpdate:modelValue":o[50]||=e=>U.name=e,class:`inp`,placeholder:t.$t(`dcwDetail.k12c11vm014`)},null,8,va),[[v,U.name]])]),c(`label`,ya,[c(`span`,null,n(t.$t(`dcwDetail.k40gkk096`)),1),f(c(`input`,{"onUpdate:modelValue":o[51]||=e=>U.description=e,class:`inp`,placeholder:t.$t(`dcwDetail.k1hxx8hy015`)},null,8,ba),[[v,U.description]])])]),Ko.value?(r(),l(`p`,xa,n(Ko.value),1)):d(``,!0),c(`div`,Sa,[c(`button`,{class:`aw-pill outline`,onClick:o[52]||=e=>Wo.value=!1},n(t.$t(`dcwDetail.k3xdnn052`)),1),c(`button`,{class:`pill-btn`,disabled:Go.value,onClick:qo},n(Go.value?t.$t(`dcwDetail.k1bg4759156`):t.$t(`dcwDetail.k1bg4kn6179`)),9,Ca)])])])):d(``,!0),m(x).error?(r(),l(`p`,wa,[h(n(m(x).error)+`(`,1),ee(s,{to:`/workshop`},{default:te(()=>[h(n(t.$t(`dcwDetail.k1bhhheq120`)),1)]),_:1}),o[70]||=h(`) `,-1)])):d(``,!0),c(`section`,Ta,[c(`div`,Ea,[c(`b`,null,n(t.$t(`dcwDetail.k1ledgt001`)),1),f(c(`select`,{"onUpdate:modelValue":o[54]||=e=>T.value=e,class:`inp`,onChange:no},[c(`option`,Da,n(t.$t(`dcwDetail.k1ledgs001`)),1),(r(!0),l(u,null,a(D.value,e=>(r(),l(`option`,{key:e.id,value:e.id},n(e.name),9,Oa))),128))],544),[[g,T.value]])]),E.value?(r(),l(u,{key:0},[c(`div`,ka,[c(`div`,Aa,[c(`small`,null,n(t.$t(`dcwDetail.k1ledgv001`)),1),c(`b`,ja,n(E.value.current??`--`),1)]),c(`div`,Ma,[c(`small`,null,n(t.$t(`dcwDetail.k1ledgv002`)),1),c(`b`,Na,n(E.value.recipeTarget??`--`),1)]),c(`div`,Pa,[c(`small`,null,n(t.$t(`dcwDetail.k1ledgv003`)),1),c(`b`,Fa,n(E.value.lastGood??`--`),1)]),c(`button`,{class:`mini-btn`,onClick:no},n(t.$t(`dcwDetail.k1ledga001`)),1),c(`button`,{class:`mini-btn danger`,onClick:ro},n(t.$t(`dcwDetail.k1ledga002`)),1)]),c(`div`,Ia,[c(`div`,La,[c(`small`,Ra,n(t.$t(`dcwDetail.k1ledgh001`)),1),c(`ul`,za,[(r(!0),l(u,null,a(E.value.journal,e=>(r(),l(`li`,{key:e.id},n(e.at.slice(5,16).replace(`T`,` `))+` [`+n(e.source)+`] `+n(e.prevValue??`?`)+` → `+n(e.newValue),1))),128))])]),c(`div`,Ba,[c(`small`,Va,n(t.$t(`dcwDetail.k1ledgr001`)),1),c(`ul`,Ha,[(r(!0),l(u,null,a(E.value.records,e=>(r(),l(`li`,{key:e.id,class:`ledger-rec`},[c(`span`,{class:i([`rec-st`,e.status])},n(e.status),3),c(`span`,Ua,n(e.params[0]?.from??`?`)+` → `+n(e.params[0]?.to),1),c(`small`,null,n(e.judge?`${e.judge.verdict}(${e.judge.by})`:e.status===`open`?`open`:e.closedBy??``),1)]))),128))])])])],64)):d(``,!0)])]))}}}),[[`__scopeId`,`data-v-84c0b97c`]]);export{Wa as default};
@@ -6,4 +6,4 @@ import{a as e,c as t}from"./BU83-NnX.js";import{$ as n,P as r,S as i,Ut as a,V a
6
6
  `))}else if(e.type===`text_end`&&typeof e.content==`string`&&e.content.length>0){let t=typeof e.contentIndex==`number`?e.contentIndex:0,n=K.get(t)??0;e.content.length>n&&(W=!0,K.set(t,e.content.length),G.push(e.content.slice(n).replace(/\n/g,`\r
7
7
  `)))}else e.type===`thinking_delta`&&e.delta&&(W=!0,G.push(`${L.dimItalicMagenta}${e.delta.replace(/\n/g,`\r
8
8
  `)}${L.reset}`));return}case`message_end`:String(t.role??``)===`assistant`&&W&&(W=!1,z(),ke(),V());return;case`tool_execution_start`:B(` ${L.yellow}⚙ ${String(t.toolName??`tool`)}${L.reset}${L.dim}(${H(String(t.args??``),120)})${L.reset}`);return;case`tool_execution_update`:B(` ${L.dim}↳ … ${H(String(t.update??``),100)}${L.reset}`);return;case`tool_execution_end`:{let e=t.isError===!0?`${L.red}✗${L.reset}`:`${L.green}✓${L.reset}`,n=H(String(t.result??``),180);B(` ${e} ${L.dim}${n}${L.reset}`);return}case`host_tool_call`:B(` ${L.magenta}⇄ host:${String(t.toolName??`?`)}${L.reset}${L.dim}(${H(String(t.args??``),100)})${L.reset}`);return;case`extension_ui_request`:{let e=String(t.method??``);if(e===`cancel`){B(y(`ompTerminalPanel.k14jk3nu001`,{p0:L.dim,p1:String(t.targetId??``),p2:L.reset})),O.value&&O.value.id===String(t.targetId??``)&&(O.value=null);return}if(e===`notify`){B(` ${L.blue}ℹ ${String(t.message??``)}${L.reset}`);return}if(e===`select`||e===`confirm`||e===`input`||e===`editor`){let n=String(t.title??``);if(B(`${L.bold}${L.magenta}⚠ HITL · ${e}: ${n}${L.reset}`),Array.isArray(t.options))for(let e of t.options)B(` ${L.magenta}○${L.reset} ${String(e)}`);O.value={id:String(t.id??``),method:e,title:n,options:Array.isArray(t.options)?t.options.map(String):void 0,message:typeof t.message==`string`?t.message:void 0,placeholder:typeof t.placeholder==`string`?t.placeholder:void 0,prefill:typeof t.prefill==`string`?t.prefill:void 0,at:de()}}return}case`command_output`:B(`${L.dim}${String(t.text??``).replace(/\n/g,`\r
9
- `)}${L.reset}`);return;case`response`:{let e=String(t.command??``);if(e===`steer`||e===`follow_up`||e===`abort`||e===`prompt`){let n=t.success!==!1;B(` ${L.dim}· ${e} ${n?`accepted`:`failed: ${String(t.error??``)}`}${L.reset}`)}return}default:return}}let q=c(()=>p.pid!=null&&p.pid>0||!!p.agentId),J=m(null);function Ne(){let e=window.location.protocol===`https:`?`wss`:`ws`,t=encodeURIComponent(Oe.token??``),n=p.pid!=null&&p.pid>0?`pid=${p.pid}`:`agentId=${encodeURIComponent(p.agentId??``)}${p.channelId?`&channelId=${encodeURIComponent(p.channelId)}`:``}`;return`${e}://${window.location.host}/api/system/monitor/terminal/ws?${n}&token=${t}`}let Y=``;function Pe(t){switch(t.type){case`term.init`:J.value!==t.meta.pid&&(J.value=t.meta.pid,N=0,Y=``,B(y(`ompTerminalPanel.k68kkpc002`,{p0:L.dim,p1:t.meta.pid,p2:t.lastSeq,p3:L.reset}))),T.value=t.alive,E.value=t.running,D.value=t.streaming,O.value=t.hitl;return;case`term.frames`:for(let e of t.frames)Me(e);z();return;case`term.state`:T.value=t.alive,E.value=t.running,D.value=t.streaming;return;case`term.notice`:e.info(t.message);return;case`term.error`:{let e=`[${t.code}] ${t.message}`;if(e===Y)return;Y=e,B(`${L.red}✗ ${e}${L.reset}`);return}case`pong`:return}}function X(){if(!q.value||!Oe.token||k&&(k.readyState===WebSocket.OPEN||k.readyState===WebSocket.CONNECTING))return;M=!1,w.value=j===0?`connecting`:`retrying`;let e=new WebSocket(Ne());k=e,e.onopen=()=>{k===e&&(j=0,w.value=`open`)},e.onmessage=t=>{if(k===e)try{Pe(JSON.parse(t.data))}catch{}},e.onclose=()=>{if(k!==e)return;if(k=null,O.value=null,M||!q.value){w.value=`dead`;return}j+=1;let t=Math.min(1e3*2**Math.min(j-1,4),1e4);w.value=`retrying`,A=setTimeout(()=>{A=null,!M&&q.value&&X()},t)},e.onerror=()=>{}}function Fe(){M=!0,A&&=(clearTimeout(A),null),k?.close(),k=null}function Ie(e){if(k?.readyState===WebSocket.OPEN){k.send(JSON.stringify(e));return}B(y(`ompTerminalPanel.k59zj91003`,{p0:L.red,p1:L.reset}))}function Le(e){let t=e.trim();t&&(F.push(t),F=F.slice(-50),I=-1,Ie({type:`input`,text:t}))}function Re(){Ie({type:`abort`}),B(`${L.yellow}^C${L.reset}`)}function Z(e){Ie({type:`ui_response`,...e});let t=e.cancelled?`cancelled`:e.confirmed===void 0?`"${H(e.value??``,80)}"`:String(e.confirmed);B(y(`ompTerminalPanel.kvzhi95004`,{p0:L.green,p1:t,p2:L.reset})),O.value=null}let Q=m(``);n(O,e=>{Q.value=e?.prefill??e?.placeholder??``});let $=null;async function ze(){if(x||!b.value)return;let e=b.value,[{Terminal:t},{FitAddon:n}]=await Promise.all([ae(()=>import(`./BrIJiJSN.js`),[],import.meta.url),ae(()=>import(`./DIOBYJe3.js`),[],import.meta.url)]);x=new t({convertEol:!1,cursorBlink:!0,cursorStyle:`bar`,fontFamily:`"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace`,fontSize:12.5,lineHeight:1.25,scrollback:8e3,theme:{background:`#10151c`,foreground:`#d6dee8`,cursor:`#7aa2f7`,selectionBackground:`#33467c`,black:`#10151c`,red:`#f7768e`,green:`#9ece6a`,yellow:`#e0af68`,blue:`#7aa2f7`,magenta:`#bb9af7`,cyan:`#7dcfff`,white:`#d6dee8`}}),S=new n,x.loadAddon(S),x.open(e),V();let r=e=>{if(e.ctrlKey||e.metaKey||e.altKey){(e.key===`c`||e.key===`C`)&&(e.preventDefault(),e.stopPropagation(),Re());return}if(e.key===`Enter`){e.preventDefault(),e.stopPropagation(),x?.write(`\r\x1B[K`);let t=P;P=``,Le(t),V();return}if(e.key===`Backspace`){e.preventDefault(),e.stopPropagation(),P=P.slice(0,-1),V();return}if(e.key===`ArrowUp`||e.key===`ArrowDown`){if(F.length===0)return;e.preventDefault(),e.stopPropagation(),e.key===`ArrowUp`?I=I<0?F.length-1:Math.max(0,I-1):(I=I<0?-1:Math.min(F.length-1,I+1),I===F.length-1&&(I=-1)),P=I<0?``:F[I]??``,V();return}e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&(e.preventDefault(),e.stopPropagation(),P+=e.key,V())};e.addEventListener(`keydown`,r,!0),$=r,x.onData(e=>{e.length<=1||(P+=e.replace(/[\r\n]+$/,``),V())}),C=new ResizeObserver(()=>{try{S?.fit()}catch{}}),C.observe(e)}function Be(){$&&b.value&&(b.value.removeEventListener(`keydown`,$,!0),$=null),C?.disconnect(),C=null,x?.dispose(),x=null,S=null}n(v,e=>{e?f(async()=>{await ze(),Ae(),N=0,j=0,Y=``,B(`${L.dim}── AgentWorkShop harness terminal · ${p.pid?`PID ${p.pid}`:`agent ${p.agentId?.slice(0,8)}…`} ──${L.reset}`),X(),f(()=>{try{S?.fit()}catch{}})}):(Fe(),O.value=null)}),n(()=>[p.pid,p.agentId],()=>{v.value&&(Fe(),f(()=>{Ae(),N=0,j=0,Y=``,J.value=null,B(`${L.dim}── 切换目标 · ${p.pid?`PID ${p.pid}`:`agent ${p.agentId?.slice(0,8)}…`} ──${L.reset}`),X()}))}),r(()=>{Fe(),Be()});let Ve=()=>{G.length=0,R=!1,x?.clear(),V()},He=c(()=>T.value?D.value?{text:y(`terminal.stateStreaming`),color:`processing`}:E.value?{text:y(`terminal.stateRunning`),color:`warning`}:{text:y(`terminal.stateIdle`),color:`success`}:{text:y(`terminal.stateExited`),color:`error`}),Ue=c(()=>{switch(w.value){case`open`:return{text:y(`terminal.connOpen`),color:`success`};case`connecting`:return{text:y(`terminal.connConnecting`),color:`default`};case`retrying`:return{text:`${y(`terminal.connRetrying`)}(${j})`,color:`warning`};default:return{text:y(`terminal.connClosed`),color:`default`}}});return(e,n)=>{let r=t,te=ce,c=se,f=le;return o(),ie(f,{open:v.value,"onUpdate:open":n[7]||=e=>v.value=e,placement:`right`,width:860,"body-style":{padding:`0`,display:`flex`,flexDirection:`column`,background:`#10151c`},"header-style":{background:`#10151c`,borderBottom:`1px solid #1d2733`},class:`omp-terminal-drawer`},{title:h(()=>[l(`div`,fe,[n[8]||=l(`span`,{class:`term-brand`},[l(`span`,{class:`i-tabler-terminal-2`})],-1),l(`span`,pe,a(g(y)(`terminal.title`)),1),l(`span`,me,`PID `+a(g(J)??i.pid??`–`),1),i.subtitle?(o(),u(`span`,he,a(i.subtitle),1)):re(``,!0)])]),extra:h(()=>[l(`div`,ge,[l(`span`,{class:`ts-chip aw-mono`,"data-state":g(w)},[n[9]||=l(`span`,{class:`ts-dot`},null,-1),_(a(g(Ue).text),1)],8,_e),l(`span`,{class:`ts-chip aw-mono`,"data-live":g(E)?g(D)?`streaming`:`running`:`idle`},a(g(He).text),9,ve),s(r,{size:`small`,danger:``,class:`ts-btn`,disabled:!g(E)&&!g(D),onClick:Re},{icon:h(()=>[...n[10]||=[l(`span`,{class:`i-tabler-player-stop`},null,-1)]]),default:h(()=>[_(` `+a(g(y)(`terminal.abort`)),1)]),_:1},8,[`disabled`]),s(r,{size:`small`,class:`ts-btn`,onClick:Ve},{icon:h(()=>[...n[11]||=[l(`span`,{class:`i-tabler-eraser`},null,-1)]]),default:h(()=>[_(` `+a(g(y)(`terminal.clear`)),1)]),_:1})])]),default:h(()=>[l(`div`,ye,[g(O)?(o(),u(`div`,be,[l(`div`,xe,[n[12]||=l(`span`,{class:`i-tabler-user-question`},null,-1),l(`b`,null,a(g(y)(`terminal.hitlTitle`)),1),s(te,{color:`magenta`},{default:h(()=>[_(a(g(O).method),1)]),_:1}),s(r,{size:`small`,type:`text`,danger:``,onClick:n[0]||=e=>Z({id:g(O).id,cancelled:!0})},{default:h(()=>[_(a(g(y)(`terminal.hitlCancel`)),1)]),_:1})]),l(`p`,Se,a(g(O).title),1),g(O).method===`select`?(o(),u(`div`,Ce,[(o(!0),u(d,null,ee(g(O).options??[],e=>(o(),ie(r,{key:e,block:``,onClick:t=>Z({id:g(O).id,value:e})},{default:h(()=>[_(a(e),1)]),_:2},1032,[`onClick`]))),128))])):g(O).method===`confirm`?(o(),u(d,{key:1},[l(`p`,we,a(g(O).message),1),l(`div`,Te,[s(r,{type:`primary`,onClick:n[1]||=e=>Z({id:g(O).id,confirmed:!0})},{default:h(()=>[_(a(g(y)(`terminal.hitlConfirm`)),1)]),_:1}),s(r,{onClick:n[2]||=e=>Z({id:g(O).id,confirmed:!1})},{default:h(()=>[_(a(g(y)(`terminal.hitlDeny`)),1)]),_:1})])],64)):(o(),u(d,{key:2},[s(c,{value:g(Q),"onUpdate:value":n[3]||=e=>ne(Q)?Q.value=e:null,rows:3,placeholder:g(O).placeholder,class:`hitl-textarea`,onPressEnter:n[4]||=e=>Z({id:g(O).id,value:g(Q)})},null,8,[`value`,`placeholder`]),l(`div`,Ee,[s(r,{type:`primary`,onClick:n[5]||=e=>Z({id:g(O).id,value:g(Q)})},{default:h(()=>[_(a(g(y)(`terminal.hitlSubmit`)),1)]),_:1}),s(r,{onClick:n[6]||=e=>Z({id:g(O).id,cancelled:!0})},{default:h(()=>[_(a(g(y)(`terminal.hitlCancel`)),1)]),_:1})])],64))])):re(``,!0),l(`div`,{ref_key:`hostEl`,ref:b,class:`term-host`},null,512),l(`div`,De,a(g(y)(`terminal.hint`)),1)])]),_:1},8,[`open`])}}}),[[`__scopeId`,`data-v-01e245c4`]]),{__name:`WorkshopTerminalOmpTerminalPanel`});export{y as t};
9
+ `)}${L.reset}`);return;case`response`:{let e=String(t.command??``);if(e===`steer`||e===`follow_up`||e===`abort`||e===`prompt`){let n=t.success!==!1;B(` ${L.dim}· ${e} ${n?`accepted`:`failed: ${String(t.error??``)}`}${L.reset}`)}return}default:return}}let q=c(()=>p.pid!=null&&p.pid>0||!!p.agentId),J=m(null);function Ne(){let e=window.location.protocol===`https:`?`wss`:`ws`,t=encodeURIComponent(Oe.token??``),n=p.pid!=null&&p.pid>0?`pid=${p.pid}`:`agentId=${encodeURIComponent(p.agentId??``)}${p.channelId?`&channelId=${encodeURIComponent(p.channelId)}`:``}`;return`${e}://${window.location.host}/api/system/monitor/terminal/ws?${n}&token=${t}`}let Y=``;function Pe(t){switch(t.type){case`term.init`:J.value!==t.meta.pid&&(J.value=t.meta.pid,N=0,Y=``,B(y(`ompTerminalPanel.k68kkpc002`,{p0:L.dim,p1:t.meta.pid,p2:t.lastSeq,p3:L.reset}))),T.value=t.alive,E.value=t.running,D.value=t.streaming,O.value=t.hitl;return;case`term.frames`:for(let e of t.frames)Me(e);z();return;case`term.state`:T.value=t.alive,E.value=t.running,D.value=t.streaming;return;case`term.notice`:e.info(t.message);return;case`term.error`:{let e=`[${t.code}] ${t.message}`;if(e===Y)return;Y=e,B(`${L.red}✗ ${e}${L.reset}`);return}case`pong`:return}}function X(){if(!q.value||!Oe.token||k&&(k.readyState===WebSocket.OPEN||k.readyState===WebSocket.CONNECTING))return;M=!1,w.value=j===0?`connecting`:`retrying`;let e=new WebSocket(Ne());k=e,e.onopen=()=>{k===e&&(j=0,w.value=`open`)},e.onmessage=t=>{if(k===e)try{Pe(JSON.parse(t.data))}catch{}},e.onclose=()=>{if(k!==e)return;if(k=null,O.value=null,M||!q.value){w.value=`dead`;return}j+=1;let t=Math.min(1e3*2**Math.min(j-1,4),1e4);w.value=`retrying`,A=setTimeout(()=>{A=null,!M&&q.value&&X()},t)},e.onerror=()=>{}}function Fe(){M=!0,A&&=(clearTimeout(A),null),k?.close(),k=null}function Ie(e){if(k?.readyState===WebSocket.OPEN){k.send(JSON.stringify(e));return}B(y(`ompTerminalPanel.k59zj91003`,{p0:L.red,p1:L.reset}))}function Le(e){let t=e.trim();t&&(F.push(t),F=F.slice(-50),I=-1,Ie({type:`input`,text:t}))}function Re(){Ie({type:`abort`}),B(`${L.yellow}^C${L.reset}`)}function Z(e){Ie({type:`ui_response`,...e});let t=e.cancelled?`cancelled`:e.confirmed===void 0?`"${H(e.value??``,80)}"`:String(e.confirmed);B(y(`ompTerminalPanel.kvzhi95004`,{p0:L.green,p1:t,p2:L.reset})),O.value=null}let Q=m(``);n(O,e=>{Q.value=e?.prefill??e?.placeholder??``});let $=null;async function ze(){if(x||!b.value)return;let e=b.value,[{Terminal:t},{FitAddon:n}]=await Promise.all([ae(()=>import(`./BrIJiJSN.js`),[],import.meta.url),ae(()=>import(`./DIOBYJe3.js`),[],import.meta.url)]);x=new t({convertEol:!1,cursorBlink:!0,cursorStyle:`bar`,fontFamily:`"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace`,fontSize:12.5,lineHeight:1.25,scrollback:8e3,theme:{background:`#10151c`,foreground:`#d6dee8`,cursor:`#7aa2f7`,selectionBackground:`#33467c`,black:`#10151c`,red:`#f7768e`,green:`#9ece6a`,yellow:`#e0af68`,blue:`#7aa2f7`,magenta:`#bb9af7`,cyan:`#7dcfff`,white:`#d6dee8`}}),S=new n,x.loadAddon(S),x.open(e),V();let r=e=>{if(e.ctrlKey||e.metaKey||e.altKey){(e.key===`c`||e.key===`C`)&&(e.preventDefault(),e.stopPropagation(),Re());return}if(e.key===`Enter`){e.preventDefault(),e.stopPropagation(),x?.write(`\r\x1B[K`);let t=P;P=``,Le(t),V();return}if(e.key===`Backspace`){e.preventDefault(),e.stopPropagation(),P=P.slice(0,-1),V();return}if(e.key===`ArrowUp`||e.key===`ArrowDown`){if(F.length===0)return;e.preventDefault(),e.stopPropagation(),e.key===`ArrowUp`?I=I<0?F.length-1:Math.max(0,I-1):(I=I<0?-1:Math.min(F.length-1,I+1),I===F.length-1&&(I=-1)),P=I<0?``:F[I]??``,V();return}e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&(e.preventDefault(),e.stopPropagation(),P+=e.key,V())};e.addEventListener(`keydown`,r,!0),$=r,x.onData(e=>{e.length<=1||(P+=e.replace(/[\r\n]+$/,``),V())}),C=new ResizeObserver(()=>{try{S?.fit()}catch{}}),C.observe(e)}function Be(){$&&b.value&&(b.value.removeEventListener(`keydown`,$,!0),$=null),C?.disconnect(),C=null,x?.dispose(),x=null,S=null}n(v,e=>{e?f(async()=>{await ze(),Ae(),N=0,j=0,Y=``,B(`${L.dim}── AgentWorkShop harness terminal · ${p.pid?`PID ${p.pid}`:`agent ${p.agentId?.slice(0,8)}…`} ──${L.reset}`),X(),f(()=>{try{S?.fit()}catch{}})}):(Fe(),O.value=null)}),n(()=>[p.pid,p.agentId],()=>{v.value&&(Fe(),f(()=>{Ae(),N=0,j=0,Y=``,J.value=null,B(`${L.dim}${y(`ompTerminalPanel.switchTarget`,{p0:p.pid?`PID ${p.pid}`:`agent ${p.agentId?.slice(0,8)}…`})}${L.reset}`),X()}))}),r(()=>{Fe(),Be()});let Ve=()=>{G.length=0,R=!1,x?.clear(),V()},He=c(()=>T.value?D.value?{text:y(`terminal.stateStreaming`),color:`processing`}:E.value?{text:y(`terminal.stateRunning`),color:`warning`}:{text:y(`terminal.stateIdle`),color:`success`}:{text:y(`terminal.stateExited`),color:`error`}),Ue=c(()=>{switch(w.value){case`open`:return{text:y(`terminal.connOpen`),color:`success`};case`connecting`:return{text:y(`terminal.connConnecting`),color:`default`};case`retrying`:return{text:`${y(`terminal.connRetrying`)}(${j})`,color:`warning`};default:return{text:y(`terminal.connClosed`),color:`default`}}});return(e,n)=>{let r=t,te=ce,c=se,f=le;return o(),ie(f,{open:v.value,"onUpdate:open":n[7]||=e=>v.value=e,placement:`right`,width:860,"body-style":{padding:`0`,display:`flex`,flexDirection:`column`,background:`#10151c`},"header-style":{background:`#10151c`,borderBottom:`1px solid #1d2733`},class:`omp-terminal-drawer`},{title:h(()=>[l(`div`,fe,[n[8]||=l(`span`,{class:`term-brand`},[l(`span`,{class:`i-tabler-terminal-2`})],-1),l(`span`,pe,a(g(y)(`terminal.title`)),1),l(`span`,me,`PID `+a(g(J)??i.pid??`–`),1),i.subtitle?(o(),u(`span`,he,a(i.subtitle),1)):re(``,!0)])]),extra:h(()=>[l(`div`,ge,[l(`span`,{class:`ts-chip aw-mono`,"data-state":g(w)},[n[9]||=l(`span`,{class:`ts-dot`},null,-1),_(a(g(Ue).text),1)],8,_e),l(`span`,{class:`ts-chip aw-mono`,"data-live":g(E)?g(D)?`streaming`:`running`:`idle`},a(g(He).text),9,ve),s(r,{size:`small`,danger:``,class:`ts-btn`,disabled:!g(E)&&!g(D),onClick:Re},{icon:h(()=>[...n[10]||=[l(`span`,{class:`i-tabler-player-stop`},null,-1)]]),default:h(()=>[_(` `+a(g(y)(`terminal.abort`)),1)]),_:1},8,[`disabled`]),s(r,{size:`small`,class:`ts-btn`,onClick:Ve},{icon:h(()=>[...n[11]||=[l(`span`,{class:`i-tabler-eraser`},null,-1)]]),default:h(()=>[_(` `+a(g(y)(`terminal.clear`)),1)]),_:1})])]),default:h(()=>[l(`div`,ye,[g(O)?(o(),u(`div`,be,[l(`div`,xe,[n[12]||=l(`span`,{class:`i-tabler-user-question`},null,-1),l(`b`,null,a(g(y)(`terminal.hitlTitle`)),1),s(te,{color:`magenta`},{default:h(()=>[_(a(g(O).method),1)]),_:1}),s(r,{size:`small`,type:`text`,danger:``,onClick:n[0]||=e=>Z({id:g(O).id,cancelled:!0})},{default:h(()=>[_(a(g(y)(`terminal.hitlCancel`)),1)]),_:1})]),l(`p`,Se,a(g(O).title),1),g(O).method===`select`?(o(),u(`div`,Ce,[(o(!0),u(d,null,ee(g(O).options??[],e=>(o(),ie(r,{key:e,block:``,onClick:t=>Z({id:g(O).id,value:e})},{default:h(()=>[_(a(e),1)]),_:2},1032,[`onClick`]))),128))])):g(O).method===`confirm`?(o(),u(d,{key:1},[l(`p`,we,a(g(O).message),1),l(`div`,Te,[s(r,{type:`primary`,onClick:n[1]||=e=>Z({id:g(O).id,confirmed:!0})},{default:h(()=>[_(a(g(y)(`terminal.hitlConfirm`)),1)]),_:1}),s(r,{onClick:n[2]||=e=>Z({id:g(O).id,confirmed:!1})},{default:h(()=>[_(a(g(y)(`terminal.hitlDeny`)),1)]),_:1})])],64)):(o(),u(d,{key:2},[s(c,{value:g(Q),"onUpdate:value":n[3]||=e=>ne(Q)?Q.value=e:null,rows:3,placeholder:g(O).placeholder,class:`hitl-textarea`,onPressEnter:n[4]||=e=>Z({id:g(O).id,value:g(Q)})},null,8,[`value`,`placeholder`]),l(`div`,Ee,[s(r,{type:`primary`,onClick:n[5]||=e=>Z({id:g(O).id,value:g(Q)})},{default:h(()=>[_(a(g(y)(`terminal.hitlSubmit`)),1)]),_:1}),s(r,{onClick:n[6]||=e=>Z({id:g(O).id,cancelled:!0})},{default:h(()=>[_(a(g(y)(`terminal.hitlCancel`)),1)]),_:1})])],64))])):re(``,!0),l(`div`,{ref_key:`hostEl`,ref:b,class:`term-host`},null,512),l(`div`,De,a(g(y)(`terminal.hint`)),1)])]),_:1},8,[`open`])}}}),[[`__scopeId`,`data-v-d6946212`]]),{__name:`WorkshopTerminalOmpTerminalPanel`});export{y as t};
@@ -1 +1 @@
1
- import{a as e,c as t,n}from"./BU83-NnX.js";import{$ as r,S as i,Ut as a,V as o,Vt as s,b as c,ct as l,d as u,f as d,h as f,i as p,m,p as h,pt as g,tt as _,xt as v,y}from"./CSkxz2NX.js";import{d as b}from"./D6uzXueg.js";import{d as x}from"./BJHKLJJU.js";import{n as S}from"./DtYHUi5Z.js";import{n as C}from"./KZQX7xoM.js";import{t as ee}from"./BneN7fbu.js";import{t as te}from"./DBHNsT1Y.js";import{t as ne}from"./BCGafdXT.js";import{t as re}from"./pdk8jLGT.js";import{t as ie}from"./BYhEUx8t.js";import{t as ae}from"./jZsY8yYz.js";import{t as w}from"./DZtm4l-P2.js";import{t as T}from"./DIaZ2PTo2.js";import{t as E}from"./BDNMzG2s2.js";import{t as D}from"./D0ZBQrN_2.js";import{t as O}from"./CNs_Ozdc2.js";var oe={class:`page`},se={key:0,class:`auth-gate`},ce={class:`sub`},le={class:`aw-page-head`},ue={class:`sub`},de={class:`font-medium`},fe={key:1,class:`tok-cell`},pe=[`title`],me={class:`once-banner`},he={class:`raw-row`},ge={class:`raw`},_e=[`title`],ve=[`title`],ye={class:`once-meta`},k=E(i({__name:`tokens`,setup(i){let{t:E}=C();O({layout:`default`});let k=T(),A=g([]),j=g(!1),M=g(!1),N=g(``),P=g(!1),F=g(``),I=g(``),L=g(!1),R=g(``),z=g(``),B=g(!1),V=async()=>{if(k.isLoggedIn){j.value=!0;try{A.value=await k.listTokens()}catch(t){e.error(t instanceof Error?t.message:E(`tokens.k19jvk54013`))}finally{j.value=!1}}};r(()=>k.isLoggedIn,e=>{e?V():A.value=[]},{immediate:!0});let H=async()=>{P.value=!0;try{let e=await k.createToken(N.value);F.value=e.token,I.value=N.value,M.value=!1,N.value=``,await V()}catch(t){e.error(D(t))}finally{P.value=!1}},U=async()=>{if(!z.value.trim()){e.warning(E(`tokens.k169z26g014`));return}B.value=!0;try{await k.renameToken(R.value,z.value),L.value=!1,await V(),e.success(E(`tokens.k3n9aij015`))}catch(t){e.error(D(t))}finally{B.value=!1}},be=t=>{let n=t.id;if(!n)return;let r=n===k.user?.tokenId;(async()=>{try{if(await k.revokeToken(n),e.success(E(`tokens.k3n64kh016`)),r)return;await V()}catch(t){e.error(D(t))}})()},W=g(!1),G=g(!1),xe=u(()=>{let e=F.value;return e?`${e.slice(0,6)}${`•`.repeat(Math.max(12,e.length-10))}${e.slice(-4)}`:``}),Se=()=>{W.value=!W.value},K=async e=>{try{return await navigator.clipboard.writeText(e),!0}catch{try{let t=document.createElement(`textarea`);t.value=e,t.style.position=`fixed`,t.style.opacity=`0`,document.body.appendChild(t),t.select();let n=document.execCommand(`copy`);return document.body.removeChild(t),n}catch{return!1}}},Ce=async()=>{await K(F.value)?(G.value=!0,setTimeout(()=>{G.value=!1},1600)):e.error(E(`tokens.kjtcn2h017`))},q=()=>{F.value=``,W.value=!1,G.value=!1},J=g({}),Y=g(``),X=g(``),Z=e=>e in J.value,we=e=>Z(e.id)?J.value[e.id]:e.preview??`ut-${`•`.repeat(14)}`,Q=async t=>{if(Z(t.id)){Reflect.deleteProperty(J.value,t.id);return}if(!t.hasPlain){e.warning(E(`tokens.kkpgzo8018`));return}Y.value=t.id;try{let e=await k.revealToken(t.id);e&&(J.value[t.id]=e)}catch(t){e.error(t instanceof Error?t.message:E(`tokens.k1gj9ls019`))}finally{Y.value=``}},Te=async t=>{let n=J.value[t.id]??null;if(!n){if(!t.hasPlain){e.warning(E(`tokens.kr5ovor020`));return}Y.value=t.id;try{n=await k.revealToken(t.id)}catch(t){e.error(t instanceof Error?t.message:E(`tokens.kubtby5021`));return}finally{Y.value=``}}n&&await K(n)?(X.value=t.id,setTimeout(()=>{X.value=``},1600)):e.error(E(`tokens.kgkfcr0022`))},$=e=>e?e.replace(`T`,` `).slice(0,19):`-`,Ee=e=>{R.value=e.id??``,z.value=e.label??``,L.value=!0},De=[{title:E(`tokens.k41416002`),key:`label`,dataIndex:`label`},{title:`Token`,key:`token`,width:360},{title:E(`tokens.k1bg95gk023`),key:`createdAt`,dataIndex:`createdAt`,width:170},{title:E(`tokens.k1euotul024`),key:`lastUsedAt`,dataIndex:`lastUsedAt`,width:200},{title:E(`tokens.k40aa6025`),key:`action`,width:170}];return S({title:()=>E(`titles.tokens`)}),(e,r)=>{let i=t,u=ie,g=ne,S=ae,C=re,T=ee,E=w,D=te,O=n;return o(),f(`div`,oe,[v(k).isLoggedIn?(o(),f(p,{key:1},[d(`div`,le,[d(`div`,null,[r[6]||=d(`p`,{class:`aw-kicker`},` agentworkshop / api tokens `,-1),r[7]||=d(`h1`,null,`API Token`,-1),d(`p`,ue,a(v(k).user?.name)+` · `+a(e.$t(`tokens.k1upppaw026`)),1)]),c(S,{class:`head-actions`},{default:_(()=>[v(k).user?.tokenId?(o(),h(g,{key:0,color:`green`},{default:_(()=>[y(a(e.$t(`tokens.khcxmsc006`)),1)]),_:1})):m(``,!0),c(i,{type:`primary`,onClick:r[1]||=e=>M.value=!0},{default:_(()=>[r[8]||=d(`span`,{class:`i-tabler-plus`},null,-1),y(` `+a(e.$t(`chips.issue`)),1)]),_:1})]),_:1})]),c(u,{bordered:!1,class:`table-card`},{default:_(()=>[c(E,{spinning:v(j)},{default:_(()=>[c(T,{columns:De,"data-source":v(A),pagination:!1,"row-key":`id`},{bodyCell:_(({column:t,record:n})=>[t.key===`label`?(o(),h(S,{key:0},{default:_(()=>[r[9]||=d(`span`,{class:`i-tabler-key text-primary`},null,-1),d(`span`,de,a(n.label||e.$t(`tokens.kj3mklm028`)),1),n.id===v(k).user?.tokenId?(o(),h(g,{key:0,color:`green`},{default:_(()=>[y(a(e.$t(`tokens.k1defr98007`)),1)]),_:1})):m(``,!0)]),_:2},1024)):t.key===`token`?(o(),f(`div`,fe,[d(`code`,{class:s([`tok-val`,{revealed:Z(n.id)}]),title:Z(n.id)?`已显示明文,点击眼睛遮回`:`掩码预览`},a(we(n)),11,pe),n.hasPlain?(o(),h(i,{key:0,type:`text`,size:`small`,class:`tok-op`,loading:v(Y)===n.id,title:Z(n.id)?`遮回`:`查看明文`,onClick:e=>Q(n)},{default:_(()=>[d(`span`,{class:s(Z(n.id)?`i-tabler-eye-off`:`i-tabler-eye`)},null,2)]),_:2},1032,[`loading`,`title`,`onClick`])):m(``,!0),n.hasPlain?(o(),h(i,{key:1,type:`text`,size:`small`,class:s([`tok-op`,{ok:v(X)===n.id}]),title:v(X)===n.id?`已复制`:`复制明文`,onClick:e=>Te(n)},{default:_(()=>[d(`span`,{class:s(v(X)===n.id?`i-tabler-check`:`i-tabler-copy`)},null,2)]),_:2},1032,[`class`,`title`,`onClick`])):m(``,!0)])):t.key===`createdAt`?(o(),f(p,{key:2},[y(a($(n.createdAt)),1)],64)):t.key===`lastUsedAt`?(o(),f(p,{key:3},[y(a($(n.lastUsedAt)),1)],64)):t.key===`action`?(o(),h(S,{key:4},{default:_(()=>[c(i,{type:`link`,size:`small`,onClick:e=>Ee(n)},{default:_(()=>[r[10]||=d(`span`,{class:`i-tabler-edit`},null,-1),y(` `+a(e.$t(`tokens.k3vrpcs009`)),1)]),_:1},8,[`onClick`]),c(C,{title:n.id===v(k).user?.tokenId?`吊销当前会话 token 将退出登录`:`吊销后立即失效`,"ok-text":`吊销`,"cancel-text":`取消`,onConfirm:e=>be(n)},{default:_(()=>[c(i,{type:`text`,size:`small`,class:`tok-revoke`},{default:_(()=>[r[11]||=d(`span`,{class:`i-tabler-trash`},null,-1),y(` `+a(e.$t(`tokens.k3xmrz010`)),1)]),_:1})]),_:1},8,[`title`,`onConfirm`])]),_:2},1024)):m(``,!0)]),_:1},8,[`data-source`])]),_:1},8,[`spinning`])]),_:1}),c(O,{open:v(M),"onUpdate:open":r[3]||=e=>l(M)?M.value=e:null,title:e.$t(`chips.issueTitle`),"confirm-loading":v(P),"ok-text":`创建`,"cancel-text":`取消`,onOk:H},{default:_(()=>[c(D,{value:v(N),"onUpdate:value":r[2]||=e=>l(N)?N.value=e:null,placeholder:e.$t(`tokens.k1hlqknl001`),onKeydown:b(H,[`enter`])},null,8,[`value`,`placeholder`])]),_:1},8,[`open`,`title`,`confirm-loading`]),c(O,{open:v(F)!==``,title:`Token 已创建`,footer:null,"mask-closable":!1,onCancel:q,onAfterClose:q},{default:_(()=>[d(`div`,me,[r[12]||=d(`span`,{class:`i-tabler-circle-check`},null,-1),d(`span`,null,a(e.$t(`tokens.k12149oy011`)),1)]),d(`div`,he,[d(`code`,ge,a(v(W)?v(F):v(xe)),1),d(`button`,{class:`raw-op`,title:v(W)?`隐藏明文`:`显示明文`,onClick:Se},[d(`span`,{class:s(v(W)?`i-tabler-eye-off`:`i-tabler-eye`)},null,2)],8,_e),d(`button`,{class:s([`raw-op`,{ok:v(G)}]),title:v(G)?`已复制`:`复制`,onClick:Ce},[d(`span`,{class:s(v(G)?`i-tabler-check`:`i-tabler-copy`)},null,2)],10,ve)]),d(`div`,ye,[d(`span`,null,a(e.$t(`tokens.k3p0p44027`))+a(v(I)||e.$t(`tokens.kj3mklm028`)),1),r[13]||=d(`span`,null,`用法:Authorization: Bearer <token>`,-1)]),c(i,{type:`primary`,block:``,onClick:q},{default:_(()=>[y(a(e.$t(`tokens.k1s5f5zd012`)),1)]),_:1})]),_:1},8,[`open`]),c(O,{open:v(L),"onUpdate:open":r[5]||=e=>l(L)?L.value=e:null,title:`重命名 Token`,"confirm-loading":v(B),"ok-text":`保存`,"cancel-text":`取消`,onOk:U},{default:_(()=>[c(D,{value:v(z),"onUpdate:value":r[4]||=e=>l(z)?z.value=e:null,placeholder:e.$t(`tokens.k41416002`),onKeydown:b(U,[`enter`])},null,8,[`value`,`placeholder`])]),_:1},8,[`open`,`confirm-loading`])],64)):(o(),f(`div`,se,[c(u,{class:`auth-card`},{default:_(()=>[d(`h2`,null,a(e.$t(`tokens.k1k6z0r8003`)),1),d(`p`,ce,a(e.$t(`tokens.k1gjnree004`)),1),c(i,{type:`primary`,block:``,onClick:r[0]||=t=>(`navigateTo`in e?e.navigateTo:v(x))(`/workshop`)},{default:_(()=>[y(a(e.$t(`tokens.k1bhhheq005`)),1)]),_:1})]),_:1})]))])}}}),[[`__scopeId`,`data-v-e4f73755`]]);export{k as default};
1
+ import{a as e,c as t,n}from"./BU83-NnX.js";import{$ as r,S as i,Ut as a,V as o,Vt as s,b as c,ct as l,d as u,f as d,h as f,i as p,m,p as h,pt as g,tt as _,xt as v,y}from"./CSkxz2NX.js";import{d as b}from"./D6uzXueg.js";import{d as x}from"./BJHKLJJU.js";import{n as S}from"./DtYHUi5Z.js";import{n as C}from"./KZQX7xoM.js";import{t as ee}from"./BneN7fbu.js";import{t as te}from"./DBHNsT1Y.js";import{t as ne}from"./BCGafdXT.js";import{t as re}from"./pdk8jLGT.js";import{t as ie}from"./BYhEUx8t.js";import{t as ae}from"./jZsY8yYz.js";import{t as w}from"./DZtm4l-P2.js";import{t as T}from"./DIaZ2PTo2.js";import{t as E}from"./BDNMzG2s2.js";import{t as D}from"./D0ZBQrN_2.js";import{t as O}from"./CNs_Ozdc2.js";var oe={class:`page`},se={key:0,class:`auth-gate`},ce={class:`sub`},le={class:`aw-page-head`},ue={class:`sub`},de={class:`font-medium`},fe={key:1,class:`tok-cell`},pe=[`title`],me={class:`once-banner`},he={class:`raw-row`},ge={class:`raw`},_e=[`title`],ve=[`title`],ye={class:`once-meta`},k=E(i({__name:`tokens`,setup(i){let{t:E}=C();O({layout:`default`});let k=T(),A=g([]),j=g(!1),M=g(!1),N=g(``),P=g(!1),F=g(``),I=g(``),L=g(!1),R=g(``),z=g(``),B=g(!1),V=async()=>{if(k.isLoggedIn){j.value=!0;try{A.value=await k.listTokens()}catch(t){e.error(t instanceof Error?t.message:E(`tokens.k19jvk54013`))}finally{j.value=!1}}};r(()=>k.isLoggedIn,e=>{e?V():A.value=[]},{immediate:!0});let H=async()=>{P.value=!0;try{let e=await k.createToken(N.value);F.value=e.token,I.value=N.value,M.value=!1,N.value=``,await V()}catch(t){e.error(D(t))}finally{P.value=!1}},U=async()=>{if(!z.value.trim()){e.warning(E(`tokens.k169z26g014`));return}B.value=!0;try{await k.renameToken(R.value,z.value),L.value=!1,await V(),e.success(E(`tokens.k3n9aij015`))}catch(t){e.error(D(t))}finally{B.value=!1}},be=t=>{let n=t.id;if(!n)return;let r=n===k.user?.tokenId;(async()=>{try{if(await k.revokeToken(n),e.success(E(`tokens.k3n64kh016`)),r)return;await V()}catch(t){e.error(D(t))}})()},W=g(!1),G=g(!1),xe=u(()=>{let e=F.value;return e?`${e.slice(0,6)}${`•`.repeat(Math.max(12,e.length-10))}${e.slice(-4)}`:``}),Se=()=>{W.value=!W.value},K=async e=>{try{return await navigator.clipboard.writeText(e),!0}catch{try{let t=document.createElement(`textarea`);t.value=e,t.style.position=`fixed`,t.style.opacity=`0`,document.body.appendChild(t),t.select();let n=document.execCommand(`copy`);return document.body.removeChild(t),n}catch{return!1}}},Ce=async()=>{await K(F.value)?(G.value=!0,setTimeout(()=>{G.value=!1},1600)):e.error(E(`tokens.kjtcn2h017`))},q=()=>{F.value=``,W.value=!1,G.value=!1},J=g({}),Y=g(``),X=g(``),Z=e=>e in J.value,we=e=>Z(e.id)?J.value[e.id]:e.preview??`ut-${`•`.repeat(14)}`,Q=async t=>{if(Z(t.id)){Reflect.deleteProperty(J.value,t.id);return}if(!t.hasPlain){e.warning(E(`tokens.kkpgzo8018`));return}Y.value=t.id;try{let e=await k.revealToken(t.id);e&&(J.value[t.id]=e)}catch(t){e.error(t instanceof Error?t.message:E(`tokens.k1gj9ls019`))}finally{Y.value=``}},Te=async t=>{let n=J.value[t.id]??null;if(!n){if(!t.hasPlain){e.warning(E(`tokens.kr5ovor020`));return}Y.value=t.id;try{n=await k.revealToken(t.id)}catch(t){e.error(t instanceof Error?t.message:E(`tokens.kubtby5021`));return}finally{Y.value=``}}n&&await K(n)?(X.value=t.id,setTimeout(()=>{X.value=``},1600)):e.error(E(`tokens.kgkfcr0022`))},$=e=>e?e.replace(`T`,` `).slice(0,19):`-`,Ee=e=>{R.value=e.id??``,z.value=e.label??``,L.value=!0},De=[{title:E(`tokens.k41416002`),key:`label`,dataIndex:`label`},{title:`Token`,key:`token`,width:360},{title:E(`tokens.k1bg95gk023`),key:`createdAt`,dataIndex:`createdAt`,width:170},{title:E(`tokens.k1euotul024`),key:`lastUsedAt`,dataIndex:`lastUsedAt`,width:200},{title:E(`tokens.k40aa6025`),key:`action`,width:170}];return S({title:()=>E(`titles.tokens`)}),(e,r)=>{let i=t,u=ie,g=ne,S=ae,C=re,T=ee,E=w,D=te,O=n;return o(),f(`div`,oe,[v(k).isLoggedIn?(o(),f(p,{key:1},[d(`div`,le,[d(`div`,null,[r[6]||=d(`p`,{class:`aw-kicker`},` agentworkshop / api tokens `,-1),r[7]||=d(`h1`,null,`API Token`,-1),d(`p`,ue,a(v(k).user?.name)+` · `+a(e.$t(`tokens.k1upppaw026`)),1)]),c(S,{class:`head-actions`},{default:_(()=>[v(k).user?.tokenId?(o(),h(g,{key:0,color:`green`},{default:_(()=>[y(a(e.$t(`tokens.khcxmsc006`)),1)]),_:1})):m(``,!0),c(i,{type:`primary`,onClick:r[1]||=e=>M.value=!0},{default:_(()=>[r[8]||=d(`span`,{class:`i-tabler-plus`},null,-1),y(` `+a(e.$t(`chips.issue`)),1)]),_:1})]),_:1})]),c(u,{bordered:!1,class:`table-card`},{default:_(()=>[c(E,{spinning:v(j)},{default:_(()=>[c(T,{columns:De,"data-source":v(A),pagination:!1,"row-key":`id`},{bodyCell:_(({column:t,record:n})=>[t.key===`label`?(o(),h(S,{key:0},{default:_(()=>[r[9]||=d(`span`,{class:`i-tabler-key text-primary`},null,-1),d(`span`,de,a(n.label||e.$t(`tokens.kj3mklm028`)),1),n.id===v(k).user?.tokenId?(o(),h(g,{key:0,color:`green`},{default:_(()=>[y(a(e.$t(`tokens.k1defr98007`)),1)]),_:1})):m(``,!0)]),_:2},1024)):t.key===`token`?(o(),f(`div`,fe,[d(`code`,{class:s([`tok-val`,{revealed:Z(n.id)}]),title:Z(n.id)?e.$t(`tokens.maskBackTip`):e.$t(`tokens.maskPreview`)},a(we(n)),11,pe),n.hasPlain?(o(),h(i,{key:0,type:`text`,size:`small`,class:`tok-op`,loading:v(Y)===n.id,title:Z(n.id)?e.$t(`tokens.maskBack`):e.$t(`tokens.revealPlain`),onClick:e=>Q(n)},{default:_(()=>[d(`span`,{class:s(Z(n.id)?`i-tabler-eye-off`:`i-tabler-eye`)},null,2)]),_:2},1032,[`loading`,`title`,`onClick`])):m(``,!0),n.hasPlain?(o(),h(i,{key:1,type:`text`,size:`small`,class:s([`tok-op`,{ok:v(X)===n.id}]),title:v(X)===n.id?e.$t(`tokens.copied`):e.$t(`tokens.copyPlain`),onClick:e=>Te(n)},{default:_(()=>[d(`span`,{class:s(v(X)===n.id?`i-tabler-check`:`i-tabler-copy`)},null,2)]),_:2},1032,[`class`,`title`,`onClick`])):m(``,!0)])):t.key===`createdAt`?(o(),f(p,{key:2},[y(a($(n.createdAt)),1)],64)):t.key===`lastUsedAt`?(o(),f(p,{key:3},[y(a($(n.lastUsedAt)),1)],64)):t.key===`action`?(o(),h(S,{key:4},{default:_(()=>[c(i,{type:`link`,size:`small`,onClick:e=>Ee(n)},{default:_(()=>[r[10]||=d(`span`,{class:`i-tabler-edit`},null,-1),y(` `+a(e.$t(`tokens.k3vrpcs009`)),1)]),_:1},8,[`onClick`]),c(C,{title:n.id===v(k).user?.tokenId?e.$t(`tokens.revokeCurrentWarn`):e.$t(`tokens.revokeWarn`),"ok-text":e.$t(`common.revoke`),"cancel-text":e.$t(`common.cancel`),onConfirm:e=>be(n)},{default:_(()=>[c(i,{type:`text`,size:`small`,class:`tok-revoke`},{default:_(()=>[r[11]||=d(`span`,{class:`i-tabler-trash`},null,-1),y(` `+a(e.$t(`tokens.k3xmrz010`)),1)]),_:1})]),_:1},8,[`title`,`ok-text`,`cancel-text`,`onConfirm`])]),_:2},1024)):m(``,!0)]),_:1},8,[`data-source`])]),_:1},8,[`spinning`])]),_:1}),c(O,{open:v(M),"onUpdate:open":r[3]||=e=>l(M)?M.value=e:null,title:e.$t(`chips.issueTitle`),"confirm-loading":v(P),"ok-text":e.$t(`common.create`),"cancel-text":e.$t(`common.cancel`),onOk:H},{default:_(()=>[c(D,{value:v(N),"onUpdate:value":r[2]||=e=>l(N)?N.value=e:null,placeholder:e.$t(`tokens.k1hlqknl001`),onKeydown:b(H,[`enter`])},null,8,[`value`,`placeholder`])]),_:1},8,[`open`,`title`,`confirm-loading`,`ok-text`,`cancel-text`]),c(O,{open:v(F)!==``,title:e.$t(`tokens.createdTitle`),footer:null,"mask-closable":!1,onCancel:q,onAfterClose:q},{default:_(()=>[d(`div`,me,[r[12]||=d(`span`,{class:`i-tabler-circle-check`},null,-1),d(`span`,null,a(e.$t(`tokens.k12149oy011`)),1)]),d(`div`,he,[d(`code`,ge,a(v(W)?v(F):v(xe)),1),d(`button`,{class:`raw-op`,title:v(W)?e.$t(`tokens.hidePlain`):e.$t(`tokens.showPlain`),onClick:Se},[d(`span`,{class:s(v(W)?`i-tabler-eye-off`:`i-tabler-eye`)},null,2)],8,_e),d(`button`,{class:s([`raw-op`,{ok:v(G)}]),title:v(G)?e.$t(`tokens.copied`):e.$t(`tokens.copy`),onClick:Ce},[d(`span`,{class:s(v(G)?`i-tabler-check`:`i-tabler-copy`)},null,2)],10,ve)]),d(`div`,ye,[d(`span`,null,a(e.$t(`tokens.k3p0p44027`))+a(v(I)||e.$t(`tokens.kj3mklm028`)),1),d(`span`,null,a(e.$t(`tokens.usage`)),1)]),c(i,{type:`primary`,block:``,onClick:q},{default:_(()=>[y(a(e.$t(`tokens.k1s5f5zd012`)),1)]),_:1})]),_:1},8,[`open`,`title`]),c(O,{open:v(L),"onUpdate:open":r[5]||=e=>l(L)?L.value=e:null,title:e.$t(`tokens.renameTitle`),"confirm-loading":v(B),"ok-text":e.$t(`common.save`),"cancel-text":e.$t(`common.cancel`),onOk:U},{default:_(()=>[c(D,{value:v(z),"onUpdate:value":r[4]||=e=>l(z)?z.value=e:null,placeholder:e.$t(`tokens.k41416002`),onKeydown:b(U,[`enter`])},null,8,[`value`,`placeholder`])]),_:1},8,[`open`,`title`,`confirm-loading`,`ok-text`,`cancel-text`])],64)):(o(),f(`div`,se,[c(u,{class:`auth-card`},{default:_(()=>[d(`h2`,null,a(e.$t(`tokens.k1k6z0r8003`)),1),d(`p`,ce,a(e.$t(`tokens.k1gjnree004`)),1),c(i,{type:`primary`,block:``,onClick:r[0]||=t=>(`navigateTo`in e?e.navigateTo:v(x))(`/workshop`)},{default:_(()=>[y(a(e.$t(`tokens.k1bhhheq005`)),1)]),_:1})]),_:1})]))])}}}),[[`__scopeId`,`data-v-1f7fbb8c`]]);export{k as default};
@@ -1 +1 @@
1
- import{O as e,a as t,c as n,j as r,m as i,p as a}from"./BU83-NnX.js";import{$ as o,P as s,R as c,S as l,Ut as u,V as d,Vt as ee,b as f,ct as p,d as m,f as h,h as g,i as _,m as v,p as y,pt as b,tt as x,xt as S,y as C}from"./CSkxz2NX.js";import{d as w,p as T}from"./BJHKLJJU.js";import{s as E}from"./YnQxK3eG.js";import{n as te}from"./KZQX7xoM.js";import{t as ne}from"./CWoJjWmZ.js";import{d as D,jt as O,n as k,t as A,u as j,wt as M}from"./4sIEbgcl.js";import{t as re}from"./BneN7fbu.js";import{t as ie}from"./BCGafdXT.js";import{t as N}from"./pdk8jLGT.js";import{t as ae}from"./BYhEUx8t.js";import{t as oe}from"./jZsY8yYz.js";import{t as se}from"./CClOy-Hz2.js";import{t as ce}from"./DIaZ2PTo2.js";import{t as P}from"./BDNMzG2s2.js";import{t as le}from"./CNs_Ozdc2.js";import{t as ue}from"./DeJykBFf.js";var F={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z`}}]},name:`warning`,theme:`filled`};function I(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:Object(arguments[t]),r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){L(e,t,n[t])})}return e}function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var R=function(e,t){var n=I({},e,t.attrs);return f(r,I({},n,{icon:F}),null)};R.displayName=`WarningFilled`,R.inheritAttrs=!1;var z=()=>f(`svg`,{width:`252`,height:`294`},[f(`defs`,null,[f(`path`,{d:`M0 .387h251.772v251.772H0z`},null)]),f(`g`,{fill:`none`,"fill-rule":`evenodd`},[f(`g`,{transform:`translate(0 .012)`},[f(`mask`,{fill:`#fff`},null),f(`path`,{d:`M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321`,fill:`#E4EBF7`,mask:`url(#b)`},null)]),f(`path`,{d:`M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66`,fill:`#FFF`},null),f(`path`,{d:`M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788`,stroke:`#FFF`,"stroke-width":`2`},null),f(`path`,{d:`M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175`,fill:`#FFF`},null),f(`path`,{d:`M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932`,fill:`#FFF`},null),f(`path`,{d:`M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011`,stroke:`#FFF`,"stroke-width":`2`},null),f(`path`,{d:`M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382`,fill:`#FFF`},null),f(`path`,{d:`M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z`,stroke:`#FFF`,"stroke-width":`2`},null),f(`path`,{stroke:`#FFF`,"stroke-width":`2`,d:`M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39`},null),f(`path`,{d:`M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742`,fill:`#FFF`},null),f(`path`,{d:`M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48`,fill:`#1890FF`},null),f(`path`,{d:`M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894`,fill:`#FFF`},null),f(`path`,{d:`M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88`,fill:`#FFB594`},null),f(`path`,{d:`M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624`,fill:`#FFC6A0`},null),f(`path`,{d:`M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682`,fill:`#FFF`},null),f(`path`,{d:`M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573`,fill:`#CBD1D1`},null),f(`path`,{d:`M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z`,fill:`#2B0849`},null),f(`path`,{d:`M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558`,fill:`#A4AABA`},null),f(`path`,{d:`M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z`,fill:`#CBD1D1`},null),f(`path`,{d:`M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062`,fill:`#2B0849`},null),f(`path`,{d:`M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15`,fill:`#A4AABA`},null),f(`path`,{d:`M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165`,fill:`#7BB2F9`},null),f(`path`,{d:`M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M107.275 222.1s2.773-1.11 6.102-3.884`,stroke:`#648BD8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038`,fill:`#192064`},null),f(`path`,{d:`M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81`,fill:`#FFF`},null),f(`path`,{d:`M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642`,fill:`#192064`},null),f(`path`,{d:`M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268`,fill:`#FFC6A0`},null),f(`path`,{d:`M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456`,fill:`#FFC6A0`},null),f(`path`,{d:`M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z`,fill:`#520038`},null),f(`path`,{d:`M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254`,fill:`#552950`},null),f(`path`,{stroke:`#DB836E`,"stroke-width":`1.118`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M110.13 74.84l-.896 1.61-.298 4.357h-2.228`},null),f(`path`,{d:`M110.846 74.481s1.79-.716 2.506.537`,stroke:`#5C2552`,"stroke-width":`1.118`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67`,stroke:`#DB836E`,"stroke-width":`1.118`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M103.287 72.93s1.83 1.113 4.137.954`,stroke:`#5C2552`,"stroke-width":`1.118`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639`,stroke:`#DB836E`,"stroke-width":`1.118`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206`,stroke:`#E4EBF7`,"stroke-width":`1.101`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M129.405 122.865s-5.272 7.403-9.422 10.768`,stroke:`#E4EBF7`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M119.306 107.329s.452 4.366-2.127 32.062`,stroke:`#E4EBF7`,"stroke-width":`1.101`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01`,fill:`#F2D7AD`},null),f(`path`,{d:`M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92`,fill:`#F4D19D`},null),f(`path`,{d:`M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z`,fill:`#F2D7AD`},null),f(`path`,{fill:`#CC9B6E`,d:`M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z`},null),f(`path`,{d:`M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83`,fill:`#F4D19D`},null),f(`path`,{fill:`#CC9B6E`,d:`M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z`},null),f(`path`,{fill:`#CC9B6E`,d:`M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z`},null),f(`path`,{d:`M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238`,fill:`#FFC6A0`},null),f(`path`,{d:`M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044`,stroke:`#DB836E`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617`,stroke:`#DB836E`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754`,stroke:`#DB836E`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647`,fill:`#5BA02E`},null),f(`path`,{d:`M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647`,fill:`#92C110`},null),f(`path`,{d:`M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187`,fill:`#F2D7AD`},null),f(`path`,{d:`M88.979 89.48s7.776 5.384 16.6 2.842`,stroke:`#E4EBF7`,"stroke-width":`1.101`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null)])]),B=()=>f(`svg`,{width:`254`,height:`294`},[f(`defs`,null,[f(`path`,{d:`M0 .335h253.49v253.49H0z`},null),f(`path`,{d:`M0 293.665h253.49V.401H0z`},null)]),f(`g`,{fill:`none`,"fill-rule":`evenodd`},[f(`g`,{transform:`translate(0 .067)`},[f(`mask`,{fill:`#fff`},null),f(`path`,{d:`M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134`,fill:`#E4EBF7`,mask:`url(#b)`},null)]),f(`path`,{d:`M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671`,fill:`#FFF`},null),f(`path`,{d:`M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861`,stroke:`#FFF`,"stroke-width":`2`},null),f(`path`,{d:`M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238`,fill:`#FFF`},null),f(`path`,{d:`M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775`,fill:`#FFF`},null),f(`path`,{d:`M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68`,fill:`#FF603B`},null),f(`path`,{d:`M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733`,fill:`#FFF`},null),f(`path`,{d:`M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487`,fill:`#FFB594`},null),f(`path`,{d:`M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235`,fill:`#FFF`},null),f(`path`,{d:`M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246`,fill:`#FFB594`},null),f(`path`,{d:`M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508`,fill:`#FFC6A0`},null),f(`path`,{d:`M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z`,fill:`#520038`},null),f(`path`,{d:`M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26`,fill:`#552950`},null),f(`path`,{stroke:`#DB836E`,"stroke-width":`1.063`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M99.206 73.644l-.9 1.62-.3 4.38h-2.24`},null),f(`path`,{d:`M99.926 73.284s1.8-.72 2.52.54`,stroke:`#5C2552`,"stroke-width":`1.117`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68`,stroke:`#DB836E`,"stroke-width":`1.117`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M92.326 71.724s1.84 1.12 4.16.96`,stroke:`#5C2552`,"stroke-width":`1.117`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954`,stroke:`#DB836E`,"stroke-width":`1.063`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044`,stroke:`#E4EBF7`,"stroke-width":`1.136`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583`,fill:`#FFF`},null),f(`path`,{d:`M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75`,fill:`#FFC6A0`},null),f(`path`,{d:`M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713`,fill:`#FFC6A0`},null),f(`path`,{d:`M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51`,stroke:`#E4EBF7`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16`,fill:`#FFC6A0`},null),f(`path`,{d:`M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575`,fill:`#FFF`},null),f(`path`,{d:`M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47`,fill:`#CBD1D1`},null),f(`path`,{d:`M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z`,fill:`#2B0849`},null),f(`path`,{d:`M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671`,fill:`#A4AABA`},null),f(`path`,{d:`M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z`,fill:`#CBD1D1`},null),f(`path`,{d:`M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162`,fill:`#2B0849`},null),f(`path`,{d:`M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156`,fill:`#A4AABA`},null),f(`path`,{d:`M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69`,fill:`#7BB2F9`},null),f(`path`,{d:`M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034`,stroke:`#648BD8`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M96.973 219.373s2.882-1.153 6.34-4.034`,stroke:`#648BD8`,"stroke-width":`1.032`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07`,stroke:`#648BD8`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62`,fill:`#192064`},null),f(`path`,{d:`M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843`,fill:`#FFF`},null),f(`path`,{d:`M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668`,fill:`#192064`},null),f(`path`,{d:`M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513`,stroke:`#648BD8`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72`,stroke:`#E4EBF7`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69`,fill:`#FFC6A0`},null),f(`path`,{d:`M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593`,stroke:`#DB836E`,"stroke-width":`.774`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762`,stroke:`#E59788`,"stroke-width":`.774`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594`,fill:`#FFC6A0`},null),f(`path`,{d:`M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12`,stroke:`#E59788`,"stroke-width":`.774`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M109.278 112.533s3.38-3.613 7.575-4.662`,stroke:`#E4EBF7`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M107.375 123.006s9.697-2.745 11.445-.88`,stroke:`#E59788`,"stroke-width":`.774`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955`,stroke:`#BFCDDD`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01`,fill:`#A3B4C6`},null),f(`path`,{d:`M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813`,fill:`#A3B4C6`},null),f(`mask`,{fill:`#fff`},null),f(`path`,{fill:`#A3B4C6`,mask:`url(#d)`,d:`M154.098 190.096h70.513v-84.617h-70.513z`},null),f(`path`,{d:`M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208`,fill:`#BFCDDD`,mask:`url(#d)`},null),f(`path`,{d:`M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802`,fill:`#FFF`,mask:`url(#d)`},null),f(`path`,{d:`M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209`,fill:`#BFCDDD`,mask:`url(#d)`},null),f(`path`,{d:`M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751`,stroke:`#7C90A5`,"stroke-width":`1.124`,"stroke-linecap":`round`,"stroke-linejoin":`round`,mask:`url(#d)`},null),f(`path`,{d:`M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802`,fill:`#FFF`,mask:`url(#d)`},null),f(`path`,{d:`M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407`,fill:`#BFCDDD`,mask:`url(#d)`},null),f(`path`,{d:`M177.259 207.217v11.52M201.05 207.217v11.52`,stroke:`#A3B4C6`,"stroke-width":`1.124`,"stroke-linecap":`round`,"stroke-linejoin":`round`,mask:`url(#d)`},null),f(`path`,{d:`M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422`,fill:`#5BA02E`,mask:`url(#d)`},null),f(`path`,{d:`M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423`,fill:`#92C110`,mask:`url(#d)`},null),f(`path`,{d:`M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209`,fill:`#F2D7AD`,mask:`url(#d)`},null)])]),V=()=>f(`svg`,{width:`251`,height:`294`},[f(`g`,{fill:`none`,"fill-rule":`evenodd`},[f(`path`,{d:`M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023`,fill:`#E4EBF7`},null),f(`path`,{d:`M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65`,fill:`#FFF`},null),f(`path`,{d:`M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73`,stroke:`#FFF`,"stroke-width":`2`},null),f(`path`,{d:`M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126`,fill:`#FFF`},null),f(`path`,{d:`M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873`,fill:`#FFF`},null),f(`path`,{d:`M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36`,stroke:`#FFF`,"stroke-width":`2`},null),f(`path`,{d:`M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375`,fill:`#FFF`},null),f(`path`,{d:`M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z`,stroke:`#FFF`,"stroke-width":`2`},null),f(`path`,{stroke:`#FFF`,"stroke-width":`2`,d:`M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668`},null),f(`path`,{d:`M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321`,fill:`#A26EF4`},null),f(`path`,{d:`M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734`,fill:`#FFF`},null),f(`path`,{d:`M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717`,fill:`#FFF`},null),f(`path`,{d:`M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61`,fill:`#5BA02E`},null),f(`path`,{d:`M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611`,fill:`#92C110`},null),f(`path`,{d:`M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17`,fill:`#F2D7AD`},null),f(`path`,{d:`M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085`,fill:`#FFF`},null),f(`path`,{d:`M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233`,fill:`#FFC6A0`},null),f(`path`,{d:`M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367`,fill:`#FFB594`},null),f(`path`,{d:`M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95`,fill:`#FFC6A0`},null),f(`path`,{d:`M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929`,fill:`#FFF`},null),f(`path`,{d:`M78.18 94.656s.911 7.41-4.914 13.078`,stroke:`#E4EBF7`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437`,stroke:`#E4EBF7`,"stroke-width":`.932`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z`,fill:`#FFC6A0`},null),f(`path`,{d:`M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91`,fill:`#FFB594`},null),f(`path`,{d:`M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103`,fill:`#5C2552`},null),f(`path`,{d:`M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145`,fill:`#FFC6A0`},null),f(`path`,{stroke:`#DB836E`,"stroke-width":`1.145`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M100.843 77.099l1.701-.928-1.015-4.324.674-1.406`},null),f(`path`,{d:`M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32`,fill:`#552950`},null),f(`path`,{d:`M91.132 86.786s5.269 4.957 12.679 2.327`,stroke:`#DB836E`,"stroke-width":`1.145`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25`,fill:`#DB836E`},null),f(`path`,{d:`M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073`,stroke:`#5C2552`,"stroke-width":`1.526`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254`,stroke:`#DB836E`,"stroke-width":`1.145`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008`,stroke:`#E4EBF7`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M66.508 86.763s-1.598 8.83-6.697 14.078`,stroke:`#E4EBF7`,"stroke-width":`1.114`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M128.31 87.934s3.013 4.121 4.06 11.785`,stroke:`#E4EBF7`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M64.09 84.816s-6.03 9.912-13.607 9.903`,stroke:`#DB836E`,"stroke-width":`.795`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73`,fill:`#FFC6A0`},null),f(`path`,{d:`M130.532 85.488s4.588 5.757 11.619 6.214`,stroke:`#DB836E`,"stroke-width":`.75`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M121.708 105.73s-.393 8.564-1.34 13.612`,stroke:`#E4EBF7`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M115.784 161.512s-3.57-1.488-2.678-7.14`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68`,fill:`#CBD1D1`},null),f(`path`,{d:`M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z`,fill:`#2B0849`},null),f(`path`,{d:`M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62`,fill:`#A4AABA`},null),f(`path`,{d:`M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z`,fill:`#CBD1D1`},null),f(`path`,{d:`M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078`,fill:`#2B0849`},null),f(`path`,{d:`M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15`,fill:`#A4AABA`},null),f(`path`,{d:`M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954`,fill:`#7BB2F9`},null),f(`path`,{d:`M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M108.459 220.905s2.759-1.104 6.07-3.863`,stroke:`#648BD8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017`,fill:`#192064`},null),f(`path`,{d:`M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806`,fill:`#FFF`},null),f(`path`,{d:`M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64`,fill:`#192064`},null),f(`path`,{d:`M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null)])]),H=e=>{let{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:i,paddingXL:a,paddingXS:o,paddingLG:s,marginXS:c,lineHeight:l}=e;return{[t]:{padding:`${s*2}px ${a}px`,"&-rtl":{direction:`rtl`}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:`auto`},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:`center`,[`& > ${r}`]:{fontSize:e.resultIconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.resultTitleFontSize,lineHeight:n,marginBlock:c,textAlign:`center`},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.resultSubtitleFontSize,lineHeight:l,textAlign:`center`},[`${t} ${t}-content`]:{marginTop:s,padding:`${s}px ${i*2.5}px`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.resultExtraMargin,textAlign:`center`,"& > *":{marginInlineEnd:o,"&:last-child":{marginInlineEnd:0}}}}},U=e=>{let{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},W=e=>[H(e),U(e)],G=e=>W(e),K=D(`Result`,e=>{let{paddingLG:t,fontSizeHeading3:n}=e,r=e.fontSize,i=`${t}px 0 0 0`,a=e.colorInfo,o=e.colorError,s=e.colorSuccess,c=e.colorWarning;return[G(j(e,{resultTitleFontSize:n,resultSubtitleFontSize:r,resultIconFontSize:n*3,resultExtraMargin:i,resultInfoIconColor:a,resultErrorIconColor:o,resultSuccessIconColor:s,resultWarningIconColor:c}))]},{imageWidth:250,imageHeight:295}),q={success:i,error:e,info:a,warning:R},J={404:z,500:B,403:V},Y=Object.keys(J),X=()=>({prefixCls:String,icon:A.any,status:{type:[Number,String],default:`info`},title:A.any,subTitle:A.any,extra:A.any}),Z=(e,t)=>{let{status:n,icon:r}=t;if(Y.includes(`${n}`)){let t=J[n];return f(`div`,{class:`${e}-icon ${e}-image`},[f(t,null,null)])}let i=q[n],a=r||f(i,null,null);return f(`div`,{class:`${e}-icon`},[a])},de=(e,t)=>t&&f(`div`,{class:`${e}-extra`},[t]),Q=l({compatConfig:{MODE:3},name:`AResult`,inheritAttrs:!1,props:X(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t,{prefixCls:i,direction:a}=k(`result`,e),[o,s]=K(i),c=m(()=>M(i.value,s.value,`${i.value}-${e.status}`,{[`${i.value}-rtl`]:a.value===`rtl`}));return()=>{let t=e.title??n.title?.call(n),a=e.subTitle??n.subTitle?.call(n),s=e.icon??n.icon?.call(n),l=e.extra??n.extra?.call(n),u=i.value;return o(f(`div`,O(O({},r),{},{class:[c.value,r.class]}),[Z(u,{status:e.status,icon:s}),f(`div`,{class:`${u}-title`},[t]),a&&f(`div`,{class:`${u}-subtitle`},[a]),de(u,l),n.default&&f(`div`,{class:`${u}-content`},[n.default()])]))}}});Q.PRESENTED_IMAGE_403=J[403],Q.PRESENTED_IMAGE_404=J[404],Q.PRESENTED_IMAGE_500=J[500],Q.install=function(e){return e.component(Q.name,Q),e};var fe={class:`monitor`},$={class:`aw-page-head`},pe={class:`aw-kicker`},me={class:`head-right`},he={class:`toggle-label`},ge={class:`stat-grid`},_e={class:`stat-label`},ve={class:`stat-value aw-mono`},ye={class:`stat-label`},be={class:`stat-value aw-mono`},xe={class:`stat-label`},Se={class:`stat-value aw-mono`},Ce={key:0,class:`orphan-badge`},we={class:`stat-label`},Te={class:`stat-value aw-mono small`},Ee={class:`stat-updated`},De={class:`aw-mono count-extra`},Oe={key:0,class:`aw-mono`},ke={key:2,class:`aw-mono`},Ae={class:`aw-mono count-extra`},je={key:3,class:`aw-mono`},Me={key:4,class:`aw-mono`},Ne={key:0},Pe={key:1,class:`aw-mono`},Fe={class:`aw-mono count-extra`},Ie={key:0,class:`aw-mono`},Le={key:0,class:`aw-mono agent-sub`},Re={key:0},ze={key:1},Be={key:4,class:`aw-mono small`},Ve={key:5,class:`aw-mono small`},He=P(l({__name:`monitor`,setup(e){le({layout:`default`});let{t:r}=te(),i=T(),a=ce(),l=m(()=>a.isAdmin),D=b(null),O=b(!1),k=b(!0),A=b(``),j=async()=>{if(a.token){O.value=!0;try{let e=await E(`/api/system/monitor`,{headers:{authorization:`Bearer ${a.token}`}});D.value=e.data,A.value=new Date().toLocaleTimeString()}catch(e){t.error(e instanceof Error?e.message:r(`monitor.loadFailed`))}finally{O.value=!1}}},M=null,P=()=>{M&&=(clearInterval(M),null),k.value&&a.token&&(M=ne(()=>void j(),5e3))};o(k,()=>P()),o(()=>a.token,()=>{a.token?j():D.value=null,P()}),c(()=>{a.token&&j().then(()=>H()),P()}),s(()=>{M&&clearInterval(M)});let F=b(!1),I=async e=>{F.value=!0;try{let n=await E(`/api/system/monitor/terminate`,{method:`POST`,headers:{authorization:`Bearer ${a.token}`},body:{channelId:e.channelId,agentId:e.agentId}});t.success(n.code===0?`${e.name} ${r(`monitor.terminated`)}`:n.message??r(`monitor.failed`)),await j()}catch(e){t.error(e instanceof Error?e.message:r(`monitor.failed`))}finally{F.value=!1}},L=async e=>{F.value=!0;try{let n=await E(`/api/system/monitor/terminate`,{method:`POST`,headers:{authorization:`Bearer ${a.token}`},body:{pid:e.pid}});t.success(n.code===0?`PID ${e.pid} ${r(`monitor.terminated`)}`:n.message??r(`monitor.failed`)),await j()}catch(e){t.error(e instanceof Error?e.message:r(`monitor.failed`))}finally{F.value=!1}},R=b(!1),z=b(null),B=b(``),V=(e,t,n)=>{z.value=e,B.value=[t,n].filter(Boolean).join(` · `)||`omp harness`,R.value=!0},H=()=>{let e=i.query.agentId;if(typeof e!=`string`||!e)return;let t=typeof i.query.channelId==`string`?i.query.channelId:``,n=D.value?.processes.find(n=>n.agentId===e&&(!t||n.channelId===t));n?.pid&&(V(n.pid,n.name,n.role),w({path:`/monitor`},{replace:!0}))},U=e=>e&&e.length>8?`${e.slice(0,8)}…`:e??`-`,W={idle:`success`,busy:`processing`,stopped:`error`},G={idle:r(`monitor.stateIdle`),busy:r(`monitor.stateBusy`),stopped:r(`monitor.stateStopped`)},K=e=>{let t=Math.floor(e/1e3),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=t%60;return n>0?`${n}h ${r}m`:r>0?`${r}m ${i}s`:`${i}s`},q=e=>new Date(e).toLocaleTimeString(),J=m(()=>l.value?[{title:r(`monitor.k1dg9sr8001`),dataIndex:`ownerName`,key:`ownerName`,width:110}]:[]),Y=m(()=>[{title:r(`monitor.chChannel`),dataIndex:`channelId`,key:`channelId`},{title:r(`monitor.members`),dataIndex:`memberCount`,key:`memberCount`,width:100},{title:r(`monitor.wired`),dataIndex:`wiredAgentCount`,key:`wiredAgentCount`,width:90},{title:r(`monitor.scheduler`),dataIndex:`hasScheduler`,key:`hasScheduler`,width:110},{title:r(`monitor.lead`),dataIndex:`leadAgentId`,key:`leadAgentId`},...J.value]),X=m(()=>[{title:r(`monitor.name`),dataIndex:`name`,key:`name`},{title:r(`monitor.role`),dataIndex:`role`,key:`role`,width:90},{title:r(`monitor.harness`),dataIndex:`harness`,key:`harness`,width:90},{title:r(`monitor.state`),dataIndex:`state`,key:`state`,width:110},{title:r(`monitor.currentTask`),dataIndex:`currentTaskId`,key:`currentTaskId`},{title:r(`monitor.queue`),dataIndex:`queuedCount`,key:`queuedCount`,width:90},{title:`PID`,dataIndex:`process`,key:`pid`,width:130},{title:r(`monitor.channel`),dataIndex:`channelId`,key:`channelId`,width:130},...J.value,{title:r(`monitor.actions`),key:`actions`,width:190,fixed:`right`}]),Z=m(()=>[{title:`PID`,dataIndex:`pid`,key:`pid`,width:100},{title:r(`monitor.binding`),dataIndex:`bound`,key:`bound`,width:100},{title:r(`monitor.agent`),dataIndex:`name`,key:`name`},{title:r(`monitor.role`),dataIndex:`role`,key:`role`,width:90},{title:r(`monitor.command`),dataIndex:`command`,key:`command`},{title:r(`monitor.startedAt`),dataIndex:`startedAt`,key:`startedAt`,width:110},{title:r(`monitor.state`),dataIndex:`alive`,key:`alive`,width:100},...J.value,{title:r(`monitor.actions`),key:`actions`,width:170,fixed:`right`}]);return(e,t)=>{let i=ie,o=se,s=n,c=Q,l=ae,m=re,b=N,T=oe;return d(),g(`div`,fe,[h(`div`,$,[h(`div`,null,[h(`p`,pe,u(S(r)(`menu.system`))+` / runtime ledger `,1),h(`h1`,null,[C(u(S(r)(`monitor.title`))+` `,1),f(i,{color:S(D)?.scope===`admin`?`volcano`:`blue`,class:`scope-tag`},{default:x(()=>[h(`span`,{class:ee(S(D)?.scope===`admin`?`i-tabler-shield-check`:`i-tabler-user`)},null,2),C(` `+u(S(D)?.scope===`admin`?e.$t(`monitor.k16zpmg9002`):e.$t(`monitor.k1dzryry003`)),1)]),_:1},8,[`color`])])]),h(`div`,me,[f(o,{checked:S(k),"onUpdate:checked":t[0]||=e=>p(k)?k.value=e:null,size:`small`},null,8,[`checked`]),h(`span`,he,u(S(r)(`monitor.autoRefresh`)),1),f(s,{size:`small`,loading:S(O),onClick:j},{icon:x(()=>[...t[3]||=[h(`span`,{class:`i-tabler-refresh`},null,-1)]]),default:x(()=>[C(` `+u(S(r)(`monitor.refresh`)),1)]),_:1},8,[`loading`])])]),S(a).token?(d(),g(_,{key:1},[h(`div`,ge,[f(l,{class:`aw-panel stat`},{default:x(()=>[h(`p`,_e,u(S(r)(`monitor.channels`)),1),h(`p`,ve,u(S(D)?.counts.channels??`–`),1)]),_:1}),f(l,{class:`aw-panel stat`},{default:x(()=>[h(`p`,ye,u(S(r)(`monitor.agents`)),1),h(`p`,be,u(S(D)?.counts.agents??`–`),1)]),_:1}),f(l,{class:`aw-panel stat`},{default:x(()=>[h(`p`,xe,u(S(r)(`monitor.aliveProcesses`)),1),h(`p`,Se,[C(u(S(D)?.counts.aliveProcesses??`–`)+` `,1),(S(D)?.counts.orphanProcesses??0)>0?(d(),g(`span`,Ce,` +`+u(S(D)?.counts.orphanProcesses)+` `+u(S(r)(`monitor.orphan`)),1)):v(``,!0)])]),_:1}),f(l,{class:`aw-panel stat`},{default:x(()=>[h(`p`,we,u(S(r)(`monitor.server`)),1),h(`p`,Te,` PID `+u(S(D)?.serverPid??`–`)+` · `+u(S(D)?K(S(D).uptimeMs):``),1),h(`p`,Ee,u(S(A))+` · `+u(S(r)(`monitor.updated`))+` `+u(S(D)?.generatedAt??``),1)]),_:1})]),f(l,{class:`aw-panel`,title:S(r)(`monitor.channelRuntimes`)},{extra:x(()=>[h(`span`,De,u(S(D)?.channels.length??0)+` wired`,1)]),default:x(()=>[f(m,{columns:S(Y),"data-source":S(D)?.channels??[],pagination:!1,loading:S(O),"row-key":`channelId`,size:`small`,scroll:{x:720}},{bodyCell:x(({column:e,record:n})=>[e.key===`channelId`?(d(),g(`span`,Oe,u(U(n.channelId)),1)):e.key===`hasScheduler`?(d(),g(_,{key:1},[n.hasScheduler?(d(),y(i,{key:0,color:`purple`},{default:x(()=>[C(u(S(r)(`monitor.scheduling`)),1)]),_:1})):(d(),y(i,{key:1},{default:x(()=>[...t[4]||=[C(` – `,-1)]]),_:1}))],64)):e.key===`leadAgentId`?(d(),g(`span`,ke,u(U(n.leadAgentId)),1)):v(``,!0)]),_:1},8,[`columns`,`data-source`,`loading`])]),_:1},8,[`title`]),f(l,{class:`aw-panel`,title:S(r)(`monitor.agentRuntimes`)},{extra:x(()=>[h(`span`,Ae,u(S(D)?.agents.length??0)+` wired`,1)]),default:x(()=>[f(m,{columns:S(X),"data-source":S(D)?.agents??[],pagination:!1,loading:S(O),"row-key":`agentId`,size:`small`,scroll:{x:980}},{bodyCell:x(({column:e,record:n})=>[e.key===`role`?(d(),y(i,{key:0,color:n.role===`lead`?`gold`:`blue`},{default:x(()=>[C(u(n.role),1)]),_:2},1032,[`color`])):e.key===`harness`?(d(),y(i,{key:1},{default:x(()=>[C(u(n.harness),1)]),_:2},1024)):e.key===`state`?(d(),y(i,{key:2,color:W[n.state]??`default`},{default:x(()=>[C(u(G[n.state]??n.state),1)]),_:2},1032,[`color`])):e.key===`currentTaskId`?(d(),g(`span`,je,u(U(n.currentTaskId)),1)):e.key===`channelId`?(d(),g(`span`,Me,u(U(n.channelId)),1)):e.key===`pid`?(d(),g(_,{key:5},[n.process?(d(),g(`span`,Ne,[f(i,{color:n.process.alive?`success`:`default`,class:`aw-mono`},{default:x(()=>[C(` PID `+u(n.process.pid),1)]),_:2},1032,[`color`])])):(d(),g(`span`,Pe,`in-proc`))],64)):e.key===`actions`?(d(),y(T,{key:6,size:4},{default:x(()=>[n.process?.alive?(d(),y(s,{key:0,size:`small`,type:`primary`,ghost:``,title:S(r)(`monitor.openTerminalHint`),onClick:e=>V(n.process.pid,n.name,n.role)},{icon:x(()=>[...t[5]||=[h(`span`,{class:`i-tabler-terminal-2`},null,-1)]]),default:x(()=>[C(` `+u(S(r)(`monitor.openTerminal`)),1)]),_:1},8,[`title`,`onClick`])):v(``,!0),f(b,{title:`${S(r)(`monitor.terminateConfirm`)}(${n.name})`,"ok-text":S(r)(`common.confirm`),"cancel-text":S(r)(`common.cancel`),onConfirm:e=>I(n)},{default:x(()=>[f(s,{size:`small`,danger:``,disabled:S(F)},{icon:x(()=>[...t[6]||=[h(`span`,{class:`i-tabler-square-x`},null,-1)]]),default:x(()=>[C(` `+u(S(r)(`monitor.terminate`)),1)]),_:1},8,[`disabled`])]),_:1},8,[`title`,`ok-text`,`cancel-text`,`onConfirm`])]),_:2},1024)):v(``,!0)]),_:1},8,[`columns`,`data-source`,`loading`])]),_:1},8,[`title`]),f(l,{class:`aw-panel`,title:S(r)(`monitor.harnessProcesses`)},{extra:x(()=>[h(`span`,Fe,u(S(D)?.processes.length??0)+` spawned · `+u(S(D)?.counts.orphanProcesses??0)+` orphan `,1)]),default:x(()=>[f(m,{columns:S(Z),"data-source":S(D)?.processes??[],pagination:!1,loading:S(O),"row-key":`pid`,size:`small`,scroll:{x:900}},{bodyCell:x(({column:e,record:n})=>[e.key===`pid`?(d(),g(`span`,Ie,u(n.pid),1)):e.key===`bound`?(d(),y(i,{key:1,color:n.bound?`success`:`warning`},{default:x(()=>[C(u(n.bound?S(r)(`monitor.bound`):S(r)(`monitor.orphan`)),1)]),_:2},1032,[`color`])):e.key===`name`?(d(),g(_,{key:2},[h(`span`,null,u(n.name??`–`),1),n.agentId?(d(),g(`span`,Le,u(U(n.agentId)),1)):v(``,!0)],64)):e.key===`role`?(d(),g(_,{key:3},[n.role?(d(),g(`span`,Re,u(n.role),1)):(d(),g(`span`,ze,`–`))],64)):e.key===`command`?(d(),g(`span`,Be,u(n.command),1)):e.key===`startedAt`?(d(),g(`span`,Ve,u(q(n.startedAt)),1)):e.key===`alive`?(d(),y(i,{key:6,color:n.alive?`success`:`error`},{default:x(()=>[C(u(n.alive?S(r)(`monitor.alive`):`${S(r)(`monitor.exited`)} ${n.exitCode??``}`),1)]),_:2},1032,[`color`])):e.key===`actions`?(d(),y(T,{key:7,size:4},{default:x(()=>[n.terminal?(d(),y(s,{key:0,size:`small`,type:`primary`,ghost:``,title:S(r)(`monitor.openTerminalHint`),onClick:e=>V(n.pid,n.name,n.role)},{icon:x(()=>[...t[7]||=[h(`span`,{class:`i-tabler-terminal-2`},null,-1)]]),default:x(()=>[C(` `+u(S(r)(`monitor.openTerminal`)),1)]),_:1},8,[`title`,`onClick`])):v(``,!0),f(b,{title:S(r)(`monitor.terminatePidConfirm`),"ok-text":S(r)(`common.confirm`),"cancel-text":S(r)(`common.cancel`),onConfirm:e=>L(n)},{default:x(()=>[f(s,{size:`small`,danger:``,disabled:S(F)||!n.alive},{icon:x(()=>[...t[8]||=[h(`span`,{class:`i-tabler-square-x`},null,-1)]]),default:x(()=>[C(` `+u(S(r)(`monitor.terminate`)),1)]),_:1},8,[`disabled`])]),_:2},1032,[`title`,`ok-text`,`cancel-text`,`onConfirm`])]),_:2},1024)):v(``,!0)]),_:1},8,[`columns`,`data-source`,`loading`])]),_:1},8,[`title`]),f(ue,{open:S(R),"onUpdate:open":t[2]||=e=>p(R)?R.value=e:null,pid:S(z),subtitle:S(B)},null,8,[`open`,`pid`,`subtitle`])],64)):(d(),y(l,{key:0,class:`aw-panel`},{default:x(()=>[f(c,{title:S(r)(`monitor.needLogin`)},{extra:x(()=>[f(s,{type:`primary`,onClick:t[1]||=t=>(`navigateTo`in e?e.navigateTo:S(w))(`/workshop`)},{default:x(()=>[C(u(S(r)(`monitor.goLogin`)),1)]),_:1})]),_:1},8,[`title`])]),_:1}))])}}}),[[`__scopeId`,`data-v-b8362ef8`]]);export{He as default};
1
+ import{O as e,a as t,c as n,j as r,m as i,p as a}from"./BU83-NnX.js";import{$ as o,P as s,R as c,S as l,Ut as u,V as d,Vt as ee,b as f,ct as p,d as m,f as h,h as g,i as _,m as v,p as y,pt as b,tt as x,xt as S,y as C}from"./CSkxz2NX.js";import{d as w,p as T}from"./BJHKLJJU.js";import{s as E}from"./YnQxK3eG.js";import{n as te}from"./KZQX7xoM.js";import{t as ne}from"./CWoJjWmZ.js";import{d as D,jt as O,n as k,t as A,u as j,wt as M}from"./4sIEbgcl.js";import{t as re}from"./BneN7fbu.js";import{t as ie}from"./BCGafdXT.js";import{t as N}from"./pdk8jLGT.js";import{t as ae}from"./BYhEUx8t.js";import{t as oe}from"./jZsY8yYz.js";import{t as se}from"./CClOy-Hz2.js";import{t as ce}from"./DIaZ2PTo2.js";import{t as P}from"./BDNMzG2s2.js";import{t as le}from"./CNs_Ozdc2.js";import{t as ue}from"./H0BcqZtT.js";var F={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z`}}]},name:`warning`,theme:`filled`};function I(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:Object(arguments[t]),r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){L(e,t,n[t])})}return e}function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var R=function(e,t){var n=I({},e,t.attrs);return f(r,I({},n,{icon:F}),null)};R.displayName=`WarningFilled`,R.inheritAttrs=!1;var z=()=>f(`svg`,{width:`252`,height:`294`},[f(`defs`,null,[f(`path`,{d:`M0 .387h251.772v251.772H0z`},null)]),f(`g`,{fill:`none`,"fill-rule":`evenodd`},[f(`g`,{transform:`translate(0 .012)`},[f(`mask`,{fill:`#fff`},null),f(`path`,{d:`M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321`,fill:`#E4EBF7`,mask:`url(#b)`},null)]),f(`path`,{d:`M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66`,fill:`#FFF`},null),f(`path`,{d:`M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788`,stroke:`#FFF`,"stroke-width":`2`},null),f(`path`,{d:`M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175`,fill:`#FFF`},null),f(`path`,{d:`M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932`,fill:`#FFF`},null),f(`path`,{d:`M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011`,stroke:`#FFF`,"stroke-width":`2`},null),f(`path`,{d:`M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382`,fill:`#FFF`},null),f(`path`,{d:`M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z`,stroke:`#FFF`,"stroke-width":`2`},null),f(`path`,{stroke:`#FFF`,"stroke-width":`2`,d:`M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39`},null),f(`path`,{d:`M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742`,fill:`#FFF`},null),f(`path`,{d:`M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48`,fill:`#1890FF`},null),f(`path`,{d:`M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894`,fill:`#FFF`},null),f(`path`,{d:`M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88`,fill:`#FFB594`},null),f(`path`,{d:`M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624`,fill:`#FFC6A0`},null),f(`path`,{d:`M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682`,fill:`#FFF`},null),f(`path`,{d:`M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573`,fill:`#CBD1D1`},null),f(`path`,{d:`M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z`,fill:`#2B0849`},null),f(`path`,{d:`M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558`,fill:`#A4AABA`},null),f(`path`,{d:`M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z`,fill:`#CBD1D1`},null),f(`path`,{d:`M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062`,fill:`#2B0849`},null),f(`path`,{d:`M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15`,fill:`#A4AABA`},null),f(`path`,{d:`M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165`,fill:`#7BB2F9`},null),f(`path`,{d:`M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M107.275 222.1s2.773-1.11 6.102-3.884`,stroke:`#648BD8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038`,fill:`#192064`},null),f(`path`,{d:`M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81`,fill:`#FFF`},null),f(`path`,{d:`M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642`,fill:`#192064`},null),f(`path`,{d:`M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268`,fill:`#FFC6A0`},null),f(`path`,{d:`M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456`,fill:`#FFC6A0`},null),f(`path`,{d:`M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z`,fill:`#520038`},null),f(`path`,{d:`M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254`,fill:`#552950`},null),f(`path`,{stroke:`#DB836E`,"stroke-width":`1.118`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M110.13 74.84l-.896 1.61-.298 4.357h-2.228`},null),f(`path`,{d:`M110.846 74.481s1.79-.716 2.506.537`,stroke:`#5C2552`,"stroke-width":`1.118`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67`,stroke:`#DB836E`,"stroke-width":`1.118`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M103.287 72.93s1.83 1.113 4.137.954`,stroke:`#5C2552`,"stroke-width":`1.118`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639`,stroke:`#DB836E`,"stroke-width":`1.118`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206`,stroke:`#E4EBF7`,"stroke-width":`1.101`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M129.405 122.865s-5.272 7.403-9.422 10.768`,stroke:`#E4EBF7`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M119.306 107.329s.452 4.366-2.127 32.062`,stroke:`#E4EBF7`,"stroke-width":`1.101`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01`,fill:`#F2D7AD`},null),f(`path`,{d:`M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92`,fill:`#F4D19D`},null),f(`path`,{d:`M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z`,fill:`#F2D7AD`},null),f(`path`,{fill:`#CC9B6E`,d:`M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z`},null),f(`path`,{d:`M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83`,fill:`#F4D19D`},null),f(`path`,{fill:`#CC9B6E`,d:`M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z`},null),f(`path`,{fill:`#CC9B6E`,d:`M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z`},null),f(`path`,{d:`M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238`,fill:`#FFC6A0`},null),f(`path`,{d:`M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044`,stroke:`#DB836E`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617`,stroke:`#DB836E`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754`,stroke:`#DB836E`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647`,fill:`#5BA02E`},null),f(`path`,{d:`M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647`,fill:`#92C110`},null),f(`path`,{d:`M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187`,fill:`#F2D7AD`},null),f(`path`,{d:`M88.979 89.48s7.776 5.384 16.6 2.842`,stroke:`#E4EBF7`,"stroke-width":`1.101`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null)])]),B=()=>f(`svg`,{width:`254`,height:`294`},[f(`defs`,null,[f(`path`,{d:`M0 .335h253.49v253.49H0z`},null),f(`path`,{d:`M0 293.665h253.49V.401H0z`},null)]),f(`g`,{fill:`none`,"fill-rule":`evenodd`},[f(`g`,{transform:`translate(0 .067)`},[f(`mask`,{fill:`#fff`},null),f(`path`,{d:`M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134`,fill:`#E4EBF7`,mask:`url(#b)`},null)]),f(`path`,{d:`M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671`,fill:`#FFF`},null),f(`path`,{d:`M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861`,stroke:`#FFF`,"stroke-width":`2`},null),f(`path`,{d:`M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238`,fill:`#FFF`},null),f(`path`,{d:`M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775`,fill:`#FFF`},null),f(`path`,{d:`M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68`,fill:`#FF603B`},null),f(`path`,{d:`M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733`,fill:`#FFF`},null),f(`path`,{d:`M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487`,fill:`#FFB594`},null),f(`path`,{d:`M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235`,fill:`#FFF`},null),f(`path`,{d:`M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246`,fill:`#FFB594`},null),f(`path`,{d:`M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508`,fill:`#FFC6A0`},null),f(`path`,{d:`M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z`,fill:`#520038`},null),f(`path`,{d:`M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26`,fill:`#552950`},null),f(`path`,{stroke:`#DB836E`,"stroke-width":`1.063`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M99.206 73.644l-.9 1.62-.3 4.38h-2.24`},null),f(`path`,{d:`M99.926 73.284s1.8-.72 2.52.54`,stroke:`#5C2552`,"stroke-width":`1.117`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68`,stroke:`#DB836E`,"stroke-width":`1.117`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M92.326 71.724s1.84 1.12 4.16.96`,stroke:`#5C2552`,"stroke-width":`1.117`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954`,stroke:`#DB836E`,"stroke-width":`1.063`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044`,stroke:`#E4EBF7`,"stroke-width":`1.136`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583`,fill:`#FFF`},null),f(`path`,{d:`M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75`,fill:`#FFC6A0`},null),f(`path`,{d:`M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713`,fill:`#FFC6A0`},null),f(`path`,{d:`M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51`,stroke:`#E4EBF7`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16`,fill:`#FFC6A0`},null),f(`path`,{d:`M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575`,fill:`#FFF`},null),f(`path`,{d:`M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47`,fill:`#CBD1D1`},null),f(`path`,{d:`M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z`,fill:`#2B0849`},null),f(`path`,{d:`M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671`,fill:`#A4AABA`},null),f(`path`,{d:`M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z`,fill:`#CBD1D1`},null),f(`path`,{d:`M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162`,fill:`#2B0849`},null),f(`path`,{d:`M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156`,fill:`#A4AABA`},null),f(`path`,{d:`M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69`,fill:`#7BB2F9`},null),f(`path`,{d:`M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034`,stroke:`#648BD8`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M96.973 219.373s2.882-1.153 6.34-4.034`,stroke:`#648BD8`,"stroke-width":`1.032`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07`,stroke:`#648BD8`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62`,fill:`#192064`},null),f(`path`,{d:`M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843`,fill:`#FFF`},null),f(`path`,{d:`M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668`,fill:`#192064`},null),f(`path`,{d:`M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513`,stroke:`#648BD8`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72`,stroke:`#E4EBF7`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69`,fill:`#FFC6A0`},null),f(`path`,{d:`M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593`,stroke:`#DB836E`,"stroke-width":`.774`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762`,stroke:`#E59788`,"stroke-width":`.774`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594`,fill:`#FFC6A0`},null),f(`path`,{d:`M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12`,stroke:`#E59788`,"stroke-width":`.774`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M109.278 112.533s3.38-3.613 7.575-4.662`,stroke:`#E4EBF7`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M107.375 123.006s9.697-2.745 11.445-.88`,stroke:`#E59788`,"stroke-width":`.774`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955`,stroke:`#BFCDDD`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01`,fill:`#A3B4C6`},null),f(`path`,{d:`M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813`,fill:`#A3B4C6`},null),f(`mask`,{fill:`#fff`},null),f(`path`,{fill:`#A3B4C6`,mask:`url(#d)`,d:`M154.098 190.096h70.513v-84.617h-70.513z`},null),f(`path`,{d:`M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208`,fill:`#BFCDDD`,mask:`url(#d)`},null),f(`path`,{d:`M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802`,fill:`#FFF`,mask:`url(#d)`},null),f(`path`,{d:`M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209`,fill:`#BFCDDD`,mask:`url(#d)`},null),f(`path`,{d:`M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751`,stroke:`#7C90A5`,"stroke-width":`1.124`,"stroke-linecap":`round`,"stroke-linejoin":`round`,mask:`url(#d)`},null),f(`path`,{d:`M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802`,fill:`#FFF`,mask:`url(#d)`},null),f(`path`,{d:`M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407`,fill:`#BFCDDD`,mask:`url(#d)`},null),f(`path`,{d:`M177.259 207.217v11.52M201.05 207.217v11.52`,stroke:`#A3B4C6`,"stroke-width":`1.124`,"stroke-linecap":`round`,"stroke-linejoin":`round`,mask:`url(#d)`},null),f(`path`,{d:`M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422`,fill:`#5BA02E`,mask:`url(#d)`},null),f(`path`,{d:`M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423`,fill:`#92C110`,mask:`url(#d)`},null),f(`path`,{d:`M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209`,fill:`#F2D7AD`,mask:`url(#d)`},null)])]),V=()=>f(`svg`,{width:`251`,height:`294`},[f(`g`,{fill:`none`,"fill-rule":`evenodd`},[f(`path`,{d:`M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023`,fill:`#E4EBF7`},null),f(`path`,{d:`M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65`,fill:`#FFF`},null),f(`path`,{d:`M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73`,stroke:`#FFF`,"stroke-width":`2`},null),f(`path`,{d:`M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126`,fill:`#FFF`},null),f(`path`,{d:`M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873`,fill:`#FFF`},null),f(`path`,{d:`M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36`,stroke:`#FFF`,"stroke-width":`2`},null),f(`path`,{d:`M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375`,fill:`#FFF`},null),f(`path`,{d:`M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z`,stroke:`#FFF`,"stroke-width":`2`},null),f(`path`,{stroke:`#FFF`,"stroke-width":`2`,d:`M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668`},null),f(`path`,{d:`M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321`,fill:`#A26EF4`},null),f(`path`,{d:`M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734`,fill:`#FFF`},null),f(`path`,{d:`M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717`,fill:`#FFF`},null),f(`path`,{d:`M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61`,fill:`#5BA02E`},null),f(`path`,{d:`M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611`,fill:`#92C110`},null),f(`path`,{d:`M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17`,fill:`#F2D7AD`},null),f(`path`,{d:`M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085`,fill:`#FFF`},null),f(`path`,{d:`M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233`,fill:`#FFC6A0`},null),f(`path`,{d:`M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367`,fill:`#FFB594`},null),f(`path`,{d:`M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95`,fill:`#FFC6A0`},null),f(`path`,{d:`M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929`,fill:`#FFF`},null),f(`path`,{d:`M78.18 94.656s.911 7.41-4.914 13.078`,stroke:`#E4EBF7`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437`,stroke:`#E4EBF7`,"stroke-width":`.932`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z`,fill:`#FFC6A0`},null),f(`path`,{d:`M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91`,fill:`#FFB594`},null),f(`path`,{d:`M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103`,fill:`#5C2552`},null),f(`path`,{d:`M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145`,fill:`#FFC6A0`},null),f(`path`,{stroke:`#DB836E`,"stroke-width":`1.145`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M100.843 77.099l1.701-.928-1.015-4.324.674-1.406`},null),f(`path`,{d:`M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32`,fill:`#552950`},null),f(`path`,{d:`M91.132 86.786s5.269 4.957 12.679 2.327`,stroke:`#DB836E`,"stroke-width":`1.145`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25`,fill:`#DB836E`},null),f(`path`,{d:`M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073`,stroke:`#5C2552`,"stroke-width":`1.526`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254`,stroke:`#DB836E`,"stroke-width":`1.145`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008`,stroke:`#E4EBF7`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M66.508 86.763s-1.598 8.83-6.697 14.078`,stroke:`#E4EBF7`,"stroke-width":`1.114`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M128.31 87.934s3.013 4.121 4.06 11.785`,stroke:`#E4EBF7`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M64.09 84.816s-6.03 9.912-13.607 9.903`,stroke:`#DB836E`,"stroke-width":`.795`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73`,fill:`#FFC6A0`},null),f(`path`,{d:`M130.532 85.488s4.588 5.757 11.619 6.214`,stroke:`#DB836E`,"stroke-width":`.75`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M121.708 105.73s-.393 8.564-1.34 13.612`,stroke:`#E4EBF7`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M115.784 161.512s-3.57-1.488-2.678-7.14`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68`,fill:`#CBD1D1`},null),f(`path`,{d:`M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z`,fill:`#2B0849`},null),f(`path`,{d:`M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62`,fill:`#A4AABA`},null),f(`path`,{d:`M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z`,fill:`#CBD1D1`},null),f(`path`,{d:`M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078`,fill:`#2B0849`},null),f(`path`,{d:`M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15`,fill:`#A4AABA`},null),f(`path`,{d:`M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954`,fill:`#7BB2F9`},null),f(`path`,{d:`M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M108.459 220.905s2.759-1.104 6.07-3.863`,stroke:`#648BD8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),f(`path`,{d:`M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017`,fill:`#192064`},null),f(`path`,{d:`M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806`,fill:`#FFF`},null),f(`path`,{d:`M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64`,fill:`#192064`},null),f(`path`,{d:`M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null)])]),H=e=>{let{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:i,paddingXL:a,paddingXS:o,paddingLG:s,marginXS:c,lineHeight:l}=e;return{[t]:{padding:`${s*2}px ${a}px`,"&-rtl":{direction:`rtl`}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:`auto`},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:`center`,[`& > ${r}`]:{fontSize:e.resultIconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.resultTitleFontSize,lineHeight:n,marginBlock:c,textAlign:`center`},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.resultSubtitleFontSize,lineHeight:l,textAlign:`center`},[`${t} ${t}-content`]:{marginTop:s,padding:`${s}px ${i*2.5}px`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.resultExtraMargin,textAlign:`center`,"& > *":{marginInlineEnd:o,"&:last-child":{marginInlineEnd:0}}}}},U=e=>{let{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},W=e=>[H(e),U(e)],G=e=>W(e),K=D(`Result`,e=>{let{paddingLG:t,fontSizeHeading3:n}=e,r=e.fontSize,i=`${t}px 0 0 0`,a=e.colorInfo,o=e.colorError,s=e.colorSuccess,c=e.colorWarning;return[G(j(e,{resultTitleFontSize:n,resultSubtitleFontSize:r,resultIconFontSize:n*3,resultExtraMargin:i,resultInfoIconColor:a,resultErrorIconColor:o,resultSuccessIconColor:s,resultWarningIconColor:c}))]},{imageWidth:250,imageHeight:295}),q={success:i,error:e,info:a,warning:R},J={404:z,500:B,403:V},Y=Object.keys(J),X=()=>({prefixCls:String,icon:A.any,status:{type:[Number,String],default:`info`},title:A.any,subTitle:A.any,extra:A.any}),Z=(e,t)=>{let{status:n,icon:r}=t;if(Y.includes(`${n}`)){let t=J[n];return f(`div`,{class:`${e}-icon ${e}-image`},[f(t,null,null)])}let i=q[n],a=r||f(i,null,null);return f(`div`,{class:`${e}-icon`},[a])},de=(e,t)=>t&&f(`div`,{class:`${e}-extra`},[t]),Q=l({compatConfig:{MODE:3},name:`AResult`,inheritAttrs:!1,props:X(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t,{prefixCls:i,direction:a}=k(`result`,e),[o,s]=K(i),c=m(()=>M(i.value,s.value,`${i.value}-${e.status}`,{[`${i.value}-rtl`]:a.value===`rtl`}));return()=>{let t=e.title??n.title?.call(n),a=e.subTitle??n.subTitle?.call(n),s=e.icon??n.icon?.call(n),l=e.extra??n.extra?.call(n),u=i.value;return o(f(`div`,O(O({},r),{},{class:[c.value,r.class]}),[Z(u,{status:e.status,icon:s}),f(`div`,{class:`${u}-title`},[t]),a&&f(`div`,{class:`${u}-subtitle`},[a]),de(u,l),n.default&&f(`div`,{class:`${u}-content`},[n.default()])]))}}});Q.PRESENTED_IMAGE_403=J[403],Q.PRESENTED_IMAGE_404=J[404],Q.PRESENTED_IMAGE_500=J[500],Q.install=function(e){return e.component(Q.name,Q),e};var fe={class:`monitor`},$={class:`aw-page-head`},pe={class:`aw-kicker`},me={class:`head-right`},he={class:`toggle-label`},ge={class:`stat-grid`},_e={class:`stat-label`},ve={class:`stat-value aw-mono`},ye={class:`stat-label`},be={class:`stat-value aw-mono`},xe={class:`stat-label`},Se={class:`stat-value aw-mono`},Ce={key:0,class:`orphan-badge`},we={class:`stat-label`},Te={class:`stat-value aw-mono small`},Ee={class:`stat-updated`},De={class:`aw-mono count-extra`},Oe={key:0,class:`aw-mono`},ke={key:2,class:`aw-mono`},Ae={class:`aw-mono count-extra`},je={key:3,class:`aw-mono`},Me={key:4,class:`aw-mono`},Ne={key:0},Pe={key:1,class:`aw-mono`},Fe={class:`aw-mono count-extra`},Ie={key:0,class:`aw-mono`},Le={key:0,class:`aw-mono agent-sub`},Re={key:0},ze={key:1},Be={key:4,class:`aw-mono small`},Ve={key:5,class:`aw-mono small`},He=P(l({__name:`monitor`,setup(e){le({layout:`default`});let{t:r}=te(),i=T(),a=ce(),l=m(()=>a.isAdmin),D=b(null),O=b(!1),k=b(!0),A=b(``),j=async()=>{if(a.token){O.value=!0;try{let e=await E(`/api/system/monitor`,{headers:{authorization:`Bearer ${a.token}`}});D.value=e.data,A.value=new Date().toLocaleTimeString()}catch(e){t.error(e instanceof Error?e.message:r(`monitor.loadFailed`))}finally{O.value=!1}}},M=null,P=()=>{M&&=(clearInterval(M),null),k.value&&a.token&&(M=ne(()=>void j(),5e3))};o(k,()=>P()),o(()=>a.token,()=>{a.token?j():D.value=null,P()}),c(()=>{a.token&&j().then(()=>H()),P()}),s(()=>{M&&clearInterval(M)});let F=b(!1),I=async e=>{F.value=!0;try{let n=await E(`/api/system/monitor/terminate`,{method:`POST`,headers:{authorization:`Bearer ${a.token}`},body:{channelId:e.channelId,agentId:e.agentId}});t.success(n.code===0?`${e.name} ${r(`monitor.terminated`)}`:n.message??r(`monitor.failed`)),await j()}catch(e){t.error(e instanceof Error?e.message:r(`monitor.failed`))}finally{F.value=!1}},L=async e=>{F.value=!0;try{let n=await E(`/api/system/monitor/terminate`,{method:`POST`,headers:{authorization:`Bearer ${a.token}`},body:{pid:e.pid}});t.success(n.code===0?`PID ${e.pid} ${r(`monitor.terminated`)}`:n.message??r(`monitor.failed`)),await j()}catch(e){t.error(e instanceof Error?e.message:r(`monitor.failed`))}finally{F.value=!1}},R=b(!1),z=b(null),B=b(``),V=(e,t,n)=>{z.value=e,B.value=[t,n].filter(Boolean).join(` · `)||`omp harness`,R.value=!0},H=()=>{let e=i.query.agentId;if(typeof e!=`string`||!e)return;let t=typeof i.query.channelId==`string`?i.query.channelId:``,n=D.value?.processes.find(n=>n.agentId===e&&(!t||n.channelId===t));n?.pid&&(V(n.pid,n.name,n.role),w({path:`/monitor`},{replace:!0}))},U=e=>e&&e.length>8?`${e.slice(0,8)}…`:e??`-`,W={idle:`success`,busy:`processing`,stopped:`error`},G={idle:r(`monitor.stateIdle`),busy:r(`monitor.stateBusy`),stopped:r(`monitor.stateStopped`)},K=e=>{let t=Math.floor(e/1e3),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=t%60;return n>0?`${n}h ${r}m`:r>0?`${r}m ${i}s`:`${i}s`},q=e=>new Date(e).toLocaleTimeString(),J=m(()=>l.value?[{title:r(`monitor.k1dg9sr8001`),dataIndex:`ownerName`,key:`ownerName`,width:110}]:[]),Y=m(()=>[{title:r(`monitor.chChannel`),dataIndex:`channelId`,key:`channelId`},{title:r(`monitor.members`),dataIndex:`memberCount`,key:`memberCount`,width:100},{title:r(`monitor.wired`),dataIndex:`wiredAgentCount`,key:`wiredAgentCount`,width:90},{title:r(`monitor.scheduler`),dataIndex:`hasScheduler`,key:`hasScheduler`,width:110},{title:r(`monitor.lead`),dataIndex:`leadAgentId`,key:`leadAgentId`},...J.value]),X=m(()=>[{title:r(`monitor.name`),dataIndex:`name`,key:`name`},{title:r(`monitor.role`),dataIndex:`role`,key:`role`,width:90},{title:r(`monitor.harness`),dataIndex:`harness`,key:`harness`,width:90},{title:r(`monitor.state`),dataIndex:`state`,key:`state`,width:110},{title:r(`monitor.currentTask`),dataIndex:`currentTaskId`,key:`currentTaskId`},{title:r(`monitor.queue`),dataIndex:`queuedCount`,key:`queuedCount`,width:90},{title:`PID`,dataIndex:`process`,key:`pid`,width:130},{title:r(`monitor.channel`),dataIndex:`channelId`,key:`channelId`,width:130},...J.value,{title:r(`monitor.actions`),key:`actions`,width:190,fixed:`right`}]),Z=m(()=>[{title:`PID`,dataIndex:`pid`,key:`pid`,width:100},{title:r(`monitor.binding`),dataIndex:`bound`,key:`bound`,width:100},{title:r(`monitor.agent`),dataIndex:`name`,key:`name`},{title:r(`monitor.role`),dataIndex:`role`,key:`role`,width:90},{title:r(`monitor.command`),dataIndex:`command`,key:`command`},{title:r(`monitor.startedAt`),dataIndex:`startedAt`,key:`startedAt`,width:110},{title:r(`monitor.state`),dataIndex:`alive`,key:`alive`,width:100},...J.value,{title:r(`monitor.actions`),key:`actions`,width:170,fixed:`right`}]);return(e,t)=>{let i=ie,o=se,s=n,c=Q,l=ae,m=re,b=N,T=oe;return d(),g(`div`,fe,[h(`div`,$,[h(`div`,null,[h(`p`,pe,u(S(r)(`menu.system`))+` / runtime ledger `,1),h(`h1`,null,[C(u(S(r)(`monitor.title`))+` `,1),f(i,{color:S(D)?.scope===`admin`?`volcano`:`blue`,class:`scope-tag`},{default:x(()=>[h(`span`,{class:ee(S(D)?.scope===`admin`?`i-tabler-shield-check`:`i-tabler-user`)},null,2),C(` `+u(S(D)?.scope===`admin`?e.$t(`monitor.k16zpmg9002`):e.$t(`monitor.k1dzryry003`)),1)]),_:1},8,[`color`])])]),h(`div`,me,[f(o,{checked:S(k),"onUpdate:checked":t[0]||=e=>p(k)?k.value=e:null,size:`small`},null,8,[`checked`]),h(`span`,he,u(S(r)(`monitor.autoRefresh`)),1),f(s,{size:`small`,loading:S(O),onClick:j},{icon:x(()=>[...t[3]||=[h(`span`,{class:`i-tabler-refresh`},null,-1)]]),default:x(()=>[C(` `+u(S(r)(`monitor.refresh`)),1)]),_:1},8,[`loading`])])]),S(a).token?(d(),g(_,{key:1},[h(`div`,ge,[f(l,{class:`aw-panel stat`},{default:x(()=>[h(`p`,_e,u(S(r)(`monitor.channels`)),1),h(`p`,ve,u(S(D)?.counts.channels??`–`),1)]),_:1}),f(l,{class:`aw-panel stat`},{default:x(()=>[h(`p`,ye,u(S(r)(`monitor.agents`)),1),h(`p`,be,u(S(D)?.counts.agents??`–`),1)]),_:1}),f(l,{class:`aw-panel stat`},{default:x(()=>[h(`p`,xe,u(S(r)(`monitor.aliveProcesses`)),1),h(`p`,Se,[C(u(S(D)?.counts.aliveProcesses??`–`)+` `,1),(S(D)?.counts.orphanProcesses??0)>0?(d(),g(`span`,Ce,` +`+u(S(D)?.counts.orphanProcesses)+` `+u(S(r)(`monitor.orphan`)),1)):v(``,!0)])]),_:1}),f(l,{class:`aw-panel stat`},{default:x(()=>[h(`p`,we,u(S(r)(`monitor.server`)),1),h(`p`,Te,` PID `+u(S(D)?.serverPid??`–`)+` · `+u(S(D)?K(S(D).uptimeMs):``),1),h(`p`,Ee,u(S(A))+` · `+u(S(r)(`monitor.updated`))+` `+u(S(D)?.generatedAt??``),1)]),_:1})]),f(l,{class:`aw-panel`,title:S(r)(`monitor.channelRuntimes`)},{extra:x(()=>[h(`span`,De,u(S(D)?.channels.length??0)+` wired`,1)]),default:x(()=>[f(m,{columns:S(Y),"data-source":S(D)?.channels??[],pagination:!1,loading:S(O),"row-key":`channelId`,size:`small`,scroll:{x:720}},{bodyCell:x(({column:e,record:n})=>[e.key===`channelId`?(d(),g(`span`,Oe,u(U(n.channelId)),1)):e.key===`hasScheduler`?(d(),g(_,{key:1},[n.hasScheduler?(d(),y(i,{key:0,color:`purple`},{default:x(()=>[C(u(S(r)(`monitor.scheduling`)),1)]),_:1})):(d(),y(i,{key:1},{default:x(()=>[...t[4]||=[C(` – `,-1)]]),_:1}))],64)):e.key===`leadAgentId`?(d(),g(`span`,ke,u(U(n.leadAgentId)),1)):v(``,!0)]),_:1},8,[`columns`,`data-source`,`loading`])]),_:1},8,[`title`]),f(l,{class:`aw-panel`,title:S(r)(`monitor.agentRuntimes`)},{extra:x(()=>[h(`span`,Ae,u(S(D)?.agents.length??0)+` wired`,1)]),default:x(()=>[f(m,{columns:S(X),"data-source":S(D)?.agents??[],pagination:!1,loading:S(O),"row-key":`agentId`,size:`small`,scroll:{x:980}},{bodyCell:x(({column:e,record:n})=>[e.key===`role`?(d(),y(i,{key:0,color:n.role===`lead`?`gold`:`blue`},{default:x(()=>[C(u(n.role),1)]),_:2},1032,[`color`])):e.key===`harness`?(d(),y(i,{key:1},{default:x(()=>[C(u(n.harness),1)]),_:2},1024)):e.key===`state`?(d(),y(i,{key:2,color:W[n.state]??`default`},{default:x(()=>[C(u(G[n.state]??n.state),1)]),_:2},1032,[`color`])):e.key===`currentTaskId`?(d(),g(`span`,je,u(U(n.currentTaskId)),1)):e.key===`channelId`?(d(),g(`span`,Me,u(U(n.channelId)),1)):e.key===`pid`?(d(),g(_,{key:5},[n.process?(d(),g(`span`,Ne,[f(i,{color:n.process.alive?`success`:`default`,class:`aw-mono`},{default:x(()=>[C(` PID `+u(n.process.pid),1)]),_:2},1032,[`color`])])):(d(),g(`span`,Pe,`in-proc`))],64)):e.key===`actions`?(d(),y(T,{key:6,size:4},{default:x(()=>[n.process?.alive?(d(),y(s,{key:0,size:`small`,type:`primary`,ghost:``,title:S(r)(`monitor.openTerminalHint`),onClick:e=>V(n.process.pid,n.name,n.role)},{icon:x(()=>[...t[5]||=[h(`span`,{class:`i-tabler-terminal-2`},null,-1)]]),default:x(()=>[C(` `+u(S(r)(`monitor.openTerminal`)),1)]),_:1},8,[`title`,`onClick`])):v(``,!0),f(b,{title:`${S(r)(`monitor.terminateConfirm`)}(${n.name})`,"ok-text":S(r)(`common.confirm`),"cancel-text":S(r)(`common.cancel`),onConfirm:e=>I(n)},{default:x(()=>[f(s,{size:`small`,danger:``,disabled:S(F)},{icon:x(()=>[...t[6]||=[h(`span`,{class:`i-tabler-square-x`},null,-1)]]),default:x(()=>[C(` `+u(S(r)(`monitor.terminate`)),1)]),_:1},8,[`disabled`])]),_:1},8,[`title`,`ok-text`,`cancel-text`,`onConfirm`])]),_:2},1024)):v(``,!0)]),_:1},8,[`columns`,`data-source`,`loading`])]),_:1},8,[`title`]),f(l,{class:`aw-panel`,title:S(r)(`monitor.harnessProcesses`)},{extra:x(()=>[h(`span`,Fe,u(S(D)?.processes.length??0)+` spawned · `+u(S(D)?.counts.orphanProcesses??0)+` orphan `,1)]),default:x(()=>[f(m,{columns:S(Z),"data-source":S(D)?.processes??[],pagination:!1,loading:S(O),"row-key":`pid`,size:`small`,scroll:{x:900}},{bodyCell:x(({column:e,record:n})=>[e.key===`pid`?(d(),g(`span`,Ie,u(n.pid),1)):e.key===`bound`?(d(),y(i,{key:1,color:n.bound?`success`:`warning`},{default:x(()=>[C(u(n.bound?S(r)(`monitor.bound`):S(r)(`monitor.orphan`)),1)]),_:2},1032,[`color`])):e.key===`name`?(d(),g(_,{key:2},[h(`span`,null,u(n.name??`–`),1),n.agentId?(d(),g(`span`,Le,u(U(n.agentId)),1)):v(``,!0)],64)):e.key===`role`?(d(),g(_,{key:3},[n.role?(d(),g(`span`,Re,u(n.role),1)):(d(),g(`span`,ze,`–`))],64)):e.key===`command`?(d(),g(`span`,Be,u(n.command),1)):e.key===`startedAt`?(d(),g(`span`,Ve,u(q(n.startedAt)),1)):e.key===`alive`?(d(),y(i,{key:6,color:n.alive?`success`:`error`},{default:x(()=>[C(u(n.alive?S(r)(`monitor.alive`):`${S(r)(`monitor.exited`)} ${n.exitCode??``}`),1)]),_:2},1032,[`color`])):e.key===`actions`?(d(),y(T,{key:7,size:4},{default:x(()=>[n.terminal?(d(),y(s,{key:0,size:`small`,type:`primary`,ghost:``,title:S(r)(`monitor.openTerminalHint`),onClick:e=>V(n.pid,n.name,n.role)},{icon:x(()=>[...t[7]||=[h(`span`,{class:`i-tabler-terminal-2`},null,-1)]]),default:x(()=>[C(` `+u(S(r)(`monitor.openTerminal`)),1)]),_:1},8,[`title`,`onClick`])):v(``,!0),f(b,{title:S(r)(`monitor.terminatePidConfirm`),"ok-text":S(r)(`common.confirm`),"cancel-text":S(r)(`common.cancel`),onConfirm:e=>L(n)},{default:x(()=>[f(s,{size:`small`,danger:``,disabled:S(F)||!n.alive},{icon:x(()=>[...t[8]||=[h(`span`,{class:`i-tabler-square-x`},null,-1)]]),default:x(()=>[C(` `+u(S(r)(`monitor.terminate`)),1)]),_:1},8,[`disabled`])]),_:2},1032,[`title`,`ok-text`,`cancel-text`,`onConfirm`])]),_:2},1024)):v(``,!0)]),_:1},8,[`columns`,`data-source`,`loading`])]),_:1},8,[`title`]),f(ue,{open:S(R),"onUpdate:open":t[2]||=e=>p(R)?R.value=e:null,pid:S(z),subtitle:S(B)},null,8,[`open`,`pid`,`subtitle`])],64)):(d(),y(l,{key:0,class:`aw-panel`},{default:x(()=>[f(c,{title:S(r)(`monitor.needLogin`)},{extra:x(()=>[f(s,{type:`primary`,onClick:t[1]||=t=>(`navigateTo`in e?e.navigateTo:S(w))(`/workshop`)},{default:x(()=>[C(u(S(r)(`monitor.goLogin`)),1)]),_:1})]),_:1},8,[`title`])]),_:1}))])}}}),[[`__scopeId`,`data-v-b8362ef8`]]);export{He as default};
@@ -0,0 +1 @@
1
+ .term-title[data-v-d6946212]{align-items:center;gap:10px;display:inline-flex}.term-brand[data-v-d6946212]{color:#9ece6a;border-radius:var(--radius-panel-sm);background:#9ece6a1a;border:1px solid #9ece6a38;justify-content:center;align-items:center;width:26px;height:26px;font-size:14px;display:flex}.term-name[data-v-d6946212]{letter-spacing:.01em;color:#e6edf3;font-size:13.5px;font-weight:600}.ts-chip[data-v-d6946212]{letter-spacing:.04em;color:#a9b1d6;border-radius:var(--radius-pill);background:#41486842;border:1px solid #9299b329;align-items:center;gap:6px;padding:1px 8px;font-size:10.5px;display:inline-flex}.ts-chip.ts-pid[data-v-d6946212]{color:#7dcfff}.ts-chip.ts-sub[data-v-d6946212]{font-family:var(--font-body);color:#9aa5ce}.ts-dot[data-v-d6946212]{background:#565f89;border-radius:50%;width:6px;height:6px}.ts-chip[data-state=open][data-v-d6946212]{color:#9ece6a;background:#9ece6a1a;border-color:#9ece6a38}.ts-chip[data-state=open] .ts-dot[data-v-d6946212]{background:#9ece6a;animation:2.2s ease-in-out infinite ts-breathe-d6946212}.ts-chip[data-state=retrying][data-v-d6946212]{color:#e0af68;background:#e0af681a;border-color:#e0af683d}.ts-chip[data-state=retrying] .ts-dot[data-v-d6946212]{background:#e0af68;animation:1.1s ease-in-out infinite ts-breathe-d6946212}.ts-chip[data-state=connecting][data-v-d6946212]{color:#7aa2f7}.ts-chip[data-state=connecting] .ts-dot[data-v-d6946212]{background:#7aa2f7;animation:1.1s ease-in-out infinite ts-breathe-d6946212}.ts-chip[data-live=streaming][data-v-d6946212]{color:#7dcfff;background:#7dcfff1a;border-color:#7dcfff3d}.ts-chip[data-live=streaming][data-v-d6946212]:before{content:"";background:#7dcfff;border-radius:50%;width:6px;height:6px;animation:.9s ease-in-out infinite ts-breathe-d6946212}.ts-chip[data-live=running][data-v-d6946212]{color:#e0af68;background:#e0af681a;border-color:#e0af683d}.ts-chip[data-live=running][data-v-d6946212]:before{content:"";background:#e0af68;border-radius:50%;width:6px;height:6px;animation:1.6s ease-in-out infinite ts-breathe-d6946212}.ts-chip[data-live=idle][data-v-d6946212]{color:#565f89}.ts-chip[data-live=idle][data-v-d6946212]:before{content:"";background:#565f89;border-radius:50%;width:6px;height:6px}@keyframes ts-breathe-d6946212{0%,to{opacity:.45}50%{opacity:1}}@media (prefers-reduced-motion:reduce){.ts-chip[data-v-d6946212]:before,.ts-dot[data-v-d6946212]{opacity:.85;animation:none!important}}.term-toolbar[data-v-d6946212]{align-items:center;gap:8px;display:flex}[data-v-d6946212] .ts-btn.ant-btn{color:#c0caf5;background:#4148684d;border:1px solid #9299b32e;align-items:center;gap:5px;transition:background .15s,transform .12s;display:inline-flex}[data-v-d6946212] .ts-btn.ant-btn:hover:not(:disabled){background:#41486880}[data-v-d6946212] .ts-btn.ant-btn:active:not(:disabled){transform:translateY(1px)}[data-v-d6946212] .ts-btn.ant-btn:disabled{opacity:.4}.term-body[data-v-d6946212]{flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.term-host[data-v-d6946212]{flex:1;min-height:0;padding:10px 12px 4px}.term-hint[data-v-d6946212]{color:#d6dee873;background:#10151c;padding:6px 12px 8px}.hitl-card[data-v-d6946212]{z-index:10;border-radius:var(--radius-panel-sm);background:#171e28f7;border:1px solid #bb9af7;width:min(420px,100% - 32px);padding:12px 14px;position:absolute;top:14px;right:16px;box-shadow:0 8px 28px #0000008c}.hitl-head[data-v-d6946212]{color:#bb9af7;align-items:center;gap:8px;margin-bottom:8px;display:flex}.hitl-head>b[data-v-d6946212]{color:#e6edf3}.hitl-head .ant-btn[data-v-d6946212]{margin-left:auto}.hitl-question[data-v-d6946212]{color:#e6edf3;white-space:pre-wrap;margin:0 0 10px;font-weight:600}.hitl-message[data-v-d6946212]{color:#a9b4c0;white-space:pre-wrap;margin:0 0 10px}.hitl-options[data-v-d6946212]{flex-direction:column;gap:6px;max-height:300px;display:flex;overflow:auto}.hitl-options .ant-btn[data-v-d6946212]{text-align:left;white-space:normal;justify-content:flex-start}.hitl-row[data-v-d6946212]{gap:8px;margin-top:10px;display:flex}.hitl-textarea[data-v-d6946212]{margin-top:4px}.omp-terminal-drawer .ant-drawer-header{box-shadow:inset 0 1px #9299b30f;background:linear-gradient(#131a24,#10151c)!important;border-bottom:1px solid #1d2733!important}.omp-terminal-drawer .ant-drawer-header-title{color:#e6edf3}