agentroam-runtime-darwin-arm64 0.2.0-preview.71 → 0.2.0-preview.72

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 (1155) hide show
  1. package/manifest.json +3 -2
  2. package/package.json +1 -1
  3. package/runtime/.next/BUILD_ID +1 -1
  4. package/runtime/.next/app-build-manifest.json +10 -10
  5. package/runtime/.next/app-path-routes-manifest.json +1 -1
  6. package/runtime/.next/build-manifest.json +5 -5
  7. package/runtime/.next/prerender-manifest.json +1 -1
  8. package/runtime/.next/required-server-files.json +1 -1
  9. package/runtime/.next/server/app/_not-found/page.js +1 -1
  10. package/runtime/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  11. package/runtime/.next/server/app/_not-found.html +1 -1
  12. package/runtime/.next/server/app/_not-found.rsc +1 -1
  13. package/runtime/.next/server/app/api/agent/abort/route.js +1 -1
  14. package/runtime/.next/server/app/api/agent/answer/route.js +1 -1
  15. package/runtime/.next/server/app/api/agent/codex-sharing/route.js +1 -1
  16. package/runtime/.next/server/app/api/agent/harness/status/route.js +1 -1
  17. package/runtime/.next/server/app/api/agent/model/route.js +1 -1
  18. package/runtime/.next/server/app/api/agent/models/route.js +1 -1
  19. package/runtime/.next/server/app/api/agent/run/route.js +1 -1
  20. package/runtime/.next/server/app/api/agent/runtime-health/route.js +1 -1
  21. package/runtime/.next/server/app/api/agent/steer/route.js +1 -1
  22. package/runtime/.next/server/app/api/agent/stream/route.js +4 -4
  23. package/runtime/.next/server/app/api/agent-workspaces/[workspaceId]/sessions/route.js +1 -1
  24. package/runtime/.next/server/app/api/agent-workspaces/route.js +1 -1
  25. package/runtime/.next/server/app/api/auth/verify/route.js +1 -1
  26. package/runtime/.next/server/app/api/business/route.js +1 -1
  27. package/runtime/.next/server/app/api/client-logs/route.js +1 -1
  28. package/runtime/.next/server/app/api/collaboration/route.js +11 -11
  29. package/runtime/.next/server/app/api/collaboration/route.js.nft.json +1 -1
  30. package/runtime/.next/server/app/api/flow/v1/catalog/route.js +1 -1
  31. package/runtime/.next/server/app/api/flow/v1/runs/[runId]/cancel/route.js +1 -1
  32. package/runtime/.next/server/app/api/flow/v1/runs/[runId]/events/route.js +3 -3
  33. package/runtime/.next/server/app/api/flow/v1/runs/route.js +1 -1
  34. package/runtime/.next/server/app/api/flow-studio/config/route.js +1 -1
  35. package/runtime/.next/server/app/api/mcp/connect/route.js +1 -1
  36. package/runtime/.next/server/app/api/mcp/disconnect/route.js +1 -1
  37. package/runtime/.next/server/app/api/mcp/servers/route.js +1 -1
  38. package/runtime/.next/server/app/api/memory/[key]/route.js +1 -1
  39. package/runtime/.next/server/app/api/memory/route.js +1 -1
  40. package/runtime/.next/server/app/api/messaging/route.js +1 -0
  41. package/runtime/.next/server/app/api/messaging/route.js.nft.json +1 -0
  42. package/runtime/.next/server/app/api/plugins/load/route.js +1 -1
  43. package/runtime/.next/server/app/api/projects/[id]/route.js +1 -1
  44. package/runtime/.next/server/app/api/projects/check/route.js +1 -1
  45. package/runtime/.next/server/app/api/projects/directories/route.js +1 -1
  46. package/runtime/.next/server/app/api/projects/roots/route.js +1 -1
  47. package/runtime/.next/server/app/api/projects/route.js +1 -1
  48. package/runtime/.next/server/app/api/push/subscribe/route.js +2 -2
  49. package/runtime/.next/server/app/api/push/unsubscribe/route.js +3 -3
  50. package/runtime/.next/server/app/api/push/vapid/route.js +2 -2
  51. package/runtime/.next/server/app/api/push/vapid.body +1 -1
  52. package/runtime/.next/server/app/api/remote-tools/register/route.js +1 -1
  53. package/runtime/.next/server/app/api/sessions/[id]/background-jobs/[jobId]/route.js +1 -1
  54. package/runtime/.next/server/app/api/sessions/[id]/background-jobs/[jobId]/stop/route.js +1 -1
  55. package/runtime/.next/server/app/api/sessions/[id]/background-jobs/route.js +1 -1
  56. package/runtime/.next/server/app/api/sessions/[id]/changes/route.js +2 -2
  57. package/runtime/.next/server/app/api/sessions/[id]/fork/route.js +1 -1
  58. package/runtime/.next/server/app/api/sessions/[id]/fork-at/route.js +1 -1
  59. package/runtime/.next/server/app/api/sessions/[id]/goals/route.js +1 -1
  60. package/runtime/.next/server/app/api/sessions/[id]/handoff/route.js +1 -1
  61. package/runtime/.next/server/app/api/sessions/[id]/native-goal/route.js +1 -1
  62. package/runtime/.next/server/app/api/sessions/[id]/query-index/route.js +1 -1
  63. package/runtime/.next/server/app/api/sessions/[id]/release/route.js +1 -1
  64. package/runtime/.next/server/app/api/sessions/[id]/route.js +1 -1
  65. package/runtime/.next/server/app/api/sessions/[id]/thread-goal/route.js +1 -1
  66. package/runtime/.next/server/app/api/sessions/[id]/tool-result/route.js +1 -1
  67. package/runtime/.next/server/app/api/sessions/parallel/route.js +1 -0
  68. package/runtime/.next/server/app/api/sessions/parallel/route.js.nft.json +1 -0
  69. package/runtime/.next/server/app/api/sessions/route.js +1 -1
  70. package/runtime/.next/server/app/api/settings/route.js +1 -1
  71. package/runtime/.next/server/app/api/skills/route.js +1 -1
  72. package/runtime/.next/server/app/api/tool-policies/[policyId]/route.js +1 -1
  73. package/runtime/.next/server/app/api/tool-policies/route.js +1 -1
  74. package/runtime/.next/server/app/api/tools/route.js +1 -1
  75. package/runtime/.next/server/app/api/update/check/route.js +1 -1
  76. package/runtime/.next/server/app/api/update/install/route.js +1 -1
  77. package/runtime/.next/server/app/api/update/status/route.js +1 -1
  78. package/runtime/.next/server/app/api/web-auth/login/route.js +1 -1
  79. package/runtime/.next/server/app/api/web-auth/logout/route.js +1 -1
  80. package/runtime/.next/server/app/api/web-auth/revoke-all/route.js +1 -1
  81. package/runtime/.next/server/app/api/web-auth/setup/route.js +1 -1
  82. package/runtime/.next/server/app/api/web-auth/status/route.js +1 -1
  83. package/runtime/.next/server/app/api/web-console/bootstrap/route.js +1 -1
  84. package/runtime/.next/server/app/api/web-console/computer-settings/route.js +1 -1
  85. package/runtime/.next/server/app/api/web-console/computers/route.js +1 -1
  86. package/runtime/.next/server/app/api/web-console/device-state/route.js +1 -1
  87. package/runtime/.next/server/app/api/web-console/history/route.js +1 -1
  88. package/runtime/.next/server/app/api/web-console/preferences/route.js +1 -1
  89. package/runtime/.next/server/app/web/page.js +13 -21
  90. package/runtime/.next/server/app/web/page_client-reference-manifest.js +1 -1
  91. package/runtime/.next/server/app-paths-manifest.json +39 -37
  92. package/runtime/.next/server/chunks/1614.js +1 -1
  93. package/runtime/.next/server/chunks/1973.js +1 -0
  94. package/runtime/.next/server/chunks/5303.js +2 -2
  95. package/runtime/.next/server/chunks/6977.js +1 -1
  96. package/runtime/.next/server/chunks/732.js +1 -1
  97. package/runtime/.next/server/chunks/7519.js +3 -3
  98. package/runtime/.next/server/middleware-build-manifest.js +1 -1
  99. package/runtime/.next/server/pages/404.html +1 -1
  100. package/runtime/.next/server/pages/500.html +1 -1
  101. package/runtime/.next/server/server-reference-manifest.json +1 -1
  102. package/runtime/.next/static/chunks/50-0b6604ece6278dc2.js +1 -0
  103. package/runtime/.next/static/chunks/app/web/{error-6470e38a145095eb.js → error-36b287ca40eab041.js} +1 -1
  104. package/runtime/.next/static/chunks/app/web/layout-62386960d8601cc2.js +1 -0
  105. package/runtime/.next/static/chunks/app/web/page-6b37d8153e607928.js +1 -0
  106. package/runtime/.next/static/chunks/{main-0de4062ff39c4193.js → main-94a733696db11b91.js} +1 -1
  107. package/runtime/.next/static/chunks/{main-app-41078426602904fd.js → main-app-07b9ccbb642d9b9d.js} +1 -1
  108. package/runtime/.next/static/css/50f255aa50ec70d1.css +1 -0
  109. package/runtime/lib/browser-live/viewer-frame-flow.mjs +10 -2
  110. package/runtime/lib/browser-live/viewer-video-flow.mjs +11 -0
  111. package/runtime/lib/remote-control/application/compound-video-session.mjs +383 -0
  112. package/runtime/lib/remote-control/application/paced-video-sender.mjs +261 -0
  113. package/runtime/lib/remote-control/application/remote-hover-dispatch.mjs +26 -0
  114. package/runtime/lib/remote-control/application/remote-video-session.mjs +232 -37
  115. package/runtime/lib/remote-control/helper-manager.mjs +5 -1
  116. package/runtime/lib/remote-control/infrastructure/compound-compression.mjs +20 -0
  117. package/runtime/lib/remote-control/infrastructure/native-compound-video.mjs +44 -0
  118. package/runtime/lib/remote-control/infrastructure/native-video-encoder.mjs +62 -8
  119. package/runtime/lib/remote-control/infrastructure/werift-video-feedback.mjs +98 -0
  120. package/runtime/lib/remote-control/infrastructure/werift-video-recovery.mjs +108 -0
  121. package/runtime/lib/remote-control/infrastructure/werift-video-transport.mjs +310 -24
  122. package/runtime/lib/remote-control/remote-authorization.mjs +55 -12
  123. package/runtime/lib/remote-control/remote-video-signal.mjs +25 -1
  124. package/runtime/lib/remote-control/webrtc-video.mjs +3 -1
  125. package/runtime/lib/remote-control/windows-helper.mjs +11 -2
  126. package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/MacOS/agentroam-remote-desktop +0 -0
  127. package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/Resources/agentroam-component.json +1 -1
  128. package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/_CodeSignature/CodeResources +2 -2
  129. package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/Info.plist +13 -0
  130. package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/MacOS/NativeAXBridge +0 -0
  131. package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/Resources/agentroam-component.json +4 -0
  132. package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/_CodeSignature/CodeResources +128 -0
  133. package/runtime/node_modules/.package-lock.json +26 -20
  134. package/runtime/node_modules/@agent/core/dist/index.js +2775 -154
  135. package/runtime/node_modules/@agent/messaging/dist/assets/wecom/NativeAXBridge.swift +240 -0
  136. package/runtime/node_modules/@agent/messaging/dist/assets/wecom/codec.py +133 -0
  137. package/runtime/node_modules/@agent/messaging/dist/assets/wecom/native_sender.py +445 -0
  138. package/runtime/node_modules/@agent/messaging/dist/assets/wecom/reader.py +309 -0
  139. package/runtime/node_modules/@agent/messaging/dist/index.js +1219 -0
  140. package/runtime/node_modules/@agent/messaging/package.json +7 -0
  141. package/runtime/node_modules/@agent/native-runtime/dist/index.js +6299 -808
  142. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/bridge.mjs +88 -82
  143. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/browser-sdk.js +61 -61
  144. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-8zdh6hy9.mjs +45 -0
  145. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-b5da77cd.mjs +34 -0
  146. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-f2yzhw4m.mjs +18 -0
  147. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-j29a9c1a.mjs +17 -0
  148. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core.mjs +11 -11
  149. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.json +33 -25
  150. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.zst.json +37 -29
  151. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/package.json +14 -14
  152. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs +84 -81
  153. package/runtime/node_modules/caniuse-lite/data/agents.js +1 -1
  154. package/runtime/node_modules/caniuse-lite/data/browserVersions.js +1 -1
  155. package/runtime/node_modules/caniuse-lite/data/features/aac.js +1 -1
  156. package/runtime/node_modules/caniuse-lite/data/features/abortcontroller.js +1 -1
  157. package/runtime/node_modules/caniuse-lite/data/features/ac3-ec3.js +1 -1
  158. package/runtime/node_modules/caniuse-lite/data/features/accelerometer.js +1 -1
  159. package/runtime/node_modules/caniuse-lite/data/features/addeventlistener.js +1 -1
  160. package/runtime/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +1 -1
  161. package/runtime/node_modules/caniuse-lite/data/features/ambient-light.js +1 -1
  162. package/runtime/node_modules/caniuse-lite/data/features/apng.js +1 -1
  163. package/runtime/node_modules/caniuse-lite/data/features/array-find-index.js +1 -1
  164. package/runtime/node_modules/caniuse-lite/data/features/array-find.js +1 -1
  165. package/runtime/node_modules/caniuse-lite/data/features/array-flat.js +1 -1
  166. package/runtime/node_modules/caniuse-lite/data/features/array-includes.js +1 -1
  167. package/runtime/node_modules/caniuse-lite/data/features/arrow-functions.js +1 -1
  168. package/runtime/node_modules/caniuse-lite/data/features/asmjs.js +1 -1
  169. package/runtime/node_modules/caniuse-lite/data/features/async-clipboard.js +1 -1
  170. package/runtime/node_modules/caniuse-lite/data/features/async-functions.js +1 -1
  171. package/runtime/node_modules/caniuse-lite/data/features/atob-btoa.js +1 -1
  172. package/runtime/node_modules/caniuse-lite/data/features/audio-api.js +1 -1
  173. package/runtime/node_modules/caniuse-lite/data/features/audio.js +1 -1
  174. package/runtime/node_modules/caniuse-lite/data/features/audiotracks.js +1 -1
  175. package/runtime/node_modules/caniuse-lite/data/features/autofocus.js +1 -1
  176. package/runtime/node_modules/caniuse-lite/data/features/auxclick.js +1 -1
  177. package/runtime/node_modules/caniuse-lite/data/features/av1.js +1 -1
  178. package/runtime/node_modules/caniuse-lite/data/features/avif.js +1 -1
  179. package/runtime/node_modules/caniuse-lite/data/features/background-attachment.js +1 -1
  180. package/runtime/node_modules/caniuse-lite/data/features/background-clip-text.js +1 -1
  181. package/runtime/node_modules/caniuse-lite/data/features/background-img-opts.js +1 -1
  182. package/runtime/node_modules/caniuse-lite/data/features/background-position-x-y.js +1 -1
  183. package/runtime/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +1 -1
  184. package/runtime/node_modules/caniuse-lite/data/features/background-sync.js +1 -1
  185. package/runtime/node_modules/caniuse-lite/data/features/battery-status.js +1 -1
  186. package/runtime/node_modules/caniuse-lite/data/features/beacon.js +1 -1
  187. package/runtime/node_modules/caniuse-lite/data/features/beforeafterprint.js +1 -1
  188. package/runtime/node_modules/caniuse-lite/data/features/bigint.js +1 -1
  189. package/runtime/node_modules/caniuse-lite/data/features/blobbuilder.js +1 -1
  190. package/runtime/node_modules/caniuse-lite/data/features/bloburls.js +1 -1
  191. package/runtime/node_modules/caniuse-lite/data/features/border-image.js +1 -1
  192. package/runtime/node_modules/caniuse-lite/data/features/border-radius.js +1 -1
  193. package/runtime/node_modules/caniuse-lite/data/features/broadcastchannel.js +1 -1
  194. package/runtime/node_modules/caniuse-lite/data/features/brotli.js +1 -1
  195. package/runtime/node_modules/caniuse-lite/data/features/calc.js +1 -1
  196. package/runtime/node_modules/caniuse-lite/data/features/canvas-blending.js +1 -1
  197. package/runtime/node_modules/caniuse-lite/data/features/canvas-text.js +1 -1
  198. package/runtime/node_modules/caniuse-lite/data/features/canvas.js +1 -1
  199. package/runtime/node_modules/caniuse-lite/data/features/ch-unit.js +1 -1
  200. package/runtime/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +1 -1
  201. package/runtime/node_modules/caniuse-lite/data/features/channel-messaging.js +1 -1
  202. package/runtime/node_modules/caniuse-lite/data/features/childnode-remove.js +1 -1
  203. package/runtime/node_modules/caniuse-lite/data/features/classlist.js +1 -1
  204. package/runtime/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +1 -1
  205. package/runtime/node_modules/caniuse-lite/data/features/clipboard.js +1 -1
  206. package/runtime/node_modules/caniuse-lite/data/features/colr-v1.js +1 -1
  207. package/runtime/node_modules/caniuse-lite/data/features/colr.js +1 -1
  208. package/runtime/node_modules/caniuse-lite/data/features/comparedocumentposition.js +1 -1
  209. package/runtime/node_modules/caniuse-lite/data/features/console-basic.js +1 -1
  210. package/runtime/node_modules/caniuse-lite/data/features/console-time.js +1 -1
  211. package/runtime/node_modules/caniuse-lite/data/features/const.js +1 -1
  212. package/runtime/node_modules/caniuse-lite/data/features/constraint-validation.js +1 -1
  213. package/runtime/node_modules/caniuse-lite/data/features/contenteditable.js +1 -1
  214. package/runtime/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +1 -1
  215. package/runtime/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +1 -1
  216. package/runtime/node_modules/caniuse-lite/data/features/cookie-store-api.js +1 -1
  217. package/runtime/node_modules/caniuse-lite/data/features/cors.js +1 -1
  218. package/runtime/node_modules/caniuse-lite/data/features/createimagebitmap.js +1 -1
  219. package/runtime/node_modules/caniuse-lite/data/features/credential-management.js +1 -1
  220. package/runtime/node_modules/caniuse-lite/data/features/cross-document-view-transitions.js +1 -1
  221. package/runtime/node_modules/caniuse-lite/data/features/cryptography.js +1 -1
  222. package/runtime/node_modules/caniuse-lite/data/features/css-all.js +1 -1
  223. package/runtime/node_modules/caniuse-lite/data/features/css-anchor-positioning.js +1 -1
  224. package/runtime/node_modules/caniuse-lite/data/features/css-animation.js +1 -1
  225. package/runtime/node_modules/caniuse-lite/data/features/css-any-link.js +1 -1
  226. package/runtime/node_modules/caniuse-lite/data/features/css-appearance.js +1 -1
  227. package/runtime/node_modules/caniuse-lite/data/features/css-at-counter-style.js +1 -1
  228. package/runtime/node_modules/caniuse-lite/data/features/css-autofill.js +1 -1
  229. package/runtime/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +1 -1
  230. package/runtime/node_modules/caniuse-lite/data/features/css-background-offsets.js +1 -1
  231. package/runtime/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +1 -1
  232. package/runtime/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +1 -1
  233. package/runtime/node_modules/caniuse-lite/data/features/css-boxshadow.js +1 -1
  234. package/runtime/node_modules/caniuse-lite/data/features/css-canvas.js +1 -1
  235. package/runtime/node_modules/caniuse-lite/data/features/css-caret-color.js +1 -1
  236. package/runtime/node_modules/caniuse-lite/data/features/css-cascade-layers.js +1 -1
  237. package/runtime/node_modules/caniuse-lite/data/features/css-cascade-scope.js +1 -1
  238. package/runtime/node_modules/caniuse-lite/data/features/css-case-insensitive.js +1 -1
  239. package/runtime/node_modules/caniuse-lite/data/features/css-clip-path.js +1 -1
  240. package/runtime/node_modules/caniuse-lite/data/features/css-color-adjust.js +1 -1
  241. package/runtime/node_modules/caniuse-lite/data/features/css-color-function.js +1 -1
  242. package/runtime/node_modules/caniuse-lite/data/features/css-conic-gradients.js +1 -1
  243. package/runtime/node_modules/caniuse-lite/data/features/css-container-queries-style.js +1 -1
  244. package/runtime/node_modules/caniuse-lite/data/features/css-container-queries.js +1 -1
  245. package/runtime/node_modules/caniuse-lite/data/features/css-container-query-units.js +1 -1
  246. package/runtime/node_modules/caniuse-lite/data/features/css-containment.js +1 -1
  247. package/runtime/node_modules/caniuse-lite/data/features/css-content-visibility.js +1 -1
  248. package/runtime/node_modules/caniuse-lite/data/features/css-counters.js +1 -1
  249. package/runtime/node_modules/caniuse-lite/data/features/css-crisp-edges.js +1 -1
  250. package/runtime/node_modules/caniuse-lite/data/features/css-cross-fade.js +1 -1
  251. package/runtime/node_modules/caniuse-lite/data/features/css-default-pseudo.js +1 -1
  252. package/runtime/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +1 -1
  253. package/runtime/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +1 -1
  254. package/runtime/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +1 -1
  255. package/runtime/node_modules/caniuse-lite/data/features/css-display-contents.js +1 -1
  256. package/runtime/node_modules/caniuse-lite/data/features/css-element-function.js +1 -1
  257. package/runtime/node_modules/caniuse-lite/data/features/css-env-function.js +1 -1
  258. package/runtime/node_modules/caniuse-lite/data/features/css-exclusions.js +1 -1
  259. package/runtime/node_modules/caniuse-lite/data/features/css-featurequeries.js +1 -1
  260. package/runtime/node_modules/caniuse-lite/data/features/css-file-selector-button.js +1 -1
  261. package/runtime/node_modules/caniuse-lite/data/features/css-filter-function.js +1 -1
  262. package/runtime/node_modules/caniuse-lite/data/features/css-filters.js +1 -1
  263. package/runtime/node_modules/caniuse-lite/data/features/css-first-letter.js +1 -1
  264. package/runtime/node_modules/caniuse-lite/data/features/css-first-line.js +1 -1
  265. package/runtime/node_modules/caniuse-lite/data/features/css-fixed.js +1 -1
  266. package/runtime/node_modules/caniuse-lite/data/features/css-focus-visible.js +1 -1
  267. package/runtime/node_modules/caniuse-lite/data/features/css-focus-within.js +1 -1
  268. package/runtime/node_modules/caniuse-lite/data/features/css-font-palette.js +1 -1
  269. package/runtime/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +1 -1
  270. package/runtime/node_modules/caniuse-lite/data/features/css-font-stretch.js +1 -1
  271. package/runtime/node_modules/caniuse-lite/data/features/css-gencontent.js +1 -1
  272. package/runtime/node_modules/caniuse-lite/data/features/css-gradients.js +1 -1
  273. package/runtime/node_modules/caniuse-lite/data/features/css-grid-animation.js +1 -1
  274. package/runtime/node_modules/caniuse-lite/data/features/css-grid-lanes.js +1 -1
  275. package/runtime/node_modules/caniuse-lite/data/features/css-grid.js +1 -1
  276. package/runtime/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +1 -1
  277. package/runtime/node_modules/caniuse-lite/data/features/css-has.js +1 -1
  278. package/runtime/node_modules/caniuse-lite/data/features/css-hyphens.js +1 -1
  279. package/runtime/node_modules/caniuse-lite/data/features/css-if.js +1 -1
  280. package/runtime/node_modules/caniuse-lite/data/features/css-image-orientation.js +1 -1
  281. package/runtime/node_modules/caniuse-lite/data/features/css-image-set.js +1 -1
  282. package/runtime/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +1 -1
  283. package/runtime/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +1 -1
  284. package/runtime/node_modules/caniuse-lite/data/features/css-initial-letter.js +1 -1
  285. package/runtime/node_modules/caniuse-lite/data/features/css-initial-value.js +1 -1
  286. package/runtime/node_modules/caniuse-lite/data/features/css-lch-lab.js +1 -1
  287. package/runtime/node_modules/caniuse-lite/data/features/css-letter-spacing.js +1 -1
  288. package/runtime/node_modules/caniuse-lite/data/features/css-line-clamp.js +1 -1
  289. package/runtime/node_modules/caniuse-lite/data/features/css-logical-props.js +1 -1
  290. package/runtime/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +1 -1
  291. package/runtime/node_modules/caniuse-lite/data/features/css-masks.js +1 -1
  292. package/runtime/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +1 -1
  293. package/runtime/node_modules/caniuse-lite/data/features/css-math-functions.js +1 -1
  294. package/runtime/node_modules/caniuse-lite/data/features/css-media-interaction.js +1 -1
  295. package/runtime/node_modules/caniuse-lite/data/features/css-media-range-syntax.js +1 -1
  296. package/runtime/node_modules/caniuse-lite/data/features/css-media-resolution.js +1 -1
  297. package/runtime/node_modules/caniuse-lite/data/features/css-media-scripting.js +1 -1
  298. package/runtime/node_modules/caniuse-lite/data/features/css-mediaqueries.js +1 -1
  299. package/runtime/node_modules/caniuse-lite/data/features/css-mixblendmode.js +1 -1
  300. package/runtime/node_modules/caniuse-lite/data/features/css-module-scripts.js +1 -1
  301. package/runtime/node_modules/caniuse-lite/data/features/css-motion-paths.js +1 -1
  302. package/runtime/node_modules/caniuse-lite/data/features/css-namespaces.js +1 -1
  303. package/runtime/node_modules/caniuse-lite/data/features/css-nesting.js +1 -1
  304. package/runtime/node_modules/caniuse-lite/data/features/css-not-sel-list.js +1 -1
  305. package/runtime/node_modules/caniuse-lite/data/features/css-nth-child-of.js +1 -1
  306. package/runtime/node_modules/caniuse-lite/data/features/css-opacity.js +1 -1
  307. package/runtime/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +1 -1
  308. package/runtime/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +1 -1
  309. package/runtime/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +1 -1
  310. package/runtime/node_modules/caniuse-lite/data/features/css-overflow.js +1 -1
  311. package/runtime/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +1 -1
  312. package/runtime/node_modules/caniuse-lite/data/features/css-page-break.js +1 -1
  313. package/runtime/node_modules/caniuse-lite/data/features/css-paged-media.js +1 -1
  314. package/runtime/node_modules/caniuse-lite/data/features/css-paint-api.js +1 -1
  315. package/runtime/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +1 -1
  316. package/runtime/node_modules/caniuse-lite/data/features/css-placeholder.js +1 -1
  317. package/runtime/node_modules/caniuse-lite/data/features/css-print-color-adjust.js +1 -1
  318. package/runtime/node_modules/caniuse-lite/data/features/css-read-only-write.js +1 -1
  319. package/runtime/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +1 -1
  320. package/runtime/node_modules/caniuse-lite/data/features/css-reflections.js +1 -1
  321. package/runtime/node_modules/caniuse-lite/data/features/css-regions.js +1 -1
  322. package/runtime/node_modules/caniuse-lite/data/features/css-relative-colors.js +1 -1
  323. package/runtime/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +1 -1
  324. package/runtime/node_modules/caniuse-lite/data/features/css-resize.js +1 -1
  325. package/runtime/node_modules/caniuse-lite/data/features/css-revert-value.js +1 -1
  326. package/runtime/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +1 -1
  327. package/runtime/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +1 -1
  328. package/runtime/node_modules/caniuse-lite/data/features/css-scrollbar.js +1 -1
  329. package/runtime/node_modules/caniuse-lite/data/features/css-sel2.js +1 -1
  330. package/runtime/node_modules/caniuse-lite/data/features/css-sel3.js +1 -1
  331. package/runtime/node_modules/caniuse-lite/data/features/css-selection.js +1 -1
  332. package/runtime/node_modules/caniuse-lite/data/features/css-shapes.js +1 -1
  333. package/runtime/node_modules/caniuse-lite/data/features/css-snappoints.js +1 -1
  334. package/runtime/node_modules/caniuse-lite/data/features/css-sticky.js +1 -1
  335. package/runtime/node_modules/caniuse-lite/data/features/css-subgrid.js +1 -1
  336. package/runtime/node_modules/caniuse-lite/data/features/css-supports-api.js +1 -1
  337. package/runtime/node_modules/caniuse-lite/data/features/css-table.js +1 -1
  338. package/runtime/node_modules/caniuse-lite/data/features/css-text-align-last.js +1 -1
  339. package/runtime/node_modules/caniuse-lite/data/features/css-text-box-trim.js +1 -1
  340. package/runtime/node_modules/caniuse-lite/data/features/css-text-indent.js +1 -1
  341. package/runtime/node_modules/caniuse-lite/data/features/css-text-justify.js +1 -1
  342. package/runtime/node_modules/caniuse-lite/data/features/css-text-orientation.js +1 -1
  343. package/runtime/node_modules/caniuse-lite/data/features/css-text-spacing.js +1 -1
  344. package/runtime/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js +1 -1
  345. package/runtime/node_modules/caniuse-lite/data/features/css-textshadow.js +1 -1
  346. package/runtime/node_modules/caniuse-lite/data/features/css-touch-action.js +1 -1
  347. package/runtime/node_modules/caniuse-lite/data/features/css-transitions.js +1 -1
  348. package/runtime/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +1 -1
  349. package/runtime/node_modules/caniuse-lite/data/features/css-unset-value.js +1 -1
  350. package/runtime/node_modules/caniuse-lite/data/features/css-variables.js +1 -1
  351. package/runtime/node_modules/caniuse-lite/data/features/css-when-else.js +1 -1
  352. package/runtime/node_modules/caniuse-lite/data/features/css-widows-orphans.js +1 -1
  353. package/runtime/node_modules/caniuse-lite/data/features/css-width-stretch.js +1 -1
  354. package/runtime/node_modules/caniuse-lite/data/features/css-writing-mode.js +1 -1
  355. package/runtime/node_modules/caniuse-lite/data/features/css-zoom.js +1 -1
  356. package/runtime/node_modules/caniuse-lite/data/features/css3-attr.js +1 -1
  357. package/runtime/node_modules/caniuse-lite/data/features/css3-boxsizing.js +1 -1
  358. package/runtime/node_modules/caniuse-lite/data/features/css3-colors.js +1 -1
  359. package/runtime/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +1 -1
  360. package/runtime/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +1 -1
  361. package/runtime/node_modules/caniuse-lite/data/features/css3-cursors.js +1 -1
  362. package/runtime/node_modules/caniuse-lite/data/features/css3-tabsize.js +1 -1
  363. package/runtime/node_modules/caniuse-lite/data/features/currentcolor.js +1 -1
  364. package/runtime/node_modules/caniuse-lite/data/features/custom-elements.js +1 -1
  365. package/runtime/node_modules/caniuse-lite/data/features/custom-elementsv1.js +1 -1
  366. package/runtime/node_modules/caniuse-lite/data/features/customevent.js +1 -1
  367. package/runtime/node_modules/caniuse-lite/data/features/customizable-select.js +1 -1
  368. package/runtime/node_modules/caniuse-lite/data/features/datalist.js +1 -1
  369. package/runtime/node_modules/caniuse-lite/data/features/dataset.js +1 -1
  370. package/runtime/node_modules/caniuse-lite/data/features/datauri.js +1 -1
  371. package/runtime/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +1 -1
  372. package/runtime/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js +1 -1
  373. package/runtime/node_modules/caniuse-lite/data/features/decorators.js +1 -1
  374. package/runtime/node_modules/caniuse-lite/data/features/details.js +1 -1
  375. package/runtime/node_modules/caniuse-lite/data/features/deviceorientation.js +1 -1
  376. package/runtime/node_modules/caniuse-lite/data/features/devicepixelratio.js +1 -1
  377. package/runtime/node_modules/caniuse-lite/data/features/dialog.js +1 -1
  378. package/runtime/node_modules/caniuse-lite/data/features/dispatchevent.js +1 -1
  379. package/runtime/node_modules/caniuse-lite/data/features/dnssec.js +1 -1
  380. package/runtime/node_modules/caniuse-lite/data/features/do-not-track.js +1 -1
  381. package/runtime/node_modules/caniuse-lite/data/features/document-currentscript.js +1 -1
  382. package/runtime/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +1 -1
  383. package/runtime/node_modules/caniuse-lite/data/features/document-execcommand.js +1 -1
  384. package/runtime/node_modules/caniuse-lite/data/features/document-policy.js +1 -1
  385. package/runtime/node_modules/caniuse-lite/data/features/document-scrollingelement.js +1 -1
  386. package/runtime/node_modules/caniuse-lite/data/features/documenthead.js +1 -1
  387. package/runtime/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +1 -1
  388. package/runtime/node_modules/caniuse-lite/data/features/dom-range.js +1 -1
  389. package/runtime/node_modules/caniuse-lite/data/features/domcontentloaded.js +1 -1
  390. package/runtime/node_modules/caniuse-lite/data/features/dommatrix.js +1 -1
  391. package/runtime/node_modules/caniuse-lite/data/features/download.js +1 -1
  392. package/runtime/node_modules/caniuse-lite/data/features/dragndrop.js +1 -1
  393. package/runtime/node_modules/caniuse-lite/data/features/element-closest.js +1 -1
  394. package/runtime/node_modules/caniuse-lite/data/features/element-from-point.js +1 -1
  395. package/runtime/node_modules/caniuse-lite/data/features/element-scroll-methods.js +1 -1
  396. package/runtime/node_modules/caniuse-lite/data/features/eme.js +1 -1
  397. package/runtime/node_modules/caniuse-lite/data/features/eot.js +1 -1
  398. package/runtime/node_modules/caniuse-lite/data/features/es5.js +1 -1
  399. package/runtime/node_modules/caniuse-lite/data/features/es6-class.js +1 -1
  400. package/runtime/node_modules/caniuse-lite/data/features/es6-generators.js +1 -1
  401. package/runtime/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +1 -1
  402. package/runtime/node_modules/caniuse-lite/data/features/es6-module.js +1 -1
  403. package/runtime/node_modules/caniuse-lite/data/features/es6-number.js +1 -1
  404. package/runtime/node_modules/caniuse-lite/data/features/es6-string-includes.js +1 -1
  405. package/runtime/node_modules/caniuse-lite/data/features/es6.js +1 -1
  406. package/runtime/node_modules/caniuse-lite/data/features/eventsource.js +1 -1
  407. package/runtime/node_modules/caniuse-lite/data/features/extended-system-fonts.js +1 -1
  408. package/runtime/node_modules/caniuse-lite/data/features/feature-policy.js +1 -1
  409. package/runtime/node_modules/caniuse-lite/data/features/fetch.js +1 -1
  410. package/runtime/node_modules/caniuse-lite/data/features/fieldset-disabled.js +1 -1
  411. package/runtime/node_modules/caniuse-lite/data/features/fileapi.js +1 -1
  412. package/runtime/node_modules/caniuse-lite/data/features/filereader.js +1 -1
  413. package/runtime/node_modules/caniuse-lite/data/features/filereadersync.js +1 -1
  414. package/runtime/node_modules/caniuse-lite/data/features/filesystem.js +1 -1
  415. package/runtime/node_modules/caniuse-lite/data/features/flac.js +1 -1
  416. package/runtime/node_modules/caniuse-lite/data/features/flexbox-gap.js +1 -1
  417. package/runtime/node_modules/caniuse-lite/data/features/flexbox.js +1 -1
  418. package/runtime/node_modules/caniuse-lite/data/features/flow-root.js +1 -1
  419. package/runtime/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +1 -1
  420. package/runtime/node_modules/caniuse-lite/data/features/font-family-system-ui.js +1 -1
  421. package/runtime/node_modules/caniuse-lite/data/features/font-feature.js +1 -1
  422. package/runtime/node_modules/caniuse-lite/data/features/font-kerning.js +1 -1
  423. package/runtime/node_modules/caniuse-lite/data/features/font-loading.js +1 -1
  424. package/runtime/node_modules/caniuse-lite/data/features/font-size-adjust.js +1 -1
  425. package/runtime/node_modules/caniuse-lite/data/features/font-smooth.js +1 -1
  426. package/runtime/node_modules/caniuse-lite/data/features/font-unicode-range.js +1 -1
  427. package/runtime/node_modules/caniuse-lite/data/features/font-variant-alternates.js +1 -1
  428. package/runtime/node_modules/caniuse-lite/data/features/font-variant-numeric.js +1 -1
  429. package/runtime/node_modules/caniuse-lite/data/features/fontface.js +1 -1
  430. package/runtime/node_modules/caniuse-lite/data/features/form-attribute.js +1 -1
  431. package/runtime/node_modules/caniuse-lite/data/features/form-submit-attributes.js +1 -1
  432. package/runtime/node_modules/caniuse-lite/data/features/form-validation.js +1 -1
  433. package/runtime/node_modules/caniuse-lite/data/features/forms.js +1 -1
  434. package/runtime/node_modules/caniuse-lite/data/features/fullscreen.js +1 -1
  435. package/runtime/node_modules/caniuse-lite/data/features/gamepad.js +1 -1
  436. package/runtime/node_modules/caniuse-lite/data/features/geolocation.js +1 -1
  437. package/runtime/node_modules/caniuse-lite/data/features/getboundingclientrect.js +1 -1
  438. package/runtime/node_modules/caniuse-lite/data/features/getcomputedstyle.js +1 -1
  439. package/runtime/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +1 -1
  440. package/runtime/node_modules/caniuse-lite/data/features/getrandomvalues.js +1 -1
  441. package/runtime/node_modules/caniuse-lite/data/features/gyroscope.js +1 -1
  442. package/runtime/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +1 -1
  443. package/runtime/node_modules/caniuse-lite/data/features/hashchange.js +1 -1
  444. package/runtime/node_modules/caniuse-lite/data/features/heif.js +1 -1
  445. package/runtime/node_modules/caniuse-lite/data/features/hevc.js +1 -1
  446. package/runtime/node_modules/caniuse-lite/data/features/hidden.js +1 -1
  447. package/runtime/node_modules/caniuse-lite/data/features/high-resolution-time.js +1 -1
  448. package/runtime/node_modules/caniuse-lite/data/features/history.js +1 -1
  449. package/runtime/node_modules/caniuse-lite/data/features/html-media-capture.js +1 -1
  450. package/runtime/node_modules/caniuse-lite/data/features/html5semantic.js +1 -1
  451. package/runtime/node_modules/caniuse-lite/data/features/http-live-streaming.js +1 -1
  452. package/runtime/node_modules/caniuse-lite/data/features/http2.js +1 -1
  453. package/runtime/node_modules/caniuse-lite/data/features/http3.js +1 -1
  454. package/runtime/node_modules/caniuse-lite/data/features/iframe-sandbox.js +1 -1
  455. package/runtime/node_modules/caniuse-lite/data/features/iframe-seamless.js +1 -1
  456. package/runtime/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +1 -1
  457. package/runtime/node_modules/caniuse-lite/data/features/imagecapture.js +1 -1
  458. package/runtime/node_modules/caniuse-lite/data/features/ime.js +1 -1
  459. package/runtime/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +1 -1
  460. package/runtime/node_modules/caniuse-lite/data/features/import-maps.js +1 -1
  461. package/runtime/node_modules/caniuse-lite/data/features/imports.js +1 -1
  462. package/runtime/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +1 -1
  463. package/runtime/node_modules/caniuse-lite/data/features/indexeddb.js +1 -1
  464. package/runtime/node_modules/caniuse-lite/data/features/indexeddb2.js +1 -1
  465. package/runtime/node_modules/caniuse-lite/data/features/inline-block.js +1 -1
  466. package/runtime/node_modules/caniuse-lite/data/features/innertext.js +1 -1
  467. package/runtime/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +1 -1
  468. package/runtime/node_modules/caniuse-lite/data/features/input-color.js +1 -1
  469. package/runtime/node_modules/caniuse-lite/data/features/input-datetime.js +1 -1
  470. package/runtime/node_modules/caniuse-lite/data/features/input-email-tel-url.js +1 -1
  471. package/runtime/node_modules/caniuse-lite/data/features/input-event.js +1 -1
  472. package/runtime/node_modules/caniuse-lite/data/features/input-file-accept.js +1 -1
  473. package/runtime/node_modules/caniuse-lite/data/features/input-file-directory.js +1 -1
  474. package/runtime/node_modules/caniuse-lite/data/features/input-file-multiple.js +1 -1
  475. package/runtime/node_modules/caniuse-lite/data/features/input-inputmode.js +1 -1
  476. package/runtime/node_modules/caniuse-lite/data/features/input-minlength.js +1 -1
  477. package/runtime/node_modules/caniuse-lite/data/features/input-number.js +1 -1
  478. package/runtime/node_modules/caniuse-lite/data/features/input-pattern.js +1 -1
  479. package/runtime/node_modules/caniuse-lite/data/features/input-placeholder.js +1 -1
  480. package/runtime/node_modules/caniuse-lite/data/features/input-range.js +1 -1
  481. package/runtime/node_modules/caniuse-lite/data/features/input-search.js +1 -1
  482. package/runtime/node_modules/caniuse-lite/data/features/input-selection.js +1 -1
  483. package/runtime/node_modules/caniuse-lite/data/features/insert-adjacent.js +1 -1
  484. package/runtime/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +1 -1
  485. package/runtime/node_modules/caniuse-lite/data/features/internationalization.js +1 -1
  486. package/runtime/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +1 -1
  487. package/runtime/node_modules/caniuse-lite/data/features/intersectionobserver.js +1 -1
  488. package/runtime/node_modules/caniuse-lite/data/features/intl-pluralrules.js +1 -1
  489. package/runtime/node_modules/caniuse-lite/data/features/intrinsic-width.js +1 -1
  490. package/runtime/node_modules/caniuse-lite/data/features/jpeg2000.js +1 -1
  491. package/runtime/node_modules/caniuse-lite/data/features/jpegxl.js +1 -1
  492. package/runtime/node_modules/caniuse-lite/data/features/jpegxr.js +1 -1
  493. package/runtime/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +1 -1
  494. package/runtime/node_modules/caniuse-lite/data/features/json.js +1 -1
  495. package/runtime/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +1 -1
  496. package/runtime/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +1 -1
  497. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +1 -1
  498. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-code.js +1 -1
  499. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +1 -1
  500. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-key.js +1 -1
  501. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-location.js +1 -1
  502. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-which.js +1 -1
  503. package/runtime/node_modules/caniuse-lite/data/features/lazyload.js +1 -1
  504. package/runtime/node_modules/caniuse-lite/data/features/let.js +1 -1
  505. package/runtime/node_modules/caniuse-lite/data/features/link-icon-png.js +1 -1
  506. package/runtime/node_modules/caniuse-lite/data/features/link-icon-svg.js +1 -1
  507. package/runtime/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +1 -1
  508. package/runtime/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +1 -1
  509. package/runtime/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +1 -1
  510. package/runtime/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +1 -1
  511. package/runtime/node_modules/caniuse-lite/data/features/link-rel-preload.js +1 -1
  512. package/runtime/node_modules/caniuse-lite/data/features/link-rel-prerender.js +1 -1
  513. package/runtime/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +1 -1
  514. package/runtime/node_modules/caniuse-lite/data/features/loading-lazy-media.js +1 -1
  515. package/runtime/node_modules/caniuse-lite/data/features/localecompare.js +1 -1
  516. package/runtime/node_modules/caniuse-lite/data/features/magnetometer.js +1 -1
  517. package/runtime/node_modules/caniuse-lite/data/features/matchesselector.js +1 -1
  518. package/runtime/node_modules/caniuse-lite/data/features/matchmedia.js +1 -1
  519. package/runtime/node_modules/caniuse-lite/data/features/mathml.js +1 -1
  520. package/runtime/node_modules/caniuse-lite/data/features/maxlength.js +1 -1
  521. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js +1 -1
  522. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js +1 -1
  523. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js +1 -1
  524. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js +1 -1
  525. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js +1 -1
  526. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js +1 -1
  527. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js +1 -1
  528. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js +1 -1
  529. package/runtime/node_modules/caniuse-lite/data/features/media-fragments.js +1 -1
  530. package/runtime/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +1 -1
  531. package/runtime/node_modules/caniuse-lite/data/features/mediarecorder.js +1 -1
  532. package/runtime/node_modules/caniuse-lite/data/features/mediasource.js +1 -1
  533. package/runtime/node_modules/caniuse-lite/data/features/menu.js +1 -1
  534. package/runtime/node_modules/caniuse-lite/data/features/meta-theme-color.js +1 -1
  535. package/runtime/node_modules/caniuse-lite/data/features/meter.js +1 -1
  536. package/runtime/node_modules/caniuse-lite/data/features/midi.js +1 -1
  537. package/runtime/node_modules/caniuse-lite/data/features/minmaxwh.js +1 -1
  538. package/runtime/node_modules/caniuse-lite/data/features/mp3.js +1 -1
  539. package/runtime/node_modules/caniuse-lite/data/features/mpeg-dash.js +1 -1
  540. package/runtime/node_modules/caniuse-lite/data/features/mpeg4.js +1 -1
  541. package/runtime/node_modules/caniuse-lite/data/features/multibackgrounds.js +1 -1
  542. package/runtime/node_modules/caniuse-lite/data/features/multicolumn.js +1 -1
  543. package/runtime/node_modules/caniuse-lite/data/features/mutation-events.js +1 -1
  544. package/runtime/node_modules/caniuse-lite/data/features/mutationobserver.js +1 -1
  545. package/runtime/node_modules/caniuse-lite/data/features/namevalue-storage.js +1 -1
  546. package/runtime/node_modules/caniuse-lite/data/features/native-filesystem-api.js +1 -1
  547. package/runtime/node_modules/caniuse-lite/data/features/nav-timing.js +1 -1
  548. package/runtime/node_modules/caniuse-lite/data/features/netinfo.js +1 -1
  549. package/runtime/node_modules/caniuse-lite/data/features/notifications.js +1 -1
  550. package/runtime/node_modules/caniuse-lite/data/features/object-entries.js +1 -1
  551. package/runtime/node_modules/caniuse-lite/data/features/object-fit.js +1 -1
  552. package/runtime/node_modules/caniuse-lite/data/features/object-observe.js +1 -1
  553. package/runtime/node_modules/caniuse-lite/data/features/object-values.js +1 -1
  554. package/runtime/node_modules/caniuse-lite/data/features/objectrtc.js +1 -1
  555. package/runtime/node_modules/caniuse-lite/data/features/offline-apps.js +1 -1
  556. package/runtime/node_modules/caniuse-lite/data/features/offscreencanvas.js +1 -1
  557. package/runtime/node_modules/caniuse-lite/data/features/ogg-vorbis.js +1 -1
  558. package/runtime/node_modules/caniuse-lite/data/features/ogv.js +1 -1
  559. package/runtime/node_modules/caniuse-lite/data/features/ol-reversed.js +1 -1
  560. package/runtime/node_modules/caniuse-lite/data/features/once-event-listener.js +1 -1
  561. package/runtime/node_modules/caniuse-lite/data/features/online-status.js +1 -1
  562. package/runtime/node_modules/caniuse-lite/data/features/opus.js +1 -1
  563. package/runtime/node_modules/caniuse-lite/data/features/orientation-sensor.js +1 -1
  564. package/runtime/node_modules/caniuse-lite/data/features/outline.js +1 -1
  565. package/runtime/node_modules/caniuse-lite/data/features/pad-start-end.js +1 -1
  566. package/runtime/node_modules/caniuse-lite/data/features/page-transition-events.js +1 -1
  567. package/runtime/node_modules/caniuse-lite/data/features/pagevisibility.js +1 -1
  568. package/runtime/node_modules/caniuse-lite/data/features/passive-event-listener.js +1 -1
  569. package/runtime/node_modules/caniuse-lite/data/features/passkeys.js +1 -1
  570. package/runtime/node_modules/caniuse-lite/data/features/passwordrules.js +1 -1
  571. package/runtime/node_modules/caniuse-lite/data/features/path2d.js +1 -1
  572. package/runtime/node_modules/caniuse-lite/data/features/payment-request.js +1 -1
  573. package/runtime/node_modules/caniuse-lite/data/features/pdf-viewer.js +1 -1
  574. package/runtime/node_modules/caniuse-lite/data/features/permissions-api.js +1 -1
  575. package/runtime/node_modules/caniuse-lite/data/features/permissions-policy.js +1 -1
  576. package/runtime/node_modules/caniuse-lite/data/features/picture-in-picture.js +1 -1
  577. package/runtime/node_modules/caniuse-lite/data/features/picture.js +1 -1
  578. package/runtime/node_modules/caniuse-lite/data/features/ping.js +1 -1
  579. package/runtime/node_modules/caniuse-lite/data/features/png-alpha.js +1 -1
  580. package/runtime/node_modules/caniuse-lite/data/features/pointer-events.js +1 -1
  581. package/runtime/node_modules/caniuse-lite/data/features/pointer.js +1 -1
  582. package/runtime/node_modules/caniuse-lite/data/features/pointerlock.js +1 -1
  583. package/runtime/node_modules/caniuse-lite/data/features/portals.js +1 -1
  584. package/runtime/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +1 -1
  585. package/runtime/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +1 -1
  586. package/runtime/node_modules/caniuse-lite/data/features/progress.js +1 -1
  587. package/runtime/node_modules/caniuse-lite/data/features/promise-finally.js +1 -1
  588. package/runtime/node_modules/caniuse-lite/data/features/promises.js +1 -1
  589. package/runtime/node_modules/caniuse-lite/data/features/proximity.js +1 -1
  590. package/runtime/node_modules/caniuse-lite/data/features/proxy.js +1 -1
  591. package/runtime/node_modules/caniuse-lite/data/features/publickeypinning.js +1 -1
  592. package/runtime/node_modules/caniuse-lite/data/features/push-api.js +1 -1
  593. package/runtime/node_modules/caniuse-lite/data/features/queryselector.js +1 -1
  594. package/runtime/node_modules/caniuse-lite/data/features/readonly-attr.js +1 -1
  595. package/runtime/node_modules/caniuse-lite/data/features/referrer-policy.js +1 -1
  596. package/runtime/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +1 -1
  597. package/runtime/node_modules/caniuse-lite/data/features/rel-noopener.js +1 -1
  598. package/runtime/node_modules/caniuse-lite/data/features/rel-noreferrer.js +1 -1
  599. package/runtime/node_modules/caniuse-lite/data/features/rellist.js +1 -1
  600. package/runtime/node_modules/caniuse-lite/data/features/rem.js +1 -1
  601. package/runtime/node_modules/caniuse-lite/data/features/requestanimationframe.js +1 -1
  602. package/runtime/node_modules/caniuse-lite/data/features/requestidlecallback.js +1 -1
  603. package/runtime/node_modules/caniuse-lite/data/features/resizeobserver.js +1 -1
  604. package/runtime/node_modules/caniuse-lite/data/features/resource-timing.js +1 -1
  605. package/runtime/node_modules/caniuse-lite/data/features/rest-parameters.js +1 -1
  606. package/runtime/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +1 -1
  607. package/runtime/node_modules/caniuse-lite/data/features/ruby.js +1 -1
  608. package/runtime/node_modules/caniuse-lite/data/features/run-in.js +1 -1
  609. package/runtime/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +1 -1
  610. package/runtime/node_modules/caniuse-lite/data/features/screen-orientation.js +1 -1
  611. package/runtime/node_modules/caniuse-lite/data/features/script-async.js +1 -1
  612. package/runtime/node_modules/caniuse-lite/data/features/script-defer.js +1 -1
  613. package/runtime/node_modules/caniuse-lite/data/features/scrollintoview.js +1 -1
  614. package/runtime/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +1 -1
  615. package/runtime/node_modules/caniuse-lite/data/features/sdch.js +1 -1
  616. package/runtime/node_modules/caniuse-lite/data/features/selection-api.js +1 -1
  617. package/runtime/node_modules/caniuse-lite/data/features/server-timing.js +1 -1
  618. package/runtime/node_modules/caniuse-lite/data/features/serviceworkers.js +1 -1
  619. package/runtime/node_modules/caniuse-lite/data/features/setimmediate.js +1 -1
  620. package/runtime/node_modules/caniuse-lite/data/features/shadowdom.js +1 -1
  621. package/runtime/node_modules/caniuse-lite/data/features/shadowdomv1.js +1 -1
  622. package/runtime/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +1 -1
  623. package/runtime/node_modules/caniuse-lite/data/features/sharedworkers.js +1 -1
  624. package/runtime/node_modules/caniuse-lite/data/features/sni.js +1 -1
  625. package/runtime/node_modules/caniuse-lite/data/features/spdy.js +1 -1
  626. package/runtime/node_modules/caniuse-lite/data/features/speech-recognition.js +1 -1
  627. package/runtime/node_modules/caniuse-lite/data/features/speech-synthesis.js +1 -1
  628. package/runtime/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +1 -1
  629. package/runtime/node_modules/caniuse-lite/data/features/sql-storage.js +1 -1
  630. package/runtime/node_modules/caniuse-lite/data/features/srcset.js +1 -1
  631. package/runtime/node_modules/caniuse-lite/data/features/stream.js +1 -1
  632. package/runtime/node_modules/caniuse-lite/data/features/streams.js +1 -1
  633. package/runtime/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +1 -1
  634. package/runtime/node_modules/caniuse-lite/data/features/style-scoped.js +1 -1
  635. package/runtime/node_modules/caniuse-lite/data/features/subresource-bundling.js +1 -1
  636. package/runtime/node_modules/caniuse-lite/data/features/subresource-integrity.js +1 -1
  637. package/runtime/node_modules/caniuse-lite/data/features/svg-css.js +1 -1
  638. package/runtime/node_modules/caniuse-lite/data/features/svg-filters.js +1 -1
  639. package/runtime/node_modules/caniuse-lite/data/features/svg-fonts.js +1 -1
  640. package/runtime/node_modules/caniuse-lite/data/features/svg-fragment.js +1 -1
  641. package/runtime/node_modules/caniuse-lite/data/features/svg-html.js +1 -1
  642. package/runtime/node_modules/caniuse-lite/data/features/svg-html5.js +1 -1
  643. package/runtime/node_modules/caniuse-lite/data/features/svg-img.js +1 -1
  644. package/runtime/node_modules/caniuse-lite/data/features/svg-smil.js +1 -1
  645. package/runtime/node_modules/caniuse-lite/data/features/svg.js +1 -1
  646. package/runtime/node_modules/caniuse-lite/data/features/sxg.js +1 -1
  647. package/runtime/node_modules/caniuse-lite/data/features/tabindex-attr.js +1 -1
  648. package/runtime/node_modules/caniuse-lite/data/features/template-literals.js +1 -1
  649. package/runtime/node_modules/caniuse-lite/data/features/template.js +1 -1
  650. package/runtime/node_modules/caniuse-lite/data/features/temporal.js +1 -1
  651. package/runtime/node_modules/caniuse-lite/data/features/testfeat.js +1 -1
  652. package/runtime/node_modules/caniuse-lite/data/features/text-decoration.js +1 -1
  653. package/runtime/node_modules/caniuse-lite/data/features/text-emphasis.js +1 -1
  654. package/runtime/node_modules/caniuse-lite/data/features/text-overflow.js +1 -1
  655. package/runtime/node_modules/caniuse-lite/data/features/text-size-adjust.js +1 -1
  656. package/runtime/node_modules/caniuse-lite/data/features/text-stroke.js +1 -1
  657. package/runtime/node_modules/caniuse-lite/data/features/textcontent.js +1 -1
  658. package/runtime/node_modules/caniuse-lite/data/features/textencoder.js +1 -1
  659. package/runtime/node_modules/caniuse-lite/data/features/tls1-1.js +1 -1
  660. package/runtime/node_modules/caniuse-lite/data/features/tls1-2.js +1 -1
  661. package/runtime/node_modules/caniuse-lite/data/features/tls1-3.js +1 -1
  662. package/runtime/node_modules/caniuse-lite/data/features/touch.js +1 -1
  663. package/runtime/node_modules/caniuse-lite/data/features/transforms2d.js +1 -1
  664. package/runtime/node_modules/caniuse-lite/data/features/transforms3d.js +1 -1
  665. package/runtime/node_modules/caniuse-lite/data/features/trusted-types.js +1 -1
  666. package/runtime/node_modules/caniuse-lite/data/features/ttf.js +1 -1
  667. package/runtime/node_modules/caniuse-lite/data/features/typedarrays.js +1 -1
  668. package/runtime/node_modules/caniuse-lite/data/features/u2f.js +1 -1
  669. package/runtime/node_modules/caniuse-lite/data/features/unhandledrejection.js +1 -1
  670. package/runtime/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +1 -1
  671. package/runtime/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +1 -1
  672. package/runtime/node_modules/caniuse-lite/data/features/url.js +1 -1
  673. package/runtime/node_modules/caniuse-lite/data/features/urlsearchparams.js +1 -1
  674. package/runtime/node_modules/caniuse-lite/data/features/use-strict.js +1 -1
  675. package/runtime/node_modules/caniuse-lite/data/features/user-select-none.js +1 -1
  676. package/runtime/node_modules/caniuse-lite/data/features/user-timing.js +1 -1
  677. package/runtime/node_modules/caniuse-lite/data/features/variable-fonts.js +1 -1
  678. package/runtime/node_modules/caniuse-lite/data/features/vector-effect.js +1 -1
  679. package/runtime/node_modules/caniuse-lite/data/features/vibration.js +1 -1
  680. package/runtime/node_modules/caniuse-lite/data/features/video.js +1 -1
  681. package/runtime/node_modules/caniuse-lite/data/features/videotracks.js +1 -1
  682. package/runtime/node_modules/caniuse-lite/data/features/view-transitions.js +1 -1
  683. package/runtime/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +1 -1
  684. package/runtime/node_modules/caniuse-lite/data/features/viewport-units.js +1 -1
  685. package/runtime/node_modules/caniuse-lite/data/features/wai-aria.js +1 -1
  686. package/runtime/node_modules/caniuse-lite/data/features/wake-lock.js +1 -1
  687. package/runtime/node_modules/caniuse-lite/data/features/wasm-bigint.js +1 -1
  688. package/runtime/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js +1 -1
  689. package/runtime/node_modules/caniuse-lite/data/features/wasm-extended-const.js +1 -1
  690. package/runtime/node_modules/caniuse-lite/data/features/wasm-gc.js +1 -1
  691. package/runtime/node_modules/caniuse-lite/data/features/wasm-multi-memory.js +1 -1
  692. package/runtime/node_modules/caniuse-lite/data/features/wasm-multi-value.js +1 -1
  693. package/runtime/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js +1 -1
  694. package/runtime/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js +1 -1
  695. package/runtime/node_modules/caniuse-lite/data/features/wasm-reference-types.js +1 -1
  696. package/runtime/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js +1 -1
  697. package/runtime/node_modules/caniuse-lite/data/features/wasm-signext.js +1 -1
  698. package/runtime/node_modules/caniuse-lite/data/features/wasm-simd.js +1 -1
  699. package/runtime/node_modules/caniuse-lite/data/features/wasm-tail-calls.js +1 -1
  700. package/runtime/node_modules/caniuse-lite/data/features/wasm-threads.js +1 -1
  701. package/runtime/node_modules/caniuse-lite/data/features/wasm.js +1 -1
  702. package/runtime/node_modules/caniuse-lite/data/features/wav.js +1 -1
  703. package/runtime/node_modules/caniuse-lite/data/features/wbr-element.js +1 -1
  704. package/runtime/node_modules/caniuse-lite/data/features/web-animation.js +1 -1
  705. package/runtime/node_modules/caniuse-lite/data/features/web-app-manifest.js +1 -1
  706. package/runtime/node_modules/caniuse-lite/data/features/web-bluetooth.js +1 -1
  707. package/runtime/node_modules/caniuse-lite/data/features/web-serial.js +1 -1
  708. package/runtime/node_modules/caniuse-lite/data/features/web-share.js +1 -1
  709. package/runtime/node_modules/caniuse-lite/data/features/webauthn.js +1 -1
  710. package/runtime/node_modules/caniuse-lite/data/features/webcodecs.js +1 -1
  711. package/runtime/node_modules/caniuse-lite/data/features/webgl.js +1 -1
  712. package/runtime/node_modules/caniuse-lite/data/features/webgl2.js +1 -1
  713. package/runtime/node_modules/caniuse-lite/data/features/webgpu.js +1 -1
  714. package/runtime/node_modules/caniuse-lite/data/features/webhid.js +1 -1
  715. package/runtime/node_modules/caniuse-lite/data/features/webkit-user-drag.js +1 -1
  716. package/runtime/node_modules/caniuse-lite/data/features/webm.js +1 -1
  717. package/runtime/node_modules/caniuse-lite/data/features/webnfc.js +1 -1
  718. package/runtime/node_modules/caniuse-lite/data/features/webp.js +1 -1
  719. package/runtime/node_modules/caniuse-lite/data/features/websockets.js +1 -1
  720. package/runtime/node_modules/caniuse-lite/data/features/webtransport.js +1 -1
  721. package/runtime/node_modules/caniuse-lite/data/features/webusb.js +1 -1
  722. package/runtime/node_modules/caniuse-lite/data/features/webvr.js +1 -1
  723. package/runtime/node_modules/caniuse-lite/data/features/webvtt.js +1 -1
  724. package/runtime/node_modules/caniuse-lite/data/features/webworkers.js +1 -1
  725. package/runtime/node_modules/caniuse-lite/data/features/webxr.js +1 -1
  726. package/runtime/node_modules/caniuse-lite/data/features/will-change.js +1 -1
  727. package/runtime/node_modules/caniuse-lite/data/features/woff.js +1 -1
  728. package/runtime/node_modules/caniuse-lite/data/features/woff2.js +1 -1
  729. package/runtime/node_modules/caniuse-lite/data/features/word-break.js +1 -1
  730. package/runtime/node_modules/caniuse-lite/data/features/wordwrap.js +1 -1
  731. package/runtime/node_modules/caniuse-lite/data/features/x-doc-messaging.js +1 -1
  732. package/runtime/node_modules/caniuse-lite/data/features/x-frame-options.js +1 -1
  733. package/runtime/node_modules/caniuse-lite/data/features/xhr2.js +1 -1
  734. package/runtime/node_modules/caniuse-lite/data/features/xhtml.js +1 -1
  735. package/runtime/node_modules/caniuse-lite/data/features/xhtmlsmil.js +1 -1
  736. package/runtime/node_modules/caniuse-lite/data/features/xml-serializer.js +1 -1
  737. package/runtime/node_modules/caniuse-lite/data/features/zstd.js +1 -1
  738. package/runtime/node_modules/caniuse-lite/data/regions/AD.js +1 -1
  739. package/runtime/node_modules/caniuse-lite/data/regions/AE.js +1 -1
  740. package/runtime/node_modules/caniuse-lite/data/regions/AF.js +1 -1
  741. package/runtime/node_modules/caniuse-lite/data/regions/AG.js +1 -1
  742. package/runtime/node_modules/caniuse-lite/data/regions/AI.js +1 -1
  743. package/runtime/node_modules/caniuse-lite/data/regions/AL.js +1 -1
  744. package/runtime/node_modules/caniuse-lite/data/regions/AM.js +1 -1
  745. package/runtime/node_modules/caniuse-lite/data/regions/AO.js +1 -1
  746. package/runtime/node_modules/caniuse-lite/data/regions/AR.js +1 -1
  747. package/runtime/node_modules/caniuse-lite/data/regions/AS.js +1 -1
  748. package/runtime/node_modules/caniuse-lite/data/regions/AT.js +1 -1
  749. package/runtime/node_modules/caniuse-lite/data/regions/AU.js +1 -1
  750. package/runtime/node_modules/caniuse-lite/data/regions/AW.js +1 -1
  751. package/runtime/node_modules/caniuse-lite/data/regions/AX.js +1 -1
  752. package/runtime/node_modules/caniuse-lite/data/regions/AZ.js +1 -1
  753. package/runtime/node_modules/caniuse-lite/data/regions/BA.js +1 -1
  754. package/runtime/node_modules/caniuse-lite/data/regions/BB.js +1 -1
  755. package/runtime/node_modules/caniuse-lite/data/regions/BD.js +1 -1
  756. package/runtime/node_modules/caniuse-lite/data/regions/BE.js +1 -1
  757. package/runtime/node_modules/caniuse-lite/data/regions/BF.js +1 -1
  758. package/runtime/node_modules/caniuse-lite/data/regions/BG.js +1 -1
  759. package/runtime/node_modules/caniuse-lite/data/regions/BH.js +1 -1
  760. package/runtime/node_modules/caniuse-lite/data/regions/BI.js +1 -1
  761. package/runtime/node_modules/caniuse-lite/data/regions/BJ.js +1 -1
  762. package/runtime/node_modules/caniuse-lite/data/regions/BM.js +1 -1
  763. package/runtime/node_modules/caniuse-lite/data/regions/BN.js +1 -1
  764. package/runtime/node_modules/caniuse-lite/data/regions/BO.js +1 -1
  765. package/runtime/node_modules/caniuse-lite/data/regions/BR.js +1 -1
  766. package/runtime/node_modules/caniuse-lite/data/regions/BS.js +1 -1
  767. package/runtime/node_modules/caniuse-lite/data/regions/BT.js +1 -1
  768. package/runtime/node_modules/caniuse-lite/data/regions/BW.js +1 -1
  769. package/runtime/node_modules/caniuse-lite/data/regions/BY.js +1 -1
  770. package/runtime/node_modules/caniuse-lite/data/regions/BZ.js +1 -1
  771. package/runtime/node_modules/caniuse-lite/data/regions/CA.js +1 -1
  772. package/runtime/node_modules/caniuse-lite/data/regions/CD.js +1 -1
  773. package/runtime/node_modules/caniuse-lite/data/regions/CF.js +1 -1
  774. package/runtime/node_modules/caniuse-lite/data/regions/CG.js +1 -1
  775. package/runtime/node_modules/caniuse-lite/data/regions/CH.js +1 -1
  776. package/runtime/node_modules/caniuse-lite/data/regions/CI.js +1 -1
  777. package/runtime/node_modules/caniuse-lite/data/regions/CK.js +1 -1
  778. package/runtime/node_modules/caniuse-lite/data/regions/CL.js +1 -1
  779. package/runtime/node_modules/caniuse-lite/data/regions/CM.js +1 -1
  780. package/runtime/node_modules/caniuse-lite/data/regions/CN.js +1 -1
  781. package/runtime/node_modules/caniuse-lite/data/regions/CO.js +1 -1
  782. package/runtime/node_modules/caniuse-lite/data/regions/CR.js +1 -1
  783. package/runtime/node_modules/caniuse-lite/data/regions/CU.js +1 -1
  784. package/runtime/node_modules/caniuse-lite/data/regions/CV.js +1 -1
  785. package/runtime/node_modules/caniuse-lite/data/regions/CX.js +1 -1
  786. package/runtime/node_modules/caniuse-lite/data/regions/CY.js +1 -1
  787. package/runtime/node_modules/caniuse-lite/data/regions/CZ.js +1 -1
  788. package/runtime/node_modules/caniuse-lite/data/regions/DE.js +1 -1
  789. package/runtime/node_modules/caniuse-lite/data/regions/DJ.js +1 -1
  790. package/runtime/node_modules/caniuse-lite/data/regions/DK.js +1 -1
  791. package/runtime/node_modules/caniuse-lite/data/regions/DM.js +1 -1
  792. package/runtime/node_modules/caniuse-lite/data/regions/DO.js +1 -1
  793. package/runtime/node_modules/caniuse-lite/data/regions/DZ.js +1 -1
  794. package/runtime/node_modules/caniuse-lite/data/regions/EC.js +1 -1
  795. package/runtime/node_modules/caniuse-lite/data/regions/EE.js +1 -1
  796. package/runtime/node_modules/caniuse-lite/data/regions/EG.js +1 -1
  797. package/runtime/node_modules/caniuse-lite/data/regions/ER.js +1 -1
  798. package/runtime/node_modules/caniuse-lite/data/regions/ES.js +1 -1
  799. package/runtime/node_modules/caniuse-lite/data/regions/ET.js +1 -1
  800. package/runtime/node_modules/caniuse-lite/data/regions/FI.js +1 -1
  801. package/runtime/node_modules/caniuse-lite/data/regions/FJ.js +1 -1
  802. package/runtime/node_modules/caniuse-lite/data/regions/FK.js +1 -1
  803. package/runtime/node_modules/caniuse-lite/data/regions/FM.js +1 -1
  804. package/runtime/node_modules/caniuse-lite/data/regions/FO.js +1 -1
  805. package/runtime/node_modules/caniuse-lite/data/regions/FR.js +1 -1
  806. package/runtime/node_modules/caniuse-lite/data/regions/GA.js +1 -1
  807. package/runtime/node_modules/caniuse-lite/data/regions/GB.js +1 -1
  808. package/runtime/node_modules/caniuse-lite/data/regions/GD.js +1 -1
  809. package/runtime/node_modules/caniuse-lite/data/regions/GE.js +1 -1
  810. package/runtime/node_modules/caniuse-lite/data/regions/GF.js +1 -1
  811. package/runtime/node_modules/caniuse-lite/data/regions/GG.js +1 -1
  812. package/runtime/node_modules/caniuse-lite/data/regions/GH.js +1 -1
  813. package/runtime/node_modules/caniuse-lite/data/regions/GI.js +1 -1
  814. package/runtime/node_modules/caniuse-lite/data/regions/GL.js +1 -1
  815. package/runtime/node_modules/caniuse-lite/data/regions/GM.js +1 -1
  816. package/runtime/node_modules/caniuse-lite/data/regions/GN.js +1 -1
  817. package/runtime/node_modules/caniuse-lite/data/regions/GP.js +1 -1
  818. package/runtime/node_modules/caniuse-lite/data/regions/GQ.js +1 -1
  819. package/runtime/node_modules/caniuse-lite/data/regions/GR.js +1 -1
  820. package/runtime/node_modules/caniuse-lite/data/regions/GT.js +1 -1
  821. package/runtime/node_modules/caniuse-lite/data/regions/GU.js +1 -1
  822. package/runtime/node_modules/caniuse-lite/data/regions/GW.js +1 -1
  823. package/runtime/node_modules/caniuse-lite/data/regions/GY.js +1 -1
  824. package/runtime/node_modules/caniuse-lite/data/regions/HK.js +1 -1
  825. package/runtime/node_modules/caniuse-lite/data/regions/HN.js +1 -1
  826. package/runtime/node_modules/caniuse-lite/data/regions/HR.js +1 -1
  827. package/runtime/node_modules/caniuse-lite/data/regions/HT.js +1 -1
  828. package/runtime/node_modules/caniuse-lite/data/regions/HU.js +1 -1
  829. package/runtime/node_modules/caniuse-lite/data/regions/ID.js +1 -1
  830. package/runtime/node_modules/caniuse-lite/data/regions/IE.js +1 -1
  831. package/runtime/node_modules/caniuse-lite/data/regions/IL.js +1 -1
  832. package/runtime/node_modules/caniuse-lite/data/regions/IM.js +1 -1
  833. package/runtime/node_modules/caniuse-lite/data/regions/IN.js +1 -1
  834. package/runtime/node_modules/caniuse-lite/data/regions/IQ.js +1 -1
  835. package/runtime/node_modules/caniuse-lite/data/regions/IR.js +1 -1
  836. package/runtime/node_modules/caniuse-lite/data/regions/IS.js +1 -1
  837. package/runtime/node_modules/caniuse-lite/data/regions/IT.js +1 -1
  838. package/runtime/node_modules/caniuse-lite/data/regions/JE.js +1 -1
  839. package/runtime/node_modules/caniuse-lite/data/regions/JM.js +1 -1
  840. package/runtime/node_modules/caniuse-lite/data/regions/JO.js +1 -1
  841. package/runtime/node_modules/caniuse-lite/data/regions/JP.js +1 -1
  842. package/runtime/node_modules/caniuse-lite/data/regions/KE.js +1 -1
  843. package/runtime/node_modules/caniuse-lite/data/regions/KG.js +1 -1
  844. package/runtime/node_modules/caniuse-lite/data/regions/KH.js +1 -1
  845. package/runtime/node_modules/caniuse-lite/data/regions/KI.js +1 -1
  846. package/runtime/node_modules/caniuse-lite/data/regions/KM.js +1 -1
  847. package/runtime/node_modules/caniuse-lite/data/regions/KN.js +1 -1
  848. package/runtime/node_modules/caniuse-lite/data/regions/KP.js +1 -1
  849. package/runtime/node_modules/caniuse-lite/data/regions/KR.js +1 -1
  850. package/runtime/node_modules/caniuse-lite/data/regions/KW.js +1 -1
  851. package/runtime/node_modules/caniuse-lite/data/regions/KY.js +1 -1
  852. package/runtime/node_modules/caniuse-lite/data/regions/KZ.js +1 -1
  853. package/runtime/node_modules/caniuse-lite/data/regions/LA.js +1 -1
  854. package/runtime/node_modules/caniuse-lite/data/regions/LB.js +1 -1
  855. package/runtime/node_modules/caniuse-lite/data/regions/LC.js +1 -1
  856. package/runtime/node_modules/caniuse-lite/data/regions/LI.js +1 -1
  857. package/runtime/node_modules/caniuse-lite/data/regions/LK.js +1 -1
  858. package/runtime/node_modules/caniuse-lite/data/regions/LR.js +1 -1
  859. package/runtime/node_modules/caniuse-lite/data/regions/LS.js +1 -1
  860. package/runtime/node_modules/caniuse-lite/data/regions/LT.js +1 -1
  861. package/runtime/node_modules/caniuse-lite/data/regions/LU.js +1 -1
  862. package/runtime/node_modules/caniuse-lite/data/regions/LV.js +1 -1
  863. package/runtime/node_modules/caniuse-lite/data/regions/LY.js +1 -1
  864. package/runtime/node_modules/caniuse-lite/data/regions/MA.js +1 -1
  865. package/runtime/node_modules/caniuse-lite/data/regions/MC.js +1 -1
  866. package/runtime/node_modules/caniuse-lite/data/regions/MD.js +1 -1
  867. package/runtime/node_modules/caniuse-lite/data/regions/ME.js +1 -1
  868. package/runtime/node_modules/caniuse-lite/data/regions/MG.js +1 -1
  869. package/runtime/node_modules/caniuse-lite/data/regions/MH.js +1 -1
  870. package/runtime/node_modules/caniuse-lite/data/regions/MK.js +1 -1
  871. package/runtime/node_modules/caniuse-lite/data/regions/ML.js +1 -1
  872. package/runtime/node_modules/caniuse-lite/data/regions/MM.js +1 -1
  873. package/runtime/node_modules/caniuse-lite/data/regions/MN.js +1 -1
  874. package/runtime/node_modules/caniuse-lite/data/regions/MO.js +1 -1
  875. package/runtime/node_modules/caniuse-lite/data/regions/MP.js +1 -1
  876. package/runtime/node_modules/caniuse-lite/data/regions/MQ.js +1 -1
  877. package/runtime/node_modules/caniuse-lite/data/regions/MR.js +1 -1
  878. package/runtime/node_modules/caniuse-lite/data/regions/MS.js +1 -1
  879. package/runtime/node_modules/caniuse-lite/data/regions/MT.js +1 -1
  880. package/runtime/node_modules/caniuse-lite/data/regions/MU.js +1 -1
  881. package/runtime/node_modules/caniuse-lite/data/regions/MV.js +1 -1
  882. package/runtime/node_modules/caniuse-lite/data/regions/MW.js +1 -1
  883. package/runtime/node_modules/caniuse-lite/data/regions/MX.js +1 -1
  884. package/runtime/node_modules/caniuse-lite/data/regions/MY.js +1 -1
  885. package/runtime/node_modules/caniuse-lite/data/regions/MZ.js +1 -1
  886. package/runtime/node_modules/caniuse-lite/data/regions/NA.js +1 -1
  887. package/runtime/node_modules/caniuse-lite/data/regions/NC.js +1 -1
  888. package/runtime/node_modules/caniuse-lite/data/regions/NE.js +1 -1
  889. package/runtime/node_modules/caniuse-lite/data/regions/NF.js +1 -1
  890. package/runtime/node_modules/caniuse-lite/data/regions/NG.js +1 -1
  891. package/runtime/node_modules/caniuse-lite/data/regions/NI.js +1 -1
  892. package/runtime/node_modules/caniuse-lite/data/regions/NL.js +1 -1
  893. package/runtime/node_modules/caniuse-lite/data/regions/NO.js +1 -1
  894. package/runtime/node_modules/caniuse-lite/data/regions/NP.js +1 -1
  895. package/runtime/node_modules/caniuse-lite/data/regions/NR.js +1 -1
  896. package/runtime/node_modules/caniuse-lite/data/regions/NU.js +1 -1
  897. package/runtime/node_modules/caniuse-lite/data/regions/NZ.js +1 -1
  898. package/runtime/node_modules/caniuse-lite/data/regions/OM.js +1 -1
  899. package/runtime/node_modules/caniuse-lite/data/regions/PA.js +1 -1
  900. package/runtime/node_modules/caniuse-lite/data/regions/PE.js +1 -1
  901. package/runtime/node_modules/caniuse-lite/data/regions/PF.js +1 -1
  902. package/runtime/node_modules/caniuse-lite/data/regions/PG.js +1 -1
  903. package/runtime/node_modules/caniuse-lite/data/regions/PH.js +1 -1
  904. package/runtime/node_modules/caniuse-lite/data/regions/PK.js +1 -1
  905. package/runtime/node_modules/caniuse-lite/data/regions/PL.js +1 -1
  906. package/runtime/node_modules/caniuse-lite/data/regions/PM.js +1 -1
  907. package/runtime/node_modules/caniuse-lite/data/regions/PN.js +1 -1
  908. package/runtime/node_modules/caniuse-lite/data/regions/PR.js +1 -1
  909. package/runtime/node_modules/caniuse-lite/data/regions/PS.js +1 -1
  910. package/runtime/node_modules/caniuse-lite/data/regions/PT.js +1 -1
  911. package/runtime/node_modules/caniuse-lite/data/regions/PW.js +1 -1
  912. package/runtime/node_modules/caniuse-lite/data/regions/PY.js +1 -1
  913. package/runtime/node_modules/caniuse-lite/data/regions/QA.js +1 -1
  914. package/runtime/node_modules/caniuse-lite/data/regions/RE.js +1 -1
  915. package/runtime/node_modules/caniuse-lite/data/regions/RO.js +1 -1
  916. package/runtime/node_modules/caniuse-lite/data/regions/RS.js +1 -1
  917. package/runtime/node_modules/caniuse-lite/data/regions/RU.js +1 -1
  918. package/runtime/node_modules/caniuse-lite/data/regions/RW.js +1 -1
  919. package/runtime/node_modules/caniuse-lite/data/regions/SA.js +1 -1
  920. package/runtime/node_modules/caniuse-lite/data/regions/SB.js +1 -1
  921. package/runtime/node_modules/caniuse-lite/data/regions/SC.js +1 -1
  922. package/runtime/node_modules/caniuse-lite/data/regions/SD.js +1 -1
  923. package/runtime/node_modules/caniuse-lite/data/regions/SE.js +1 -1
  924. package/runtime/node_modules/caniuse-lite/data/regions/SG.js +1 -1
  925. package/runtime/node_modules/caniuse-lite/data/regions/SH.js +1 -1
  926. package/runtime/node_modules/caniuse-lite/data/regions/SI.js +1 -1
  927. package/runtime/node_modules/caniuse-lite/data/regions/SK.js +1 -1
  928. package/runtime/node_modules/caniuse-lite/data/regions/SL.js +1 -1
  929. package/runtime/node_modules/caniuse-lite/data/regions/SM.js +1 -1
  930. package/runtime/node_modules/caniuse-lite/data/regions/SN.js +1 -1
  931. package/runtime/node_modules/caniuse-lite/data/regions/SO.js +1 -1
  932. package/runtime/node_modules/caniuse-lite/data/regions/SR.js +1 -1
  933. package/runtime/node_modules/caniuse-lite/data/regions/ST.js +1 -1
  934. package/runtime/node_modules/caniuse-lite/data/regions/SV.js +1 -1
  935. package/runtime/node_modules/caniuse-lite/data/regions/SY.js +1 -1
  936. package/runtime/node_modules/caniuse-lite/data/regions/SZ.js +1 -1
  937. package/runtime/node_modules/caniuse-lite/data/regions/TC.js +1 -1
  938. package/runtime/node_modules/caniuse-lite/data/regions/TD.js +1 -1
  939. package/runtime/node_modules/caniuse-lite/data/regions/TG.js +1 -1
  940. package/runtime/node_modules/caniuse-lite/data/regions/TH.js +1 -1
  941. package/runtime/node_modules/caniuse-lite/data/regions/TJ.js +1 -1
  942. package/runtime/node_modules/caniuse-lite/data/regions/TL.js +1 -1
  943. package/runtime/node_modules/caniuse-lite/data/regions/TM.js +1 -1
  944. package/runtime/node_modules/caniuse-lite/data/regions/TN.js +1 -1
  945. package/runtime/node_modules/caniuse-lite/data/regions/TO.js +1 -1
  946. package/runtime/node_modules/caniuse-lite/data/regions/TR.js +1 -1
  947. package/runtime/node_modules/caniuse-lite/data/regions/TT.js +1 -1
  948. package/runtime/node_modules/caniuse-lite/data/regions/TV.js +1 -1
  949. package/runtime/node_modules/caniuse-lite/data/regions/TW.js +1 -1
  950. package/runtime/node_modules/caniuse-lite/data/regions/TZ.js +1 -1
  951. package/runtime/node_modules/caniuse-lite/data/regions/UA.js +1 -1
  952. package/runtime/node_modules/caniuse-lite/data/regions/UG.js +1 -1
  953. package/runtime/node_modules/caniuse-lite/data/regions/US.js +1 -1
  954. package/runtime/node_modules/caniuse-lite/data/regions/UY.js +1 -1
  955. package/runtime/node_modules/caniuse-lite/data/regions/UZ.js +1 -1
  956. package/runtime/node_modules/caniuse-lite/data/regions/VA.js +1 -1
  957. package/runtime/node_modules/caniuse-lite/data/regions/VC.js +1 -1
  958. package/runtime/node_modules/caniuse-lite/data/regions/VE.js +1 -1
  959. package/runtime/node_modules/caniuse-lite/data/regions/VG.js +1 -1
  960. package/runtime/node_modules/caniuse-lite/data/regions/VI.js +1 -1
  961. package/runtime/node_modules/caniuse-lite/data/regions/VN.js +1 -1
  962. package/runtime/node_modules/caniuse-lite/data/regions/VU.js +1 -1
  963. package/runtime/node_modules/caniuse-lite/data/regions/WF.js +1 -1
  964. package/runtime/node_modules/caniuse-lite/data/regions/WS.js +1 -1
  965. package/runtime/node_modules/caniuse-lite/data/regions/YE.js +1 -1
  966. package/runtime/node_modules/caniuse-lite/data/regions/YT.js +1 -1
  967. package/runtime/node_modules/caniuse-lite/data/regions/ZA.js +1 -1
  968. package/runtime/node_modules/caniuse-lite/data/regions/ZM.js +1 -1
  969. package/runtime/node_modules/caniuse-lite/data/regions/ZW.js +1 -1
  970. package/runtime/node_modules/caniuse-lite/data/regions/alt-af.js +1 -1
  971. package/runtime/node_modules/caniuse-lite/data/regions/alt-an.js +1 -1
  972. package/runtime/node_modules/caniuse-lite/data/regions/alt-as.js +1 -1
  973. package/runtime/node_modules/caniuse-lite/data/regions/alt-eu.js +1 -1
  974. package/runtime/node_modules/caniuse-lite/data/regions/alt-na.js +1 -1
  975. package/runtime/node_modules/caniuse-lite/data/regions/alt-oc.js +1 -1
  976. package/runtime/node_modules/caniuse-lite/data/regions/alt-sa.js +1 -1
  977. package/runtime/node_modules/caniuse-lite/data/regions/alt-ww.js +1 -1
  978. package/runtime/node_modules/caniuse-lite/data/versionGroups.js +1 -1
  979. package/runtime/node_modules/caniuse-lite/package.json +1 -1
  980. package/runtime/node_modules/mediabunny/README.md +1 -5
  981. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.cjs +312 -260
  982. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.cjs +12 -12
  983. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.mjs +12 -12
  984. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.mjs +312 -260
  985. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.node.cjs +312 -260
  986. package/runtime/node_modules/mediabunny/dist/modules/src/aes.js +53 -40
  987. package/runtime/node_modules/mediabunny/dist/modules/src/conversion.js +38 -10
  988. package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-boxes.js +3 -2
  989. package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js +78 -78
  990. package/runtime/node_modules/mediabunny/dist/modules/src/matroska/matroska-demuxer.js +109 -110
  991. package/runtime/node_modules/mediabunny/dist/modules/src/media-source.js +23 -11
  992. package/runtime/node_modules/mediabunny/dist/modules/src/muxer.js +41 -22
  993. package/runtime/node_modules/mediabunny/dist/modules/src/tsconfig.tsbuildinfo +1 -1
  994. package/runtime/node_modules/mediabunny/dist/modules/src/version.js +1 -1
  995. package/runtime/node_modules/mediabunny/package.json +14 -6
  996. package/runtime/node_modules/mediabunny/src/aes.ts +52 -39
  997. package/runtime/node_modules/mediabunny/src/conversion.ts +49 -10
  998. package/runtime/node_modules/mediabunny/src/isobmff/isobmff-boxes.ts +3 -1
  999. package/runtime/node_modules/mediabunny/src/isobmff/isobmff-demuxer.ts +88 -96
  1000. package/runtime/node_modules/mediabunny/src/matroska/matroska-demuxer.ts +137 -146
  1001. package/runtime/node_modules/mediabunny/src/media-source.ts +24 -9
  1002. package/runtime/node_modules/mediabunny/src/muxer.ts +52 -33
  1003. package/runtime/node_modules/mediabunny/src/version.ts +1 -1
  1004. package/runtime/node_modules/ws/README.md +2 -3
  1005. package/runtime/node_modules/ws/lib/receiver.js +8 -0
  1006. package/runtime/node_modules/ws/lib/websocket.js +20 -6
  1007. package/runtime/node_modules/ws/package.json +1 -1
  1008. package/runtime/node_modules/zstd-codec/index.js +4 -0
  1009. package/runtime/node_modules/zstd-codec/lib/constants.js +2 -0
  1010. package/runtime/node_modules/zstd-codec/lib/helpers.js +60 -0
  1011. package/runtime/node_modules/zstd-codec/lib/module.js +27 -0
  1012. package/runtime/node_modules/zstd-codec/lib/zstd-codec-binding-wasm.js +21 -0
  1013. package/runtime/node_modules/zstd-codec/lib/zstd-codec-binding.js +63 -0
  1014. package/runtime/node_modules/zstd-codec/lib/zstd-codec.js +363 -0
  1015. package/runtime/node_modules/zstd-codec/lib/zstd-stream.js +116 -0
  1016. package/runtime/node_modules/zstd-codec/package.json +29 -0
  1017. package/runtime/package-lock.json +52 -45
  1018. package/runtime/package.json +1 -0
  1019. package/runtime/server.js +1 -1
  1020. package/runtime/webapp/dist/assets/AiHubPane-DBuhzcId.js +1 -0
  1021. package/runtime/webapp/dist/assets/App-CrZstnCH.css +1 -0
  1022. package/runtime/webapp/dist/assets/App-D3-qxUjs.js +187 -0
  1023. package/runtime/webapp/dist/assets/BrowserLivePanel-BywwOAML.js +76 -0
  1024. package/runtime/webapp/dist/assets/CollaborationDashboard-DQeiZyu9.js +1 -0
  1025. package/runtime/webapp/dist/assets/CollaborationPage-CGymkv8f.js +16 -0
  1026. package/runtime/webapp/dist/assets/{FilePreview-BjbfWw2s.js → FilePreview-CkY_jNql.js} +5 -5
  1027. package/runtime/webapp/dist/assets/FileTree-W85iiqhO.js +11 -0
  1028. package/runtime/webapp/dist/assets/FlowStudioPane-Ccp0FhYn.js +5 -0
  1029. package/runtime/webapp/dist/assets/MessagingBridge-D_cArR8-.js +6 -0
  1030. package/runtime/webapp/dist/assets/MessagingPage-BIgDwGgU.js +7 -0
  1031. package/runtime/webapp/dist/assets/MessagingPage-CpRafjqY.css +1 -0
  1032. package/runtime/webapp/dist/assets/RemoteDesktopPage-Di31a6s4.js +1 -0
  1033. package/runtime/webapp/dist/assets/{smartphone-D7oS3YTz.js → RunningSessionsIcon-BbgfV3Y9.js} +8 -18
  1034. package/runtime/webapp/dist/assets/SessionDashboard-D3n4eFut.css +1 -0
  1035. package/runtime/webapp/dist/assets/SessionDashboard-a7HETCwZ.js +16 -0
  1036. package/runtime/webapp/dist/assets/{SessionDashboardBridge-DYsMZhuH.js → SessionDashboardBridge-DEUcW6SI.js} +1 -1
  1037. package/runtime/webapp/dist/assets/{TerminalPane-CPOiBcye.js → TerminalPane-BLqkE0Sr.js} +2 -2
  1038. package/runtime/webapp/dist/assets/{abnfDiagram-VCTEODGH-DCFFqJUU.js → abnfDiagram-VCTEODGH-DeYUTKWn.js} +1 -1
  1039. package/runtime/webapp/dist/assets/arc-Fb_TLw7m.js +1 -0
  1040. package/runtime/webapp/dist/assets/{architectureDiagram-5GKGNRK7-DoK3A_n1.js → architectureDiagram-5GKGNRK7-CuFeRT7v.js} +1 -1
  1041. package/runtime/webapp/dist/assets/arrow-left-ChO37N0V.js +6 -0
  1042. package/runtime/webapp/dist/assets/{arrow-right-B0uCZ1Pd.js → arrow-right-CBoNjLZc.js} +1 -1
  1043. package/runtime/webapp/dist/assets/{artifact-links-nzx7joYs.js → artifact-links-DPEFlv87.js} +1 -1
  1044. package/runtime/webapp/dist/assets/{blockDiagram-I7D4REHJ-DgXszyX7.js → blockDiagram-I7D4REHJ-CSQFiZW1.js} +1 -1
  1045. package/runtime/webapp/dist/assets/{c4Diagram-7LVT6UL2-q7KO4v1Q.js → c4Diagram-7LVT6UL2-Dp0yNsZN.js} +1 -1
  1046. package/runtime/webapp/dist/assets/channel-CcOPsanj.js +1 -0
  1047. package/runtime/webapp/dist/assets/chevron-down-DqV6YJGE.js +6 -0
  1048. package/runtime/webapp/dist/assets/{chunk-2Q5K7J3B-CH8lOKmL.js → chunk-2Q5K7J3B-HGRodfIv.js} +1 -1
  1049. package/runtime/webapp/dist/assets/{chunk-5VM5RSS4-DwP7xEWd.js → chunk-5VM5RSS4-CBrQNVFD.js} +1 -1
  1050. package/runtime/webapp/dist/assets/{chunk-F27PBJKO-BV3TTaxI.js → chunk-F27PBJKO-DB6uGYpD.js} +1 -1
  1051. package/runtime/webapp/dist/assets/{chunk-IMKFNOWR-BbaiG4yG.js → chunk-IMKFNOWR-Dedjjkdt.js} +1 -1
  1052. package/runtime/webapp/dist/assets/{chunk-JWPE2WC7-Dv9x27hI.js → chunk-JWPE2WC7-CFqPSTPh.js} +1 -1
  1053. package/runtime/webapp/dist/assets/{chunk-POPQ4Y6H-Uk-GiSLP.js → chunk-POPQ4Y6H-3acvfPpy.js} +1 -1
  1054. package/runtime/webapp/dist/assets/{chunk-SVP7TREG-lFcKEwyL.js → chunk-SVP7TREG-Bn9tMxLG.js} +1 -1
  1055. package/runtime/webapp/dist/assets/{chunk-TICWLB2K-DFZALWPC.js → chunk-TICWLB2K-BjPHa9Ep.js} +1 -1
  1056. package/runtime/webapp/dist/assets/{chunk-XXDRQBXY-8jLPZkMb.js → chunk-XXDRQBXY-pSIpAtkj.js} +1 -1
  1057. package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-De9Vn3qI.js +1 -0
  1058. package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-De9Vn3qI.js +1 -0
  1059. package/runtime/webapp/dist/assets/clipboard-BvwmdR4z.js +1 -0
  1060. package/runtime/webapp/dist/assets/{codeSyntax-Dgv0FfoZ.js → codeSyntax-Bs__ElW1.js} +3 -3
  1061. package/runtime/webapp/dist/assets/collaboration-DkVTQ-wS.css +1 -0
  1062. package/runtime/webapp/dist/assets/{collaboration-f29NaKWy.js → collaboration-xcnZxf7i.js} +2 -2
  1063. package/runtime/webapp/dist/assets/copilot-7BoBRmFo.png +0 -0
  1064. package/runtime/webapp/dist/assets/{cose-bilkent-JH36ORCC-86P-lxD4.js → cose-bilkent-JH36ORCC-Cc1ea8TO.js} +1 -1
  1065. package/runtime/webapp/dist/assets/{cynefin-OW5HDTMX-mtRVdchl.js → cynefin-OW5HDTMX-B2IeHhVa.js} +1 -1
  1066. package/runtime/webapp/dist/assets/{cynefinDiagram-5FMLGOSQ-DhqAIoq6.js → cynefinDiagram-5FMLGOSQ-BeZhQnWx.js} +1 -1
  1067. package/runtime/webapp/dist/assets/{dagre-GXQ25YYZ-DD9olCTy.js → dagre-GXQ25YYZ-DF08UpVJ.js} +1 -1
  1068. package/runtime/webapp/dist/assets/{diagram-S7CK7UJ4-CLGKipLp.js → diagram-S7CK7UJ4-Cx_tPRJp.js} +1 -1
  1069. package/runtime/webapp/dist/assets/{diagram-UQ7AKVKN-Dm7uGpUO.js → diagram-UQ7AKVKN-Cb6fFvJt.js} +1 -1
  1070. package/runtime/webapp/dist/assets/{diagram-VSXAHHWV-OZYfwAth.js → diagram-VSXAHHWV-CvuweBru.js} +1 -1
  1071. package/runtime/webapp/dist/assets/{diagram-VX7I27RA-BpQqNFxQ.js → diagram-VX7I27RA-BYouVdoe.js} +1 -1
  1072. package/runtime/webapp/dist/assets/{diagram-Z3DM3KII-BrWsMYCU.js → diagram-Z3DM3KII-DRBjsxYw.js} +1 -1
  1073. package/runtime/webapp/dist/assets/{ebnfDiagram-PWID7BFC-BRH-K-J7.js → ebnfDiagram-PWID7BFC-CxHOPzwg.js} +1 -1
  1074. package/runtime/webapp/dist/assets/{erDiagram-RLTQ6QDP-BDNSVr6H.js → erDiagram-RLTQ6QDP-tUK9K8ZD.js} +1 -1
  1075. package/runtime/webapp/dist/assets/external-link-DpecT7Vm.js +6 -0
  1076. package/runtime/webapp/dist/assets/{file-types-XHMBkbNr.js → file-types-CfFmgvNi.js} +4 -9
  1077. package/runtime/webapp/dist/assets/{flowDiagram-HODETNUW-DseLK02Y.js → flowDiagram-HODETNUW-BFd8shzR.js} +1 -1
  1078. package/runtime/webapp/dist/assets/{ganttDiagram-EL5Y4UJY-v_uNZx1g.js → ganttDiagram-EL5Y4UJY-Dt3qJ3nR.js} +1 -1
  1079. package/runtime/webapp/dist/assets/{gitGraphDiagram-WWUBYQGX-EdvVYEMk.js → gitGraphDiagram-WWUBYQGX-L22kw422.js} +1 -1
  1080. package/runtime/webapp/dist/assets/image-plus-Bzr6FXFm.js +6 -0
  1081. package/runtime/webapp/dist/assets/index-C165MF0E.js +489 -0
  1082. package/runtime/webapp/dist/assets/index-IYQjHlQx.css +1 -0
  1083. package/runtime/webapp/dist/assets/{infoDiagram-27XIBGKW-Ck26xp1i.js → infoDiagram-27XIBGKW-DBrWW4hh.js} +1 -1
  1084. package/runtime/webapp/dist/assets/{ishikawaDiagram-5VMMS53U-DGnOVObq.js → ishikawaDiagram-5VMMS53U-BiQERurn.js} +1 -1
  1085. package/runtime/webapp/dist/assets/{journeyDiagram-3NMN7TZE-S7oKAQs8.js → journeyDiagram-3NMN7TZE-CbuOAsvy.js} +1 -1
  1086. package/runtime/webapp/dist/assets/{kanban-definition-UXKFOSKX-DcrYA4VY.js → kanban-definition-UXKFOSKX-BS0cpYtD.js} +1 -1
  1087. package/runtime/webapp/dist/assets/{layout-CYHINS_I.js → layout-C6lzLyIZ.js} +1 -1
  1088. package/runtime/webapp/dist/assets/{linear-B-lEfto_.js → linear-DOnDPVCl.js} +1 -1
  1089. package/runtime/webapp/dist/assets/{loader-circle-DMWQZenY.js → loader-circle-DzxGeGeP.js} +1 -1
  1090. package/runtime/webapp/dist/assets/{mermaid.core-B3fzlEw9.js → mermaid.core-CIbk74HW.js} +6 -6
  1091. package/runtime/webapp/dist/assets/{mindmap-definition-YA3MSWOX-wJkCh55V.js → mindmap-definition-YA3MSWOX-BXA3aIva.js} +1 -1
  1092. package/runtime/webapp/dist/assets/page-oP1ftgSe.js +91 -0
  1093. package/runtime/webapp/dist/assets/{pegDiagram-XKGWAZYB-H4uk2OUO.js → pegDiagram-XKGWAZYB-oUTq5zGX.js} +1 -1
  1094. package/runtime/webapp/dist/assets/{pieDiagram-E7YTZNPT-yLnU_MCb.js → pieDiagram-E7YTZNPT-CES_HFyS.js} +1 -1
  1095. package/runtime/webapp/dist/assets/{quadrantDiagram-AXDQQJYC-DyD93O4P.js → quadrantDiagram-AXDQQJYC-BDJl9Tah.js} +1 -1
  1096. package/runtime/webapp/dist/assets/{railroadDiagram-O6MQD6OU-DZ833xbw.js → railroadDiagram-O6MQD6OU-BCu1VCKA.js} +1 -1
  1097. package/runtime/webapp/dist/assets/{requirementDiagram-BXWQKSXE-DJV4nGui.js → requirementDiagram-BXWQKSXE-CqUIqsRU.js} +1 -1
  1098. package/runtime/webapp/dist/assets/{rotate-ccw-CKqo62Ra.js → rotate-ccw-Bjr9jTxM.js} +1 -1
  1099. package/runtime/webapp/dist/assets/{rotate-cw-D-M3ZDSa.js → rotate-cw-A1YTnj9Q.js} +1 -1
  1100. package/runtime/webapp/dist/assets/{sankeyDiagram-P5KCCOFB-BeOYMFTR.js → sankeyDiagram-P5KCCOFB-DaveIjpG.js} +1 -1
  1101. package/runtime/webapp/dist/assets/search-rB9Vl5Kd.js +6 -0
  1102. package/runtime/webapp/dist/assets/{send-LvtpJMkk.js → send-BEl9srBG.js} +1 -1
  1103. package/runtime/webapp/dist/assets/{sequenceDiagram-WJ2MYXX4-BBcgqG33.js → sequenceDiagram-WJ2MYXX4-C7zRgFw8.js} +1 -1
  1104. package/runtime/webapp/dist/assets/{shield-check-SeEkz1Nd.js → shield-check-C79GaqpX.js} +1 -1
  1105. package/runtime/webapp/dist/assets/{sizeCapture-INFHLROL-B0GJZjw0.js → sizeCapture-INFHLROL-BKOrYnP1.js} +1 -1
  1106. package/runtime/webapp/dist/assets/{stateDiagram-D77RDMKH-BmSvB3vd.js → stateDiagram-D77RDMKH-Cz_WH93D.js} +1 -1
  1107. package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-Dw9aybAU.js +1 -0
  1108. package/runtime/webapp/dist/assets/{swimlanes-42K2YHIH-BAZdMUD6.js → swimlanes-42K2YHIH-CbDMTwgn.js} +1 -1
  1109. package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-CZrm7vi4.js +8 -0
  1110. package/runtime/webapp/dist/assets/{timeline-definition-24CTP7MA-BSgVFMNG.js → timeline-definition-24CTP7MA-CanMvfCK.js} +1 -1
  1111. package/runtime/webapp/dist/assets/{trash-2-CHYPyYDY.js → trash-2-RnFgAyKW.js} +5 -10
  1112. package/runtime/webapp/dist/assets/types-DguAd3Ud.js +6 -0
  1113. package/runtime/webapp/dist/assets/use-error-notice-CAYVDT8Z.css +1 -0
  1114. package/runtime/webapp/dist/assets/use-error-notice-_MLy2aPZ.js +11 -0
  1115. package/runtime/webapp/dist/assets/{vennDiagram-4TSXK5OY-C-brvbkB.js → vennDiagram-4TSXK5OY-CR-V0-y3.js} +1 -1
  1116. package/runtime/webapp/dist/assets/{wardleyDiagram-VM6X3IG4-CeqqVR1s.js → wardleyDiagram-VM6X3IG4-CjTtvx6s.js} +1 -1
  1117. package/runtime/webapp/dist/assets/{web-aLPH3xFw.js → web-DPag1EjS.js} +1 -1
  1118. package/runtime/webapp/dist/assets/{web-Dzd7NW_F.js → web-DedGjdA8.js} +1 -1
  1119. package/runtime/webapp/dist/assets/x-Bx8qOEL4.js +6 -0
  1120. package/runtime/webapp/dist/assets/{xychartDiagram-S5SC5T6Z-mPizwpXM.js → xychartDiagram-S5SC5T6Z-D2959gYR.js} +1 -1
  1121. package/runtime/webapp/dist/index.html +2 -2
  1122. package/runtime/ws-server.mjs +19 -5
  1123. package/runtime/.next/static/chunks/113-b9b8fc001b7cd590.js +0 -1
  1124. package/runtime/.next/static/chunks/app/web/layout-ecfb758d244808a4.js +0 -1
  1125. package/runtime/.next/static/chunks/app/web/page-27145471bd2171c2.js +0 -1
  1126. package/runtime/.next/static/css/afa521adcec25f87.css +0 -1
  1127. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-07pvccxf.mjs +0 -43
  1128. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-0rjxgk9e.mjs +0 -18
  1129. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-fpeb751h.mjs +0 -33
  1130. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-jf0rbr11.mjs +0 -17
  1131. package/runtime/webapp/dist/assets/AiHubPane-Cp_tNJNR.js +0 -6
  1132. package/runtime/webapp/dist/assets/App-Cs8U1u-X.js +0 -175
  1133. package/runtime/webapp/dist/assets/App-QWoPBMW0.css +0 -1
  1134. package/runtime/webapp/dist/assets/BrowserLivePanel-B1zYRS_7.js +0 -76
  1135. package/runtime/webapp/dist/assets/CollaborationDashboard-DIVa26zk.js +0 -1
  1136. package/runtime/webapp/dist/assets/CollaborationPage-Fsvkw8ZM.js +0 -16
  1137. package/runtime/webapp/dist/assets/FileTree-C6gg9p4m.js +0 -11
  1138. package/runtime/webapp/dist/assets/FlowStudioPane-CCuxZBVJ.js +0 -5
  1139. package/runtime/webapp/dist/assets/RemoteDesktopPage-DpoYuKhA.js +0 -1
  1140. package/runtime/webapp/dist/assets/SessionDashboard-CAoW5-uN.css +0 -1
  1141. package/runtime/webapp/dist/assets/SessionDashboard-DOWjUIY1.js +0 -26
  1142. package/runtime/webapp/dist/assets/arc-vjNW9DYV.js +0 -1
  1143. package/runtime/webapp/dist/assets/channel-CsnhvX8S.js +0 -1
  1144. package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-Bed40USf.js +0 -1
  1145. package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-Bed40USf.js +0 -1
  1146. package/runtime/webapp/dist/assets/clipboard-BteN9-AC.js +0 -6
  1147. package/runtime/webapp/dist/assets/collaboration-BiaML8jX.css +0 -1
  1148. package/runtime/webapp/dist/assets/crown-y1qmM0NZ.js +0 -6
  1149. package/runtime/webapp/dist/assets/index--zKd3rTs.js +0 -507
  1150. package/runtime/webapp/dist/assets/index-D0gsdpeQ.css +0 -1
  1151. package/runtime/webapp/dist/assets/page-Cc56wyOt.js +0 -91
  1152. package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-CQ9wpJCJ.js +0 -1
  1153. package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-8XTJp3Fr.js +0 -8
  1154. /package/runtime/.next/static/{mGwTFWK2dzlY3HjsjZGzh → ngVhkJylacc9Set69K3lG}/_buildManifest.js +0 -0
  1155. /package/runtime/.next/static/{mGwTFWK2dzlY3HjsjZGzh → ngVhkJylacc9Set69K3lG}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- import{g as oe}from"./chunk-XXDRQBXY-8jLPZkMb.js";import{s as ce}from"./chunk-POPQ4Y6H-Uk-GiSLP.js";import{_ as h,l as R,u as le,v as he,y as de,B as W,c as U,i as H,b4 as ge,ac as ue,ad as pe,ae as fe}from"./mermaid.core-B3fzlEw9.js";import"./index--zKd3rTs.js";const _=[];for(let t=0;t<256;++t)_.push((t+256).toString(16).slice(1));function me(t,e=0){return(_[t[e+0]]+_[t[e+1]]+_[t[e+2]]+_[t[e+3]]+"-"+_[t[e+4]]+_[t[e+5]]+"-"+_[t[e+6]]+_[t[e+7]]+"-"+_[t[e+8]]+_[t[e+9]]+"-"+_[t[e+10]]+_[t[e+11]]+_[t[e+12]]+_[t[e+13]]+_[t[e+14]]+_[t[e+15]]).toLowerCase()}const ye=new Uint8Array(16);function Ee(){return crypto.getRandomValues(ye)}function _e(t,e,o){return crypto.randomUUID?crypto.randomUUID():be(t)}function be(t,e,o){var n;t=t||{};const l=t.random??((n=t.rng)==null?void 0:n.call(t))??Ee();if(l.length<16)throw new Error("Random bytes length must be >= 16");return l[6]=l[6]&15|64,l[8]=l[8]&63|128,me(l)}var K=function(){var t=h(function(O,s,i,a){for(i=i||{},a=O.length;a--;i[O[a]]=s);return i},"o"),e=[1,4],o=[1,13],l=[1,12],n=[1,15],d=[1,16],p=[1,20],y=[1,19],E=[6,7,8],k=[1,26],L=[1,24],D=[1,25],b=[6,7,11],$=[1,6,13,15,16,19,22],f=[1,33],B=[1,34],P=[1,6,7,11,13,15,16,19,22],z={trace:h(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:h(function(s,i,a,c,u,r,M){var g=r.length-1;switch(u){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[g].id),c.addNode(r[g-1].length,r[g].id,r[g].descr,r[g].type);break;case 16:c.getLogger().trace("Icon: ",r[g]),c.decorateNode({icon:r[g]});break;case 17:case 21:c.decorateNode({class:r[g]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[g].id),c.addNode(0,r[g].id,r[g].descr,r[g].type);break;case 20:c.decorateNode({icon:r[g]});break;case 25:c.getLogger().trace("node found ..",r[g-2]),this.$={id:r[g-1],descr:r[g-1],type:c.getType(r[g-2],r[g])};break;case 26:this.$={id:r[g],descr:r[g],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[g-3]),this.$={id:r[g-3],descr:r[g-1],type:c.getType(r[g-2],r[g])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:o,7:[1,10],9:9,12:11,13:l,14:14,15:n,16:d,17:17,18:18,19:p,22:y},t(E,[2,3]),{1:[2,2]},t(E,[2,4]),t(E,[2,5]),{1:[2,6],6:o,12:21,13:l,14:14,15:n,16:d,17:17,18:18,19:p,22:y},{6:o,9:22,12:11,13:l,14:14,15:n,16:d,17:17,18:18,19:p,22:y},{6:k,7:L,10:23,11:D},t(b,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:p,22:y}),t(b,[2,18]),t(b,[2,19]),t(b,[2,20]),t(b,[2,21]),t(b,[2,23]),t(b,[2,24]),t(b,[2,26],{19:[1,30]}),{20:[1,31]},{6:k,7:L,10:32,11:D},{1:[2,7],6:o,12:21,13:l,14:14,15:n,16:d,17:17,18:18,19:p,22:y},t($,[2,14],{7:f,11:B}),t(P,[2,8]),t(P,[2,9]),t(P,[2,10]),t(b,[2,15]),t(b,[2,16]),t(b,[2,17]),{20:[1,35]},{21:[1,36]},t($,[2,13],{7:f,11:B}),t(P,[2,11]),t(P,[2,12]),{21:[1,37]},t(b,[2,25]),t(b,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:h(function(s,i){if(i.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=i,a}},"parseError"),parse:h(function(s){var i=this,a=[0],c=[],u=[null],r=[],M=this.table,g="",F=0,Q=0,ie=2,Z=1,se=r.slice.call(arguments,1),m=Object.create(this.lexer),C={yy:{}};for(var X in this.yy)Object.prototype.hasOwnProperty.call(this.yy,X)&&(C.yy[X]=this.yy[X]);m.setInput(s,C.yy),C.yy.lexer=m,C.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var Y=m.yylloc;r.push(Y);var re=m.options&&m.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ae(x){a.length=a.length-2*x,u.length=u.length-x,r.length=r.length-x}h(ae,"popStack");function ee(){var x;return x=c.pop()||m.lex()||Z,typeof x!="number"&&(x instanceof Array&&(c=x,x=c.pop()),x=i.symbols_[x]||x),x}h(ee,"lex");for(var S,I,N,q,w={},G,v,te,j;;){if(I=a[a.length-1],this.defaultActions[I]?N=this.defaultActions[I]:((S===null||typeof S>"u")&&(S=ee()),N=M[I]&&M[I][S]),typeof N>"u"||!N.length||!N[0]){var J="";j=[];for(G in M[I])this.terminals_[G]&&G>ie&&j.push("'"+this.terminals_[G]+"'");m.showPosition?J="Parse error on line "+(F+1)+`:
1
+ import{g as oe}from"./chunk-XXDRQBXY-pSIpAtkj.js";import{s as ce}from"./chunk-POPQ4Y6H-3acvfPpy.js";import{_ as h,l as R,u as le,v as he,y as de,B as W,c as U,i as H,b4 as ge,ac as ue,ad as pe,ae as fe}from"./mermaid.core-CIbk74HW.js";import"./index-C165MF0E.js";const _=[];for(let t=0;t<256;++t)_.push((t+256).toString(16).slice(1));function me(t,e=0){return(_[t[e+0]]+_[t[e+1]]+_[t[e+2]]+_[t[e+3]]+"-"+_[t[e+4]]+_[t[e+5]]+"-"+_[t[e+6]]+_[t[e+7]]+"-"+_[t[e+8]]+_[t[e+9]]+"-"+_[t[e+10]]+_[t[e+11]]+_[t[e+12]]+_[t[e+13]]+_[t[e+14]]+_[t[e+15]]).toLowerCase()}const ye=new Uint8Array(16);function Ee(){return crypto.getRandomValues(ye)}function _e(t,e,o){return crypto.randomUUID?crypto.randomUUID():be(t)}function be(t,e,o){var n;t=t||{};const l=t.random??((n=t.rng)==null?void 0:n.call(t))??Ee();if(l.length<16)throw new Error("Random bytes length must be >= 16");return l[6]=l[6]&15|64,l[8]=l[8]&63|128,me(l)}var K=function(){var t=h(function(O,s,i,a){for(i=i||{},a=O.length;a--;i[O[a]]=s);return i},"o"),e=[1,4],o=[1,13],l=[1,12],n=[1,15],d=[1,16],p=[1,20],y=[1,19],E=[6,7,8],k=[1,26],L=[1,24],D=[1,25],b=[6,7,11],$=[1,6,13,15,16,19,22],f=[1,33],B=[1,34],P=[1,6,7,11,13,15,16,19,22],z={trace:h(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:h(function(s,i,a,c,u,r,M){var g=r.length-1;switch(u){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[g].id),c.addNode(r[g-1].length,r[g].id,r[g].descr,r[g].type);break;case 16:c.getLogger().trace("Icon: ",r[g]),c.decorateNode({icon:r[g]});break;case 17:case 21:c.decorateNode({class:r[g]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[g].id),c.addNode(0,r[g].id,r[g].descr,r[g].type);break;case 20:c.decorateNode({icon:r[g]});break;case 25:c.getLogger().trace("node found ..",r[g-2]),this.$={id:r[g-1],descr:r[g-1],type:c.getType(r[g-2],r[g])};break;case 26:this.$={id:r[g],descr:r[g],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[g-3]),this.$={id:r[g-3],descr:r[g-1],type:c.getType(r[g-2],r[g])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:o,7:[1,10],9:9,12:11,13:l,14:14,15:n,16:d,17:17,18:18,19:p,22:y},t(E,[2,3]),{1:[2,2]},t(E,[2,4]),t(E,[2,5]),{1:[2,6],6:o,12:21,13:l,14:14,15:n,16:d,17:17,18:18,19:p,22:y},{6:o,9:22,12:11,13:l,14:14,15:n,16:d,17:17,18:18,19:p,22:y},{6:k,7:L,10:23,11:D},t(b,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:p,22:y}),t(b,[2,18]),t(b,[2,19]),t(b,[2,20]),t(b,[2,21]),t(b,[2,23]),t(b,[2,24]),t(b,[2,26],{19:[1,30]}),{20:[1,31]},{6:k,7:L,10:32,11:D},{1:[2,7],6:o,12:21,13:l,14:14,15:n,16:d,17:17,18:18,19:p,22:y},t($,[2,14],{7:f,11:B}),t(P,[2,8]),t(P,[2,9]),t(P,[2,10]),t(b,[2,15]),t(b,[2,16]),t(b,[2,17]),{20:[1,35]},{21:[1,36]},t($,[2,13],{7:f,11:B}),t(P,[2,11]),t(P,[2,12]),{21:[1,37]},t(b,[2,25]),t(b,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:h(function(s,i){if(i.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=i,a}},"parseError"),parse:h(function(s){var i=this,a=[0],c=[],u=[null],r=[],M=this.table,g="",F=0,Q=0,ie=2,Z=1,se=r.slice.call(arguments,1),m=Object.create(this.lexer),C={yy:{}};for(var X in this.yy)Object.prototype.hasOwnProperty.call(this.yy,X)&&(C.yy[X]=this.yy[X]);m.setInput(s,C.yy),C.yy.lexer=m,C.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var Y=m.yylloc;r.push(Y);var re=m.options&&m.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ae(x){a.length=a.length-2*x,u.length=u.length-x,r.length=r.length-x}h(ae,"popStack");function ee(){var x;return x=c.pop()||m.lex()||Z,typeof x!="number"&&(x instanceof Array&&(c=x,x=c.pop()),x=i.symbols_[x]||x),x}h(ee,"lex");for(var S,I,N,q,w={},G,v,te,j;;){if(I=a[a.length-1],this.defaultActions[I]?N=this.defaultActions[I]:((S===null||typeof S>"u")&&(S=ee()),N=M[I]&&M[I][S]),typeof N>"u"||!N.length||!N[0]){var J="";j=[];for(G in M[I])this.terminals_[G]&&G>ie&&j.push("'"+this.terminals_[G]+"'");m.showPosition?J="Parse error on line "+(F+1)+`:
2
2
  `+m.showPosition()+`
3
3
  Expecting `+j.join(", ")+", got '"+(this.terminals_[S]||S)+"'":J="Parse error on line "+(F+1)+": Unexpected "+(S==Z?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(J,{text:m.match,token:this.terminals_[S]||S,line:m.yylineno,loc:Y,expected:j})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+S);switch(N[0]){case 1:a.push(S),u.push(m.yytext),r.push(m.yylloc),a.push(N[1]),S=null,Q=m.yyleng,g=m.yytext,F=m.yylineno,Y=m.yylloc;break;case 2:if(v=this.productions_[N[1]][1],w.$=u[u.length-v],w._$={first_line:r[r.length-(v||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(v||1)].first_column,last_column:r[r.length-1].last_column},re&&(w._$.range=[r[r.length-(v||1)].range[0],r[r.length-1].range[1]]),q=this.performAction.apply(w,[g,Q,F,C.yy,N[1],u,r].concat(se)),typeof q<"u")return q;v&&(a=a.slice(0,-1*v*2),u=u.slice(0,-1*v),r=r.slice(0,-1*v)),a.push(this.productions_[N[1]][0]),u.push(w.$),r.push(w._$),te=M[a[a.length-2]][a[a.length-1]],a.push(te);break;case 3:return!0}}return!0},"parse")},ne=function(){var O={EOF:1,parseError:h(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:h(function(s,i){return this.yy=i||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:h(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var i=s.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:h(function(s){var i=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===c.length?this.yylloc.first_column:0)+c[c.length-a.length].length-a[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:h(function(){return this._more=!0,this},"more"),reject:h(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:h(function(s){this.unput(this.match.slice(s))},"less"),pastInput:h(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:h(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:h(function(){var s=this.pastInput(),i=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
@@ -0,0 +1,91 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./TerminalPane-BLqkE0Sr.js","./index-C165MF0E.js","./index-IYQjHlQx.css","./clipboard-BvwmdR4z.js","./RunningSessionsIcon-BbgfV3Y9.js","./x-Bx8qOEL4.js","./chevron-down-DqV6YJGE.js","./artifact-links-DPEFlv87.js","./trash-2-RnFgAyKW.js","./external-link-DpecT7Vm.js","./CollaborationTabBridge-Dxq4G1Uk.js","./SessionDashboardBridge-DEUcW6SI.js","./MessagingBridge-D_cArR8-.js","./RemoteDesktopTabBridge-Cp9mLtcY.js","./arrow-left-ChO37N0V.js","./TerminalPane-6GBZ9nXN.css","./FileTree-W85iiqhO.js","./file-types-CfFmgvNi.js","./search-rB9Vl5Kd.js","./loader-circle-DzxGeGeP.js","./FilePreview-CkY_jNql.js","./rotate-ccw-Bjr9jTxM.js","./FilePreview-B7Ab2X_E.css","./AiHubPane-DBuhzcId.js","./image-plus-Bzr6FXFm.js","./send-BEl9srBG.js","./FlowStudioPane-Ccp0FhYn.js","./rotate-cw-A1YTnj9Q.js"])))=>i.map(i=>d[i]);
2
+ import{c as An,r as n,j as e,e as Ge,d as Ie,R as we,o as pr,p as mr,q as Me,s as Mn,t as fr,b as De,v as He,w as hr,x as gr,y as un,z as br,D as wr,U as bt,n as at,P as Dn,E as xr,L as On,F as wt,G as yr,I as vr,J as pn,K as kr,N as Er,O as jr,Q as Sr,S as Cr,T as Tr,V as st,X as Rr,Y as ct,Z as Nr,_ as lt,$ as Lr,a0 as it,a1 as Pr,a2 as Ir,a3 as Ar,a4 as Mr,a5 as Dr,a6 as mn,a7 as Oe}from"./index-C165MF0E.js";import{S as _n,M as fn,G as dt,a as Or,R as zn,b as _r,C as zr,P as Wr}from"./RunningSessionsIcon-BbgfV3Y9.js";import{X as Ce}from"./x-Bx8qOEL4.js";import{C as Fr}from"./chevron-down-DqV6YJGE.js";import{C as ut,a as $r,r as Ur,i as hn}from"./artifact-links-DPEFlv87.js";import{T as xt,P as pt,C as Br,F as qr}from"./trash-2-RnFgAyKW.js";import{E as yt}from"./external-link-DpecT7Vm.js";import{c as Hr}from"./clipboard-BvwmdR4z.js";import{r as Vr,d as Gr,e as Yr}from"./CollaborationTabBridge-Dxq4G1Uk.js";import{b as Kr,r as Jr,c as gn}from"./SessionDashboardBridge-DEUcW6SI.js";import{M as Xr,I as Qr,r as Zr}from"./MessagingBridge-D_cArR8-.js";import{c as eo,d as to,R as no,b as ro}from"./RemoteDesktopTabBridge-Cp9mLtcY.js";import{A as oo}from"./arrow-left-ChO37N0V.js";/**
3
+ * @license lucide-react v0.468.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */const io=An("MessagesSquare",[["path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2z",key:"p1xzt8"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1",key:"1cx29u"}]]);/**
8
+ * @license lucide-react v0.468.0 - ISC
9
+ *
10
+ * This source code is licensed under the ISC license.
11
+ * See the LICENSE file in the root directory of this source tree.
12
+ */const ao=An("TextCursorInput",[["path",{d:"M5 4h1a3 3 0 0 1 3 3 3 3 0 0 1 3-3h1",key:"18xjzo"}],["path",{d:"M13 20h-1a3 3 0 0 1-3-3 3 3 0 0 1-3 3H5",key:"fj48gi"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M9 7v10",key:"1vc8ob"}]]);function _e(t,o){const a=n.lazy(t);return function(c){var u;return e.jsx(n.Suspense,{fallback:((u=o==null?void 0:o.loading)==null?void 0:u.call(o))??null,children:e.jsx(a,{...c})})}}const so={background:"color-mix(in srgb, var(--ui-tab-accent) 88%, var(--ui-text))",borderColor:"color-mix(in srgb, var(--ui-tab-accent) 88%, var(--ui-text))",color:"var(--ui-primary-text)"};function co(){const[t,o]=n.useState(!1),[a,s]=n.useState(!1),[c,u]=n.useState(null),m=n.useRef(null);return n.useEffect(()=>{u(document.querySelector(".web-root")??document.body);const d=b=>{var S;return o(!!((S=b.detail)!=null&&S.installed))},j=()=>s(!0);return window.addEventListener("agentroam:pwa-state",d),window.addEventListener("agentroam:pwa-guide",j),window.dispatchEvent(new Event("agentroam:pwa-query")),()=>{window.removeEventListener("agentroam:pwa-state",d),window.removeEventListener("agentroam:pwa-guide",j)}},[]),n.useEffect(()=>{var d,j;a&&!((d=m.current)!=null&&d.open)&&((j=m.current)==null||j.showModal())},[a]),e.jsxs(e.Fragment,{children:[e.jsx("button",{type:"button",className:"file-drawer-toggle pwa-install-button",title:t?"已添加到主屏幕":"添加到主屏幕","aria-label":t?"已添加到主屏幕":"添加到主屏幕",onClick:()=>t?s(!0):window.dispatchEvent(new Event("agentroam:pwa-install")),children:e.jsxs("span",{style:{position:"relative",display:"flex"},children:[e.jsx(_n,{size:17,"aria-hidden":"true"}),e.jsx(Ge,{size:9,strokeWidth:3,"aria-hidden":"true",style:{position:"absolute",right:-4,bottom:-2}})]})}),a&&c&&Ie.createPortal(e.jsxs("dialog",{ref:m,"data-toolbar-overlay":!0,onClose:()=>s(!1),"aria-labelledby":"pwa-install-title",style:{maxWidth:340,width:"calc(100% - 40px)",margin:"auto",padding:24,borderRadius:16,border:"1px solid var(--ui-tabbar-border)",background:"var(--ui-root-bg)",color:"var(--ui-text)",whiteSpace:"normal",font:"14px/1.8 system-ui"},children:[e.jsx("h2",{id:"pwa-install-title",style:{margin:"0 0 12px",fontSize:18},children:t?"已添加到主屏幕":"添加到主屏幕"}),t&&e.jsx("p",{children:"当前已在主屏幕应用中打开。"}),e.jsx("p",{children:"iPhone / iPad:在 Safari 点击分享按钮,选择“添加到主屏幕”,再点“添加”。"}),e.jsx("p",{children:"Android:打开浏览器菜单,选择“安装应用”或“添加到主屏幕”。"}),e.jsx("p",{style:{color:"var(--ui-muted-text)"},children:"浏览器需要你确认,网页无法自动添加。从主屏幕打开后,如提示未配对,请重新扫码。"}),e.jsx("button",{type:"button",style:{...so,width:"100%",padding:"10px 14px",borderStyle:"solid",borderWidth:1,borderRadius:8,cursor:"pointer"},onClick:()=>{var d;return(d=m.current)==null?void 0:d.close()},children:"知道了"})]}),c)]})}const bn={shared:"已共享",independent:"独立后台",failed:"连接失败",stopped:"桌面未启动","not-installed":"桌面未安装",unsupported:"暂不支持"};function lo({csrfToken:t}){const[o,a]=n.useState(null),[s,c]=n.useState(!1),u=n.useRef(!1),m=n.useRef(0),d=n.useCallback(async(l=!1,v=!1,k=!1)=>{var h;if(u.current)return;u.current=!0;const L=m.current;c(!0);try{const y=await fetch("/api/agent/codex-sharing",{method:l||v?"POST":"GET",credentials:"same-origin",cache:"no-store",headers:l||v?{"x-csrf-token":t,...v?{"content-type":"application/json"}:{}}:void 0,body:v?JSON.stringify({action:"share",restartConfirmed:k}):void 0,signal:AbortSignal.timeout(18e4)}),w=await y.json();if(!y.ok||!Object.hasOwn(bn,w==null?void 0:w.state))throw new Error(((h=w==null?void 0:w.error)==null?void 0:h.message)||"共享状态读取失败,请重试。");if(L!==m.current)return;a(w)}catch(y){if(L!==m.current)return;a({state:"failed",configured:!1,autoStart:!1,daemonReachable:!1,runtimeMode:null,message:y instanceof Error?y.message:"无法连接当前电脑。"})}finally{u.current=!1,L===m.current&&c(!1)}},[t]);n.useEffect(()=>{d();const l=()=>{document.hidden||d()},v=window.setInterval(l,15e3);return window.addEventListener("online",l),()=>{m.current++,window.clearInterval(v),window.removeEventListener("online",l)}},[d]);const j=o?bn[o.state]:"检查中",b=()=>{const l=(o==null?void 0:o.state)!=="stopped";l&&!window.confirm("切换将强制重启 Codex 桌面,中断桌面任务并可能丢失未发送内容,不再显示 Codex 退出确认框。共享后端和手机会话不会被结束。是否继续?")||d(!1,!0,l)},S=o&&o.state!=="unsupported"&&(o.state!=="shared"||!o.configured||!o.autoStart||!o.daemonReachable);return e.jsxs("div",{className:"codex-sharing",children:[e.jsx("style",{children:uo}),e.jsxs("div",{className:"codex-sharing-title",role:"status",children:[e.jsx("span",{className:"codex-sharing-indicator","aria-hidden":"true",children:e.jsx("span",{className:"codex-sharing-dot","data-state":o==null?void 0:o.state})}),e.jsxs("span",{children:["Codex · ",j]})]}),S&&e.jsxs(e.Fragment,{children:[e.jsx("p",{children:o.state==="shared"?"共享连接可用,启动配置需要修复。":o.message}),e.jsxs("div",{className:"codex-sharing-actions",children:[e.jsxs("button",{type:"button",disabled:s,onClick:()=>{d()},"aria-label":"刷新 Codex 共享状态",children:[e.jsx(we,{size:12}),"刷新"]}),e.jsx("button",{type:"button",disabled:s,onClick:()=>{d(!0)},children:s?"正在修复…":"检查并修复"}),!["shared","not-installed"].includes(o.state)&&e.jsx("button",{type:"button",disabled:s,onClick:b,children:s?"正在处理…":o.state==="stopped"?"以共享模式启动 Codex":"切换到共享后端"})]})]})]})}const uo=`
13
+ .codex-sharing{padding:10px 14px;margin-bottom:6px;border-bottom:1px solid var(--ui-tabbar-border,#303442);color:var(--ui-text,#e8e8ee);font-size:13px;line-height:20px}
14
+ .codex-sharing-title{display:flex;align-items:center;gap:10px}
15
+ .codex-sharing-indicator{display:grid;place-items:center;flex:0 0 17px;height:17px}
16
+ .codex-sharing-dot{width:6px;height:6px;border-radius:50%;background:var(--ui-muted-text,#999dab)}
17
+ .codex-sharing-dot[data-state=shared]{background:var(--ui-success,#22c55e)}
18
+ .codex-sharing-dot[data-state=failed]{background:var(--ui-danger,#ef4444)}
19
+ .codex-sharing-dot[data-state=independent]{background:var(--ui-warning,#f59e0b)}
20
+ .codex-sharing p{margin:6px 0 0;color:var(--ui-muted-text,#999dab);font-size:12px;line-height:18px;overflow-wrap:anywhere}
21
+ .codex-sharing-actions{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:4px}
22
+ .codex-sharing-actions button{display:flex;align-items:center;gap:5px;min-height:32px;padding:0;border:0;border-radius:4px;background:transparent;color:inherit;font:inherit;font-size:12px;cursor:pointer}
23
+ .codex-sharing-actions button:focus-visible{outline:2px solid var(--ui-tab-accent,#7aa2f7);outline-offset:3px}
24
+ .codex-sharing-actions button:disabled{opacity:.5;cursor:wait}
25
+ @media(pointer:coarse){.codex-sharing-actions button{min-height:44px}}
26
+ `;function po({computerName:t,page:o,onClose:a,onSave:s}){const[c,u]=n.useState((o==null?void 0:o.name)??""),[m,d]=n.useState((o==null?void 0:o.url)??""),[j,b]=n.useState((o==null?void 0:o.openMode)??"current"),[S,l]=n.useState(!!o),[v,k]=n.useState(""),[L,h]=n.useState(!1),y=n.useRef(!1),w=n.useRef(null);return n.useEffect(()=>{var C,R;(R=(C=w.current)==null?void 0:C.querySelector("input"))==null||R.focus();const g=O=>{var X;if(O.key==="Escape"&&!y.current&&a(),O.key!=="Tab")return;const F=(X=w.current)==null?void 0:X.querySelectorAll("button:not(:disabled), input:not(:disabled), select:not(:disabled)");if(!(F!=null&&F.length))return;const Q=F[0],ne=F[F.length-1];O.shiftKey&&document.activeElement===Q?(O.preventDefault(),ne.focus()):!O.shiftKey&&document.activeElement===ne&&(O.preventDefault(),Q.focus())};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[a]),e.jsx("div",{className:"computer-dialog-backdrop","data-toolbar-overlay":!0,onClick:g=>{g.target===g.currentTarget&&!y.current&&a()},children:e.jsxs("section",{ref:w,className:"computer-dialog",role:"dialog","aria-modal":"true","aria-labelledby":"computer-page-title",children:[e.jsxs("div",{className:"computer-dialog-heading",children:[e.jsx("h2",{id:"computer-page-title",children:o?"编辑页面":"添加页面"}),e.jsx("button",{type:"button",className:"computer-close","aria-label":"关闭",disabled:L,onClick:a,children:e.jsx(Ce,{size:20})})]}),e.jsxs("p",{className:"computer-hint",children:["所属电脑:",t]}),e.jsxs("form",{onSubmit:async g=>{if(g.preventDefault(),!y.current){y.current=!0,h(!0),k("");try{const C=mr(m),R=(o==null?void 0:o.id)??Array.from(crypto.getRandomValues(new Uint8Array(16)),O=>O.toString(16).padStart(2,"0")).join("");await s({id:R,name:c.trim(),url:C,openMode:j})}catch(C){k(C.message)}finally{y.current=!1,h(!1)}}},children:[e.jsx("label",{htmlFor:"computer-page-name",children:"页面名称"}),e.jsx("input",{id:"computer-page-name",maxLength:60,required:!0,disabled:L,value:c,onChange:g=>u(g.target.value),placeholder:"例如:Zcode / Qoder",autoComplete:"off"}),e.jsx("label",{htmlFor:"computer-page-url",children:"页面地址"}),e.jsx("input",{id:"computer-page-url",required:!0,disabled:L,value:m,onChange:g=>{d(g.target.value),S||b(pr(g.target.value))},placeholder:"https://…",autoComplete:"off",spellCheck:!1}),e.jsx("label",{htmlFor:"computer-page-mode",children:"打开方式"}),e.jsxs("select",{id:"computer-page-mode",disabled:L,value:j,onChange:g=>{b(g.target.value),l(!0)},children:[e.jsx("option",{value:"current",children:"当前页面打开,保留顶部图标栏"}),e.jsx("option",{value:"new-tab",children:"新页面打开,保留原会话页"})]}),e.jsx("p",{className:"computer-hint",children:"当前页面会显示网站自己的界面。若网站禁止内嵌(如 Qoder),可改为新页面打开。"}),v&&e.jsx("p",{className:"computer-error",role:"alert",children:v}),e.jsx("button",{type:"submit",className:"computer-action computer-primary",disabled:L||!c.trim()||!m.trim(),children:L?"正在保存…":"保存页面"})]})]})})}async function mo(t,o){const a=new AbortController,s=()=>a.abort();if(o!=null&&o.aborted)return"offline";o==null||o.addEventListener("abort",s,{once:!0});const c=setTimeout(s,4e3);try{const u=new URL("/pwa/icon-192.png",t);u.searchParams.set("online",String(Date.now()));const m=await fetch(u,{mode:"no-cors",credentials:"omit",cache:"no-store",referrerPolicy:"no-referrer",signal:a.signal});return m.type==="opaque"||m.ok?"online":"offline"}catch{return"offline"}finally{clearTimeout(c),o==null||o.removeEventListener("abort",s)}}const fo=20;function mt(t){if(!Array.isArray(t)||t.length>fo)throw new Error("最多可添加 20 台电脑。");const o=new Set;return t.map(a=>{if(!a||typeof a!="object"||Array.isArray(a)||Object.keys(a).some(c=>!["origin","name"].includes(c))||typeof a.origin!="string"||a.origin.length>2048)throw new Error("电脑地址无效。");let s;try{s=new URL(a.origin)}catch{throw new Error("电脑地址无效。")}if(!["http:","https:"].includes(s.protocol)||s.username||s.password||s.pathname!=="/"||s.search||s.hash||o.has(s.origin))throw new Error("电脑地址无效或重复。");if(typeof a.name!="string"||!a.name.trim()||a.name.trim().length>60)throw new Error("电脑名称需为 1–60 个字符。");return o.add(s.origin),{origin:s.origin,name:a.name.trim()}})}async function wn(t,o="GET",a){var u;const s=await fetch("/api/web-console/computers",{method:o,credentials:"same-origin",cache:"no-store",headers:a?{"content-type":"application/json","x-csrf-token":t}:void 0,body:a?JSON.stringify(a):void 0,signal:AbortSignal.timeout(15e3)}).catch(()=>{throw new Error("无法连接当前电脑,请检查连接后重试。")}),c=await s.json().catch(()=>null);if(!s.ok)throw new Error(((u=c==null?void 0:c.error)==null?void 0:u.message)??"电脑列表保存失败,请重试。");return mt(c==null?void 0:c.computers)}function ho(t){const[o,a]=n.useState([]),[s,c]=n.useState(!1),[u,m]=n.useState(!1),[d,j]=n.useState(""),b=n.useRef(!0),S=n.useRef(!1),l=n.useRef(0),v=n.useRef(!1),k=n.useCallback(C=>{if(b.current){a(R=>R.length===C.length&&R.every((O,F)=>O.origin===C[F].origin&&O.name===C[F].name)?R:C),c(!0);try{const R=Me();Mn(C.map(O=>({...R.find(F=>F.origin===O.origin),...O})))}catch{}}},[]),L=n.useCallback(async()=>{if(S.current)return;const C=++l.current;try{const R=v.current?void 0:fr(De(),void 0).map(({origin:F,name:Q})=>({origin:F,name:Q})),O=await wn(t,R?"POST":"GET",R?{computers:R}:void 0);if(!b.current||C!==l.current)return;v.current=!0,k(O),j("")}catch(R){b.current&&C===l.current&&j(R instanceof Error?R.message:"无法读取电脑列表。")}},[k,t]);n.useEffect(()=>{b.current=!0,L();const C=()=>{document.hidden||L()};window.addEventListener("focus",C),window.addEventListener("pageshow",C);const R=window.setInterval(C,15e3);return()=>{b.current=!1,l.current++,window.removeEventListener("focus",C),window.removeEventListener("pageshow",C),window.clearInterval(R)}},[L]);const h=n.useCallback(async(C,R)=>{if(!s||S.current)throw new Error("电脑列表尚未就绪,请稍后重试。");S.current=!0,l.current++,m(!0),j("");try{k(await wn(t,C,R))}catch(O){const F=O instanceof Error?O.message:"电脑列表保存失败,请重试。";throw b.current&&j(F),new Error(F)}finally{S.current=!1,b.current&&m(!1)}},[k,t,s]),y=n.useCallback((C,R)=>h("PATCH",mt([{origin:C,name:R}])[0]),[h]),w=n.useCallback(async C=>{if(new URL(C).origin===De())throw new Error("不能删除当前连接的电脑。");await h("DELETE",{origin:C})},[h]),g=n.useCallback((C,R)=>h("POST",{computers:mt([{origin:C,name:R}]),restore:!0}),[h]);return{computers:o,loaded:s,saving:u,error:d,reload:L,rename:y,remove:w,add:g}}let xn;function Wn(){return window.jsQR?Promise.resolve():xn||(xn=new Promise((t,o)=>{const a=document.createElement("script");a.src="/pwa/qr-decoder.js";const s=()=>{clearTimeout(c),xn=null,a.remove(),o(new Error("二维码识别器加载失败,请重试。"))},c=setTimeout(s,1e4);a.onload=()=>{clearTimeout(c),t()},a.onerror=s,document.head.append(a)}))}function ft(){var t;return!!(window.isSecureContext&&((t=navigator.mediaDevices)!=null&&t.getUserMedia))}async function go(t){if(!t||t.type&&!t.type.startsWith("image/"))throw new Error("请选择二维码照片。");if(t.size>20*1024*1024)throw new Error("照片过大,请重新拍摄二维码。");await Wn();const o=new Image,a=URL.createObjectURL(t);try{await new Promise((u,m)=>{const d=setTimeout(()=>m(new Error("照片加载超时,请重新拍摄。")),1e4);o.onload=()=>{clearTimeout(d),u()},o.onerror=()=>{clearTimeout(d),m(new Error("无法读取照片,请重新拍摄二维码。"))},o.src=a});const s=document.createElement("canvas"),c=s.getContext("2d",{willReadFrequently:!0});for(const u of[1600,1024,640]){const m=Math.min(1,u/Math.max(o.naturalWidth,o.naturalHeight));s.width=Math.max(1,Math.round(o.naturalWidth*m)),s.height=Math.max(1,Math.round(o.naturalHeight*m)),c.drawImage(o,0,0,s.width,s.height);const d=c.getImageData(0,0,s.width,s.height),j=window.jsQR(d.data,d.width,d.height);if(j)return j.data}throw new Error("照片中没有识别到二维码,请靠近电脑屏幕重新拍摄。")}finally{o.onload=null,o.onerror=null,URL.revokeObjectURL(a)}}function bo(t,o,a){let s,c=0,u;const m=()=>{c++,clearTimeout(u),s==null||s.getTracks().forEach(S=>S.stop()),s=null,t.srcObject=null},d=(S,l)=>{S===c&&(m(),a((l==null?void 0:l.name)==="NotAllowedError"?"相机权限未开启,请允许相机或粘贴二维码链接。":(l==null?void 0:l.message)||"无法启动扫码,请重试。"))},j=async()=>{m();const S=c;if(!ft()){a("实时扫码需要 HTTPS,请使用拍照扫码。");return}try{if(await Wn(),S!==c)return;const l=await navigator.mediaDevices.getUserMedia({video:{facingMode:{ideal:"environment"}},audio:!1});if(S!==c){l.getTracks().forEach(y=>y.stop());return}s=l,t.srcObject=l;let v;try{await Promise.race([t.play(),new Promise((y,w)=>{v=setTimeout(()=>w(new Error("相机没有返回画面,请重试。")),1e4)})])}finally{clearTimeout(v)}if(S!==c)return;const k=document.createElement("canvas"),L=k.getContext("2d",{willReadFrequently:!0}),h=()=>{if(S===c)try{if(t.videoWidth&&t.videoHeight){k.width=Math.min(t.videoWidth,640),k.height=Math.round(t.videoHeight*k.width/t.videoWidth),L.drawImage(t,0,0,k.width,k.height);const y=L.getImageData(0,0,k.width,k.height),w=window.jsQR(y.data,y.width,y.height);if(w){m(),o(w.data);return}}u=setTimeout(h,250)}catch(y){m(),a((y==null?void 0:y.message)||"二维码识别失败,请重试。")}};h()}catch(l){d(S,l)}},b=()=>{document.hidden&&m()};return window.addEventListener("pagehide",m),document.addEventListener("visibilitychange",b),{start:j,stop:m,dispose(){m(),window.removeEventListener("pagehide",m),document.removeEventListener("visibilitychange",b)}}}const wo=[{id:"refresh",name:"刷新",Icon:we},{id:"dashboard",name:"进行中的会话",Icon:zn},{id:"collaboration",name:"群聊列表",Icon:bt},{id:"remote",name:"远程桌面",Icon:at},{id:"theme",name:"皮肤",Icon:Dn},{id:"files",name:"文件树",Icon:xr},{id:"ai-hub",name:"AI Hub",Icon:On},{id:"flow",name:"数字人",Icon:wt},{id:"install",name:"添加到主屏幕",Icon:_n}];function xo({username:t,connected:o,accent:a,accentText:s,selectedPageId:c,onSelectPage:u,onUpdatePage:m,configuration:d,csrfToken:j}){const b=n.useRef(null),S=n.useRef(null),l=ho(j),v=l.computers,[k,L]=n.useState(""),[h,y]=n.useState(null),[w,g]=n.useState(!1),[C,R]=n.useState("home"),[O,F]=n.useState(!1),[Q,ne]=n.useState({top:48,right:12}),[X,oe]=n.useState(null),[M,T]=n.useState(null),[N,D]=n.useState(""),[B,_]=n.useState({}),P=v.find(p=>p.origin===k),Y=d.settings.savedPages??[];n.useEffect(()=>{var p;d.loaded&&c&&m(((p=d.settings.savedPages)==null?void 0:p.find(z=>z.id===c))??null)},[d.loaded,d.settings.savedPages,c,m]),n.useEffect(()=>{var K;L(De()),y(((K=b.current)==null?void 0:K.closest(".web-root"))??document.body);const p=window.matchMedia("(max-width: 600px)"),z=()=>F(p.matches);return z(),p.addEventListener("change",z),()=>{p.removeEventListener("change",z)}},[]),n.useEffect(()=>{if(!w)return;const p=q=>{var V,Z;!((V=S.current)!=null&&V.contains(q.target))&&!((Z=b.current)!=null&&Z.contains(q.target))&&g(!1)},z=q=>{var ze,he;if(q.key==="Escape"&&(g(!1),(ze=b.current)==null||ze.focus()),!O||q.key!=="Tab")return;const V=(he=S.current)==null?void 0:he.querySelectorAll("button:not(:disabled), input:not(:disabled)");if(!(V!=null&&V.length))return;const Z=V[0],xe=V[V.length-1];q.shiftKey&&document.activeElement===Z?(q.preventDefault(),xe.focus()):!q.shiftKey&&document.activeElement===xe&&(q.preventDefault(),Z.focus())},K=()=>{var Z;const q=(Z=b.current)==null?void 0:Z.getBoundingClientRect();if(!q)return;const V=Math.min(292,innerWidth-24);ne({top:q.bottom+8,right:Math.max(12,Math.min(innerWidth-V-12,innerWidth-q.right))})};return document.addEventListener("pointerdown",p),document.addEventListener("keydown",z),window.addEventListener("resize",K),()=>{document.removeEventListener("pointerdown",p),document.removeEventListener("keydown",z),window.removeEventListener("resize",K)}},[w,O]),n.useEffect(()=>{var p,z;w&&((z=(p=S.current)==null?void 0:p.querySelector("button"))==null||z.focus())},[w,C]),n.useEffect(()=>{if(!w)return;const p=new AbortController,z=()=>{for(const q of v)q.origin!==k&&mo(q.origin,p.signal).then(V=>{p.signal.aborted||_(Z=>({...Z,[q.origin]:V}))})};z();const K=window.setInterval(z,15e3);return window.addEventListener("online",z),()=>{p.abort(),window.clearInterval(K),window.removeEventListener("online",z)}},[w,v,k]);const I=n.useCallback(()=>{var p;oe(null),(p=b.current)==null||p.focus()},[]),H=n.useCallback(()=>{var p;T(null),(p=b.current)==null||p.focus()},[]),U=n.useCallback(async(p,z)=>{var Z;if(He()){await He().pair(p);return}const K=hr(p),q={origin:K.origin,name:z.trim()||((Z=v.find(xe=>xe.origin===K.origin))==null?void 0:Z.name)||K.hostname},V=gr(p,un(Me(),v,[q]),z);await l.add(q.origin,q.name),location.assign(V)},[v,l.add]),A=n.useCallback(async p=>{await l.rename(De(),p),I()},[I,l.rename]);return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:vo}),e.jsxs("div",{className:"theme-avatar-with-status",children:[e.jsx("button",{ref:b,type:"button",className:"theme-avatar","aria-label":`电脑与连接状态(${t})`,title:t,style:{border:`1px solid ${a}`,background:a,color:s},"aria-expanded":w,"aria-haspopup":"true",onClick:()=>{const p=b.current.getBoundingClientRect(),z=Math.min(292,innerWidth-24);ne({top:p.bottom+8,right:Math.max(12,Math.min(innerWidth-z-12,innerWidth-p.right))}),w||(R("home"),D(""),d.reload(),l.reload()),g(K=>!K)},children:(t.trim()[0]??"?").toUpperCase()}),e.jsx("span",{className:"theme-avatar-status","data-connected":o,"aria-label":o?"已连接":"未连接"})]}),w&&h&&Ie.createPortal(e.jsx("div",{className:"computer-menu-backdrop","data-toolbar-overlay":!0,children:e.jsxs("div",{ref:S,className:"computer-menu",style:O?void 0:Q,role:"dialog","aria-modal":O,"aria-label":C==="tools"?"配置顶部工具":C==="computers"?"选择电脑":"电脑与保存页面",children:[e.jsx("div",{className:"computer-menu-grip","aria-hidden":"true"}),e.jsxs("div",{className:"computer-menu-heading",children:[C!=="home"&&e.jsx("button",{type:"button",className:"computer-close","aria-label":"返回电脑菜单",onClick:()=>R("home"),children:e.jsx(br,{size:20})}),C==="home"?e.jsxs("button",{type:"button",className:"computer-menu-item computer-current","aria-label":"选择电脑",onClick:()=>R("computers"),children:[e.jsx(fn,{size:17}),e.jsxs("span",{children:[e.jsx("strong",{children:(P==null?void 0:P.name)||"当前电脑"}),e.jsx("small",{children:o?"当前 · 在线":"当前 · 未连接"})]}),e.jsx(Fr,{size:16})]}):e.jsx("strong",{children:C==="tools"?`${(P==null?void 0:P.name)||"当前电脑"} · 顶部工具`:"选择电脑"}),e.jsx("button",{type:"button",className:"computer-close","aria-label":"关闭电脑菜单",onClick:()=>{var p;g(!1),(p=b.current)==null||p.focus()},children:e.jsx(Ce,{size:20})})]}),C==="computers"&&e.jsxs(e.Fragment,{children:[!l.loaded&&e.jsx("p",{className:"computer-save-status",role:"status",children:l.error?"电脑列表尚未加载":"正在读取电脑列表…"}),v.map(p=>{const z=p.origin===k?o?"online":"offline":B[p.origin]??"checking",K=z==="online"?"在线":z==="offline"?"无法连接":"检测中";return e.jsxs("div",{className:"computer-menu-row",children:[e.jsxs("button",{type:"button",className:"computer-menu-item","data-computer-origin":p.origin,"aria-label":`${p.name},${K}${p.origin===k?",当前电脑":""}`,"aria-current":p.origin===k?"true":void 0,onClick:()=>{if(p.origin===k)R("home");else try{const q=He();q?q.switchComputer(p.origin).catch(V=>D(V.message)):location.assign(wr(p.origin,un(Me(),v)))}catch(q){D(q.message)}},children:[e.jsx(fn,{size:17,"aria-hidden":"true"}),e.jsxs("span",{children:[e.jsx("strong",{children:p.name}),e.jsx("small",{children:p.origin})]}),e.jsx("span",{className:"computer-status-dot","data-status":z,role:"img","aria-label":K,title:K}),p.origin===k&&e.jsx(ut,{size:16,"aria-label":"当前电脑"})]}),p.origin!==k&&e.jsx("button",{type:"button",className:"computer-page-control computer-delete-control","aria-label":`删除电脑:${p.name}`,title:`删除电脑:${p.name}`,disabled:l.saving,onClick:()=>{l.remove(p.origin).catch(()=>{})},children:e.jsx(xt,{size:15})})]},p.origin)}),e.jsx("div",{className:"computer-menu-divider"}),e.jsxs("button",{type:"button",className:"computer-menu-item",disabled:!l.loaded||l.saving,onClick:()=>{const p=He();p?p.scan().catch(z=>D(z.message)):(g(!1),oe("add"))},children:[e.jsx(Ge,{size:17,"aria-hidden":"true"}),e.jsx("span",{children:"扫码添加电脑"})]}),e.jsxs("button",{type:"button",className:"computer-menu-item",disabled:!l.loaded||l.saving||!P,onClick:()=>{g(!1),oe("rename")},children:[e.jsx(pt,{size:16,"aria-hidden":"true"}),e.jsx("span",{children:"修改当前电脑名称"})]}),l.error&&e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"computer-error",role:"alert",children:l.error}),e.jsxs("button",{type:"button",className:"computer-menu-item",onClick:()=>{l.reload()},children:[e.jsx(we,{size:16}),e.jsx("span",{children:"重新加载电脑列表"})]})]})]}),C==="home"&&e.jsxs(e.Fragment,{children:[e.jsx(lo,{csrfToken:j}),e.jsxs("div",{className:"computer-menu-label computer-pages-heading",children:[e.jsx("span",{children:"保存的页面"}),e.jsx("button",{type:"button",className:"computer-page-control","aria-label":"添加页面",disabled:!d.loaded||d.saving,onClick:()=>{g(!1),T({computer:P??{origin:k,name:"当前电脑"}})},children:e.jsx(Ge,{size:17})})]}),e.jsxs("button",{type:"button",className:"computer-menu-item","aria-current":c?void 0:"true",onClick:()=>{g(!1),u(null)},children:[e.jsx(io,{size:17}),e.jsx("span",{children:"电脑会话"}),!c&&e.jsx(ut,{size:16})]}),Y.map(p=>e.jsxs("div",{className:"computer-menu-row",children:[e.jsxs("button",{type:"button",className:"computer-menu-item","aria-label":`打开 ${p.name}`,"aria-current":c===p.id?"true":void 0,onClick:()=>{g(!1),u(p)},children:[e.jsx(dt,{size:15,"aria-hidden":"true"}),e.jsxs("span",{children:[e.jsx("strong",{children:p.name}),e.jsxs("small",{children:[p.openMode==="current"?"当前页面":"新页面"," · ",new URL(p.url).hostname]})]}),p.openMode==="new-tab"&&e.jsx(yt,{size:13,"aria-hidden":"true"})]}),e.jsx("button",{type:"button",className:"computer-page-control","aria-label":`编辑 ${p.name}`,disabled:d.saving,onClick:()=>{g(!1),T({computer:P??{origin:k,name:"当前电脑"},page:p})},children:e.jsx(pt,{size:14})}),e.jsx("button",{type:"button",className:"computer-page-control","aria-label":`删除 ${p.name}`,disabled:d.saving,onClick:()=>{d.setSavedPages(Y.filter(z=>z.id!==p.id)).catch(()=>{})},children:e.jsx(Ce,{size:15})})]},p.id)),e.jsx("div",{className:"computer-menu-divider"}),e.jsxs("button",{type:"button",className:"computer-menu-item",onClick:()=>R("tools"),children:[e.jsx(Or,{size:17}),e.jsx("span",{children:"配置顶部工具"}),e.jsx(Br,{size:16})]})]}),C==="tools"&&e.jsx("div",{className:"computer-tools-list",children:wo.map(({id:p,name:z,Icon:K})=>e.jsxs("label",{className:"computer-tool-option",children:[e.jsx(K,{size:17,"aria-hidden":"true"}),e.jsx("span",{children:z}),e.jsx("input",{type:"checkbox","aria-label":`显示${z}`,checked:d.settings.visibleTools.includes(p),disabled:!d.loaded||d.saving,onChange:q=>{const V=d.settings.visibleTools;d.setVisibleTools(q.target.checked?[...V,p]:V.filter(Z=>Z!==p)).catch(()=>{})}})]},p))}),C!=="computers"&&e.jsx("p",{className:"computer-save-status",role:"status",children:d.loaded?d.saving?"正在保存…":d.notice:d.error?"配置尚未加载":"正在读取电脑配置…"}),d.error&&C!=="computers"&&e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"computer-error",role:"alert",children:d.error}),e.jsxs("button",{type:"button",className:"computer-menu-item",onClick:()=>{d.reload()},children:[e.jsx(we,{size:16}),e.jsx("span",{children:"重新加载配置"})]})]}),N&&e.jsx("p",{className:"computer-error",role:"alert",children:N})]})}),h),X&&h&&Ie.createPortal(e.jsx(yo,{mode:X,currentName:(P==null?void 0:P.name)||"",onClose:I,onNavigate:U,onRename:A}),h),M&&h&&Ie.createPortal(e.jsx(po,{computerName:M.computer.name,page:M.page,onClose:H,onSave:async p=>{if(M.page&&!Y.some(z=>z.id===p.id))throw new Error("这个页面已在其他设备删除,请重新添加。");await d.setSavedPages(M.page?Y.map(z=>z.id===p.id?p:z):[...Y,p]),H()}}),h)]})}function yo({mode:t,currentName:o,onClose:a,onNavigate:s,onRename:c}){const[u,m]=n.useState(t==="rename"?o:""),d=n.useRef(u);d.current=u;const[j,b]=n.useState(""),[S,l]=n.useState(""),[v,k]=n.useState(!1),[L,h]=n.useState(!1),[y,w]=n.useState(!1),[g,C]=n.useState(!1),R=n.useRef(null),O=n.useRef(null),F=n.useRef(0),Q=n.useRef(null),ne=n.useRef(null),X=n.useRef(null),oe=n.useCallback(async M=>{var T;k(!0),(T=X.current)==null||T.stop(),h(!1),l("");try{await s(M,d.current)}catch(N){l(N.message)}finally{k(!1)}},[s]);return n.useEffect(()=>{var N,D,B;w(ft()),t==="rename"?(N=Q.current)==null||N.focus():(B=(D=ne.current)==null?void 0:D.querySelector("button"))==null||B.focus();const M=_=>{var H;if(_.key==="Escape"&&a(),_.key!=="Tab")return;const P=(H=ne.current)==null?void 0:H.querySelectorAll("button:not(:disabled), input:not(:disabled)");if(!(P!=null&&P.length))return;const Y=P[0],I=P[P.length-1];_.shiftKey&&document.activeElement===Y?(_.preventDefault(),I.focus()):!_.shiftKey&&document.activeElement===I&&(_.preventDefault(),Y.focus())},T=()=>{document.hidden&&h(!1)};return document.addEventListener("keydown",M),document.addEventListener("visibilitychange",T),t==="add"&&R.current&&(X.current=bo(R.current,oe,_=>{h(!1),l(_)})),()=>{var _;F.current++,document.removeEventListener("keydown",M),document.removeEventListener("visibilitychange",T),(_=X.current)==null||_.dispose(),X.current=null}},[t,oe,a]),e.jsx("div",{className:"computer-dialog-backdrop","data-toolbar-overlay":!0,onClick:M=>{M.target===M.currentTarget&&a()},children:e.jsxs("section",{ref:ne,className:"computer-dialog",role:"dialog","aria-modal":"true","aria-labelledby":"computer-dialog-title",children:[e.jsxs("div",{className:"computer-dialog-heading",children:[e.jsx("h2",{id:"computer-dialog-title",children:t==="add"?"添加电脑":"修改电脑名称"}),e.jsx("button",{type:"button",className:"computer-close","aria-label":"关闭",onClick:a,children:e.jsx(Ce,{size:20})})]}),e.jsxs("form",{onSubmit:async M=>{if(M.preventDefault(),!v)if(t==="add")await oe(j);else{k(!0);try{await c(u.trim())}catch(T){l(T.message)}finally{k(!1)}}},children:[e.jsxs("label",{htmlFor:"computer-name",children:["电脑名称",t==="add"?"(选填)":""]}),e.jsx("input",{ref:Q,id:"computer-name",maxLength:60,value:u,required:t==="rename",disabled:v,onChange:M=>m(M.target.value),placeholder:"例如:A 电脑 / 家里的电脑",autoComplete:"off"}),t==="add"&&e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"computer-hint",children:"扫描另一台电脑上的 AgentRoam 授权二维码,连接后会保留已有电脑。"}),e.jsx("input",{ref:O,type:"file",accept:"image/*",capture:"environment",hidden:!0,"aria-label":"拍摄授权二维码",onChange:async M=>{var D,B;const T=(D=M.currentTarget.files)==null?void 0:D[0];if(M.currentTarget.value="",!T)return;const N=++F.current;(B=X.current)==null||B.stop(),h(!1),C(!0),l("");try{const _=await go(T);N===F.current&&oe(_)}catch(_){N===F.current&&l(_.message)}finally{N===F.current&&C(!1)}}}),e.jsx("video",{ref:R,playsInline:!0,muted:!0,hidden:!L,"aria-label":"扫码相机画面"}),e.jsxs("button",{className:"computer-action",type:"button",disabled:g,onClick:()=>{var M,T,N;l(""),L?((M=X.current)==null||M.stop(),h(!1)):ft()?(h(!0),(N=X.current)==null||N.start()):(T=O.current)==null||T.click()},children:[e.jsx(yr,{size:17,"aria-hidden":"true"}),g?"正在识别二维码…":L?"取消扫码":y?"打开相机扫码":"拍照扫码"]}),y&&e.jsx("button",{className:"computer-action",type:"button",disabled:g,onClick:()=>{var M,T;(M=X.current)==null||M.stop(),h(!1),(T=O.current)==null||T.click()},children:"拍照识别二维码"}),e.jsx("label",{htmlFor:"computer-link",children:"或粘贴授权二维码链接"}),e.jsx("input",{id:"computer-link",value:j,onChange:M=>b(M.target.value),placeholder:"http(s)://…/pair#pair=…",autoComplete:"off",spellCheck:!1})]}),S&&e.jsx("p",{className:"computer-error",role:"alert",children:S}),e.jsx("button",{className:"computer-action computer-primary",type:"submit",disabled:v||(t==="add"?!j.trim()||g:!u.trim()),children:t==="add"?"连接这台电脑":v?"正在保存…":"保存名称"})]})]})})}const vo=`
27
+ .computer-menu-backdrop{position:fixed;inset:0;z-index:10000}
28
+ .computer-menu-heading{display:flex;align-items:center;gap:4px;padding:2px 4px}.computer-menu-heading>strong{flex:1;min-width:0;font-size:14px;font-weight:500;overflow-wrap:anywhere}.computer-menu-heading>.computer-current{flex:1;min-width:0}.computer-menu-heading>.computer-close{flex-shrink:0}
29
+ .computer-menu-grip{display:none}.computer-pages-heading{display:flex;align-items:center;justify-content:space-between}.computer-tool-option{display:flex;align-items:center;gap:12px;min-height:44px;padding:8px 12px;cursor:pointer}.computer-tool-option span{flex:1;font-size:14px}.computer-tool-option input{width:18px;height:18px;accent-color:var(--ui-tab-accent,#7aa2f7)}.computer-tool-option svg{flex-shrink:0}.computer-save-status{margin:6px 10px 2px;line-height:18px;color:var(--ui-muted-text,#999dab);font-size:12px}.computer-save-status:empty{display:none}.computer-menu button:disabled,.computer-tool-option:has(input:disabled){opacity:.55;cursor:default}
30
+ @media(max-width:600px){.computer-menu-backdrop{background:#0006}.computer-menu-backdrop .computer-menu{top:auto;bottom:0;left:0;right:0;width:100%;max-height:calc(100dvh - 64px);border-radius:18px 18px 0 0;padding:9px 10px calc(14px + env(safe-area-inset-bottom,0px));overscroll-behavior:contain}.computer-menu-grip{display:block;width:32px;height:4px;border-radius:4px;background:var(--ui-tabbar-border,#303442);margin:0 auto 10px}.computer-menu .computer-page-control,.computer-menu .computer-close{width:44px;height:44px;flex-basis:44px}.computer-menu .computer-menu-item{min-height:44px}}
31
+ .computer-menu,.computer-dialog{background:var(--ui-tree-bg,#121218);color:var(--ui-text,#e8e8ee);border:1px solid var(--ui-tabbar-border,#303442);border-radius:12px;box-shadow:0 12px 40px #0006;font-family:system-ui,sans-serif}
32
+ .computer-menu{position:fixed;z-index:10000;width:min(292px,calc(100vw - 24px));padding:7px;box-sizing:border-box;max-height:calc(100dvh - 76px);overflow-y:auto}
33
+ .computer-menu-label{padding:7px 9px;color:var(--ui-muted-text,#999dab);font-size:12px}.computer-menu-divider{height:1px;background:var(--ui-tabbar-border,#303442);margin:6px}
34
+ .computer-menu-row{display:flex;align-items:center;min-width:0;border-radius:8px}
35
+ .computer-page-row{padding-left:20px}
36
+ .computer-page-control{display:grid;place-items:center;flex:0 0 30px;width:30px;height:36px;border:0;border-radius:6px;color:var(--ui-muted-text,#999dab);background:transparent;cursor:pointer}
37
+ .computer-delete-control{margin-inline-end:8px}
38
+ .computer-menu-item{display:flex;align-items:center;gap:10px;width:100%;padding:10px;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
39
+ .computer-menu-item svg{flex-shrink:0}.computer-menu-item span{flex:1;min-width:0;font-size:13px}.computer-menu-item strong{display:block;font-weight:500;overflow-wrap:anywhere}.computer-menu-item small{display:block;color:var(--ui-muted-text,#999dab);font-size:11px;font-weight:400;overflow-wrap:anywhere;margin-top:3px}
40
+ .computer-menu-item[aria-current=true],.computer-menu-row:has(>.computer-menu-item[aria-current=true]){background:color-mix(in srgb,var(--ui-tab-accent,#7aa2f7) 9%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ui-tab-accent,#7aa2f7) 22%,transparent)}
41
+ .computer-menu-item[aria-current=true]>svg{color:var(--ui-tab-accent,#7aa2f7)}.computer-menu-item[aria-current=true]>span{font-weight:600}
42
+ .computer-menu-row>.computer-menu-item{flex:1;min-width:0;background:transparent;box-shadow:none}
43
+ .computer-menu-item:focus-visible,.computer-page-control:focus-visible,.computer-close:focus-visible{outline:2px solid var(--ui-tab-accent,#7aa2f7);outline-offset:-2px}
44
+ @media(hover:hover){
45
+ .computer-menu-item:hover,.computer-menu-row:hover{background:color-mix(in srgb,var(--ui-text,#e8e8ee) 5%,transparent)}
46
+ .computer-menu-item[aria-current=true]:hover,.computer-menu-row:has(>.computer-menu-item[aria-current=true]):hover{background:color-mix(in srgb,var(--ui-tab-accent,#7aa2f7) 12%,transparent)}
47
+ .computer-menu-row>.computer-menu-item:hover{background:transparent}
48
+ .computer-page-control:hover{background:color-mix(in srgb,var(--ui-text,#e8e8ee) 7%,transparent);color:var(--ui-text,#e8e8ee)}
49
+ }
50
+ .computer-menu-item .computer-status-dot{width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:var(--ui-connection-text,#777b8c)}.computer-status-dot[data-status=online]{background:var(--ui-success,#7dcf96)}.computer-status-dot[data-status=offline]{background:var(--ui-error,#f7768e)}
51
+ .computer-dialog-backdrop{position:fixed;inset:0;z-index:10001;background:#0008;display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}
52
+ .computer-dialog{width:100%;max-width:400px;max-height:calc(100dvh - 32px);overflow-y:auto;padding:20px;box-sizing:border-box}.computer-dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.computer-dialog h2{margin:0;font-size:18px;font-weight:500}.computer-close{display:grid;place-items:center;border:0;background:transparent;color:inherit;width:36px;height:36px;cursor:pointer}
53
+ .computer-dialog label{display:block;font-size:13px;margin:16px 0 8px}.computer-dialog input{width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid var(--ui-panel-input-border,#30303a);border-radius:8px;background:var(--ui-panel-input-bg,#0f0f15);color:inherit;font:inherit;font-size:16px}.computer-dialog video{width:100%;max-height:240px;border-radius:8px;background:#000;margin:4px 0}.computer-dialog video[hidden]{display:none}
54
+ .computer-dialog select{width:100%;padding:11px 8px;border:1px solid var(--ui-panel-input-border,#30303a);border-radius:8px;background:var(--ui-panel-input-bg,#0f0f15);color:inherit;font:inherit;font-size:14px}
55
+ .computer-hint{color:var(--ui-muted-text,#999dab);font-size:13px;line-height:1.7}.computer-action{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:12px;margin-top:12px;border:1px solid var(--ui-panel-input-border,#30303a);border-radius:8px;background:var(--ui-tab-bg,#1b1e28);color:inherit;font:inherit;cursor:pointer}.computer-primary{background:var(--ui-tab-accent,#7aa2f7);color:var(--ui-root-bg,#0b0b10);border-color:transparent}.computer-action:disabled{opacity:.45;cursor:default}.computer-error{font-size:13px;line-height:1.6;color:var(--ui-danger,#ffb2a7);padding:0 8px}
56
+ @media(pointer:coarse){.computer-menu-item{min-height:44px}.computer-close{width:44px;height:44px}.computer-page-control{height:44px;flex-basis:36px;width:36px}}
57
+ `;function Je({label:t="FLOW STUDIO",title:o="正在打开 Flow Studio",caption:a="即将进入你的创作空间",icon:s=e.jsx(wt,{size:36,strokeWidth:1.5})}={}){return e.jsxs("div",{className:"flow-loading",role:"status","aria-live":"polite",children:[e.jsxs("div",{className:"flow-loader-art","aria-hidden":"true",children:[e.jsx("div",{className:"flow-loader-halo"}),e.jsx("div",{className:"flow-loader-orbit orbit-outer",children:e.jsx("i",{})}),e.jsx("div",{className:"flow-loader-orbit orbit-inner",children:e.jsx("i",{})}),e.jsx("div",{className:"flow-loader-core",children:s}),e.jsx("span",{className:"flow-loader-node node-one"}),e.jsx("span",{className:"flow-loader-node node-two"}),e.jsx("span",{className:"flow-loader-node node-three"})]}),e.jsxs("div",{className:"flow-loader-copy",children:[e.jsx("span",{className:"flow-loader-label",children:t}),e.jsx("strong",{children:o}),e.jsx("span",{className:"flow-loader-caption",children:a})]}),e.jsx("div",{className:"flow-loader-track","aria-hidden":"true",children:e.jsx("span",{})}),e.jsx("style",{jsx:!0,children:`
58
+ .flow-loading { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; overflow:hidden; gap:26px; color:var(--ui-text, #e5e7eb); background:var(--ui-term-col-bg, #101014); animation:flow-appear 280ms ease-out both; }
59
+ .flow-loader-art { position:relative; width:200px; height:200px; flex-shrink:0; }
60
+ .flow-loader-halo { position:absolute; inset:-40px; border-radius:50%; background:radial-gradient(circle, #54e5cf26, #54e5cf08 45%, transparent 70%); animation:flow-breathe 3s ease-in-out infinite; }
61
+ .flow-loader-orbit { position:absolute; border-radius:50%; border:1px solid #54e5cf26; }
62
+ .orbit-outer { inset:8px; border-top-color:#54e5cf; border-right-color:#54e5cf70; animation:flow-orbit 3.2s linear infinite; }
63
+ .orbit-inner { inset:30px; border-bottom-color:#8bbcff; border-left-color:#8bbcff60; animation:flow-orbit 2.4s linear infinite reverse; }
64
+ .flow-loader-orbit i { position:absolute; top:13%; left:13%; width:7px; height:7px; border-radius:50%; background:#77f8df; box-shadow:0 0 14px #54e5cf; }
65
+ .orbit-inner i { background:#8bbcff; box-shadow:0 0 14px #8bbcff; }
66
+ .flow-loader-core { position:absolute; inset:62px; display:grid; place-items:center; border-radius:24px; color:#64e9d3; border:1px solid #54e5cf66; background:linear-gradient(145deg, #54e5cf20, #8bbcff0d); box-shadow:0 0 35px #54e5cf15, inset 0 0 18px #54e5cf0d; animation:flow-breathe 3s ease-in-out infinite; }
67
+ .flow-loader-node { position:absolute; width:5px; height:5px; border-radius:50%; background:#8bbcff; animation:flow-node 2s ease-in-out infinite; }
68
+ .node-one { left:0; top:100px; } .node-two { right:17px; top:38px; animation-delay:.5s; } .node-three { bottom:9px; right:57px; animation-delay:1s; }
69
+ .flow-loader-copy { display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center; padding:0 20px; }
70
+ .flow-loader-label { font:10px ui-monospace, monospace; letter-spacing:.3em; color:#64cbbb; }
71
+ .flow-loader-copy strong { font-size:18px; font-weight:500; letter-spacing:.02em; }
72
+ .flow-loader-caption { font-size:12px; color:var(--ui-text-muted, #9399aa); }
73
+ .flow-loader-track { width:128px; height:2px; overflow:hidden; background:#54e5cf20; border-radius:2px; }
74
+ .flow-loader-track span { display:block; width:45%; height:100%; background:linear-gradient(90deg, transparent, #64e9d3, #8bbcff); animation:flow-travel 1.8s ease-in-out infinite; }
75
+ @keyframes flow-orbit { to { transform:rotate(360deg); } }
76
+ @keyframes flow-breathe { 50% { transform:scale(1.05); opacity:.7; } }
77
+ @keyframes flow-node { 50% { opacity:.25; transform:scale(.65); } }
78
+ @keyframes flow-travel { from { transform:translateX(-110%); } to { transform:translateX(330%); } }
79
+ @keyframes flow-appear { from { opacity:0; } to { opacity:1; } }
80
+ @media (max-height:420px) { .flow-loading { gap:12px; } .flow-loader-art { width:200px; height:200px; zoom:.65; } }
81
+ @media (prefers-reduced-motion:reduce) { .flow-loading, .flow-loader-halo, .flow-loader-orbit, .flow-loader-core, .flow-loader-node, .flow-loader-track span { animation:none; } }
82
+ `})]})}function ko(t){const o=new URL(t).hostname;return o==="qoder.com"||o.endsWith(".qoder.com")}function Eo({page:t,reloadKey:o}){const[a,s]=n.useState(!0),[c,u]=n.useState(!1);return n.useEffect(()=>{s(!0),u(!1);const m=window.setTimeout(()=>u(!0),12e3);return()=>window.clearTimeout(m)},[t.id,t.url,o]),ko(t.url)?e.jsxs("main",{className:"computer-page-blocked",children:[e.jsx(dt,{size:36,strokeWidth:1.5,"aria-hidden":"true"}),e.jsxs("h2",{children:[t.name," 不允许内嵌"]}),e.jsx("p",{children:"这个网站限制了当前页面打开。可以在新页面使用,也可以在电脑菜单中修改打开方式。"}),e.jsxs("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",children:[e.jsx(yt,{size:16,"aria-hidden":"true"}),"打开新页面"]})]}):e.jsxs("main",{className:"computer-page-pane","aria-label":t.name,"aria-busy":a,children:[e.jsx("iframe",{title:t.name,src:t.url,referrerPolicy:"no-referrer",allow:"clipboard-read; clipboard-write; microphone; camera",sandbox:"allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox allow-downloads allow-modals",onLoad:()=>s(!1),onError:()=>{s(!1),u(!0)},style:{visibility:a?"hidden":"visible"}},`${t.id}:${o}`),a&&e.jsx(Je,{label:"REMOTE PAGE",title:`正在打开 ${t.name}`,caption:"正在连接页面",icon:e.jsx(dt,{size:36,strokeWidth:1.5})}),c&&e.jsx("a",{className:"computer-page-fallback",href:t.url,target:"_blank",rel:"noopener noreferrer",children:"打开原页面"})]})}function jo(t,o,a){const s=t.indexOf(o),c=t.indexOf(a);if(s<0||c<0||s===c)return[...t];const u=[...t];return u.splice(s,1),u.splice(c,0,o),u}const yn=["refresh","dashboard","collaboration","messaging","remote","theme","files","ai-hub","flow","install"],So=["refresh","remote","theme","files"];function Co(t){return{userId:t,revision:0,visibleTools:[...So],savedPages:null,updatedAt:""}}function Fn(t){if(!Array.isArray(t)||t.length>yn.length||t.some(o=>!yn.includes(o)))throw new Error("顶部工具包含未知选项。");if(new Set(t).size!==t.length)throw new Error("顶部工具不能重复。");return[...t]}function $n(t){if(!Array.isArray(t)||t.length>20)throw new Error("每台电脑最多可添加 20 个页面。");const o=new Set;return t.map(a=>{if(!a||typeof a.id!="string"||!/^[A-Za-z0-9_-]{1,80}$/.test(a.id)||o.has(a.id))throw new Error("页面标识无效或重复。");if(typeof a.name!="string"||!a.name.trim()||a.name.trim().length>60)throw new Error("页面名称需为 1–60 个字符。");if(!["current","new-tab"].includes(a.openMode))throw new Error("页面打开方式无效。");if(typeof a.url!="string"||a.url.length>8192)throw new Error("请填写有效的 http(s) 页面地址。");let s;try{s=new URL(a.url.trim())}catch{throw new Error("请填写有效的 http(s) 页面地址。")}if(!["http:","https:"].includes(s.protocol)||s.username||s.password)throw new Error("请填写无账号密码的 http(s) 页面地址。");return o.add(a.id),{id:a.id,name:a.name.trim(),url:s.href,openMode:a.openMode}})}class ht extends Error{constructor(o,a){super(o),this.status=a}}async function Pe(t,o){var c;const a=await fetch("/api/web-console/computer-settings",{method:o?"PATCH":"GET",credentials:"same-origin",cache:"no-store",headers:o?{"content-type":"application/json","x-csrf-token":t}:void 0,body:o?JSON.stringify(o):void 0,signal:AbortSignal.timeout(15e3)}).catch(u=>{throw new Error((u==null?void 0:u.name)==="TimeoutError"?"电脑响应超时,请检查连接后重试。":"无法连接当前电脑,请检查连接后重试。")}),s=await a.json().catch(()=>null);if(!a.ok)throw new ht(((c=s==null?void 0:s.error)==null?void 0:c.message)??"电脑配置保存失败,请检查连接后重试。",a.status);if(!(s!=null&&s.settings)||!Number.isSafeInteger(s.settings.revision))throw new Error("无法读取电脑配置,请重新加载。");return{...s.settings,visibleTools:Fn(s.settings.visibleTools),savedPages:s.settings.savedPages===null?null:$n(s.settings.savedPages)}}function To(t){const[o,a]=n.useState(()=>Co("")),s=n.useRef(o),[c,u]=n.useState(!1),[m,d]=n.useState(!1),j=n.useRef(!1),b=n.useRef(!0),S=n.useRef(0),[l,v]=n.useState(""),[k,L]=n.useState(""),h=n.useCallback(g=>{s.current=g,b.current&&a(g)},[]),y=n.useCallback(async()=>{var C;if(j.current)return;const g=++S.current;v(""),L("");try{let R=await Pe(t);if(R.savedPages===null){const O=((C=Me().find(F=>F.origin===location.origin))==null?void 0:C.pages)??[];try{R=await Pe(t,{expectedRevision:R.revision,initializePages:O})}catch(F){if(!(F instanceof ht)||F.status!==409)throw F;if(R=await Pe(t),R.savedPages===null)throw new Error("电脑配置已更新,请重试旧页面导入。")}}if(!b.current||g!==S.current)return;h(R),u(!0);try{Mn(Me().map(O=>{if(O.origin!==location.origin)return O;const{pages:F,...Q}=O;return{...Q,pagesMigrated:!0}}))}catch{}}catch(R){b.current&&g===S.current&&v(R instanceof Error?R.message:"无法读取电脑配置。")}},[h,t]);n.useEffect(()=>{b.current=!0,y();const g=()=>{y()};return window.addEventListener("focus",g),()=>{b.current=!1,S.current++,window.removeEventListener("focus",g)}},[y]);const w=n.useCallback(async g=>{if(!c||j.current)throw new Error("配置尚未就绪,请稍后重试。");j.current=!0,S.current++,d(!0),v(""),L("");const C=s.current;g.visibleTools&&h({...C,visibleTools:g.visibleTools});try{h(await Pe(t,{...g,expectedRevision:C.revision})),b.current&&L("已保存到当前电脑")}catch(R){if(h(C),R instanceof ht&&R.status===409)try{h(await Pe(t))}catch{}const O=R instanceof Error?R.message:"电脑配置保存失败,请重试。";throw b.current&&v(O),new Error(O)}finally{j.current=!1,b.current&&d(!1)}},[h,t,c]);return{settings:o,loaded:c,saving:m,error:l,notice:k,reload:y,setVisibleTools:g=>w({visibleTools:Fn(g)}),setSavedPages:g=>w({savedPages:$n(g)})}}const Ro=["codex","claude agents","opencode","agent-tui"];function No(){return Ro.map((t,o)=>({id:`default-${o+1}`,command:t}))}async function Lo(t,o,a,s){const c=a.find(m=>m&&m===t.source);if(!c)return!1;const u=vr(t,o,c);if(!u)return!1;try{const m=await s(u.method,u.payload);c.postMessage({type:pn,id:u.id,ok:!0,result:m},o)}catch(m){const d=m;c.postMessage({type:pn,id:u.id,ok:!1,error:d.message||"项目操作失败",code:d.code},o)}return!0}const Po=1,gt={watcherFrame:4,producerFrame:5},vn=10;function Io(t){const o=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength);if(o.byteLength<vn||o[0]!==Po||o[1]!==gt.watcherFrame&&o[1]!==gt.producerFrame)return null;const a=new DataView(o.buffer,o.byteOffset,o.byteLength);return{type:o[1],channelId:a.getUint32(2,!1),sequence:a.getUint32(6,!1),payload:o.subarray(vn)}}function Ao(){return Er()}function Mo(t,o,a){const[s,c]=n.useState({connected:!1,error:null}),[u,m]=n.useState(0),d=n.useRef(null),j=n.useRef(0),b=n.useRef(new Map),S=n.useRef([]),l=n.useRef(0),v=n.useRef(new Map),k=n.useRef(new Map),L=n.useRef(new Map),h=n.useRef(1e3),y=n.useRef(!1),w=n.useRef(null),g=n.useRef(t),C=n.useRef(o),R=n.useRef(a);g.current=t,C.current=o,R.current=a;const O=n.useCallback((T,N)=>{let D=v.current.get(T);return D||v.current.set(T,D=new Set),D.add(N),()=>D.delete(N)},[]),F=n.useCallback((T,N)=>{let D=k.current.get(T);return D||k.current.set(T,D=new Set),D.add(N),()=>D.delete(N)},[]),Q=n.useCallback((T,N)=>{let D=L.current.get(T);return D||L.current.set(T,D=new Set),D.add(N),()=>D.delete(N)},[]),ne=n.useCallback((T,N)=>{const D=d.current;if(!D||D.readyState!==WebSocket.OPEN)return!1;const B=new TextEncoder().encode(N),_=new Uint8Array(6+B.byteLength),P=new DataView(_.buffer);return _[0]=1,_[1]=1,P.setUint32(2,T),_.set(B,6),D.send(_),!0},[]),X=n.useCallback(T=>{const N=d.current;(N==null?void 0:N.readyState)===WebSocket.OPEN?N.send(T):S.current.push(T)},[]),oe=n.useCallback((T,N={},D=15e3)=>new Promise((B,_)=>{var I;if(T.startsWith("browser:")&&((I=d.current)==null?void 0:I.readyState)!==WebSocket.OPEN){_(Object.assign(new Error("远程连接已断开,请等待重新连接"),{code:"EOFFLINE"}));return}const P=++l.current,Y=setTimeout(()=>{b.current.delete(P),_(new Error(`${T} timeout`))},D);b.current.set(P,{resolve:B,reject:_,timer:Y,type:T}),X(JSON.stringify({type:T,_req:P,...N}))}),[X]),M=n.useCallback(async()=>{y.current=!1;const T=++j.current;w.current&&(clearInterval(w.current),w.current=null);const N=d.current;if(N){N.onopen=N.onmessage=N.onerror=N.onclose=null;try{N.close()}catch{}}let D;try{D=await C.current()}catch{T===j.current&&R.current();return}if(T!==j.current||y.current)return;let B;try{B=new WebSocket(`${Ao()}?nonce=${encodeURIComponent(D)}`)}catch(_){c({connected:!1,error:String(_)});return}B.binaryType="arraybuffer",d.current=B,B.onopen=()=>{if(T!==j.current||d.current!==B)return;h.current=1e3,c({connected:!0,error:null}),m(I=>I+1);const _=S.current.splice(0);for(const I of _)B.send(I);let P=Date.now();w.current=setInterval(()=>{if(d.current!==B||B.readyState!==WebSocket.OPEN){clearInterval(w.current),w.current=null;return}if(Date.now()-P>25e3){try{B.close()}catch{}return}try{B.send(JSON.stringify({type:"ping"}))}catch{}},1e4);const Y=()=>{P=Date.now()};B.addEventListener("message",Y),B.addEventListener("close",()=>B.removeEventListener("message",Y),{once:!0})},B.onmessage=_=>{var Y,I,H;if(T!==j.current||d.current!==B)return;if(typeof _.data!="string"){const U=new Uint8Array(_.data);if(U.byteLength>=6&&U[0]===1&&(U[1]===2||U[1]===6)){const A=new DataView(U.buffer,U.byteOffset,U.byteLength).getUint32(2);(Y=k.current.get(A))==null||Y.forEach(p=>p(U.subarray(6),U[1]===6))}else if(U.byteLength>=6&&U[0]===1&&U[1]===3){const A=new DataView(U.buffer,U.byteOffset,U.byteLength).getUint32(2);(I=L.current.get(A))==null||I.forEach(p=>p())}else g.current(U);return}let P;try{P=JSON.parse(_.data)}catch{return}if(P.type==="error"&&P.id!=null){const U=b.current.get(P.id);if(U){b.current.delete(P.id),clearTimeout(U.timer);const A=Object.assign(new Error(P.error||"gateway error"),{code:P.code});U.reject(A)}return}if(P.id!=null&&typeof P.type=="string"&&P.type.endsWith(":result")){const U=b.current.get(P.id);(U==null?void 0:U.type)==="fs:preview-open"&&typeof P.url=="string"&&(P.url=kr(P.url)),U&&(b.current.delete(P.id),clearTimeout(U.timer),U.resolve(P));return}(H=v.current.get(P.type))==null||H.forEach(U=>U(P))},B.onclose=_=>{if(T!==j.current||d.current!==B)return;w.current&&(clearInterval(w.current),w.current=null),d.current=null;for(const[Y,I]of b.current)I.type.startsWith("browser:")&&(clearTimeout(I.timer),b.current.delete(Y),I.reject(Object.assign(new Error("远程连接已断开,请重新接管"),{code:"EOFFLINE"})));if(c({connected:!1,error:null}),_.code===4001||_.code===4003){R.current();return}if(y.current)return;const P=h.current;h.current=Math.min(P*2,8e3),setTimeout(()=>{!y.current&&T===j.current&&M()},P)},B.onerror=()=>{}},[]);return n.useEffect(()=>(M(),()=>{y.current=!0,j.current++,w.current&&(clearInterval(w.current),w.current=null);const T=d.current;if(d.current=null,T){T.onopen=T.onmessage=T.onerror=T.onclose=null;try{T.close()}catch{}}}),[M]),{state:s,epoch:u,rpc:oe,onEvent:O,onTerminalData:F,onTerminalReset:Q,sendTerminalInput:ne,reconnect:M}}function Do(t,o,a){n.useEffect(()=>{const s=()=>{var d;return Array.from(((d=t.current)==null?void 0:d.querySelectorAll("iframe"))??[])},c=d=>{var b,S;const j=a&&!document.hidden&&((b=d.closest("[data-console-tab]"))==null?void 0:b.dataset.consoleTab)===o;(S=d.contentWindow)==null||S.postMessage({type:Sr,active:j},window.location.origin)},u=()=>s().forEach(c),m=d=>{var b;if(d.origin!==window.location.origin||((b=d.data)==null?void 0:b.type)!==jr)return;const j=s().find(S=>S.contentWindow===d.source);j&&c(j)};return window.addEventListener("message",m),document.addEventListener("visibilitychange",u),u(),()=>{window.removeEventListener("message",m),document.removeEventListener("visibilitychange",u)}},[t,o,a])}function Oo(){const[t,o]=n.useState("loading"),[a,s]=n.useState(null),[c]=n.useState("same-origin"),[u,m]=n.useState(null),d=n.useCallback(async()=>{o("loading"),m(null);try{const l=await fetch("/api/web-console/bootstrap",{credentials:"same-origin",cache:"no-store"});if(l.status===401||l.status===423){window.location.reload();return}if(!l.ok)throw new Error(`HTTP ${l.status}`);const v=await l.json();s(v.user),o("authenticated")}catch{m("无法连接远程控制台"),o("needsLogin")}},[]);n.useEffect(()=>{d()},[d]);const j=n.useCallback(async()=>{const l=await fetch("/api/web-console/bootstrap",{credentials:"same-origin",cache:"no-store"});if((l.status===401||l.status===423)&&window.location.reload(),!l.ok)throw new Error("bootstrap failed");const v=await l.json();return s(v.user),o("authenticated"),v.wsNonce},[]),b=n.useCallback(async()=>(window.location.reload(),!1),[]),S=n.useCallback(async()=>{const l=await fetch("/api/pairing/logout",{method:"POST",credentials:"same-origin"});l.ok||l.status===401||l.status===423?window.location.reload():m("退出失败,请重试")},[]);return{status:t,user:a,error:u,csrfToken:c,setup:b,login:b,logout:S,refresh:d,getWsNonce:j}}function _o({children:t}){const o=Oo(),[a,s]=n.useState(!1),c=o.status==="authenticated",u=n.useCallback(()=>s(!0),[]);return n.useEffect(()=>{c||s(!1)},[c]),e.jsxs(e.Fragment,{children:[c?t(o,u):null,e.jsx(Cr,{ready:c&&a,error:o.error,onRetry:()=>void o.refresh()})]})}function kn(t,o,a){const s=t.findIndex(d=>d.id===o),c=t.findIndex(d=>d.id===a);if(s<0||c<0||s===c)return[...t];const u=[...t],[m]=u.splice(s,1);return u.splice(c,0,m),u}function zo(){return typeof crypto.randomUUID=="function"?crypto.randomUUID():Array.from(crypto.getRandomValues(new Uint8Array(16)),t=>t.toString(16).padStart(2,"0")).join("")}function Un(t,o=zo()){return{id:o,command:t.trim()}}function Wo({commands:t,onChange:o,onExecute:a}){const[s,c]=n.useState(null),[u,m]=n.useState(""),[d,j]=n.useState(null),b=n.useRef(null),S=()=>{if(!s)return;const h=s.value.trim();if(!h)return m("命令不能为空");if(h.length>1e3)return m("命令最多 1000 个字符");if(/[\r\n\0]/.test(h))return m("命令只能包含一行");s.id?o(t.map(y=>y.id===s.id?{...y,command:h}:y)):o([...t,Un(h)]),c(null),m("")},l=(h,y)=>{h.preventDefault(),h.stopPropagation(),b.current=y,j(y),h.currentTarget.setPointerCapture(h.pointerId)},v=h=>{var g;if(!b.current)return;const y=(g=document.elementFromPoint(h.clientX,h.clientY))==null?void 0:g.closest("[data-pinned-id]"),w=y==null?void 0:y.dataset.pinnedId;w&&w!==b.current&&o(kn(t,b.current,w))},k=h=>{h.currentTarget.hasPointerCapture(h.pointerId)&&h.currentTarget.releasePointerCapture(h.pointerId),b.current=null,j(null)},L=(h,y)=>{if(h.key!=="ArrowUp"&&h.key!=="ArrowDown")return;h.preventDefault();const w=t.findIndex(C=>C.id===y),g=t[w+(h.key==="ArrowUp"?-1:1)];g&&o(kn(t,y,g.id))};return e.jsxs("section",{className:"pinned-commands","aria-labelledby":"pinned-command-title",children:[e.jsxs("div",{className:"pinned-command-head",children:[e.jsx("span",{id:"pinned-command-title",children:"置顶命令"}),e.jsx("button",{className:"history-icon-button",onClick:()=>{c({id:null,value:""}),m("")},"aria-label":"新增置顶命令",title:"新增置顶命令",children:e.jsx(Ge,{size:14,"aria-hidden":"true"})})]}),t.map(h=>(s==null?void 0:s.id)===h.id?e.jsx(En,{editor:s,error:u,onChange:y=>{c({...s,value:y}),m("")},onSave:S,onCancel:()=>{c(null),m("")}},h.id):e.jsxs("div",{className:`pinned-command-row${d===h.id?" pinned-command-dragging":""}`,"data-pinned-id":h.id,role:"button",tabIndex:0,onClick:()=>a(h.command),onKeyDown:y=>{(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),a(h.command))},children:[e.jsx("button",{className:"pinned-command-grip",onPointerDown:y=>l(y,h.id),onPointerMove:v,onPointerUp:k,onPointerCancel:k,onKeyDown:y=>L(y,h.id),onClick:y=>y.stopPropagation(),"aria-label":`调整 ${h.command} 的顺序`,title:"拖动排序,或按上下方向键",children:e.jsx(_r,{size:14,"aria-hidden":"true"})}),e.jsx("code",{children:h.command}),e.jsxs("div",{className:"pinned-command-actions",onClick:y=>y.stopPropagation(),children:[e.jsx("button",{className:"history-icon-button",onClick:()=>{c({id:h.id,value:h.command}),m("")},"aria-label":`编辑 ${h.command}`,title:"编辑",children:e.jsx(pt,{size:12,"aria-hidden":"true"})}),e.jsx("button",{className:"history-icon-button history-icon-danger",onClick:()=>o(t.filter(y=>y.id!==h.id)),"aria-label":`删除 ${h.command}`,title:"删除",children:e.jsx(xt,{size:12,"aria-hidden":"true"})})]})]},h.id)),(s==null?void 0:s.id)===null&&e.jsx(En,{editor:s,error:u,onChange:h=>{c({...s,value:h}),m("")},onSave:S,onCancel:()=>{c(null),m("")}})]})}function En({editor:t,error:o,onChange:a,onSave:s,onCancel:c}){return e.jsxs("div",{className:"pinned-command-editor",children:[e.jsx("input",{autoFocus:!0,value:t.value,maxLength:1e3,onChange:u=>a(u.target.value),onKeyDown:u=>{u.key==="Enter"&&s(),u.key==="Escape"&&c()},"aria-label":t.id?"编辑置顶命令":"新增置顶命令"}),e.jsx("button",{className:"history-icon-button",onClick:s,"aria-label":"保存命令",title:"保存",children:e.jsx(ut,{size:13,"aria-hidden":"true"})}),e.jsx("button",{className:"history-icon-button",onClick:c,"aria-label":"取消编辑",title:"取消",children:e.jsx(Ce,{size:13,"aria-hidden":"true"})}),o&&e.jsx("small",{role:"alert",children:o})]})}function Fo({csrfToken:t,terminalId:o,pinnedCommands:a,onPinnedCommandsChange:s,onFill:c,onExecute:u}){const[m,d]=n.useState([]),[j,b]=n.useState(""),[S,l]=n.useState(""),v=n.useCallback(async()=>{const w=new URLSearchParams({q:j,limit:"200"}),g=await fetch(`/api/web-console/history?${w}`,{credentials:"same-origin"});g.ok&&d((await g.json()).history)},[j]);n.useEffect(()=>{const w=setTimeout(v,200);return()=>clearTimeout(w)},[v]);const k=async w=>{await fetch("/api/web-console/history",{method:"DELETE",credentials:"same-origin",headers:{"content-type":"application/json","x-csrf-token":t},body:JSON.stringify({id:w})}),v()},L=w=>{o&&c(w)},h=n.useCallback(w=>{w==="[REDACTED]"||a.some(g=>g.command===w)||s([...a,Un(w)])},[s,a]),y=async w=>{const g=await Hr(w);l(g?"已复制命令":"复制失败,请长按命令手动复制")};return e.jsxs("div",{className:"history-panel",children:[e.jsx(Wo,{commands:a,onChange:s,onExecute:u}),e.jsxs("div",{className:"history-search",children:[e.jsx("input",{value:j,onChange:w=>b(w.target.value),placeholder:"搜索命令"}),e.jsx("button",{className:"history-icon-button",onClick:v,"aria-label":"刷新历史",title:"刷新历史",children:e.jsx(we,{size:13,"aria-hidden":"true"})})]}),S&&e.jsx("div",{className:"terminal-clipboard-notice",role:"status",children:S}),m.map(w=>e.jsxs("div",{className:`history-item${o?"":" history-item-disabled"}`,role:"button",tabIndex:o?0:-1,onClick:()=>L(w.command),onKeyDown:g=>{g.target===g.currentTarget&&(g.key==="Enter"||g.key===" ")&&o&&(g.preventDefault(),L(w.command))},children:[e.jsx("code",{children:w.command}),e.jsxs("small",{children:[w.cwd," · ",new Date(w.executedAt).toLocaleString()]}),e.jsxs("div",{className:"history-item-actions",onClick:g=>g.stopPropagation(),onPointerDown:g=>g.stopPropagation(),children:[e.jsx("button",{className:"history-icon-button",onClick:()=>void y(w.command),"aria-label":"复制命令",title:"复制",children:e.jsx(zr,{size:12,"aria-hidden":"true"})}),e.jsx("button",{className:"history-icon-button",disabled:!o,onClick:()=>L(w.command),"aria-label":"填入命令",title:"填入",children:e.jsx(ao,{size:12,"aria-hidden":"true"})}),e.jsx("button",{className:"history-icon-button",disabled:w.command==="[REDACTED]"||a.some(g=>g.command===w.command),onClick:()=>h(w.command),"aria-label":"置顶命令",title:"置顶",children:e.jsx(Wr,{size:12,"aria-hidden":"true"})}),e.jsx("button",{className:"history-icon-button history-icon-danger",onClick:()=>k(w.id),"aria-label":"删除历史",title:"删除",children:e.jsx(xt,{size:12,"aria-hidden":"true"})})]})]},w.id)),!m.length&&e.jsx("div",{className:"history-empty",children:"暂无 Shell 命令历史"}),!o&&!!m.length&&e.jsx("div",{className:"history-empty",children:"请先打开一个终端页签"})]})}function $o(t,o,a){const s=t.bottom+6,c=s+o<=a-8?s:t.top-o-6;return Math.max(8,Math.min(c,a-o-8))}function Uo({themeId:t,onThemeChange:o}){const[a,s]=n.useState(!1),c=n.useRef(null),u=n.useRef(null),m=n.useRef(null),[d,j]=n.useState(null),[b,S]=n.useState({top:-1e3,left:0});return n.useEffect(()=>{var l;j(((l=c.current)==null?void 0:l.closest(".web-root"))??document.body)},[]),n.useLayoutEffect(()=>{if(!a)return;const l=()=>{var y,w,g;const k=(y=u.current)==null?void 0:y.getBoundingClientRect();if(!k)return;const L=Math.min(176,innerWidth-16),h=(w=c.current)!=null&&w.closest(".compact-tools-panel, .glass-tools-sheet")?$o(k,((g=m.current)==null?void 0:g.offsetHeight)??0,innerHeight):k.bottom+6;S({top:h,left:Math.max(8,Math.min(innerWidth-L-8,k.right-L))})};l();const v=new ResizeObserver(l);return m.current&&v.observe(m.current),window.addEventListener("resize",l),window.addEventListener("scroll",l,!0),()=>{v.disconnect(),window.removeEventListener("resize",l),window.removeEventListener("scroll",l,!0)}},[a]),n.useEffect(()=>{if(!a)return;const l=k=>{var L,h;!((L=c.current)!=null&&L.contains(k.target))&&!((h=m.current)!=null&&h.contains(k.target))&&s(!1)},v=k=>{var L;k.key==="Escape"&&(s(!1),(L=u.current)==null||L.focus())};return document.addEventListener("pointerdown",l),document.addEventListener("keydown",v),()=>{document.removeEventListener("pointerdown",l),document.removeEventListener("keydown",v)}},[a]),e.jsxs("div",{ref:c,className:"theme-picker",children:[e.jsx("button",{ref:u,type:"button",className:"file-drawer-toggle","aria-label":"换肤",title:"换肤","aria-expanded":a,"aria-haspopup":"dialog",onClick:()=>s(l=>!l),children:e.jsx(Dn,{size:17,"aria-hidden":"true"})}),a&&d&&Ie.createPortal(e.jsxs("div",{ref:m,className:"theme-popover",role:"dialog","aria-label":"选择皮肤","data-toolbar-overlay":!0,style:{position:"fixed",...b,zIndex:210,width:Math.min(176,innerWidth-16),maxHeight:"calc(100dvh - 16px)",overflowY:"auto",boxSizing:"border-box",padding:8,borderRadius:10,border:"1px solid var(--ui-tabbar-border, #282b36)",background:"var(--ui-tab-active-bg, #262b38)",boxShadow:"0 10px 28px rgba(0,0,0,.45)"},children:[e.jsx("div",{style:{fontSize:10,color:"var(--ui-connection-text, #777b8c)",margin:"2px 4px 6px",letterSpacing:.5},children:"皮肤"}),e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:2},children:Tr.map(l=>{const v=l.id===t;return e.jsxs("button",{type:"button",className:"theme-popover-item","aria-label":l.label,"aria-pressed":v,onPointerDown:k=>k.stopPropagation(),onClick:()=>{o(l.id),s(!1)},style:{background:v?"color-mix(in srgb, var(--ui-tab-accent, #7aa2f7) 14%, transparent)":"transparent"},children:[e.jsx("span",{style:{width:18,height:18,borderRadius:5,flexShrink:0,background:`linear-gradient(135deg, ${l.preview[0]} 55%, ${l.preview[1]} 55%)`,boxShadow:"inset 0 0 0 1px rgba(128,128,160,.25)"}}),e.jsx("span",{style:{flex:1,textAlign:"left",fontSize:12,fontWeight:v?600:400,color:v?"var(--ui-tab-active-text, #edf0f7)":"var(--ui-tab-text, #8f93a4)"},children:l.label}),v&&e.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--ui-tab-accent, #7aa2f7)",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:e.jsx("path",{d:"m5 12 4 4L19 6"})})]},l.id)})})]}),d)]})}const Bn="agent-ui-prefs";function Bo(t){var o;try{const a=JSON.parse((t==null?void 0:t.getItem(Bn))??"null");return Rr((o=a==null?void 0:a.state)==null?void 0:o.navigationLayout)?a.state.navigationLayout:st}catch{return st}}function qo(t,o){return{height:Math.round((t==null?void 0:t.height)??o.height),width:Math.round((t==null?void 0:t.width)??o.width),top:Math.round((t==null?void 0:t.offsetTop)??0),left:Math.round((t==null?void 0:t.offsetLeft)??0)}}function Ho(t){t&&(t.scrollLeft=0)}const Vo="agent-webapp:tab-swipe:v1";function Go(t){if(!t||typeof t!="object")return null;const o=t;return o.type!==Vo||o.phase!=="move"&&o.phase!=="end"&&o.phase!=="cancel"||typeof o.deltaX!="number"||!Number.isFinite(o.deltaX)?null:o}function Yo(t,o,a){return t.origin!==o||t.source!==a?null:Go(t.data)}const jn="agent-webapp:ready:v1";function Ko(t){return!t||typeof t!="object"||t.type!==jn?null:{type:jn}}function Sn(t,o,a){return t.origin!==o||t.source!==a?null:Ko(t.data)}function Ve({groupId:t,title:o,onFrame:a,onLoad:s,view:c,discussionId:u}){const m=n.useRef(null),[d,j]=n.useState("loading"),[b,S]=n.useState(0),l=t===void 0;return n.useEffect(()=>{const v=k=>{var L,h,y;if(c==="sessions"||c==="messaging"){k.origin===window.location.origin&&k.source===((L=m.current)==null?void 0:L.contentWindow)&&((h=k.data)==null?void 0:h.type)===(c==="messaging"?Xr:Kr)&&j("ready");return}Vr(k,window.location.origin,((y=m.current)==null?void 0:y.contentWindow)??null,t??null)&&j("ready")};return window.addEventListener("message",v),()=>window.removeEventListener("message",v)},[t,c]),n.useEffect(()=>{if(d!=="loading")return;const v=window.setTimeout(()=>j(k=>k==="loading"?"error":k),3e4);return()=>window.clearTimeout(v)},[d,b]),e.jsxs("div",{className:"collaboration-pane","aria-busy":d==="loading",children:[e.jsx("iframe",{ref:v=>{m.current=v,a(v)},className:`webapp-frame collaboration-frame${d==="ready"?" is-ready":""}`,style:{visibility:d==="ready"?"visible":"hidden"},src:ct(c==="messaging"?"/app/?view=messaging":c==="sessions"?"/app/?view=session-dashboard":l?"/app/?view=collaboration-dashboard":`/app/?view=collaboration&groupId=${encodeURIComponent(t)}${u?`&discussionId=${encodeURIComponent(u)}`:""}`),title:o,onLoad:s,onError:()=>j("error")},b),d==="loading"&&e.jsx(Je,{label:"AGENT COLLABORATION",title:c==="messaging"?"正在打开消息接入":c==="sessions"?"正在打开会话 Dashboard":l?"正在打开群聊列表":"正在进入群聊",caption:c==="messaging"?"正在读取监听消息与处理记录":c==="sessions"?"正在核对运行会话与待决策事项":l?"正在加载已保存的群聊":"正在加载群成员与聊天记录",icon:e.jsx(bt,{size:36,strokeWidth:1.5})}),d==="error"&&e.jsxs("div",{className:"collaboration-load-error",role:"alert",children:[e.jsx("strong",{children:c==="messaging"?"暂时无法打开消息接入":c==="sessions"?"暂时无法打开会话 Dashboard":l?"暂时无法打开群聊列表":"暂时无法打开群聊"}),e.jsx("span",{children:"请检查连接后重试。"}),e.jsxs("button",{onClick:()=>{j("loading"),S(v=>v+1)},children:[e.jsx(we,{size:15}),"重新加载"]})]}),e.jsx("style",{jsx:!0,children:`
83
+ .collaboration-pane { position:relative; height:100%; background:var(--ui-term-col-bg, #101014); }
84
+ .collaboration-frame.is-ready { animation:collaboration-appear 220ms ease-out both; }
85
+ .collaboration-load-error { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; color:var(--ui-text, #e5e7eb); background:var(--ui-term-col-bg, #101014); padding:20px; text-align:center; }
86
+ .collaboration-load-error span { font-size:13px; color:var(--ui-text-muted, #9399aa); }
87
+ .collaboration-load-error button { display:inline-flex; align-items:center; gap:8px; margin-top:6px; min-height:44px; padding:10px 16px; border:1px solid var(--ui-muted-border, #ffffff24); border-radius:9px; background:transparent; color:inherit; font:inherit; cursor:pointer; }
88
+ .collaboration-load-error button:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
89
+ @keyframes collaboration-appear { from { opacity:0; } to { opacity:1; } }
90
+ @media (prefers-reduced-motion:reduce) { .collaboration-frame.is-ready { animation:none; } }
91
+ `})]})}function Cn(t){try{const o=JSON.parse(t||"null");if(!o||!Array.isArray(o.tabs))return null;const a=new Set,s=new Set(["webapp","aihub","flowstudio","remote-desktop","collaboration","collaboration-dashboard","session-dashboard","messaging"]),c=[];for(const u of o.tabs.slice(0,100))!u||typeof u.id!="string"||typeof u.title!="string"||a.has(u.id)||u.kind!==void 0&&!s.has(u.kind)||u.kind==="collaboration"&&typeof u.groupId!="string"||(a.add(u.id),c.push({id:u.id,title:u.title,...u.kind?{kind:u.kind}:{},...typeof u.groupId=="string"?{groupId:u.groupId}:{},...typeof u.discussionId=="string"&&/^[\w-]{1,200}$/.test(u.discussionId)?{discussionId:u.discussionId}:{}}));return{tabs:c,activeTerminalId:typeof o.activeTerminalId=="string"?o.activeTerminalId:null}}catch{return null}}function Jo(t,o,a){const s=new Map(o.filter(m=>m.status==="active"||m.status==="detached").map(m=>[m.id,{id:m.id,title:m.title}])),c=[],u=new Set;for(const m of[...(t==null?void 0:t.tabs)??[],...a,...s.values()])u.has(m.id)||!m.kind&&!s.has(m.id)||(u.add(m.id),c.push(m.kind?m:s.get(m.id)));return c}const Se={id:"remote-desktop",title:"远程桌面",kind:"remote-desktop"};function Tn(t){const o=t.find(a=>a.kind==="remote-desktop");return o?t.map(a=>a===o?{...Se}:a):[...t,{...Se}]}const Ae={id:"collaboration-dashboard",title:"群聊列表",kind:"collaboration-dashboard"};function Rn(t){return t.some(o=>o.id===Ae.id)?t:[...t,{...Ae}]}const Ye={id:"session-dashboard",title:"Dashboard",kind:"session-dashboard"},Ke={id:"messaging",title:"消息接入",kind:"messaging"};function Nn(t){return t.some(o=>o.id===Ke.id)?t:[...t,{...Ke}]}function Ln(t){return t.some(o=>o.id===Ye.id)?t:[...t,{...Ye}]}const Xo=_e(()=>Oe(()=>import("./TerminalPane-BLqkE0Sr.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url),{ssr:!1}),Qo=_e(()=>Oe(()=>import("./FileTree-W85iiqhO.js"),__vite__mapDeps([16,1,2,17,18,5,19,6,8]),import.meta.url),{ssr:!1}),Zo=_e(()=>Oe(()=>import("./FilePreview-CkY_jNql.js").then(t=>t.b),__vite__mapDeps([20,1,2,7,21,19,8,5,22]),import.meta.url),{ssr:!1}),ei=_e(()=>Oe(()=>import("./AiHubPane-DBuhzcId.js"),__vite__mapDeps([23,1,2,5,6,24,19,25]),import.meta.url),{ssr:!1}),ti=_e(()=>Oe(()=>import("./FlowStudioPane-Ccp0FhYn.js"),__vite__mapDeps([26,1,2,27,4,5,6,7,8,9,3,10,11,12,13,14]),import.meta.url),{ssr:!1,loading:()=>e.jsx(Je,{})});function ni(){return e.jsx(_o,{children:(t,o)=>e.jsx(ii,{auth:t,onWorkspaceReady:o})})}const ae={id:"webapp-agent",title:"智能助手",kind:"webapp"},Pn={id:"ai-hub",title:"AI Hub",kind:"aihub"},In={id:"flow-studio",title:"Flow Studio",kind:"flowstudio"};function ri(){var t;return typeof document>"u"?Ar:lt((t=document.getElementById("web-theme-root"))==null?void 0:t.dataset.webTheme).id}const oi="agent-web-shell:skin:v1";function ii({auth:t,onWorkspaceReady:o}){var Wt,Ft,$t,Ut;const[a,s]=n.useState(null),c=n.useRef(null),[u,m]=n.useState(0),d=n.useCallback(r=>{if((r==null?void 0:r.openMode)==="new-tab"){window.open(r.url,"_blank","noopener,noreferrer");return}s(r)},[]),j=n.useCallback(r=>s((r==null?void 0:r.openMode)==="current"?r:null),[]),b=n.useRef(null),S=n.useRef(null),l=n.useRef(null),v=n.useRef(null),k=n.useRef(null),L=n.useRef(null),h=n.useRef(!1),[y,w]=n.useState({}),g=n.useRef(new Map),[C,R]=n.useState(0),[O,F]=n.useState(!1),[Q,ne]=n.useState(!1),X=n.useRef(()=>{}),oe=n.useCallback(r=>{var f;const i=Io(r);if(!(!i||i.type!==gt.watcherFrame)){X.current(i.channelId,i.sequence);for(const x of[b,S]){if(!((f=x.current)!=null&&f.contentWindow))continue;const E=i.payload.slice().buffer;x.current.contentWindow.postMessage({type:Nr,channelId:i.channelId,sequence:i.sequence,data:E},window.location.origin,[E])}}},[]),{state:M,epoch:T,rpc:N,onEvent:D,onTerminalData:B,onTerminalReset:_,sendTerminalInput:P}=Mo(oe,t.getWsNonce,t.refresh),Y=n.useMemo(()=>({request:(r,i,f)=>N(r,i,f),subscribe:(r,i)=>D("fs:event",i)}),[D,N]);X.current=(r,i)=>{N("browser:frame-ack",{channelId:r,sequence:i}).catch(()=>{})};const[I,H]=n.useState([{...ae}]),U=n.useRef(I);U.current=I;const[A,p]=n.useState(ae.id);Do(c,A,!a);const[z,K]=n.useState({}),q=n.useRef(!1),[V,Z]=n.useState(!1),[xe,ze]=n.useState(0),he=`agentroam:workspace:${typeof window>"u"?"":De()}:${((Wt=t.user)==null?void 0:Wt.id)??""}`,vt=n.useRef(null),ye=n.useRef(new Map),We=n.useRef(new Map),qn=n.useCallback((r,i)=>{ye.current.set(r,i);const f=window.setTimeout(()=>{if(ye.current.get(r)!==i)return;const x=We.current.get(r);x&&(We.current.delete(r),i(x,!0))},180);return()=>{window.clearTimeout(f),ye.current.get(r)===i&&ye.current.delete(r)}},[]),Hn=n.useCallback(r=>{var f;if(!A||(f=I.find(x=>x.id===A))!=null&&f.kind)return;const i=ye.current.get(A);i?i(r):N("term:input",{id:A,data:`${r}`}).catch(()=>{}),le(!1)},[A,N,I]),[ve,Vn]=n.useState(!1),[Te,Xe]=n.useState({}),[de,Fe]=n.useState(null),[ce,le]=n.useState(!1),[ge,$e]=n.useState("files"),[Re,kt]=n.useState(null),[Ne,Et]=n.useState(!0),[Gn,Yn]=n.useState(null),[Qe,jt]=n.useState(!1),[Ze,St]=n.useState([]),[et,Ct]=n.useState(No()),[ke,Tt]=n.useState(ri),[Rt,Kn]=n.useState(st),[Nt,Jn]=n.useState(!1);n.useEffect(()=>{const r=()=>{try{Kn(Bo(window.localStorage))}catch{}Jn(!0)},i=f=>{(f.key===Bn||f.key===null)&&r()};return r(),window.addEventListener("storage",i),()=>window.removeEventListener("storage",i)},[]);const[Lt,Xn]=n.useState(!1),ue=To(t.csrfToken),[Pt,Qn]=n.useState(!1),re=lt(ke),Ee=n.useRef(null),[Zn,tt]=n.useState(0),[er,nt]=n.useState(!1),rt=n.useRef(null),It=n.useRef(null),At=n.useCallback(r=>{var f;const i=[b.current,S.current,l.current,v.current,k.current,...g.current.values()];for(const x of i)(f=x==null?void 0:x.contentWindow)==null||f.postMessage({type:oi,skin:r},window.location.origin)},[]),ie=n.useCallback(()=>{var i;if(At(ke),!Nt)return;const r=[b.current,S.current,l.current,v.current,k.current,...g.current.values()];for(const f of r)(i=f==null?void 0:f.contentWindow)==null||i.postMessage({type:Lr,navigationLayout:Rt},window.location.origin)},[ke,Rt,Nt,At]);n.useEffect(()=>{ie()},[ie]),n.useEffect(()=>{const r=re.cssVars["--ui-root-bg"],i=re.cssVars["--ui-color-scheme"],f=document.getElementById("web-theme-root");for(const[E,$]of Object.entries(re.cssVars))f==null||f.style.setProperty(E,$);f&&(f.dataset.webTheme=re.id),document.documentElement.style.background=r,document.documentElement.style.colorScheme=i,document.body.style.background=r,document.body.style.colorScheme=i;let x=document.querySelector('meta[name="theme-color"]');x||(x=document.createElement("meta"),x.name="theme-color",document.head.append(x)),x.content=re.cssVars["--ui-tabbar-bg"]},[re]),n.useEffect(()=>{const r=i=>{var Bt,qt,Ht,Vt,Gt,Yt,Kt,Jt,Xt,Qt,Zt,en,tn,nn,rn,on,an,sn,cn,ln,dn;if(Zr(i,window.location.origin,((Bt=b.current)==null?void 0:Bt.contentWindow)??null)){s(null),H(Nn),p(Ke.id);return}const f=((qt=l.current)==null?void 0:qt.contentWindow)??null,x=[(Ht=b.current)==null?void 0:Ht.contentWindow,f,(Vt=v.current)==null?void 0:Vt.contentWindow,(Gt=k.current)==null?void 0:Gt.contentWindow,...[...g.current.values()].map(W=>W.contentWindow)].find(W=>W&&W===i.source)??null,E=Jr(i,window.location.origin,x);if(E){if(s(null),E.kind==="dashboard")H(Ln),p(Ye.id);else if(E.kind==="groups")H(Rn),p(Ae.id);else if(E.kind==="group"){const W=`collaboration-${E.groupId}`,J={id:W,title:E.title,kind:"collaboration",groupId:E.groupId,discussionId:E.discussionId};H(fe=>fe.some(qe=>qe.id===W)?fe.map(qe=>qe.id===W?J:qe):[...fe,J]),p(W)}else h.current?(Kt=(Yt=b.current)==null?void 0:Yt.contentWindow)==null||Kt.postMessage({type:gn,intent:E},window.location.origin):L.current=E,p(ae.id);return}const $=Gr(i,window.location.origin,f);if($){H(W=>$.deleted?W.filter(J=>J.groupId!==$.groupId):W.map(J=>J.groupId===$.groupId?{...J,title:$.title}:J)),$.deleted?p(W=>W===`collaboration-${$.groupId}`?Ae.id:W):w(W=>({...W,[$.groupId]:(W[$.groupId]||0)+1}));return}const G=Yr(i,window.location.origin,i.source===f?f:((Jt=b.current)==null?void 0:Jt.contentWindow)??null);if(G){const W=`collaboration-${G.groupId}`;H(J=>J.some(fe=>fe.id===W)?J:[...J,{id:W,title:G.title,kind:"collaboration",groupId:G.groupId}]),p(W);return}const ee=((Xt=S.current)==null?void 0:Xt.contentWindow)??null,te=to(i,window.location.origin,ee);if(te!==null){F(te);return}if(Sn(i,window.location.origin,ee)){F(!1),R(W=>W+1),ne(!1),ie();return}if(ee&&i.origin===window.location.origin&&i.source===ee&&((Qt=i.data)==null?void 0:Qt.type)===no){ne(!0);return}if(i.origin===window.location.origin&&i.source===ee&&ee&&((Zt=i.data)==null?void 0:Zt.type)===ro){F(!1),N("browser:unwatch").catch(()=>{}),H(W=>W.filter(J=>J.kind!=="remote-desktop")),R(0),ne(!1),p(ae.id);return}if(Mr(i,window.location.origin,((en=b.current)==null?void 0:en.contentWindow)??null)){H(Tn),p(Se.id);return}if(Sn(i,window.location.origin,((tn=b.current)==null?void 0:tn.contentWindow)??null)){h.current=!0,Qn(!0),ie(),o(),L.current&&((rn=(nn=b.current)==null?void 0:nn.contentWindow)==null||rn.postMessage({type:gn,intent:L.current},window.location.origin),L.current=null);return}const ur=(on=[...g.current.values()].find(W=>W.contentWindow===i.source))==null?void 0:on.contentWindow,Le=$r(i,window.location.origin,ur??((an=b.current)==null?void 0:an.contentWindow)??null);if(Le){const W=J=>{$e("files"),le(!hn(J)),Fe(J),hn(J)||Yn({...Le,path:J})};Le.path.startsWith("~/")?N("hello").then(({home:J})=>{const fe=Ur(Le.path,null,J);fe&&W(fe)}).catch(()=>{}):W(Le.path);return}const be=i.source===ee&&ee?ee:((sn=b.current)==null?void 0:sn.contentWindow)??null,je=Dr(i,window.location.origin,be);if(je){N(je.method,{...je.payload,...je.method==="browser:watch"?{frameAck:!0}:{}}).then(W=>{be==null||be.postMessage({type:mn,id:je.id,ok:!0,result:W},window.location.origin)},W=>{be==null||be.postMessage({type:mn,id:je.id,ok:!1,error:W.message||"浏览器操作失败",code:W.code},window.location.origin)});return}Lo(i,window.location.origin,[((cn=b.current)==null?void 0:cn.contentWindow)??null,f,((ln=v.current)==null?void 0:ln.contentWindow)??null,((dn=k.current)==null?void 0:dn.contentWindow)??null,...[...g.current.values()].map(W=>W.contentWindow)],N)};return window.addEventListener("message",r),()=>window.removeEventListener("message",r)},[o,N,ie]),n.useEffect(()=>{const r=x=>{var E,$;for(const G of[b,S])($=(E=G.current)==null?void 0:E.contentWindow)==null||$.postMessage({type:it,event:x},window.location.origin)},f=["browser:session","browser:frame","browser:state","browser:closed","browser:webrtc"].map(x=>D(x,r));return()=>f.forEach(x=>x())},[D]),n.useEffect(()=>{var r,i;Pt&&((i=(r=b.current)==null?void 0:r.contentWindow)==null||i.postMessage({type:it,event:{type:"browser:connection",connected:M.connected,epoch:T}},window.location.origin))},[M.connected,T,Pt]),n.useEffect(()=>{var r,i;C&&((i=(r=S.current)==null?void 0:r.contentWindow)==null||i.postMessage({type:eo,visible:A===Se.id},window.location.origin))},[A,C]),n.useEffect(()=>{var r,i;C&&((i=(r=S.current)==null?void 0:r.contentWindow)==null||i.postMessage({type:it,event:{type:"browser:connection",connected:M.connected,epoch:T}},window.location.origin))},[M.connected,T,C]);const Mt=n.useRef(0),Dt=A?z[A]??null:null;n.useEffect(()=>{const r=window.visualViewport;let i=null,f="";const x=()=>{const E=qo(r,{height:window.innerHeight,width:window.innerWidth}),$=`${E.width}x${E.height}+${E.top}+${E.left}`;$!==f&&(f=$,document.documentElement.style.setProperty("--vv-height",`${E.height}px`),document.documentElement.style.setProperty("--vv-width",`${E.width}px`),document.documentElement.style.setProperty("--vv-top",`${E.top}px`),document.documentElement.style.setProperty("--vv-left",`${E.left}px`),i&&window.clearTimeout(i),i=window.setTimeout(x,250))};return x(),r==null||r.addEventListener("resize",x),r==null||r.addEventListener("scroll",x),window.addEventListener("orientationchange",x),window.addEventListener("resize",x),document.addEventListener("visibilitychange",x),window.addEventListener("pageshow",x),()=>{r==null||r.removeEventListener("resize",x),r==null||r.removeEventListener("scroll",x),window.removeEventListener("orientationchange",x),window.removeEventListener("resize",x),document.removeEventListener("visibilitychange",x),window.removeEventListener("pageshow",x),i&&window.clearTimeout(i),document.documentElement.style.removeProperty("--vv-height"),document.documentElement.style.removeProperty("--vv-width"),document.documentElement.style.removeProperty("--vv-top"),document.documentElement.style.removeProperty("--vv-left")}},[]),n.useEffect(()=>{fetch("/api/web-console/preferences",{credentials:"same-origin"}).then(r=>r.json()).then(r=>{var i,f,x,E;typeof((i=r.preferences)==null?void 0:i.keybarHidden)=="boolean"&&jt(r.preferences.keybarHidden),Array.isArray((f=r.preferences)==null?void 0:f.keyOrder)&&St(r.preferences.keyOrder),Array.isArray((x=r.preferences)==null?void 0:x.pinnedCommands)&&Ct(r.preferences.pinnedCommands),(E=r.preferences)!=null&&E.theme&&Tt(lt(r.preferences.theme).id)}).catch(()=>{}).finally(()=>Xn(!0)),fetch("/api/web-console/device-state",{credentials:"same-origin"}).then(r=>r.json()).then(r=>{const i=r.deviceState;i!=null&&i.drawerTab&&$e(i.drawerTab),i!=null&&i.activeTerminalId&&(vt.current=i.activeTerminalId),typeof(i==null?void 0:i.drawerOpen)=="boolean"&&le(i.drawerOpen),i!=null&&i.fileTreeRoot&&kt(i.fileTreeRoot),typeof(i==null?void 0:i.fileTreeFollowMode)=="boolean"&&Et(i.fileTreeFollowMode),i!=null&&i.selectedFile&&Fe(i.selectedFile),i!=null&&i.terminalScroll&&typeof i.terminalScroll=="object"&&Xe(i.terminalScroll)}).catch(()=>{}).finally(()=>Vn(!0))},[]);const Ot=n.useCallback(r=>{fetch("/api/web-console/preferences",{method:"PATCH",credentials:"same-origin",headers:{"content-type":"application/json","x-csrf-token":t.csrfToken},body:JSON.stringify(r)}).catch(()=>{})},[t.csrfToken]);n.useEffect(()=>{if(!Lt)return;const r=setTimeout(()=>Ot({keybarHidden:Qe,keyOrder:Ze,pinnedCommands:et,theme:ke}),500);return()=>clearTimeout(r)},[Qe,Ze,et,ke,Lt,Ot]);const Ue=n.useCallback(r=>{t.csrfToken&&fetch("/api/web-console/device-state",{method:"PUT",credentials:"same-origin",keepalive:!0,headers:{"content-type":"application/json","x-csrf-token":t.csrfToken},body:JSON.stringify(r)}).catch(()=>{})},[t.csrfToken]);n.useEffect(()=>{if(!t.csrfToken||!V||!ve)return;const r=setTimeout(()=>Ue({activeTerminalId:A,drawerOpen:ce,drawerTab:ge,fileTreeRoot:Re,fileTreeFollowMode:Ne,selectedFile:de,terminalScroll:Te}),500);return()=>clearTimeout(r)},[A,ce,ge,Re,Ne,de,Te,t.csrfToken,Ue,V,ve]),n.useEffect(()=>{if(!t.csrfToken||!V||!ve)return;const r=()=>Ue({activeTerminalId:A,drawerOpen:ce,drawerTab:ge,fileTreeRoot:Re,fileTreeFollowMode:Ne,selectedFile:de,terminalScroll:Te});return window.addEventListener("pagehide",r),()=>window.removeEventListener("pagehide",r)},[A,ce,ge,Re,Ne,de,Te,t.csrfToken,Ue,V,ve]);const tr=n.useCallback(r=>{Fe(r),le(!1)},[]),nr=n.useCallback(()=>{if(I.length>=8)return;const r=`t-web-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`;H(i=>i.length>=8?i:[...i,{id:r,title:`Terminal ${i.length+1}`}]),p(r)},[I.length]),rr=n.useCallback(r=>{const i=I.find(E=>E.id===A);if(i!=null&&i.kind&&i.kind!=="webapp")return;if(i&&!i.kind){const E=ye.current.get(i.id);E?E(r,!0):We.current.set(i.id,r),le(!1);return}const f=I.length>=8?I.find(E=>!E.kind):null,x=(f==null?void 0:f.id)??`t-web-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`;f?We.current.set(x,r):H(E=>[...E,{id:x,title:`Terminal ${E.length+1}`,initialCommand:r}]),p(x),le(!1)},[A,I]);n.useEffect(()=>{if(!M.connected||!ve||q.current)return;q.current=!0;let r=!1,i=!1,f;return N("term:list").then(x=>{if(r)return;let E=null;try{E=Cn(localStorage.getItem(he))}catch{}const $=Jo(E,x.tabs,U.current);H($),p(G=>{const ee=U.current.find(me=>me.id===G&&me.kind&&me.kind!=="webapp");if(ee)return ee.id;const te=(E==null?void 0:E.activeTerminalId)||vt.current||G||ae.id;return te===ae.id?ae.id:$.some(me=>me.id===te)?te:ae.id}),i=!0,Z(!0)}).catch(()=>{r||(q.current=!1,f=setTimeout(()=>ze(x=>x+1),2e3))}),()=>{r=!0,clearTimeout(f),i||(q.current=!1)}},[M.connected,ve,N,he,xe]),n.useLayoutEffect(()=>{if(V)try{const r=Cn(JSON.stringify({tabs:I,activeTerminalId:A}));localStorage.setItem(he,JSON.stringify(r))}catch{}},[I,A,V,he]);const or=r=>{var f;if(r===ae.id)return;const i=(f=I.find(x=>x.id===r))==null?void 0:f.kind;i==="remote-desktop"&&(R(0),ne(!1),N("browser:unwatch").catch(()=>{})),!(!i&&!window.confirm("关闭页签会终止该终端进程,确认关闭?"))&&(H(x=>{var $;const E=x.filter(G=>G.id!==r);return A===r&&p((($=E[0])==null?void 0:$.id)??null),E}),i||N("term:kill",{id:r}).catch(()=>{}))},ir=n.useCallback(()=>{H(r=>{const i=r.find(f=>f.kind==="aihub");return i?(p(i.id),r):(p(Pn.id),[...r,{...Pn}])})},[]),ar=n.useCallback(()=>{H(r=>{const i=r.find(f=>f.kind==="flowstudio");return i?(p(i.id),r):(p(In.id),[...r,{...In}])})},[]),sr=n.useCallback(()=>{H(Tn),p(Se.id)},[]);n.useEffect(()=>{const r=D("term:exited",i=>{const f=i==null?void 0:i.id;f&&(H(x=>{const E=x.filter($=>$.id!==f);return p($=>{var G;return $===f?((G=E[0])==null?void 0:G.id)??null:$}),E}),Xe(x=>{if(!(f in x))return x;const E={...x};return delete E[f],E}))});return()=>{r()}},[D]);const _t=n.useCallback(r=>{if(!A||I.length<2)return;const f=(I.findIndex(x=>x.id===A)+r+I.length)%I.length;p(I[f].id)},[A,I]),zt=Math.max(0,I.findIndex(r=>r.id===A)),cr=((Ft=I[zt])==null?void 0:Ft.kind)==="webapp"?re.cssVars["--ui-term-col-bg"]:re.termHostBg,lr={...se.root,...re.cssVars,"--ui-active-content-bg":cr,"--ui-terminal-bg":re.termHostBg,"--ui-primary-text":re.keybar.accentText,background:"var(--ui-root-bg)",color:"var(--ui-text)"},pe=n.useCallback(()=>{Ee.current=null,tt(0),nt(!1)},[]),ot=n.useCallback(r=>{Math.abs(r)>=64&&I.length>1&&_t(r<0?1:-1),pe()},[I.length,_t,pe]),dr=r=>r instanceof Element&&!!r.closest(".terminal-screen");n.useEffect(()=>{const r=i=>{var x;if(A!==ae.id)return;const f=Yo(i,window.location.origin,((x=b.current)==null?void 0:x.contentWindow)??null);f&&(f.phase==="move"?(nt(!0),tt(f.deltaX)):f.phase==="end"?ot(f.deltaX):pe())};return window.addEventListener("message",r),()=>window.removeEventListener("message",r)},[A,ot,pe]);const Be=n.useCallback((r="smooth")=>{const i=It.current;if(!i||!A)return;const f=i.querySelector(`[data-terminal-id="${A}"]`);if(!f)return;if(f===i.querySelector("[data-terminal-id]")){Ho(i);return}const x=i.querySelector(".terminal-connection"),E=(x==null?void 0:x.offsetWidth)??0,$=8,G=f.offsetLeft,ee=G+f.offsetWidth,te=i.scrollLeft,me=te+i.clientWidth-E;G<te+$?i.scrollTo({left:Math.max(0,G-$),behavior:r}):ee>me-$&&i.scrollTo({left:ee-i.clientWidth+E+$,behavior:r})},[A]);return n.useLayoutEffect(()=>{if(!A)return;const r=I.length>Mt.current;Mt.current=I.length,Be(r?"auto":"smooth")},[A,I.length,Be]),n.useEffect(()=>{const r=()=>requestAnimationFrame(()=>Be("auto"));return window.addEventListener("pageshow",r),()=>window.removeEventListener("pageshow",r)},[Be]),e.jsxs("div",{className:`web-root ${O&&A===Se.id&&!a?"is-remote-fullscreen":""}`,style:lr,children:[e.jsx("style",{dangerouslySetInnerHTML:{__html:Pr}}),e.jsxs("div",{className:"terminal-tabs",children:[a&&e.jsxs("div",{className:"computer-page-heading",children:[e.jsx("button",{type:"button",className:"file-drawer-toggle","aria-label":"返回电脑会话",title:"返回电脑会话",onClick:()=>s(null),children:e.jsx(oo,{size:18})}),e.jsx("span",{children:a.name}),e.jsx("a",{className:"file-drawer-toggle",href:a.url,target:"_blank",rel:"noopener noreferrer","aria-label":"在新页面打开当前页面",title:"打开原页面",children:e.jsx(yt,{size:16})})]}),e.jsx("div",{className:"terminal-tab-list",ref:It,hidden:!!a,children:I.map(r=>e.jsxs("div",{"data-terminal-id":r.id,draggable:!0,className:`terminal-tab ${r.id===A?"active":""}`,onDragStart:()=>{rt.current=r.id},onDragOver:i=>i.preventDefault(),onDrop:i=>{i.preventDefault();const f=rt.current;rt.current=null,!(!f||f===r.id)&&H(x=>{const E=x.findIndex(te=>te.id===f),$=x.findIndex(te=>te.id===r.id);if(E<0||$<0)return x;const G=[...x],[ee]=G.splice(E,1);return G.splice($,0,ee),N("term:reorder",{ids:G.filter(te=>!te.kind).map(te=>te.id)}).catch(()=>{}),G})},onClick:()=>p(r.id),onDoubleClick:()=>{var f;if(r.kind)return;const i=(f=window.prompt("页签名称",r.title))==null?void 0:f.trim();i&&N("term:rename",{id:r.id,title:i}).then(()=>H(x=>x.map(E=>E.id===r.id?{...E,title:i}:E))).catch(()=>{})},children:[e.jsx("span",{children:r.title}),r.kind!=="webapp"&&e.jsx("button",{tabIndex:-1,onClick:i=>{i.stopPropagation(),or(r.id)},children:"×"})]},r.id))}),e.jsx("button",{className:"terminal-add","aria-label":"新建终端页签",hidden:!!a,disabled:I.length>=8,onClick:nr,children:"+"}),e.jsx("div",{className:"terminal-connection",children:e.jsx(Ir,{sortingDisabled:!ue.loaded||ue.saving,onReorder:(r,i)=>{const f=ue.settings.visibleTools,x=f.includes("messaging")?f:["messaging",...f];return ue.setVisibleTools(jo(x,r,i))},avatar:e.jsx(xo,{username:(($t=t.user)==null?void 0:$t.username)??"?",connected:M.connected,accent:re.keybar.accent,accentText:re.keybar.accentText,selectedPageId:a==null?void 0:a.id,onSelectPage:d,onUpdatePage:j,configuration:ue,csrfToken:t.csrfToken}),items:[{id:"refresh",content:e.jsx("button",{type:"button",className:"file-drawer-toggle","aria-label":"刷新页面",title:"刷新页面",onClick:()=>a?m(r=>r+1):window.location.reload(),children:e.jsx(we,{size:17,"aria-hidden":"true"})})},{id:"dashboard",content:e.jsx("button",{type:"button",className:"file-drawer-toggle","aria-label":"打开进行中的 Agent 会话",title:"进行中的 Agent 会话",onClick:()=>{s(null),H(Ln),p(Ye.id)},children:e.jsx(zn,{size:17,"aria-hidden":"true"})})},{id:"messaging",content:e.jsx("button",{type:"button",className:"file-drawer-toggle","aria-label":"打开消息接入",title:"消息接入 · 监听与路由",onClick:()=>{s(null),H(Nn),p(Ke.id)},children:e.jsx(Qr,{size:17,"aria-hidden":"true"})})},{id:"collaboration",content:e.jsx("button",{type:"button",className:"file-drawer-toggle","aria-label":"打开群聊列表",title:"群聊列表",onClick:()=>{s(null),H(Rn),p(Ae.id)},children:e.jsx(bt,{size:17,"aria-hidden":"true"})})},{id:"install",content:e.jsx(co,{})},{id:"remote",content:e.jsx("button",{type:"button",className:"file-drawer-toggle","aria-label":"打开远程桌面",title:"远程桌面 · 浏览器直播",onClick:()=>{s(null),sr()},children:e.jsx(at,{size:17,"aria-hidden":"true"})})},{id:"ai-hub",content:e.jsx("button",{type:"button",className:"file-drawer-toggle","aria-label":"打开 AI Hub",title:"AI Hub · 多模型对比",onClick:()=>{s(null),ir()},children:e.jsx(On,{size:17,"aria-hidden":"true"})})},{id:"flow",content:e.jsx("button",{type:"button",className:"file-drawer-toggle","aria-label":"打开数字人",title:"数字人 · Flow Studio",onClick:()=>{s(null),ar()},children:e.jsx(wt,{size:17,"aria-hidden":"true"})})},{id:"theme",content:e.jsx(Uo,{themeId:ke,onThemeChange:Tt})},{id:"files",content:e.jsx("button",{type:"button",className:"file-drawer-toggle","aria-label":ce?"关闭我的文件":"打开我的文件",title:"我的文件","aria-expanded":ce,onClick:()=>{s(null),le(r=>!r)},children:e.jsx(qr,{size:17,"aria-hidden":"true"})})}].filter(r=>r.id==="messaging"||ue.settings.visibleTools.some(i=>i===r.id)).sort((r,i)=>ue.settings.visibleTools.findIndex(f=>f===r.id)-ue.settings.visibleTools.findIndex(f=>f===i.id))})})]}),e.jsxs("main",{className:`workspace ${ce?"show-tree":""} ${de?"has-preview":""}`,hidden:!!a,style:se.workspace,children:[e.jsx("section",{className:"term-col",style:se.termCol,onPointerDownCapture:r=>{r.pointerType!=="touch"||!dr(r.target)||(pe(),Ee.current={x:r.clientX,y:r.clientY,axis:"pending",pointerId:r.pointerId})},onPointerMoveCapture:r=>{const i=Ee.current;if(!i||r.pointerId!==i.pointerId||r.pointerType!=="touch")return;const f=r.clientX-i.x,x=r.clientY-i.y;if(i.axis==="pending"){if(Math.max(Math.abs(f),Math.abs(x))<=8)return;if(Math.abs(x)>=Math.abs(f)*1.2){Ee.current=null;return}i.axis="horizontal",nt(!0);const E=$=>{window.removeEventListener("pointerup",E),window.removeEventListener("pointercancel",E),Ee.current===i&&pe()};window.addEventListener("pointerup",E),window.addEventListener("pointercancel",E)}i.axis==="horizontal"&&(r.preventDefault(),tt(f))},onPointerUpCapture:r=>{const i=Ee.current;if(!i||r.pointerId!==i.pointerId)return;const f=r.clientX-i.x;i.axis==="horizontal"&&Math.abs(f)>=64?ot(f):pe()},onPointerCancelCapture:pe,children:e.jsx("div",{ref:c,className:"terminal-track",style:{transform:`translate3d(calc(${-zt*100}% + ${Zn}px),0,0)`,transition:er?"none":"transform 260ms cubic-bezier(.22,.8,.32,1)"},children:I.map(r=>e.jsx("div",{className:"terminal-slide","data-console-tab":r.id,style:{position:"relative"},children:r.kind==="webapp"?e.jsx("iframe",{ref:b,className:"webapp-frame",src:ct("/app/"),title:r.title,onLoad:ie}):r.kind==="messaging"?e.jsx(Ve,{view:"messaging",title:"消息接入",onFrame:i=>{k.current=i},onLoad:ie}):r.kind==="session-dashboard"?e.jsx(Ve,{view:"sessions",title:"会话 Dashboard",onFrame:i=>{v.current=i},onLoad:ie}):r.kind==="collaboration-dashboard"?e.jsx(Ve,{title:"群聊列表",onFrame:i=>{l.current=i},onLoad:ie}):r.kind==="collaboration"?e.jsx(Ve,{groupId:r.groupId||"",discussionId:r.discussionId,title:r.title,onFrame:i=>{i?g.current.set(r.id,i):g.current.delete(r.id)},onLoad:ie},`${r.id}-${r.discussionId??""}-${y[r.groupId||""]||0}`):r.kind==="remote-desktop"?e.jsxs("div",{style:{height:"100%",background:"var(--ui-term-col-bg, #101014)"},"aria-busy":!Q,children:[e.jsx("iframe",{ref:S,className:"webapp-frame",style:{visibility:Q?"visible":"hidden"},src:ct("/app/?view=remote-desktop"),title:"远程桌面",onLoad:ie}),!Q&&e.jsx(Je,{label:"REMOTE DESKTOP",title:"正在打开远程桌面",caption:"正在准备桌面与连接",icon:e.jsx(at,{size:36,strokeWidth:1.5})})]}):r.kind==="aihub"?e.jsx(ei,{visible:r.id===A,rpc:N}):r.kind==="flowstudio"?e.jsx(ti,{visible:r.id===A}):e.jsx(Xo,{terminalId:r.id,title:r.title,initialCommand:r.initialCommand,visible:r.id===A,state:M,rpc:N,onEvent:D,onTerminalData:B,onTerminalReset:_,sendTerminalInput:P,keyOrder:Ze,keybarHidden:Qe,onKeyOrderChange:St,onKeybarHiddenChange:jt,terminalTheme:re,initialScrollLine:Te[r.id]??null,onScrollLineChange:i=>Xe(f=>f[r.id]===i?f:{...f,[r.id]:i}),onRegisterFill:i=>qn(r.id,i),onCwdChange:i=>i&&K(f=>({...f,[r.id]:i}))})},r.id))})}),ce&&e.jsx("div",{className:"drawer-mask",onClick:()=>le(!1)}),e.jsxs("aside",{className:`tree-col ${ce?"tree-col-open":""}`,style:se.treeCol,children:[e.jsxs("div",{className:"tree-head",style:se.treeHead,children:[e.jsx("button",{className:ge==="files"?"drawer-tab-active":"",onClick:()=>$e("files"),children:"文件"}),e.jsx("button",{className:ge==="history"?"drawer-tab-active":"",onClick:()=>$e("history"),children:"历史"}),e.jsx("span",{className:"tree-cwd",style:se.treeCwd,children:Dt??""}),e.jsx("button",{style:{...se.iconBtn,marginLeft:"auto",flexShrink:0},onClick:()=>le(!1),"aria-label":"close drawer",children:e.jsx(Ce,{size:15,"aria-hidden":"true"})})]}),ge==="files"?e.jsx(Qo,{ready:T>0,followCwd:!0,cwd:Dt,gateway:Y,onOpenFile:tr,selectedPath:de,initialRoot:Re,initialFollow:Ne,revealRequest:Gn,onTreeStateChange:(r,i)=>{kt(r),Et(i)}}):e.jsx(Fo,{csrfToken:t.csrfToken,terminalId:((Ut=I.find(r=>r.id===A))==null?void 0:Ut.kind)==="webapp"?null:A,pinnedCommands:et,onPinnedCommandsChange:Ct,onFill:Hn,onExecute:rr}),e.jsxs("div",{className:"tree-foot",style:se.treeFoot,children:[e.jsx("span",{style:se.treeFootDot}),e.jsx("span",{children:"实时同步"})]})]}),de&&e.jsx("section",{className:"preview-col",style:se.previewCol,children:e.jsx(Zo,{path:de,gateway:Y,onClose:()=>Fe(null)})})]}),a&&e.jsx(Eo,{page:a,reloadKey:u},a.id)]})}const se={root:{height:"100dvh",display:"flex",flexDirection:"column",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", sans-serif',overflow:"hidden"},iconBtn:{minWidth:28,height:28,borderRadius:7,border:"1px solid var(--ui-tabbar-border, #303442)",background:"var(--ui-tab-bg, #202029)",color:"var(--ui-tab-text, #aaaab8)",fontSize:13},workspace:{flex:1,minHeight:0,display:"grid",position:"relative"},treeCol:{background:"var(--ui-tree-bg, #121218)",minHeight:0,flexDirection:"column"},treeHead:{display:"flex",alignItems:"center",gap:8,padding:"10px 12px 4px",fontSize:11,textTransform:"uppercase",letterSpacing:1,color:"#778",flexShrink:0},treeCwd:{fontSize:10,color:"#556",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:150,textTransform:"none",letterSpacing:0},treeFoot:{display:"flex",alignItems:"center",gap:7,minHeight:31,padding:"6px 11px calc(env(safe-area-inset-bottom) + 6px)",borderTop:"1px solid var(--ui-tabbar-border, #282832)",boxShadow:"0 -5px 16px rgba(0,0,0,.22)",background:"var(--ui-tab-bg, #15151c)",color:"var(--ui-connection-text, #777789)",fontSize:10.5,flexShrink:0},treeFootDot:{width:6,height:6,borderRadius:99,background:"var(--ui-success, #9ece6a)",boxShadow:"0 0 0 2px color-mix(in srgb, var(--ui-success, #9ece6a) 12%, transparent)",flexShrink:0},termCol:{minWidth:0,minHeight:0,display:"flex",flexDirection:"column",background:"var(--ui-term-col-bg, #101014)",gridColumn:1,overflow:"hidden"},previewCol:{minWidth:0,minHeight:0}},xi=Object.freeze(Object.defineProperty({__proto__:null,default:ni},Symbol.toStringTag,{value:"Module"}));export{Je as F,xi as p,Ho as r};
@@ -1 +1 @@
1
- import{g as l,r as m,d as a}from"./chunk-SVP7TREG-lFcKEwyL.js";import{p}from"./chunk-JWPE2WC7-Dv9x27hI.js";import{_ as t,l as o}from"./mermaid.core-B3fzlEw9.js";import{M as u,d as c}from"./cynefin-OW5HDTMX-mtRVdchl.js";import"./index--zKd3rTs.js";var f=c().RailroadPeg.parser.LangiumParser,i=t(e=>{const r=e.alternatives.map(d);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),d=t(e=>{const r=e.elements.map(P);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),P=t(e=>{const r=g(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${s(r)}`:`!${s(r)}`}:r},"transformPrefix"),s=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),g=t(e=>{const r=v(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),v=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return i(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),y=t(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=t(e=>{p(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(y(r)))},"populateDb"),b={parse:t(e=>{a.clear(),o.debug("[PEG Parser] Starting Langium parse");const r=f.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const n=r.value;o.debug("[PEG Parser] Parsed rules:",n.rules.length),h(n),o.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},G={parser:b,db:a,renderer:m,styles:l};export{G as diagram};
1
+ import{g as l,r as m,d as a}from"./chunk-SVP7TREG-Bn9tMxLG.js";import{p}from"./chunk-JWPE2WC7-CFqPSTPh.js";import{_ as t,l as o}from"./mermaid.core-CIbk74HW.js";import{M as u,d as c}from"./cynefin-OW5HDTMX-B2IeHhVa.js";import"./index-C165MF0E.js";var f=c().RailroadPeg.parser.LangiumParser,i=t(e=>{const r=e.alternatives.map(d);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),d=t(e=>{const r=e.elements.map(P);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),P=t(e=>{const r=g(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${s(r)}`:`!${s(r)}`}:r},"transformPrefix"),s=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),g=t(e=>{const r=v(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),v=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return i(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),y=t(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=t(e=>{p(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(y(r)))},"populateDb"),b={parse:t(e=>{a.clear(),o.debug("[PEG Parser] Starting Langium parse");const r=f.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const n=r.value;o.debug("[PEG Parser] Parsed rules:",n.rules.length),h(n),o.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},G={parser:b,db:a,renderer:m,styles:l};export{G as diagram};
@@ -1,4 +1,4 @@
1
- import{p as rt}from"./chunk-JWPE2WC7-Dv9x27hI.js";import{a1 as T,a4 as B,b3 as nt,g as it,s as ot,a as st,b as lt,o as ct,n as ut,_ as d,l as G,c as gt,A as dt,D as pt,L as ht,d as ft,p as mt,B as vt}from"./mermaid.core-B3fzlEw9.js";import{p as xt}from"./cynefin-OW5HDTMX-mtRVdchl.js";import{d as J}from"./arc-vjNW9DYV.js";import{o as St}from"./ordinal-BENe2yWM.js";import"./index--zKd3rTs.js";import"./init-Gi6I4Gst.js";function yt(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function wt(t){return t}function At(){var t=wt,n=yt,y=null,b=T(0),l=T(B),p=T(0);function i(e){var r,s=(e=nt(e)).length,h,w,$=0,f=new Array(s),o=new Array(s),D=+b.apply(this,arguments),E=Math.min(B,Math.max(-B,l.apply(this,arguments)-D)),k,R=Math.min(Math.abs(E)/s,p.apply(this,arguments)),u=R*(E<0?-1:1),A;for(r=0;r<s;++r)(A=o[f[r]=r]=+t(e[r],r,e))>0&&($+=A);for(n!=null?f.sort(function(M,m){return n(o[M],o[m])}):y!=null&&f.sort(function(M,m){return y(e[M],e[m])}),r=0,w=$?(E-s*u)/$:0;r<s;++r,D=k)h=f[r],A=o[h],k=D+(A>0?A*w:0)+u,o[h]={data:e[h],index:r,value:A,startAngle:D,endAngle:k,padAngle:R};return o}return i.value=function(e){return arguments.length?(t=typeof e=="function"?e:T(+e),i):t},i.sortValues=function(e){return arguments.length?(n=e,y=null,i):n},i.sort=function(e){return arguments.length?(y=e,n=null,i):y},i.startAngle=function(e){return arguments.length?(b=typeof e=="function"?e:T(+e),i):b},i.endAngle=function(e){return arguments.length?(l=typeof e=="function"?e:T(+e),i):l},i.padAngle=function(e){return arguments.length?(p=typeof e=="function"?e:T(+e),i):p},i}var Ct=vt.pie,I={sections:new Map,showData:!1},F=I.sections,V=I.showData,$t=structuredClone(Ct),Dt=d(()=>structuredClone($t),"getConfig"),Tt=d(()=>{F=new Map,V=I.showData,mt()},"clear"),bt=d(({label:t,value:n})=>{if(n<0)throw new Error(`"${t}" has invalid value: ${n}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);F.has(t)||(F.set(t,n),G.debug(`added new section: ${t}, with value: ${n}`))},"addSection"),kt=d(()=>F,"getSections"),zt=d(t=>{V=t},"setShowData"),Et=d(()=>V,"getShowData"),K={getConfig:Dt,clear:Tt,setDiagramTitle:ut,getDiagramTitle:ct,setAccTitle:lt,getAccTitle:st,setAccDescription:ot,getAccDescription:it,addSection:bt,getSections:kt,setShowData:zt,getShowData:Et},Mt=d((t,n)=>{rt(t,n),n.setShowData(t.showData),t.sections.map(n.addSection)},"populateDb"),Lt={parse:d(async t=>{const n=await xt("pie",t);G.debug(n),Mt(n,K)},"parse")},Rt=d(t=>`
1
+ import{p as rt}from"./chunk-JWPE2WC7-CFqPSTPh.js";import{a0 as T,a3 as B,b3 as nt,g as it,s as ot,a as st,b as lt,o as ct,n as ut,_ as d,l as G,c as gt,A as dt,D as pt,L as ht,d as ft,p as mt,B as vt}from"./mermaid.core-CIbk74HW.js";import{p as xt}from"./cynefin-OW5HDTMX-B2IeHhVa.js";import{d as J}from"./arc-Fb_TLw7m.js";import{o as St}from"./ordinal-BENe2yWM.js";import"./index-C165MF0E.js";import"./init-Gi6I4Gst.js";function yt(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function wt(t){return t}function At(){var t=wt,n=yt,y=null,b=T(0),l=T(B),p=T(0);function i(e){var r,s=(e=nt(e)).length,h,w,$=0,f=new Array(s),o=new Array(s),D=+b.apply(this,arguments),E=Math.min(B,Math.max(-B,l.apply(this,arguments)-D)),k,R=Math.min(Math.abs(E)/s,p.apply(this,arguments)),u=R*(E<0?-1:1),A;for(r=0;r<s;++r)(A=o[f[r]=r]=+t(e[r],r,e))>0&&($+=A);for(n!=null?f.sort(function(M,m){return n(o[M],o[m])}):y!=null&&f.sort(function(M,m){return y(e[M],e[m])}),r=0,w=$?(E-s*u)/$:0;r<s;++r,D=k)h=f[r],A=o[h],k=D+(A>0?A*w:0)+u,o[h]={data:e[h],index:r,value:A,startAngle:D,endAngle:k,padAngle:R};return o}return i.value=function(e){return arguments.length?(t=typeof e=="function"?e:T(+e),i):t},i.sortValues=function(e){return arguments.length?(n=e,y=null,i):n},i.sort=function(e){return arguments.length?(y=e,n=null,i):y},i.startAngle=function(e){return arguments.length?(b=typeof e=="function"?e:T(+e),i):b},i.endAngle=function(e){return arguments.length?(l=typeof e=="function"?e:T(+e),i):l},i.padAngle=function(e){return arguments.length?(p=typeof e=="function"?e:T(+e),i):p},i}var Ct=vt.pie,I={sections:new Map,showData:!1},F=I.sections,V=I.showData,$t=structuredClone(Ct),Dt=d(()=>structuredClone($t),"getConfig"),Tt=d(()=>{F=new Map,V=I.showData,mt()},"clear"),bt=d(({label:t,value:n})=>{if(n<0)throw new Error(`"${t}" has invalid value: ${n}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);F.has(t)||(F.set(t,n),G.debug(`added new section: ${t}, with value: ${n}`))},"addSection"),kt=d(()=>F,"getSections"),zt=d(t=>{V=t},"setShowData"),Et=d(()=>V,"getShowData"),K={getConfig:Dt,clear:Tt,setDiagramTitle:ut,getDiagramTitle:ct,setAccTitle:lt,getAccTitle:st,setAccDescription:ot,getAccDescription:it,addSection:bt,getSections:kt,setShowData:zt,getShowData:Et},Mt=d((t,n)=>{rt(t,n),n.setShowData(t.showData),t.sections.map(n.addSection)},"populateDb"),Lt={parse:d(async t=>{const n=await xt("pie",t);G.debug(n),Mt(n,K)},"parse")},Rt=d(t=>`
2
2
  .pieCircle{
3
3
  stroke: ${t.pieStrokeColor};
4
4
  stroke-width : ${t.pieStrokeWidth};
@@ -1,4 +1,4 @@
1
- import{s as Ae,g as ke,o as ae,n as Fe,a as Pe,b as ve,_ as o,c as wt,l as At,j as zt,d as Ce,p as Le,B as z,i as Ee,E as De}from"./mermaid.core-B3fzlEw9.js";import{l as ie}from"./linear-B-lEfto_.js";import"./index--zKd3rTs.js";import"./init-Gi6I4Gst.js";import"./defaultLocale-DX6XiGOO.js";var Vt=function(){var t=o(function(j,r,l,g){for(l=l||{},g=j.length;g--;l[j[g]]=r);return l},"o"),n=[1,3],u=[1,4],c=[1,5],h=[1,6],p=[1,7],y=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],S=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],a=[55,56,57],k=[2,36],d=[1,37],T=[1,36],q=[1,38],m=[1,35],b=[1,43],x=[1,41],_=[1,45],Y=[1,14],G=[1,23],yt=[1,18],Tt=[1,19],dt=[1,20],Ft=[1,21],ut=[1,22],xt=[1,24],ft=[1,25],gt=[1,26],i=[1,27],Bt=[1,28],Rt=[1,29],U=[1,32],Q=[1,33],F=[1,34],P=[1,39],v=[1,40],C=[1,42],L=[1,44],H=[1,63],X=[1,62],E=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],Nt=[1,66],Wt=[1,67],Ut=[1,68],Qt=[1,69],Ot=[1,70],Ht=[1,71],Xt=[1,72],Mt=[1,73],Yt=[1,74],jt=[1,75],Gt=[1,76],Kt=[1,77],w=[4,5,6,7,8,9,10,11,12,13,14,15,18],J=[1,91],$=[1,92],tt=[1,93],et=[1,100],it=[1,94],at=[1,97],nt=[1,95],st=[1,96],rt=[1,98],ot=[1,99],Pt=[1,103],Zt=[10,55,56,57],N=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],vt={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:o(function(r,l,g,f,A,e,pt){var s=e.length-1;switch(A){case 23:this.$=e[s];break;case 24:this.$=e[s-1]+""+e[s];break;case 26:this.$=e[s-1]+e[s];break;case 27:this.$=[e[s].trim()];break;case 28:e[s-2].push(e[s].trim()),this.$=e[s-2];break;case 29:this.$=e[s-4],f.addClass(e[s-2],e[s]);break;case 37:this.$=[];break;case 42:this.$=e[s].trim(),f.setDiagramTitle(this.$);break;case 43:this.$=e[s].trim(),f.setAccTitle(this.$);break;case 44:case 45:this.$=e[s].trim(),f.setAccDescription(this.$);break;case 46:f.addSection(e[s].substr(8)),this.$=e[s].substr(8);break;case 47:f.addPoint(e[s-3],"",e[s-1],e[s],[]);break;case 48:f.addPoint(e[s-4],e[s-3],e[s-1],e[s],[]);break;case 49:f.addPoint(e[s-4],"",e[s-2],e[s-1],e[s]);break;case 50:f.addPoint(e[s-5],e[s-4],e[s-2],e[s-1],e[s]);break;case 51:f.setXAxisLeftText(e[s-2]),f.setXAxisRightText(e[s]);break;case 52:e[s-1].text+=" ⟶ ",f.setXAxisLeftText(e[s-1]);break;case 53:f.setXAxisLeftText(e[s]);break;case 54:f.setYAxisBottomText(e[s-2]),f.setYAxisTopText(e[s]);break;case 55:e[s-1].text+=" ⟶ ",f.setYAxisBottomText(e[s-1]);break;case 56:f.setYAxisBottomText(e[s]);break;case 57:f.setQuadrant1Text(e[s]);break;case 58:f.setQuadrant2Text(e[s]);break;case 59:f.setQuadrant3Text(e[s]);break;case 60:f.setQuadrant4Text(e[s]);break;case 64:this.$={text:e[s],type:"text"};break;case 65:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 66:this.$={text:e[s],type:"text"};break;case 67:this.$={text:e[s],type:"markdown"};break;case 68:this.$=e[s];break;case 69:this.$=e[s-1]+""+e[s];break}},"anonymous"),table:[{18:n,26:1,27:2,28:u,55:c,56:h,57:p},{1:[3]},{18:n,26:8,27:2,28:u,55:c,56:h,57:p},{18:n,26:9,27:2,28:u,55:c,56:h,57:p},t(y,[2,33],{29:10}),t(S,[2,61]),t(S,[2,62]),t(S,[2,63]),{1:[2,30]},{1:[2,31]},t(a,k,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:T,10:q,12:m,13:b,14:x,15:_,18:Y,25:G,35:yt,37:Tt,39:dt,41:Ft,42:ut,48:xt,50:ft,51:gt,52:i,53:Bt,54:Rt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(y,[2,34]),{27:46,55:c,56:h,57:p},t(a,[2,37]),t(a,k,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:d,5:T,10:q,12:m,13:b,14:x,15:_,18:Y,25:G,35:yt,37:Tt,39:dt,41:Ft,42:ut,48:xt,50:ft,51:gt,52:i,53:Bt,54:Rt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(a,[2,39]),t(a,[2,40]),t(a,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(a,[2,45]),t(a,[2,46]),{18:[1,51]},{4:d,5:T,10:q,12:m,13:b,14:x,15:_,43:52,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:d,5:T,10:q,12:m,13:b,14:x,15:_,43:53,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:d,5:T,10:q,12:m,13:b,14:x,15:_,43:54,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:d,5:T,10:q,12:m,13:b,14:x,15:_,43:55,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:d,5:T,10:q,12:m,13:b,14:x,15:_,43:56,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:d,5:T,10:q,12:m,13:b,14:x,15:_,43:57,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:d,5:T,8:H,10:q,12:m,13:b,14:x,15:_,18:X,44:[1,58],47:[1,59],58:61,59:60,63:F,64:P,65:v,66:C,67:L},t(E,[2,64]),t(E,[2,66]),t(E,[2,67]),t(E,[2,70]),t(E,[2,71]),t(E,[2,72]),t(E,[2,73]),t(E,[2,74]),t(E,[2,75]),t(E,[2,76]),t(E,[2,77]),t(E,[2,78]),t(E,[2,79]),t(E,[2,80]),t(E,[2,81]),t(y,[2,35]),t(a,[2,38]),t(a,[2,42]),t(a,[2,43]),t(a,[2,44]),{3:65,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Ht,10:Xt,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,21:64},t(a,[2,53],{59:60,58:61,4:d,5:T,8:H,10:q,12:m,13:b,14:x,15:_,18:X,49:[1,78],63:F,64:P,65:v,66:C,67:L}),t(a,[2,56],{59:60,58:61,4:d,5:T,8:H,10:q,12:m,13:b,14:x,15:_,18:X,49:[1,79],63:F,64:P,65:v,66:C,67:L}),t(a,[2,57],{59:60,58:61,4:d,5:T,8:H,10:q,12:m,13:b,14:x,15:_,18:X,63:F,64:P,65:v,66:C,67:L}),t(a,[2,58],{59:60,58:61,4:d,5:T,8:H,10:q,12:m,13:b,14:x,15:_,18:X,63:F,64:P,65:v,66:C,67:L}),t(a,[2,59],{59:60,58:61,4:d,5:T,8:H,10:q,12:m,13:b,14:x,15:_,18:X,63:F,64:P,65:v,66:C,67:L}),t(a,[2,60],{59:60,58:61,4:d,5:T,8:H,10:q,12:m,13:b,14:x,15:_,18:X,63:F,64:P,65:v,66:C,67:L}),{45:[1,80]},{44:[1,81]},t(E,[2,65]),t(E,[2,82]),t(E,[2,83]),t(E,[2,84]),{3:83,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Ht,10:Xt,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,18:[1,82]},t(w,[2,23]),t(w,[2,1]),t(w,[2,2]),t(w,[2,3]),t(w,[2,4]),t(w,[2,5]),t(w,[2,6]),t(w,[2,7]),t(w,[2,8]),t(w,[2,9]),t(w,[2,10]),t(w,[2,11]),t(w,[2,12]),t(a,[2,52],{58:31,43:84,4:d,5:T,10:q,12:m,13:b,14:x,15:_,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(a,[2,55],{58:31,43:85,4:d,5:T,10:q,12:m,13:b,14:x,15:_,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),{46:[1,86]},{45:[1,87]},{4:J,5:$,6:tt,8:et,11:it,13:at,16:90,17:nt,18:st,19:rt,20:ot,22:89,23:88},t(w,[2,24]),t(a,[2,51],{59:60,58:61,4:d,5:T,8:H,10:q,12:m,13:b,14:x,15:_,18:X,63:F,64:P,65:v,66:C,67:L}),t(a,[2,54],{59:60,58:61,4:d,5:T,8:H,10:q,12:m,13:b,14:x,15:_,18:X,63:F,64:P,65:v,66:C,67:L}),t(a,[2,47],{22:89,16:90,23:101,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),{46:[1,102]},t(a,[2,29],{10:Pt}),t(Zt,[2,27],{16:104,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),t(N,[2,25]),t(N,[2,13]),t(N,[2,14]),t(N,[2,15]),t(N,[2,16]),t(N,[2,17]),t(N,[2,18]),t(N,[2,19]),t(N,[2,20]),t(N,[2,21]),t(N,[2,22]),t(a,[2,49],{10:Pt}),t(a,[2,48],{22:89,16:90,23:105,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),{4:J,5:$,6:tt,8:et,11:it,13:at,16:90,17:nt,18:st,19:rt,20:ot,22:106},t(N,[2,26]),t(a,[2,50],{10:Pt}),t(Zt,[2,28],{16:104,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot})],defaultActions:{8:[2,30],9:[2,31]},parseError:o(function(r,l){if(l.recoverable)this.trace(r);else{var g=new Error(r);throw g.hash=l,g}},"parseError"),parse:o(function(r){var l=this,g=[0],f=[],A=[null],e=[],pt=this.table,s="",mt=0,Jt=0,me=2,$t=1,be=e.slice.call(arguments,1),D=Object.create(this.lexer),K={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(K.yy[Ct]=this.yy[Ct]);D.setInput(r,K.yy),K.yy.lexer=D,K.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Lt=D.yylloc;e.push(Lt);var Se=D.options&&D.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _e(R){g.length=g.length-2*R,A.length=A.length-R,e.length=e.length-R}o(_e,"popStack");function te(){var R;return R=f.pop()||D.lex()||$t,typeof R!="number"&&(R instanceof Array&&(f=R,R=f.pop()),R=l.symbols_[R]||R),R}o(te,"lex");for(var B,Z,W,Et,lt={},bt,M,ee,St;;){if(Z=g[g.length-1],this.defaultActions[Z]?W=this.defaultActions[Z]:((B===null||typeof B>"u")&&(B=te()),W=pt[Z]&&pt[Z][B]),typeof W>"u"||!W.length||!W[0]){var Dt="";St=[];for(bt in pt[Z])this.terminals_[bt]&&bt>me&&St.push("'"+this.terminals_[bt]+"'");D.showPosition?Dt="Parse error on line "+(mt+1)+`:
1
+ import{s as Ae,g as ke,o as ae,n as Fe,a as Pe,b as ve,_ as o,c as wt,l as At,j as zt,d as Ce,p as Le,B as z,i as Ee,E as De}from"./mermaid.core-CIbk74HW.js";import{l as ie}from"./linear-DOnDPVCl.js";import"./index-C165MF0E.js";import"./init-Gi6I4Gst.js";import"./defaultLocale-DX6XiGOO.js";var Vt=function(){var t=o(function(j,r,l,g){for(l=l||{},g=j.length;g--;l[j[g]]=r);return l},"o"),n=[1,3],u=[1,4],c=[1,5],h=[1,6],p=[1,7],y=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],S=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],a=[55,56,57],k=[2,36],d=[1,37],T=[1,36],q=[1,38],m=[1,35],b=[1,43],x=[1,41],_=[1,45],Y=[1,14],G=[1,23],yt=[1,18],Tt=[1,19],dt=[1,20],Ft=[1,21],ut=[1,22],xt=[1,24],ft=[1,25],gt=[1,26],i=[1,27],Bt=[1,28],Rt=[1,29],U=[1,32],Q=[1,33],F=[1,34],P=[1,39],v=[1,40],C=[1,42],L=[1,44],H=[1,63],X=[1,62],E=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],Nt=[1,66],Wt=[1,67],Ut=[1,68],Qt=[1,69],Ot=[1,70],Ht=[1,71],Xt=[1,72],Mt=[1,73],Yt=[1,74],jt=[1,75],Gt=[1,76],Kt=[1,77],w=[4,5,6,7,8,9,10,11,12,13,14,15,18],J=[1,91],$=[1,92],tt=[1,93],et=[1,100],it=[1,94],at=[1,97],nt=[1,95],st=[1,96],rt=[1,98],ot=[1,99],Pt=[1,103],Zt=[10,55,56,57],N=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],vt={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:o(function(r,l,g,f,A,e,pt){var s=e.length-1;switch(A){case 23:this.$=e[s];break;case 24:this.$=e[s-1]+""+e[s];break;case 26:this.$=e[s-1]+e[s];break;case 27:this.$=[e[s].trim()];break;case 28:e[s-2].push(e[s].trim()),this.$=e[s-2];break;case 29:this.$=e[s-4],f.addClass(e[s-2],e[s]);break;case 37:this.$=[];break;case 42:this.$=e[s].trim(),f.setDiagramTitle(this.$);break;case 43:this.$=e[s].trim(),f.setAccTitle(this.$);break;case 44:case 45:this.$=e[s].trim(),f.setAccDescription(this.$);break;case 46:f.addSection(e[s].substr(8)),this.$=e[s].substr(8);break;case 47:f.addPoint(e[s-3],"",e[s-1],e[s],[]);break;case 48:f.addPoint(e[s-4],e[s-3],e[s-1],e[s],[]);break;case 49:f.addPoint(e[s-4],"",e[s-2],e[s-1],e[s]);break;case 50:f.addPoint(e[s-5],e[s-4],e[s-2],e[s-1],e[s]);break;case 51:f.setXAxisLeftText(e[s-2]),f.setXAxisRightText(e[s]);break;case 52:e[s-1].text+=" ⟶ ",f.setXAxisLeftText(e[s-1]);break;case 53:f.setXAxisLeftText(e[s]);break;case 54:f.setYAxisBottomText(e[s-2]),f.setYAxisTopText(e[s]);break;case 55:e[s-1].text+=" ⟶ ",f.setYAxisBottomText(e[s-1]);break;case 56:f.setYAxisBottomText(e[s]);break;case 57:f.setQuadrant1Text(e[s]);break;case 58:f.setQuadrant2Text(e[s]);break;case 59:f.setQuadrant3Text(e[s]);break;case 60:f.setQuadrant4Text(e[s]);break;case 64:this.$={text:e[s],type:"text"};break;case 65:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 66:this.$={text:e[s],type:"text"};break;case 67:this.$={text:e[s],type:"markdown"};break;case 68:this.$=e[s];break;case 69:this.$=e[s-1]+""+e[s];break}},"anonymous"),table:[{18:n,26:1,27:2,28:u,55:c,56:h,57:p},{1:[3]},{18:n,26:8,27:2,28:u,55:c,56:h,57:p},{18:n,26:9,27:2,28:u,55:c,56:h,57:p},t(y,[2,33],{29:10}),t(S,[2,61]),t(S,[2,62]),t(S,[2,63]),{1:[2,30]},{1:[2,31]},t(a,k,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:T,10:q,12:m,13:b,14:x,15:_,18:Y,25:G,35:yt,37:Tt,39:dt,41:Ft,42:ut,48:xt,50:ft,51:gt,52:i,53:Bt,54:Rt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(y,[2,34]),{27:46,55:c,56:h,57:p},t(a,[2,37]),t(a,k,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:d,5:T,10:q,12:m,13:b,14:x,15:_,18:Y,25:G,35:yt,37:Tt,39:dt,41:Ft,42:ut,48:xt,50:ft,51:gt,52:i,53:Bt,54:Rt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(a,[2,39]),t(a,[2,40]),t(a,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(a,[2,45]),t(a,[2,46]),{18:[1,51]},{4:d,5:T,10:q,12:m,13:b,14:x,15:_,43:52,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:d,5:T,10:q,12:m,13:b,14:x,15:_,43:53,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:d,5:T,10:q,12:m,13:b,14:x,15:_,43:54,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:d,5:T,10:q,12:m,13:b,14:x,15:_,43:55,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:d,5:T,10:q,12:m,13:b,14:x,15:_,43:56,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:d,5:T,10:q,12:m,13:b,14:x,15:_,43:57,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:d,5:T,8:H,10:q,12:m,13:b,14:x,15:_,18:X,44:[1,58],47:[1,59],58:61,59:60,63:F,64:P,65:v,66:C,67:L},t(E,[2,64]),t(E,[2,66]),t(E,[2,67]),t(E,[2,70]),t(E,[2,71]),t(E,[2,72]),t(E,[2,73]),t(E,[2,74]),t(E,[2,75]),t(E,[2,76]),t(E,[2,77]),t(E,[2,78]),t(E,[2,79]),t(E,[2,80]),t(E,[2,81]),t(y,[2,35]),t(a,[2,38]),t(a,[2,42]),t(a,[2,43]),t(a,[2,44]),{3:65,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Ht,10:Xt,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,21:64},t(a,[2,53],{59:60,58:61,4:d,5:T,8:H,10:q,12:m,13:b,14:x,15:_,18:X,49:[1,78],63:F,64:P,65:v,66:C,67:L}),t(a,[2,56],{59:60,58:61,4:d,5:T,8:H,10:q,12:m,13:b,14:x,15:_,18:X,49:[1,79],63:F,64:P,65:v,66:C,67:L}),t(a,[2,57],{59:60,58:61,4:d,5:T,8:H,10:q,12:m,13:b,14:x,15:_,18:X,63:F,64:P,65:v,66:C,67:L}),t(a,[2,58],{59:60,58:61,4:d,5:T,8:H,10:q,12:m,13:b,14:x,15:_,18:X,63:F,64:P,65:v,66:C,67:L}),t(a,[2,59],{59:60,58:61,4:d,5:T,8:H,10:q,12:m,13:b,14:x,15:_,18:X,63:F,64:P,65:v,66:C,67:L}),t(a,[2,60],{59:60,58:61,4:d,5:T,8:H,10:q,12:m,13:b,14:x,15:_,18:X,63:F,64:P,65:v,66:C,67:L}),{45:[1,80]},{44:[1,81]},t(E,[2,65]),t(E,[2,82]),t(E,[2,83]),t(E,[2,84]),{3:83,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Ht,10:Xt,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,18:[1,82]},t(w,[2,23]),t(w,[2,1]),t(w,[2,2]),t(w,[2,3]),t(w,[2,4]),t(w,[2,5]),t(w,[2,6]),t(w,[2,7]),t(w,[2,8]),t(w,[2,9]),t(w,[2,10]),t(w,[2,11]),t(w,[2,12]),t(a,[2,52],{58:31,43:84,4:d,5:T,10:q,12:m,13:b,14:x,15:_,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(a,[2,55],{58:31,43:85,4:d,5:T,10:q,12:m,13:b,14:x,15:_,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),{46:[1,86]},{45:[1,87]},{4:J,5:$,6:tt,8:et,11:it,13:at,16:90,17:nt,18:st,19:rt,20:ot,22:89,23:88},t(w,[2,24]),t(a,[2,51],{59:60,58:61,4:d,5:T,8:H,10:q,12:m,13:b,14:x,15:_,18:X,63:F,64:P,65:v,66:C,67:L}),t(a,[2,54],{59:60,58:61,4:d,5:T,8:H,10:q,12:m,13:b,14:x,15:_,18:X,63:F,64:P,65:v,66:C,67:L}),t(a,[2,47],{22:89,16:90,23:101,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),{46:[1,102]},t(a,[2,29],{10:Pt}),t(Zt,[2,27],{16:104,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),t(N,[2,25]),t(N,[2,13]),t(N,[2,14]),t(N,[2,15]),t(N,[2,16]),t(N,[2,17]),t(N,[2,18]),t(N,[2,19]),t(N,[2,20]),t(N,[2,21]),t(N,[2,22]),t(a,[2,49],{10:Pt}),t(a,[2,48],{22:89,16:90,23:105,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot}),{4:J,5:$,6:tt,8:et,11:it,13:at,16:90,17:nt,18:st,19:rt,20:ot,22:106},t(N,[2,26]),t(a,[2,50],{10:Pt}),t(Zt,[2,28],{16:104,4:J,5:$,6:tt,8:et,11:it,13:at,17:nt,18:st,19:rt,20:ot})],defaultActions:{8:[2,30],9:[2,31]},parseError:o(function(r,l){if(l.recoverable)this.trace(r);else{var g=new Error(r);throw g.hash=l,g}},"parseError"),parse:o(function(r){var l=this,g=[0],f=[],A=[null],e=[],pt=this.table,s="",mt=0,Jt=0,me=2,$t=1,be=e.slice.call(arguments,1),D=Object.create(this.lexer),K={yy:{}};for(var Ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ct)&&(K.yy[Ct]=this.yy[Ct]);D.setInput(r,K.yy),K.yy.lexer=D,K.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Lt=D.yylloc;e.push(Lt);var Se=D.options&&D.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _e(R){g.length=g.length-2*R,A.length=A.length-R,e.length=e.length-R}o(_e,"popStack");function te(){var R;return R=f.pop()||D.lex()||$t,typeof R!="number"&&(R instanceof Array&&(f=R,R=f.pop()),R=l.symbols_[R]||R),R}o(te,"lex");for(var B,Z,W,Et,lt={},bt,M,ee,St;;){if(Z=g[g.length-1],this.defaultActions[Z]?W=this.defaultActions[Z]:((B===null||typeof B>"u")&&(B=te()),W=pt[Z]&&pt[Z][B]),typeof W>"u"||!W.length||!W[0]){var Dt="";St=[];for(bt in pt[Z])this.terminals_[bt]&&bt>me&&St.push("'"+this.terminals_[bt]+"'");D.showPosition?Dt="Parse error on line "+(mt+1)+`:
2
2
  `+D.showPosition()+`
3
3
  Expecting `+St.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Dt="Parse error on line "+(mt+1)+": Unexpected "+(B==$t?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Dt,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:Lt,expected:St})}if(W[0]instanceof Array&&W.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Z+", token: "+B);switch(W[0]){case 1:g.push(B),A.push(D.yytext),e.push(D.yylloc),g.push(W[1]),B=null,Jt=D.yyleng,s=D.yytext,mt=D.yylineno,Lt=D.yylloc;break;case 2:if(M=this.productions_[W[1]][1],lt.$=A[A.length-M],lt._$={first_line:e[e.length-(M||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(M||1)].first_column,last_column:e[e.length-1].last_column},Se&&(lt._$.range=[e[e.length-(M||1)].range[0],e[e.length-1].range[1]]),Et=this.performAction.apply(lt,[s,Jt,mt,K.yy,W[1],A,e].concat(be)),typeof Et<"u")return Et;M&&(g=g.slice(0,-1*M*2),A=A.slice(0,-1*M),e=e.slice(0,-1*M)),g.push(this.productions_[W[1]][0]),A.push(lt.$),e.push(lt._$),ee=pt[g[g.length-2]][g[g.length-1]],g.push(ee);break;case 3:return!0}}return!0},"parse")},qe=function(){var j={EOF:1,parseError:o(function(l,g){if(this.yy.parser)this.yy.parser.parseError(l,g);else throw new Error(l)},"parseError"),setInput:o(function(r,l){return this.yy=l||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:o(function(r){var l=r.length,g=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var f=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),g.length-1&&(this.yylineno-=g.length-1);var A=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:g?(g.length===f.length?this.yylloc.first_column:0)+f[f.length-g.length].length-g[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(r){this.unput(this.match.slice(r))},"less"),pastInput:o(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{g as s,r as l,d as t}from"./chunk-SVP7TREG-lFcKEwyL.js";import{p as m}from"./chunk-JWPE2WC7-Dv9x27hI.js";import{_ as n,l as i}from"./mermaid.core-B3fzlEw9.js";import{M as p,c as u}from"./cynefin-OW5HDTMX-mtRVdchl.js";import"./index--zKd3rTs.js";var d=u().Railroad.parser.LangiumParser,a=n(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{const r=e.elements.map(a);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{const r=e.alternatives.map(a);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:a(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:a(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:a(e.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),c=n(e=>({name:e.name,definition:a(e.definition)}),"transformRule"),g=n(e=>{m(e,t),e.title&&t.setTitle(e.title),e.rules.map(r=>t.addRule(c(r)))},"populateDb"),y={parse:n(e=>{t.clear(),i.debug("[Railroad Parser] Starting Langium parse");const r=d.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new p(r);const o=r.value;i.debug("[Railroad Parser] Parsed rules:",o.rules.length),g(o),i.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:t}},x={parser:y,db:t,renderer:l,styles:s};export{x as diagram};
1
+ import{g as s,r as l,d as t}from"./chunk-SVP7TREG-Bn9tMxLG.js";import{p as m}from"./chunk-JWPE2WC7-CFqPSTPh.js";import{_ as n,l as i}from"./mermaid.core-CIbk74HW.js";import{M as p,c as u}from"./cynefin-OW5HDTMX-B2IeHhVa.js";import"./index-C165MF0E.js";var d=u().Railroad.parser.LangiumParser,a=n(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{const r=e.elements.map(a);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{const r=e.alternatives.map(a);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:a(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:a(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:a(e.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),c=n(e=>({name:e.name,definition:a(e.definition)}),"transformRule"),g=n(e=>{m(e,t),e.title&&t.setTitle(e.title),e.rules.map(r=>t.addRule(c(r)))},"populateDb"),y={parse:n(e=>{t.clear(),i.debug("[Railroad Parser] Starting Langium parse");const r=d.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new p(r);const o=r.value;i.debug("[Railroad Parser] Parsed rules:",o.rules.length),g(o),i.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:t}},x={parser:y,db:t,renderer:l,styles:s};export{x as diagram};
@@ -1,4 +1,4 @@
1
- import{g as ze}from"./chunk-XXDRQBXY-8jLPZkMb.js";import{s as Xe}from"./chunk-POPQ4Y6H-Uk-GiSLP.js";import{_ as d,y as Be,b as Je,a as Ze,s as et,g as tt,n as st,o as it,c as Ne,l as qe,p as rt,t as nt,u as at,v as lt,x as ct}from"./mermaid.core-B3fzlEw9.js";import"./index--zKd3rTs.js";var Ce=function(){var e=d(function($,i,n,l){for(n=n||{},l=$.length;l--;n[$[l]]=i);return n},"o"),r=[1,3],u=[1,4],h=[1,5],o=[1,6],c=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],E=[1,22],p=[2,7],y=[1,26],f=[1,27],m=[1,28],k=[1,29],C=[1,33],V=[1,34],A=[1,35],v=[1,36],L=[1,37],x=[1,38],O=[1,24],w=[1,31],D=[1,32],M=[1,30],_=[1,39],S=[1,40],g=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],P=[1,61],X=[89,90],Ve=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Ee=[27,29],Ae=[1,70],ve=[1,71],Le=[1,72],xe=[1,73],Oe=[1,74],we=[1,75],De=[1,76],ee=[1,83],U=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],ce=[1,91],oe=[1,92],pe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],Fe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],N=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],he=[1,116],ue=[1,117],fe=[1,114],me=[1,115],Se={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:d(function(i,n,l,s,R,t,de){var a=t.length-1;switch(R){case 4:this.$=t[a].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[a].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[a-3],t[a-4]);break;case 22:s.addRequirement(t[a-5],t[a-6]),s.setClass([t[a-5]],t[a-3]);break;case 23:s.setNewReqId(t[a-2]);break;case 24:s.setNewReqText(t[a-2]);break;case 25:s.setNewReqRisk(t[a-2]);break;case 26:s.setNewReqVerifyMethod(t[a-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[a-3]);break;case 43:s.addElement(t[a-5]),s.setClass([t[a-5]],t[a-3]);break;case 44:s.setNewElementType(t[a-2]);break;case 45:s.setNewElementDocRef(t[a-2]);break;case 48:s.addRelationship(t[a-2],t[a],t[a-4]);break;case 49:s.addRelationship(t[a-2],t[a-4],t[a]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[a-2],s.defineClass(t[a-1],t[a]);break;case 58:s.setClass(t[a-1],t[a]);break;case 59:s.setClass([t[a-2]],t[a]);break;case 60:case 62:this.$=[t[a]];break;case 61:case 63:this.$=t[a-2].concat([t[a]]);break;case 64:this.$=t[a-2],s.setCssStyle(t[a-1],t[a]);break;case 65:this.$=[t[a]];break;case 66:t[a-2].push(t[a]),this.$=t[a-2];break;case 68:this.$=t[a-1]+t[a];break}},"anonymous"),table:[{3:1,4:2,6:r,9:u,11:h,13:o},{1:[3]},{3:8,4:2,5:[1,7],6:r,9:u,11:h,13:o},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(c,[2,6]),{3:12,4:2,6:r,9:u,11:h,13:o},{1:[2,2]},{4:17,5:E,7:13,8:p,9:u,11:h,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:f,23:m,24:k,25:23,33:25,41:C,42:V,43:A,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:_,90:S},e(c,[2,4]),e(c,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:E,7:42,8:p,9:u,11:h,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:f,23:m,24:k,25:23,33:25,41:C,42:V,43:A,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:_,90:S},{4:17,5:E,7:43,8:p,9:u,11:h,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:f,23:m,24:k,25:23,33:25,41:C,42:V,43:A,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:_,90:S},{4:17,5:E,7:44,8:p,9:u,11:h,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:f,23:m,24:k,25:23,33:25,41:C,42:V,43:A,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:_,90:S},{4:17,5:E,7:45,8:p,9:u,11:h,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:f,23:m,24:k,25:23,33:25,41:C,42:V,43:A,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:_,90:S},{4:17,5:E,7:46,8:p,9:u,11:h,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:f,23:m,24:k,25:23,33:25,41:C,42:V,43:A,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:_,90:S},{4:17,5:E,7:47,8:p,9:u,11:h,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:f,23:m,24:k,25:23,33:25,41:C,42:V,43:A,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:_,90:S},{4:17,5:E,7:48,8:p,9:u,11:h,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:f,23:m,24:k,25:23,33:25,41:C,42:V,43:A,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:_,90:S},{4:17,5:E,7:49,8:p,9:u,11:h,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:f,23:m,24:k,25:23,33:25,41:C,42:V,43:A,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:_,90:S},{4:17,5:E,7:50,8:p,9:u,11:h,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:f,23:m,24:k,25:23,33:25,41:C,42:V,43:A,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:_,90:S},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(g,[2,17]),e(g,[2,18]),e(g,[2,19]),e(g,[2,20]),{30:60,33:62,75:P,89:_,90:S},{30:63,33:62,75:P,89:_,90:S},{30:64,33:62,75:P,89:_,90:S},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ve,[2,81]),e(Ve,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Ee,[2,79]),e(Ee,[2,80]),{27:[1,67],29:[1,68]},e(Ee,[2,85]),e(Ee,[2,86]),{62:69,65:Ae,66:ve,67:Le,68:xe,69:Oe,70:we,71:De},{62:77,65:Ae,66:ve,67:Le,68:xe,69:Oe,70:we,71:De},{30:78,33:62,75:P,89:_,90:S},{73:79,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},{30:94,33:62,75:P,76:U,89:_,90:S},{5:[1,95]},{30:96,33:62,75:P,89:_,90:S},{5:[1,97]},{30:98,33:62,75:P,89:_,90:S},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(g,[2,59],{76:U}),e(g,[2,64],{76:Me}),{33:103,75:[1,102],89:_,90:S},e(Fe,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),e(N,[2,67]),e(N,[2,69]),e(N,[2,70]),e(N,[2,71]),e(N,[2,72]),e(N,[2,73]),e(N,[2,74]),e(N,[2,75]),e(N,[2,76]),e(N,[2,77]),e(N,[2,78]),e(g,[2,57],{76:Me}),e(g,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:he,40:ue,56:113,57:fe,59:me},{27:[1,118],76:U},{33:119,89:_,90:S},{33:120,89:_,90:S},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,61]),e(pe,[2,63]),e(N,[2,68]),e(g,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(g,[2,28]),{5:[1,127]},e(g,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:fe,59:me},e(g,[2,47]),{5:[1,131]},e(g,[2,48]),e(g,[2,49]),e(Fe,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),{33:132,89:_,90:S},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(g,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(g,[2,46]),{5:he,40:ue,56:152,57:fe,59:me},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(g,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(g,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:he,40:ue,56:163,57:fe,59:me},{5:he,40:ue,56:164,57:fe,59:me},e(g,[2,23]),e(g,[2,24]),e(g,[2,25]),e(g,[2,26]),e(g,[2,44]),e(g,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:d(function(i,n){if(n.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=n,l}},"parseError"),parse:d(function(i){var n=this,l=[0],s=[],R=[null],t=[],de=this.table,a="",ge=0,$e=0,Ke=2,Pe=1,We=t.slice.call(arguments,1),b=Object.create(this.lexer),G={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(G.yy[be]=this.yy[be]);b.setInput(i,G.yy),G.yy.lexer=b,G.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var Ie=b.yylloc;t.push(Ie);var je=b.options&&b.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ge(T){l.length=l.length-2*T,R.length=R.length-T,t.length=t.length-T}d(Ge,"popStack");function Ue(){var T;return T=s.pop()||b.lex()||Pe,typeof T!="number"&&(T instanceof Array&&(s=T,T=s.pop()),T=n.symbols_[T]||T),T}d(Ue,"lex");for(var I,z,q,Te,J={},ye,F,Ye,_e;;){if(z=l[l.length-1],this.defaultActions[z]?q=this.defaultActions[z]:((I===null||typeof I>"u")&&(I=Ue()),q=de[z]&&de[z][I]),typeof q>"u"||!q.length||!q[0]){var ke="";_e=[];for(ye in de[z])this.terminals_[ye]&&ye>Ke&&_e.push("'"+this.terminals_[ye]+"'");b.showPosition?ke="Parse error on line "+(ge+1)+`:
1
+ import{g as ze}from"./chunk-XXDRQBXY-pSIpAtkj.js";import{s as Xe}from"./chunk-POPQ4Y6H-3acvfPpy.js";import{_ as d,y as Be,b as Je,a as Ze,s as et,g as tt,n as st,o as it,c as Ne,l as qe,p as rt,t as nt,u as at,v as lt,x as ct}from"./mermaid.core-CIbk74HW.js";import"./index-C165MF0E.js";var Ce=function(){var e=d(function($,i,n,l){for(n=n||{},l=$.length;l--;n[$[l]]=i);return n},"o"),r=[1,3],u=[1,4],h=[1,5],o=[1,6],c=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],E=[1,22],p=[2,7],y=[1,26],f=[1,27],m=[1,28],k=[1,29],C=[1,33],V=[1,34],A=[1,35],v=[1,36],L=[1,37],x=[1,38],O=[1,24],w=[1,31],D=[1,32],M=[1,30],_=[1,39],S=[1,40],g=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],P=[1,61],X=[89,90],Ve=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Ee=[27,29],Ae=[1,70],ve=[1,71],Le=[1,72],xe=[1,73],Oe=[1,74],we=[1,75],De=[1,76],ee=[1,83],U=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],ce=[1,91],oe=[1,92],pe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],Fe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],N=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],he=[1,116],ue=[1,117],fe=[1,114],me=[1,115],Se={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:d(function(i,n,l,s,R,t,de){var a=t.length-1;switch(R){case 4:this.$=t[a].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[a].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[a-3],t[a-4]);break;case 22:s.addRequirement(t[a-5],t[a-6]),s.setClass([t[a-5]],t[a-3]);break;case 23:s.setNewReqId(t[a-2]);break;case 24:s.setNewReqText(t[a-2]);break;case 25:s.setNewReqRisk(t[a-2]);break;case 26:s.setNewReqVerifyMethod(t[a-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[a-3]);break;case 43:s.addElement(t[a-5]),s.setClass([t[a-5]],t[a-3]);break;case 44:s.setNewElementType(t[a-2]);break;case 45:s.setNewElementDocRef(t[a-2]);break;case 48:s.addRelationship(t[a-2],t[a],t[a-4]);break;case 49:s.addRelationship(t[a-2],t[a-4],t[a]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[a-2],s.defineClass(t[a-1],t[a]);break;case 58:s.setClass(t[a-1],t[a]);break;case 59:s.setClass([t[a-2]],t[a]);break;case 60:case 62:this.$=[t[a]];break;case 61:case 63:this.$=t[a-2].concat([t[a]]);break;case 64:this.$=t[a-2],s.setCssStyle(t[a-1],t[a]);break;case 65:this.$=[t[a]];break;case 66:t[a-2].push(t[a]),this.$=t[a-2];break;case 68:this.$=t[a-1]+t[a];break}},"anonymous"),table:[{3:1,4:2,6:r,9:u,11:h,13:o},{1:[3]},{3:8,4:2,5:[1,7],6:r,9:u,11:h,13:o},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(c,[2,6]),{3:12,4:2,6:r,9:u,11:h,13:o},{1:[2,2]},{4:17,5:E,7:13,8:p,9:u,11:h,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:f,23:m,24:k,25:23,33:25,41:C,42:V,43:A,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:_,90:S},e(c,[2,4]),e(c,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:E,7:42,8:p,9:u,11:h,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:f,23:m,24:k,25:23,33:25,41:C,42:V,43:A,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:_,90:S},{4:17,5:E,7:43,8:p,9:u,11:h,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:f,23:m,24:k,25:23,33:25,41:C,42:V,43:A,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:_,90:S},{4:17,5:E,7:44,8:p,9:u,11:h,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:f,23:m,24:k,25:23,33:25,41:C,42:V,43:A,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:_,90:S},{4:17,5:E,7:45,8:p,9:u,11:h,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:f,23:m,24:k,25:23,33:25,41:C,42:V,43:A,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:_,90:S},{4:17,5:E,7:46,8:p,9:u,11:h,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:f,23:m,24:k,25:23,33:25,41:C,42:V,43:A,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:_,90:S},{4:17,5:E,7:47,8:p,9:u,11:h,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:f,23:m,24:k,25:23,33:25,41:C,42:V,43:A,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:_,90:S},{4:17,5:E,7:48,8:p,9:u,11:h,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:f,23:m,24:k,25:23,33:25,41:C,42:V,43:A,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:_,90:S},{4:17,5:E,7:49,8:p,9:u,11:h,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:f,23:m,24:k,25:23,33:25,41:C,42:V,43:A,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:_,90:S},{4:17,5:E,7:50,8:p,9:u,11:h,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:f,23:m,24:k,25:23,33:25,41:C,42:V,43:A,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:_,90:S},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(g,[2,17]),e(g,[2,18]),e(g,[2,19]),e(g,[2,20]),{30:60,33:62,75:P,89:_,90:S},{30:63,33:62,75:P,89:_,90:S},{30:64,33:62,75:P,89:_,90:S},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ve,[2,81]),e(Ve,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Ee,[2,79]),e(Ee,[2,80]),{27:[1,67],29:[1,68]},e(Ee,[2,85]),e(Ee,[2,86]),{62:69,65:Ae,66:ve,67:Le,68:xe,69:Oe,70:we,71:De},{62:77,65:Ae,66:ve,67:Le,68:xe,69:Oe,70:we,71:De},{30:78,33:62,75:P,89:_,90:S},{73:79,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},{30:94,33:62,75:P,76:U,89:_,90:S},{5:[1,95]},{30:96,33:62,75:P,89:_,90:S},{5:[1,97]},{30:98,33:62,75:P,89:_,90:S},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(g,[2,59],{76:U}),e(g,[2,64],{76:Me}),{33:103,75:[1,102],89:_,90:S},e(Fe,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),e(N,[2,67]),e(N,[2,69]),e(N,[2,70]),e(N,[2,71]),e(N,[2,72]),e(N,[2,73]),e(N,[2,74]),e(N,[2,75]),e(N,[2,76]),e(N,[2,77]),e(N,[2,78]),e(g,[2,57],{76:Me}),e(g,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:he,40:ue,56:113,57:fe,59:me},{27:[1,118],76:U},{33:119,89:_,90:S},{33:120,89:_,90:S},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,61]),e(pe,[2,63]),e(N,[2,68]),e(g,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(g,[2,28]),{5:[1,127]},e(g,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:fe,59:me},e(g,[2,47]),{5:[1,131]},e(g,[2,48]),e(g,[2,49]),e(Fe,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),{33:132,89:_,90:S},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(g,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(g,[2,46]),{5:he,40:ue,56:152,57:fe,59:me},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(g,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(g,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:he,40:ue,56:163,57:fe,59:me},{5:he,40:ue,56:164,57:fe,59:me},e(g,[2,23]),e(g,[2,24]),e(g,[2,25]),e(g,[2,26]),e(g,[2,44]),e(g,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:d(function(i,n){if(n.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=n,l}},"parseError"),parse:d(function(i){var n=this,l=[0],s=[],R=[null],t=[],de=this.table,a="",ge=0,$e=0,Ke=2,Pe=1,We=t.slice.call(arguments,1),b=Object.create(this.lexer),G={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(G.yy[be]=this.yy[be]);b.setInput(i,G.yy),G.yy.lexer=b,G.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var Ie=b.yylloc;t.push(Ie);var je=b.options&&b.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ge(T){l.length=l.length-2*T,R.length=R.length-T,t.length=t.length-T}d(Ge,"popStack");function Ue(){var T;return T=s.pop()||b.lex()||Pe,typeof T!="number"&&(T instanceof Array&&(s=T,T=s.pop()),T=n.symbols_[T]||T),T}d(Ue,"lex");for(var I,z,q,Te,J={},ye,F,Ye,_e;;){if(z=l[l.length-1],this.defaultActions[z]?q=this.defaultActions[z]:((I===null||typeof I>"u")&&(I=Ue()),q=de[z]&&de[z][I]),typeof q>"u"||!q.length||!q[0]){var ke="";_e=[];for(ye in de[z])this.terminals_[ye]&&ye>Ke&&_e.push("'"+this.terminals_[ye]+"'");b.showPosition?ke="Parse error on line "+(ge+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+_e.join(", ")+", got '"+(this.terminals_[I]||I)+"'":ke="Parse error on line "+(ge+1)+": Unexpected "+(I==Pe?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(ke,{text:b.match,token:this.terminals_[I]||I,line:b.yylineno,loc:Ie,expected:_e})}if(q[0]instanceof Array&&q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+I);switch(q[0]){case 1:l.push(I),R.push(b.yytext),t.push(b.yylloc),l.push(q[1]),I=null,$e=b.yyleng,a=b.yytext,ge=b.yylineno,Ie=b.yylloc;break;case 2:if(F=this.productions_[q[1]][1],J.$=R[R.length-F],J._$={first_line:t[t.length-(F||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(F||1)].first_column,last_column:t[t.length-1].last_column},je&&(J._$.range=[t[t.length-(F||1)].range[0],t[t.length-1].range[1]]),Te=this.performAction.apply(J,[a,$e,ge,G.yy,q[1],R,t].concat(We)),typeof Te<"u")return Te;F&&(l=l.slice(0,-1*F*2),R=R.slice(0,-1*F),t=t.slice(0,-1*F)),l.push(this.productions_[q[1]][0]),R.push(J.$),t.push(J._$),Ye=de[l[l.length-2]][l[l.length-1]],l.push(Ye);break;case 3:return!0}}return!0},"parse")},He=function(){var $={EOF:1,parseError:d(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:d(function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:d(function(i){var n=i.length,l=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var R=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===s.length?this.yylloc.first_column:0)+s[s.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(i){this.unput(this.match.slice(i))},"less"),pastInput:d(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{c as t}from"./index--zKd3rTs.js";/**
1
+ import{c as t}from"./index-C165MF0E.js";/**
2
2
  * @license lucide-react v0.468.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.