@opengeni/react 6.40.0 → 6.41.1-canary.45704649926001

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 (1197) hide show
  1. package/dist/app/app-state.js +34 -34
  2. package/dist/app/components/Composer.js +45 -45
  3. package/dist/app/components/add-card-dialog.js +3 -3
  4. package/dist/app/components/add-card.js +2 -2
  5. package/dist/app/components/agent/agent-capability-picker.js +10 -10
  6. package/dist/app/components/agents/agent-can-use.js +51 -50
  7. package/dist/app/components/agents/agent-cost.js +2 -2
  8. package/dist/app/components/agents/agent-form-page.js +153 -152
  9. package/dist/app/components/agents/agent-form-page.js.map +1 -1
  10. package/dist/app/components/agents/agent-page.js +134 -133
  11. package/dist/app/components/agents/agent-setup-sections.js +81 -80
  12. package/dist/app/components/agents/agent-skills.js +15 -15
  13. package/dist/app/components/agents/agent-trigger-chat-field.js +6 -6
  14. package/dist/app/components/agents/agent-trigger-dialog.js +35 -35
  15. package/dist/app/components/agents/agent-trigger-picker.js +8 -8
  16. package/dist/app/components/agents/agent-trigger-repositories.js +16 -16
  17. package/dist/app/components/agents/agents-page.js +99 -98
  18. package/dist/app/components/agents/agents-page.js.map +1 -1
  19. package/dist/app/components/agents/composer-agent-chip.js +60 -59
  20. package/dist/app/components/agents/session-agent-chip.js +55 -54
  21. package/dist/app/components/artifacts/app-package.js +13 -13
  22. package/dist/app/components/artifacts/artifact-browse-controls.js +3 -3
  23. package/dist/app/components/artifacts/artifact-library.js +30 -30
  24. package/dist/app/components/artifacts/artifact-page-chrome.js +1 -1
  25. package/dist/app/components/artifacts/artifact-viewer.js +64 -63
  26. package/dist/app/components/artifacts/artifact-viewer.js.map +1 -1
  27. package/dist/app/components/artifacts/chat-interactive-block.js +30 -28
  28. package/dist/app/components/artifacts/chat-interactive-block.js.map +1 -1
  29. package/dist/app/components/artifacts/copy-artifact-link.js +3 -3
  30. package/dist/app/components/artifacts/file-reach-dialog.js +13 -13
  31. package/dist/app/components/artifacts/inline-chat-image.js +52 -51
  32. package/dist/app/components/artifacts/ready-made-apps.js +13 -13
  33. package/dist/app/components/artifacts/retained-file-preview.js +57 -56
  34. package/dist/app/components/artifacts/retained-text-preview.js +7 -7
  35. package/dist/app/components/artifacts/site-actions.js +11 -11
  36. package/dist/app/components/artifacts/site-audience.js +8 -8
  37. package/dist/app/components/artifacts/site-conversations.js +34 -34
  38. package/dist/app/components/artifacts/site-data.js +30 -30
  39. package/dist/app/components/artifacts/site-public-link.js +1 -1
  40. package/dist/app/components/artifacts/site-publishing-page.js +72 -72
  41. package/dist/app/components/artifacts/site-publishing.js +55 -55
  42. package/dist/app/components/artifacts/site-settings.js +71 -71
  43. package/dist/app/components/artifacts/site-version-menu.js +9 -9
  44. package/dist/app/components/billing-class-mark.js +7 -7
  45. package/dist/app/components/capabilities/capability-detail-sheet.js +18 -18
  46. package/dist/app/components/capabilities/capability-logo-source.js +31 -30
  47. package/dist/app/components/capabilities/capability-logo.js +1 -1
  48. package/dist/app/components/capabilities/connection-account-picker.js +2 -2
  49. package/dist/app/components/capabilities/connection-ownership-selector.js +4 -4
  50. package/dist/app/components/capabilities/connector-tool-permissions.js +7 -7
  51. package/dist/app/components/capabilities/detail-dialog.js +3 -3
  52. package/dist/app/components/capabilities/native-connect-setup.js +36 -35
  53. package/dist/app/components/capabilities/own-logins-shared-heads-up.js +7 -7
  54. package/dist/app/components/capabilities/perform-capability-action.js +3 -3
  55. package/dist/app/components/capabilities/prepared-mcp-setup-card.js +35 -34
  56. package/dist/app/components/capabilities/session-capability-card.js +142 -141
  57. package/dist/app/components/capabilities/session-capability-card.js.map +1 -1
  58. package/dist/app/components/capabilities/session-chrome-card.js +49 -49
  59. package/dist/app/components/capabilities/session-connect-inputs-card.js +38 -37
  60. package/dist/app/components/capabilities/session-custom-mcp-card.js +43 -42
  61. package/dist/app/components/capabilities/session-github-card.js +49 -48
  62. package/dist/app/components/capabilities/session-machine-card.js +50 -50
  63. package/dist/app/components/capabilities/session-personal-github-card.js +35 -34
  64. package/dist/app/components/capabilities/session-plugin-card.js +23 -22
  65. package/dist/app/components/capabilities/use-capabilities-catalog.js +4 -4
  66. package/dist/app/components/capabilities/use-connection-accounts.js +3 -3
  67. package/dist/app/components/command-menu/chat-status.js +25 -25
  68. package/dist/app/components/command-menu/chat-switcher.js +90 -89
  69. package/dist/app/components/command-menu/chat-switcher.js.map +1 -1
  70. package/dist/app/components/command-menu/command-menu.js +118 -117
  71. package/dist/app/components/command-menu/command-menu.js.map +1 -1
  72. package/dist/app/components/command-menu/shortcut-sheet.js +26 -26
  73. package/dist/app/components/composer-capabilities-menu-body.js +7 -7
  74. package/dist/app/components/composer-mobile-plus-panel.js +32 -32
  75. package/dist/app/components/composer-mobile-plus.js +5 -5
  76. package/dist/app/components/credit-amount-picker.js +2 -2
  77. package/dist/app/components/credit-required-gate.js +6 -6
  78. package/dist/app/components/credit-required-prompt.js +27 -27
  79. package/dist/app/components/credits/checkout-credits-celebration.js +4 -4
  80. package/dist/app/components/credits/checkout-return.js +4 -4
  81. package/dist/app/components/credits/coupon-redeem.js +1 -1
  82. package/dist/app/components/credits/credit-refusal-notice.js +8 -8
  83. package/dist/app/components/credits/own-subscription-plan-notice.js +3 -3
  84. package/dist/app/components/cross-slot-deep-link-recovery.js +2 -2
  85. package/dist/app/components/desktop/app-shots.js +10 -10
  86. package/dist/app/components/desktop/app-update.js +3 -3
  87. package/dist/app/components/desktop/computer-use.js +4 -4
  88. package/dist/app/components/desktop/this-computer.js +8 -8
  89. package/dist/app/components/feedback.js +11 -11
  90. package/dist/app/components/follow-up-repository-menu-body.js +12 -12
  91. package/dist/app/components/follow-up-repository-picker.js +1 -1
  92. package/dist/app/components/github-app-connect-launcher.js +2 -2
  93. package/dist/app/components/in-app-help-link.js +3 -3
  94. package/dist/app/components/knowledge/agent-learning-settings.js +5 -5
  95. package/dist/app/components/machines/connect-machine-dialog.js +25 -25
  96. package/dist/app/components/manual-repository-editor.js +1 -1
  97. package/dist/app/components/markdown.js +18 -17
  98. package/dist/app/components/model-identity.js +3 -3
  99. package/dist/app/components/models/models-ui.js +17 -17
  100. package/dist/app/components/models/provider-mark.js +3 -3
  101. package/dist/app/components/models/subscription-usage.js +5 -5
  102. package/dist/app/components/my-things.js +19 -19
  103. package/dist/app/components/own-where-it-works.js +12 -12
  104. package/dist/app/components/personal-resource-attachment-surface.js +4 -4
  105. package/dist/app/components/pickers.js +12 -12
  106. package/dist/app/components/rail/channel-create-dialog.js +6 -6
  107. package/dist/app/components/rail/project-glyph.js +54 -53
  108. package/dist/app/components/rail/project-profile.js +76 -75
  109. package/dist/app/components/rail/rail-context.js +2 -2
  110. package/dist/app/components/rail/rail-sections.js +155 -154
  111. package/dist/app/components/rail/session-header.js +125 -124
  112. package/dist/app/components/rail/session-list.js +153 -152
  113. package/dist/app/components/rail/session-row-content.js +6 -6
  114. package/dist/app/components/rail/session-row-hover-details.js +36 -36
  115. package/dist/app/components/rail/session-shell.js +194 -193
  116. package/dist/app/components/rail/site-session-group-heading.js +37 -37
  117. package/dist/app/components/repository-picker.js +12 -12
  118. package/dist/app/components/secrets/session-secrets-panel.js +3 -3
  119. package/dist/app/components/session/agent-configuration-panel.js +53 -53
  120. package/dist/app/components/session/artifact-session-page.js +8 -8
  121. package/dist/app/components/session/banners.js +22 -21
  122. package/dist/app/components/session/chat-avatar.js +54 -53
  123. package/dist/app/components/session/console-new-conversation.js +105 -104
  124. package/dist/app/components/session/descendant-requests.js +101 -100
  125. package/dist/app/components/session/descendant-requests.js.map +1 -1
  126. package/dist/app/components/session/editable-artifacts-workspace.js +62 -60
  127. package/dist/app/components/session/editable-artifacts-workspace.js.map +1 -1
  128. package/dist/app/components/session/failed-session-banner.js +28 -28
  129. package/dist/app/components/session/failure-recovery-boundary.js +3 -3
  130. package/dist/app/components/session/human-input-delegation-record.js +3 -3
  131. package/dist/app/components/session/human-input.js +88 -87
  132. package/dist/app/components/session/inspector.js +136 -135
  133. package/dist/app/components/session/inspector.js.map +1 -1
  134. package/dist/app/components/session/linked-panel.js +3 -3
  135. package/dist/app/components/session/message-actions.js +11 -11
  136. package/dist/app/components/session/model-recovery-notice.js +4 -4
  137. package/dist/app/components/session/new-session-settings-menu.js +32 -32
  138. package/dist/app/components/session/new-session-setup-strip.js +58 -57
  139. package/dist/app/components/session/own-account-wait-notice.js +8 -8
  140. package/dist/app/components/session/pinned-account-wait-notice.js +8 -8
  141. package/dist/app/components/session/pull-request-panel.js +26 -25
  142. package/dist/app/components/session/sandbox-recovery-actions.js +5 -5
  143. package/dist/app/components/session/sandbox-switcher.js +22 -22
  144. package/dist/app/components/session/sandbox-workspace.js +118 -117
  145. package/dist/app/components/session/search-markdown-highlight.js +19 -18
  146. package/dist/app/components/session/search-results-view.js +20 -19
  147. package/dist/app/components/session/session-admin-access.js +12 -12
  148. package/dist/app/components/session/session-admission-notice.js +11 -11
  149. package/dist/app/components/session/session-avatar-picker.js +61 -60
  150. package/dist/app/components/session/session-avatar.js +56 -55
  151. package/dist/app/components/session/session-machine-access-notice.js +11 -11
  152. package/dist/app/components/session/session-profile-dialog.js +72 -71
  153. package/dist/app/components/session/session-profile-editor.js +73 -72
  154. package/dist/app/components/session/session-retention.js +8 -8
  155. package/dist/app/components/session/session-search-dialog.js +26 -25
  156. package/dist/app/components/session/session-search-dialog.js.map +1 -1
  157. package/dist/app/components/session/session-skill-reviews.js +5 -5
  158. package/dist/app/components/session/session-tenancy-control.js +25 -25
  159. package/dist/app/components/session/session-unattended-setting.js +4 -4
  160. package/dist/app/components/session/session-usage-limit-section.js +13 -13
  161. package/dist/app/components/session/share-chat-dialog.js +12 -12
  162. package/dist/app/components/session/subagents.js +22 -22
  163. package/dist/app/components/session/subscription-account-indicator.js +25 -25
  164. package/dist/app/components/session/subscription-account-menu.js +7 -7
  165. package/dist/app/components/session-connectors-menu-body.js +11 -11
  166. package/dist/app/components/settings/row-select.js +6 -6
  167. package/dist/app/components/transcription-settings.js +10 -10
  168. package/dist/app/components/ui/destructive-confirm.js +11 -11
  169. package/dist/app/components/usage/usage-entry.js +8 -8
  170. package/dist/app/components/window-bar.js +25 -25
  171. package/dist/app/components/workspace-composer-plus.js +46 -45
  172. package/dist/app/components/workspace-reach.d.ts +2 -0
  173. package/dist/app/components/workspace-reach.js +6 -6
  174. package/dist/app/embed/session-app.js +406 -405
  175. package/dist/app/lib/actions/actions-provider.js +18 -18
  176. package/dist/app/lib/agent-capabilities.js +4 -4
  177. package/dist/app/lib/app-connect-card.js +16 -16
  178. package/dist/app/lib/app-shared-key-dialog.js +9 -9
  179. package/dist/app/lib/app-surfaces.js +1 -1
  180. package/dist/app/lib/app-sync-opt-in.js +7 -7
  181. package/dist/app/lib/codex-usage-query.js +3 -3
  182. package/dist/app/lib/composer-agent.js +2 -2
  183. package/dist/app/lib/composer-connectors.js +35 -34
  184. package/dist/app/lib/composer-send-blocking.js +2 -2
  185. package/dist/app/lib/console-site.js +9 -9
  186. package/dist/app/lib/console-text.js +2 -2
  187. package/dist/app/lib/events.js +32 -31
  188. package/dist/app/lib/failed-session-copy.js +5 -5
  189. package/dist/app/lib/feedback-capture.js +2 -2
  190. package/dist/app/lib/model-access-onboarding.js +4 -4
  191. package/dist/app/lib/move-chat-to-machine.js +5 -5
  192. package/dist/app/lib/personal-resource-attachments.js +1 -1
  193. package/dist/app/lib/session-branch-cache.js +18 -18
  194. package/dist/app/lib/session-create.js +5 -5
  195. package/dist/app/lib/session-group-pagination.js +18 -18
  196. package/dist/app/lib/session-hover-facts.js +25 -25
  197. package/dist/app/lib/session-list-dirty-scopes.js +19 -19
  198. package/dist/app/lib/session-model.js +2 -2
  199. package/dist/app/lib/session-rail.js +15 -15
  200. package/dist/app/lib/session-rename.js +3 -3
  201. package/dist/app/lib/sessions-group.js +23 -23
  202. package/dist/app/lib/site-tool-consent-dialog.js +24 -24
  203. package/dist/app/lib/site-tool-consent.js +1 -1
  204. package/dist/app/lib/turn-failure-analytics.js +6 -6
  205. package/dist/app/lib/use-artifact-catalog.js +2 -2
  206. package/dist/app/lib/use-duplicate-site.js +4 -4
  207. package/dist/app/lib/use-follow-up-repositories.js +9 -9
  208. package/dist/app/lib/use-personal-resource-attachment.js +2 -2
  209. package/dist/app/lib/use-workspace-integrations.js +2 -2
  210. package/dist/app/lib/use-workspace-machines.js +10 -10
  211. package/dist/app/lib/use-workspace-model-catalog.js +6 -6
  212. package/dist/app/lib/use-workspace-rigs.js +6 -6
  213. package/dist/app/lib/workspace-navigation-preference.js +5 -5
  214. package/dist/app/lib/workspace-scope-context.js +4 -4
  215. package/dist/app/routes/app-page-view.js +52 -50
  216. package/dist/app/routes/app-page-view.js.map +1 -1
  217. package/dist/app/routes/app-page.js +2 -2
  218. package/dist/app/routes/artifacts.js +170 -168
  219. package/dist/app/routes/artifacts.js.map +1 -1
  220. package/dist/app/routes/retained-artifact.js +110 -109
  221. package/dist/app/routes/retained-artifact.js.map +1 -1
  222. package/dist/app/routes/session-unavailable.js +6 -6
  223. package/dist/app/routes/session.js +249 -248
  224. package/dist/app/routes/sessions-index-hydration.js +6 -6
  225. package/dist/app/routes/sessions-index.js +204 -203
  226. package/dist/app/routes/site-view.js +210 -209
  227. package/dist/app/routes/site-view.js.map +1 -1
  228. package/dist/artifacts-document.js +4 -4
  229. package/dist/artifacts-presentation.js +9 -9
  230. package/dist/artifacts-spreadsheet.js +4 -4
  231. package/dist/artifacts.js +53 -51
  232. package/dist/automation-model.js +6 -6
  233. package/dist/automations.js +64 -64
  234. package/dist/browser-viewer-TRPZI6NT.js +23 -0
  235. package/dist/chat-interactive-block-Y4BS4JCM.js +24 -0
  236. package/dist/chunk-22E2YJHT.js +469 -0
  237. package/dist/chunk-2T6TN2YL.js +538 -0
  238. package/dist/chunk-2WNN26NW.js +175 -0
  239. package/dist/chunk-3432A6XB.js +88 -0
  240. package/dist/chunk-35U7NSOR.js +366 -0
  241. package/dist/chunk-3EPR76WS.js +773 -0
  242. package/dist/chunk-3FXXEU5D.js +144 -0
  243. package/dist/chunk-3MXOPOEU.js +650 -0
  244. package/dist/chunk-3PKDU4JI.js +340 -0
  245. package/dist/chunk-3PMO2BIV.js +12 -0
  246. package/dist/chunk-3XWHJNFY.js +48 -0
  247. package/dist/chunk-45WD2PKE.js +401 -0
  248. package/dist/chunk-4H2OWNRA.js +598 -0
  249. package/dist/chunk-4HVGOTMU.js +263 -0
  250. package/dist/chunk-4JER2ZMV.js +818 -0
  251. package/dist/chunk-4LVZ2VOQ.js +214 -0
  252. package/dist/chunk-4OGDD2EM.js +2434 -0
  253. package/dist/chunk-4PQC6WMF.js +54 -0
  254. package/dist/chunk-4UVSWAT3.js +794 -0
  255. package/dist/chunk-53A47RBX.js +214 -0
  256. package/dist/chunk-552KKENW.js +114 -0
  257. package/dist/chunk-55F7L6M3.js +177 -0
  258. package/dist/chunk-5AHIKB3O.js +449 -0
  259. package/dist/chunk-5KQD6MLJ.js +3996 -0
  260. package/dist/chunk-5KQD6MLJ.js.map +1 -0
  261. package/dist/chunk-5N4L5WTE.js +199 -0
  262. package/dist/chunk-5OUJCVZI.js +79 -0
  263. package/dist/chunk-5OYXQ7MH.js +65 -0
  264. package/dist/chunk-5RGF74K5.js +371 -0
  265. package/dist/chunk-5RGF74K5.js.map +1 -0
  266. package/dist/chunk-5TAVVMFX.js +225 -0
  267. package/dist/chunk-5Y3LYRNH.js +269 -0
  268. package/dist/chunk-5ZJKKE4T.js +386 -0
  269. package/dist/chunk-62DPSQRZ.js +57 -0
  270. package/dist/chunk-64KMWTJ6.js +608 -0
  271. package/dist/chunk-6F34IWSA.js +47 -0
  272. package/dist/chunk-6F34IWSA.js.map +1 -0
  273. package/dist/chunk-6MZBNUS7.js +73 -0
  274. package/dist/chunk-6YCE4ZC4.js +250 -0
  275. package/dist/chunk-6YROWWMX.js +175 -0
  276. package/dist/chunk-73RZ72VU.js +1236 -0
  277. package/dist/chunk-74KV436L.js +84 -0
  278. package/dist/chunk-7HKGLPV5.js +83 -0
  279. package/dist/chunk-7JSWODT6.js +466 -0
  280. package/dist/chunk-7K3PKWER.js +428 -0
  281. package/dist/chunk-7MPWC42V.js +1356 -0
  282. package/dist/chunk-7REO6FRN.js +141 -0
  283. package/dist/chunk-7V3OL7JC.js +850 -0
  284. package/dist/chunk-7V3OL7JC.js.map +1 -0
  285. package/dist/chunk-7YMWRNRQ.js +145 -0
  286. package/dist/chunk-A6H3KJ7G.js +131 -0
  287. package/dist/chunk-AGQIE6YU.js +1769 -0
  288. package/dist/chunk-AHQM4I5V.js +373 -0
  289. package/dist/chunk-AMTRO7XF.js +172 -0
  290. package/dist/chunk-AO4LTCG7.js +91 -0
  291. package/dist/chunk-APJ22OZV.js +2580 -0
  292. package/dist/chunk-APWL37KW.js +407 -0
  293. package/dist/chunk-AQEJOBQ2.js +15 -0
  294. package/dist/chunk-ARKNT6BX.js +234 -0
  295. package/dist/chunk-B2IHDMAR.js +211 -0
  296. package/dist/chunk-BCKIV26W.js +112 -0
  297. package/dist/chunk-BE26JUSD.js +259 -0
  298. package/dist/chunk-BOVCD6KD.js +171 -0
  299. package/dist/chunk-BQWV66A6.js +129 -0
  300. package/dist/chunk-BSQJXGGP.js +441 -0
  301. package/dist/chunk-BZY3MEVZ.js +3183 -0
  302. package/dist/chunk-C3D3OOEY.js +335 -0
  303. package/dist/chunk-CDHYO3DP.js +82 -0
  304. package/dist/chunk-CDV5JGVI.js +79 -0
  305. package/dist/chunk-CNW45M7G.js +207 -0
  306. package/dist/chunk-CUVQ37HB.js +150 -0
  307. package/dist/chunk-D32T3IIC.js +532 -0
  308. package/dist/chunk-D32VVOBJ.js +738 -0
  309. package/dist/chunk-D32VVOBJ.js.map +1 -0
  310. package/dist/chunk-D65BSM64.js +371 -0
  311. package/dist/chunk-D7435DWV.js +570 -0
  312. package/dist/chunk-DFH3M7B3.js +72 -0
  313. package/dist/chunk-DGWBQ76M.js +162 -0
  314. package/dist/chunk-DHJDTGSJ.js +372 -0
  315. package/dist/chunk-DKEFTNCD.js +400 -0
  316. package/dist/chunk-DNAF6MT4.js +107 -0
  317. package/dist/chunk-DSJ7K5IF.js +380 -0
  318. package/dist/chunk-DSJ7K5IF.js.map +1 -0
  319. package/dist/chunk-E35XY7DS.js +27 -0
  320. package/dist/chunk-E5T5WIIP.js +396 -0
  321. package/dist/chunk-EL6ECD34.js +166 -0
  322. package/dist/chunk-ELR6ITRC.js +467 -0
  323. package/dist/chunk-EPE3V2VE.js +851 -0
  324. package/dist/chunk-EYGQHHVW.js +584 -0
  325. package/dist/chunk-EYQEJHYP.js +307 -0
  326. package/dist/chunk-EZTH2XMH.js +276 -0
  327. package/dist/chunk-F3QVHVFS.js +287 -0
  328. package/dist/chunk-F5VWPREQ.js +1187 -0
  329. package/dist/chunk-FM7AQUBL.js +113 -0
  330. package/dist/chunk-FP6BUXJM.js +100 -0
  331. package/dist/chunk-FVU52L3I.js +249 -0
  332. package/dist/chunk-FZKNXNNO.js +218 -0
  333. package/dist/chunk-G3IXJWRY.js +236 -0
  334. package/dist/chunk-G6EI2O3N.js +333 -0
  335. package/dist/chunk-G7KHMA3E.js +256 -0
  336. package/dist/chunk-G7KHMA3E.js.map +1 -0
  337. package/dist/chunk-GB5T6YMZ.js +401 -0
  338. package/dist/chunk-GBLD6FOG.js +157 -0
  339. package/dist/chunk-GJBFFXCY.js +137 -0
  340. package/dist/chunk-GJDP2K2S.js +66 -0
  341. package/dist/chunk-GP26XTDX.js +187 -0
  342. package/dist/chunk-GTE6WP4N.js +606 -0
  343. package/dist/chunk-GWG3OAV7.js +108 -0
  344. package/dist/chunk-GXMHTMM6.js +931 -0
  345. package/dist/chunk-GYRN5O2E.js +107 -0
  346. package/dist/chunk-GZX7W2WW.js +65 -0
  347. package/dist/chunk-H3QI2G2B.js +403 -0
  348. package/dist/chunk-H7D4DVWY.js +849 -0
  349. package/dist/chunk-HCDGBBBJ.js +191 -0
  350. package/dist/chunk-HDSH6MIJ.js +3851 -0
  351. package/dist/chunk-HOEUPZ6O.js +89 -0
  352. package/dist/chunk-HPQRWTQB.js +772 -0
  353. package/dist/chunk-HUKGLWAY.js +174 -0
  354. package/dist/chunk-HUTQJY3F.js +23 -0
  355. package/dist/chunk-HWOYJOKK.js +266 -0
  356. package/dist/chunk-HZR3WGUP.js +96 -0
  357. package/dist/chunk-I7YUDPDR.js +138 -0
  358. package/dist/chunk-IDII52M4.js +27 -0
  359. package/dist/chunk-IDPWEUM7.js +103 -0
  360. package/dist/chunk-IEWQFGEC.js +192 -0
  361. package/dist/chunk-IKWGPFT5.js +300 -0
  362. package/dist/chunk-IKWGPFT5.js.map +1 -0
  363. package/dist/chunk-IMTACEXF.js +351 -0
  364. package/dist/chunk-IVWT6M6N.js +114 -0
  365. package/dist/chunk-JE2YXAVR.js +485 -0
  366. package/dist/chunk-JE2YXAVR.js.map +1 -0
  367. package/dist/chunk-JEUPIHIP.js +111 -0
  368. package/dist/chunk-JF4WX3GQ.js +168 -0
  369. package/dist/chunk-JJPYXUKC.js +2591 -0
  370. package/dist/chunk-JNHWTYDD.js +43 -0
  371. package/dist/chunk-JP7AOJWD.js +46 -0
  372. package/dist/chunk-JTWT2WQA.js +297 -0
  373. package/dist/chunk-JW3WIHWO.js +117 -0
  374. package/dist/chunk-JW7RJMEZ.js +134 -0
  375. package/dist/chunk-K76PXR3O.js +2317 -0
  376. package/dist/chunk-KCNIQN6V.js +107 -0
  377. package/dist/chunk-KH6KHYST.js +231 -0
  378. package/dist/chunk-KK4SEN7N.js +247 -0
  379. package/dist/chunk-KOKRGAAI.js +383 -0
  380. package/dist/chunk-KQFNTGAF.js +187 -0
  381. package/dist/chunk-KRLNC6TH.js +50 -0
  382. package/dist/chunk-KYDLVMKA.js +99 -0
  383. package/dist/chunk-KZQDP2JM.js +155 -0
  384. package/dist/chunk-L2EZ2HOX.js +132 -0
  385. package/dist/chunk-L2UAFR2D.js +33 -0
  386. package/dist/chunk-L4R7ORMD.js +4596 -0
  387. package/dist/chunk-LCLWN64E.js +227 -0
  388. package/dist/chunk-LFQI2C46.js +175 -0
  389. package/dist/chunk-LLYX4F5A.js +1628 -0
  390. package/dist/chunk-LQX5QCDS.js +215 -0
  391. package/dist/chunk-LRMHASG2.js +196 -0
  392. package/dist/chunk-LVUSG56I.js +5930 -0
  393. package/dist/chunk-LVUSG56I.js.map +1 -0
  394. package/dist/chunk-M5FX5KH5.js +629 -0
  395. package/dist/chunk-MLOTUQJJ.js +201 -0
  396. package/dist/chunk-MPUKGKXZ.js +209 -0
  397. package/dist/chunk-MS6LW4VU.js +283 -0
  398. package/dist/chunk-MWN7LDYV.js +4601 -0
  399. package/dist/chunk-MWN7LDYV.js.map +1 -0
  400. package/dist/chunk-MXPW4F74.js +278 -0
  401. package/dist/chunk-MZ7GJX5S.js +158 -0
  402. package/dist/chunk-N5OUIUYD.js +1260 -0
  403. package/dist/chunk-N6FNORC7.js +412 -0
  404. package/dist/chunk-NALVKY4U.js +113 -0
  405. package/dist/chunk-NJ77ZL5T.js +5222 -0
  406. package/dist/chunk-NM2DNJDJ.js +270 -0
  407. package/dist/chunk-NNKRRF7E.js +110 -0
  408. package/dist/chunk-NP5UFWU4.js +318 -0
  409. package/dist/chunk-NV3AEIFO.js +118 -0
  410. package/dist/chunk-O6JDF7KH.js +828 -0
  411. package/dist/chunk-OERZH3J4.js +251 -0
  412. package/dist/chunk-OKHWTWWU.js +1152 -0
  413. package/dist/chunk-OLAIUVGT.js +274 -0
  414. package/dist/chunk-OO36IUMS.js +270 -0
  415. package/dist/chunk-OVDK7K2Z.js +57 -0
  416. package/dist/chunk-OX5ZCHZQ.js +63 -0
  417. package/dist/chunk-P6LLCGPO.js +515 -0
  418. package/dist/chunk-PA2CUHTD.js +505 -0
  419. package/dist/chunk-PB4CQIRA.js +4979 -0
  420. package/dist/chunk-PBV2P632.js +566 -0
  421. package/dist/chunk-PCSRHFRF.js +75 -0
  422. package/dist/chunk-PEPWW5BC.js +436 -0
  423. package/dist/chunk-PMBZMVKE.js +33 -0
  424. package/dist/chunk-PP32RE26.js +34 -0
  425. package/dist/chunk-PTXAPI3Q.js +73 -0
  426. package/dist/chunk-PULNNF7G.js +56 -0
  427. package/dist/chunk-Q6KNROUT.js +158 -0
  428. package/dist/chunk-QEGP3HSW.js +184 -0
  429. package/dist/chunk-QEGP3HSW.js.map +1 -0
  430. package/dist/chunk-QGJIFIKN.js +1032 -0
  431. package/dist/chunk-QKKKORGL.js +41 -0
  432. package/dist/chunk-QKUMMG6P.js +85 -0
  433. package/dist/chunk-QNOWKKZ4.js +40 -0
  434. package/dist/chunk-QSWD3AHE.js +84 -0
  435. package/dist/chunk-QZ4U2VL5.js +391 -0
  436. package/dist/chunk-QZJNCLHV.js +271 -0
  437. package/dist/chunk-R6CFPY3F.js +278 -0
  438. package/dist/chunk-R6QRUYUH.js +406 -0
  439. package/dist/chunk-RE3GAQI5.js +2984 -0
  440. package/dist/chunk-RFHUVPFA.js +1184 -0
  441. package/dist/chunk-RH45HT5T.js +3690 -0
  442. package/dist/chunk-RJNQTZ5O.js +439 -0
  443. package/dist/chunk-RN24AP7Q.js +247 -0
  444. package/dist/chunk-RN24AP7Q.js.map +1 -0
  445. package/dist/chunk-S2BJTAAB.js +37 -0
  446. package/dist/chunk-S56PWXIX.js +138 -0
  447. package/dist/chunk-S6BDABIC.js +1390 -0
  448. package/dist/chunk-S6BDABIC.js.map +1 -0
  449. package/dist/chunk-S6FFDIHD.js +640 -0
  450. package/dist/chunk-S6MAMIK2.js +56 -0
  451. package/dist/chunk-SERTO6H6.js +311 -0
  452. package/dist/chunk-STOOH7EI.js +200 -0
  453. package/dist/chunk-SWSTEUXX.js +121 -0
  454. package/dist/chunk-SWZN7NNZ.js +1029 -0
  455. package/dist/chunk-SYDF57KS.js +178 -0
  456. package/dist/chunk-T275CUVD.js +29 -0
  457. package/dist/chunk-T4OT7QWP.js +378 -0
  458. package/dist/chunk-TCSRY2NP.js +2582 -0
  459. package/dist/chunk-TCX5OA2X.js +1177 -0
  460. package/dist/chunk-TDW5CSO5.js +3158 -0
  461. package/dist/chunk-TGG3ODCS.js +99 -0
  462. package/dist/chunk-TILSTYUC.js +505 -0
  463. package/dist/chunk-TJ5DYWXU.js +1333 -0
  464. package/dist/chunk-TNRI4ZE6.js +391 -0
  465. package/dist/chunk-TPIFVUMF.js +188 -0
  466. package/dist/chunk-TSW6OF22.js +162 -0
  467. package/dist/chunk-TTSTBHGR.js +1095 -0
  468. package/dist/chunk-U3JYAWMR.js +170 -0
  469. package/dist/chunk-U7ODSHA5.js +124 -0
  470. package/dist/chunk-UEGEPRNP.js +48 -0
  471. package/dist/chunk-UGIA2YEJ.js +83 -0
  472. package/dist/chunk-UHLKKDNF.js +432 -0
  473. package/dist/chunk-ULVXKIPX.js +26 -0
  474. package/dist/chunk-UN37ZY6R.js +10074 -0
  475. package/dist/chunk-UN37ZY6R.js.map +1 -0
  476. package/dist/chunk-USUDKZ5G.js +98 -0
  477. package/dist/chunk-UVO6I2F6.js +85 -0
  478. package/dist/chunk-V6NVG4K2.js +357 -0
  479. package/dist/chunk-VCMQFD3G.js +1185 -0
  480. package/dist/chunk-VKPBDNIO.js +246 -0
  481. package/dist/chunk-VLDKWGHD.js +61 -0
  482. package/dist/chunk-VM2NA2EL.js +905 -0
  483. package/dist/chunk-VMZTCVEL.js +114 -0
  484. package/dist/chunk-VQH5AXZY.js +269 -0
  485. package/dist/chunk-VTBTW6N4.js +114 -0
  486. package/dist/chunk-VV7PLDX4.js +230 -0
  487. package/dist/chunk-VYGGLH5H.js +50 -0
  488. package/dist/chunk-VYQHHTQ4.js +133 -0
  489. package/dist/chunk-VYSGRD2W.js +292 -0
  490. package/dist/chunk-W4W63LTP.js +1309 -0
  491. package/dist/chunk-WFC2JA6D.js +2335 -0
  492. package/dist/chunk-WFC2JA6D.js.map +1 -0
  493. package/dist/chunk-WHTRR66J.js +197 -0
  494. package/dist/chunk-WICIQFHJ.js +42 -0
  495. package/dist/chunk-WJYYMCCC.js +283 -0
  496. package/dist/chunk-WSJOWQJE.js +399 -0
  497. package/dist/chunk-WY333GHH.js +108 -0
  498. package/dist/chunk-WY333GHH.js.map +1 -0
  499. package/dist/chunk-WYDUXZ2R.js +353 -0
  500. package/dist/chunk-X62CN4YR.js +3321 -0
  501. package/dist/chunk-XFQHKMO6.js +1024 -0
  502. package/dist/chunk-XGJ7XZHS.js +527 -0
  503. package/dist/chunk-XJFJNOEV.js +723 -0
  504. package/dist/chunk-XKJLHMXZ.js +234 -0
  505. package/dist/chunk-XLFPJVQS.js +103 -0
  506. package/dist/chunk-XM4ZLZFW.js +129 -0
  507. package/dist/chunk-Y2GAWEJD.js +1021 -0
  508. package/dist/chunk-Y3A74SVK.js +296 -0
  509. package/dist/chunk-YANEVGI3.js +92 -0
  510. package/dist/chunk-YHHSO5QR.js +128 -0
  511. package/dist/chunk-YOSOCHCB.js +52 -0
  512. package/dist/chunk-YP4SNX4P.js +220 -0
  513. package/dist/chunk-YQH6AMIH.js +176 -0
  514. package/dist/chunk-YRWL2IAE.js +165 -0
  515. package/dist/chunk-YTWRQ3WK.js +251 -0
  516. package/dist/chunk-YV5GGSLK.js +20 -0
  517. package/dist/chunk-YXUDK37V.js +126 -0
  518. package/dist/chunk-YYM5TSCR.js +75 -0
  519. package/dist/chunk-ZG2CKFQF.js +202 -0
  520. package/dist/chunk-ZGJXO2HH.js +93 -0
  521. package/dist/chunk-ZGV76PZ4.js +3070 -0
  522. package/dist/chunk-ZOBUR2VC.js +229 -0
  523. package/dist/components/artifacts/artifact-chrome.d.ts +4 -0
  524. package/dist/components/artifacts/artifact-sandbox.d.ts +13 -0
  525. package/dist/components/artifacts/inline-html-document.d.ts +10 -1
  526. package/dist/components/artifacts/published-html-artifact-frame.d.ts +17 -0
  527. package/dist/components/preview-loading.d.ts +3 -1
  528. package/dist/composer.js +37 -37
  529. package/dist/computer-viewer-S6AL3XDT.js +21 -0
  530. package/dist/connect.js +38 -37
  531. package/dist/connection-step-up-XGPZKQEL.js +149 -0
  532. package/dist/connection-step-up-XGPZKQEL.js.map +1 -0
  533. package/dist/desktop-dictation.js +23 -23
  534. package/dist/desktop.js +2 -2
  535. package/dist/editor.js +2 -2
  536. package/dist/embedded-new-voice-T3BXRYJX.js +25 -0
  537. package/dist/embedded-voice-ZJXMF3RP.js +25 -0
  538. package/dist/fleet-decision-row-AUCMLBCV.js +361 -0
  539. package/dist/in-chat-connect-model.js +5 -5
  540. package/dist/index.js +296 -295
  541. package/dist/interaction.js +9 -9
  542. package/dist/latest-question-D5BKKEP6.js +1 -1
  543. package/dist/machine-request-model.js +1 -1
  544. package/dist/machines.js +8 -8
  545. package/dist/meetings/meeting-detail-page.d.ts +14 -0
  546. package/dist/meetings/meeting-notes.d.ts +6 -2
  547. package/dist/meetings/meeting-transcript.d.ts +3 -1
  548. package/dist/meetings-recorder.js +1 -1
  549. package/dist/meetings.js +367 -260
  550. package/dist/meetings.js.map +1 -1
  551. package/dist/messages/en.d.ts +6 -2
  552. package/dist/messages.js +1 -1
  553. package/dist/model-policy-picker-menu-TO57YUQ6.js +23 -0
  554. package/dist/native-previews.js +1 -1
  555. package/dist/payment-page-card-DFGDAMTG.js +227 -0
  556. package/dist/platform-activity-row-ZMBEJGXN.js +156 -0
  557. package/dist/queue-surface-implementation-KDK5CYH6.js +933 -0
  558. package/dist/realtime.js +17 -17
  559. package/dist/recorder-host-3HLYRL4H.js +80 -0
  560. package/dist/recordings.js +3 -3
  561. package/dist/sandbox-files-UOZ4OJZU.js +29 -0
  562. package/dist/session-app.js +406 -405
  563. package/dist/session-connect-cards-VZIYLH45.js +28 -0
  564. package/dist/session-list-model.js +2 -2
  565. package/dist/session-realtime-2ZGJWVZP.js +30 -0
  566. package/dist/session-realtime.js +2 -2
  567. package/dist/session-ui.js +98 -97
  568. package/dist/session.js +40 -40
  569. package/dist/sites.js +3 -3
  570. package/dist/skills.js +32 -32
  571. package/dist/terminal.js +2 -2
  572. package/dist/testing/meetings-fixture.d.ts +8 -0
  573. package/dist/testing/meetings-fixture.js +22 -1
  574. package/dist/testing/meetings-fixture.js.map +1 -1
  575. package/dist/this-computer.js +3 -3
  576. package/dist/timeline-annotation-markers-KBTFWLME.js +157 -0
  577. package/dist/timeline-annotation-selection-VI4YSDR5.js +208 -0
  578. package/dist/timeline-annotations-dialog-4PLWNLRB.js +283 -0
  579. package/dist/timeline-model.js +37 -37
  580. package/dist/ui/access-list.js +24 -24
  581. package/dist/ui/cadence-picker.js +7 -7
  582. package/dist/ui/capability-page.js +10 -10
  583. package/dist/ui/choice-cards.js +3 -3
  584. package/dist/ui/confirm-dialog.js +4 -4
  585. package/dist/ui/copy-field.js +3 -3
  586. package/dist/ui/detail-page.js +6 -6
  587. package/dist/ui/detail-sheet.js +6 -6
  588. package/dist/ui/dialog.js +2 -2
  589. package/dist/ui/diff-view.js +3 -3
  590. package/dist/ui/disclosure.js +7 -7
  591. package/dist/ui/email-chips-input.js +3 -3
  592. package/dist/ui/field.js +2 -2
  593. package/dist/ui/flush-form-page.js +8 -8
  594. package/dist/ui/form-dialog.js +7 -7
  595. package/dist/ui/list-row.js +7 -7
  596. package/dist/ui/load-failure.js +3 -3
  597. package/dist/ui/relative-time.js +3 -3
  598. package/dist/ui/revision-history.js +16 -16
  599. package/dist/ui/role-select.js +13 -13
  600. package/dist/ui/select-menu.js +5 -5
  601. package/dist/ui/settings-nav.js +6 -6
  602. package/dist/ui/sheet.js +2 -2
  603. package/dist/ui/usage-meter.js +4 -4
  604. package/dist/usage.js +3 -3
  605. package/dist/workbench.js +11 -11
  606. package/package.json +6 -5
  607. package/src/app/components/session/sandbox-recovery-actions.test.tsx +26 -0
  608. package/src/app/components/session/sandbox-recovery-actions.tsx +2 -1
  609. package/src/app/components/workspace-reach.tsx +2 -0
  610. package/src/components/artifacts/artifact-chrome.tsx +6 -0
  611. package/src/components/artifacts/artifact-sandbox.tsx +119 -20
  612. package/src/components/artifacts/chat-interactive-block.tsx +1 -0
  613. package/src/components/artifacts/inline-html-document.ts +13 -3
  614. package/src/components/artifacts/published-html-artifact-frame.tsx +60 -4
  615. package/src/components/preview-loading.tsx +2 -2
  616. package/src/meetings/meeting-detail-page.tsx +232 -112
  617. package/src/meetings/meeting-notes.tsx +48 -24
  618. package/src/meetings/meeting-transcript.tsx +75 -57
  619. package/src/meetings/meetings-pages.test.tsx +181 -2
  620. package/src/messages/en.ts +6 -2
  621. package/src/testing/meetings-fixture.ts +35 -1
  622. package/styles/compiled.css +8 -0
  623. package/styles/index.css +7 -0
  624. package/dist/browser-viewer-KFMM5S2B.js +0 -23
  625. package/dist/chat-interactive-block-5DJ72HU7.js +0 -22
  626. package/dist/chunk-2B3RQRNQ.js +0 -584
  627. package/dist/chunk-2DA7DTHO.js +0 -83
  628. package/dist/chunk-2GXAXCS2.js +0 -401
  629. package/dist/chunk-2JTZMHQK.js +0 -57
  630. package/dist/chunk-2LRJ32SO.js +0 -114
  631. package/dist/chunk-2VK7FJNR.js +0 -307
  632. package/dist/chunk-2YJS75C3.js +0 -269
  633. package/dist/chunk-2YNEUYWM.js +0 -231
  634. package/dist/chunk-2ZR75AUO.js +0 -225
  635. package/dist/chunk-32LD46VC.js +0 -72
  636. package/dist/chunk-3FVVZW7J.js +0 -84
  637. package/dist/chunk-4327UGUS.js +0 -79
  638. package/dist/chunk-45TILHFZ.js +0 -249
  639. package/dist/chunk-4AUSS7CX.js +0 -318
  640. package/dist/chunk-4ECOHGUL.js +0 -818
  641. package/dist/chunk-4FKE42TW.js +0 -1333
  642. package/dist/chunk-4K5UVYZQ.js +0 -113
  643. package/dist/chunk-4UZE7ZT4.js +0 -54
  644. package/dist/chunk-4XQH4XPP.js +0 -400
  645. package/dist/chunk-4Z7BPBS7.js +0 -34
  646. package/dist/chunk-56KVDNOS.js +0 -98
  647. package/dist/chunk-56NHT2TZ.js +0 -56
  648. package/dist/chunk-57QWSJLX.js +0 -114
  649. package/dist/chunk-5AGRFQSH.js +0 -432
  650. package/dist/chunk-5JMX5FRF.js +0 -1309
  651. package/dist/chunk-5UTHPGFF.js +0 -93
  652. package/dist/chunk-5VPQVMJI.js +0 -84
  653. package/dist/chunk-5WJCOFIU.js +0 -207
  654. package/dist/chunk-62T2ZPD5.js +0 -266
  655. package/dist/chunk-63AVTSUI.js +0 -383
  656. package/dist/chunk-6CDBX3XG.js +0 -33
  657. package/dist/chunk-6D3D2JWY.js +0 -278
  658. package/dist/chunk-6GUG7FXP.js +0 -380
  659. package/dist/chunk-6GUG7FXP.js.map +0 -1
  660. package/dist/chunk-6JGMBTXP.js +0 -114
  661. package/dist/chunk-6LYBRPUG.js +0 -931
  662. package/dist/chunk-6PHBW7SS.js +0 -287
  663. package/dist/chunk-6S2XVKNI.js +0 -91
  664. package/dist/chunk-6TWS6AXT.js +0 -1021
  665. package/dist/chunk-6VEIDSF4.js +0 -73
  666. package/dist/chunk-76NGRVCY.js +0 -340
  667. package/dist/chunk-7FFZLLCH.js +0 -391
  668. package/dist/chunk-7RRDXPNC.js +0 -111
  669. package/dist/chunk-7TLYFHMT.js +0 -851
  670. package/dist/chunk-7V2CQLTN.js +0 -20
  671. package/dist/chunk-7VDWXFTL.js +0 -772
  672. package/dist/chunk-A2OMNLDF.js +0 -150
  673. package/dist/chunk-A3QEJ2IZ.js +0 -229
  674. package/dist/chunk-A6Q6EUBR.js +0 -209
  675. package/dist/chunk-AJSRYRJS.js +0 -138
  676. package/dist/chunk-APNPWJCK.js +0 -66
  677. package/dist/chunk-ARNQH2XE.js +0 -178
  678. package/dist/chunk-B6AH43UQ.js +0 -2434
  679. package/dist/chunk-BIXGAYDJ.js +0 -276
  680. package/dist/chunk-BJ3WRO2K.js +0 -441
  681. package/dist/chunk-BO3D22BS.js +0 -12
  682. package/dist/chunk-BR62BHVY.js +0 -357
  683. package/dist/chunk-BTMSR4OA.js +0 -214
  684. package/dist/chunk-BVZYHORS.js +0 -40
  685. package/dist/chunk-BWBBS6HJ.js +0 -42
  686. package/dist/chunk-C22UPHA2.js +0 -274
  687. package/dist/chunk-C2EERTYX.js +0 -353
  688. package/dist/chunk-C2F6SKOS.js +0 -270
  689. package/dist/chunk-C625ODRG.js +0 -92
  690. package/dist/chunk-CAF3HFJH.js +0 -184
  691. package/dist/chunk-CAF3HFJH.js.map +0 -1
  692. package/dist/chunk-CC4JBFWY.js +0 -85
  693. package/dist/chunk-CDB66JAO.js +0 -283
  694. package/dist/chunk-CG2HT7TI.js +0 -269
  695. package/dist/chunk-CNNOPEAK.js +0 -570
  696. package/dist/chunk-CRBHMSAP.js +0 -469
  697. package/dist/chunk-CSK2WOOX.js +0 -83
  698. package/dist/chunk-CTBPPPLR.js +0 -2580
  699. package/dist/chunk-CTOLX2EW.js +0 -2317
  700. package/dist/chunk-CVDY7P3E.js +0 -246
  701. package/dist/chunk-CX3Z7W5Y.js +0 -107
  702. package/dist/chunk-D5K2BS5Q.js +0 -259
  703. package/dist/chunk-DA7XLT5F.js +0 -366
  704. package/dist/chunk-DAKKJ3XM.js +0 -298
  705. package/dist/chunk-DAKKJ3XM.js.map +0 -1
  706. package/dist/chunk-DC6KFW2R.js +0 -333
  707. package/dist/chunk-DIHPR5KJ.js +0 -15
  708. package/dist/chunk-DLMYANZX.js +0 -3851
  709. package/dist/chunk-DRAG2LZP.js +0 -171
  710. package/dist/chunk-E2SGFW2B.js +0 -3321
  711. package/dist/chunk-EAXZSBWV.js +0 -412
  712. package/dist/chunk-EFKWOXBP.js +0 -428
  713. package/dist/chunk-EGD5RPRX.js +0 -401
  714. package/dist/chunk-ELC2ZPHI.js +0 -1177
  715. package/dist/chunk-EZ5ZBOGQ.js +0 -1032
  716. package/dist/chunk-F2JKNL73.js +0 -187
  717. package/dist/chunk-F3LIUDXN.js +0 -738
  718. package/dist/chunk-F3LIUDXN.js.map +0 -1
  719. package/dist/chunk-FAB5SXNO.js +0 -640
  720. package/dist/chunk-FQ33JHJN.js +0 -63
  721. package/dist/chunk-FX343J2L.js +0 -132
  722. package/dist/chunk-FXFOKD7A.js +0 -449
  723. package/dist/chunk-FY42DW2R.js +0 -515
  724. package/dist/chunk-G4E5WKY7.js +0 -65
  725. package/dist/chunk-GFTV3RR6.js +0 -187
  726. package/dist/chunk-GGBMQNAB.js +0 -33
  727. package/dist/chunk-GGU7KV4G.js +0 -124
  728. package/dist/chunk-GIHE7U3Y.js +0 -174
  729. package/dist/chunk-GRGK3JJI.js +0 -10074
  730. package/dist/chunk-GRGK3JJI.js.map +0 -1
  731. package/dist/chunk-GT3FJVU6.js +0 -4596
  732. package/dist/chunk-GTGPKGWC.js +0 -65
  733. package/dist/chunk-GY6DSWBM.js +0 -82
  734. package/dist/chunk-H3EP6GNA.js +0 -538
  735. package/dist/chunk-HD2MCYQF.js +0 -234
  736. package/dist/chunk-HE4VN5D3.js +0 -4979
  737. package/dist/chunk-HFROJDFQ.js +0 -118
  738. package/dist/chunk-HHFFPE67.js +0 -220
  739. package/dist/chunk-HJ2CDFZX.js +0 -117
  740. package/dist/chunk-HJ2J2XQI.js +0 -88
  741. package/dist/chunk-HLLZPULI.js +0 -172
  742. package/dist/chunk-HPYQ5MES.js +0 -103
  743. package/dist/chunk-HRLJNDDC.js +0 -197
  744. package/dist/chunk-HVGM5IME.js +0 -170
  745. package/dist/chunk-HZE6V7GW.js +0 -214
  746. package/dist/chunk-I5DW76GB.js +0 -200
  747. package/dist/chunk-I7MZOZGC.js +0 -121
  748. package/dist/chunk-IB2EX6GX.js +0 -292
  749. package/dist/chunk-IEDDIJ6B.js +0 -4601
  750. package/dist/chunk-IEDDIJ6B.js.map +0 -1
  751. package/dist/chunk-IGFZFLI2.js +0 -1390
  752. package/dist/chunk-IGFZFLI2.js.map +0 -1
  753. package/dist/chunk-IIMRBCA4.js +0 -271
  754. package/dist/chunk-IIWNSYFA.js +0 -129
  755. package/dist/chunk-IN2ZJR2A.js +0 -96
  756. package/dist/chunk-IUPIJWFK.js +0 -905
  757. package/dist/chunk-IZA2KBYK.js +0 -57
  758. package/dist/chunk-IZZINUFM.js +0 -527
  759. package/dist/chunk-JFEAJRG6.js +0 -1029
  760. package/dist/chunk-JG7MEMJP.js +0 -1184
  761. package/dist/chunk-JIZWFW5A.js +0 -107
  762. package/dist/chunk-JJKUERR4.js +0 -131
  763. package/dist/chunk-JL4PMUDG.js +0 -192
  764. package/dist/chunk-JTWK3VE7.js +0 -202
  765. package/dist/chunk-JV2TJLUW.js +0 -144
  766. package/dist/chunk-KBDWMUYA.js +0 -175
  767. package/dist/chunk-KF65UG2L.js +0 -1628
  768. package/dist/chunk-KFYLTQGK.js +0 -133
  769. package/dist/chunk-KJI2DVSO.js +0 -26
  770. package/dist/chunk-KLYBSXHE.js +0 -3183
  771. package/dist/chunk-KPD6TBO4.js +0 -89
  772. package/dist/chunk-KTGKGHEA.js +0 -75
  773. package/dist/chunk-KUYQTNVT.js +0 -794
  774. package/dist/chunk-KZE7M52Y.js +0 -598
  775. package/dist/chunk-KZYZ3JHS.js +0 -112
  776. package/dist/chunk-L6WVCO6D.js +0 -61
  777. package/dist/chunk-L7T7M2P3.js +0 -5222
  778. package/dist/chunk-LKF6IPFC.js +0 -247
  779. package/dist/chunk-LLU7VKCZ.js +0 -188
  780. package/dist/chunk-LWEJGMVO.js +0 -50
  781. package/dist/chunk-LX5IEXDF.js +0 -505
  782. package/dist/chunk-LYEALWBN.js +0 -251
  783. package/dist/chunk-M722GGD3.js +0 -566
  784. package/dist/chunk-MCPKUVMQ.js +0 -99
  785. package/dist/chunk-MDGNCUAC.js +0 -145
  786. package/dist/chunk-MFLU3466.js +0 -99
  787. package/dist/chunk-MITT6IZG.js +0 -134
  788. package/dist/chunk-MN4LJYKQ.js +0 -608
  789. package/dist/chunk-MNCBL5AX.js +0 -449
  790. package/dist/chunk-MNCBL5AX.js.map +0 -1
  791. package/dist/chunk-MO3XJQN2.js +0 -629
  792. package/dist/chunk-MPP6BEAN.js +0 -158
  793. package/dist/chunk-MQRUZ2LW.js +0 -335
  794. package/dist/chunk-MRJFF5KY.js +0 -351
  795. package/dist/chunk-MUB44LD3.js +0 -75
  796. package/dist/chunk-MYDFABO6.js +0 -296
  797. package/dist/chunk-NJVHMK5R.js +0 -3158
  798. package/dist/chunk-NO6VQNWH.js +0 -396
  799. package/dist/chunk-NUF43R2F.js +0 -278
  800. package/dist/chunk-NUM3QV66.js +0 -107
  801. package/dist/chunk-NW4RPGET.js +0 -48
  802. package/dist/chunk-NZBZLY7H.js +0 -165
  803. package/dist/chunk-O664PL2U.js +0 -47
  804. package/dist/chunk-O664PL2U.js.map +0 -1
  805. package/dist/chunk-OCS3KIYC.js +0 -378
  806. package/dist/chunk-OKI45WHM.js +0 -311
  807. package/dist/chunk-ONF5M5GP.js +0 -283
  808. package/dist/chunk-OPCPBLHA.js +0 -79
  809. package/dist/chunk-OROXCA6L.js +0 -251
  810. package/dist/chunk-OTMJS3FV.js +0 -56
  811. package/dist/chunk-OXM267RC.js +0 -128
  812. package/dist/chunk-P5FLGDXW.js +0 -723
  813. package/dist/chunk-PC3FWPOP.js +0 -828
  814. package/dist/chunk-PPQJIVGM.js +0 -175
  815. package/dist/chunk-PQOVMZI2.js +0 -372
  816. package/dist/chunk-PVGD2RAV.js +0 -5926
  817. package/dist/chunk-PVGD2RAV.js.map +0 -1
  818. package/dist/chunk-PYU7CLEG.js +0 -215
  819. package/dist/chunk-Q2N5UR7Q.js +0 -505
  820. package/dist/chunk-Q4GB2QU3.js +0 -199
  821. package/dist/chunk-Q4RJKXQM.js +0 -606
  822. package/dist/chunk-Q4ZNRQKH.js +0 -196
  823. package/dist/chunk-Q7QXSQ46.js +0 -1185
  824. package/dist/chunk-QAVSUXLA.js +0 -773
  825. package/dist/chunk-QBJDMSFA.js +0 -27
  826. package/dist/chunk-QCB3WNCA.js +0 -176
  827. package/dist/chunk-QIOIJ7K5.js +0 -162
  828. package/dist/chunk-QR72J6WR.js +0 -650
  829. package/dist/chunk-QUTMVW4P.js +0 -141
  830. package/dist/chunk-QUXQYYZO.js +0 -73
  831. package/dist/chunk-RDHK2NYW.js +0 -129
  832. package/dist/chunk-RFBYAUZH.js +0 -311
  833. package/dist/chunk-RFBYAUZH.js.map +0 -1
  834. package/dist/chunk-RGCCRYTY.js +0 -46
  835. package/dist/chunk-RSTS3RWN.js +0 -211
  836. package/dist/chunk-RY7YRYVT.js +0 -126
  837. package/dist/chunk-S4LRL5BA.js +0 -439
  838. package/dist/chunk-S62CVC5C.js +0 -850
  839. package/dist/chunk-S62CVC5C.js.map +0 -1
  840. package/dist/chunk-SHVW3C3Y.js +0 -50
  841. package/dist/chunk-SL4CLUHR.js +0 -48
  842. package/dist/chunk-SOPKVWZJ.js +0 -1187
  843. package/dist/chunk-ST3H53IJ.js +0 -201
  844. package/dist/chunk-SYYFA7W7.js +0 -23
  845. package/dist/chunk-TBUWK3RP.js +0 -399
  846. package/dist/chunk-TC42NAIJ.js +0 -177
  847. package/dist/chunk-TJBTP6LH.js +0 -297
  848. package/dist/chunk-TQQALBLU.js +0 -391
  849. package/dist/chunk-TW56PZBB.js +0 -407
  850. package/dist/chunk-U6XRXK2T.js +0 -1356
  851. package/dist/chunk-U735UBHS.js +0 -2431
  852. package/dist/chunk-U735UBHS.js.map +0 -1
  853. package/dist/chunk-UAKG7GLE.js +0 -155
  854. package/dist/chunk-UB4GKFCI.js +0 -1095
  855. package/dist/chunk-UEAAF27Y.js +0 -108
  856. package/dist/chunk-UITWSZH3.js +0 -162
  857. package/dist/chunk-UQ67SEGH.js +0 -234
  858. package/dist/chunk-URSNCM57.js +0 -37
  859. package/dist/chunk-V77BSX2F.js +0 -1152
  860. package/dist/chunk-VATOL3OZ.js +0 -110
  861. package/dist/chunk-VEJG6GQQ.js +0 -103
  862. package/dist/chunk-VFQZPHZR.js +0 -436
  863. package/dist/chunk-VFZJV26C.js +0 -41
  864. package/dist/chunk-VJZPVP6C.js +0 -230
  865. package/dist/chunk-VQL7FHIF.js +0 -27
  866. package/dist/chunk-VSS6LRAK.js +0 -263
  867. package/dist/chunk-VSSXDLO3.js +0 -467
  868. package/dist/chunk-VVCKB62D.js +0 -1024
  869. package/dist/chunk-VVJDYTD4.js +0 -168
  870. package/dist/chunk-VVXOG3ZC.js +0 -52
  871. package/dist/chunk-W2EX346X.js +0 -85
  872. package/dist/chunk-W3R4C7Z2.js +0 -166
  873. package/dist/chunk-W43FINJV.js +0 -218
  874. package/dist/chunk-W6PJWSZ6.js +0 -1769
  875. package/dist/chunk-WCP32H3P.js +0 -2984
  876. package/dist/chunk-WKELNNIG.js +0 -3690
  877. package/dist/chunk-WRFXCMRW.js +0 -2591
  878. package/dist/chunk-WRLEHV4A.js +0 -386
  879. package/dist/chunk-WTNQHM6Q.js +0 -43
  880. package/dist/chunk-WTZ6OJUY.js +0 -3070
  881. package/dist/chunk-WVFMFQRZ.js +0 -256
  882. package/dist/chunk-WVFMFQRZ.js.map +0 -1
  883. package/dist/chunk-WYIC3CXE.js +0 -157
  884. package/dist/chunk-WZABXFUL.js +0 -246
  885. package/dist/chunk-WZABXFUL.js.map +0 -1
  886. package/dist/chunk-X3GBTLKD.js +0 -175
  887. package/dist/chunk-XBOLFS6I.js +0 -532
  888. package/dist/chunk-XF4UH54P.js +0 -250
  889. package/dist/chunk-XHPBQTJP.js +0 -1260
  890. package/dist/chunk-XQ4TJITR.js +0 -270
  891. package/dist/chunk-XRFMGLCE.js +0 -466
  892. package/dist/chunk-XV2F7PGS.js +0 -236
  893. package/dist/chunk-Y2EQTW5Q.js +0 -100
  894. package/dist/chunk-YAOXCAQD.js +0 -371
  895. package/dist/chunk-YCDB3HPS.js +0 -137
  896. package/dist/chunk-YCONEOZQ.js +0 -191
  897. package/dist/chunk-YG243U6J.js +0 -158
  898. package/dist/chunk-YGQANOSV.js +0 -113
  899. package/dist/chunk-YKRWKRNX.js +0 -138
  900. package/dist/chunk-YKT5NYYJ.js +0 -3996
  901. package/dist/chunk-YKT5NYYJ.js.map +0 -1
  902. package/dist/chunk-YLWABUFE.js +0 -406
  903. package/dist/chunk-YOKIE7NG.js +0 -227
  904. package/dist/chunk-YRCDL3GO.js +0 -2582
  905. package/dist/chunk-YVBAYE7Y.js +0 -1236
  906. package/dist/chunk-YYKPRX4P.js +0 -29
  907. package/dist/chunk-Z4MW635R.js +0 -849
  908. package/dist/chunk-Z7IPPKG6.js +0 -403
  909. package/dist/chunk-ZFGXQ54H.js +0 -114
  910. package/dist/chunk-ZGBXHHCL.js +0 -373
  911. package/dist/computer-viewer-AVH5J4TC.js +0 -21
  912. package/dist/connection-step-up-T2B25VP7.js +0 -148
  913. package/dist/connection-step-up-T2B25VP7.js.map +0 -1
  914. package/dist/embedded-new-voice-M6PBWMQZ.js +0 -25
  915. package/dist/embedded-voice-7USALJKI.js +0 -25
  916. package/dist/fleet-decision-row-XY6OZPHA.js +0 -361
  917. package/dist/model-policy-picker-menu-S5RTVLMQ.js +0 -23
  918. package/dist/payment-page-card-XSY5NO7D.js +0 -227
  919. package/dist/platform-activity-row-77WER5O3.js +0 -156
  920. package/dist/queue-surface-implementation-SDV7I32L.js +0 -933
  921. package/dist/recorder-host-7GNQG6BB.js +0 -80
  922. package/dist/sandbox-files-JOH2Q57T.js +0 -29
  923. package/dist/session-connect-cards-HZIR4ZWT.js +0 -28
  924. package/dist/session-realtime-OPCPTIAP.js +0 -30
  925. package/dist/timeline-annotation-markers-WXCRA4BY.js +0 -157
  926. package/dist/timeline-annotation-selection-YBZQNCNX.js +0 -208
  927. package/dist/timeline-annotations-dialog-4WVXTKFW.js +0 -283
  928. /package/dist/{browser-viewer-KFMM5S2B.js.map → browser-viewer-TRPZI6NT.js.map} +0 -0
  929. /package/dist/{chat-interactive-block-5DJ72HU7.js.map → chat-interactive-block-Y4BS4JCM.js.map} +0 -0
  930. /package/dist/{chunk-CRBHMSAP.js.map → chunk-22E2YJHT.js.map} +0 -0
  931. /package/dist/{chunk-H3EP6GNA.js.map → chunk-2T6TN2YL.js.map} +0 -0
  932. /package/dist/{chunk-KBDWMUYA.js.map → chunk-2WNN26NW.js.map} +0 -0
  933. /package/dist/{chunk-HJ2J2XQI.js.map → chunk-3432A6XB.js.map} +0 -0
  934. /package/dist/{chunk-DA7XLT5F.js.map → chunk-35U7NSOR.js.map} +0 -0
  935. /package/dist/{chunk-QAVSUXLA.js.map → chunk-3EPR76WS.js.map} +0 -0
  936. /package/dist/{chunk-JV2TJLUW.js.map → chunk-3FXXEU5D.js.map} +0 -0
  937. /package/dist/{chunk-QR72J6WR.js.map → chunk-3MXOPOEU.js.map} +0 -0
  938. /package/dist/{chunk-76NGRVCY.js.map → chunk-3PKDU4JI.js.map} +0 -0
  939. /package/dist/{chunk-BO3D22BS.js.map → chunk-3PMO2BIV.js.map} +0 -0
  940. /package/dist/{chunk-SL4CLUHR.js.map → chunk-3XWHJNFY.js.map} +0 -0
  941. /package/dist/{chunk-EGD5RPRX.js.map → chunk-45WD2PKE.js.map} +0 -0
  942. /package/dist/{chunk-KZE7M52Y.js.map → chunk-4H2OWNRA.js.map} +0 -0
  943. /package/dist/{chunk-VSS6LRAK.js.map → chunk-4HVGOTMU.js.map} +0 -0
  944. /package/dist/{chunk-4ECOHGUL.js.map → chunk-4JER2ZMV.js.map} +0 -0
  945. /package/dist/{chunk-HZE6V7GW.js.map → chunk-4LVZ2VOQ.js.map} +0 -0
  946. /package/dist/{chunk-B6AH43UQ.js.map → chunk-4OGDD2EM.js.map} +0 -0
  947. /package/dist/{chunk-4UZE7ZT4.js.map → chunk-4PQC6WMF.js.map} +0 -0
  948. /package/dist/{chunk-KUYQTNVT.js.map → chunk-4UVSWAT3.js.map} +0 -0
  949. /package/dist/{chunk-BTMSR4OA.js.map → chunk-53A47RBX.js.map} +0 -0
  950. /package/dist/{chunk-57QWSJLX.js.map → chunk-552KKENW.js.map} +0 -0
  951. /package/dist/{chunk-TC42NAIJ.js.map → chunk-55F7L6M3.js.map} +0 -0
  952. /package/dist/{chunk-FXFOKD7A.js.map → chunk-5AHIKB3O.js.map} +0 -0
  953. /package/dist/{chunk-Q4GB2QU3.js.map → chunk-5N4L5WTE.js.map} +0 -0
  954. /package/dist/{chunk-4327UGUS.js.map → chunk-5OUJCVZI.js.map} +0 -0
  955. /package/dist/{chunk-GTGPKGWC.js.map → chunk-5OYXQ7MH.js.map} +0 -0
  956. /package/dist/{chunk-2ZR75AUO.js.map → chunk-5TAVVMFX.js.map} +0 -0
  957. /package/dist/{chunk-2YJS75C3.js.map → chunk-5Y3LYRNH.js.map} +0 -0
  958. /package/dist/{chunk-WRLEHV4A.js.map → chunk-5ZJKKE4T.js.map} +0 -0
  959. /package/dist/{chunk-2JTZMHQK.js.map → chunk-62DPSQRZ.js.map} +0 -0
  960. /package/dist/{chunk-MN4LJYKQ.js.map → chunk-64KMWTJ6.js.map} +0 -0
  961. /package/dist/{chunk-QUXQYYZO.js.map → chunk-6MZBNUS7.js.map} +0 -0
  962. /package/dist/{chunk-XF4UH54P.js.map → chunk-6YCE4ZC4.js.map} +0 -0
  963. /package/dist/{chunk-X3GBTLKD.js.map → chunk-6YROWWMX.js.map} +0 -0
  964. /package/dist/{chunk-YVBAYE7Y.js.map → chunk-73RZ72VU.js.map} +0 -0
  965. /package/dist/{chunk-5VPQVMJI.js.map → chunk-74KV436L.js.map} +0 -0
  966. /package/dist/{chunk-CSK2WOOX.js.map → chunk-7HKGLPV5.js.map} +0 -0
  967. /package/dist/{chunk-XRFMGLCE.js.map → chunk-7JSWODT6.js.map} +0 -0
  968. /package/dist/{chunk-EFKWOXBP.js.map → chunk-7K3PKWER.js.map} +0 -0
  969. /package/dist/{chunk-U6XRXK2T.js.map → chunk-7MPWC42V.js.map} +0 -0
  970. /package/dist/{chunk-QUTMVW4P.js.map → chunk-7REO6FRN.js.map} +0 -0
  971. /package/dist/{chunk-MDGNCUAC.js.map → chunk-7YMWRNRQ.js.map} +0 -0
  972. /package/dist/{chunk-JJKUERR4.js.map → chunk-A6H3KJ7G.js.map} +0 -0
  973. /package/dist/{chunk-W6PJWSZ6.js.map → chunk-AGQIE6YU.js.map} +0 -0
  974. /package/dist/{chunk-ZGBXHHCL.js.map → chunk-AHQM4I5V.js.map} +0 -0
  975. /package/dist/{chunk-HLLZPULI.js.map → chunk-AMTRO7XF.js.map} +0 -0
  976. /package/dist/{chunk-6S2XVKNI.js.map → chunk-AO4LTCG7.js.map} +0 -0
  977. /package/dist/{chunk-CTBPPPLR.js.map → chunk-APJ22OZV.js.map} +0 -0
  978. /package/dist/{chunk-TW56PZBB.js.map → chunk-APWL37KW.js.map} +0 -0
  979. /package/dist/{chunk-DIHPR5KJ.js.map → chunk-AQEJOBQ2.js.map} +0 -0
  980. /package/dist/{chunk-HD2MCYQF.js.map → chunk-ARKNT6BX.js.map} +0 -0
  981. /package/dist/{chunk-RSTS3RWN.js.map → chunk-B2IHDMAR.js.map} +0 -0
  982. /package/dist/{chunk-KZYZ3JHS.js.map → chunk-BCKIV26W.js.map} +0 -0
  983. /package/dist/{chunk-D5K2BS5Q.js.map → chunk-BE26JUSD.js.map} +0 -0
  984. /package/dist/{chunk-DRAG2LZP.js.map → chunk-BOVCD6KD.js.map} +0 -0
  985. /package/dist/{chunk-IIWNSYFA.js.map → chunk-BQWV66A6.js.map} +0 -0
  986. /package/dist/{chunk-BJ3WRO2K.js.map → chunk-BSQJXGGP.js.map} +0 -0
  987. /package/dist/{chunk-KLYBSXHE.js.map → chunk-BZY3MEVZ.js.map} +0 -0
  988. /package/dist/{chunk-MQRUZ2LW.js.map → chunk-C3D3OOEY.js.map} +0 -0
  989. /package/dist/{chunk-GY6DSWBM.js.map → chunk-CDHYO3DP.js.map} +0 -0
  990. /package/dist/{chunk-OPCPBLHA.js.map → chunk-CDV5JGVI.js.map} +0 -0
  991. /package/dist/{chunk-5WJCOFIU.js.map → chunk-CNW45M7G.js.map} +0 -0
  992. /package/dist/{chunk-A2OMNLDF.js.map → chunk-CUVQ37HB.js.map} +0 -0
  993. /package/dist/{chunk-XBOLFS6I.js.map → chunk-D32T3IIC.js.map} +0 -0
  994. /package/dist/{chunk-YAOXCAQD.js.map → chunk-D65BSM64.js.map} +0 -0
  995. /package/dist/{chunk-CNNOPEAK.js.map → chunk-D7435DWV.js.map} +0 -0
  996. /package/dist/{chunk-32LD46VC.js.map → chunk-DFH3M7B3.js.map} +0 -0
  997. /package/dist/{chunk-QIOIJ7K5.js.map → chunk-DGWBQ76M.js.map} +0 -0
  998. /package/dist/{chunk-PQOVMZI2.js.map → chunk-DHJDTGSJ.js.map} +0 -0
  999. /package/dist/{chunk-4XQH4XPP.js.map → chunk-DKEFTNCD.js.map} +0 -0
  1000. /package/dist/{chunk-JIZWFW5A.js.map → chunk-DNAF6MT4.js.map} +0 -0
  1001. /package/dist/{chunk-QBJDMSFA.js.map → chunk-E35XY7DS.js.map} +0 -0
  1002. /package/dist/{chunk-NO6VQNWH.js.map → chunk-E5T5WIIP.js.map} +0 -0
  1003. /package/dist/{chunk-W3R4C7Z2.js.map → chunk-EL6ECD34.js.map} +0 -0
  1004. /package/dist/{chunk-VSSXDLO3.js.map → chunk-ELR6ITRC.js.map} +0 -0
  1005. /package/dist/{chunk-7TLYFHMT.js.map → chunk-EPE3V2VE.js.map} +0 -0
  1006. /package/dist/{chunk-2B3RQRNQ.js.map → chunk-EYGQHHVW.js.map} +0 -0
  1007. /package/dist/{chunk-2VK7FJNR.js.map → chunk-EYQEJHYP.js.map} +0 -0
  1008. /package/dist/{chunk-BIXGAYDJ.js.map → chunk-EZTH2XMH.js.map} +0 -0
  1009. /package/dist/{chunk-6PHBW7SS.js.map → chunk-F3QVHVFS.js.map} +0 -0
  1010. /package/dist/{chunk-SOPKVWZJ.js.map → chunk-F5VWPREQ.js.map} +0 -0
  1011. /package/dist/{chunk-YGQANOSV.js.map → chunk-FM7AQUBL.js.map} +0 -0
  1012. /package/dist/{chunk-Y2EQTW5Q.js.map → chunk-FP6BUXJM.js.map} +0 -0
  1013. /package/dist/{chunk-45TILHFZ.js.map → chunk-FVU52L3I.js.map} +0 -0
  1014. /package/dist/{chunk-W43FINJV.js.map → chunk-FZKNXNNO.js.map} +0 -0
  1015. /package/dist/{chunk-XV2F7PGS.js.map → chunk-G3IXJWRY.js.map} +0 -0
  1016. /package/dist/{chunk-DC6KFW2R.js.map → chunk-G6EI2O3N.js.map} +0 -0
  1017. /package/dist/{chunk-2GXAXCS2.js.map → chunk-GB5T6YMZ.js.map} +0 -0
  1018. /package/dist/{chunk-WYIC3CXE.js.map → chunk-GBLD6FOG.js.map} +0 -0
  1019. /package/dist/{chunk-YCDB3HPS.js.map → chunk-GJBFFXCY.js.map} +0 -0
  1020. /package/dist/{chunk-APNPWJCK.js.map → chunk-GJDP2K2S.js.map} +0 -0
  1021. /package/dist/{chunk-GFTV3RR6.js.map → chunk-GP26XTDX.js.map} +0 -0
  1022. /package/dist/{chunk-Q4RJKXQM.js.map → chunk-GTE6WP4N.js.map} +0 -0
  1023. /package/dist/{chunk-UEAAF27Y.js.map → chunk-GWG3OAV7.js.map} +0 -0
  1024. /package/dist/{chunk-6LYBRPUG.js.map → chunk-GXMHTMM6.js.map} +0 -0
  1025. /package/dist/{chunk-NUM3QV66.js.map → chunk-GYRN5O2E.js.map} +0 -0
  1026. /package/dist/{chunk-G4E5WKY7.js.map → chunk-GZX7W2WW.js.map} +0 -0
  1027. /package/dist/{chunk-Z7IPPKG6.js.map → chunk-H3QI2G2B.js.map} +0 -0
  1028. /package/dist/{chunk-Z4MW635R.js.map → chunk-H7D4DVWY.js.map} +0 -0
  1029. /package/dist/{chunk-YCONEOZQ.js.map → chunk-HCDGBBBJ.js.map} +0 -0
  1030. /package/dist/{chunk-DLMYANZX.js.map → chunk-HDSH6MIJ.js.map} +0 -0
  1031. /package/dist/{chunk-KPD6TBO4.js.map → chunk-HOEUPZ6O.js.map} +0 -0
  1032. /package/dist/{chunk-7VDWXFTL.js.map → chunk-HPQRWTQB.js.map} +0 -0
  1033. /package/dist/{chunk-GIHE7U3Y.js.map → chunk-HUKGLWAY.js.map} +0 -0
  1034. /package/dist/{chunk-SYYFA7W7.js.map → chunk-HUTQJY3F.js.map} +0 -0
  1035. /package/dist/{chunk-62T2ZPD5.js.map → chunk-HWOYJOKK.js.map} +0 -0
  1036. /package/dist/{chunk-IN2ZJR2A.js.map → chunk-HZR3WGUP.js.map} +0 -0
  1037. /package/dist/{chunk-YKRWKRNX.js.map → chunk-I7YUDPDR.js.map} +0 -0
  1038. /package/dist/{chunk-VQL7FHIF.js.map → chunk-IDII52M4.js.map} +0 -0
  1039. /package/dist/{chunk-HPYQ5MES.js.map → chunk-IDPWEUM7.js.map} +0 -0
  1040. /package/dist/{chunk-JL4PMUDG.js.map → chunk-IEWQFGEC.js.map} +0 -0
  1041. /package/dist/{chunk-MRJFF5KY.js.map → chunk-IMTACEXF.js.map} +0 -0
  1042. /package/dist/{chunk-2LRJ32SO.js.map → chunk-IVWT6M6N.js.map} +0 -0
  1043. /package/dist/{chunk-7RRDXPNC.js.map → chunk-JEUPIHIP.js.map} +0 -0
  1044. /package/dist/{chunk-VVJDYTD4.js.map → chunk-JF4WX3GQ.js.map} +0 -0
  1045. /package/dist/{chunk-WRFXCMRW.js.map → chunk-JJPYXUKC.js.map} +0 -0
  1046. /package/dist/{chunk-WTNQHM6Q.js.map → chunk-JNHWTYDD.js.map} +0 -0
  1047. /package/dist/{chunk-RGCCRYTY.js.map → chunk-JP7AOJWD.js.map} +0 -0
  1048. /package/dist/{chunk-TJBTP6LH.js.map → chunk-JTWT2WQA.js.map} +0 -0
  1049. /package/dist/{chunk-HJ2CDFZX.js.map → chunk-JW3WIHWO.js.map} +0 -0
  1050. /package/dist/{chunk-MITT6IZG.js.map → chunk-JW7RJMEZ.js.map} +0 -0
  1051. /package/dist/{chunk-CTOLX2EW.js.map → chunk-K76PXR3O.js.map} +0 -0
  1052. /package/dist/{chunk-CX3Z7W5Y.js.map → chunk-KCNIQN6V.js.map} +0 -0
  1053. /package/dist/{chunk-2YNEUYWM.js.map → chunk-KH6KHYST.js.map} +0 -0
  1054. /package/dist/{chunk-LKF6IPFC.js.map → chunk-KK4SEN7N.js.map} +0 -0
  1055. /package/dist/{chunk-63AVTSUI.js.map → chunk-KOKRGAAI.js.map} +0 -0
  1056. /package/dist/{chunk-F2JKNL73.js.map → chunk-KQFNTGAF.js.map} +0 -0
  1057. /package/dist/{chunk-SHVW3C3Y.js.map → chunk-KRLNC6TH.js.map} +0 -0
  1058. /package/dist/{chunk-MFLU3466.js.map → chunk-KYDLVMKA.js.map} +0 -0
  1059. /package/dist/{chunk-UAKG7GLE.js.map → chunk-KZQDP2JM.js.map} +0 -0
  1060. /package/dist/{chunk-FX343J2L.js.map → chunk-L2EZ2HOX.js.map} +0 -0
  1061. /package/dist/{chunk-GGBMQNAB.js.map → chunk-L2UAFR2D.js.map} +0 -0
  1062. /package/dist/{chunk-GT3FJVU6.js.map → chunk-L4R7ORMD.js.map} +0 -0
  1063. /package/dist/{chunk-YOKIE7NG.js.map → chunk-LCLWN64E.js.map} +0 -0
  1064. /package/dist/{chunk-PPQJIVGM.js.map → chunk-LFQI2C46.js.map} +0 -0
  1065. /package/dist/{chunk-KF65UG2L.js.map → chunk-LLYX4F5A.js.map} +0 -0
  1066. /package/dist/{chunk-PYU7CLEG.js.map → chunk-LQX5QCDS.js.map} +0 -0
  1067. /package/dist/{chunk-Q4ZNRQKH.js.map → chunk-LRMHASG2.js.map} +0 -0
  1068. /package/dist/{chunk-MO3XJQN2.js.map → chunk-M5FX5KH5.js.map} +0 -0
  1069. /package/dist/{chunk-ST3H53IJ.js.map → chunk-MLOTUQJJ.js.map} +0 -0
  1070. /package/dist/{chunk-A6Q6EUBR.js.map → chunk-MPUKGKXZ.js.map} +0 -0
  1071. /package/dist/{chunk-ONF5M5GP.js.map → chunk-MS6LW4VU.js.map} +0 -0
  1072. /package/dist/{chunk-NUF43R2F.js.map → chunk-MXPW4F74.js.map} +0 -0
  1073. /package/dist/{chunk-MPP6BEAN.js.map → chunk-MZ7GJX5S.js.map} +0 -0
  1074. /package/dist/{chunk-XHPBQTJP.js.map → chunk-N5OUIUYD.js.map} +0 -0
  1075. /package/dist/{chunk-EAXZSBWV.js.map → chunk-N6FNORC7.js.map} +0 -0
  1076. /package/dist/{chunk-4K5UVYZQ.js.map → chunk-NALVKY4U.js.map} +0 -0
  1077. /package/dist/{chunk-L7T7M2P3.js.map → chunk-NJ77ZL5T.js.map} +0 -0
  1078. /package/dist/{chunk-XQ4TJITR.js.map → chunk-NM2DNJDJ.js.map} +0 -0
  1079. /package/dist/{chunk-VATOL3OZ.js.map → chunk-NNKRRF7E.js.map} +0 -0
  1080. /package/dist/{chunk-4AUSS7CX.js.map → chunk-NP5UFWU4.js.map} +0 -0
  1081. /package/dist/{chunk-HFROJDFQ.js.map → chunk-NV3AEIFO.js.map} +0 -0
  1082. /package/dist/{chunk-PC3FWPOP.js.map → chunk-O6JDF7KH.js.map} +0 -0
  1083. /package/dist/{chunk-OROXCA6L.js.map → chunk-OERZH3J4.js.map} +0 -0
  1084. /package/dist/{chunk-V77BSX2F.js.map → chunk-OKHWTWWU.js.map} +0 -0
  1085. /package/dist/{chunk-C22UPHA2.js.map → chunk-OLAIUVGT.js.map} +0 -0
  1086. /package/dist/{chunk-C2F6SKOS.js.map → chunk-OO36IUMS.js.map} +0 -0
  1087. /package/dist/{chunk-IZA2KBYK.js.map → chunk-OVDK7K2Z.js.map} +0 -0
  1088. /package/dist/{chunk-FQ33JHJN.js.map → chunk-OX5ZCHZQ.js.map} +0 -0
  1089. /package/dist/{chunk-FY42DW2R.js.map → chunk-P6LLCGPO.js.map} +0 -0
  1090. /package/dist/{chunk-LX5IEXDF.js.map → chunk-PA2CUHTD.js.map} +0 -0
  1091. /package/dist/{chunk-HE4VN5D3.js.map → chunk-PB4CQIRA.js.map} +0 -0
  1092. /package/dist/{chunk-M722GGD3.js.map → chunk-PBV2P632.js.map} +0 -0
  1093. /package/dist/{chunk-KTGKGHEA.js.map → chunk-PCSRHFRF.js.map} +0 -0
  1094. /package/dist/{chunk-VFQZPHZR.js.map → chunk-PEPWW5BC.js.map} +0 -0
  1095. /package/dist/{chunk-6CDBX3XG.js.map → chunk-PMBZMVKE.js.map} +0 -0
  1096. /package/dist/{chunk-4Z7BPBS7.js.map → chunk-PP32RE26.js.map} +0 -0
  1097. /package/dist/{chunk-6VEIDSF4.js.map → chunk-PTXAPI3Q.js.map} +0 -0
  1098. /package/dist/{chunk-OTMJS3FV.js.map → chunk-PULNNF7G.js.map} +0 -0
  1099. /package/dist/{chunk-YG243U6J.js.map → chunk-Q6KNROUT.js.map} +0 -0
  1100. /package/dist/{chunk-EZ5ZBOGQ.js.map → chunk-QGJIFIKN.js.map} +0 -0
  1101. /package/dist/{chunk-VFZJV26C.js.map → chunk-QKKKORGL.js.map} +0 -0
  1102. /package/dist/{chunk-W2EX346X.js.map → chunk-QKUMMG6P.js.map} +0 -0
  1103. /package/dist/{chunk-BVZYHORS.js.map → chunk-QNOWKKZ4.js.map} +0 -0
  1104. /package/dist/{chunk-3FVVZW7J.js.map → chunk-QSWD3AHE.js.map} +0 -0
  1105. /package/dist/{chunk-7FFZLLCH.js.map → chunk-QZ4U2VL5.js.map} +0 -0
  1106. /package/dist/{chunk-IIMRBCA4.js.map → chunk-QZJNCLHV.js.map} +0 -0
  1107. /package/dist/{chunk-6D3D2JWY.js.map → chunk-R6CFPY3F.js.map} +0 -0
  1108. /package/dist/{chunk-YLWABUFE.js.map → chunk-R6QRUYUH.js.map} +0 -0
  1109. /package/dist/{chunk-WCP32H3P.js.map → chunk-RE3GAQI5.js.map} +0 -0
  1110. /package/dist/{chunk-JG7MEMJP.js.map → chunk-RFHUVPFA.js.map} +0 -0
  1111. /package/dist/{chunk-WKELNNIG.js.map → chunk-RH45HT5T.js.map} +0 -0
  1112. /package/dist/{chunk-S4LRL5BA.js.map → chunk-RJNQTZ5O.js.map} +0 -0
  1113. /package/dist/{chunk-URSNCM57.js.map → chunk-S2BJTAAB.js.map} +0 -0
  1114. /package/dist/{chunk-AJSRYRJS.js.map → chunk-S56PWXIX.js.map} +0 -0
  1115. /package/dist/{chunk-FAB5SXNO.js.map → chunk-S6FFDIHD.js.map} +0 -0
  1116. /package/dist/{chunk-56NHT2TZ.js.map → chunk-S6MAMIK2.js.map} +0 -0
  1117. /package/dist/{chunk-OKI45WHM.js.map → chunk-SERTO6H6.js.map} +0 -0
  1118. /package/dist/{chunk-I5DW76GB.js.map → chunk-STOOH7EI.js.map} +0 -0
  1119. /package/dist/{chunk-I7MZOZGC.js.map → chunk-SWSTEUXX.js.map} +0 -0
  1120. /package/dist/{chunk-JFEAJRG6.js.map → chunk-SWZN7NNZ.js.map} +0 -0
  1121. /package/dist/{chunk-ARNQH2XE.js.map → chunk-SYDF57KS.js.map} +0 -0
  1122. /package/dist/{chunk-YYKPRX4P.js.map → chunk-T275CUVD.js.map} +0 -0
  1123. /package/dist/{chunk-OCS3KIYC.js.map → chunk-T4OT7QWP.js.map} +0 -0
  1124. /package/dist/{chunk-YRCDL3GO.js.map → chunk-TCSRY2NP.js.map} +0 -0
  1125. /package/dist/{chunk-ELC2ZPHI.js.map → chunk-TCX5OA2X.js.map} +0 -0
  1126. /package/dist/{chunk-NJVHMK5R.js.map → chunk-TDW5CSO5.js.map} +0 -0
  1127. /package/dist/{chunk-MCPKUVMQ.js.map → chunk-TGG3ODCS.js.map} +0 -0
  1128. /package/dist/{chunk-Q2N5UR7Q.js.map → chunk-TILSTYUC.js.map} +0 -0
  1129. /package/dist/{chunk-4FKE42TW.js.map → chunk-TJ5DYWXU.js.map} +0 -0
  1130. /package/dist/{chunk-TQQALBLU.js.map → chunk-TNRI4ZE6.js.map} +0 -0
  1131. /package/dist/{chunk-LLU7VKCZ.js.map → chunk-TPIFVUMF.js.map} +0 -0
  1132. /package/dist/{chunk-UITWSZH3.js.map → chunk-TSW6OF22.js.map} +0 -0
  1133. /package/dist/{chunk-UB4GKFCI.js.map → chunk-TTSTBHGR.js.map} +0 -0
  1134. /package/dist/{chunk-HVGM5IME.js.map → chunk-U3JYAWMR.js.map} +0 -0
  1135. /package/dist/{chunk-GGU7KV4G.js.map → chunk-U7ODSHA5.js.map} +0 -0
  1136. /package/dist/{chunk-NW4RPGET.js.map → chunk-UEGEPRNP.js.map} +0 -0
  1137. /package/dist/{chunk-2DA7DTHO.js.map → chunk-UGIA2YEJ.js.map} +0 -0
  1138. /package/dist/{chunk-5AGRFQSH.js.map → chunk-UHLKKDNF.js.map} +0 -0
  1139. /package/dist/{chunk-KJI2DVSO.js.map → chunk-ULVXKIPX.js.map} +0 -0
  1140. /package/dist/{chunk-56KVDNOS.js.map → chunk-USUDKZ5G.js.map} +0 -0
  1141. /package/dist/{chunk-CC4JBFWY.js.map → chunk-UVO6I2F6.js.map} +0 -0
  1142. /package/dist/{chunk-BR62BHVY.js.map → chunk-V6NVG4K2.js.map} +0 -0
  1143. /package/dist/{chunk-Q7QXSQ46.js.map → chunk-VCMQFD3G.js.map} +0 -0
  1144. /package/dist/{chunk-CVDY7P3E.js.map → chunk-VKPBDNIO.js.map} +0 -0
  1145. /package/dist/{chunk-L6WVCO6D.js.map → chunk-VLDKWGHD.js.map} +0 -0
  1146. /package/dist/{chunk-IUPIJWFK.js.map → chunk-VM2NA2EL.js.map} +0 -0
  1147. /package/dist/{chunk-6JGMBTXP.js.map → chunk-VMZTCVEL.js.map} +0 -0
  1148. /package/dist/{chunk-CG2HT7TI.js.map → chunk-VQH5AXZY.js.map} +0 -0
  1149. /package/dist/{chunk-ZFGXQ54H.js.map → chunk-VTBTW6N4.js.map} +0 -0
  1150. /package/dist/{chunk-VJZPVP6C.js.map → chunk-VV7PLDX4.js.map} +0 -0
  1151. /package/dist/{chunk-LWEJGMVO.js.map → chunk-VYGGLH5H.js.map} +0 -0
  1152. /package/dist/{chunk-KFYLTQGK.js.map → chunk-VYQHHTQ4.js.map} +0 -0
  1153. /package/dist/{chunk-IB2EX6GX.js.map → chunk-VYSGRD2W.js.map} +0 -0
  1154. /package/dist/{chunk-5JMX5FRF.js.map → chunk-W4W63LTP.js.map} +0 -0
  1155. /package/dist/{chunk-HRLJNDDC.js.map → chunk-WHTRR66J.js.map} +0 -0
  1156. /package/dist/{chunk-BWBBS6HJ.js.map → chunk-WICIQFHJ.js.map} +0 -0
  1157. /package/dist/{chunk-CDB66JAO.js.map → chunk-WJYYMCCC.js.map} +0 -0
  1158. /package/dist/{chunk-TBUWK3RP.js.map → chunk-WSJOWQJE.js.map} +0 -0
  1159. /package/dist/{chunk-C2EERTYX.js.map → chunk-WYDUXZ2R.js.map} +0 -0
  1160. /package/dist/{chunk-E2SGFW2B.js.map → chunk-X62CN4YR.js.map} +0 -0
  1161. /package/dist/{chunk-VVCKB62D.js.map → chunk-XFQHKMO6.js.map} +0 -0
  1162. /package/dist/{chunk-IZZINUFM.js.map → chunk-XGJ7XZHS.js.map} +0 -0
  1163. /package/dist/{chunk-P5FLGDXW.js.map → chunk-XJFJNOEV.js.map} +0 -0
  1164. /package/dist/{chunk-UQ67SEGH.js.map → chunk-XKJLHMXZ.js.map} +0 -0
  1165. /package/dist/{chunk-VEJG6GQQ.js.map → chunk-XLFPJVQS.js.map} +0 -0
  1166. /package/dist/{chunk-RDHK2NYW.js.map → chunk-XM4ZLZFW.js.map} +0 -0
  1167. /package/dist/{chunk-6TWS6AXT.js.map → chunk-Y2GAWEJD.js.map} +0 -0
  1168. /package/dist/{chunk-MYDFABO6.js.map → chunk-Y3A74SVK.js.map} +0 -0
  1169. /package/dist/{chunk-C625ODRG.js.map → chunk-YANEVGI3.js.map} +0 -0
  1170. /package/dist/{chunk-OXM267RC.js.map → chunk-YHHSO5QR.js.map} +0 -0
  1171. /package/dist/{chunk-VVXOG3ZC.js.map → chunk-YOSOCHCB.js.map} +0 -0
  1172. /package/dist/{chunk-HHFFPE67.js.map → chunk-YP4SNX4P.js.map} +0 -0
  1173. /package/dist/{chunk-QCB3WNCA.js.map → chunk-YQH6AMIH.js.map} +0 -0
  1174. /package/dist/{chunk-NZBZLY7H.js.map → chunk-YRWL2IAE.js.map} +0 -0
  1175. /package/dist/{chunk-LYEALWBN.js.map → chunk-YTWRQ3WK.js.map} +0 -0
  1176. /package/dist/{chunk-7V2CQLTN.js.map → chunk-YV5GGSLK.js.map} +0 -0
  1177. /package/dist/{chunk-RY7YRYVT.js.map → chunk-YXUDK37V.js.map} +0 -0
  1178. /package/dist/{chunk-MUB44LD3.js.map → chunk-YYM5TSCR.js.map} +0 -0
  1179. /package/dist/{chunk-JTWK3VE7.js.map → chunk-ZG2CKFQF.js.map} +0 -0
  1180. /package/dist/{chunk-5UTHPGFF.js.map → chunk-ZGJXO2HH.js.map} +0 -0
  1181. /package/dist/{chunk-WTZ6OJUY.js.map → chunk-ZGV76PZ4.js.map} +0 -0
  1182. /package/dist/{chunk-A3QEJ2IZ.js.map → chunk-ZOBUR2VC.js.map} +0 -0
  1183. /package/dist/{computer-viewer-AVH5J4TC.js.map → computer-viewer-S6AL3XDT.js.map} +0 -0
  1184. /package/dist/{embedded-new-voice-M6PBWMQZ.js.map → embedded-new-voice-T3BXRYJX.js.map} +0 -0
  1185. /package/dist/{embedded-voice-7USALJKI.js.map → embedded-voice-ZJXMF3RP.js.map} +0 -0
  1186. /package/dist/{fleet-decision-row-XY6OZPHA.js.map → fleet-decision-row-AUCMLBCV.js.map} +0 -0
  1187. /package/dist/{model-policy-picker-menu-S5RTVLMQ.js.map → model-policy-picker-menu-TO57YUQ6.js.map} +0 -0
  1188. /package/dist/{payment-page-card-XSY5NO7D.js.map → payment-page-card-DFGDAMTG.js.map} +0 -0
  1189. /package/dist/{platform-activity-row-77WER5O3.js.map → platform-activity-row-ZMBEJGXN.js.map} +0 -0
  1190. /package/dist/{queue-surface-implementation-SDV7I32L.js.map → queue-surface-implementation-KDK5CYH6.js.map} +0 -0
  1191. /package/dist/{recorder-host-7GNQG6BB.js.map → recorder-host-3HLYRL4H.js.map} +0 -0
  1192. /package/dist/{sandbox-files-JOH2Q57T.js.map → sandbox-files-UOZ4OJZU.js.map} +0 -0
  1193. /package/dist/{session-connect-cards-HZIR4ZWT.js.map → session-connect-cards-VZIYLH45.js.map} +0 -0
  1194. /package/dist/{session-realtime-OPCPTIAP.js.map → session-realtime-2ZGJWVZP.js.map} +0 -0
  1195. /package/dist/{timeline-annotation-markers-WXCRA4BY.js.map → timeline-annotation-markers-KBTFWLME.js.map} +0 -0
  1196. /package/dist/{timeline-annotation-selection-YBZQNCNX.js.map → timeline-annotation-selection-VI4YSDR5.js.map} +0 -0
  1197. /package/dist/{timeline-annotations-dialog-4WVXTKFW.js.map → timeline-annotations-dialog-4PLWNLRB.js.map} +0 -0
@@ -0,0 +1,2335 @@
1
+ "use client";
2
+ import {
3
+ ActivityDisclosure,
4
+ SecretRefChip,
5
+ mayContainSecretReference,
6
+ searchMatchOffset,
7
+ useSecretsUi
8
+ } from "./chunk-O6JDF7KH.js";
9
+ import {
10
+ prefersReducedMotion
11
+ } from "./chunk-OCN4S7WN.js";
12
+ import {
13
+ DecisionButton
14
+ } from "./chunk-2FASQ2SZ.js";
15
+ import {
16
+ LoadFailureNotice,
17
+ isChunkLoadError
18
+ } from "./chunk-UVO6I2F6.js";
19
+ import {
20
+ chainLinkRenderers,
21
+ chainLinkResolvers,
22
+ useArtifactLinkTarget,
23
+ useOpenGeniLinkRenderer,
24
+ useOpenGeniLinkResolver
25
+ } from "./chunk-W4QUDV6Y.js";
26
+ import {
27
+ PreviewLoading
28
+ } from "./chunk-WY333GHH.js";
29
+ import {
30
+ prepareMathMarkdown
31
+ } from "./chunk-IAAWU3AS.js";
32
+ import {
33
+ INTERACTIVE_ANSWER_FENCE,
34
+ bestInteractiveItems,
35
+ formatInteractiveValue,
36
+ interactiveActionLabel,
37
+ interactiveAnswerKey,
38
+ interactiveFilterOptions,
39
+ interactiveSelectionMessage,
40
+ interactiveSelectionWasSent,
41
+ nextInteractiveSort,
42
+ parseInteractiveAnswer,
43
+ settleInteractiveAnswer,
44
+ toggleInteractiveSelection,
45
+ trailingOpenFence,
46
+ useInteractiveAnswerHost,
47
+ useInteractiveAnswerState,
48
+ visibleInteractiveItems
49
+ } from "./chunk-OONTDHBV.js";
50
+ import {
51
+ copyTextToClipboard,
52
+ tableElementToTsv
53
+ } from "./chunk-PEHTX3V7.js";
54
+ import {
55
+ Tooltip,
56
+ TooltipContent,
57
+ TooltipProvider,
58
+ TooltipTrigger
59
+ } from "./chunk-6IWKHHRS.js";
60
+ import {
61
+ displayImageSrc
62
+ } from "./chunk-S5ORWTCJ.js";
63
+ import {
64
+ cn
65
+ } from "./chunk-TXS65BB2.js";
66
+ import {
67
+ useOpenGeniText
68
+ } from "./chunk-LVUSG56I.js";
69
+
70
+ // src/components/copy-button.tsx
71
+ import { CheckIcon, CopyIcon } from "lucide-react";
72
+ import { memo, useEffect, useRef, useState } from "react";
73
+ import { jsx, jsxs } from "react/jsx-runtime";
74
+ var COPIED_MS = 1600;
75
+ var CopyButton = memo(function CopyButton2({
76
+ text: text2,
77
+ label: labelProp,
78
+ className,
79
+ reveal = "group-hover"
80
+ }) {
81
+ const t = useOpenGeniText();
82
+ const label = labelProp === void 0 ? t("copyButton.copy") : labelProp;
83
+ const [copied, setCopied] = useState(false);
84
+ const [tipOpen, setTipOpen] = useState(false);
85
+ const timerRef = useRef(null);
86
+ useEffect(() => {
87
+ return () => {
88
+ if (timerRef.current !== null) {
89
+ clearTimeout(timerRef.current);
90
+ }
91
+ };
92
+ }, []);
93
+ const onClick = async (event) => {
94
+ event.preventDefault();
95
+ event.stopPropagation();
96
+ const button = event.currentTarget;
97
+ const pointerActivated = event.detail > 0;
98
+ const value = typeof text2 === "function" ? text2() : text2;
99
+ const ok = await copyTextToClipboard(value);
100
+ if (!ok) {
101
+ return;
102
+ }
103
+ setCopied(true);
104
+ setTipOpen(true);
105
+ if (timerRef.current !== null) {
106
+ clearTimeout(timerRef.current);
107
+ }
108
+ timerRef.current = setTimeout(() => {
109
+ timerRef.current = null;
110
+ setCopied(false);
111
+ setTipOpen(false);
112
+ }, COPIED_MS);
113
+ if (pointerActivated) {
114
+ button.blur();
115
+ }
116
+ };
117
+ const tip = copied ? t("copyButton.copied") : label;
118
+ return /* @__PURE__ */ jsxs(
119
+ Tooltip,
120
+ {
121
+ open: copied ? true : tipOpen,
122
+ onOpenChange: (next) => {
123
+ if (!copied) {
124
+ setTipOpen(next);
125
+ }
126
+ },
127
+ children: [
128
+ /* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
129
+ "button",
130
+ {
131
+ type: "button",
132
+ "data-og-copy": "",
133
+ "data-state": copied ? "copied" : "idle",
134
+ "aria-label": tip,
135
+ onClick,
136
+ className: cn(
137
+ "inline-flex size-7 shrink-0 items-center justify-center rounded-og-sm pointer-coarse:size-11",
138
+ "text-og-fg-subtle transition-[opacity,color,background-color] duration-150",
139
+ "hover:bg-og-surface-2/80 hover:text-og-fg",
140
+ "focus-visible:opacity-100 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/40",
141
+ reveal === "group-hover" && "opacity-0 group-hover/copy:opacity-100 group-focus-within/copy:opacity-100 pointer-coarse:opacity-70",
142
+ copied && "opacity-100 text-og-accent",
143
+ className
144
+ ),
145
+ children: copied ? /* @__PURE__ */ jsx(CheckIcon, { className: "size-3.5", "aria-hidden": true }) : /* @__PURE__ */ jsx(CopyIcon, { className: "size-3.5", "aria-hidden": true })
146
+ }
147
+ ) }),
148
+ /* @__PURE__ */ jsx(TooltipContent, { side: "top", children: tip })
149
+ ]
150
+ }
151
+ );
152
+ });
153
+ function CopyHoverFrame({
154
+ children,
155
+ className,
156
+ copyText,
157
+ label,
158
+ align = "end",
159
+ trailing
160
+ }) {
161
+ if (copyText.trim().length === 0) {
162
+ return /* @__PURE__ */ jsx("div", { className, children });
163
+ }
164
+ return /* @__PURE__ */ jsxs("div", { className: cn("group/copy", className), children: [
165
+ children,
166
+ /* @__PURE__ */ jsxs(
167
+ "div",
168
+ {
169
+ "data-og-annotation-chrome": "",
170
+ className: cn(
171
+ "flex h-6 items-center gap-1.5 pointer-coarse:h-11",
172
+ align === "end" ? "justify-end" : "justify-start"
173
+ ),
174
+ children: [
175
+ /* @__PURE__ */ jsx(
176
+ CopyButton,
177
+ {
178
+ text: copyText,
179
+ label,
180
+ reveal: "group-hover",
181
+ className: "size-6 pointer-coarse:size-11"
182
+ }
183
+ ),
184
+ trailing
185
+ ]
186
+ }
187
+ )
188
+ ] });
189
+ }
190
+
191
+ // src/components/interactive-answer.tsx
192
+ import {
193
+ ArrowDownIcon,
194
+ ArrowUpIcon,
195
+ ArrowUpRightIcon,
196
+ CheckIcon as CheckIcon2,
197
+ LayoutGridIcon,
198
+ LoaderCircleIcon,
199
+ Table2Icon
200
+ } from "lucide-react";
201
+ import { useId, useMemo, useState as useState2 } from "react";
202
+ import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
203
+ function InteractiveAnswer({ source, state, renderSource }) {
204
+ const parsed = useMemo(
205
+ () => settleInteractiveAnswer(
206
+ parseInteractiveAnswer(source, { partial: state !== "complete" }),
207
+ state
208
+ ),
209
+ [source, state]
210
+ );
211
+ if (parsed.status === "invalid") return /* @__PURE__ */ jsx2(InvalidAnswer, { renderSource });
212
+ if (!parsed.spec || parsed.spec.items.length === 0) {
213
+ return state === "streaming" ? /* @__PURE__ */ jsx2(AnswerStatus, { streaming: true, title: parsed.spec?.title }) : /* @__PURE__ */ jsx2(InvalidAnswer, { renderSource });
214
+ }
215
+ return /* @__PURE__ */ jsx2(
216
+ LoadedAnswer,
217
+ {
218
+ spec: parsed.spec,
219
+ answerKey: interactiveAnswerKey(source),
220
+ state,
221
+ complete: parsed.status === "ok"
222
+ }
223
+ );
224
+ }
225
+ function LoadedAnswer({
226
+ spec,
227
+ answerKey,
228
+ state: streamState,
229
+ complete
230
+ }) {
231
+ const t = useOpenGeniText();
232
+ const host = useInteractiveAnswerHost();
233
+ const ids = useMemo(
234
+ () => complete ? spec.items.map((item) => item.id) : null,
235
+ [complete, spec]
236
+ );
237
+ const [state, update] = useInteractiveAnswerState(answerKey, ids);
238
+ const [hovered, setHovered] = useState2(null);
239
+ const [sending, setSending] = useState2(false);
240
+ const [failed, setFailed] = useState2(false);
241
+ const titleId = useId();
242
+ const interactive = complete;
243
+ const canPick = interactive && Boolean(spec.select) && Boolean(host.send) && !host.readOnly;
244
+ const max = spec.select?.max ?? 0;
245
+ const view = state.view ?? spec.view;
246
+ const showTable = view === "table" && spec.fields.length > 0;
247
+ const filterFields = interactive ? spec.fields.filter((field) => field.filter) : [];
248
+ const visible = interactive ? visibleInteractiveItems(spec, state) : spec.items;
249
+ const best = useMemo(
250
+ () => complete ? bestInteractiveItems(spec, spec.items) : /* @__PURE__ */ new Map(),
251
+ [complete, spec]
252
+ );
253
+ const words = { yes: t("interactiveAnswer.yes"), no: t("interactiveAnswer.no"), empty: "\u2014" };
254
+ const fallbackAction = max === 1 ? t("interactiveAnswer.continueWithThis") : t("interactiveAnswer.continueWithThese");
255
+ const sent = interactiveSelectionWasSent(state);
256
+ const activeFilters = Object.values(state.filters).some((values) => values.length > 0);
257
+ const toggle = (id) => {
258
+ if (!canPick) return;
259
+ setFailed(false);
260
+ update((current) => ({
261
+ ...current,
262
+ selected: toggleInteractiveSelection(current.selected, id, max)
263
+ }));
264
+ };
265
+ const send = async () => {
266
+ if (!host.send || state.selected.length === 0 || sending) return;
267
+ const selection = [...state.selected];
268
+ setSending(true);
269
+ setFailed(false);
270
+ try {
271
+ const result = await host.send(
272
+ interactiveSelectionMessage(spec, selection, fallbackAction, t.locale)
273
+ );
274
+ if (result === false) setFailed(true);
275
+ else update((current) => ({ ...current, sent: selection }));
276
+ } catch {
277
+ setFailed(true);
278
+ } finally {
279
+ setSending(false);
280
+ }
281
+ };
282
+ const itemProps = {
283
+ spec,
284
+ selected: state.selected,
285
+ hovered,
286
+ onHover: setHovered,
287
+ onToggle: canPick ? toggle : void 0,
288
+ atMax: max > 1 && state.selected.length >= max,
289
+ best,
290
+ words,
291
+ single: max === 1
292
+ };
293
+ return /* @__PURE__ */ jsxs2(
294
+ "section",
295
+ {
296
+ "aria-labelledby": spec.title ? titleId : void 0,
297
+ "aria-label": spec.title ? void 0 : t("interactiveAnswer.options"),
298
+ "aria-busy": streamState === "streaming" && !complete || void 0,
299
+ className: "og-interactive-answer @container/answer my-3 flex min-w-0 flex-col gap-3 first:mt-0",
300
+ children: [
301
+ spec.title || interactive && spec.fields.length > 0 ? (
302
+ // Without a title, narrow answers have no header: the switch is hidden there.
303
+ /* @__PURE__ */ jsxs2(
304
+ "header",
305
+ {
306
+ className: cn("flex min-w-0 items-center gap-3", !spec.title && "hidden @md/answer:flex"),
307
+ children: [
308
+ spec.title ? /* @__PURE__ */ jsx2(
309
+ "h3",
310
+ {
311
+ id: titleId,
312
+ className: "m-0 min-w-0 flex-1 text-og-md leading-6 font-medium text-og-fg",
313
+ children: spec.title
314
+ }
315
+ ) : /* @__PURE__ */ jsx2("span", { className: "flex-1" }),
316
+ interactive && spec.fields.length > 0 ? /* @__PURE__ */ jsx2(
317
+ ViewSwitch,
318
+ {
319
+ view: showTable ? "table" : "cards",
320
+ onChange: (next) => update((current) => ({ ...current, view: next }))
321
+ }
322
+ ) : null
323
+ ]
324
+ }
325
+ )
326
+ ) : null,
327
+ filterFields.length > 0 ? /* @__PURE__ */ jsx2(
328
+ Filters,
329
+ {
330
+ fields: filterFields,
331
+ items: spec.items,
332
+ filters: state.filters,
333
+ words,
334
+ onChange: (key, values) => update((current) => ({ ...current, filters: { ...current.filters, [key]: values } }))
335
+ }
336
+ ) : null,
337
+ spec.chart ? /* @__PURE__ */ jsx2(
338
+ BarChart,
339
+ {
340
+ ...itemProps,
341
+ field: spec.fields.find((field) => field.key === spec.chart),
342
+ items: visible
343
+ }
344
+ ) : null,
345
+ visible.length === 0 ? /* @__PURE__ */ jsxs2("p", { className: "m-0 flex flex-wrap items-center gap-x-2 text-og-sm text-og-fg-muted", children: [
346
+ t("interactiveAnswer.noMatches"),
347
+ /* @__PURE__ */ jsx2(
348
+ "button",
349
+ {
350
+ type: "button",
351
+ className: "cursor-pointer rounded-og-sm text-og-fg underline decoration-og-border-strong underline-offset-2 hover:decoration-og-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/45",
352
+ onClick: () => update((current) => ({ ...current, filters: {} })),
353
+ children: t("interactiveAnswer.showAll")
354
+ }
355
+ )
356
+ ] }) : /* @__PURE__ */ jsxs2(Fragment, { children: [
357
+ showTable ? (
358
+ // Narrow answers (a phone, a side panel) read the same options as cards,
359
+ // so no column hides off-screen.
360
+ /* @__PURE__ */ jsx2("div", { className: "hidden min-w-0 @md/answer:block", children: /* @__PURE__ */ jsx2(
361
+ OptionTable,
362
+ {
363
+ ...itemProps,
364
+ items: visible,
365
+ sort: state.sort,
366
+ onSort: (key, field) => update((current) => ({
367
+ ...current,
368
+ sort: nextInteractiveSort(current.sort, key, field)
369
+ }))
370
+ }
371
+ ) })
372
+ ) : null,
373
+ /* @__PURE__ */ jsx2(
374
+ "div",
375
+ {
376
+ className: cn(
377
+ "grid min-w-0 grid-cols-1 gap-2 @lg/answer:grid-cols-2",
378
+ showTable && "@md/answer:hidden"
379
+ ),
380
+ children: visible.map((item) => /* @__PURE__ */ jsx2(OptionCard, { item, ...itemProps }, item.id))
381
+ }
382
+ )
383
+ ] }),
384
+ interactive && (activeFilters || spec.omitted > 0) ? /* @__PURE__ */ jsx2("p", { className: "m-0 text-og-xs text-og-fg-subtle", children: activeFilters ? t("interactiveAnswer.showing", { shown: visible.length, total: spec.items.length }) : t("interactiveAnswer.omitted", { count: spec.omitted }) }) : null,
385
+ streamState === "streaming" && !complete ? /* @__PURE__ */ jsx2(AnswerStatus, { streaming: true }) : null,
386
+ streamState === "incomplete" && !complete ? /* @__PURE__ */ jsx2("p", { className: "m-0 text-og-sm text-og-fg-muted", children: t("interactiveAnswer.stopped") }) : null,
387
+ canPick ? /* @__PURE__ */ jsx2(
388
+ PickBar,
389
+ {
390
+ spec,
391
+ max,
392
+ selected: state.selected,
393
+ sent,
394
+ sending,
395
+ failed,
396
+ action: interactiveActionLabel(spec, fallbackAction),
397
+ onClear: () => update((current) => ({ ...current, selected: [] })),
398
+ onSend: () => void send()
399
+ }
400
+ ) : null
401
+ ]
402
+ }
403
+ );
404
+ }
405
+ function ViewSwitch({
406
+ view,
407
+ onChange
408
+ }) {
409
+ const t = useOpenGeniText();
410
+ const options = [
411
+ { id: "cards", label: t("interactiveAnswer.cards"), icon: LayoutGridIcon },
412
+ { id: "table", label: t("interactiveAnswer.table"), icon: Table2Icon }
413
+ ];
414
+ return /* @__PURE__ */ jsx2(
415
+ "div",
416
+ {
417
+ role: "group",
418
+ "aria-label": t("interactiveAnswer.viewAs"),
419
+ className: "hidden shrink-0 items-center rounded-og-md bg-og-fg/[0.05] p-0.5 @md/answer:inline-flex",
420
+ children: options.map(({ id, label, icon: Icon }) => /* @__PURE__ */ jsxs2(
421
+ "button",
422
+ {
423
+ type: "button",
424
+ "aria-pressed": view === id,
425
+ title: label,
426
+ onClick: () => onChange(id),
427
+ className: cn(
428
+ "inline-flex h-7 cursor-pointer items-center gap-1.5 rounded-[calc(var(--og-radius-md)-2px)] px-2 text-og-xs font-medium transition-colors duration-150 pointer-coarse:h-9 pointer-coarse:px-3",
429
+ "focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/45",
430
+ view === id ? "bg-og-surface-1 text-og-fg shadow-[0_1px_2px_rgb(0_0_0/0.08)]" : "text-og-fg-muted hover:text-og-fg"
431
+ ),
432
+ children: [
433
+ /* @__PURE__ */ jsx2(Icon, { "aria-hidden": "true", className: "size-3.5" }),
434
+ /* @__PURE__ */ jsx2("span", { children: label })
435
+ ]
436
+ },
437
+ id
438
+ ))
439
+ }
440
+ );
441
+ }
442
+ function Filters({
443
+ fields,
444
+ items,
445
+ filters,
446
+ words,
447
+ onChange
448
+ }) {
449
+ return /* @__PURE__ */ jsx2("div", { className: "flex min-w-0 flex-col gap-2", children: fields.map((field) => {
450
+ const options = interactiveFilterOptions(field, items);
451
+ if (options.length === 0) return null;
452
+ const active = filters[field.key] ?? [];
453
+ return /* @__PURE__ */ jsxs2(
454
+ "div",
455
+ {
456
+ role: "group",
457
+ "aria-label": field.label,
458
+ className: "flex min-w-0 flex-wrap items-center gap-1.5",
459
+ children: [
460
+ /* @__PURE__ */ jsx2("span", { className: "mr-1 text-og-xs text-og-fg-subtle", children: field.label }),
461
+ options.map((option) => {
462
+ const on = active.includes(option);
463
+ return /* @__PURE__ */ jsxs2(
464
+ "button",
465
+ {
466
+ type: "button",
467
+ "aria-pressed": on,
468
+ onClick: () => onChange(
469
+ field.key,
470
+ on ? active.filter((value) => value !== option) : [...active, option]
471
+ ),
472
+ className: cn(
473
+ "inline-flex h-7 cursor-pointer items-center gap-1 rounded-full border px-2.5 text-og-xs transition-colors duration-150 pointer-coarse:h-9 pointer-coarse:px-3",
474
+ "focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/45",
475
+ on ? "border-og-fg bg-og-fg text-og-bg" : "border-og-border text-og-fg-muted hover:border-og-border-strong hover:text-og-fg"
476
+ ),
477
+ children: [
478
+ on ? /* @__PURE__ */ jsx2(CheckIcon2, { "aria-hidden": "true", className: "size-3" }) : null,
479
+ formatInteractiveValue(field, option, words)
480
+ ]
481
+ },
482
+ String(option)
483
+ );
484
+ })
485
+ ]
486
+ },
487
+ field.key
488
+ );
489
+ }) });
490
+ }
491
+ function SelectMark({ on, single }) {
492
+ return /* @__PURE__ */ jsx2(
493
+ "span",
494
+ {
495
+ "aria-hidden": "true",
496
+ className: cn(
497
+ "inline-flex size-[18px] shrink-0 items-center justify-center border transition-colors duration-150",
498
+ single ? "rounded-full" : "rounded-[5px]",
499
+ on ? "border-og-fg bg-og-fg text-og-bg" : "border-og-border-strong bg-og-surface-1 group-hover/option:border-og-fg-muted"
500
+ ),
501
+ children: on ? single ? /* @__PURE__ */ jsx2("span", { className: "size-1.5 rounded-full bg-og-bg" }) : /* @__PURE__ */ jsx2(CheckIcon2, { className: "size-3", strokeWidth: 3 }) : null
502
+ }
503
+ );
504
+ }
505
+ function BestMark() {
506
+ const t = useOpenGeniText();
507
+ return /* @__PURE__ */ jsxs2("span", { className: "inline-flex items-center gap-0.5 text-[11px] leading-4 font-medium text-og-status-idle", children: [
508
+ /* @__PURE__ */ jsx2(CheckIcon2, { "aria-hidden": "true", className: "size-3", strokeWidth: 2.5 }),
509
+ t("interactiveAnswer.best")
510
+ ] });
511
+ }
512
+ function OptionCard({
513
+ item,
514
+ spec,
515
+ selected,
516
+ hovered,
517
+ onHover,
518
+ onToggle,
519
+ atMax,
520
+ best,
521
+ words,
522
+ single
523
+ }) {
524
+ const t = useOpenGeniText();
525
+ const on = selected.includes(item.id);
526
+ const disabled = Boolean(onToggle) && !on && atMax;
527
+ const facts = spec.fields.filter((field) => {
528
+ const value = item.values[field.key];
529
+ return value !== void 0 && value !== null && value !== "";
530
+ });
531
+ const Root = onToggle ? "label" : "div";
532
+ return /* @__PURE__ */ jsxs2(
533
+ Root,
534
+ {
535
+ "data-option-id": item.id,
536
+ onPointerEnter: () => onHover(item.id),
537
+ onPointerLeave: () => onHover(null),
538
+ className: cn(
539
+ "group/option relative flex min-w-0 gap-3 rounded-og-lg border bg-og-surface-1 px-3.5 py-3 transition-[border-color,background-color,box-shadow] duration-150",
540
+ onToggle && !disabled && "cursor-pointer",
541
+ disabled && "opacity-60",
542
+ on ? "border-og-fg bg-og-fg/[0.025]" : hovered === item.id ? "border-og-border-strong bg-og-hover" : "border-og-border",
543
+ "has-[input:focus-visible]:ring-2 has-[input:focus-visible]:ring-og-accent/45"
544
+ ),
545
+ children: [
546
+ onToggle ? /* @__PURE__ */ jsxs2(Fragment, { children: [
547
+ /* @__PURE__ */ jsx2(
548
+ "input",
549
+ {
550
+ type: single ? "radio" : "checkbox",
551
+ className: "sr-only",
552
+ checked: on,
553
+ disabled,
554
+ "aria-label": t("interactiveAnswer.select", { title: item.title }),
555
+ onChange: () => onToggle(item.id)
556
+ }
557
+ ),
558
+ /* @__PURE__ */ jsx2("span", { className: "pt-0.5", children: /* @__PURE__ */ jsx2(SelectMark, { on, single }) })
559
+ ] }) : null,
560
+ /* @__PURE__ */ jsxs2("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
561
+ /* @__PURE__ */ jsxs2("div", { className: "flex min-w-0 items-start gap-2", children: [
562
+ /* @__PURE__ */ jsxs2("div", { className: "min-w-0 flex-1", children: [
563
+ /* @__PURE__ */ jsx2("div", { className: "text-og-sm leading-5 font-medium text-og-fg", children: item.title }),
564
+ item.subtitle ? /* @__PURE__ */ jsx2("div", { className: "text-og-xs leading-4 text-og-fg-muted", children: item.subtitle }) : null
565
+ ] }),
566
+ item.badge ? /* @__PURE__ */ jsx2("span", { className: "shrink-0 rounded-full bg-og-fg/[0.07] px-2 py-0.5 text-[11px] leading-4 font-medium text-og-fg", children: item.badge }) : null
567
+ ] }),
568
+ item.description ? /* @__PURE__ */ jsx2("p", { className: "m-0 line-clamp-2 text-og-sm leading-5 text-og-fg-muted", children: item.description }) : null,
569
+ facts.length > 0 ? /* @__PURE__ */ jsx2("dl", { className: "m-0 mt-1.5 flex flex-wrap gap-x-5 gap-y-2", children: facts.map((field) => {
570
+ const isBest = best.get(field.key)?.has(item.id);
571
+ return /* @__PURE__ */ jsxs2("div", { className: "flex min-w-0 flex-col", children: [
572
+ /* @__PURE__ */ jsxs2("dt", { className: "flex items-center gap-1.5 text-og-xs leading-4 text-og-fg-subtle", children: [
573
+ field.label,
574
+ isBest ? /* @__PURE__ */ jsx2(BestMark, {}) : null
575
+ ] }),
576
+ /* @__PURE__ */ jsx2("dd", { className: "m-0 min-w-0 text-og-sm leading-5 text-og-fg tabular-nums", children: formatInteractiveValue(field, item.values[field.key], words, t.locale) })
577
+ ] }, field.key);
578
+ }) }) : null,
579
+ item.url ? /* @__PURE__ */ jsxs2(
580
+ "a",
581
+ {
582
+ href: item.url,
583
+ target: "_blank",
584
+ rel: "noreferrer noopener",
585
+ onClick: (event) => event.stopPropagation(),
586
+ className: "relative z-10 mt-1 inline-flex w-fit items-center gap-1 rounded-og-sm text-og-xs font-medium text-og-fg-muted underline decoration-og-border-strong underline-offset-2 hover:text-og-fg hover:decoration-og-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/45",
587
+ children: [
588
+ hostLabel(item.url),
589
+ /* @__PURE__ */ jsx2(ArrowUpRightIcon, { "aria-hidden": "true", className: "size-3" })
590
+ ]
591
+ }
592
+ ) : null
593
+ ] })
594
+ ]
595
+ }
596
+ );
597
+ }
598
+ function hostLabel(url) {
599
+ try {
600
+ return new URL(url).hostname.replace(/^www\./, "");
601
+ } catch {
602
+ return url;
603
+ }
604
+ }
605
+ var INLINE_UNITS = /* @__PURE__ */ new Set(["$", "\u20AC", "\xA3", "\xA5", "US$", "%"]);
606
+ function OptionTable({
607
+ items,
608
+ spec,
609
+ selected,
610
+ hovered,
611
+ onHover,
612
+ onToggle,
613
+ atMax,
614
+ best,
615
+ words,
616
+ single,
617
+ sort,
618
+ onSort
619
+ }) {
620
+ const t = useOpenGeniText();
621
+ const header = (key, label, field, numeric) => {
622
+ const active = sort?.key === key;
623
+ const Arrow = active && sort?.direction === "desc" ? ArrowDownIcon : ArrowUpIcon;
624
+ const arrow = /* @__PURE__ */ jsx2(
625
+ Arrow,
626
+ {
627
+ "aria-hidden": "true",
628
+ className: cn(
629
+ "size-3 shrink-0 transition-opacity",
630
+ active ? "opacity-100" : "opacity-0 group-hover/sort:opacity-60"
631
+ )
632
+ }
633
+ );
634
+ return /* @__PURE__ */ jsx2(
635
+ "th",
636
+ {
637
+ scope: "col",
638
+ "aria-sort": active ? sort?.direction === "asc" ? "ascending" : "descending" : void 0,
639
+ className: cn(
640
+ "border-b border-og-border px-2.5 py-2 text-left align-bottom font-normal first:pl-0",
641
+ numeric && "text-right",
642
+ numeric && field?.better && "pr-6"
643
+ ),
644
+ children: /* @__PURE__ */ jsxs2(
645
+ "button",
646
+ {
647
+ type: "button",
648
+ onClick: () => onSort(key, field),
649
+ className: cn(
650
+ // align-bottom: an inline-flex box takes its baseline from its first
651
+ // item, and a leading arrow icon would lift numeric headers.
652
+ "group/sort inline-flex cursor-pointer items-center gap-1 rounded-og-sm align-bottom text-og-xs whitespace-nowrap focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/45",
653
+ active ? "text-og-fg" : "text-og-fg-subtle hover:text-og-fg"
654
+ ),
655
+ children: [
656
+ numeric ? arrow : null,
657
+ /* @__PURE__ */ jsxs2("span", { children: [
658
+ label,
659
+ field?.unit && !INLINE_UNITS.has(field.unit) ? /* @__PURE__ */ jsxs2("span", { className: "text-og-fg-subtle", children: [
660
+ " (",
661
+ field.unit,
662
+ ")"
663
+ ] }) : null
664
+ ] }),
665
+ numeric ? null : arrow
666
+ ]
667
+ }
668
+ )
669
+ },
670
+ key
671
+ );
672
+ };
673
+ const numericField = (field) => spec.items.some((item) => typeof item.values[field.key] === "number");
674
+ return /* @__PURE__ */ jsxs2("div", { className: "min-w-0 overflow-x-auto [scrollbar-gutter:stable]", children: [
675
+ /* @__PURE__ */ jsxs2("table", { className: "w-full border-collapse text-og-sm", children: [
676
+ /* @__PURE__ */ jsx2("thead", { children: /* @__PURE__ */ jsxs2("tr", { children: [
677
+ onToggle ? /* @__PURE__ */ jsx2("th", { scope: "col", className: "w-8 border-b border-og-border py-2 pr-1", children: /* @__PURE__ */ jsx2("span", { className: "sr-only", children: t("interactiveAnswer.selected") }) }) : null,
678
+ header("title", t("interactiveAnswer.option")),
679
+ spec.fields.map((field) => header(field.key, field.label, field, numericField(field)))
680
+ ] }) }),
681
+ /* @__PURE__ */ jsx2("tbody", { children: items.map((item) => {
682
+ const on = selected.includes(item.id);
683
+ const disabled = Boolean(onToggle) && !on && atMax;
684
+ return /* @__PURE__ */ jsxs2(
685
+ "tr",
686
+ {
687
+ "data-option-id": item.id,
688
+ onPointerEnter: () => onHover(item.id),
689
+ onPointerLeave: () => onHover(null),
690
+ onClick: (event) => {
691
+ if (event.target.closest("a,label,input")) return;
692
+ if (onToggle && !disabled) onToggle(item.id);
693
+ },
694
+ className: cn(
695
+ "transition-colors duration-150",
696
+ onToggle && !disabled && "cursor-pointer",
697
+ disabled && "opacity-60",
698
+ on ? "bg-og-fg/[0.06]" : hovered === item.id && "bg-og-hover"
699
+ ),
700
+ children: [
701
+ onToggle ? /* @__PURE__ */ jsx2("td", { className: "border-b border-og-border py-2 pr-1 align-top", children: /* @__PURE__ */ jsxs2("label", { className: "group/option relative inline-flex cursor-pointer pt-0.5 has-[input:focus-visible]:rounded-[5px] has-[input:focus-visible]:ring-2 has-[input:focus-visible]:ring-og-accent/45", children: [
702
+ /* @__PURE__ */ jsx2(
703
+ "input",
704
+ {
705
+ type: single ? "radio" : "checkbox",
706
+ className: "sr-only",
707
+ checked: on,
708
+ disabled,
709
+ "aria-label": t("interactiveAnswer.select", { title: item.title }),
710
+ onChange: () => onToggle(item.id)
711
+ }
712
+ ),
713
+ /* @__PURE__ */ jsx2(SelectMark, { on, single })
714
+ ] }) }) : null,
715
+ /* @__PURE__ */ jsxs2(
716
+ "th",
717
+ {
718
+ scope: "row",
719
+ className: "border-b border-og-border px-2.5 py-2 text-left align-top font-normal first:pl-0",
720
+ children: [
721
+ /* @__PURE__ */ jsxs2("div", { className: "flex min-w-[9rem] flex-wrap items-center gap-x-1.5", children: [
722
+ /* @__PURE__ */ jsx2("span", { className: "font-medium text-og-fg", children: item.title }),
723
+ item.badge ? /* @__PURE__ */ jsx2("span", { className: "rounded-full bg-og-fg/[0.07] px-1.5 text-[10.5px] leading-4 font-medium text-og-fg", children: item.badge }) : null
724
+ ] }),
725
+ item.subtitle ? /* @__PURE__ */ jsx2("div", { className: "text-og-xs text-og-fg-muted", children: item.subtitle }) : null
726
+ ]
727
+ }
728
+ ),
729
+ spec.fields.map((field) => {
730
+ const value = item.values[field.key];
731
+ const isBest = best.get(field.key)?.has(item.id);
732
+ return /* @__PURE__ */ jsxs2(
733
+ "td",
734
+ {
735
+ className: cn(
736
+ "border-b border-og-border px-2.5 py-2 align-top text-og-fg tabular-nums",
737
+ typeof value === "number" && "text-right whitespace-nowrap",
738
+ typeof value === "number" && field.better && "pr-2",
739
+ isBest && "font-medium",
740
+ (value === void 0 || value === null) && "text-og-fg-subtle"
741
+ ),
742
+ children: [
743
+ formatInteractiveValue(
744
+ field.unit && !INLINE_UNITS.has(field.unit) ? { ...field, unit: void 0 } : field,
745
+ value,
746
+ words,
747
+ t.locale
748
+ ),
749
+ field.better && typeof value === "number" ? (
750
+ // A fixed slot keeps numbers aligned whether or not they are best.
751
+ /* @__PURE__ */ jsx2("span", { className: "inline-flex w-3.5 justify-end", children: isBest ? /* @__PURE__ */ jsx2(
752
+ "span",
753
+ {
754
+ role: "img",
755
+ "aria-label": t("interactiveAnswer.best"),
756
+ className: "inline-block size-1.5 rounded-full bg-og-status-idle"
757
+ }
758
+ ) : null })
759
+ ) : null
760
+ ]
761
+ },
762
+ field.key
763
+ );
764
+ })
765
+ ]
766
+ },
767
+ item.id
768
+ );
769
+ }) })
770
+ ] }),
771
+ best.size > 0 ? /* @__PURE__ */ jsxs2("p", { className: "m-0 mt-2 inline-flex items-center gap-1.5 text-og-xs text-og-fg-subtle", children: [
772
+ /* @__PURE__ */ jsx2(
773
+ "span",
774
+ {
775
+ "aria-hidden": "true",
776
+ className: "inline-block size-1.5 rounded-full bg-og-status-idle"
777
+ }
778
+ ),
779
+ t("interactiveAnswer.bestInColumn")
780
+ ] }) : null
781
+ ] });
782
+ }
783
+ function BarChart({
784
+ field,
785
+ items,
786
+ selected,
787
+ hovered,
788
+ onHover,
789
+ onToggle,
790
+ atMax,
791
+ best,
792
+ words
793
+ }) {
794
+ const t = useOpenGeniText();
795
+ const values = items.map((item) => item.values[field.key]).filter((value) => typeof value === "number");
796
+ const top = Math.max(0, ...values);
797
+ const bottom = Math.min(0, ...values);
798
+ const span = top - bottom || 1;
799
+ const rows = items.filter((item) => typeof item.values[field.key] === "number");
800
+ if (rows.length === 0) return null;
801
+ return /* @__PURE__ */ jsxs2(
802
+ "figure",
803
+ {
804
+ className: "m-0 flex min-w-0 flex-col gap-1.5",
805
+ "aria-label": t("interactiveAnswer.chartLabel", { label: field.label }),
806
+ children: [
807
+ /* @__PURE__ */ jsxs2("figcaption", { className: "text-og-xs text-og-fg-subtle", children: [
808
+ field.label,
809
+ field.unit ? ` (${field.unit})` : ""
810
+ ] }),
811
+ /* @__PURE__ */ jsx2("ul", { className: "m-0 grid list-none grid-cols-[minmax(0,1fr)_auto] gap-y-0.5 p-0 @md/answer:grid-cols-[minmax(5.5rem,34%)_minmax(0,1fr)_auto]", children: rows.map((item) => {
812
+ const value = item.values[field.key];
813
+ const on = selected.includes(item.id);
814
+ const lit = on || hovered === item.id;
815
+ const width = `${Math.max(1.5, Math.abs(value) / span * 100)}%`;
816
+ const disabled = !on && atMax;
817
+ const body = /* @__PURE__ */ jsxs2(Fragment, { children: [
818
+ /* @__PURE__ */ jsx2("span", { className: "col-start-1 row-start-1 min-w-0 truncate text-left text-og-xs leading-5 text-og-fg @md/answer:leading-6", children: item.title }),
819
+ /* @__PURE__ */ jsx2("span", { className: "col-span-2 col-start-1 row-start-2 flex h-4 min-w-0 items-center @md/answer:col-span-1 @md/answer:col-start-2 @md/answer:row-start-1 @md/answer:h-6", children: /* @__PURE__ */ jsx2(
820
+ "span",
821
+ {
822
+ className: cn(
823
+ "h-2.5 rounded-r-[4px] rounded-l-[2px] transition-[width,background-color] duration-300 ease-out motion-reduce:transition-none @md/answer:h-3.5",
824
+ on ? "bg-og-fg/85" : lit ? "bg-og-fg/40" : "bg-og-fg/[0.16]"
825
+ ),
826
+ style: { width }
827
+ }
828
+ ) }),
829
+ /* @__PURE__ */ jsxs2("span", { className: "col-start-2 row-start-1 text-right text-og-xs leading-5 whitespace-nowrap text-og-fg-muted tabular-nums @md/answer:col-start-3 @md/answer:text-left @md/answer:leading-6", children: [
830
+ formatInteractiveValue(field, value, words, t.locale),
831
+ best.get(field.key)?.has(item.id) ? /* @__PURE__ */ jsx2("span", { className: "ml-1.5 inline-flex align-[-2px]", children: /* @__PURE__ */ jsx2(BestMark, {}) }) : null
832
+ ] })
833
+ ] });
834
+ const rowClass = "col-span-full grid min-w-0 grid-cols-subgrid items-center gap-x-3 rounded-og-sm px-1 py-1 -mx-1 @md/answer:py-0";
835
+ return /* @__PURE__ */ jsx2(
836
+ "li",
837
+ {
838
+ "data-option-id": item.id,
839
+ className: "col-span-full grid grid-cols-subgrid",
840
+ onPointerEnter: () => onHover(item.id),
841
+ onPointerLeave: () => onHover(null),
842
+ children: onToggle ? /* @__PURE__ */ jsx2(
843
+ "button",
844
+ {
845
+ type: "button",
846
+ "aria-pressed": on,
847
+ disabled,
848
+ "aria-label": t("interactiveAnswer.select", { title: item.title }),
849
+ onClick: () => onToggle(item.id),
850
+ className: cn(
851
+ rowClass,
852
+ "cursor-pointer focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/45 disabled:cursor-not-allowed disabled:opacity-60"
853
+ ),
854
+ children: body
855
+ }
856
+ ) : /* @__PURE__ */ jsx2("div", { className: rowClass, children: body })
857
+ },
858
+ item.id
859
+ );
860
+ }) })
861
+ ]
862
+ }
863
+ );
864
+ }
865
+ function PickBar({
866
+ spec,
867
+ max,
868
+ selected,
869
+ sent,
870
+ sending,
871
+ failed,
872
+ action,
873
+ onClear,
874
+ onSend
875
+ }) {
876
+ const t = useOpenGeniText();
877
+ const names = spec.items.filter((item) => selected.includes(item.id)).map((item) => item.title);
878
+ const status = failed ? t("interactiveAnswer.sendFailed") : sent ? t("interactiveAnswer.sent") : selected.length === 0 ? max === 1 ? t("interactiveAnswer.pickOne") : max < spec.items.length ? t("interactiveAnswer.pickUpTo", { count: max }) : t("interactiveAnswer.pickAny") : max > 1 && selected.length >= max && max < spec.items.length ? t("interactiveAnswer.selectedMax", { count: selected.length }) : t("interactiveAnswer.selectedCount", { count: selected.length });
879
+ return /* @__PURE__ */ jsx2("div", { className: "@container/decision min-w-0 border-t border-og-border pt-3", children: /* @__PURE__ */ jsxs2("div", { className: "flex min-w-0 flex-col gap-2.5 @md/decision:flex-row @md/decision:items-center", children: [
880
+ /* @__PURE__ */ jsxs2("div", { className: "flex min-w-0 flex-1 flex-col", children: [
881
+ /* @__PURE__ */ jsxs2(
882
+ "p",
883
+ {
884
+ role: "status",
885
+ "aria-live": "polite",
886
+ className: cn(
887
+ "m-0 flex items-center gap-1.5 text-og-sm",
888
+ failed ? "text-og-status-failed" : "text-og-fg-muted"
889
+ ),
890
+ children: [
891
+ sent && !failed ? /* @__PURE__ */ jsx2(CheckIcon2, { "aria-hidden": "true", className: "size-3.5 text-og-status-running" }) : null,
892
+ /* @__PURE__ */ jsx2("span", { children: status }),
893
+ selected.length > 0 && !sent ? /* @__PURE__ */ jsx2(
894
+ "button",
895
+ {
896
+ type: "button",
897
+ onClick: onClear,
898
+ className: "cursor-pointer rounded-og-sm text-og-fg-subtle underline decoration-transparent underline-offset-2 hover:text-og-fg hover:decoration-current focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/45",
899
+ children: t("interactiveAnswer.clear")
900
+ }
901
+ ) : null
902
+ ]
903
+ }
904
+ ),
905
+ names.length > 0 ? /* @__PURE__ */ jsx2("p", { className: "m-0 truncate text-og-xs text-og-fg-subtle", children: names.join(", ") }) : null
906
+ ] }),
907
+ /* @__PURE__ */ jsx2(
908
+ DecisionButton,
909
+ {
910
+ kind: sent ? "secondary" : "primary",
911
+ busy: sending,
912
+ disabled: selected.length === 0 || sent || sending,
913
+ onClick: onSend,
914
+ children: action
915
+ }
916
+ )
917
+ ] }) });
918
+ }
919
+ function AnswerStatus({ streaming, title }) {
920
+ const t = useOpenGeniText();
921
+ return /* @__PURE__ */ jsxs2("div", { role: "status", "aria-live": "polite", className: "my-3 flex flex-col gap-2 first:mt-0", children: [
922
+ title ? /* @__PURE__ */ jsx2("h3", { className: "m-0 text-og-md leading-6 font-medium text-og-fg", children: title }) : null,
923
+ /* @__PURE__ */ jsxs2("p", { className: "m-0 inline-flex items-center gap-2 text-og-sm text-og-fg-muted", children: [
924
+ streaming ? /* @__PURE__ */ jsx2(
925
+ LoaderCircleIcon,
926
+ {
927
+ "aria-hidden": "true",
928
+ className: "size-3.5 animate-spin motion-reduce:animate-none"
929
+ }
930
+ ) : null,
931
+ t("interactiveAnswer.writing")
932
+ ] })
933
+ ] });
934
+ }
935
+ function InvalidAnswer({ renderSource }) {
936
+ const t = useOpenGeniText();
937
+ const [open, setOpen] = useState2(false);
938
+ return /* @__PURE__ */ jsxs2("div", { className: "my-3 flex flex-col gap-2 first:mt-0", children: [
939
+ /* @__PURE__ */ jsxs2("p", { className: "m-0 flex flex-wrap items-center gap-x-2 text-og-sm text-og-fg-muted", children: [
940
+ t("interactiveAnswer.invalid"),
941
+ /* @__PURE__ */ jsx2(
942
+ "button",
943
+ {
944
+ type: "button",
945
+ "aria-expanded": open,
946
+ onClick: () => setOpen((value) => !value),
947
+ className: "cursor-pointer rounded-og-sm text-og-fg underline decoration-og-border-strong underline-offset-2 hover:decoration-og-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/45",
948
+ children: open ? t("interactiveAnswer.hideSource") : t("interactiveAnswer.showSource")
949
+ }
950
+ )
951
+ ] }),
952
+ open ? renderSource() : null
953
+ ] });
954
+ }
955
+
956
+ // src/components/lazy-part.tsx
957
+ import { Component, Suspense } from "react";
958
+ import { jsx as jsx3 } from "react/jsx-runtime";
959
+ function LazyPart({
960
+ children,
961
+ fallback = null,
962
+ onLoadFailure = "notice",
963
+ failed
964
+ }) {
965
+ return /* @__PURE__ */ jsx3(
966
+ LazyPartBoundary,
967
+ {
968
+ failed: failed ?? (onLoadFailure === "notice" ? /* @__PURE__ */ jsx3(LoadFailureNotice, {}) : null),
969
+ children: /* @__PURE__ */ jsx3(Suspense, { fallback, children })
970
+ }
971
+ );
972
+ }
973
+ var LazyPartBoundary = class extends Component {
974
+ state = { error: null };
975
+ static getDerivedStateFromError(error) {
976
+ return { error: { value: error } };
977
+ }
978
+ render() {
979
+ const { error } = this.state;
980
+ if (!error) return this.props.children;
981
+ if (!isChunkLoadError(error.value)) throw error.value;
982
+ return this.props.failed;
983
+ }
984
+ };
985
+
986
+ // src/components/markdown.tsx
987
+ import {
988
+ Children,
989
+ createContext,
990
+ useContext,
991
+ isValidElement,
992
+ memo as memo2,
993
+ useEffect as useEffect3,
994
+ useMemo as useMemo2,
995
+ useReducer,
996
+ useRef as useRef2,
997
+ useState as useState4
998
+ } from "react";
999
+ import ReactMarkdown, {
1000
+ defaultUrlTransform
1001
+ } from "react-markdown";
1002
+ import remarkGfm from "remark-gfm";
1003
+ import { PanelsTopLeftIcon } from "lucide-react";
1004
+
1005
+ // src/lib/motion-inspect.ts
1006
+ var MOTION_INSPECT_SCALE = 1;
1007
+
1008
+ // src/components/remark-soft-line-breaks.ts
1009
+ var LINE_ENDING = /\r\n|\r|\n/g;
1010
+ var HAS_LINE_ENDING = /[\r\n]/;
1011
+ var LINE_PREFIX = /[\t >]*/y;
1012
+ function remarkSoftLineBreaks() {
1013
+ return (tree, file) => {
1014
+ walk(tree, typeof file?.value === "string" ? file.value : void 0);
1015
+ };
1016
+ }
1017
+ function walk(node, source) {
1018
+ if (!node.children) {
1019
+ return;
1020
+ }
1021
+ let next = null;
1022
+ for (let index = 0; index < node.children.length; index += 1) {
1023
+ const child = node.children[index];
1024
+ if (child.type === "text" && typeof child.value === "string" && HAS_LINE_ENDING.test(child.value)) {
1025
+ next ??= node.children.slice(0, index);
1026
+ next.push(...splitText(child, child.value, source));
1027
+ continue;
1028
+ }
1029
+ walk(child, source);
1030
+ next?.push(child);
1031
+ }
1032
+ if (next !== null) {
1033
+ node.children = next;
1034
+ }
1035
+ }
1036
+ function splitText(node, value, source) {
1037
+ const segments = [];
1038
+ let cursor = 0;
1039
+ for (const match of value.matchAll(LINE_ENDING)) {
1040
+ segments.push({ value: value.slice(cursor, match.index), index: cursor });
1041
+ cursor = match.index + match[0].length;
1042
+ }
1043
+ segments.push({ value: value.slice(cursor), index: cursor });
1044
+ const starts = segmentStarts(node, segments, source);
1045
+ const nodeEnd = exactPoint(node.position?.end);
1046
+ const out = [];
1047
+ segments.forEach((segment, k) => {
1048
+ const start = starts?.[k];
1049
+ const isLast = k === segments.length - 1;
1050
+ const end = start === void 0 ? void 0 : isLast && nodeEnd !== void 0 ? nodeEnd : {
1051
+ line: start.line,
1052
+ column: start.column + segment.value.length,
1053
+ offset: start.offset + segment.value.length
1054
+ };
1055
+ if (segment.value.length > 0) {
1056
+ out.push({
1057
+ type: "text",
1058
+ value: segment.value,
1059
+ ...start !== void 0 && end !== void 0 ? { position: { start, end } } : {}
1060
+ });
1061
+ }
1062
+ if (!isLast) {
1063
+ const nextStart = starts?.[k + 1];
1064
+ out.push({
1065
+ type: "break",
1066
+ ...end !== void 0 && nextStart !== void 0 ? { position: { start: end, end: nextStart } } : {}
1067
+ });
1068
+ }
1069
+ });
1070
+ return out;
1071
+ }
1072
+ function segmentStarts(node, segments, source) {
1073
+ const start = exactPoint(node.position?.start);
1074
+ if (start === void 0) {
1075
+ return void 0;
1076
+ }
1077
+ const endOffset = node.position?.end?.offset;
1078
+ const lineStarts = [];
1079
+ if (source !== void 0 && endOffset !== void 0 && endOffset >= start.offset) {
1080
+ for (const match of source.slice(start.offset, endOffset).matchAll(LINE_ENDING)) {
1081
+ lineStarts.push(start.offset + match.index + match[0].length);
1082
+ }
1083
+ }
1084
+ const anchoredSource = lineStarts.length === segments.length - 1 ? source : void 0;
1085
+ return segments.map((segment, k) => {
1086
+ if (k === 0) {
1087
+ return start;
1088
+ }
1089
+ if (anchoredSource !== void 0) {
1090
+ const lineStart = lineStarts[k - 1];
1091
+ LINE_PREFIX.lastIndex = lineStart;
1092
+ const prefix = LINE_PREFIX.exec(anchoredSource)?.[0].length ?? 0;
1093
+ return { line: start.line + k, column: prefix + 1, offset: lineStart + prefix };
1094
+ }
1095
+ return { line: start.line + k, column: 1, offset: start.offset + segment.index };
1096
+ });
1097
+ }
1098
+ function exactPoint(point) {
1099
+ if (point === void 0 || typeof point.line !== "number" || typeof point.column !== "number" || typeof point.offset !== "number") {
1100
+ return void 0;
1101
+ }
1102
+ return { line: point.line, column: point.column, offset: point.offset };
1103
+ }
1104
+
1105
+ // src/components/rehype-inline-flow.ts
1106
+ var BLOCKS = /* @__PURE__ */ new Set([
1107
+ "p",
1108
+ "h1",
1109
+ "h2",
1110
+ "h3",
1111
+ "h4",
1112
+ "h5",
1113
+ "h6",
1114
+ "ul",
1115
+ "ol",
1116
+ "li",
1117
+ "blockquote",
1118
+ "pre",
1119
+ "hr",
1120
+ "table",
1121
+ "thead",
1122
+ "tbody",
1123
+ "tr",
1124
+ "th",
1125
+ "td",
1126
+ "div",
1127
+ "section"
1128
+ ]);
1129
+ function isBlock(node) {
1130
+ return node.type === "element" && BLOCKS.has(node.tagName);
1131
+ }
1132
+ function isBlank(node) {
1133
+ return node.type === "text" && (node.value ?? "").trim() === "";
1134
+ }
1135
+ function text(value) {
1136
+ return { type: "text", value };
1137
+ }
1138
+ function rehypeInlineFlow(options = {}) {
1139
+ const separator = () => options.separator === "space" ? text(" ") : { type: "element", tagName: "br", properties: {}, children: [] };
1140
+ function runs(children, listKind, start = 1) {
1141
+ const hasBlock = children.some(isBlock);
1142
+ const result = [];
1143
+ let inline = [];
1144
+ let item = start;
1145
+ const flushInline = () => {
1146
+ if (inline.some((node) => !isBlank(node))) result.push(inline);
1147
+ inline = [];
1148
+ };
1149
+ for (const child of children) {
1150
+ if (!isBlock(child)) {
1151
+ if (!(hasBlock && isBlank(child))) inline.push(child);
1152
+ continue;
1153
+ }
1154
+ flushInline();
1155
+ const nested = child.tagName === "ul" || child.tagName === "ol" ? runs(
1156
+ child.children,
1157
+ child.tagName,
1158
+ child.tagName === "ol" && typeof child.properties?.start === "number" ? child.properties.start : 1
1159
+ ) : runs(child.children);
1160
+ if (child.tagName === "li" && listKind) {
1161
+ const marker = listKind === "ol" ? `${item}. ` : "\u2022 ";
1162
+ item += 1;
1163
+ if (nested.length > 0) nested[0] = [text(marker), ...nested[0]];
1164
+ }
1165
+ result.push(...nested);
1166
+ }
1167
+ flushInline();
1168
+ return result;
1169
+ }
1170
+ return (tree) => {
1171
+ const flowed = [];
1172
+ for (const run of runs(tree.children ?? [])) {
1173
+ if (flowed.length > 0) flowed.push(separator());
1174
+ flowed.push(...run);
1175
+ }
1176
+ tree.children = flowed;
1177
+ };
1178
+ }
1179
+
1180
+ // src/components/rehype-secret-refs.ts
1181
+ var MARKER = "{{secret";
1182
+ function rehypeSecretRefs(options) {
1183
+ const { tokenize } = options;
1184
+ return (tree) => {
1185
+ walk2(tree);
1186
+ };
1187
+ function walk2(node) {
1188
+ if (!node.children) return;
1189
+ let changed = false;
1190
+ const next = [];
1191
+ for (const child of node.children) {
1192
+ if (child.type === "text" && child.value.includes(MARKER)) {
1193
+ const split = splitText2(child);
1194
+ if (split) {
1195
+ next.push(...split);
1196
+ changed = true;
1197
+ continue;
1198
+ }
1199
+ } else if (child.type === "element") {
1200
+ const element = child;
1201
+ if (element.tagName === "code") {
1202
+ const chip = wholeReference(element);
1203
+ if (chip) {
1204
+ next.push(chip);
1205
+ changed = true;
1206
+ continue;
1207
+ }
1208
+ } else if (element.tagName !== "pre" && element.tagName !== "a") {
1209
+ walk2(element);
1210
+ }
1211
+ } else if ("children" in child) {
1212
+ walk2(child);
1213
+ }
1214
+ next.push(child);
1215
+ }
1216
+ if (changed) node.children = next;
1217
+ }
1218
+ function splitText2(node) {
1219
+ const tokens = tokenize(node.value);
1220
+ if (!tokens.some((token) => token.type === "reference")) return null;
1221
+ return tokens.map(
1222
+ (token) => token.type === "reference" ? chipPlaceholder(token.reference.raw) : { type: "text", value: token.type === "text" ? token.value : token.raw }
1223
+ );
1224
+ }
1225
+ function wholeReference(code) {
1226
+ if (code.children.length !== 1) return null;
1227
+ const only = code.children[0];
1228
+ if (only.type !== "text") return null;
1229
+ const value = only.value;
1230
+ if (!value.includes(MARKER)) return null;
1231
+ const tokens = tokenize(value.trim());
1232
+ const token = tokens.length === 1 ? tokens[0] : null;
1233
+ return token?.type === "reference" ? chipPlaceholder(token.reference.raw) : null;
1234
+ }
1235
+ }
1236
+ function chipPlaceholder(raw) {
1237
+ return {
1238
+ type: "element",
1239
+ tagName: "span",
1240
+ properties: { dataOgSecretRef: raw },
1241
+ children: [{ type: "text", value: raw }]
1242
+ };
1243
+ }
1244
+
1245
+ // src/components/soften-streaming-markdown.ts
1246
+ function softenStreamingMarkdown(source) {
1247
+ if (source.length === 0) {
1248
+ return source;
1249
+ }
1250
+ let text2 = source;
1251
+ if (countFences(text2) % 2 === 1) {
1252
+ text2 += text2.endsWith("\n") ? "```" : "\n```";
1253
+ }
1254
+ const segments = splitByFences(text2);
1255
+ for (const segment of segments) {
1256
+ if (segment.kind === "fence") {
1257
+ continue;
1258
+ }
1259
+ segment.value = closeInlineMarkers(segment.value);
1260
+ }
1261
+ let result = segments.map((segment) => segment.value).join("");
1262
+ if (text2.endsWith("\n") && !result.endsWith("\n")) {
1263
+ result += "\n";
1264
+ }
1265
+ return result;
1266
+ }
1267
+ function countFences(text2) {
1268
+ let count = 0;
1269
+ for (const line of text2.split("\n")) {
1270
+ if (/^ {0,3}```/.test(line)) {
1271
+ count += 1;
1272
+ }
1273
+ }
1274
+ return count;
1275
+ }
1276
+ function splitByFences(text2) {
1277
+ const segments = [];
1278
+ const lines = text2.split("\n");
1279
+ let buf = [];
1280
+ let inFence = false;
1281
+ const flush = (kind, mode) => {
1282
+ if (buf.length === 0) {
1283
+ return;
1284
+ }
1285
+ let value = buf.join("\n");
1286
+ if (mode === "boundary") {
1287
+ value += "\n";
1288
+ }
1289
+ segments.push({ kind, value });
1290
+ buf = [];
1291
+ };
1292
+ for (const line of lines) {
1293
+ const isFence = /^ {0,3}```/.test(line);
1294
+ if (isFence) {
1295
+ if (inFence) {
1296
+ buf.push(line);
1297
+ flush("fence", "end");
1298
+ inFence = false;
1299
+ } else {
1300
+ flush("prose", "boundary");
1301
+ buf.push(line);
1302
+ inFence = true;
1303
+ }
1304
+ continue;
1305
+ }
1306
+ buf.push(line);
1307
+ }
1308
+ flush(inFence ? "fence" : "prose", "end");
1309
+ return segments;
1310
+ }
1311
+ function closeInlineMarkers(prose) {
1312
+ let text2 = prose;
1313
+ text2 = closeDelimiter(text2, "~~");
1314
+ text2 = closeDelimiter(text2, "**");
1315
+ text2 = closeDelimiter(text2, "__");
1316
+ text2 = closeSingleBackticks(text2);
1317
+ text2 = closeSingleAsterisks(text2);
1318
+ text2 = closeUnfinishedLink(text2);
1319
+ return text2;
1320
+ }
1321
+ function closeDelimiter(text2, delimiter) {
1322
+ let count = 0;
1323
+ let i = 0;
1324
+ while (i < text2.length) {
1325
+ if (text2[i] === "\\" && i + 1 < text2.length) {
1326
+ i += 2;
1327
+ continue;
1328
+ }
1329
+ if (text2.startsWith(delimiter, i)) {
1330
+ count += 1;
1331
+ i += delimiter.length;
1332
+ continue;
1333
+ }
1334
+ i += 1;
1335
+ }
1336
+ return count % 2 === 1 ? insertBeforeTrailingNewlines(text2, delimiter) : text2;
1337
+ }
1338
+ function insertBeforeTrailingNewlines(text2, suffix) {
1339
+ let end = text2.length;
1340
+ while (end > 0 && text2[end - 1] === "\n") {
1341
+ end -= 1;
1342
+ }
1343
+ return text2.slice(0, end) + suffix + text2.slice(end);
1344
+ }
1345
+ function closeSingleBackticks(text2) {
1346
+ let count = 0;
1347
+ for (let i = 0; i < text2.length; i += 1) {
1348
+ if (text2[i] === "\\" && i + 1 < text2.length) {
1349
+ i += 1;
1350
+ continue;
1351
+ }
1352
+ if (text2[i] === "`") {
1353
+ if (text2.startsWith("```", i)) {
1354
+ i += 2;
1355
+ continue;
1356
+ }
1357
+ count += 1;
1358
+ }
1359
+ }
1360
+ return count % 2 === 1 ? insertBeforeTrailingNewlines(text2, "`") : text2;
1361
+ }
1362
+ function closeSingleAsterisks(text2) {
1363
+ let count = 0;
1364
+ for (let i = 0; i < text2.length; i += 1) {
1365
+ if (text2[i] === "\\" && i + 1 < text2.length) {
1366
+ i += 1;
1367
+ continue;
1368
+ }
1369
+ if (text2[i] === "*" && text2[i + 1] === "*") {
1370
+ i += 1;
1371
+ continue;
1372
+ }
1373
+ if (text2[i] === "*") {
1374
+ count += 1;
1375
+ }
1376
+ }
1377
+ return count % 2 === 1 ? insertBeforeTrailingNewlines(text2, "*") : text2;
1378
+ }
1379
+ function closeUnfinishedLink(text2) {
1380
+ const open = text2.lastIndexOf("](");
1381
+ if (open === -1) {
1382
+ return text2;
1383
+ }
1384
+ const after = text2.slice(open + 2);
1385
+ if (after.includes(")")) {
1386
+ return text2;
1387
+ }
1388
+ if (after.includes("[")) {
1389
+ return text2;
1390
+ }
1391
+ return insertBeforeTrailingNewlines(text2, ")");
1392
+ }
1393
+
1394
+ // src/components/stream-reveal.ts
1395
+ var INK_FADE_MS = 420 * MOTION_INSPECT_SCALE;
1396
+ var INITIAL_ANIMATED_LIMIT = 400;
1397
+ function createStreamReveal() {
1398
+ let batches = [];
1399
+ let revealedChars = -1;
1400
+ return {
1401
+ observe(text2, now) {
1402
+ if (revealedChars === -1) {
1403
+ revealedChars = text2.length > INITIAL_ANIMATED_LIMIT ? text2.length : 0;
1404
+ }
1405
+ if (text2.length <= revealedChars) {
1406
+ revealedChars = Math.max(revealedChars, text2.length);
1407
+ return;
1408
+ }
1409
+ batches.push({ start: revealedChars, end: text2.length, birth: now });
1410
+ revealedChars = text2.length;
1411
+ batches = batches.filter((batch) => batch.birth + INK_FADE_MS > now);
1412
+ },
1413
+ delayFor(offset, now) {
1414
+ const batch = findBatch(batches, offset);
1415
+ if (!batch) {
1416
+ return null;
1417
+ }
1418
+ const delay = batch.birth - now;
1419
+ return delay + INK_FADE_MS <= 0 ? null : delay;
1420
+ },
1421
+ hasActive(now) {
1422
+ const last = batches[batches.length - 1];
1423
+ return last !== void 0 && last.birth + INK_FADE_MS > now;
1424
+ }
1425
+ };
1426
+ }
1427
+ function findBatch(batches, offset) {
1428
+ let low = 0;
1429
+ let high = batches.length - 1;
1430
+ while (low <= high) {
1431
+ const mid = low + high >> 1;
1432
+ const batch = batches[mid];
1433
+ if (offset < batch.start) {
1434
+ high = mid - 1;
1435
+ } else if (offset >= batch.end) {
1436
+ low = mid + 1;
1437
+ } else {
1438
+ return batch;
1439
+ }
1440
+ }
1441
+ return null;
1442
+ }
1443
+ function rehypeStreamReveal(options) {
1444
+ const { reveal, now } = options;
1445
+ return (tree) => {
1446
+ walk2(tree, false);
1447
+ };
1448
+ function walk2(node, insideVerbatim) {
1449
+ if (!node.children) {
1450
+ return;
1451
+ }
1452
+ const verbatim = insideVerbatim || node.tagName === "code" || node.tagName === "pre";
1453
+ const next = [];
1454
+ for (const child of node.children) {
1455
+ if (child.type === "text" && !verbatim) {
1456
+ next.push(...splitTextNode(child));
1457
+ continue;
1458
+ }
1459
+ walk2(child, verbatim);
1460
+ next.push(child);
1461
+ }
1462
+ node.children = next;
1463
+ }
1464
+ function splitTextNode(node) {
1465
+ const sourceOffset = node.position?.start?.offset;
1466
+ if (sourceOffset === void 0) {
1467
+ return [node];
1468
+ }
1469
+ const value = node.value;
1470
+ const out = [];
1471
+ let plain = "";
1472
+ const flushPlain = () => {
1473
+ if (plain.length > 0) {
1474
+ out.push({ type: "text", value: plain });
1475
+ plain = "";
1476
+ }
1477
+ };
1478
+ let i = 0;
1479
+ while (i < value.length) {
1480
+ const delay = reveal.delayFor(sourceOffset + i, now);
1481
+ let j = i + 1;
1482
+ while (j < value.length) {
1483
+ const nextDelay = reveal.delayFor(sourceOffset + j, now);
1484
+ if (nextDelay !== delay) {
1485
+ break;
1486
+ }
1487
+ j += 1;
1488
+ }
1489
+ const slice = value.slice(i, j);
1490
+ if (delay === null) {
1491
+ plain += slice;
1492
+ } else {
1493
+ flushPlain();
1494
+ out.push({
1495
+ type: "element",
1496
+ tagName: "span",
1497
+ properties: {
1498
+ className: ["og-stream-ink"],
1499
+ style: `animation-delay:${Math.round(delay)}ms`
1500
+ },
1501
+ children: [{ type: "text", value: slice }]
1502
+ });
1503
+ }
1504
+ i = j;
1505
+ }
1506
+ flushPlain();
1507
+ return out.length > 0 ? out : [node];
1508
+ }
1509
+ }
1510
+
1511
+ // src/components/markdown.tsx
1512
+ import {
1513
+ parseOpenGeniLink,
1514
+ parseSandboxLink,
1515
+ parseRetainedFileReference,
1516
+ isReservedOpenGeniLink,
1517
+ openGeniLinkScheme
1518
+ } from "@opengeni/sdk";
1519
+
1520
+ // src/components/rehype-standalone-links.ts
1521
+ var STANDALONE_LINK_PROPERTY = "dataOgStandalone";
1522
+ var STANDALONE_LINK_ATTRIBUTE = "data-og-standalone";
1523
+ var CONTAINERS = /* @__PURE__ */ new Set(["p", "li"]);
1524
+ function isElement(node) {
1525
+ return node.type === "element";
1526
+ }
1527
+ function isBlank2(node) {
1528
+ return node.type === "text" && (node.value ?? "").trim() === "";
1529
+ }
1530
+ function standaloneLinkOf(container) {
1531
+ const content = (container.children ?? []).filter((child) => !isBlank2(child));
1532
+ const only = content.length === 1 ? content[0] : void 0;
1533
+ return only && isElement(only) && only.tagName === "a" ? only : null;
1534
+ }
1535
+ function rehypeStandaloneLinks() {
1536
+ return (tree) => {
1537
+ walk2(tree);
1538
+ };
1539
+ function walk2(node) {
1540
+ for (const child of node.children ?? []) {
1541
+ if (!isElement(child)) continue;
1542
+ if (CONTAINERS.has(child.tagName)) {
1543
+ const link = standaloneLinkOf(child);
1544
+ if (link) link.properties = { ...link.properties, [STANDALONE_LINK_PROPERTY]: "" };
1545
+ }
1546
+ walk2(child);
1547
+ }
1548
+ }
1549
+ }
1550
+
1551
+ // src/components/markdown-math-loader.ts
1552
+ import { useEffect as useEffect2, useState as useState3 } from "react";
1553
+ var loaded = null;
1554
+ var loading = null;
1555
+ function loadMathPlugins() {
1556
+ loading ??= import("./markdown-math-plugins-Q23LAE7Z.js").then(
1557
+ (module) => loaded = module,
1558
+ (error) => {
1559
+ loading = null;
1560
+ throw error;
1561
+ }
1562
+ );
1563
+ return loading;
1564
+ }
1565
+ function useMathPlugins(needed) {
1566
+ const [plugins, setPlugins] = useState3(loaded);
1567
+ useEffect2(() => {
1568
+ if (!needed || plugins) return;
1569
+ if (loaded) {
1570
+ setPlugins(loaded);
1571
+ return;
1572
+ }
1573
+ let active = true;
1574
+ loadMathPlugins().then(
1575
+ (module) => {
1576
+ if (active) setPlugins(module);
1577
+ },
1578
+ () => {
1579
+ }
1580
+ );
1581
+ return () => {
1582
+ active = false;
1583
+ };
1584
+ }, [needed, plugins]);
1585
+ return needed ? plugins ?? loaded : null;
1586
+ }
1587
+
1588
+ // src/components/markdown.tsx
1589
+ import { Fragment as Fragment2, jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
1590
+ var InteractiveContext = createContext({ source: "" });
1591
+ var baseComponents = {
1592
+ h1: ({ children, ...props }) => /* @__PURE__ */ jsx4(
1593
+ "h1",
1594
+ {
1595
+ className: "mt-5 mb-2.5 text-xl font-semibold tracking-tight text-og-fg first:mt-0",
1596
+ ...props,
1597
+ children
1598
+ }
1599
+ ),
1600
+ h2: ({ children, ...props }) => /* @__PURE__ */ jsx4("h2", { className: "mt-5 mb-2 text-lg font-semibold tracking-tight text-og-fg first:mt-0", ...props, children }),
1601
+ h3: ({ children, ...props }) => /* @__PURE__ */ jsx4(
1602
+ "h3",
1603
+ {
1604
+ className: "mt-4 mb-1.5 text-og-md font-semibold tracking-tight text-og-fg first:mt-0",
1605
+ ...props,
1606
+ children
1607
+ }
1608
+ ),
1609
+ h4: ({ children, ...props }) => /* @__PURE__ */ jsx4(
1610
+ "h4",
1611
+ {
1612
+ className: "mt-4 mb-1.5 text-og-sm font-semibold uppercase tracking-[0.04em] text-og-fg first:mt-0",
1613
+ ...props,
1614
+ children
1615
+ }
1616
+ ),
1617
+ p: ({ children, ...props }) => /* @__PURE__ */ jsx4("p", { className: "my-2.5 leading-7 first:mt-0 last:mb-0", ...props, children }),
1618
+ strong: ({ children, ...props }) => /* @__PURE__ */ jsx4("strong", { className: "font-semibold text-og-fg", ...props, children }),
1619
+ em: ({ children, ...props }) => /* @__PURE__ */ jsx4("em", { className: "italic", ...props, children }),
1620
+ ul: ({ children, ...props }) => /* @__PURE__ */ jsx4(
1621
+ "ul",
1622
+ {
1623
+ className: "my-2.5 ml-5 flex list-disc flex-col gap-1 marker:text-og-fg-subtle first:mt-0 last:mb-0",
1624
+ ...props,
1625
+ children
1626
+ }
1627
+ ),
1628
+ ol: ({ children, ...props }) => /* @__PURE__ */ jsx4(
1629
+ "ol",
1630
+ {
1631
+ className: "my-2.5 ml-5 flex list-decimal flex-col gap-1 marker:text-og-fg-subtle first:mt-0 last:mb-0",
1632
+ ...props,
1633
+ children
1634
+ }
1635
+ ),
1636
+ // GFM task-list items carry a leading checkbox <input>; `list-none` + a
1637
+ // negative margin pull the checkbox back to the bullet column so it aligns
1638
+ // with the text.
1639
+ li: ({ children, ...props }) => /* @__PURE__ */ jsx4(
1640
+ "li",
1641
+ {
1642
+ className: "leading-7 marker:text-og-fg-subtle [&>ul]:my-1 [&>ol]:my-1 [&:has(>input)]:list-none [&:has(>input)]:-ml-5",
1643
+ ...props,
1644
+ children
1645
+ }
1646
+ ),
1647
+ input: ({ type, ...props }) => type === "checkbox" ? /* @__PURE__ */ jsx4(
1648
+ "input",
1649
+ {
1650
+ ...props,
1651
+ type: "checkbox",
1652
+ disabled: true,
1653
+ className: "mr-2 size-3.5 translate-y-[2px] cursor-default accent-og-accent align-baseline"
1654
+ }
1655
+ ) : /* @__PURE__ */ jsx4("input", { type, ...props }),
1656
+ blockquote: ({ children, ...props }) => /* @__PURE__ */ jsx4(
1657
+ "blockquote",
1658
+ {
1659
+ className: "my-3 border-l-2 border-og-border-strong pl-3.5 text-og-fg-muted [&>p]:my-1.5 first:mt-0 last:mb-0",
1660
+ ...props,
1661
+ children
1662
+ }
1663
+ ),
1664
+ hr: (props) => /* @__PURE__ */ jsx4("hr", { className: "my-4 border-0 border-t border-og-border", ...props }),
1665
+ // Inline `code` vs fenced code blocks. react-markdown v10 no longer passes an
1666
+ // `inline` flag; a fenced block is a <code> whose parent is <pre> (styled by
1667
+ // the `pre` renderer), so a `code` reaching here is treated as inline.
1668
+ code: ({ children, className: _className, ...props }) => /* @__PURE__ */ jsx4(
1669
+ "code",
1670
+ {
1671
+ className: "rounded-og-xs bg-og-surface-2 px-1 py-0.5 font-og-mono text-og-sm text-og-fg",
1672
+ ...props,
1673
+ children
1674
+ }
1675
+ ),
1676
+ // Fenced code — quiet mono block (no card / no nested vertical scroll).
1677
+ pre: InteractiveCodeBlock,
1678
+ // Tables stay unboxed (hairline rules); hover reveals a TSV copy control.
1679
+ table: ({ children, ...props }) => /* @__PURE__ */ jsx4(MarkdownTable, { ...props, children }),
1680
+ thead: ({ children, ...props }) => /* @__PURE__ */ jsx4("thead", { ...props, children }),
1681
+ th: ({ children, ...props }) => /* @__PURE__ */ jsx4(
1682
+ "th",
1683
+ {
1684
+ className: "border-b border-og-border px-0 py-1.5 pr-4 text-left font-medium text-og-fg first:pl-0",
1685
+ ...props,
1686
+ children
1687
+ }
1688
+ ),
1689
+ td: ({ children, ...props }) => /* @__PURE__ */ jsx4(
1690
+ "td",
1691
+ {
1692
+ className: "border-b border-og-border/70 px-0 py-1.5 pr-4 align-top text-og-fg-muted",
1693
+ ...props,
1694
+ children
1695
+ }
1696
+ ),
1697
+ img: MarkdownImage
1698
+ };
1699
+ var MARKDOWN_LINK_CLASS = "break-words font-medium og-link";
1700
+ var INLINE_MARKDOWN_LINK_CLASS = "font-medium og-link [overflow-wrap:anywhere]";
1701
+ var MarkdownLinkContext = createContext({});
1702
+ var UNAVAILABLE_LABEL = (t) => ({
1703
+ file: t("markdown.thisFileNeedsAWorkspace"),
1704
+ "editable-artifact": t("markdown.thisArtifactNeedsAWorkspace"),
1705
+ site: t("markdown.thisSiteNeedsAWorkspace"),
1706
+ session: t("markdown.thisChatNeedsAWorkspace")
1707
+ });
1708
+ function linkActionTitle(t, target) {
1709
+ if (target.kind === "sandbox-file") {
1710
+ return target.line !== null ? t("markdown.openPathAtLineLine", { path: target.path, line: target.line }) : t("markdown.openPath", { path: target.path });
1711
+ }
1712
+ if (target.kind === "session") return t("markdown.openChat");
1713
+ return target.kind === "file" ? t("markdown.openFile") : target.kind === "site" ? t("markdown.openSite") : t("markdown.openArtifact");
1714
+ }
1715
+ function MarkdownSpan({
1716
+ node: _node,
1717
+ children,
1718
+ ...props
1719
+ }) {
1720
+ const raw = props["data-og-secret-ref"];
1721
+ if (typeof raw === "string") return /* @__PURE__ */ jsx4(MarkdownSecretRef, { raw, children });
1722
+ return /* @__PURE__ */ jsx4("span", { ...props, children });
1723
+ }
1724
+ function MarkdownSecretRef({ raw, children }) {
1725
+ const ui = useSecretsUi();
1726
+ const token = ui?.tokenize(raw).find((candidate) => candidate.type === "reference");
1727
+ if (!token || token.type !== "reference") return /* @__PURE__ */ jsx4(Fragment2, { children });
1728
+ return /* @__PURE__ */ jsx4(SecretRefChip, { reference: token.reference });
1729
+ }
1730
+ var markdownComponents = {
1731
+ ...baseComponents,
1732
+ span: MarkdownSpan,
1733
+ p: ({ children, node, ...props }) => {
1734
+ const containsBlock = node?.children.some(
1735
+ (child) => child.type === "element" && (child.tagName === "img" && typeof child.properties.src === "string" && retainedImageId(child.properties.src) || child.tagName === "a" && child.properties[STANDALONE_LINK_PROPERTY] !== void 0)
1736
+ );
1737
+ const Tag = containsBlock ? "div" : "p";
1738
+ return /* @__PURE__ */ jsx4(Tag, { className: "my-2.5 leading-7 first:mt-0 last:mb-0", ...props, children });
1739
+ },
1740
+ a: ({ children, href, ...linkProps }) => {
1741
+ const t = useOpenGeniText();
1742
+ const { onSandboxFile, artifactHref, resolveLink, renderLink, inline } = useContext(MarkdownLinkContext);
1743
+ const linkClass = inline ? INLINE_MARKDOWN_LINK_CLASS : MARKDOWN_LINK_CLASS;
1744
+ const inherited = useOpenGeniLinkResolver();
1745
+ const { [STANDALONE_LINK_ATTRIBUTE]: standaloneMarker, ...props } = linkProps;
1746
+ const parsed = parseOpenGeniLink(href);
1747
+ const resolved = useArtifactLinkTarget(parsed);
1748
+ if (resolved.pending) return /* @__PURE__ */ jsx4("span", { "aria-busy": "true", children });
1749
+ if (resolved.error) {
1750
+ return /* @__PURE__ */ jsx4(
1751
+ ActionMarkdownLink,
1752
+ {
1753
+ className: linkClass,
1754
+ title: t("markdown.openArtifact"),
1755
+ onOpen: resolved.retry,
1756
+ children
1757
+ }
1758
+ );
1759
+ }
1760
+ const target = resolved.target;
1761
+ if (target) {
1762
+ if (target.kind === "file" && parsed?.kind === "file" && parsed.workspaceId === null && artifactHref) {
1763
+ const destination2 = defaultUrlTransform(artifactHref(target.fileId));
1764
+ if (destination2) {
1765
+ return /* @__PURE__ */ jsx4("a", { className: linkClass, href: destination2, target: "_blank", rel: "noreferrer noopener", children });
1766
+ }
1767
+ }
1768
+ const resolution = target.kind === "sandbox-file" && onSandboxFile ? { open: () => onSandboxFile(target.path, target.line ?? void 0) } : chainLinkResolvers(resolveLink, inherited)?.(target);
1769
+ const destination = resolution?.href ? defaultUrlTransform(resolution.href) : "";
1770
+ const navigate = resolution?.href ? resolution.open : void 0;
1771
+ if (destination && navigate) {
1772
+ return /* @__PURE__ */ jsx4(
1773
+ "a",
1774
+ {
1775
+ className: MARKDOWN_LINK_CLASS,
1776
+ href: destination,
1777
+ onClick: (event) => {
1778
+ if (event.defaultPrevented || event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey)
1779
+ return;
1780
+ event.preventDefault();
1781
+ navigate();
1782
+ },
1783
+ children
1784
+ }
1785
+ );
1786
+ }
1787
+ if (destination) {
1788
+ return /* @__PURE__ */ jsx4("a", { className: linkClass, href: destination, target: "_blank", rel: "noreferrer noopener", children });
1789
+ }
1790
+ if (resolution?.open) {
1791
+ return /* @__PURE__ */ jsx4(
1792
+ ActionMarkdownLink,
1793
+ {
1794
+ className: linkClass,
1795
+ title: linkActionTitle(t, target),
1796
+ onOpen: resolution.open,
1797
+ children
1798
+ }
1799
+ );
1800
+ }
1801
+ if (target.kind === "sandbox-file") {
1802
+ return /* @__PURE__ */ jsx4(
1803
+ "span",
1804
+ {
1805
+ className: "break-words font-medium text-og-fg-subtle underline decoration-dotted underline-offset-2",
1806
+ "aria-disabled": "true",
1807
+ title: t("markdown.thisSandboxFileRequiresA"),
1808
+ children
1809
+ }
1810
+ );
1811
+ }
1812
+ if (target.kind === "session") {
1813
+ return /* @__PURE__ */ jsx4("span", { title: UNAVAILABLE_LABEL(t).session, "data-og-link-unavailable": "session", children });
1814
+ }
1815
+ return /* @__PURE__ */ jsxs3("span", { title: UNAVAILABLE_LABEL(t)[target.kind], "data-og-link-unavailable": target.kind, children: [
1816
+ children,
1817
+ " ",
1818
+ t("markdown.artifactUnavailable")
1819
+ ] });
1820
+ }
1821
+ if (!isReservedOpenGeniLink(href) && href && renderLink) {
1822
+ const drawn = renderLink({ href, children, standalone: standaloneMarker !== void 0 });
1823
+ if (drawn !== void 0) return /* @__PURE__ */ jsx4(Fragment2, { children: drawn });
1824
+ }
1825
+ const safeHref = href ? defaultUrlTransform(href) : "";
1826
+ if (isReservedOpenGeniLink(href) || !safeHref) {
1827
+ return /* @__PURE__ */ jsxs3(
1828
+ "span",
1829
+ {
1830
+ className: "break-words text-og-fg-subtle",
1831
+ "aria-disabled": "true",
1832
+ title: isSandboxHref(href) ? t("markdown.thisSandboxFileReferenceIs") : t("markdown.thisLinkIsUnavailable"),
1833
+ children: [
1834
+ children,
1835
+ " ",
1836
+ t("markdown.linkUnavailable")
1837
+ ]
1838
+ }
1839
+ );
1840
+ }
1841
+ return /* @__PURE__ */ jsx4("a", { className: linkClass, target: "_blank", rel: "noreferrer noopener", href: safeHref, ...props, children });
1842
+ }
1843
+ };
1844
+ function ActionMarkdownLink({
1845
+ className,
1846
+ title,
1847
+ onOpen,
1848
+ children
1849
+ }) {
1850
+ const t = useOpenGeniText();
1851
+ const [state, setState] = useState4("idle");
1852
+ return /* @__PURE__ */ jsxs3(
1853
+ "button",
1854
+ {
1855
+ type: "button",
1856
+ className: cn(
1857
+ className,
1858
+ "inline-flex min-h-7 cursor-pointer items-center aria-disabled:cursor-wait aria-disabled:opacity-70 pointer-coarse:min-h-11"
1859
+ ),
1860
+ "aria-disabled": state === "loading" || void 0,
1861
+ "aria-busy": state === "loading",
1862
+ title: state === "error" ? t("markdown.couldnTOpenThisFile") : title,
1863
+ onClick: () => {
1864
+ if (state === "loading") return;
1865
+ setState("loading");
1866
+ void Promise.resolve().then(onOpen).then(
1867
+ () => setState("idle"),
1868
+ () => setState("error")
1869
+ );
1870
+ },
1871
+ children: [
1872
+ children,
1873
+ state === "loading" ? " (opening\u2026)" : state === "error" ? " (retry)" : null
1874
+ ]
1875
+ }
1876
+ );
1877
+ }
1878
+ function isSandboxHref(href) {
1879
+ return openGeniLinkScheme(href) === "sandbox";
1880
+ }
1881
+ function sandboxFileLocationFromHref(href) {
1882
+ return parseSandboxLink(href);
1883
+ }
1884
+ function sandboxFilePathFromHref(href) {
1885
+ return sandboxFileLocationFromHref(href)?.path ?? null;
1886
+ }
1887
+ function retainedImageId(src) {
1888
+ return parseRetainedFileReference(src);
1889
+ }
1890
+ function MarkdownImage({ src, alt }) {
1891
+ const t = useOpenGeniText();
1892
+ const { renderImage, suppressImages } = useContext(InteractiveContext);
1893
+ if (suppressImages)
1894
+ return /* @__PURE__ */ jsxs3("span", { "data-og-image-placeholder": "", children: [
1895
+ alt || t("markdown.image"),
1896
+ " ",
1897
+ t("markdown.previewUnavailable")
1898
+ ] });
1899
+ if (!src) return /* @__PURE__ */ jsx4("span", { children: alt ?? t("markdown.imageUnavailable") });
1900
+ if (retainedImageId(src))
1901
+ return renderImage ? /* @__PURE__ */ jsx4(LazyPart, { children: renderImage({ src, alt: alt ?? "" }) }) : /* @__PURE__ */ jsxs3("span", { children: [
1902
+ alt || t("markdown.image"),
1903
+ " ",
1904
+ t("markdown.previewUnavailable")
1905
+ ] });
1906
+ return /* @__PURE__ */ jsx4(
1907
+ "img",
1908
+ {
1909
+ src: displayImageSrc(src),
1910
+ alt: alt ?? "",
1911
+ loading: "lazy",
1912
+ className: "my-3 max-w-full rounded-og-md"
1913
+ }
1914
+ );
1915
+ }
1916
+ var markdownUrlTransform = (url, key, node) => key === "href" && node.tagName === "a" || key === "src" && node.tagName === "img" && retainedImageId(url) ? url : defaultUrlTransform(url);
1917
+ var REVEAL_LINGER_MS = 480 * MOTION_INSPECT_SCALE;
1918
+ var MARKDOWN_SETTLE_MS = 480 * MOTION_INSPECT_SCALE;
1919
+ function nodeText(node) {
1920
+ if (node == null || typeof node === "boolean") {
1921
+ return "";
1922
+ }
1923
+ if (typeof node === "string" || typeof node === "number") {
1924
+ return String(node);
1925
+ }
1926
+ if (Array.isArray(node)) {
1927
+ return node.map(nodeText).join("");
1928
+ }
1929
+ if (isValidElement(node)) {
1930
+ return nodeText(node.props.children);
1931
+ }
1932
+ return "";
1933
+ }
1934
+ function fenceLanguage(children) {
1935
+ let found = null;
1936
+ Children.forEach(children, (child) => {
1937
+ if (found || !isValidElement(child)) {
1938
+ return;
1939
+ }
1940
+ const match = /language-([a-zA-Z0-9_+-]+)/.exec(child.props.className ?? "");
1941
+ if (match?.[1]) {
1942
+ found = match[1];
1943
+ }
1944
+ });
1945
+ return found;
1946
+ }
1947
+ function fenceIsClosed(node, source) {
1948
+ const start = node?.position?.start.offset;
1949
+ const end = node?.position?.end.offset;
1950
+ const original = start !== void 0 && end !== void 0 && end <= source.length ? source.slice(start, end) : "";
1951
+ const lines = original.trimEnd().split("\n");
1952
+ const opening = lines[0]?.match(/^ {0,3}([\x60]{3,}|~{3,})/);
1953
+ const closing = lines.at(-1)?.replace(/^\s*(?:>\s*)+/, "").trim();
1954
+ return Boolean(
1955
+ opening && lines.length > 1 && closing && closing.length >= opening[1].length && [...closing].every((c) => c === opening[1][0])
1956
+ );
1957
+ }
1958
+ function InteractiveCodeBlock({ children, node }) {
1959
+ const t = useOpenGeniText();
1960
+ const { source, render, streaming } = useContext(InteractiveContext);
1961
+ const language = fenceLanguage(children);
1962
+ if (language === INTERACTIVE_ANSWER_FENCE) {
1963
+ const body = nodeText(children).replace(/\n$/, "");
1964
+ const tail = source.includes(INTERACTIVE_ANSWER_FENCE) ? trailingOpenFence(source) : null;
1965
+ const open = tail !== null && tail.trimEnd() === body.trimEnd();
1966
+ const state = !open ? "complete" : streaming ? "streaming" : "incomplete";
1967
+ return /* @__PURE__ */ jsx4(
1968
+ InteractiveAnswer,
1969
+ {
1970
+ source: body,
1971
+ state,
1972
+ renderSource: () => /* @__PURE__ */ jsx4(MarkdownCodeBlock, { children })
1973
+ }
1974
+ );
1975
+ }
1976
+ if (render && (language === "opengeni-html" || language === "opengeni-site")) {
1977
+ if (!fenceIsClosed(node, source)) {
1978
+ return /* @__PURE__ */ jsx4("div", { role: "status", "aria-live": "polite", "aria-busy": streaming === true, className: "my-3", children: streaming ? /* @__PURE__ */ jsx4(PreviewLoading, {}) : /* @__PURE__ */ jsx4(
1979
+ ActivityDisclosure,
1980
+ {
1981
+ icon: /* @__PURE__ */ jsx4(PanelsTopLeftIcon, { "aria-hidden": true, className: "size-3.5" }),
1982
+ title: t("markdown.previewIncomplete"),
1983
+ running: false,
1984
+ expandable: false,
1985
+ preview: t("markdown.generationStoppedBeforeThePreview")
1986
+ }
1987
+ ) });
1988
+ }
1989
+ return /* @__PURE__ */ jsx4(LazyPart, { children: render({
1990
+ kind: language === "opengeni-html" ? "html" : "site",
1991
+ content: nodeText(children).replace(/\n$/, "")
1992
+ }) });
1993
+ }
1994
+ return /* @__PURE__ */ jsx4(MarkdownCodeBlock, { children });
1995
+ }
1996
+ function MarkdownCodeBlock({ children }) {
1997
+ const t = useOpenGeniText();
1998
+ const code = nodeText(children).replace(/\n$/, "");
1999
+ const language = fenceLanguage(children);
2000
+ return /* @__PURE__ */ jsxs3("div", { className: "group/copy relative mt-3 first:mt-0 pointer-coarse:flex pointer-coarse:items-start pointer-coarse:rounded-og-md pointer-coarse:bg-og-surface-1/70", children: [
2001
+ /* @__PURE__ */ jsxs3("div", { className: "pointer-events-none absolute top-1.5 right-1.5 z-10 flex items-center gap-1 pointer-coarse:static pointer-coarse:order-last pointer-coarse:shrink-0 pointer-coarse:py-0 pointer-coarse:pr-0.5", children: [
2002
+ language ? /* @__PURE__ */ jsx4("span", { className: "rounded px-1 py-0.5 font-og-mono text-[10px] uppercase tracking-wide text-og-fg-subtle/80 opacity-0 transition-opacity group-hover/copy:opacity-100 pointer-coarse:opacity-70", children: language }) : null,
2003
+ /* @__PURE__ */ jsx4("div", { className: "pointer-events-auto", children: /* @__PURE__ */ jsx4(CopyButton, { text: code, label: t("markdown.copyCode"), reveal: "group-hover" }) })
2004
+ ] }),
2005
+ /* @__PURE__ */ jsx4(
2006
+ "pre",
2007
+ {
2008
+ tabIndex: 0,
2009
+ className: "overflow-x-auto overflow-y-hidden rounded-og-md bg-og-surface-1/70 px-3 py-2.5 font-og-mono text-og-sm leading-5 text-og-fg-muted [scrollbar-gutter:stable] pointer-coarse:min-w-0 pointer-coarse:flex-1 pointer-coarse:bg-transparent [&>code]:block [&>code]:border-0 [&>code]:bg-transparent [&>code]:p-0 [&>code]:leading-5 [&>code]:text-inherit",
2010
+ children
2011
+ }
2012
+ )
2013
+ ] });
2014
+ }
2015
+ function MarkdownTable({ children, className, ...props }) {
2016
+ const t = useOpenGeniText();
2017
+ const wrapperRef = useRef2(null);
2018
+ const tableRef = useRef2(null);
2019
+ const layoutRef = useRef2(void 0);
2020
+ useEffect3(() => {
2021
+ const wrapper = wrapperRef.current;
2022
+ const table = tableRef.current;
2023
+ if (!wrapper?.closest("[data-og-wide-table-message]") || !table) return;
2024
+ let disposed = false;
2025
+ void import("./markdown-table-layout-3PV2UAAH.js").then(({ observeMarkdownTableLayout }) => {
2026
+ if (!disposed) layoutRef.current = observeMarkdownTableLayout(wrapper, table);
2027
+ }).catch(() => {
2028
+ });
2029
+ return () => {
2030
+ disposed = true;
2031
+ layoutRef.current?.disconnect();
2032
+ layoutRef.current = void 0;
2033
+ };
2034
+ }, []);
2035
+ useEffect3(() => {
2036
+ layoutRef.current?.measure();
2037
+ }, [children]);
2038
+ return (
2039
+ // Touch shows the copy action permanently at full touch size, so it sits
2040
+ // under the table there instead of covering the right-aligned header.
2041
+ /* @__PURE__ */ jsxs3(
2042
+ "div",
2043
+ {
2044
+ ref: wrapperRef,
2045
+ "data-og-table": "",
2046
+ className: "group/copy relative mt-3 max-w-full first:mt-0 pointer-coarse:pb-11",
2047
+ children: [
2048
+ /* @__PURE__ */ jsx4("div", { className: "pointer-events-none absolute top-0 right-0 z-10 pointer-coarse:top-auto pointer-coarse:bottom-0", children: /* @__PURE__ */ jsx4("div", { className: "pointer-events-auto", children: /* @__PURE__ */ jsx4(
2049
+ CopyButton,
2050
+ {
2051
+ text: () => tableElementToTsv(tableRef.current),
2052
+ label: t("markdown.copyTable"),
2053
+ reveal: "group-hover"
2054
+ }
2055
+ ) }) }),
2056
+ /* @__PURE__ */ jsx4("div", { className: "overflow-x-auto", tabIndex: 0, children: /* @__PURE__ */ jsx4(
2057
+ "table",
2058
+ {
2059
+ ref: tableRef,
2060
+ className: cn(
2061
+ // Leading `&` only: a trailing one (`tr:last-child>&`) under the scoped
2062
+ // selector list needs `:is()`, which bundlers warn about for older targets.
2063
+ "w-full min-w-0 border-collapse text-og-base [&_tr:last-child>td]:border-b-0",
2064
+ className
2065
+ ),
2066
+ ...props,
2067
+ children
2068
+ }
2069
+ ) })
2070
+ ]
2071
+ }
2072
+ )
2073
+ );
2074
+ }
2075
+ var REMARK_PLUGINS = [remarkGfm];
2076
+ var SOFT_LINE_BREAK_REMARK_PLUGINS = [
2077
+ remarkGfm,
2078
+ remarkSoftLineBreaks
2079
+ ];
2080
+ var MarkdownContent = memo2(function MarkdownContent2({
2081
+ text: text2,
2082
+ softLineBreaks,
2083
+ mathPlugins,
2084
+ annotateStandaloneLinks,
2085
+ tokenize,
2086
+ reveal,
2087
+ revealTime
2088
+ }) {
2089
+ const baseRemarkPlugins = softLineBreaks ? SOFT_LINE_BREAK_REMARK_PLUGINS : REMARK_PLUGINS;
2090
+ const remarkPlugins = mathPlugins ? [...baseRemarkPlugins, mathPlugins.remarkMathPlugin] : baseRemarkPlugins;
2091
+ const rehypePlugins = [
2092
+ ...annotateStandaloneLinks ? [rehypeStandaloneLinks] : [],
2093
+ ...tokenize ? [[rehypeSecretRefs, { tokenize }]] : [],
2094
+ ...reveal ? [[rehypeStreamReveal, { reveal, now: revealTime }]] : [],
2095
+ ...mathPlugins ? [mathPlugins.rehypeKatexPlugin] : []
2096
+ ];
2097
+ return /* @__PURE__ */ jsx4(
2098
+ ReactMarkdown,
2099
+ {
2100
+ remarkPlugins,
2101
+ rehypePlugins,
2102
+ components: markdownComponents,
2103
+ urlTransform: markdownUrlTransform,
2104
+ children: text2
2105
+ }
2106
+ );
2107
+ });
2108
+ function MarkdownImpl({
2109
+ children,
2110
+ artifactHref,
2111
+ className,
2112
+ softLineBreaks = false,
2113
+ streaming = false,
2114
+ onSandboxFile,
2115
+ renderInteractiveBlock,
2116
+ renderImage,
2117
+ resolveLink,
2118
+ renderLink,
2119
+ suppressImages
2120
+ }) {
2121
+ const revealRef = useRef2(null);
2122
+ const bodyRef = useRef2(null);
2123
+ const [, bump] = useReducer((n) => n + 1, 0);
2124
+ const [settling, setSettling] = useState4(false);
2125
+ const hadRevealRef = useRef2(false);
2126
+ const now = typeof performance !== "undefined" ? performance.now() : Date.now();
2127
+ const crystallize = (mutate) => {
2128
+ mutate();
2129
+ setSettling(true);
2130
+ bump();
2131
+ return setTimeout(() => setSettling(false), MARKDOWN_SETTLE_MS);
2132
+ };
2133
+ if (streaming && revealRef.current === null && !prefersReducedMotion()) {
2134
+ revealRef.current = createStreamReveal();
2135
+ }
2136
+ const reveal = revealRef.current;
2137
+ if (reveal !== null && streaming) {
2138
+ reveal.observe(children, now);
2139
+ }
2140
+ if (reveal !== null) {
2141
+ hadRevealRef.current = true;
2142
+ }
2143
+ const revealActive = reveal !== null && (streaming || reveal.hasActive(now));
2144
+ const secretsUi = useSecretsUi();
2145
+ const inheritedRenderer = useOpenGeniLinkRenderer();
2146
+ const linkRenderer = useMemo2(
2147
+ () => chainLinkRenderers(renderLink, inheritedRenderer) ?? void 0,
2148
+ [renderLink, inheritedRenderer]
2149
+ );
2150
+ const tokenize = secretsUi && mayContainSecretReference(children) ? secretsUi.tokenize : void 0;
2151
+ useEffect3(() => {
2152
+ if (streaming || revealRef.current === null) {
2153
+ return;
2154
+ }
2155
+ let clearSettle;
2156
+ const timer = setTimeout(() => {
2157
+ const shouldSettle = hadRevealRef.current && !prefersReducedMotion();
2158
+ if (shouldSettle) {
2159
+ hadRevealRef.current = false;
2160
+ }
2161
+ if (shouldSettle) {
2162
+ clearSettle = crystallize(() => {
2163
+ revealRef.current = null;
2164
+ });
2165
+ } else {
2166
+ revealRef.current = null;
2167
+ bump();
2168
+ }
2169
+ }, REVEAL_LINGER_MS);
2170
+ return () => {
2171
+ clearTimeout(timer);
2172
+ if (clearSettle !== void 0) {
2173
+ clearTimeout(clearSettle);
2174
+ }
2175
+ };
2176
+ }, [streaming]);
2177
+ const wasStreamingRef = useRef2(streaming);
2178
+ useEffect3(() => {
2179
+ const ended = wasStreamingRef.current && !streaming;
2180
+ wasStreamingRef.current = streaming;
2181
+ if (!ended || revealRef.current !== null || prefersReducedMotion()) {
2182
+ return;
2183
+ }
2184
+ setSettling(true);
2185
+ const timer = setTimeout(() => setSettling(false), MARKDOWN_SETTLE_MS);
2186
+ return () => clearTimeout(timer);
2187
+ }, [streaming]);
2188
+ const parseText = streaming || revealActive ? softenStreamingMarkdown(children) : children;
2189
+ const math = useMemo2(() => prepareMathMarkdown(parseText), [parseText]);
2190
+ const mathPlugins = useMathPlugins(math.hasMath);
2191
+ const linkContext = useMemo2(
2192
+ () => ({ onSandboxFile, artifactHref, resolveLink, renderLink: linkRenderer }),
2193
+ [onSandboxFile, artifactHref, resolveLink, linkRenderer]
2194
+ );
2195
+ const interactiveContext = useMemo2(
2196
+ () => ({
2197
+ source: children,
2198
+ streaming,
2199
+ ...renderInteractiveBlock ? { render: renderInteractiveBlock } : {},
2200
+ ...renderImage ? { renderImage } : {},
2201
+ ...suppressImages ? { suppressImages } : {}
2202
+ }),
2203
+ [children, streaming, renderInteractiveBlock, renderImage, suppressImages]
2204
+ );
2205
+ return /* @__PURE__ */ jsx4(MarkdownLinkContext.Provider, { value: linkContext, children: /* @__PURE__ */ jsx4(InteractiveContext.Provider, { value: interactiveContext, children: /* @__PURE__ */ jsx4(TooltipProvider, { delayDuration: 400, children: /* @__PURE__ */ jsx4(
2206
+ "div",
2207
+ {
2208
+ ref: bodyRef,
2209
+ className: cn(
2210
+ "og-markdown-body min-w-0 break-words",
2211
+ settling && "og-markdown-settle",
2212
+ className
2213
+ ),
2214
+ children: /* @__PURE__ */ jsx4(
2215
+ MarkdownContent,
2216
+ {
2217
+ text: mathPlugins ? math.text : parseText,
2218
+ softLineBreaks,
2219
+ mathPlugins,
2220
+ annotateStandaloneLinks: linkRenderer !== void 0,
2221
+ tokenize,
2222
+ reveal: revealActive ? reveal : null,
2223
+ revealTime: revealActive ? now : 0
2224
+ }
2225
+ )
2226
+ }
2227
+ ) }) }) });
2228
+ }
2229
+ var INLINE_MARKDOWN_ELEMENTS = ["a", "br", "code", "del", "em", "span", "strong"];
2230
+ var inlineMarkdownComponents = {
2231
+ a: markdownComponents.a,
2232
+ // Code follows the surrounding text size (help text and options are smaller).
2233
+ code: ({ children, className: _className, node: _node, ...props }) => /* @__PURE__ */ jsx4(
2234
+ "code",
2235
+ {
2236
+ className: "rounded-og-xs bg-og-surface-2 px-1 py-0.5 font-og-mono text-[0.9em] text-og-fg",
2237
+ ...props,
2238
+ children
2239
+ }
2240
+ ),
2241
+ em: baseComponents.em,
2242
+ span: MarkdownSpan,
2243
+ strong: baseComponents.strong
2244
+ };
2245
+ var INLINE_FLOW_BREAK = [[rehypeInlineFlow, { separator: "break" }]];
2246
+ var INLINE_FLOW_SPACE = [[rehypeInlineFlow, { separator: "space" }]];
2247
+ var InlineMarkdown = memo2(function InlineMarkdown2({
2248
+ children,
2249
+ singleLine = false
2250
+ }) {
2251
+ const secretsUi = useSecretsUi();
2252
+ const renderLink = useOpenGeniLinkRenderer() ?? void 0;
2253
+ const linkContext = useMemo2(() => ({ renderLink, inline: true }), [renderLink]);
2254
+ const rehypePlugins = [
2255
+ ...singleLine ? INLINE_FLOW_SPACE : INLINE_FLOW_BREAK,
2256
+ ...secretsUi && mayContainSecretReference(children) ? [[rehypeSecretRefs, { tokenize: secretsUi.tokenize }]] : []
2257
+ ];
2258
+ return /* @__PURE__ */ jsx4(MarkdownLinkContext.Provider, { value: linkContext, children: /* @__PURE__ */ jsx4(
2259
+ ReactMarkdown,
2260
+ {
2261
+ remarkPlugins: singleLine ? REMARK_PLUGINS : SOFT_LINE_BREAK_REMARK_PLUGINS,
2262
+ rehypePlugins,
2263
+ components: inlineMarkdownComponents,
2264
+ urlTransform: markdownUrlTransform,
2265
+ allowedElements: INLINE_MARKDOWN_ELEMENTS,
2266
+ unwrapDisallowed: true,
2267
+ children
2268
+ }
2269
+ ) });
2270
+ });
2271
+ var Markdown = memo2(function SearchableMarkdown(props) {
2272
+ const t = useOpenGeniText();
2273
+ const [retained, setRetained] = useState4(
2274
+ null
2275
+ );
2276
+ if (props.searchTarget && (retained?.target !== props.searchTarget || retained.text !== props.children)) {
2277
+ setRetained({ text: props.children, target: props.searchTarget });
2278
+ }
2279
+ const target = props.searchTarget ?? (retained?.text === props.children ? retained.target : null);
2280
+ if (!target) return /* @__PURE__ */ jsx4(MarkdownImpl, { ...props });
2281
+ const offset = searchMatchOffset(props.children, target);
2282
+ if (offset < 0)
2283
+ return props.searchTarget ? /* @__PURE__ */ jsx4("div", { role: "status", children: t("markdown.thisMatchIsNoLonger") }) : /* @__PURE__ */ jsx4(MarkdownImpl, { ...props });
2284
+ let start = Math.max(0, offset - 240);
2285
+ let end = Math.min(props.children.length, offset + target.query.length + 240);
2286
+ if (start > 0 && /[\uDC00-\uDFFF]/.test(props.children[start])) start--;
2287
+ if (end < props.children.length && /[\uDC00-\uDFFF]/.test(props.children[end])) end++;
2288
+ const MatchTag = props.searchTarget ? "mark" : "span";
2289
+ return /* @__PURE__ */ jsxs3("div", { className: cn("og-markdown-body min-w-0 break-words", props.className), children: [
2290
+ /* @__PURE__ */ jsxs3("div", { "data-og-annotation-chrome": "", className: "text-xs opacity-70", children: [
2291
+ t("markdown.matchInMessageSourceExcerpt"),
2292
+ /* @__PURE__ */ jsx4(
2293
+ "button",
2294
+ {
2295
+ type: "button",
2296
+ disabled: !!props.searchTarget,
2297
+ title: props.searchTarget ? t("markdown.closeFindToShowThe") : void 0,
2298
+ className: "ml-2 inline-flex min-h-7 items-center rounded-og-sm px-1.5 text-og-xs font-medium text-og-fg-muted outline-hidden hover:text-og-fg focus-visible:ring-2 focus-visible:ring-og-accent/45 pointer-coarse:min-h-11 disabled:opacity-50",
2299
+ onClick: () => setRetained(null),
2300
+ children: t("markdown.showFormattedMessage")
2301
+ }
2302
+ )
2303
+ ] }),
2304
+ /* @__PURE__ */ jsxs3("div", { style: { whiteSpace: "pre-wrap", overflowWrap: "anywhere" }, children: [
2305
+ start > 0 ? "\u2026" : "",
2306
+ props.children.slice(start, offset),
2307
+ /* @__PURE__ */ jsx4(
2308
+ MatchTag,
2309
+ {
2310
+ "data-og-search-occurrence": target.occurrence ?? 0,
2311
+ "data-og-search-sequence": target.sequence,
2312
+ "data-og-search-query": target.query,
2313
+ "data-og-search-offset": offset,
2314
+ children: props.children.slice(offset, offset + target.query.length)
2315
+ }
2316
+ ),
2317
+ props.children.slice(offset + target.query.length, end),
2318
+ end < props.children.length ? "\u2026" : ""
2319
+ ] })
2320
+ ] });
2321
+ });
2322
+
2323
+ export {
2324
+ MOTION_INSPECT_SCALE,
2325
+ CopyButton,
2326
+ CopyHoverFrame,
2327
+ InteractiveAnswer,
2328
+ LazyPart,
2329
+ sandboxFileLocationFromHref,
2330
+ sandboxFilePathFromHref,
2331
+ retainedImageId,
2332
+ InlineMarkdown,
2333
+ Markdown
2334
+ };
2335
+ //# sourceMappingURL=chunk-WFC2JA6D.js.map