@mavea/mavea 1.0.16 → 1.0.18

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 (670) hide show
  1. package/DISCLAIMER.md +4 -1
  2. package/PRIVACY.md +14 -8
  3. package/README.md +61 -23
  4. package/TERMS.md +11 -1
  5. package/THIRD-PARTY.txt +25248 -621
  6. package/bin/mavea.mjs +156 -147
  7. package/dist/.vite/manifest.json +2166 -1715
  8. package/dist/assets/AnnotationLayer-ClU-e6qL.css +1 -0
  9. package/dist/assets/AnnotationLayer-DHHGgh8x.js +2 -0
  10. package/dist/assets/AppCommandPalette-DKBglbNo.js +1 -0
  11. package/dist/assets/AtlasView-B82UfrEX.js +1 -0
  12. package/dist/assets/BlockEmpty-B82uCse8.js +1 -0
  13. package/dist/assets/BriefingPlayer-C0D_2ILa.js +1 -0
  14. package/dist/assets/CanvasSkeleton-Bx0s36b_.js +2 -0
  15. package/dist/assets/CardEditor-DABIhGdQ.js +1 -0
  16. package/dist/assets/CheckLogRail-BOaXnqWK.css +1 -0
  17. package/dist/assets/CheckLogRail-Btg7Linv.js +1 -0
  18. package/dist/assets/{CodeOutput-Bg64AyKu.js → CodeOutput-DF892aIR.js} +3 -3
  19. package/dist/assets/CommandPalette-DagPdSGZ.js +1 -0
  20. package/dist/assets/ConversationVideoStudio-CIAMxElj.css +1 -0
  21. package/dist/assets/ConversationVideoStudio-EPw6H4lE.js +1 -0
  22. package/dist/assets/CourseLessonReader-DeAuL1tO.js +2 -0
  23. package/dist/assets/CourseRail-Dx9IIbTZ.js +1 -0
  24. package/dist/assets/CoursesApp-CzUGaYWZ.js +2 -0
  25. package/dist/assets/CrossExamPanel-CdIYUu-B.js +1 -0
  26. package/dist/assets/DashPresent-DXwesMIr.js +1 -0
  27. package/dist/assets/DashboardDetail-CJzB85NC.js +2 -0
  28. package/dist/assets/DashboardLoopRuntime-CEnUpS-I.js +1 -0
  29. package/dist/assets/DashboardOverview-C3hv9sm1.js +1 -0
  30. package/dist/assets/DashboardSettings-CmZWG3US.js +1 -0
  31. package/dist/assets/{DashboardsApp-Dx-EsaPW.css → DashboardsApp-B6yUtkKB.css} +1 -1
  32. package/dist/assets/DashboardsApp-wCgs98G0.js +2 -0
  33. package/dist/assets/{DeepZoomApp-Chz6laKc.js → DeepZoomApp-CwqKpjo7.js} +2 -2
  34. package/dist/assets/DelegatePanel-Bi1qPgGG.js +33 -0
  35. package/dist/assets/DemoGallery-Cg0ykVpG.js +1 -0
  36. package/dist/assets/DropSelect-C3g0PjuN.js +1 -0
  37. package/dist/assets/DropSelect-DilESAgA.css +1 -0
  38. package/dist/assets/ExportModal-rxndDhoO.js +2 -0
  39. package/dist/assets/ExtractionPreview-ChRAimKr.js +18 -0
  40. package/dist/assets/{FallbackCard-B489rTd9.js → FallbackCard-ap_4wOfj.js} +1 -1
  41. package/dist/assets/FeatureUseNotice-BhljPjUv.js +1 -0
  42. package/dist/assets/FlagshipCTA-uoeGMQas.js +1 -0
  43. package/dist/assets/FlagshipCommandPalette-DyNsP8k3.js +1 -0
  44. package/dist/assets/FlagshipShowcase-DHpGPlca.js +1 -0
  45. package/dist/assets/FlashcardsApp-Cm50X3Hl.js +1 -0
  46. package/dist/assets/ForecastPanel-zPUh2ClQ.js +1 -0
  47. package/dist/assets/GalleryApp-BFop9Eu7.js +1 -0
  48. package/dist/assets/{HonestByDesign-hCxc0A7b.js → HonestByDesign-HeTTCiis.js} +1 -1
  49. package/dist/assets/{HowItWorks-BlbQcUxx.js → HowItWorks-gAuUl7VQ.js} +1 -1
  50. package/dist/assets/LegalApp-jOlpLQSV.js +1 -0
  51. package/dist/assets/{LegalMarkdownDocument-Bk3U7ChN.js → LegalMarkdownDocument-RSNiyAu0.js} +2 -2
  52. package/dist/assets/LegalPageShell-CmxGCdqJ.css +1 -0
  53. package/dist/assets/LegalPageShell-Cr90l1I2.js +1 -0
  54. package/dist/assets/LeverPanel-D1SNRGdm.js +1 -0
  55. package/dist/assets/Library-DmdzY2se.js +1 -0
  56. package/dist/assets/LibraryOverlay-DEQ5GuIs.js +1 -0
  57. package/dist/assets/LiveApp-Bl7WBgqJ.css +1 -0
  58. package/dist/assets/LiveApp-CUoQgVo1.js +62 -0
  59. package/dist/assets/LiveSettings-jn26sH4v.js +6 -0
  60. package/dist/assets/MindMapViewerDrawer-CDDzzpFi.js +1 -0
  61. package/dist/assets/MindShape-BeZFay7O.js +1 -0
  62. package/dist/assets/MindShape-CaPeUo-a.css +1 -0
  63. package/dist/assets/{Orb-B0NEVfqL.js → Orb-D8lhTdmY.js} +1 -1
  64. package/dist/assets/PinToDashboard-CSqwDBLD.js +1 -0
  65. package/dist/assets/PlanReview-ChZeUHQO.js +1 -0
  66. package/dist/assets/Presence-CKSoyuhE.js +1 -0
  67. package/dist/assets/PresentationDeck-Dj9MQVZC.js +1 -0
  68. package/dist/assets/PrismApp-Dfs6eAuR.js +2 -0
  69. package/dist/assets/PrismAskController-CSsCkRC8.js +37 -0
  70. package/dist/assets/PrismBriefingPlayer-BoB_PCTT.js +2 -0
  71. package/dist/assets/PrismOverlay-CGtr7lBl.js +109 -0
  72. package/dist/assets/PrismWorkbench-f0rLNBxb.js +1 -0
  73. package/dist/assets/{PrivacyApp-CatB3OpJ.js → PrivacyApp-CFs0PM5C.js} +16 -10
  74. package/dist/assets/Recap-T9DtFaEk.js +1 -0
  75. package/dist/assets/ReelJelly-D5e-jt-8.js +1 -0
  76. package/dist/assets/ReplayCard-BkJbY0-I.js +2 -0
  77. package/dist/assets/ReplayCard-Cs6mzTRa.css +1 -0
  78. package/dist/assets/ReplayOverlay-Dm_k7FBA.js +1 -0
  79. package/dist/assets/ReplayOverlay-DzkcTnCA.css +1 -0
  80. package/dist/assets/RewindOverlay-BSDbLgcN.js +1 -0
  81. package/dist/assets/RippleApp-DW1rpKHe.js +2 -0
  82. package/dist/assets/RippleAskController-CywVzqUA.js +34 -0
  83. package/dist/assets/RippleOverlay-DVxfWEQ8.js +6 -0
  84. package/dist/assets/SeeDontRead-Ct4PY63d.js +1 -0
  85. package/dist/assets/ShareModal-BILPvqjZ.js +2 -0
  86. package/dist/assets/{ShareModal-PobtP7AJ.css → ShareModal-D1QuQEko.css} +1 -1
  87. package/dist/assets/ShipCascade-Bf-qDWMb.js +1 -0
  88. package/dist/assets/ShipCourse-DGj9BbRM.js +1 -0
  89. package/dist/assets/{ShipGate-BYYu9WVq.js → ShipGate-D4BP41-h.js} +1 -1
  90. package/dist/assets/ShipHotspots-lGioTtf1.js +1 -0
  91. package/dist/assets/{ShipIncident-BWxerYtX.js → ShipIncident-DMLb14Lx.js} +1 -1
  92. package/dist/assets/ShipMigration-ZnzL-1rC.js +1 -0
  93. package/dist/assets/ShipOnboarding-DUxtx2Vr.js +1 -0
  94. package/dist/assets/ShipRead-CJJmY-wy.js +1 -0
  95. package/dist/assets/ShipRollout-Dt2TgI0L.js +1 -0
  96. package/dist/assets/ShipSuggestions-BrAXTjAR.js +1 -0
  97. package/dist/assets/ShipWorkspace-_MtKAiKH.js +2 -0
  98. package/dist/assets/SignatureLoop-CfM-rTXb.js +1 -0
  99. package/dist/assets/SrsReview-B1B2VekR.css +1 -0
  100. package/dist/assets/SrsReview-DhWNYYv7.js +1 -0
  101. package/dist/assets/SynthesisApp-C43ZO6Ew.js +2 -0
  102. package/dist/assets/SynthesisOverlay-Dunk_JWD.js +66 -0
  103. package/dist/assets/{TermsApp-CleIlDtR.js → TermsApp-BUQa48cB.js} +13 -3
  104. package/dist/assets/TopbarMenu-DQXxqSWY.js +1 -0
  105. package/dist/assets/TopicCanvas-DR26Swr_.js +2 -0
  106. package/dist/assets/TourPrism-zt1LIaLd.js +1 -0
  107. package/dist/assets/TrackerTile-sYD2MM_4.js +2 -0
  108. package/dist/assets/TwoSurfaces-CLOIlVvY.js +1 -0
  109. package/dist/assets/UnderstoodPanel-DmJph4el.js +1 -0
  110. package/dist/assets/WhyMachineOverlay-Nll4Wco-.js +1 -0
  111. package/dist/assets/WowFeatures-CNVwRlf0.js +1 -0
  112. package/dist/assets/ZoomDeck-DNgyW7Nm.js +1 -0
  113. package/dist/assets/__vite-browser-external-gfE6fZcA.js +1 -0
  114. package/dist/assets/alternateFinishes-Cgks49KV.js +494 -0
  115. package/dist/assets/annotationAuto-C9weSF2k.js +1 -0
  116. package/dist/assets/annotationReel-va1i-lKs.js +1 -0
  117. package/dist/assets/annotations-CftUUB13.js +1 -0
  118. package/dist/assets/attachments-BW-vki-E.js +1 -0
  119. package/dist/assets/backup-D--1WRte.js +1 -0
  120. package/dist/assets/blockLabel-FogyzEQY.js +1 -0
  121. package/dist/assets/blockTypes-CgNGx27_.js +1 -0
  122. package/dist/assets/buildShip-BgFg98tH.js +1 -0
  123. package/dist/assets/cache-CvbSI-pr.js +1 -0
  124. package/dist/assets/cachedImport-DW0gP14h.js +1 -0
  125. package/dist/assets/canvas-DIs20T9l.js +1 -0
  126. package/dist/assets/capture-BBxyt5SN.js +2 -0
  127. package/dist/assets/catalog-Db9GWM6N.js +1 -0
  128. package/dist/assets/{cfo.generated-Bjl5OGay.js → cfo.generated-j5CXp1Zz.js} +1 -1
  129. package/dist/assets/chapters-Dqm4iLDa.js +1 -0
  130. package/dist/assets/charts2-CaKGzkgJ.js +1 -0
  131. package/dist/assets/checkLogModel-BMtruriG.js +1 -0
  132. package/dist/assets/{citation-BcvmjKS8.js → citation-BsSvaaer.js} +1 -1
  133. package/dist/assets/{codeContext-0UMRSGRr.js → codeContext-goNoLAIr.js} +1 -1
  134. package/dist/assets/compiler-runtime-qQQXpJgv.js +1 -0
  135. package/dist/assets/{compose-BJ9EfcQS.js → compose-D-OsDiU9.js} +1 -1
  136. package/dist/assets/confirmAdd-BDNV8RqF.js +1 -0
  137. package/dist/assets/{contentVault-DzTYWcbD.js → contentVault-xfUwSJ3i.js} +1 -1
  138. package/dist/assets/coreIcons-BzqW7Qiz.js +1 -0
  139. package/dist/assets/cpp-CJIxL8VH.js +1 -0
  140. package/dist/assets/cpp-Cts1PyIS.js +1 -0
  141. package/dist/assets/dash-composer-DeNWVwpU.css +1 -0
  142. package/dist/assets/dashboardEvents-BDKxoLch.js +2 -0
  143. package/dist/assets/dashboards-Dy4MTJQ5.css +1 -0
  144. package/dist/assets/dataPending-lZUzUEo6.js +1 -0
  145. package/dist/assets/{diagrams-CaSfjT4I.js → diagrams-1DJMD4j-.js} +1 -1
  146. package/dist/assets/dist-DRo0JOkC.js +14 -0
  147. package/dist/assets/{dist-CBEt6Q8V.js → dist-kNHRtoqd.js} +21 -21
  148. package/dist/assets/empty-BO1NC9qY.js +1 -0
  149. package/dist/assets/{explode-WBykfhqW.js → explode-fgkkWz8o.js} +1 -1
  150. package/dist/assets/facts-BUGuVUIc.js +1 -0
  151. package/dist/assets/fit-CMu7prjb.js +1 -0
  152. package/dist/assets/fitText-DQ2omSN0.js +1 -0
  153. package/dist/assets/format-q0LwBjID.js +1 -0
  154. package/dist/assets/{format-hc2QOoIu.js → format-rPI6ZwwH.js} +1 -1
  155. package/dist/assets/friendlyAsk-BBdRZIar.js +1 -0
  156. package/dist/assets/{generate-8odaTyr4.js → generate-CemSUZ8A.js} +3 -3
  157. package/dist/assets/generateBeats-aqKTlSN2.js +1 -0
  158. package/dist/assets/{generateCourse-Cj_-vDWu.js → generateCourse-BIBbw-ZJ.js} +1 -1
  159. package/dist/assets/generateLive-BsXn4Y_d.js +51 -0
  160. package/dist/assets/githubBrowser-BDiuD9dz.js +1 -0
  161. package/dist/assets/githubToken-Bwa7V9YT.js +1 -0
  162. package/dist/assets/history-D2EH2X6D.js +1 -0
  163. package/dist/assets/homeTarget-CsO8nY7z.js +1 -0
  164. package/dist/assets/http-Lar_UMKb.js +2 -0
  165. package/dist/assets/{icons-CHVz6kv_.js → icons-gLFQTv74.js} +1 -1
  166. package/dist/assets/incident-D3bmMmES.js +10 -0
  167. package/dist/assets/index-B69GkoTc.css +1 -0
  168. package/dist/assets/index-D1SPhBGd.js +22 -0
  169. package/dist/assets/index.es-yrxxdux0.js +5 -0
  170. package/dist/assets/jspdf.es.min-Bbaa2Qun.js +79 -0
  171. package/dist/assets/jsx-runtime-DeHZSEgm.js +1 -0
  172. package/dist/assets/katex-CiJ_n4H9.js +257 -0
  173. package/dist/assets/keyVault-Aw5Y2PjT.js +1 -0
  174. package/dist/assets/kokoro-C6P0LV4L.js +1 -0
  175. package/dist/assets/layout-CEoNLr-w.js +1 -0
  176. package/dist/assets/{layout-CkO0Psde.js → layout-CHn3XWJd.js} +1 -1
  177. package/dist/assets/learn-CXstDWJf.js +1 -0
  178. package/dist/assets/ledger-Cv0LBflx.js +1 -0
  179. package/dist/assets/lib-B7OE1ZQQ.js +1 -0
  180. package/dist/assets/liveSchema-B8OByCPH.js +99 -0
  181. package/dist/assets/maplibre-gl-CrDadnl3.js +801 -0
  182. package/dist/assets/maplibre-gl-worker-DZ7nj4vd.js +11 -0
  183. package/dist/assets/{mastery-D7xYf5D7.js → mastery-CUfDeuqO.js} +2 -2
  184. package/dist/assets/{media-CsrUl279.js → media-BvwzACIX.js} +1 -1
  185. package/dist/assets/{model-BE0UHu1w.js → model-BsQ5ixwB.js} +1 -1
  186. package/dist/assets/motion-BY_Egaxm.js +1 -0
  187. package/dist/assets/motion-DxHSlPN6.js +1 -0
  188. package/dist/assets/{neighborhoods-DFqKm9Xi.js → neighborhoods-D7QjURnE.js} +1 -1
  189. package/dist/assets/notes-U6gRKVHk.js +1 -0
  190. package/dist/assets/officeDoc-Dn8jw1fG.js +3 -0
  191. package/dist/assets/openchemlib-Cz_MN0FG.js +23 -0
  192. package/dist/assets/{owners-FXDGInVq.js → owners-HRBX7JN_.js} +1 -1
  193. package/dist/assets/parseDiff-D8uBQ9mQ.js +2 -0
  194. package/dist/assets/pdf-CUAVYiYW.js +54 -0
  195. package/dist/assets/pdf.worker.min-CHFwMXne.mjs +29 -0
  196. package/dist/assets/pen-D9UT-ioQ.js +24 -0
  197. package/dist/assets/{perfProbe-CCSPF3EA.js → perfProbe-BxyiHsI2.js} +1 -1
  198. package/dist/assets/{php-CYrBA5iX.js → php-CQT4wx5i.js} +1 -1
  199. package/dist/assets/pin-D-4Zjiik.css +1 -0
  200. package/dist/assets/pin-qQrH_dBi.js +1 -0
  201. package/dist/assets/planTracker-CjnznF7v.js +1 -0
  202. package/dist/assets/portal-t0bsUEg2.js +1 -0
  203. package/dist/assets/{pptxgen.es-CwCkoJdp.js → pptxgen.es-zw8PIOkD.js} +11 -11
  204. package/dist/assets/predictions-CkVKHq-5.js +1 -0
  205. package/dist/assets/preload-helper-CiWYd9n-.js +1 -0
  206. package/dist/assets/preloadableLazy-MIX1ApBW.js +1 -0
  207. package/dist/assets/{prewarm--KODwuMi.js → prewarm-CAZcnT4x.js} +1 -1
  208. package/dist/assets/prism.generated-BQkO5r6r.js +41 -0
  209. package/dist/assets/{prismExtract.worker-Cws9K1NG.js → prismExtract.worker-OxGWMXXN.js} +1 -1
  210. package/dist/assets/prismGround.worker-C9hyveb3.js +1 -0
  211. package/dist/assets/prismLayout.worker-CJa4orCT.js +1 -0
  212. package/dist/assets/providers-DdJWf_PE.js +1 -0
  213. package/dist/assets/purify.es-JEAr64Sr.js +3 -0
  214. package/dist/assets/{queue-J4h7E3uc.js → queue-Adae4IzW.js} +1 -1
  215. package/dist/assets/quietHours-_i5Uqz7z.js +1 -0
  216. package/dist/assets/quizResult-DB8yeqDr.js +1 -0
  217. package/dist/assets/react-BZJXY1be.js +1 -0
  218. package/dist/assets/ready-4lPJes2S.js +1 -0
  219. package/dist/assets/ready-LSwk88I-.js +1 -0
  220. package/dist/assets/{reference-sJzyMiL4.js → reference-BjexflMu.js} +1 -1
  221. package/dist/assets/registry-4mMEt1Xy.css +1 -0
  222. package/dist/assets/registry-7poQfBaM.js +4 -0
  223. package/dist/assets/registry-9QjeHgKs.js +1 -0
  224. package/dist/assets/registry-B0GIHERt.js +1 -0
  225. package/dist/assets/{registry-DpaaVbmL.css → registry-B1KQ1VPZ.css} +1 -1
  226. package/dist/assets/registry-B5S3brjM.css +1 -0
  227. package/dist/assets/registry-BFbfXK-W.js +1 -0
  228. package/dist/assets/registry-BSX3aFUw.js +1 -0
  229. package/dist/assets/registry-Bv1f5UU4.js +2 -0
  230. package/dist/assets/registry-BzH7mEl7.js +1 -0
  231. package/dist/assets/registry-C28gYnVq.js +1 -0
  232. package/dist/assets/registry-COkvZrNA.css +1 -0
  233. package/dist/assets/registry-CPImC7mO.js +1 -0
  234. package/dist/assets/registry-CPiwQhAm.js +1 -0
  235. package/dist/assets/registry-CcOO8UZr.js +1 -0
  236. package/dist/assets/registry-Ci65uThi.js +1 -0
  237. package/dist/assets/registry-CkScyZGa.js +1 -0
  238. package/dist/assets/registry-CtvKPLd7.js +1 -0
  239. package/dist/assets/{registry-upbw6pyj.css → registry-CuVk7MAI.css} +1 -1
  240. package/dist/assets/{registry-D5oMqeSa.js → registry-CueC1vq1.js} +1 -1
  241. package/dist/assets/registry-CvylL2BN.css +1 -0
  242. package/dist/assets/registry-CxUmdwDk.js +1 -0
  243. package/dist/assets/registry-D8O0apUT.js +2 -0
  244. package/dist/assets/registry-DLyrLfe-2.js +1 -0
  245. package/dist/assets/registry-DO4hGO5e.js +1 -0
  246. package/dist/assets/{registry-Xzq_Rpmm.css → registry-DScSjt8p.css} +1 -1
  247. package/dist/assets/registry-Daypk4uR.js +1 -0
  248. package/dist/assets/registry-Dd1lcXrO.js +2 -0
  249. package/dist/assets/{registry-DWcNVyI2.css → registry-DpMI23iE.css} +1 -1
  250. package/dist/assets/registry-NbNNn_ra.js +1 -0
  251. package/dist/assets/registry-Vp8VuMV0.js +9 -0
  252. package/dist/assets/registry-WHd1PwU3.js +1 -0
  253. package/dist/assets/registry-Xl8mAnKq.js +1 -0
  254. package/dist/assets/registry-tkd3UhWn.css +1 -0
  255. package/dist/assets/{registry-ei6fIgBT.css → registry-twSIyxJQ.css} +1 -1
  256. package/dist/assets/registry-types-D3q_LrlV.js +1 -0
  257. package/dist/assets/registry-w4R6c89s.js +48 -0
  258. package/dist/assets/{relate-DxAi8xpo.js → relate-DHPSGB7a.js} +1 -1
  259. package/dist/assets/replay-zh4xVk5G.js +1 -0
  260. package/dist/assets/rolldown-runtime-DkW27tQK.js +1 -0
  261. package/dist/assets/route-D4kd-D3B.js +1 -0
  262. package/dist/assets/{ruby-BhrksQMt.js → ruby-D_UtGFHI.js} +1 -1
  263. package/dist/assets/{run-Dc2ZJz6n.js → run-BdDyp6Xv.js} +2 -2
  264. package/dist/assets/run-ByCJN-29.js +23 -0
  265. package/dist/assets/run-DiPX83_J.js +21 -0
  266. package/dist/assets/safeImageUrl-BINWXOTz.js +1 -0
  267. package/dist/assets/screen-DFWKge3-.js +1 -0
  268. package/dist/assets/search-ZN7v_P5B.js +1 -0
  269. package/dist/assets/shapes-DI0LQC8n.js +1 -0
  270. package/dist/assets/shard005-Dp5TM33O.js +1 -0
  271. package/dist/assets/shard006-DpJfkjmW.js +1 -0
  272. package/dist/assets/shard007-CIQN8OfZ.js +1 -0
  273. package/dist/assets/shard008-BFiyL7r6.js +1 -0
  274. package/dist/assets/shard009-0s30Tkk9.js +1 -0
  275. package/dist/assets/shard010-DPhgF5ck.js +1 -0
  276. package/dist/assets/shard011-C2jVsC25.js +1 -0
  277. package/dist/assets/shard012-DYtN5yzJ.js +1 -0
  278. package/dist/assets/shard013-1D6_Qy9C.js +1 -0
  279. package/dist/assets/shard014-D8s7GHnm.js +1 -0
  280. package/dist/assets/shard015-16W6KgnL.js +1 -0
  281. package/dist/assets/shard016-B4PpWmro.js +1 -0
  282. package/dist/assets/shard017-BO1sA5b3.js +1 -0
  283. package/dist/assets/shard018-D4gn8z25.js +1 -0
  284. package/dist/assets/shard019-vSbfaqRA.js +1 -0
  285. package/dist/assets/shard020-DwbHP8bp.js +1 -0
  286. package/dist/assets/{shard021-2FE-tze4.js → shard021-BhEyVVAL.js} +1 -1
  287. package/dist/assets/shard022-BdT7zFy3.js +1 -0
  288. package/dist/assets/shard023-Dga_NQcm.js +1 -0
  289. package/dist/assets/shard024-CXHofcxc.js +1 -0
  290. package/dist/assets/shard025-a4CQKYw1.js +1 -0
  291. package/dist/assets/shard026-0rhLKfDL.js +1 -0
  292. package/dist/assets/shard027-C9GMfOtn.js +1 -0
  293. package/dist/assets/shard028-D9__rPnw.js +1 -0
  294. package/dist/assets/shard029-BSdYKGgG.js +1 -0
  295. package/dist/assets/shard030-DceOU7pS.js +1 -0
  296. package/dist/assets/shard031-C6_p076r.js +1 -0
  297. package/dist/assets/shard032-Cah16sJi.js +1 -0
  298. package/dist/assets/shard033-D-iobGzc.js +1 -0
  299. package/dist/assets/shard034-DIyfCKl8.js +1 -0
  300. package/dist/assets/shard035-BHWs8v0a.js +1 -0
  301. package/dist/assets/shard036-AhOPHqzq.js +1 -0
  302. package/dist/assets/shard037-CuAGDOOu.js +1 -0
  303. package/dist/assets/shard038-CYdtnPjK.js +1 -0
  304. package/dist/assets/shard039-DgvXKOyi.js +1 -0
  305. package/dist/assets/shard040-DO012waT.js +1 -0
  306. package/dist/assets/shard041-BeUicA1R.js +1 -0
  307. package/dist/assets/shard042-D2zbq14A.js +1 -0
  308. package/dist/assets/shard043-BKoTEB-H.js +1 -0
  309. package/dist/assets/shard044-bmYKfH3A.js +1 -0
  310. package/dist/assets/shard045-i_R1olD9.js +1 -0
  311. package/dist/assets/shard046-CFk2L0GQ.js +1 -0
  312. package/dist/assets/shard047-pjHCnVaT.js +1 -0
  313. package/dist/assets/shard048-Cc7tGz6R.js +1 -0
  314. package/dist/assets/shard049-C9eoD-6Z.js +1 -0
  315. package/dist/assets/shard050-V3c_ZDrB.js +1 -0
  316. package/dist/assets/shard051-D1ISwZzf.js +1 -0
  317. package/dist/assets/shard052-Dy09xx3S.js +1 -0
  318. package/dist/assets/shard053-Bi4Z4cwW.js +1 -0
  319. package/dist/assets/shard054-BoC-LNYu.js +1 -0
  320. package/dist/assets/shard055-D2NJeMN1.js +1 -0
  321. package/dist/assets/shard056-sSFMbxXN.js +1 -0
  322. package/dist/assets/shard057-DhNK5nyZ.js +1 -0
  323. package/dist/assets/shard058-Du4SjxeD.js +1 -0
  324. package/dist/assets/shard059-fGiLnJzG.js +1 -0
  325. package/dist/assets/shard060-l84MDY2t.js +1 -0
  326. package/dist/assets/shard061-B3aIa7Aa.js +1 -0
  327. package/dist/assets/{shard061-C9A8iNiq.js → shard062-BJ8OX6CJ.js} +1 -1
  328. package/dist/assets/shard063-CMo-7Qit.js +1 -0
  329. package/dist/assets/shard064-B0EEOnfG.js +1 -0
  330. package/dist/assets/shard065-D-StlUHp.js +1 -0
  331. package/dist/assets/share-kW3pZ027.js +1 -0
  332. package/dist/assets/shikiHighlight-BwX78OP8.js +153 -0
  333. package/dist/assets/speed-K5_Ebj-8.js +1 -0
  334. package/dist/assets/spokenText-D3iS8fuI.js +1 -0
  335. package/dist/assets/spreadLabels-CQ8hufvK.js +1 -0
  336. package/dist/assets/src-DG1n-LFe.js +1 -0
  337. package/dist/assets/store-BWLbFXiY.js +1 -0
  338. package/dist/assets/{store-BMRQiV1z.js → store-BfHRbVKz.js} +1 -1
  339. package/dist/assets/store-D-f8ZuaK.js +1 -0
  340. package/dist/assets/store-D2IJF4SA.js +0 -0
  341. package/dist/assets/store-DpObYU1u.js +1 -0
  342. package/dist/assets/store-DpmbKVs7.js +1 -0
  343. package/dist/assets/store-gohr8YVT.js +1 -0
  344. package/dist/assets/{streamParse-DRgMHWye.js → streamParse-B-Gjwa9T.js} +1 -1
  345. package/dist/assets/svgLabel-BQMDdcT2.js +1 -0
  346. package/dist/assets/swift-CyEgAFGc.js +1 -0
  347. package/dist/assets/theme-f0mztBcq.js +1 -0
  348. package/dist/assets/threads-Cu2t3070.js +1 -0
  349. package/dist/assets/tiles-CBiVVjtT.css +1 -0
  350. package/dist/assets/tiles-pdNi6MGe.js +1 -0
  351. package/dist/assets/types-CaO6xOn5.js +1 -0
  352. package/dist/assets/useDashboardLoop-DuckIfJX.js +5 -0
  353. package/dist/assets/useDashboards-BMcuCWoz.js +1 -0
  354. package/dist/assets/{useFocusTrap-DbfG6zbM.js → useFocusTrap-DBtkeyRy.js} +1 -1
  355. package/dist/assets/useInView-CXTOAEV3.js +1 -0
  356. package/dist/assets/useLedger-1WVXef68.js +1 -0
  357. package/dist/assets/useLiveConfig-9eJ7EM3B.js +1 -0
  358. package/dist/assets/useSpatialCanvas-CtVsYmp8.js +1 -0
  359. package/dist/assets/useSpotlightWalk-DxlxBezO.js +1 -0
  360. package/dist/assets/useSrsCards-C27o39fF.js +1 -0
  361. package/dist/assets/useStudy-B5874Bcg.js +1 -0
  362. package/dist/assets/{useTimeout-BRYvu2jQ.js → useTimeout-Cm4yzted.js} +1 -1
  363. package/dist/assets/{useValidatedImage-D2fhA198.js → useValidatedImage-BQi2c66o.js} +1 -1
  364. package/dist/assets/useZoomGesture-CN0p0lHL.js +1 -0
  365. package/dist/assets/verbatim-DBTj9sPD.js +1 -0
  366. package/dist/assets/worker-D7eK-Ya8.js +2 -0
  367. package/dist/demo-assets/CREDITS.md +75 -24
  368. package/dist/demo-assets/pdf/cfd-primer.pdf +0 -0
  369. package/dist/demo-assets/video/azores-film.webm +0 -0
  370. package/dist/fonts/LICENSE.txt +32 -28
  371. package/dist/fonts/OFL-1.1.txt +81 -0
  372. package/dist/fonts/PROVENANCE.md +38 -0
  373. package/dist/index.html +15 -8
  374. package/dist/legal/DISCLAIMER.md +4 -1
  375. package/dist/legal/PRIVACY.md +14 -8
  376. package/dist/legal/TERMS.md +11 -1
  377. package/dist/legal/THIRD-PARTY.txt +25248 -621
  378. package/dist/pdfjs/LICENSE_JBIG2 +196 -0
  379. package/dist/pdfjs/LICENSE_OPENJPEG +39 -0
  380. package/dist/pdfjs/LICENSE_PDFJS_JBIG2 +13 -0
  381. package/dist/pdfjs/LICENSE_PDFJS_OPENJPEG +22 -0
  382. package/dist/pdfjs/LICENSE_PDFJS_QCMS +22 -0
  383. package/dist/pdfjs/LICENSE_QCMS +21 -0
  384. package/dist/pdfjs/jbig2.wasm +0 -0
  385. package/dist/pdfjs/openjpeg.wasm +0 -0
  386. package/dist/pdfjs/qcms_bg.wasm +0 -0
  387. package/docker-compose.yml +40 -7
  388. package/docs/media/answer-ink.jpg +0 -0
  389. package/docs/media/canvas-view.jpg +0 -0
  390. package/docs/media/deck-export.jpg +0 -0
  391. package/docs/media/deep-zoom.jpg +0 -0
  392. package/docs/media/doc-export.jpg +0 -0
  393. package/docs/media/doc-prism.jpg +0 -0
  394. package/docs/media/repo-course.jpg +0 -0
  395. package/docs/media/think-map.jpg +0 -0
  396. package/docs/media/trip-plan.jpg +0 -0
  397. package/docs/media/voice-scrub.jpg +0 -0
  398. package/package.json +71 -60
  399. package/voice/start-whisper.sh +28 -0
  400. package/voice/whisper.Dockerfile +44 -0
  401. package/dist/assets/AppCommandPalette-Dzl_DbDd.js +0 -1
  402. package/dist/assets/AtlasView-B8b67dk0.js +0 -1
  403. package/dist/assets/BlockEmpty-B5Q0hgDJ.js +0 -1
  404. package/dist/assets/BriefingPlayer-Dy7JCGm-.js +0 -1
  405. package/dist/assets/CanvasSkeleton-CJwPWnFG.js +0 -2
  406. package/dist/assets/CardEditor-DzJXb0G7.js +0 -1
  407. package/dist/assets/CheckLogRail-DNtXlkcR.js +0 -1
  408. package/dist/assets/CheckLogRail-F4AlgAcc.css +0 -1
  409. package/dist/assets/CommandPalette-mO1FEvlx.js +0 -1
  410. package/dist/assets/CourseLessonReader-CKfvBMtL.js +0 -2
  411. package/dist/assets/CourseRail-CRcB319H.js +0 -1
  412. package/dist/assets/CoursesApp-BbCGxAav.js +0 -2
  413. package/dist/assets/CrossExamPanel-Deywo95y.js +0 -1
  414. package/dist/assets/DashPresent-BEm1tGse.js +0 -1
  415. package/dist/assets/DashboardDetail-tK6FpgtH.js +0 -2
  416. package/dist/assets/DashboardLoopRuntime-Cis4WMqk.js +0 -1
  417. package/dist/assets/DashboardOverview-DrdqBgds.js +0 -1
  418. package/dist/assets/DashboardSettings-CBhzLW0P.js +0 -1
  419. package/dist/assets/DashboardsApp-Dc43FBIi.js +0 -2
  420. package/dist/assets/DelegatePanel-DmtTY_lE.js +0 -33
  421. package/dist/assets/DemoGallery-zw3d7ap9.js +0 -1
  422. package/dist/assets/DropSelect-Bo2Oyi-2.js +0 -1
  423. package/dist/assets/ExportModal-DICXavg9.js +0 -2
  424. package/dist/assets/ExtractionPreview-C636AVw-.js +0 -18
  425. package/dist/assets/FeatureUseNotice-CoK5HkbR.js +0 -1
  426. package/dist/assets/FlagshipCTA-B-7nH43r.js +0 -1
  427. package/dist/assets/FlagshipCommandPalette-DgTL_Kjj.js +0 -1
  428. package/dist/assets/FlagshipShowcase-CbAC2s4X.js +0 -1
  429. package/dist/assets/FlashcardsApp-CatYcaJJ.js +0 -1
  430. package/dist/assets/ForecastPanel-BOG361kr.js +0 -1
  431. package/dist/assets/GalleryApp-uW6b1Y0d.js +0 -1
  432. package/dist/assets/LegalApp-sCZjJYWx.js +0 -1
  433. package/dist/assets/LegalPageShell-BsgRV7aL.js +0 -1
  434. package/dist/assets/LegalPageShell-C_HottbD.css +0 -1
  435. package/dist/assets/LeverPanel-CP32QcIf.js +0 -1
  436. package/dist/assets/Library-CJTnp1pC.js +0 -1
  437. package/dist/assets/LibraryOverlay-geQRGAzG.js +0 -1
  438. package/dist/assets/LiveApp-C0BN0o3_.js +0 -61
  439. package/dist/assets/LiveApp-Dj_6EQuL.css +0 -1
  440. package/dist/assets/LiveSettings-CzSXXMoo.js +0 -6
  441. package/dist/assets/MindMapViewerDrawer-7HLErRQF.js +0 -1
  442. package/dist/assets/MindShape-Bhu4yoIj.js +0 -1
  443. package/dist/assets/MindShape-DjHtMW_5.css +0 -1
  444. package/dist/assets/PinToDashboard-Cj8S9XKC.js +0 -1
  445. package/dist/assets/PlanReview-3NxZD9wt.js +0 -1
  446. package/dist/assets/Presence-DDxb6yE5.js +0 -1
  447. package/dist/assets/PresentationDeck-B6AHRYEA.js +0 -1
  448. package/dist/assets/PrismApp-BlPpWxao.js +0 -2
  449. package/dist/assets/PrismAskController-DUvOTeW9.js +0 -37
  450. package/dist/assets/PrismBriefingPlayer-Bmo9tOGX.js +0 -2
  451. package/dist/assets/PrismOverlay-9Q_14eEO.js +0 -131
  452. package/dist/assets/Quiz-CUwtekfu.js +0 -1
  453. package/dist/assets/Recap-DkKrrqi5.js +0 -1
  454. package/dist/assets/ReelJelly-DCD4bG10.js +0 -1
  455. package/dist/assets/ReplayCard-Bz69tOST.js +0 -2
  456. package/dist/assets/ReplayOverlay-DbJX08Kr.js +0 -1
  457. package/dist/assets/RewindOverlay-Bop4a63b.js +0 -1
  458. package/dist/assets/RippleApp-u3hCfb5b.js +0 -2
  459. package/dist/assets/RippleAskController-CK4iSwT0.js +0 -34
  460. package/dist/assets/RippleOverlay-BM_B9JEc.js +0 -6
  461. package/dist/assets/SeeDontRead-CGGKmvBV.js +0 -1
  462. package/dist/assets/ShareModal-D4En6Y3L.js +0 -32
  463. package/dist/assets/ShipCascade-k_GWrcau.js +0 -1
  464. package/dist/assets/ShipCourse-BQOY4MyI.js +0 -1
  465. package/dist/assets/ShipHotspots-vLRK0w_b.js +0 -1
  466. package/dist/assets/ShipMigration-OgAGEbjm.js +0 -1
  467. package/dist/assets/ShipOnboarding-B_2IEq3N.js +0 -1
  468. package/dist/assets/ShipRead--gGqg2SE.js +0 -1
  469. package/dist/assets/ShipRollout-B_U2P8Yw.js +0 -1
  470. package/dist/assets/ShipSuggestions-D9coTmgw.js +0 -1
  471. package/dist/assets/ShipWorkspace-BmdcHZXa.js +0 -2
  472. package/dist/assets/SignatureLoop-KA6Cf93g.js +0 -1
  473. package/dist/assets/SrsReview-BoaYb6XN.js +0 -1
  474. package/dist/assets/SrsReview-DmGdGxT0.css +0 -1
  475. package/dist/assets/SynthesisApp-BCBhCJhx.js +0 -2
  476. package/dist/assets/SynthesisOverlay-BuGIeaKq.js +0 -66
  477. package/dist/assets/TopicCanvas-BRu3xVL8.js +0 -2
  478. package/dist/assets/TourPrism-zbVLe2ag.js +0 -1
  479. package/dist/assets/TrackerTile-D9Wa3CSq.js +0 -2
  480. package/dist/assets/TwoSurfaces-TyWXgAdq.js +0 -1
  481. package/dist/assets/UnderstoodPanel-BS9OhgLJ.js +0 -1
  482. package/dist/assets/WhyMachineOverlay-B-KJhCjr.js +0 -1
  483. package/dist/assets/WowFeatures-Bv1-PmXF.js +0 -1
  484. package/dist/assets/ZoomDeck-C2Q6xbgX.js +0 -1
  485. package/dist/assets/__vite-browser-external-BufR4LQa.js +0 -1
  486. package/dist/assets/alternateFinishes-BG6svkXG.js +0 -494
  487. package/dist/assets/annotationAuto-BpBsjbDQ.js +0 -1
  488. package/dist/assets/annotationReel-yzysA-Gr.js +0 -1
  489. package/dist/assets/annotations-D2K9A5GB.js +0 -1
  490. package/dist/assets/backup-BdeBr3wq.js +0 -1
  491. package/dist/assets/blockLabel-DAqaHKy3.js +0 -1
  492. package/dist/assets/cache-BumECILO.js +0 -1
  493. package/dist/assets/canvas-Ep2Kfupo.js +0 -1
  494. package/dist/assets/catalog-DF7YTNju.js +0 -1
  495. package/dist/assets/chapters-Cbe53c3W.js +0 -1
  496. package/dist/assets/charts2-tyUiQPff.js +0 -1
  497. package/dist/assets/chunk-BVpWp9h4.js +0 -1
  498. package/dist/assets/cpp-BGdv8dzs.js +0 -1
  499. package/dist/assets/cpp-CNAAXZl-.js +0 -1
  500. package/dist/assets/dashboardEvents-C_XvGVLJ.js +0 -2
  501. package/dist/assets/dashboards-rcWxdoXI.css +0 -1
  502. package/dist/assets/dist-xRGLOZwv.js +0 -14
  503. package/dist/assets/facts-BBTt3ImG.js +0 -1
  504. package/dist/assets/fit-B1LJWvMO.js +0 -1
  505. package/dist/assets/fitText-CDFmCQzl.js +0 -1
  506. package/dist/assets/format-DlZTyeMy.js +0 -1
  507. package/dist/assets/generateBeats-b64CL54v.js +0 -1
  508. package/dist/assets/generateLive-ChhSWKbq.js +0 -52
  509. package/dist/assets/githubBrowser-DywfDeYx.js +0 -1
  510. package/dist/assets/githubToken-DtcLYqwm.js +0 -11
  511. package/dist/assets/homeTarget-BcZYH3DY.js +0 -1
  512. package/dist/assets/http-CJCtjYpA.js +0 -2
  513. package/dist/assets/index-C7H7A1rW.js +0 -22
  514. package/dist/assets/index-CepQEz75.css +0 -1
  515. package/dist/assets/index.es-CRLiWwiA.js +0 -5
  516. package/dist/assets/jspdf.es.min-DutJi91O.js +0 -79
  517. package/dist/assets/jsx-runtime-DaSxXjOY.js +0 -1
  518. package/dist/assets/katex-BMCG0xok.js +0 -257
  519. package/dist/assets/keyVault-DEsNh9FR.js +0 -1
  520. package/dist/assets/kokoro-kGWf7M0e.js +0 -1
  521. package/dist/assets/layout-BFQOzXtG.js +0 -1
  522. package/dist/assets/leaflet-src-C_xhOQY7.js +0 -1
  523. package/dist/assets/learn-DVfqN-nf.js +0 -1
  524. package/dist/assets/lib-C7zXL8h0.js +0 -1
  525. package/dist/assets/liveSchema-DCL21WdS.js +0 -99
  526. package/dist/assets/motion-dfA87zbb.js +0 -1
  527. package/dist/assets/notes-DblI4Ko_.js +0 -1
  528. package/dist/assets/officeDoc-B6nEhNp4.js +0 -3
  529. package/dist/assets/openchemlib-nMLMmg26.js +0 -23
  530. package/dist/assets/pdf-DFYCstCC.js +0 -11
  531. package/dist/assets/pdf.worker.min-yatZIOMy.mjs +0 -21
  532. package/dist/assets/pin-Bya3BL_a.css +0 -1
  533. package/dist/assets/pin-D5_Ebl_s.js +0 -1
  534. package/dist/assets/planTracker-7AMCQPNx.js +0 -1
  535. package/dist/assets/portal-BndazODr.js +0 -1
  536. package/dist/assets/predictions-CYS7Vo39.js +0 -1
  537. package/dist/assets/prism.generated-BhbHDHR6.js +0 -41
  538. package/dist/assets/prismGround.worker-CIvKqxm2.js +0 -1
  539. package/dist/assets/prismLayout.worker-CZO2CY7B.js +0 -1
  540. package/dist/assets/providers-wzm7E8Pa.js +0 -1
  541. package/dist/assets/purify.es-adlwq8Pz.js +0 -3
  542. package/dist/assets/quietHours-DVPplPtM.js +0 -1
  543. package/dist/assets/react-BQSORdFI.js +0 -1
  544. package/dist/assets/registry-0E1uKPCI.js +0 -49
  545. package/dist/assets/registry-5a-E7vEN.css +0 -1
  546. package/dist/assets/registry-B3V5-8v0.js +0 -1
  547. package/dist/assets/registry-B51MhOLx.js +0 -2
  548. package/dist/assets/registry-BH6FfyZk.js +0 -1
  549. package/dist/assets/registry-BVHiKEwE.css +0 -1
  550. package/dist/assets/registry-Ba9xMFO4.js +0 -4
  551. package/dist/assets/registry-BcZXBr3y.css +0 -1
  552. package/dist/assets/registry-BlB0FYf0.js +0 -1
  553. package/dist/assets/registry-C30HGS2G.js +0 -1
  554. package/dist/assets/registry-CIa1EU-G.js +0 -1
  555. package/dist/assets/registry-COxprhRN.js +0 -1
  556. package/dist/assets/registry-CWkBxxsI.js +0 -5
  557. package/dist/assets/registry-D-qEhm1d.js +0 -1
  558. package/dist/assets/registry-D7rspCZr.js +0 -1
  559. package/dist/assets/registry-DNzF-nvu.js +0 -1
  560. package/dist/assets/registry-DQIm_hbI.js +0 -2
  561. package/dist/assets/registry-DVzLacl_.css +0 -1
  562. package/dist/assets/registry-Dkc7hN5T.js +0 -1
  563. package/dist/assets/registry-DmQlNN3y.js +0 -1
  564. package/dist/assets/registry-Dphh5ADP.js +0 -1
  565. package/dist/assets/registry-DrNMbrA_.js +0 -1
  566. package/dist/assets/registry-Dvv84L9K.js +0 -1
  567. package/dist/assets/registry-M3VgAiQv.js +0 -1
  568. package/dist/assets/registry-Pr5IKqro.js +0 -1
  569. package/dist/assets/registry-WJE8Z0T1.js +0 -2
  570. package/dist/assets/registry-aIH-Im5Y.css +0 -1
  571. package/dist/assets/registry-hsSlT6pi.js +0 -1
  572. package/dist/assets/registry-nG70-amx.js +0 -1
  573. package/dist/assets/registry-types-DMuK0vJ6.js +0 -1
  574. package/dist/assets/registry-wJhGGVuP.js +0 -1
  575. package/dist/assets/run-BYP2YlZT.js +0 -23
  576. package/dist/assets/run-DSVvshaB.js +0 -21
  577. package/dist/assets/safeImageUrl-CUkucDUu.js +0 -1
  578. package/dist/assets/screen-DLR7p_yP.js +0 -1
  579. package/dist/assets/search-Be63DJkp.js +0 -1
  580. package/dist/assets/shapes-Cw7tCHIp.js +0 -1
  581. package/dist/assets/shard005-DLVkh9IH.js +0 -1
  582. package/dist/assets/shard006-B6efKHov.js +0 -1
  583. package/dist/assets/shard007-AFdZLe38.js +0 -1
  584. package/dist/assets/shard008-LbSBzwRx.js +0 -1
  585. package/dist/assets/shard009-D_6-SUDb.js +0 -1
  586. package/dist/assets/shard010-DbOj-uZW.js +0 -1
  587. package/dist/assets/shard011-BYSz7EEW.js +0 -1
  588. package/dist/assets/shard012-B5Ypj7OV.js +0 -1
  589. package/dist/assets/shard013-BtsliNIe.js +0 -1
  590. package/dist/assets/shard014-15sjmk68.js +0 -1
  591. package/dist/assets/shard015-nnXrqru_.js +0 -1
  592. package/dist/assets/shard016-BayXFE13.js +0 -1
  593. package/dist/assets/shard017-Cy4cGexs.js +0 -1
  594. package/dist/assets/shard018-aO-BYJ8H.js +0 -1
  595. package/dist/assets/shard019-gxaTeA3I.js +0 -1
  596. package/dist/assets/shard020-BibJdMI0.js +0 -1
  597. package/dist/assets/shard022-IXiyG-JK.js +0 -1
  598. package/dist/assets/shard023-314F6NJS.js +0 -1
  599. package/dist/assets/shard024-cN5rpQ_X.js +0 -1
  600. package/dist/assets/shard025-KKTaXOGE.js +0 -1
  601. package/dist/assets/shard026-C2Dkd1t6.js +0 -1
  602. package/dist/assets/shard027-Xy-8x9As.js +0 -1
  603. package/dist/assets/shard028-Bul-klUj.js +0 -1
  604. package/dist/assets/shard029-BbRSUcUZ.js +0 -1
  605. package/dist/assets/shard030-GYllsFVC.js +0 -1
  606. package/dist/assets/shard031-DMigeiyn.js +0 -1
  607. package/dist/assets/shard032-CcvmzK0l.js +0 -1
  608. package/dist/assets/shard033-11AU702M.js +0 -1
  609. package/dist/assets/shard034-Bx3urxjM.js +0 -1
  610. package/dist/assets/shard035-DBdEeyCt.js +0 -1
  611. package/dist/assets/shard036-vYgoRBqS.js +0 -1
  612. package/dist/assets/shard037-DP4MMw91.js +0 -1
  613. package/dist/assets/shard038-ffxsv7d6.js +0 -1
  614. package/dist/assets/shard039-C1JHHNp9.js +0 -1
  615. package/dist/assets/shard040-JbVvCSO_.js +0 -1
  616. package/dist/assets/shard041-5L_eFwGx.js +0 -1
  617. package/dist/assets/shard042-C9nsGL79.js +0 -1
  618. package/dist/assets/shard043-Dx_9HSKI.js +0 -1
  619. package/dist/assets/shard044-B3QQNC4A.js +0 -1
  620. package/dist/assets/shard045-B7z0WHO6.js +0 -1
  621. package/dist/assets/shard046-D1yDablJ.js +0 -1
  622. package/dist/assets/shard047-DJi3AgeT.js +0 -1
  623. package/dist/assets/shard048-D_2ipfUr.js +0 -1
  624. package/dist/assets/shard049-1aGgWZdd.js +0 -1
  625. package/dist/assets/shard050-Bjwa0Og4.js +0 -1
  626. package/dist/assets/shard051-Cx_GAk3v.js +0 -1
  627. package/dist/assets/shard052-LaeOD3V5.js +0 -1
  628. package/dist/assets/shard053-D-da7Foj.js +0 -1
  629. package/dist/assets/shard054-CM8eSRQk.js +0 -1
  630. package/dist/assets/shard055-QRpDl4Vs.js +0 -1
  631. package/dist/assets/shard056-DkY7CQm3.js +0 -1
  632. package/dist/assets/shard057-BVCgf7o0.js +0 -1
  633. package/dist/assets/shard058-93aGtdrX.js +0 -1
  634. package/dist/assets/shard059-rJE9X1_I.js +0 -1
  635. package/dist/assets/shard060-Lu_hfl1r.js +0 -1
  636. package/dist/assets/shard062-BBIpEYZO.js +0 -1
  637. package/dist/assets/shard063-C_uen3Ub.js +0 -1
  638. package/dist/assets/shard064-DAHUsHST.js +0 -1
  639. package/dist/assets/share-QHGHNDhQ.js +0 -1
  640. package/dist/assets/shikiHighlight-B_TEagaE.js +0 -153
  641. package/dist/assets/speed-DwPw9KSv.js +0 -1
  642. package/dist/assets/spokenText-D4zPX9JY.js +0 -1
  643. package/dist/assets/src-B-t8Mww-.js +0 -2
  644. package/dist/assets/store-DXmC_fP2.js +0 -0
  645. package/dist/assets/store-Dn23_Ymr.js +0 -1
  646. package/dist/assets/store-DoJn3lBF.js +0 -1
  647. package/dist/assets/store-DrBDvqXF.js +0 -1
  648. package/dist/assets/swift-DonLKvLd.js +0 -1
  649. package/dist/assets/threads-CkMgrSDP.js +0 -1
  650. package/dist/assets/useDashboardLoop-DzbRz-V9.js +0 -5
  651. package/dist/assets/useLiveConfig-Lm0cYTcu.js +0 -1
  652. package/dist/assets/useSpatialCanvas-D_C8VoCy.js +0 -1
  653. package/dist/assets/useSpotlightWalk-CCQT0-_g.js +0 -1
  654. package/dist/assets/useSrsCards-BKCPBPYw.js +0 -1
  655. package/dist/assets/useStudy-Diy4ITBm.js +0 -1
  656. package/dist/assets/useZoomGesture-B82XnSfi.js +0 -1
  657. package/dist/assets/verbatim-CBMzUDlf.js +0 -1
  658. package/dist/assets/worker-BbLKfGzm.js +0 -2
  659. package/dist/demo-assets/video/azores-film.mp4 +0 -0
  660. /package/dist/assets/{shard065-C2edvdvh.js → shard066-C2edvdvh.js} +0 -0
  661. /package/dist/assets/{shard066-DFcuVhZm.js → shard067-DFcuVhZm.js} +0 -0
  662. /package/dist/assets/{shard067-BN8DM8JZ.js → shard068-BN8DM8JZ.js} +0 -0
  663. /package/dist/assets/{shard068-i464K77p.js → shard069-i464K77p.js} +0 -0
  664. /package/dist/assets/{shard069-Dm9m2a5U.js → shard070-Dm9m2a5U.js} +0 -0
  665. /package/dist/assets/{shard070-BPVvR8GH.js → shard071-BPVvR8GH.js} +0 -0
  666. /package/dist/assets/{shard071-Bal_0d9L.js → shard072-Bal_0d9L.js} +0 -0
  667. /package/dist/assets/{shard072-CBQu62kt.js → shard073-CBQu62kt.js} +0 -0
  668. /package/dist/assets/{shard073-D5BRae0w.js → shard074-D5BRae0w.js} +0 -0
  669. /package/dist/assets/{shard074-DtFvcBnZ.js → shard075-DtFvcBnZ.js} +0 -0
  670. /package/dist/assets/{queue-DHeyJ32F.css → templates-DHeyJ32F.css} +0 -0
@@ -1 +0,0 @@
1
- import{r as e}from"./chunk-BVpWp9h4.js";import{t}from"./react-BQSORdFI.js";import{t as n}from"./jsx-runtime-DaSxXjOY.js";import{n as r}from"./icons-CHVz6kv_.js";import{t as i}from"./richText-BkxJhl9N.js";import{i as a}from"./scale-Bcgfo6Hp.js";import{r as o}from"./lib-C7zXL8h0.js";import{t as s}from"./registry-types-DMuK0vJ6.js";import{n as c}from"./sourceHost-BV3t2XDb.js";var l=t(),u=n(),d=480,f=200,p=20,m=d-p*2,h=f-p*2-24,g=[`Exposition`,`Rising Action`,`Climax`,`Falling Action`,`Dénouement`],_=[0,.2,.5,.8,1],v=[.08,.45,1,.5,.1],y=[{label:`Act I — Setup`,x0:0,x1:.25},{label:`Act II — Confrontation`,x0:.25,x1:.75},{label:`Act III — Resolution`,x0:.75,x1:1}],b=[{x:.25,label:`Plot Point I`},{x:.75,label:`Plot Point II`}],x=[`Ordinary World`,`Call`,`Refusal`,`Mentor`,`Crossing`,`Tests`,`Innermost Cave`,`Ordeal`,`Reward`,`Road Back`,`Resurrection`,`Return`],S=[{label:`Opening Image`,pct:1},{label:`Theme Stated`,pct:5},{label:`Set-up`,pct:10},{label:`Catalyst`,pct:12},{label:`Debate`,pct:20},{label:`Break into 2`,pct:25},{label:`B Story`,pct:30},{label:`Fun & Games`,pct:50},{label:`Midpoint`,pct:50},{label:`Bad Guys Close In`,pct:62.5},{label:`All Is Lost`,pct:75},{label:`Dark Night`,pct:80},{label:`Break into 3`,pct:87},{label:`Finale`,pct:95},{label:`Final Image`,pct:99}],C=e=>p+e*m,w=e=>p+(1-e)*h,T=22;function E(e,t){return e.length>t?e.slice(0,t-1).trimEnd()+`…`:e}function D(e,t){let n=e.trim().toLowerCase(),r=t.findIndex(e=>e.toLowerCase()===n);return r>=0?r:t.findIndex(e=>e.toLowerCase().includes(n)||n.includes(e.toLowerCase()))}function ee({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,framework:a,beats:o,caption:s,footer:c,delay:p}){let m=r[t]??r.layers,h=(0,l.useMemo)(()=>{let e=o??[];return a===`freytag`?te(e):a===`threeact`?ne(e):a===`herojourney`?re(e):a===`savethecat`?ie(e):null},[a,o]),g={freytag:`Freytag Pyramid`,threeact:`Three-Act Structure`,herojourney:`Hero's Journey`,savethecat:`Save the Cat`};return(0,u.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p??0)+`ms`},children:[e&&(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`div`,{className:`sa-framework-label`,children:g[a]??a}),(0,u.jsx)(`div`,{className:`sa-wrap`,children:(0,u.jsx)(`svg`,{className:`sa-svg`,viewBox:`0 0 ${d} ${f}`,role:`img`,"aria-label":`${g[a]??a} story structure`,preserveAspectRatio:`xMidYMid meet`,children:h})}),s&&(0,u.jsx)(`div`,{className:`block-caption`,children:s}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,dangerouslySetInnerHTML:i(c),style:{marginTop:12}})]})}function te(e){let t=_.map((e,t)=>`${C(e).toFixed(1)},${w(v[t]).toFixed(1)}`).join(` `),n=[`${C(0).toFixed(1)},${w(0).toFixed(1)}`,..._.map((e,t)=>`${C(e).toFixed(1)},${w(v[t]).toFixed(1)}`),`${C(1).toFixed(1)},${w(0).toFixed(1)}`].join(` `),r=e.map((e,t)=>{let n=D(e.stage,g);if(n<0)return null;let r=_[n],i=v[n],a=C(r),o=w(i);return(0,u.jsxs)(`g`,{children:[(0,u.jsx)(`circle`,{cx:a,cy:o,r:4,className:`sa-beat-dot`}),(0,u.jsxs)(`text`,{x:a,y:o-10,textAnchor:`middle`,className:`sa-beat-lbl`,children:[E(e.label,T),e.label.length>T&&(0,u.jsx)(`title`,{children:e.label})]})]},t)}).filter(Boolean),i=f-6;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`polygon`,{points:n,className:`sa-fill`}),(0,u.jsx)(`polyline`,{points:t,fill:`none`,className:`sa-curve`}),(0,u.jsx)(`line`,{x1:C(0),y1:w(0),x2:C(1),y2:w(0),className:`sa-baseline`}),g.map((e,t)=>{let n=t===0?`start`:t===g.length-1?`end`:`middle`;return(0,u.jsx)(`text`,{x:C(_[t]),y:i,textAnchor:n,className:`sa-stage-lbl`,children:e},t)}),r]})}function ne(e){let t=[`color-mix(in oklab, var(--presence) 12%, transparent)`,`color-mix(in oklab, var(--warning) 12%, transparent)`,`color-mix(in oklab, var(--insight) 12%, transparent)`],n=f-6,r=e.map((e,t)=>{let n=D(e.stage,y.map(e=>e.label));if(n<0)return null;let r=y[n],i=C((r.x0+r.x1)/2),a=w(.5);return(0,u.jsxs)(`g`,{children:[(0,u.jsx)(`circle`,{cx:i,cy:a,r:4,className:`sa-beat-dot`}),(0,u.jsxs)(`text`,{x:i,y:a-10,textAnchor:`middle`,className:`sa-beat-lbl`,children:[E(e.label,T),e.label.length>T&&(0,u.jsx)(`title`,{children:e.label})]})]},t)}).filter(Boolean);return(0,u.jsxs)(u.Fragment,{children:[y.map((e,n)=>(0,u.jsx)(`rect`,{x:C(e.x0),y:p,width:m*(e.x1-e.x0),height:h,fill:t[n],className:`sa-act-rect`},n)),b.map((e,t)=>(0,u.jsxs)(`g`,{children:[(0,u.jsx)(`line`,{x1:C(e.x),y1:p,x2:C(e.x),y2:w(0),className:`sa-transition`}),(0,u.jsx)(`text`,{x:C(e.x),y:32,textAnchor:`middle`,className:`sa-transition-lbl`,children:e.label})]},t)),y.map((e,t)=>(0,u.jsx)(`text`,{x:C((e.x0+e.x1)/2),y:n,textAnchor:`middle`,className:`sa-stage-lbl`,children:e.label},t)),r]})}function re(e){let t=x.length,n=h*.42,r=d/2,i=x.map((e,i)=>{let a=2*Math.PI*i/t-Math.PI/2;return{x:r+n*Math.cos(a),y:110+n*Math.sin(a),lx:r+83.12*Math.cos(a),ly:110+83.12*Math.sin(a),angle:a}}),a=e.map((e,t)=>{let n=D(e.stage,x);if(n<0)return null;let r=i[n];return(0,u.jsxs)(`g`,{children:[(0,u.jsx)(`circle`,{cx:r.x,cy:r.y,r:5,className:`sa-beat-dot-hero`}),(0,u.jsxs)(`text`,{x:r.lx,y:r.ly,textAnchor:`middle`,className:`sa-beat-lbl`,children:[E(e.label,T),e.label.length>T&&(0,u.jsx)(`title`,{children:e.label})]})]},t)}).filter(Boolean),o=i.map((e,t)=>t===0?`M ${e.x.toFixed(1)},${e.y.toFixed(1)}`:`L ${e.x.toFixed(1)},${e.y.toFixed(1)}`).join(` `)+` Z`;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`circle`,{cx:r,cy:110,r:n,fill:`none`,className:`sa-circle-guide`}),(0,u.jsx)(`path`,{d:o,fill:`none`,className:`sa-circle-path`}),i.map((e,t)=>{let n=e.lx<r-10?`end`:e.lx>250?`start`:`middle`;return(0,u.jsxs)(`g`,{children:[(0,u.jsx)(`circle`,{cx:e.x,cy:e.y,r:3.5,className:`sa-stage-dot`}),(0,u.jsx)(`text`,{x:e.lx,y:e.ly+4,textAnchor:n,className:`sa-hj-lbl`,children:x[t]})]},t)}),a,(0,u.jsx)(`text`,{x:r-n-18,y:116,textAnchor:`middle`,className:`sa-arc-lbl`,transform:`rotate(-90 ${r-n-18} 110)`,children:`DEPARTURE`}),(0,u.jsx)(`text`,{x:r,y:28,textAnchor:`middle`,className:`sa-arc-lbl`,children:`INITIATION`}),(0,u.jsx)(`text`,{x:315.12,y:116,textAnchor:`middle`,className:`sa-arc-lbl`,transform:`rotate(90 315.12 110)`,children:`RETURN`})]})}function ie(e){let t=w(.5),n=e.map((e,n)=>{let r=D(e.stage,S.map(e=>e.label)),i=r>=0?S[r].pct/100:-1;if(i<0)return null;let a=C(i);return(0,u.jsxs)(`g`,{children:[(0,u.jsx)(`line`,{x1:a,y1:t-16,x2:a,y2:t+6,className:`sa-stc-pin`}),(0,u.jsxs)(`text`,{x:a,y:t-22,textAnchor:`middle`,className:`sa-beat-lbl`,children:[E(e.label,T),e.label.length>T&&(0,u.jsx)(`title`,{children:e.label})]})]},n)}).filter(Boolean);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`rect`,{x:p,y:t-4,width:m,height:8,rx:4,className:`sa-stc-bar`}),[25,75].map((e,n)=>(0,u.jsx)(`line`,{x1:C(e/100),y1:t-20,x2:C(e/100),y2:t+20,className:`sa-stc-break`},n)),S.map((e,n)=>{let r=C(e.pct/100),i=n%2==0;return(0,u.jsxs)(`g`,{children:[(0,u.jsx)(`line`,{x1:r,y1:t-4,x2:r,y2:i?t-10:t+10,className:`sa-stc-tick`}),(0,u.jsx)(`text`,{x:r,y:i?t-16:t+22,textAnchor:`middle`,className:`sa-stc-lbl`,children:e.label})]},n)}),[0,25,50,75,100].map(e=>(0,u.jsxs)(`text`,{x:C(e/100),y:f-4,textAnchor:`middle`,className:`sa-pct-lbl`,children:[e,`%`]},e)),n]})}var O={metaphor:`color-mix(in oklab, var(--presence) 25%, transparent)`,simile:`color-mix(in oklab, var(--insight) 25%, transparent)`,alliteration:`color-mix(in oklab, var(--warning) 22%, transparent)`,irony:`color-mix(in oklab, var(--danger) 20%, transparent)`,anaphora:`color-mix(in oklab, var(--presence) 35%, transparent)`,hyperbole:`color-mix(in oklab, var(--warning) 32%, transparent)`,personification:`color-mix(in oklab, var(--insight) 30%, transparent)`,allusion:`color-mix(in oklab, var(--presence) 18%, transparent)`,parallelism:`color-mix(in oklab, var(--insight) 22%, transparent)`,antithesis:`color-mix(in oklab, var(--danger) 25%, transparent)`,oxymoron:`color-mix(in oklab, var(--warning) 28%, transparent)`,repetition:`color-mix(in oklab, var(--presence) 20%, transparent)`,chiasmus:`color-mix(in oklab, var(--insight) 28%, transparent)`,assonance:`color-mix(in oklab, var(--warning) 18%, transparent)`,other:`color-mix(in oklab, var(--text-muted) 22%, transparent)`},k={metaphor:`var(--presence)`,simile:`var(--insight)`,alliteration:`var(--warning)`,irony:`var(--danger)`,anaphora:`var(--presence)`,hyperbole:`var(--warning)`,personification:`var(--insight)`,allusion:`var(--presence)`,parallelism:`var(--insight)`,antithesis:`var(--danger)`,oxymoron:`var(--warning)`,repetition:`var(--presence)`,chiasmus:`var(--insight)`,assonance:`var(--warning)`,other:`var(--text-muted)`};function ae(e,t){let n=[...t].sort((e,t)=>t.phrase.length-e.phrase.length),r=[];for(let t of n){let n=e.toLowerCase(),i=t.phrase.toLowerCase(),a=0;for(;a<n.length;){let o=n.indexOf(i,a);if(o<0)break;r.some(e=>o<e.end&&o+t.phrase.length>e.start)||r.push({start:o,end:o+t.phrase.length,device:t.device,phrase:e.slice(o,o+t.phrase.length),note:t.note}),a=o+1}}r.sort((e,t)=>e.start-t.start);let i=[],a=0;for(let t of r)t.start>a&&i.push({kind:`plain`,text:e.slice(a,t.start)}),i.push({kind:`marked`,text:t.phrase,device:t.device,note:t.note}),a=t.end;return a<e.length&&i.push({kind:`plain`,text:e.slice(a)}),i.length?i:[{kind:`plain`,text:e}]}function oe({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,text:a,marks:o,caption:s,footer:c,delay:d}){let f=r[t]??r.doc,p=(0,l.useMemo)(()=>o??[],[o]),m=(0,l.useMemo)(()=>ae(a,p),[a,p]),h=(0,l.useMemo)(()=>[...new Set(p.map(e=>e.device))],[p]);return(0,u.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d??0)+`ms`},children:[e&&(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`p`,{className:`dm-passage`,children:m.map((e,t)=>e.kind===`plain`?e.text:(0,u.jsx)(`span`,{className:`dm-mark`,style:{"--dm-bg":O[e.device]??O.other,"--dm-border":k[e.device]??k.other},title:e.note?`${e.device}: ${e.note}`:e.device,"aria-label":`${e.text} [${e.device}${e.note?`: `+e.note:``}]`,children:e.text},t))}),h.length>0&&(0,u.jsx)(`div`,{className:`dm-legend`,children:h.map(e=>{let t=O[e]??O.other,n=k[e]??k.other,r=p.find(t=>t.device===e&&t.note);return(0,u.jsxs)(`span`,{className:`dm-legend-item`,children:[(0,u.jsx)(`span`,{className:`dm-legend-swatch`,style:{"--dm-bg":t,"--dm-border":n}}),(0,u.jsxs)(`span`,{className:`dm-legend-label`,children:[e[0].toUpperCase()+e.slice(1),r&&(0,u.jsxs)(`span`,{className:`dm-legend-note`,children:[` — `,r.note]})]})]},e)})}),s&&(0,u.jsx)(`div`,{className:`block-caption dm-caption`,children:s}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,dangerouslySetInnerHTML:i(c),style:{marginTop:12}})]})}var se={info:`var(--presence)`,success:`var(--insight)`,warn:`var(--warning)`,danger:`var(--danger)`,neutral:`var(--text-muted)`},ce={info:`spark`,success:`check`,warn:`alert`,danger:`shield`,neutral:`doc`};function le({title:e,icon:t,iconColor:n,tone:a=`info`,kicker:o,body:s,points:c,collapsed:d=!1,footer:f,delay:p}){let[m,h]=(0,l.useState)(!d),g=se[a],_=r[t??ce[a]]||r.spark;return(0,u.jsxs)(`div`,{className:`card reveal lay-callout`,style:{"--delay":(p||0)+`ms`,"--lc":g},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(_,{className:`ic`,style:{color:n||g}}),` `,e]}),(0,u.jsxs)(`button`,{className:`lay-co-band`,type:`button`,onClick:()=>h(e=>!e),"aria-expanded":m,children:[(0,u.jsx)(`span`,{className:`lay-co-bar`}),(0,u.jsx)(_,{className:`ic lay-co-kic-ic`,style:{color:g}}),(0,u.jsx)(`span`,{className:`lay-co-kicker`,children:o||a}),(0,u.jsx)(r.chevR,{className:`ic lay-chev`,style:{transform:m?`rotate(90deg)`:`none`}})]}),(0,u.jsx)(`div`,{className:`lay-co-body ${m?`open`:``}`,children:(0,u.jsxs)(`div`,{className:`lay-co-inner`,children:[(0,u.jsx)(`div`,{className:`lay-co-text`,dangerouslySetInnerHTML:i(s)}),c&&c.length>0&&(0,u.jsx)(`ul`,{className:`lay-co-points`,children:c.map((e,t)=>(0,u.jsxs)(`li`,{children:[(0,u.jsx)(r.chevR,{className:`ic lay-co-pt-ic`,style:{color:g}}),(0,u.jsx)(`span`,{dangerouslySetInnerHTML:i(e)})]},t))})]})}),f&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(f)})]})}var A={yes:{color:`var(--insight)`,label:`Yes`,icon:`check`},no:{color:`var(--danger)`,label:`No`,icon:`x`},maybe:{color:`var(--warning)`,label:`Maybe`,icon:`alert`},caution:{color:`var(--warning)`,label:`Be careful`,icon:`alert`}},ue={high:`High confidence`,medium:`Medium confidence`,low:`Low confidence`},de={high:3,medium:2,low:1};function fe({title:e,icon:t,iconColor:n,verdict:a,stance:o=`maybe`,label:s,reason:c,caveat:l,confidence:d,footer:f,delay:p}){let m=A[o]??A.maybe,h=r[t??m.icon]||r.spark,g=r[m.icon]||r.check;return(0,u.jsxs)(`div`,{className:`card reveal lay-verdict`,style:{"--delay":(p||0)+`ms`,"--vc":m.color},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(h,{className:`ic`,style:{color:n||m.color}}),` `,e]}),(0,u.jsxs)(`div`,{className:`lay-vd-head`,children:[(0,u.jsxs)(`span`,{className:`lay-vd-badge`,children:[(0,u.jsx)(g,{className:`ic lay-vd-badge-ic`}),s||m.label]}),d&&(0,u.jsxs)(`span`,{className:`lay-vd-conf`,children:[(0,u.jsx)(`span`,{className:`lay-vd-dots`,"aria-hidden":`true`,children:[0,1,2].map(e=>(0,u.jsx)(`span`,{className:`lay-vd-dot ${e<de[d]?`on`:``}`},e))}),ue[d]]})]}),(0,u.jsx)(`div`,{className:`lay-vd-verdict`,dangerouslySetInnerHTML:i(a)}),c&&(0,u.jsxs)(`div`,{className:`lay-vd-reason`,children:[(0,u.jsx)(`span`,{className:`lay-vd-tag`,children:`Why`}),(0,u.jsx)(`span`,{dangerouslySetInnerHTML:i(c)})]}),l&&(0,u.jsxs)(`div`,{className:`lay-vd-caveat`,children:[(0,u.jsx)(r.alert,{className:`ic lay-vd-caveat-ic`}),(0,u.jsx)(`span`,{dangerouslySetInnerHTML:i(l)})]}),f&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(f)})]})}var pe={best:{color:`var(--insight)`,label:`Best case`},likely:{color:`var(--presence)`,label:`Likely`},worst:{color:`var(--danger)`,label:`Worst case`}};function me({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,metric:a,scenarios:o,highlight:s,footer:c,delay:l}){let d=r[t]||r.chart,f=s??o.findIndex(e=>e.kind===`likely`);return(0,u.jsxs)(`div`,{className:`card reveal lay-scenarios`,style:{"--delay":(l||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),a&&(0,u.jsx)(`div`,{className:`lay-sc-metric faint`,children:a}),(0,u.jsx)(`div`,{className:`lay-sc-grid`,children:o.map((e,t)=>{let n=(e.kind?pe[e.kind]:void 0)??{color:`var(--text-muted)`,label:e.label||`Scenario`};return(0,u.jsxs)(`div`,{className:`lay-sc-panel ${t===f?`hi`:``}`,style:{"--sc":n.color},children:[(0,u.jsx)(`span`,{className:`lay-sc-bar`}),(0,u.jsx)(`span`,{className:`lay-sc-label`,children:e.label||n.label}),(0,u.jsx)(`span`,{className:`lay-sc-value`,children:e.value}),e.detail&&(0,u.jsx)(`span`,{className:`lay-sc-detail faint`,dangerouslySetInnerHTML:i(e.detail)}),e.points&&e.points.length>0&&(0,u.jsx)(`ul`,{className:`lay-sc-points`,children:e.points.map((e,t)=>(0,u.jsxs)(`li`,{children:[(0,u.jsx)(`span`,{className:`lay-sc-pt-dot`}),(0,u.jsx)(`span`,{dangerouslySetInnerHTML:i(e)})]},t))})]},t)})}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}function he({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,sections:a,defaultOpen:o=0,multi:s=!1,footer:c,delay:d}){let f=r[t]||r.layers,[p,m]=(0,l.useState)(()=>o>=0?new Set([o]):new Set),h=e=>m(t=>{let n=new Set(s?t:[]);return t.has(e)?n.delete(e):n.add(e),n});return(0,u.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`div`,{className:`lay-acc-list`,children:a.map((e,t)=>{let a=p.has(t),o=e.icon?r[e.icon]:null;return(0,u.jsxs)(`div`,{className:`lay-acc-item ${a?`open`:``}`,children:[(0,u.jsxs)(`button`,{type:`button`,className:`lay-acc-head`,onClick:()=>h(t),"aria-expanded":a,children:[o&&(0,u.jsx)(o,{className:`ic lay-acc-lead`,style:{color:e.tagColor||n}}),(0,u.jsx)(`span`,{className:`lay-acc-label`,children:e.label}),e.tag&&(0,u.jsx)(`span`,{className:`lay-acc-tag`,style:e.tagColor?{color:e.tagColor,borderColor:`currentColor`}:void 0,children:e.tag}),e.meta&&(0,u.jsx)(`span`,{className:`lay-acc-meta`,children:e.meta}),(0,u.jsx)(r.arrowDown,{className:`ic lay-acc-chev`,style:{transform:a?`rotate(180deg)`:`none`}})]}),(0,u.jsx)(`div`,{className:`lay-acc-body ${a?`open`:``}`,children:(0,u.jsx)(`div`,{className:`lay-acc-body-inner`,dangerouslySetInnerHTML:i(e.body)})})]},t)})}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}function j({side:e,label:t,items:n,accent:a,hover:o,setHover:s}){let c=e===`pro`?r.check:r.x;return(0,u.jsxs)(`div`,{className:`lay-pc-col`,style:{"--pc":a},children:[(0,u.jsxs)(`div`,{className:`lay-pc-head`,children:[(0,u.jsx)(c,{className:`ic`,style:{color:a}}),(0,u.jsx)(`span`,{children:t}),(0,u.jsx)(`span`,{className:`lay-pc-count tab-num`,children:n.length})]}),(0,u.jsx)(`ul`,{className:`lay-pc-list`,children:n.map((t,n)=>{let r=o?.side===e&&o.i===n,l=Math.max(1,Math.min(5,t.weight??3));return(0,u.jsxs)(`li`,{className:`lay-pc-item ${r?`on`:``}`,onMouseEnter:()=>s({side:e,i:n}),onMouseLeave:()=>s(null),children:[(0,u.jsx)(c,{className:`ic lay-pc-mark`,style:{color:a}}),(0,u.jsxs)(`div`,{className:`lay-pc-body`,children:[(0,u.jsx)(`span`,{className:`lay-pc-text`,dangerouslySetInnerHTML:i(t.text)}),(0,u.jsx)(`span`,{className:`lay-pc-pips`,"aria-label":`weight ${l} of 5`,children:[0,1,2,3,4].map(e=>(0,u.jsx)(`span`,{className:`lay-pc-pip ${e<l?`fill`:``}`,style:{background:e<l?a:void 0}},e))}),t.note&&r&&(0,u.jsx)(`span`,{className:`lay-pc-note faint`,dangerouslySetInnerHTML:i(t.note)})]})]},n)})})]})}function ge({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,prosLabel:a=`Pros`,consLabel:o=`Cons`,pros:s,cons:c,verdict:d,footer:f,delay:p}){let m=r[t]||r.layers,[h,g]=(0,l.useState)(null),_=s.reduce((e,t)=>e+(t.weight??3),0),v=c.reduce((e,t)=>e+(t.weight??3),0),y=_/(_+v||1)*100;return(0,u.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsxs)(`div`,{className:`lay-pc-grid`,children:[(0,u.jsx)(j,{side:`pro`,label:a,items:s,accent:`var(--insight)`,hover:h,setHover:g}),(0,u.jsx)(`div`,{className:`lay-pc-divider`}),(0,u.jsx)(j,{side:`con`,label:o,items:c,accent:`var(--danger)`,hover:h,setHover:g})]}),(0,u.jsxs)(`div`,{className:`lay-pc-verdict`,children:[(0,u.jsxs)(`div`,{className:`lay-pc-vbar`,children:[(0,u.jsx)(`span`,{className:`lay-pc-vbar-l`,style:{width:y+`%`}}),(0,u.jsx)(`span`,{className:`lay-pc-vbar-r`,style:{width:100-y+`%`}})]}),(0,u.jsxs)(`div`,{className:`lay-pc-vrow`,children:[(0,u.jsxs)(`span`,{className:`lay-pc-vlabel`,style:{color:`var(--insight)`},children:[(0,u.jsx)(`span`,{className:`tab-num`,children:_}),` for`]}),d?(0,u.jsx)(`span`,{className:`lay-pc-vtext`,dangerouslySetInnerHTML:i(d)}):(0,u.jsx)(`span`,{className:`lay-pc-vtext faint`,children:y>=50?`Leans for`:`Leans against`}),(0,u.jsxs)(`span`,{className:`lay-pc-vlabel`,style:{color:`var(--danger)`},children:[(0,u.jsx)(`span`,{className:`tab-num`,children:v}),` against`]})]})]}),f&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(f)})]})}function _e({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,heading:a,items:o,footer:s,delay:c}){let d=r[t]||r.spark,[f,p]=(0,l.useState)(new Set),m=e=>p(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}),h=o.length?Math.round(f.size/o.length*100):0;return(0,u.jsxs)(`div`,{className:`card reveal lay-ta`,style:{"--delay":(c||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),a&&(0,u.jsx)(`div`,{className:`lay-ta-heading`,children:a}),(0,u.jsx)(`ol`,{className:`lay-ta-list`,children:o.map((e,t)=>{let n=e.color||`var(--presence)`,a=f.has(t);return(0,u.jsxs)(`li`,{className:`lay-ta-item ${a?`done`:``}`,children:[(0,u.jsx)(`button`,{type:`button`,className:`lay-ta-num`,style:{"--tc":n},onClick:()=>m(t),"aria-pressed":a,children:a?(0,u.jsx)(r.check,{className:`ic`}):(0,u.jsx)(`span`,{className:`tab-num`,children:t+1})}),(0,u.jsxs)(`div`,{className:`lay-ta-body`,children:[(0,u.jsx)(`span`,{className:`lay-ta-text`,dangerouslySetInnerHTML:i(e.text)}),e.detail&&(0,u.jsx)(`span`,{className:`lay-ta-detail faint`,dangerouslySetInnerHTML:i(e.detail)})]})]},t)})}),(0,u.jsxs)(`div`,{className:`lay-ta-foot`,children:[(0,u.jsx)(`div`,{className:`lay-ta-track`,children:(0,u.jsx)(`span`,{className:`lay-ta-fill`,style:{width:h+`%`}})}),(0,u.jsxs)(`span`,{className:`lay-ta-pct tab-num faint`,children:[f.size,`/`,o.length]})]}),s&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(s)})]})}function ve({title:e,icon:t=`chat`,iconColor:n=`var(--presence)`,items:a,defaultOpen:o=0,multi:s=!1,footer:c,delay:d}){let f=r[t]||r.chat,[p,m]=(0,l.useState)(()=>o>=0?new Set([o]):new Set),h=e=>m(t=>{let n=new Set(s?t:[]);return t.has(e)?n.delete(e):n.add(e),n});return(0,u.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`div`,{className:`lay-faq-list`,children:a.map((e,t)=>{let n=p.has(t);return(0,u.jsxs)(`div`,{className:`lay-faq-item ${n?`open`:``}`,children:[(0,u.jsxs)(`button`,{type:`button`,className:`lay-faq-q`,onClick:()=>h(t),"aria-expanded":n,children:[(0,u.jsx)(r.plus,{className:`ic lay-faq-sign`,style:{transform:n?`rotate(45deg)`:`none`}}),(0,u.jsx)(`span`,{className:`lay-faq-q-text`,dangerouslySetInnerHTML:i(e.q)}),e.tag&&(0,u.jsx)(`span`,{className:`lay-faq-tag`,children:e.tag})]}),(0,u.jsx)(`div`,{className:`lay-faq-a ${n?`open`:``}`,children:(0,u.jsx)(`div`,{className:`lay-faq-a-inner`,dangerouslySetInnerHTML:i(e.a)})})]},t)})}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}function ye({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,tabs:a,defaultTab:o=0,accent:s=`var(--presence)`,footer:c,delay:d}){let f=r[t]||r.layers,[p,m]=(0,l.useState)(Math.max(0,Math.min(o,a.length-1))),h=a[p],g=(0,l.useRef)([]),_=(e,t)=>{let n;if(e.key===`ArrowRight`||e.key===`ArrowDown`)n=(t+1)%a.length;else if(e.key===`ArrowLeft`||e.key===`ArrowUp`)n=(t-1+a.length)%a.length;else if(e.key===`Home`)n=0;else if(e.key===`End`)n=a.length-1;else return;e.preventDefault(),m(n),g.current[n]?.focus()},v=Math.max(1,a.length);return(0,u.jsxs)(`div`,{className:`card reveal lay-tabs`,style:{"--delay":(d||0)+`ms`,"--tab-acc":s},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsxs)(`div`,{className:`lay-tab-bar`,role:`tablist`,children:[a.map((e,t)=>{let n=e.icon?r[e.icon]:null;return(0,u.jsxs)(`button`,{ref:e=>{g.current[t]=e},role:`tab`,type:`button`,className:`lay-tab ${t===p?`on`:``}`,"aria-selected":t===p,tabIndex:t===p?0:-1,onClick:()=>m(t),onKeyDown:e=>_(e,t),children:[n&&(0,u.jsx)(n,{className:`ic lay-tab-ic`}),(0,u.jsx)(`span`,{children:e.label}),e.badge!=null&&(0,u.jsx)(`span`,{className:`lay-tab-badge tab-num`,children:e.badge})]},t)}),(0,u.jsx)(`span`,{className:`lay-tab-underline`,style:{width:`${100/v}%`,transform:`translateX(${p*100}%)`}})]}),(0,u.jsx)(`div`,{className:`lay-tab-panel`,role:`tabpanel`,children:h&&(0,u.jsx)(`div`,{className:`lay-tab-body`,dangerouslySetInnerHTML:i(h.body)})},p),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}function M({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,eyebrow:a,heading:o,sub:s,badge:c,badgeColor:d=`var(--presence)`,chips:f,footer:p,delay:m}){let h=r[t]||r.layers,[g,_]=(0,l.useState)(0);return(0,u.jsxs)(`div`,{className:`card reveal lay-div`,style:{"--delay":(m||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(h,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsxs)(`div`,{className:`lay-div-main`,children:[(0,u.jsxs)(`div`,{className:`lay-div-head`,children:[a&&(0,u.jsx)(`div`,{className:`lay-div-eyebrow`,children:a}),(0,u.jsx)(`div`,{className:`lay-div-heading`,children:o})]}),c&&(0,u.jsx)(`span`,{className:`lay-div-badge tab-num`,style:{"--bc":d},children:c})]}),(0,u.jsxs)(`div`,{className:`lay-div-rule`,children:[(0,u.jsx)(`span`,{className:`lay-div-rule-line`}),(0,u.jsx)(`span`,{className:`lay-div-rule-dot`,style:{background:d}}),(0,u.jsx)(`span`,{className:`lay-div-rule-line`})]}),s&&(0,u.jsx)(`div`,{className:`lay-div-sub`,dangerouslySetInnerHTML:i(s)}),f&&f.length>0&&(0,u.jsx)(`div`,{className:`lay-div-chips`,children:f.map((e,t)=>{let n=e.color||`var(--presence)`;return(0,u.jsx)(`button`,{type:`button`,className:`lay-div-chip ${t===g?`on`:``}`,style:{"--cc":n},onClick:()=>_(t),children:e.label},t)})}),p&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(p)})]})}var N={info:`var(--presence)`,success:`var(--insight)`,warn:`var(--warning)`,danger:`var(--danger)`,neutral:`var(--text-muted)`};function P({title:e,icon:t=`quote`,iconColor:n,quote:a,author:o,role:s,tone:c=`info`,variants:d,footer:f,delay:p}){let m=r[t]||r.quote,h=N[c],g=[{quote:a,author:o,role:s},...d||[]],[_,v]=(0,l.useState)(0),y=g[_];return(0,u.jsxs)(`div`,{className:`card reveal lay-pq`,style:{"--delay":(p||0)+`ms`,"--pq":h},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(m,{className:`ic`,style:{color:n||h}}),` `,e]}),(0,u.jsxs)(`figure`,{className:`lay-pq-fig`,children:[(0,u.jsx)(`span`,{className:`lay-pq-bar`}),(0,u.jsx)(r.quote,{className:`ic lay-pq-mark`,style:{color:h}}),(0,u.jsx)(`blockquote`,{className:`lay-pq-quote`,dangerouslySetInnerHTML:i(y.quote)},_),(y.author||y.role)&&(0,u.jsxs)(`figcaption`,{className:`lay-pq-cap`,children:[y.author&&(0,u.jsx)(`span`,{className:`lay-pq-author`,children:y.author}),y.role&&(0,u.jsx)(`span`,{className:`lay-pq-role faint`,children:y.role})]})]}),g.length>1&&(0,u.jsxs)(`div`,{className:`lay-pq-nav`,children:[(0,u.jsx)(`button`,{type:`button`,className:`lay-pq-arrow mini-btn`,onClick:()=>v(e=>(e-1+g.length)%g.length),"aria-label":`previous quote`,children:(0,u.jsx)(r.chevR,{className:`ic`,style:{transform:`rotate(180deg)`}})}),(0,u.jsx)(`span`,{className:`lay-pq-dots`,children:g.map((e,t)=>(0,u.jsx)(`button`,{type:`button`,className:`lay-pq-dot ${t===_?`on`:``}`,onClick:()=>v(t),"aria-label":`quote ${t+1}`},t))}),(0,u.jsx)(`button`,{type:`button`,className:`lay-pq-arrow mini-btn`,onClick:()=>v(e=>(e+1)%g.length),"aria-label":`next quote`,children:(0,u.jsx)(r.chevR,{className:`ic`})})]}),f&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(f)})]})}function be({title:e,icon:t=`slides`,iconColor:n=`var(--presence)`,panels:a,start:o=0,footer:s,delay:c}){let d=r[t]||r.slides,f=Math.max(0,a.length-1),[p,m]=(0,l.useState)(Math.max(0,Math.min(o,f))),h=a[p],g=h?.color||`var(--presence)`,_=h?.icon&&r[h.icon]||r.spark,v=Math.max(1,a.length),y=e=>m(t=>Math.max(0,Math.min(f,t+e)));return(0,u.jsxs)(`div`,{className:`card reveal lay-story`,style:{"--delay":(c||0)+`ms`,"--sc":g},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`div`,{className:`lay-story-stage`,children:(0,u.jsxs)(`div`,{className:`lay-story-panel`,children:[(0,u.jsx)(`div`,{className:`lay-story-badge`,style:{background:g},children:(0,u.jsx)(_,{className:`ic`})}),(0,u.jsxs)(`div`,{className:`lay-story-num tab-num`,children:[p+1,(0,u.jsxs)(`span`,{className:`lay-story-of`,children:[`/ `,v]})]}),(0,u.jsx)(`div`,{className:`lay-story-heading`,children:h?.heading}),h?.caption&&(0,u.jsx)(`div`,{className:`lay-story-caption faint`,children:h.caption}),(0,u.jsx)(`div`,{className:`lay-story-body`,dangerouslySetInnerHTML:i(h?.body||``)})]})},p),(0,u.jsx)(`div`,{className:`lay-story-track`,children:a.map((e,t)=>(0,u.jsx)(`button`,{type:`button`,className:`lay-story-tick ${t===p?`on`:``} ${t<p?`past`:``}`,style:{"--tk":e.color||`var(--presence)`},onClick:()=>m(t),"aria-label":`panel ${t+1}`},t))}),(0,u.jsxs)(`div`,{className:`lay-story-nav`,children:[(0,u.jsxs)(`button`,{type:`button`,className:`mini-btn`,onClick:()=>y(-1),disabled:p===0,children:[(0,u.jsx)(r.chevR,{className:`ic`,style:{transform:`rotate(180deg)`}}),` Back`]}),(0,u.jsxs)(`span`,{className:`lay-story-pos faint tab-num`,children:[p+1,` of `,v]}),(0,u.jsxs)(`button`,{type:`button`,className:`mini-btn accent`,onClick:()=>y(1),disabled:p===f,children:[`Next `,(0,u.jsx)(r.chevR,{className:`ic`})]})]}),s&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(s)})]})}var F=[{key:`setup`,label:`Setup`,icon:`doc`,color:`var(--text-muted)`},{key:`action`,label:`Action`,icon:`play`,color:`var(--presence)`},{key:`result`,label:`Result`,icon:`chart`,color:`var(--insight)`},{key:`lesson`,label:`Lesson`,icon:`spark`,color:`var(--warning)`}];function xe({title:e,icon:t=`proof`,iconColor:n=`var(--presence)`,subject:a,setup:o,action:s,result:c,lesson:d,defaultStage:f=`result`,footer:p,delay:m}){let h=r[t]||r.proof,g={setup:o,action:s,result:c,lesson:d},[_,v]=(0,l.useState)(f);return(0,u.jsxs)(`div`,{className:`card reveal lay-cs`,style:{"--delay":(m||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(h,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`div`,{className:`lay-cs-subject`,children:a}),(0,u.jsx)(`div`,{className:`lay-cs-stages`,children:F.map((e,t)=>{let n=g[e.key],a=r[e.icon],o=_===e.key;return(0,u.jsxs)(`div`,{className:`lay-cs-stage ${o?`open`:``}`,style:{"--st":e.color},children:[(0,u.jsxs)(`button`,{type:`button`,className:`lay-cs-head`,onClick:()=>v(e.key),"aria-expanded":o,children:[(0,u.jsxs)(`span`,{className:`lay-cs-rail`,children:[(0,u.jsx)(`span`,{className:`lay-cs-node`,children:(0,u.jsx)(a,{className:`ic`})}),t<F.length-1&&(0,u.jsx)(`span`,{className:`lay-cs-line`})]}),(0,u.jsx)(`span`,{className:`lay-cs-label`,children:e.label}),n.metric&&(0,u.jsx)(`span`,{className:`lay-cs-metric tab-num`,children:n.metric}),(0,u.jsx)(r.chevR,{className:`ic lay-chev`,style:{transform:o?`rotate(90deg)`:`none`}})]}),(0,u.jsx)(`div`,{className:`lay-cs-body ${o?`open`:``}`,children:(0,u.jsx)(`div`,{className:`lay-cs-body-inner`,dangerouslySetInnerHTML:i(n.body)})})]},e.key)})}),p&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(p)})]})}function Se(e){return e.replace(/<[^>]*>/g,``)}function Ce({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,placeholder:a=`Filter terms…`,items:o,footer:s,delay:c}){let d=r[t]||r.doc,[f,p]=(0,l.useState)(``),m=(0,l.useMemo)(()=>{let e=f.trim().toLowerCase();return e?o.map((e,t)=>({it:e,i:t})).filter(({it:t})=>(t.term+` `+Se(t.def)+` `+(t.tag||``)).toLowerCase().includes(e)):o.map((e,t)=>({it:e,i:t}))},[f,o]);return(0,u.jsxs)(`div`,{className:`card reveal lay-dl`,style:{"--delay":(c||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsxs)(`label`,{className:`lay-dl-search`,children:[(0,u.jsx)(r.eye,{className:`ic lay-dl-search-ic`}),(0,u.jsx)(`input`,{className:`lay-dl-input`,type:`text`,value:f,placeholder:a,onChange:e=>p(e.target.value)}),f&&(0,u.jsx)(`button`,{type:`button`,className:`lay-dl-clear`,onClick:()=>p(``),"aria-label":`clear`,children:(0,u.jsx)(r.x,{className:`ic`})}),(0,u.jsx)(`span`,{className:`lay-dl-count tab-num faint`,children:m.length})]}),(0,u.jsxs)(`dl`,{className:`lay-dl-list`,children:[m.map(({it:e,i:t})=>(0,u.jsxs)(`div`,{className:`lay-dl-item`,children:[(0,u.jsxs)(`dt`,{className:`lay-dl-term`,children:[(0,u.jsx)(`span`,{className:`lay-dl-dot`,style:{background:e.color||`var(--presence)`}}),(0,u.jsx)(`span`,{className:`lay-dl-term-text`,children:e.term}),e.tag&&(0,u.jsx)(`span`,{className:`lay-dl-tag`,children:e.tag})]}),(0,u.jsx)(`dd`,{className:`lay-dl-def`,dangerouslySetInnerHTML:i(e.def)})]},t)),m.length===0&&(0,u.jsxs)(`div`,{className:`lay-dl-empty faint`,children:[(0,u.jsx)(r.eyeOff,{className:`ic`}),` No terms match “`,f,`”.`]})]}),s&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(s)})]})}var I={"worth-it":{color:`var(--insight)`,label:`Worth it`,icon:`check`},skip:{color:`var(--danger)`,label:`Skip it`,icon:`x`},depends:{color:`var(--warning)`,label:`Depends`,icon:`alert`}};function we({title:e,icon:t,iconColor:n,product:a,verdict:o,price:s,priceNote:c,worthItIf:l,skipIf:d,dealBreaker:f,forWho:p,bottomLine:m,footer:h,delay:g}){let _=I[o]??I.depends,v=r[t??`cart`]||r.cart,y=r[_.icon]||r.check,b=l??[],x=d??[];return(0,u.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g||0)+`ms`,"--wi":_.color},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(v,{className:`ic`,style:{color:n||_.color}}),` `,e]}),(0,u.jsxs)(`div`,{className:`wi-head`,children:[(0,u.jsxs)(`div`,{className:`wi-head-l`,children:[a&&(0,u.jsx)(`div`,{className:`wi-product`,children:a}),s&&(0,u.jsxs)(`div`,{className:`wi-price`,children:[(0,u.jsx)(`span`,{className:`wi-price-val`,children:s}),c&&(0,u.jsx)(`span`,{className:`wi-price-note`,children:c})]})]}),(0,u.jsxs)(`span`,{className:`wi-badge`,children:[(0,u.jsx)(y,{className:`ic wi-badge-ic`}),` `,_.label]})]}),(b.length>0||x.length>0)&&(0,u.jsxs)(`div`,{className:`wi-split`,children:[b.length>0&&(0,u.jsxs)(`div`,{className:`wi-col wi-col--yes`,children:[(0,u.jsx)(`div`,{className:`wi-col-h`,children:`Worth it if`}),(0,u.jsx)(`ul`,{className:`wi-list`,children:b.map((e,t)=>(0,u.jsxs)(`li`,{children:[(0,u.jsx)(r.check,{className:`ic wi-li-ic`}),(0,u.jsx)(`span`,{children:e})]},t))})]}),x.length>0&&(0,u.jsxs)(`div`,{className:`wi-col wi-col--no`,children:[(0,u.jsx)(`div`,{className:`wi-col-h`,children:`Skip if`}),(0,u.jsx)(`ul`,{className:`wi-list`,children:x.map((e,t)=>(0,u.jsxs)(`li`,{children:[(0,u.jsx)(r.x,{className:`ic wi-li-ic`}),(0,u.jsx)(`span`,{children:e})]},t))})]})]}),f&&(0,u.jsxs)(`div`,{className:`wi-dealbreaker`,children:[(0,u.jsx)(r.alert,{className:`ic`}),(0,u.jsxs)(`span`,{children:[(0,u.jsx)(`b`,{children:`Deal-breaker:`}),` `,f]})]}),(p||m)&&(0,u.jsxs)(`div`,{className:`wi-bottom`,children:[p&&(0,u.jsxs)(`div`,{className:`wi-forwho`,children:[(0,u.jsx)(`span`,{className:`wi-forwho-tag`,children:`For`}),` `,p]}),m&&(0,u.jsx)(`div`,{className:`wi-bottomline`,dangerouslySetInnerHTML:i(m)})]}),h&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(h)})]})}function Te({reflection:e,follow:t,chip:n,delay:r}){return(0,u.jsxs)(`div`,{className:`card reveal cn-card`,style:{"--delay":(r||0)+`ms`},children:[(0,u.jsx)(`p`,{className:`cn-reflection`,children:e}),t&&(0,u.jsx)(`p`,{className:`cn-follow`,children:t}),n&&(0,u.jsx)(`span`,{className:`cn-chip`,children:n})]})}var L={good:`var(--insight)`,caution:`var(--warning)`,bad:`var(--danger)`};function Ee({title:e,icon:t=`alert`,iconColor:n,levels:a,atLevel:o,marker:s,reason:c,watchFor:l,caveat:d,footer:f,delay:p}){let m=r[t]||r.alert,h=a??[],g=typeof o==`number`?Math.max(0,Math.min(h.length-1,o)):-1,_=g>=0?h[g]:void 0,v=_?.tone?L[_.tone]:`var(--presence)`,y=l??[];return(0,u.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(m,{className:`ic`,style:{color:n||v}}),` `,e]}),(0,u.jsx)(`div`,{className:`pc-track`,children:h.map((e,t)=>(0,u.jsx)(`div`,{className:`pc-seg`+(t===g?` on`:``),style:{"--pc":e.tone?L[e.tone]:`var(--text-muted)`}},t))}),(0,u.jsx)(`div`,{className:`pc-labels`,children:h.map((e,t)=>(0,u.jsx)(`span`,{className:`pc-label`+(t===g?` on`:``),children:e.label},t))}),_&&(0,u.jsxs)(`div`,{className:`pc-current`,style:{"--pc":v},children:[(0,u.jsx)(`span`,{className:`pc-marker`,children:s||`Where this falls`}),(0,u.jsx)(`div`,{className:`pc-cur-label`,children:_.label}),_.detail&&(0,u.jsx)(`div`,{className:`pc-cur-detail`,children:_.detail})]}),c&&(0,u.jsx)(`div`,{className:`pc-reason`,children:c}),y.length>0&&(0,u.jsxs)(`div`,{className:`pc-watch`,children:[(0,u.jsxs)(`div`,{className:`pc-watch-h`,children:[(0,u.jsx)(r.alert,{className:`ic`}),` Get it checked if`]}),(0,u.jsx)(`ul`,{className:`pc-watch-list`,children:y.map((e,t)=>(0,u.jsx)(`li`,{children:e},t))})]}),d&&(0,u.jsx)(`div`,{className:`pc-caveat`,children:d}),f&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(f)})]})}var De={common:{label:`Common`,color:`var(--insight)`},"less-common":{label:`Less common`,color:`var(--warning)`},rare:{label:`Rare`,color:`var(--text-muted)`}};function Oe({title:e,icon:t=`eye`,iconColor:n=`var(--presence)`,causes:a,prompt:o,caveat:s,footer:c,delay:l}){let d=r[t]||r.eye,f=a??[];return(0,u.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`ol`,{className:`df-list`,children:f.map((e,t)=>{let n=e.likelihood?De[e.likelihood]:void 0;return(0,u.jsxs)(`li`,{className:`df-cause`,children:[(0,u.jsxs)(`div`,{className:`df-head`,children:[(0,u.jsx)(`span`,{className:`df-rank`,children:t+1}),(0,u.jsx)(`span`,{className:`df-name`,children:e.name}),n&&(0,u.jsx)(`span`,{className:`df-band`,style:{"--db":n.color},children:n.label}),e.serious&&(0,u.jsxs)(`span`,{className:`df-serious`,children:[(0,u.jsx)(r.alert,{className:`ic`}),` serious`]})]}),e.tell&&(0,u.jsxs)(`div`,{className:`df-tell`,children:[(0,u.jsx)(`span`,{className:`df-tag df-tag--fit`,children:`Fits if`}),` `,e.tell]}),e.pointsAway&&(0,u.jsxs)(`div`,{className:`df-away`,children:[(0,u.jsx)(`span`,{className:`df-tag`,children:`Points away`}),` `,e.pointsAway]})]},t)})}),o&&(0,u.jsxs)(`div`,{className:`df-prompt`,children:[(0,u.jsx)(r.check,{className:`ic`}),(0,u.jsx)(`span`,{children:o})]}),s&&(0,u.jsx)(`div`,{className:`df-caveat`,children:s}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}function ke({title:e=`A gentler take`,icon:t=`spark`,iconColor:n=`var(--presence)`,thought:a,distortion:o,reframe:s,footer:c,delay:l}){let d=r[t]||r.spark;return(0,u.jsxs)(`div`,{className:`card reveal rf-card`,style:{"--delay":(l||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsxs)(`div`,{className:`rf-thought`,children:[(0,u.jsx)(`div`,{className:`rf-tag`,children:`What you're telling yourself`}),(0,u.jsxs)(`p`,{className:`rf-quote`,children:[(0,u.jsx)(r.quote,{className:`ic rf-quote-ic`,style:{width:14,height:14}}),(0,u.jsx)(`span`,{dangerouslySetInnerHTML:i(a)})]}),o&&(0,u.jsx)(`span`,{className:`rf-distortion`,children:o})]}),(0,u.jsxs)(`div`,{className:`rf-shift`,"aria-hidden":`true`,children:[(0,u.jsx)(`span`,{className:`rf-shift-line`}),(0,u.jsx)(r.spark,{className:`ic rf-shift-ic`,style:{width:13,height:13}}),(0,u.jsx)(`span`,{className:`rf-shift-line`})]}),(0,u.jsxs)(`div`,{className:`rf-reframe`,children:[(0,u.jsx)(`div`,{className:`rf-tag rf-tag--true`,children:`What's also true`}),(0,u.jsx)(`p`,{className:`rf-counter`,dangerouslySetInnerHTML:i(s)})]}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}var R={478:{inhale:4,hold:7,exhale:8},box:{inhale:4,hold:4,exhale:4},calm:{inhale:4,hold:0,exhale:6}};function Ae({title:e=`Breathe with me`,icon:t=`wind`,iconColor:n=`var(--presence)`,pattern:i=`calm`,inhale:a,hold:o,exhale:s,note:c,delay:l}){let d=r[t]||r.wind,f=R[i]??R.calm,p=z(a??f.inhale,2,12),m=z(o??f.hold,0,12),h=z(s??f.exhale,2,14),g=p+m+h,_=m>0,v=p/g,y=(p+m)/g;return(0,u.jsxs)(`div`,{className:`card reveal bp-card`,style:{"--delay":(l||0)+`ms`,"--bp-cycle":g+`s`,"--bp-in-end":B(v),"--bp-hold-end":B(y),"--bp-accent":n},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsxs)(`div`,{className:`bp-stage`,role:`img`,"aria-label":`Breathing pacer: ${je(p,m,h)}`,children:[(0,u.jsx)(`div`,{className:`bp-ring`,"aria-hidden":`true`,children:(0,u.jsx)(`span`,{className:`bp-orb`})}),(0,u.jsxs)(`div`,{className:`bp-caption`,"aria-hidden":`true`,children:[(0,u.jsxs)(`span`,{className:`bp-phase bp-phase--in`,children:[`Breathe in`,(0,u.jsxs)(`span`,{className:`bp-secs`,children:[p,`s`]})]}),_&&(0,u.jsxs)(`span`,{className:`bp-phase bp-phase--hold`,children:[`Hold`,(0,u.jsxs)(`span`,{className:`bp-secs`,children:[m,`s`]})]}),(0,u.jsxs)(`span`,{className:`bp-phase bp-phase--out`,children:[`Breathe out`,(0,u.jsxs)(`span`,{className:`bp-secs`,children:[h,`s`]})]})]})]}),(0,u.jsx)(`p`,{className:`bp-still`,children:Me(p,m,h)}),c&&(0,u.jsx)(`div`,{className:`bp-note`,children:c})]})}function z(e,t,n){return Number.isFinite(e)?Math.min(n,Math.max(t,e)):t}function B(e){return(e*100).toFixed(2)+`%`}function je(e,t,n){return t>0?`in ${e} seconds, hold ${t}, out ${n}`:`in ${e} seconds, out ${n}`}function Me(e,t,n){return t>0?`In through your nose for ${e}, hold for ${t}, out slowly for ${n}. Repeat a few times at your own pace.`:`In through your nose for ${e}, then out slowly for ${n}. Repeat a few times at your own pace.`}var Ne={low:{label:`Easy`,color:`var(--insight)`},medium:{label:`Some effort`,color:`var(--presence)`},high:{label:`A reach`,color:`var(--warning)`}};function Pe({title:e=`Things you could try`,icon:t=`spark`,iconColor:n=`var(--presence)`,intro:a=`Pick whatever feels possible — you don't have to do all of them.`,options:o,footer:s,delay:c}){let l=r[t]||r.spark,d=o??[];return(0,u.jsxs)(`div`,{className:`card reveal cpm-card`,style:{"--delay":(c||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),a&&(0,u.jsx)(`p`,{className:`cpm-intro`,children:a}),(0,u.jsx)(`ul`,{className:`cpm-list`,children:d.map((e,t)=>{let n=e.effort?Ne[e.effort]:void 0,i=e.icon?r[e.icon]:void 0;return(0,u.jsxs)(`li`,{className:`cpm-opt`,children:[(0,u.jsx)(`span`,{className:`cpm-opt-mark`,"aria-hidden":`true`,children:i?(0,u.jsx)(i,{className:`ic cpm-opt-ic`,style:{width:15,height:15}}):(0,u.jsx)(`span`,{className:`cpm-dot`})}),(0,u.jsxs)(`div`,{className:`cpm-opt-body`,children:[(0,u.jsxs)(`div`,{className:`cpm-opt-head`,children:[(0,u.jsx)(`span`,{className:`cpm-opt-label`,children:e.label}),e.time&&(0,u.jsxs)(`span`,{className:`cpm-tag cpm-tag--time`,children:[(0,u.jsx)(r.clock,{className:`ic cpm-tag-ic`,style:{width:11,height:11}}),e.time]}),n&&(0,u.jsx)(`span`,{className:`cpm-tag cpm-tag--effort`,style:{"--cm":n.color},children:n.label})]}),e.detail&&(0,u.jsx)(`p`,{className:`cpm-opt-detail`,children:e.detail})]})]},t)})}),s&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(s)})]})}var Fe={"most likely":{label:`Most likely`,color:`var(--insight)`},possible:{label:`Possible`,color:`var(--warning)`},"less likely":{label:`Less likely`,color:`var(--text-muted)`}};function Ie({title:e,icon:t,iconColor:n,flavor:a=`tone`,message:o,readings:s,cantKnow:c,reply:l,footer:d,delay:f}){let p=a===`caution`,m=r[t??(p?`shield`:`chat`)]||r.chat,h=n||(p?`var(--warning)`:`var(--presence)`),g=s??[];return(0,u.jsxs)(`div`,{className:`card reveal sbd-card`,style:{"--delay":(f||0)+`ms`,"--sd":h},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(m,{className:`ic`,style:{color:h}}),` `,e]}),(0,u.jsxs)(`figure`,{className:`sbd-msg`,children:[(0,u.jsx)(`span`,{className:`sbd-msg-bar`}),(0,u.jsx)(r.quote,{className:`ic sbd-msg-mark`,style:{width:22,height:22}}),(0,u.jsx)(`blockquote`,{className:`sbd-msg-text`,children:o})]}),g.length>0&&(0,u.jsx)(`ol`,{className:`sbd-readings`,children:g.map((e,t)=>{let n=e.likelihood?Fe[e.likelihood]:void 0;return(0,u.jsxs)(`li`,{className:`sbd-reading`,children:[(0,u.jsxs)(`div`,{className:`sbd-reading-head`,children:[(0,u.jsx)(`span`,{className:`sbd-rank`,children:t+1}),(0,u.jsx)(`span`,{className:`sbd-interp`,children:e.interpretation}),n&&(0,u.jsx)(`span`,{className:`sbd-band`,style:{"--sb":n.color},children:n.label})]}),e.cue&&(0,u.jsxs)(`div`,{className:`sbd-cue`,children:[(0,u.jsx)(`span`,{className:`sbd-cue-tag`,children:p?`Red flag`:`Rests on`}),(0,u.jsx)(`span`,{children:e.cue})]})]},t)})}),c&&(0,u.jsxs)(`div`,{className:`sbd-cantknow`,children:[(0,u.jsx)(r.eye,{className:`ic`,style:{width:14,height:14}}),(0,u.jsx)(`span`,{children:c})]}),l&&(0,u.jsxs)(`div`,{className:`sbd-reply`,children:[(0,u.jsxs)(`div`,{className:`sbd-reply-tag`,children:[(0,u.jsx)(r.send,{className:`ic`,style:{width:13,height:13}}),p?`If you respond`:`You could ask`]}),(0,u.jsx)(`p`,{className:`sbd-reply-text`,children:l})]}),d&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(d)})]})}function V({title:e,icon:t=`chat`,iconColor:n=`var(--presence)`,opener:a,branches:o,exit:s,footer:c,delay:l}){let d=r[t]||r.chat,f=o??[];return(0,u.jsxs)(`div`,{className:`card reveal rh-card`,style:{"--delay":(l||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsxs)(`div`,{className:`rh-opener`,children:[(0,u.jsx)(`span`,{className:`rh-open-tag`,children:`Open with`}),(0,u.jsx)(`p`,{className:`rh-open-line`,dangerouslySetInnerHTML:i(a)})]}),f.length>0&&(0,u.jsx)(`ol`,{className:`rh-branches`,children:f.map((e,t)=>(0,u.jsxs)(`li`,{className:`rh-branch`,children:[(0,u.jsxs)(`div`,{className:`rh-reaction`,children:[(0,u.jsx)(r.undo,{className:`ic rh-reaction-ic`,style:{width:13,height:13}}),(0,u.jsx)(`span`,{className:`rh-if`,children:`If they`}),` `,(0,u.jsx)(`span`,{dangerouslySetInnerHTML:i(e.reaction)})]}),(0,u.jsxs)(`div`,{className:`rh-say`,children:[(0,u.jsx)(`span`,{className:`rh-say-tag`,children:`Say`}),(0,u.jsx)(`span`,{className:`rh-say-line`,dangerouslySetInnerHTML:i(e.say)})]}),e.why&&(0,u.jsxs)(`div`,{className:`rh-why`,children:[(0,u.jsx)(r.spark,{className:`ic rh-why-ic`,style:{width:11,height:11}}),(0,u.jsx)(`span`,{dangerouslySetInnerHTML:i(e.why)})]})]},t))}),s&&(0,u.jsxs)(`div`,{className:`rh-exit`,children:[(0,u.jsx)(r.check,{className:`ic rh-exit-ic`,style:{width:14,height:14}}),(0,u.jsxs)(`span`,{children:[(0,u.jsx)(`span`,{className:`rh-exit-tag`,children:`If you need to wrap it up`}),` `,(0,u.jsx)(`span`,{dangerouslySetInnerHTML:i(s)})]})]}),(0,u.jsx)(`p`,{className:`rh-note`,children:`A rehearsal, not a prediction — say it your way.`}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}var Le={email:{label:`Email`,icon:`mail`},phone:{label:`Call`,icon:`speaker`},"in-app":{label:`In-app`,icon:`sliders`},chat:{label:`Chat`,icon:`chat`}};function Re({title:e,icon:t=`send`,iconColor:n=`var(--presence)`,intro:a,scripts:s,footer:c,delay:l}){let d=r[t]||r.send,f=s??[];return(0,u.jsxs)(`div`,{className:`card reveal mss-card`,style:{"--delay":(l||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),a&&(0,u.jsx)(`p`,{className:`mss-intro`,children:a}),(0,u.jsx)(`ul`,{className:`mss-list`,children:f.map((e,t)=>{let n=e.channel?Le[e.channel]:void 0,i=n?r[n.icon]||r.send:void 0;return(0,u.jsxs)(`li`,{className:`mss-item`,children:[(0,u.jsxs)(`div`,{className:`mss-head`,children:[(0,u.jsx)(`span`,{className:`mss-target`,children:e.target}),n&&i&&(0,u.jsxs)(`span`,{className:`mss-chan`,children:[(0,u.jsx)(i,{className:`ic mss-chan-ic`}),` `,n.label]})]}),(0,u.jsxs)(`div`,{className:`mss-msg`,children:[(0,u.jsx)(`p`,{className:`mss-msg-text`,children:e.message}),(0,u.jsx)(o,{text:e.message,label:`Copy message`,className:`mss-copy`})]}),e.rebuttal&&(0,u.jsxs)(`div`,{className:`mss-rebuttal`,children:[(0,u.jsx)(`span`,{className:`mss-rebuttal-tag`,children:`If they push back`}),(0,u.jsx)(`span`,{children:e.rebuttal})]})]},t)})}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}function ze({title:e,icon:t=`mic`,iconColor:n=`var(--presence)`,lines:a,totalTime:o,footer:s,delay:c}){let l=r[t]||r.mic,d=a??[];return(0,u.jsxs)(`div`,{className:`card reveal tlk-card`,style:{"--delay":(c||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(l,{className:`ic`,style:{color:n}}),` `,e,o&&(0,u.jsxs)(`span`,{className:`tlk-total`,children:[(0,u.jsx)(r.clock,{className:`ic tlk-total-ic`}),` `,o]})]}),(0,u.jsx)(`ol`,{className:`tlk-list`,children:d.map((e,t)=>(0,u.jsxs)(`li`,{className:`tlk-line`,children:[(0,u.jsx)(`span`,{className:`tlk-rail`,"aria-hidden":`true`,children:(0,u.jsx)(`span`,{className:`tlk-dot`})}),(0,u.jsxs)(`div`,{className:`tlk-body`,children:[(0,u.jsx)(`p`,{className:`tlk-say`,children:e.say}),(e.beat||e.note)&&(0,u.jsxs)(`div`,{className:`tlk-meta`,children:[e.beat&&(0,u.jsxs)(`span`,{className:`tlk-beat`,children:[(0,u.jsx)(r.play,{className:`ic tlk-beat-ic`}),` `,e.beat]}),e.note&&(0,u.jsx)(`span`,{className:`tlk-note`,children:e.note})]})]})]},t))}),s&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(s)})]})}function Be({title:e=`You deserve support right now`,message:t,safetyQuestion:n,resources:i,grounding:a,reassurance:o,delay:s}){let l=i??[];return(0,u.jsxs)(`div`,{className:`card reveal lfl-card`,style:{"--delay":(s||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(r.shield,{className:`ic`,style:{color:`var(--presence)`}}),` `,e]}),t&&(0,u.jsx)(`p`,{className:`lfl-message`,children:t}),n&&(0,u.jsx)(`p`,{className:`lfl-safety`,children:n}),(0,u.jsx)(`div`,{className:`lfl-resources`,children:l.map((e,t)=>{let n=(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`span`,{className:`lfl-res-name`,children:e.name}),(0,u.jsx)(`span`,{className:`lfl-res-contact`,children:e.contact}),e.note&&(0,u.jsx)(`span`,{className:`lfl-res-note`,children:e.note})]}),r=e.href?c(e.href):null;return r?(0,u.jsx)(`a`,{className:`lfl-res lfl-res--link`,href:r,children:n},t):(0,u.jsx)(`div`,{className:`lfl-res`,children:n},t)})}),a&&(0,u.jsxs)(`div`,{className:`lfl-grounding`,children:[(0,u.jsx)(r.spark,{className:`ic`,style:{width:14,height:14}}),(0,u.jsx)(`span`,{children:a})]}),o&&(0,u.jsx)(`p`,{className:`lfl-reassurance`,children:o})]})}var H={stressed:`´`,unstressed:`˘`},U=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--danger)`];function Ve({title:e,icon:t=`proof`,iconColor:n=`var(--presence)`,lines:a,meter:o,caption:s,footer:c,delay:l}){let d=r[t]||r.proof,f=new Map;for(let e of a){let t=e.rhyme?.trim().toLowerCase();t&&!f.has(t)&&f.set(t,U[f.size%U.length])}return(0,u.jsxs)(`div`,{className:`card reveal lay-scan`,style:{"--delay":(l||0)+`ms`},children:[e&&(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),o&&(0,u.jsxs)(`div`,{className:`lay-scan-meter`,children:[(0,u.jsxs)(`span`,{className:`lay-scan-meter-key`,children:[(0,u.jsx)(`span`,{className:`lay-scan-glyph`,children:H.stressed}),` stressed`,(0,u.jsx)(`span`,{className:`lay-scan-glyph muted`,children:H.unstressed}),` unstressed`]}),(0,u.jsx)(`span`,{className:`lay-scan-meter-name`,children:o})]}),(0,u.jsx)(`div`,{className:`lay-scan-lines`,children:a.map((e,t)=>{let n=new Set((e.feet||[]).filter(t=>t>0&&t<e.syllables.length)),r=e.rhyme?f.get(e.rhyme.trim().toLowerCase()):void 0;return(0,u.jsxs)(`div`,{className:`lay-scan-row`,children:[(0,u.jsx)(`ol`,{className:`lay-scan-line`,children:e.syllables.map((e,t)=>(0,u.jsxs)(`li`,{className:`lay-scan-syl`,"data-stress":e.stress===`stressed`?`on`:`off`,children:[n.has(t)&&(0,u.jsx)(`span`,{className:`lay-scan-bar`,"aria-hidden":`true`}),(0,u.jsx)(`span`,{className:`lay-scan-mark`,"aria-hidden":`true`,children:H[e.stress]??H.unstressed}),(0,u.jsx)(`span`,{className:`lay-scan-text`,children:e.text})]},t))}),e.rhyme&&(0,u.jsx)(`span`,{className:`lay-scan-rhyme`,style:r?{"--rh":r}:void 0,children:e.rhyme.trim().toLowerCase()})]},t)})}),s&&(0,u.jsx)(`div`,{className:`lay-scan-caption faint`,children:s}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}var W=46,He=`The quick brown fox`;function Ue(e){return`${Number.isInteger(e)?e:Number(e.toFixed(1))} px`}function We({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,styles:a,pairing:o,caption:s,footer:c,delay:l}){let d=r[t]||r.edit,f=a.reduce((e,t)=>Math.max(e,t.sizePx||0),1),p=f>W?W/f:1,m=e=>{let t=[];return e.family&&t.push(e.family),e.weight&&t.push(String(e.weight)),t.push(Ue(e.sizePx)),e.lineHeight&&t.push(`${e.lineHeight}×`),e.tracking&&t.push(e.tracking),t};return(0,u.jsxs)(`div`,{className:`card reveal lay-tspec`,style:{"--delay":(l||0)+`ms`},children:[e&&(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`ol`,{className:`lay-tspec-list`,children:a.map((e,t)=>{let n=e.color||`var(--presence)`,r=Math.max(11,Math.round((e.sizePx||16)*p));return(0,u.jsxs)(`li`,{className:`lay-tspec-row`,children:[(0,u.jsxs)(`div`,{className:`lay-tspec-meta`,children:[(0,u.jsx)(`span`,{className:`lay-tspec-name`,style:{color:n},children:e.name}),(0,u.jsx)(`div`,{className:`lay-tspec-chips`,children:m(e).map((e,t)=>(0,u.jsx)(`span`,{className:`lay-tspec-chip tab-num`,children:e},t))})]}),(0,u.jsx)(`div`,{className:`lay-tspec-sample`,style:{fontSize:r+`px`,fontWeight:e.weight??500,lineHeight:e.lineHeight??1.15,letterSpacing:e.tracking,fontFamily:e.family},children:e.sample||He})]},t)})}),o&&(0,u.jsxs)(`div`,{className:`lay-tspec-pairing`,children:[(0,u.jsx)(`div`,{className:`lay-tspec-pair-tag`,children:`Pairing`}),(0,u.jsx)(`div`,{className:`lay-tspec-pair-head`,style:{fontFamily:o.heading},children:o.heading}),(0,u.jsxs)(`div`,{className:`lay-tspec-pair-body`,style:{fontFamily:o.body},children:[(0,u.jsxs)(`span`,{className:`lay-tspec-pair-faces tab-num`,children:[o.heading,` `,`·`,` `,o.body]}),` `,`pair a confident display face with a calm, readable body face — the heading carries the voice while the paragraph stays out of the way and lets the words breathe.`]})]}),s&&(0,u.jsx)(`div`,{className:`lay-tspec-caption faint`,children:s}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}var Ge={WS:{subject:.5,label:`Wide`},MS:{subject:.78,label:`Medium`},CU:{subject:1.05,label:`Close`},ECU:{subject:1.5,label:`Extreme`},OTS:{subject:.92,label:`Over-shoulder`}},G=100,K=64;function Ke(e){let t=Ge[e],n=K*t.subject/4;return{headR:n,cx:e===`OTS`?G*.62:G/2,headCy:K-n*1.7,shoulderW:n*2.4,label:t.label}}function qe({title:e,icon:t=`play`,iconColor:n=`var(--presence)`,shots:a,caption:o,footer:s,delay:c}){let l=r[t]||r.play;return(0,u.jsxs)(`div`,{className:`card reveal lay-shot`,style:{"--delay":(c||0)+`ms`},children:[e&&(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`ol`,{className:`lay-shot-list`,children:a.map((e,t)=>{let n=e.size||`MS`,i=Ke(n),a=[e.movement,e.lens,e.duration].filter(Boolean);return(0,u.jsxs)(`li`,{className:`lay-shot-row`,children:[(0,u.jsxs)(`div`,{className:`lay-shot-thumb`,children:[(0,u.jsxs)(`svg`,{className:`lay-shot-frame`,viewBox:`0 0 ${G} ${K}`,role:`img`,"aria-label":`${n} shot framing`,preserveAspectRatio:`xMidYMid slice`,children:[n===`OTS`&&(0,u.jsx)(`path`,{d:`M 0 ${K} L 0 ${K*.28} Q ${G*.18} ${K*.2} ${G*.3} ${K} Z`,className:`lay-shot-fg`}),(0,u.jsx)(`circle`,{cx:i.cx,cy:i.headCy,r:i.headR,className:`lay-shot-subj`}),(0,u.jsx)(`path`,{d:`M ${i.cx-i.shoulderW} ${K} Q ${i.cx} ${i.headCy+i.headR*.4} ${i.cx+i.shoulderW} ${K} Z`,className:`lay-shot-subj`}),(0,u.jsx)(`line`,{x1:G/3,y1:0,x2:G/3,y2:K,className:`lay-shot-grid`}),(0,u.jsx)(`line`,{x1:G/3*2,y1:0,x2:G/3*2,y2:K,className:`lay-shot-grid`})]}),(0,u.jsx)(`span`,{className:`lay-shot-size`,children:n})]}),(0,u.jsxs)(`div`,{className:`lay-shot-body`,children:[(0,u.jsxs)(`div`,{className:`lay-shot-top`,children:[(0,u.jsx)(`span`,{className:`lay-shot-n tab-num`,children:e.n}),(0,u.jsx)(`span`,{className:`lay-shot-frame-label`,children:i.label}),a.length>0&&(0,u.jsx)(`div`,{className:`lay-shot-meta`,children:a.map((e,t)=>(0,u.jsx)(`span`,{className:`lay-shot-tag`,children:e},t))})]}),(0,u.jsx)(`div`,{className:`lay-shot-action`,children:e.action}),e.dialogue&&(0,u.jsxs)(`div`,{className:`lay-shot-dialogue`,children:[(0,u.jsx)(r.chat,{className:`ic`}),(0,u.jsx)(`span`,{children:e.dialogue})]})]})]},t)})}),o&&(0,u.jsx)(`div`,{className:`lay-shot-caption faint`,children:o}),s&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(s)})]})}var q=320,J=96,Y={l:8,r:8,t:12,b:10};function Je(e,t){if(!e)return null;let n=e.match(/-?\d+(\.\d+)?/);if(!n)return null;let r=parseFloat(n[0]);return Number.isFinite(r)?e.includes(`%`)||r<=100&&!/p/i.test(e)?Math.min(1,Math.max(0,r/100)):t>0?Math.min(1,Math.max(0,r/t)):null:null}function Ye({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,framework:o,beats:s,tension:c,caption:d,footer:f,delay:p}){let m=r[t]||r.edit,h=(0,l.useMemo)(()=>{let e=Math.max(1,s.length-1),t=s.map(e=>parseFloat((e.at||``).match(/\d+/)?.[0]||``)).filter(e=>Number.isFinite(e)),n=t.length?Math.max(...t):0,r=s.map((t,r)=>Je(t.at,n)??r/e),i=a([0,1],[Y.l,q-Y.r]),o=``,l=[];if(c&&c.length>=2){let e=Math.min(...c),t=Math.max(...c),n=a([e,t===e?e+1:t],[J-Y.b,Y.t]);l=c.map((e,t)=>({x:i(t<r.length?r[t]:t/Math.max(1,c.length-1)),y:n(e)})),o=l.map((e,t)=>{if(t===0)return`M ${e.x} ${e.y}`;let n=l[t-1],r=(n.x+e.x)/2;return`C ${r} ${n.y} ${r} ${e.y} ${e.x} ${e.y}`}).join(` `)}return{fracs:r,sx:i,curve:o,dots:l,baseY:J-Y.b}},[s,c]);return(0,u.jsxs)(`div`,{className:`card reveal lay-beat`,style:{"--delay":(p||0)+`ms`},children:[e&&(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),o&&(0,u.jsxs)(`div`,{className:`lay-beat-framework`,children:[(0,u.jsx)(`span`,{className:`lay-beat-fw-tag`,children:`Structure`}),o]}),(0,u.jsx)(`ol`,{className:`lay-beat-list`,children:s.map((e,t)=>(0,u.jsxs)(`li`,{className:`lay-beat-row`,children:[(0,u.jsx)(`div`,{className:`lay-beat-rail`,children:(0,u.jsx)(`span`,{className:`lay-beat-dot`})}),(0,u.jsxs)(`div`,{className:`lay-beat-body`,children:[(0,u.jsxs)(`div`,{className:`lay-beat-head`,children:[(0,u.jsx)(`span`,{className:`lay-beat-name`,children:e.name}),e.at&&(0,u.jsx)(`span`,{className:`lay-beat-at tab-num`,children:e.at})]}),(0,u.jsx)(`div`,{className:`lay-beat-line`,children:e.line})]})]},t))}),h.curve&&(0,u.jsxs)(`figure`,{className:`lay-beat-curve`,children:[(0,u.jsx)(`figcaption`,{className:`lay-beat-curve-cap faint`,children:`Dramatic tension`}),(0,u.jsxs)(`svg`,{viewBox:`0 0 ${q} ${J}`,className:`lay-beat-svg`,role:`img`,"aria-label":`tension curve`,children:[(0,u.jsx)(`defs`,{children:(0,u.jsxs)(`linearGradient`,{id:`lay-beat-fill`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,u.jsx)(`stop`,{offset:`0%`,stopColor:`var(--presence)`,stopOpacity:`0.22`}),(0,u.jsx)(`stop`,{offset:`100%`,stopColor:`var(--presence)`,stopOpacity:`0`})]})}),(0,u.jsx)(`path`,{d:`${h.curve} L ${h.dots[h.dots.length-1].x} ${h.baseY} L ${h.dots[0].x} ${h.baseY} Z`,fill:`url(#lay-beat-fill)`}),(0,u.jsx)(`path`,{d:h.curve,className:`lay-beat-stroke`,fill:`none`}),h.dots.map((e,t)=>(0,u.jsx)(`circle`,{cx:e.x,cy:e.y,r:2.6,className:`lay-beat-pt`},t))]})]}),d&&(0,u.jsx)(`div`,{className:`lay-beat-caption faint`,children:d}),f&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(f)})]})}function Xe({title:e=`A few things to sit with`,icon:t=`edit`,iconColor:n=`var(--presence)`,theme:a,prompts:o,caption:s,footer:c,delay:l}){let d=r[t]||r.edit,f=o??[];return(0,u.jsxs)(`div`,{className:`card reveal lay-ps`,style:{"--delay":(l||0)+`ms`},children:[e&&(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),a&&(0,u.jsxs)(`div`,{className:`lay-ps-theme`,children:[(0,u.jsx)(`span`,{className:`lay-ps-theme-dot`,"aria-hidden":`true`}),a]}),(0,u.jsx)(`ol`,{className:`lay-ps-list`,children:f.map((e,t)=>(0,u.jsxs)(`li`,{className:`lay-ps-card`,children:[(0,u.jsx)(`span`,{className:`lay-ps-mark tab-num`,"aria-hidden":`true`,children:t+1}),(0,u.jsxs)(`div`,{className:`lay-ps-body`,children:[(0,u.jsx)(`p`,{className:`lay-ps-q`,children:e.question}),e.guidance&&(0,u.jsx)(`p`,{className:`lay-ps-guide`,children:e.guidance})]})]},t))}),s&&(0,u.jsx)(`div`,{className:`lay-ps-caption faint`,children:s}),c&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}var Ze={HR:`Heart rate`,pace:`Pace`,RPE:`Perceived effort`},X=[`var(--insight)`,`#10b981`,`var(--presence)`,`var(--warning)`,`var(--danger)`];function Qe(e){let t=X.length-1,n=Math.max(0,Math.min(t,e*t)),r=Math.floor(n),i=Math.min(t,r+1),a=n-r;return a===0?X[r]:`color-mix(in oklab, ${X[i]} ${Math.round(a*100)}%, ${X[r]})`}function $e({title:e=`Training zones`,icon:t=`spark`,iconColor:n=`var(--presence)`,metric:a=`HR`,zones:o,current:s,caption:c,footer:l,delay:d}){let f=r[t]||r.spark,p=o??[],m=p.length,h=typeof s==`number`&&m>0?Math.max(0,Math.min(m-1,Math.round(s))):-1,g=Ze[a]??a,_=p.map((e,t)=>({z:e,i:t})).reverse();return(0,u.jsxs)(`div`,{className:`card reveal lay-zl`,style:{"--delay":(d||0)+`ms`},children:[e&&(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(f,{className:`ic`,style:{color:n}}),` `,e,(0,u.jsx)(`span`,{className:`lay-zl-metric`,children:g})]}),(0,u.jsx)(`div`,{className:`lay-zl-ladder`,children:_.map(({z:e,i:t})=>{let n=Qe(m>1?t/(m-1):0),r=t===h;return(0,u.jsxs)(`div`,{className:`lay-zl-band`+(r?` here`:``),style:{"--zc":n},children:[(0,u.jsx)(`div`,{className:`lay-zl-rail`,"aria-hidden":`true`}),(0,u.jsxs)(`div`,{className:`lay-zl-band-body`,children:[(0,u.jsxs)(`div`,{className:`lay-zl-band-top`,children:[(0,u.jsx)(`span`,{className:`lay-zl-name`,children:e.name}),(0,u.jsx)(`span`,{className:`lay-zl-range tab-num`,children:e.range}),r&&(0,u.jsxs)(`span`,{className:`lay-zl-here`,children:[(0,u.jsx)(`span`,{className:`lay-zl-here-dot`,"aria-hidden":`true`}),`You are here`]})]}),(0,u.jsx)(`div`,{className:`lay-zl-effort`,children:e.effort}),(0,u.jsx)(`div`,{className:`lay-zl-purpose`,children:e.purpose})]})]},t)})}),c&&(0,u.jsx)(`div`,{className:`lay-zl-caption faint`,children:c}),l&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(l)})]})}var et={first:{label:`First`,color:`var(--insight)`},then:{label:`Then`,color:`var(--presence)`},next:{label:`Next`,color:`var(--presence)`},last:{label:`Last`,color:`var(--insight)`}};function tt(e,t){return e===0?`first`:e===t-1?`last`:e%2==1?`then`:`next`}function nt({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,panels:a,caption:o,footer:s,delay:c}){let d=r[t]||r.layers,f=a??[],p=f.length;return(0,u.jsxs)(`div`,{className:`card reveal lay-pseq`,style:{"--delay":(c||0)+`ms`},children:[e&&(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,u.jsx)(`ol`,{className:`lay-pseq-strip`,children:f.map((e,t)=>{let n=et[e.marker??tt(t,p)];return(0,u.jsxs)(l.Fragment,{children:[(0,u.jsxs)(`li`,{className:`lay-pseq-panel`,style:{"--mc":n.color},children:[(0,u.jsx)(`span`,{className:`lay-pseq-marker`,children:n.label}),(0,u.jsx)(`div`,{className:`lay-pseq-frame`,children:(0,u.jsxs)(`svg`,{className:`lay-pseq-art`,viewBox:`0 0 64 48`,role:`img`,"aria-label":e.label,preserveAspectRatio:`xMidYMid meet`,children:[(0,u.jsx)(`rect`,{x:`8`,y:`8`,width:`48`,height:`32`,rx:`4`,className:`lay-pseq-art-card`}),(0,u.jsx)(`line`,{x1:`16`,y1:`32`,x2:`48`,y2:`32`,className:`lay-pseq-art-base`}),(0,u.jsx)(`circle`,{cx:`32`,cy:`21`,r:`9`,className:`lay-pseq-art-badge`}),(0,u.jsx)(`text`,{x:`32`,y:`21`,className:`lay-pseq-art-num`,children:t+1})]})}),(0,u.jsx)(`div`,{className:`lay-pseq-label`,children:e.label}),e.caption&&(0,u.jsx)(`div`,{className:`lay-pseq-cap faint`,children:e.caption})]}),t<p-1&&(0,u.jsx)(`li`,{className:`lay-pseq-arrow`,"aria-hidden":`true`,children:(0,u.jsx)(r.chevR,{className:`ic`})})]},t)})}),o&&(0,u.jsx)(`div`,{className:`lay-pseq-caption faint`,children:o}),s&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(s)})]})}function Z(e){return e==null||!Number.isFinite(e)?null:Math.max(0,Math.min(100,Math.round(e)))}function Q({label:e,items:t,accent:n,mark:a}){let o=a===`check`?r.check:r.alert;return(0,u.jsxs)(`div`,{className:`tr-ev-col`,style:{"--te":n},children:[(0,u.jsxs)(`div`,{className:`tr-ev-head`,children:[(0,u.jsx)(o,{className:`ic`,style:{color:n,width:13,height:13}}),(0,u.jsx)(`span`,{children:e}),(0,u.jsx)(`span`,{className:`tr-ev-count tab-num`,children:t.length})]}),t.length===0?(0,u.jsx)(`p`,{className:`tr-ev-empty faint`,children:`None noted`}):(0,u.jsx)(`ul`,{className:`tr-ev-list`,children:t.map((e,t)=>(0,u.jsxs)(`li`,{className:`tr-ev-item m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,u.jsx)(o,{className:`ic tr-ev-mark`,style:{color:n}}),(0,u.jsx)(`span`,{className:`tr-ev-text`,dangerouslySetInnerHTML:i(e)})]},t))})]})}function rt({title:e=`Thought record`,icon:t=`spark`,iconColor:n=`var(--presence)`,situation:a,automaticThought:o,emotion:s,emotionIntensity:c,evidenceFor:l=[],evidenceAgainst:d=[],alternativeThought:f,outcomeEmotion:p,outcomeIntensity:m,footer:h,delay:g}){let _=r[t]||r.spark,v=Z(c),y=Z(m),b=l.length>0||d.length>0,x=!!f,S=!!p||y!=null,C=(g||0)+140;return(0,u.jsxs)(`div`,{className:`card reveal tr-card`,style:{"--delay":(g||0)+`ms`},children:[(0,u.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,u.jsx)(_,{className:`ic`,style:{color:n}}),` `,e]}),a&&(0,u.jsxs)(`div`,{className:`tr-block tr-situation`,children:[(0,u.jsx)(`div`,{className:`tr-tag`,children:`The situation`}),(0,u.jsx)(`p`,{className:`tr-body`,dangerouslySetInnerHTML:i(a)})]}),(0,u.jsxs)(`div`,{className:`tr-block tr-thought`,children:[(0,u.jsxs)(`div`,{className:`tr-row-head`,children:[(0,u.jsx)(`span`,{className:`tr-tag`,children:`The automatic thought`}),(0,u.jsxs)(`span`,{className:`tr-emo-chip`,children:[s,v!=null&&(0,u.jsxs)(`span`,{className:`tr-emo-pct tab-num`,children:[v,`%`]})]})]}),o&&(0,u.jsxs)(`p`,{className:`tr-quote`,children:[(0,u.jsx)(r.quote,{className:`ic tr-quote-ic`,style:{width:14,height:14}}),(0,u.jsx)(`span`,{dangerouslySetInnerHTML:i(o)})]}),v!=null&&(0,u.jsx)(`div`,{className:`tr-meter`,"aria-label":`felt ${v} of 100`,children:(0,u.jsx)(`span`,{className:`tr-meter-fill`,style:{width:v+`%`}})})]}),b&&(0,u.jsxs)(`div`,{className:`tr-block tr-evidence`,children:[(0,u.jsx)(`div`,{className:`tr-tag`,children:`Weighing the evidence`}),(0,u.jsxs)(`div`,{className:`tr-ev-grid`,children:[(0,u.jsx)(Q,{label:`Feeds the thought`,items:l,accent:`var(--warning)`,mark:`alert`}),(0,u.jsx)(`div`,{className:`tr-ev-divider`}),(0,u.jsx)(Q,{label:`Complicates it`,items:d,accent:`var(--insight)`,mark:`check`})]})]}),x&&(0,u.jsxs)(`div`,{className:`tr-shift`,"aria-hidden":`true`,children:[(0,u.jsx)(`span`,{className:`tr-shift-line`}),(0,u.jsx)(r.spark,{className:`ic tr-shift-ic`,style:{width:13,height:13}}),(0,u.jsx)(`span`,{className:`tr-shift-line`})]}),f&&(0,u.jsxs)(`div`,{className:`tr-block tr-alt m-fade-rise`,style:{"--delay":C+`ms`},children:[(0,u.jsx)(`div`,{className:`tr-tag tr-tag--true`,children:`The balanced thought`}),(0,u.jsx)(`p`,{className:`tr-alt-text`,dangerouslySetInnerHTML:i(f)})]}),S&&(0,u.jsxs)(`div`,{className:`tr-outcome`,children:[(0,u.jsxs)(`div`,{className:`tr-outcome-chip`,children:[(0,u.jsx)(`span`,{className:`tr-outcome-label`,children:`Felt`}),(0,u.jsx)(`span`,{className:`tr-outcome-emo`,children:s}),v!=null&&(0,u.jsxs)(`span`,{className:`tr-outcome-pct tab-num`,children:[v,`%`]})]}),(0,u.jsx)(r.chevR,{className:`ic tr-outcome-arrow`,style:{width:14,height:14}}),(0,u.jsxs)(`div`,{className:`tr-outcome-chip tr-outcome-chip--after`,children:[(0,u.jsx)(`span`,{className:`tr-outcome-label`,children:`Now`}),(0,u.jsx)(`span`,{className:`tr-outcome-emo`,children:p||s}),y!=null&&(0,u.jsxs)(`span`,{className:`tr-outcome-pct tab-num`,children:[y,`%`]})]})]}),h&&(0,u.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(h)})]})}var it=e({layoutRegistry:()=>$}),$={callout:s(le),verdictcard:s(fe),scenarioset:s(me),accordion:s(he),proscons:s(ge),takeaways:s(_e),faq:s(ve),tabs:s(ye),divider:s(M),pullquote:s(P),storystrip:s(be),casestudy:s(xe),deflist:s(Ce),worthit:s(we),companionnote:s(Te),positioncard:s(Ee),differential:s(Oe),reframecard:s(ke),breathpacer:s(Ae),copingmenu:s(Pe),subtextdecode:s(Ie),rehearsal:s(V),messagescriptset:s(Re),talktrack:s(ze),lifeline:s(Be),scansionmark:s(Ve),typespec:s(We),shotlist:s(qe),beatsheet:s(Ye),promptset:s(Xe),zoneladder:s($e),picturesequence:s(nt),storyarc:s(ee),devicemark:s(oe),thoughtrecord:s(rt)};export{it as n,$ as t};
@@ -1 +0,0 @@
1
- import{r as e}from"./chunk-BVpWp9h4.js";import{t}from"./react-BQSORdFI.js";import{t as n}from"./jsx-runtime-DaSxXjOY.js";import{n as r}from"./icons-CHVz6kv_.js";import{t as i}from"./richText-BkxJhl9N.js";import{i as a,n as o,r as s,t as c}from"./format-DlZTyeMy.js";import{a as l,i as u,n as d,r as f,t as p}from"./scale-Bcgfo6Hp.js";import{t as m}from"./BlockEmpty-B5Q0hgDJ.js";import{s as h}from"./lib-C7zXL8h0.js";import{n as g,t as _}from"./motion-dfA87zbb.js";import{t as v}from"./registry-types-DMuK0vJ6.js";import{n as y}from"./fitText-CDFmCQzl.js";var b=t(),x=n(),S=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--presence-soft)`,`var(--danger)`],C=1e3*60*60*24*30.4368875;function w(e,t){return Number.isNaN(e.getTime())||Number.isNaN(t.getTime())?null:(t.getTime()-e.getTime())/C}function T(e,t,n){if(n<=0||e>=n)return e>=n?100:0;if(e<t)return 0;let r=n-t;return r<=0?100:Math.min(100,Math.max(0,(e-t)/r*100))}function E({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,grants:a,asOf:o,footer:l,delay:u}){let d=r[t]||r.clock,f=(0,b.useMemo)(()=>{let e=o?new Date(o):new Date,t=a.map((t,n)=>{let r=new Date(t.grantDate),i=w(r,e),a=Math.max(0,t.cliffMonths),o=Math.max(0,t.vestMonths),s=i==null?0:-i;return{...t,start:r,cliff:a,vest:o,pct:i==null?0:T(i,a,o),cliffLocalPct:o>0?Math.min(100,a/o*100):100,color:t.color||S[n%S.length],startAbs:s,endAbs:s+o}}),n=Math.min(0,...t.map(e=>e.startAbs)),r=Math.max(0,...t.map(e=>e.endAbs),1)-n||1;return{rows:t.map(e=>({...e,leftPct:(e.startAbs-n)/r*100,widthPct:Math.max(e.vest,.001)/r*100})),needlePct:(0-n)/r*100,asOfLabel:c(e,{style:`day`})}},[a,o]);return(0,x.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,x.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,x.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,x.jsxs)(`div`,{className:`fin-vs-body`,children:[f.rows.map((e,t)=>(0,x.jsxs)(b.Fragment,{children:[(0,x.jsxs)(`div`,{className:`fin-vs-who m-stagger-item m-fade-rise`,style:{"--i":t,gridRow:t+1},children:[(0,x.jsx)(`span`,{className:`fin-vs-name`,title:e.holder,children:e.holder}),(0,x.jsxs)(`span`,{className:`fin-vs-sub faint`,children:[c(e.start,{style:`month`}),` ·`,` `,s(e.totalShares,{compact:e.totalShares>=1e6}),` sh`]})]}),(0,x.jsx)(`div`,{className:`fin-vs-track m-stagger-item m-fade-rise`,style:{"--i":t,gridRow:t+1},children:(0,x.jsxs)(`div`,{className:`fin-vs-bar`,style:{left:`${e.leftPct}%`,width:`${Math.max(e.widthPct,1.5)}%`},children:[(0,x.jsx)(`div`,{className:`fin-vs-cliff`,style:{width:`${e.cliffLocalPct}%`}}),(0,x.jsx)(`div`,{className:`fin-vs-ramp`,style:{left:`${e.cliffLocalPct}%`,width:`${Math.max(0,100-e.cliffLocalPct)}%`},children:(0,x.jsx)(`span`,{className:`fin-vs-ramp-fill`,style:{width:`${e.pct}%`,background:e.color}})})]})}),(0,x.jsxs)(`div`,{className:`fin-vs-readout m-stagger-item m-fade-rise`,style:{"--i":t,gridRow:t+1},children:[(0,x.jsxs)(`span`,{className:`fin-vs-pct tab-num`,style:{color:e.color},children:[e.pct.toFixed(0),`%`]}),(0,x.jsx)(`span`,{className:`fin-vs-shares faint tab-num`,children:s(Math.round(e.pct/100*e.totalShares),{compact:e.totalShares>=1e6})})]})]},t)),f.rows.length>0&&(0,x.jsx)(`div`,{className:`fin-vs-needle-col`,style:{gridRow:`1 / ${f.rows.length+1}`},children:(0,x.jsx)(`span`,{className:`fin-vs-needle`,style:{left:`${Math.min(99,Math.max(0,f.needlePct))}%`},title:`Today · ${f.asOfLabel}`})})]}),l&&(0,x.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(l)})]})}function D({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,company:a,round:o,date:s,terms:l,footer:u,delay:d}){let f=r[t]||r.doc,p=a||o||s;return(0,x.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,x.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,x.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),p&&(0,x.jsxs)(`div`,{className:`fin-ts-head`,children:[a&&(0,x.jsx)(`span`,{className:`fin-ts-company`,children:a}),o&&(0,x.jsx)(`span`,{className:`fin-ts-round`,children:o}),s&&(0,x.jsx)(`span`,{className:`fin-ts-date faint tab-num`,children:c(s,{style:`day`})})]}),(0,x.jsxs)(`dl`,{className:`fin-ts-list`,children:[l.map((e,t)=>(0,x.jsxs)(`div`,{className:`fin-ts-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,x.jsx)(`dt`,{className:`fin-ts-label`,children:e.label}),(0,x.jsx)(`dd`,{className:`fin-ts-value`,children:e.value}),e.note&&(0,x.jsx)(`div`,{className:`fin-ts-note faint`,children:e.note})]},t)),l.length===0&&(0,x.jsxs)(`div`,{className:`fin-ts-empty faint`,children:[(0,x.jsx)(r.eyeOff,{className:`ic`}),` No terms yet.`]})]}),u&&(0,x.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(u)})]})}var O=.86;function k({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,currency:a=`USD`,rounds:o,footer:u,delay:p}){let m=r[t]||r.chart,[h,g]=(0,b.useState)(null),_=(0,b.useMemo)(()=>{let e=o.map(e=>Math.max(0,e.postMoney,e.preMoney+e.raised)),[,t]=d(0,Math.max(1,...e,1)),n=l(0,t,f(t,4)).filter(e=>e>0&&e<t),r=e=>s(e,{currency:a,compact:e>=1e6});return{domainHi:t,gridTicks:n,cols:o.map(e=>{let n=Math.max(0,e.preMoney),i=Math.max(0,e.raised),a=[e.date?c(e.date,{style:`month`}):null,e.leadInvestor,e.stepUp==null?null:`${e.stepUp.toFixed(1)}x step-up`].filter(e=>!!e);return{...e,prePct:n/t*100*O,raisedPct:i/t*100*O,preLabel:r(n),raisedLabel:r(i),postLabel:r(e.postMoney),capLine:a.join(` · `)}})}},[o,a]);return(0,x.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,x.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,x.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,x.jsx)(`div`,{className:`fin-fr-scroll`,children:(0,x.jsxs)(`div`,{className:`fin-fr-chart`,onMouseLeave:()=>g(null),children:[(0,x.jsx)(`div`,{className:`fin-fr-grid`,"aria-hidden":`true`,children:_.gridTicks.map((e,t)=>(0,x.jsx)(`span`,{className:`fin-fr-gridline`,style:{bottom:`${e/_.domainHi*100*O}%`}},t))}),_.cols.map((e,t)=>(0,x.jsxs)(`div`,{className:`fin-fr-col m-stagger-item m-fade-rise`+(h===t?` on`:``),style:{"--i":t},onMouseEnter:()=>g(t),children:[(0,x.jsx)(`span`,{className:`fin-fr-total tab-num`,children:e.postLabel}),(0,x.jsx)(`div`,{className:`fin-fr-seg-raised`,style:{height:`${e.raisedPct}%`},title:`Raised · ${e.raisedLabel}`,children:e.raisedPct>=14&&(0,x.jsx)(`span`,{className:`fin-fr-seg-lbl`,children:e.raisedLabel})}),(0,x.jsx)(`div`,{className:`fin-fr-seg-pre`,style:{height:`${e.prePct}%`},title:`Pre-money · ${e.preLabel}`,children:e.prePct>=14&&(0,x.jsx)(`span`,{className:`fin-fr-seg-lbl faint`,children:e.preLabel})}),(0,x.jsxs)(`div`,{className:`fin-fr-meta`,children:[(0,x.jsx)(`div`,{className:`fin-fr-name`,title:e.name,children:e.name}),e.capLine&&(0,x.jsx)(`div`,{className:`fin-fr-cap faint`,title:e.capLine,children:e.capLine})]})]},t))]})}),(0,x.jsxs)(`div`,{className:`fin-fr-legend`,children:[(0,x.jsxs)(`span`,{className:`fin-fr-leg`,children:[(0,x.jsx)(`i`,{className:`fin-fr-swatch raised`}),` raised this round`]}),(0,x.jsxs)(`span`,{className:`fin-fr-leg`,children:[(0,x.jsx)(`i`,{className:`fin-fr-swatch pre`}),` pre-money`]})]}),u&&(0,x.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(u)})]})}function A({title:e,icon:t=`shield`,iconColor:n=`var(--presence)`,instrument:a,investor:o,principal:l,valuationCap:u,discountPct:d,mfn:f,interestRate:p,maturityDate:m,conversionNote:h,footer:g,delay:v}){let y=r[t]||r.shield,b=a===`note`,S=l>=1e6,C=(u??0)>=1e6,w=_(l,{delay:v,format:e=>s(e,{currency:`USD`,compact:S})}),T=_(u??0,{delay:v,format:e=>s(e,{currency:`USD`,compact:C})}),E=_(d??0,{delay:v,decimals:(d??0)%1==0?0:1}),D=_(p??0,{delay:v,decimals:(p??0)%1==0?0:1});return(0,x.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(v||0)+`ms`},children:[(0,x.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,x.jsx)(y,{className:`ic`,style:{color:n}}),` `,e]}),(0,x.jsxs)(`div`,{className:`fin-sf-head`,children:[(0,x.jsx)(`span`,{className:`fin-sf-badge`,children:b?`Convertible note`:`SAFE`}),o&&(0,x.jsx)(`span`,{className:`fin-sf-investor`,title:o,children:o}),(0,x.jsx)(`span`,{className:`fin-sf-principal tab-num`,children:w})]}),(0,x.jsxs)(`div`,{className:`fin-sf-tiles`,children:[(0,x.jsxs)(`div`,{className:`fin-sf-tile`,children:[(0,x.jsx)(`div`,{className:`fin-sf-val tab-num`,children:u==null?`—`:T}),(0,x.jsx)(`div`,{className:`fin-sf-lbl faint`,children:`Valuation cap`})]}),(0,x.jsxs)(`div`,{className:`fin-sf-tile`,children:[(0,x.jsx)(`div`,{className:`fin-sf-val tab-num`,children:d==null?`—`:`${E}%`}),(0,x.jsx)(`div`,{className:`fin-sf-lbl faint`,children:`Discount`})]}),(0,x.jsxs)(`div`,{className:`fin-sf-tile`,children:[(0,x.jsx)(`div`,{className:`fin-sf-val`+(f?` on`:``),children:f?`Yes`:`No`}),(0,x.jsx)(`div`,{className:`fin-sf-lbl faint`,children:`Most-favored-nation`})]})]}),b&&(p!=null||m)&&(0,x.jsxs)(`div`,{className:`fin-sf-note-row`,children:[p!=null&&(0,x.jsxs)(`div`,{className:`fin-sf-note-item`,children:[(0,x.jsx)(`span`,{className:`fin-sf-note-lbl faint`,children:`Interest rate`}),(0,x.jsxs)(`span`,{className:`fin-sf-note-val tab-num`,children:[D,`%`]})]}),m&&(0,x.jsxs)(`div`,{className:`fin-sf-note-item`,children:[(0,x.jsx)(`span`,{className:`fin-sf-note-lbl faint`,children:`Maturity`}),(0,x.jsx)(`span`,{className:`fin-sf-note-val tab-num`,children:c(m,{style:`day`})})]})]}),h&&(0,x.jsx)(`p`,{className:`insight-summary fin-sf-conversion`,children:h}),g&&(0,x.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(g)})]})}var j=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--presence-soft)`,`var(--danger)`,`var(--text-muted)`],M=260,N=10,P=34,F=N,I=M-N-P,L=110,ee=.5;function te({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,rounds:a,footer:s,delay:c}){let l=r[t]||r.chart,[u,d]=(0,b.useState)(null),f=(0,b.useMemo)(()=>{let e=[],t=new Map;a.forEach(n=>n.holders.forEach(n=>{t.has(n.holder)||(t.set(n.holder,n.color||j[e.length%j.length]),e.push(n.holder))}));let n=Math.max(1,a.length),r=Math.max(560,n*L),i=L*ee,o=e=>e*L+(L-i)/2+(r-n*L)/2,s=a.map((t,n)=>{let r=t.holders.reduce((e,t)=>e+Math.max(0,t.pct),0)||1,i=F,a=new Map;for(let n of e){let e=t.holders.find(e=>e.holder===n);if(!e)continue;let o=Math.max(0,e.pct)/r,s=i,c=i+o*I;a.set(n,{y0:s,y1:c,pct:e.pct}),i=c}return{round:t.round,x:o(n),segByHolder:a}}),c=[];for(let n=0;n<s.length-1;n++){let r=s[n],a=s[n+1];for(let o of e){let e=r.segByHolder.get(o),s=a.segByHolder.get(o);if(!e||!s)continue;let l=r.x+i,u=a.x;c.push({key:`${n}-${o}`,holder:o,color:t.get(o),d:`M${l} ${e.y0} L${l} ${e.y1} L${u} ${s.y1} L${u} ${s.y0} Z`})}}return{width:r,colW:i,cols:s,ribbons:c,order:e,colorOf:t}},[a]);return(0,x.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,x.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,x.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,x.jsx)(`div`,{className:`fin-dw-scroll`,children:(0,x.jsxs)(`svg`,{viewBox:`0 0 ${f.width} ${M}`,width:f.width,height:M,className:`fin-dw-svg`,role:`img`,"aria-label":e,onMouseLeave:()=>d(null),children:[f.ribbons.map(e=>{let t=!u||u===e.holder;return(0,x.jsx)(`path`,{d:e.d,fill:e.color,opacity:t?.22:.06,style:{transition:`opacity var(--m-fast)`}},e.key)}),f.cols.map((e,t)=>(0,x.jsxs)(`g`,{children:[[...e.segByHolder.entries()].map(([t,n])=>{let r=!u||u===t,i=n.y1-n.y0;return(0,x.jsxs)(`g`,{children:[(0,x.jsx)(`rect`,{x:e.x,y:n.y0,width:f.colW,height:Math.max(.6,i),fill:f.colorOf.get(t),opacity:r?1:.28,style:{cursor:`pointer`,transition:`opacity var(--m-fast)`},onMouseEnter:()=>d(t)}),i>=15&&(0,x.jsx)(`text`,{x:e.x+f.colW/2,y:(n.y0+n.y1)/2+4,textAnchor:`middle`,className:`fin-dw-seg-lbl`,opacity:r?1:.4,children:o(n.pct,{decimals:0})})]},t)}),(0,x.jsx)(`text`,{x:e.x+f.colW/2,y:244,textAnchor:`middle`,className:`fin-dw-col-lbl`,children:e.round})]},t))]})}),(0,x.jsx)(`div`,{className:`fin-dw-legend`,children:f.order.map(e=>(0,x.jsxs)(`button`,{className:`fin-dw-leg`+(u===e?` on`:``),onMouseEnter:()=>d(e),onMouseLeave:()=>d(null),children:[(0,x.jsx)(`i`,{style:{background:f.colorOf.get(e)}}),e]},e))}),s&&(0,x.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(s)})]})}var R=24,z=40;function ne(e,t){let n=s(Math.abs(e),{currency:t,decimals:0});return e<0?`(${n})`:n}function B(e,t,n=0){for(let r=n;r<e.length;r++){let n=e[r].rows.findIndex(e=>e.label===t);if(n>=0)return{panel:r,row:n}}return null}function re({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,period:a,statements:o,links:s=[],currency:c=`USD`,footer:l,delay:u}){let d=r[t]||r.table,f=o.slice(0,3),p=(0,b.useMemo)(()=>{let e=z+Math.max(1,...f.map(e=>e.rows.length))*R,t=100/Math.max(1,f.length),n=e=>z+(e+.5)*R;return{totalH:e,panelW:t,curves:s.map(e=>{let r=B(f,e.from,0);if(!r)return null;let i=B(f,e.to,r.panel+1);if(!i)return null;let a=(r.panel+1)*t,o=i.panel*t,s=n(r.row),c=n(i.row),l=(a+o)/2,u=o,d=o-1.6;return{key:`${e.from}->${e.to}`,label:e.label,d:`M${a} ${s} C${l} ${s}, ${l} ${c}, ${d} ${c}`,arrow:`${u},${c} ${d},${c-6/2} ${d},${c+6/2}`,lx:l,ly:(s+c)/2}}).filter(e=>e!==null)}},[f,s]);return(0,x.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,x.jsxs)(`div`,{className:`card-eyebrow`,style:{marginBottom:4},children:[(0,x.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,x.jsx)(`div`,{className:`fin-tl-cap faint`,children:a}),(0,x.jsx)(`div`,{className:`fin-tl-scroll`,children:(0,x.jsxs)(`div`,{className:`fin-tl-wrap`,style:{height:p.totalH,"--fin-tl-panels":f.length},children:[(0,x.jsx)(`div`,{className:`fin-tl-panels`,children:f.map((e,t)=>(0,x.jsxs)(`div`,{className:`fin-tl-panel`,children:[(0,x.jsx)(`div`,{className:`fin-tl-panel-name`,children:e.name}),(0,x.jsx)(`div`,{className:`fin-tl-rows`,children:e.rows.map((e,t)=>{let n=Math.max(0,e.indent||0);return(0,x.jsxs)(`div`,{className:`fin-tl-row`+(e.bold?` bold`:``),style:{height:R},children:[(0,x.jsx)(`span`,{className:`fin-tl-label`,style:{paddingLeft:4+n*12},title:e.label,children:e.label}),(0,x.jsx)(`span`,{className:`fin-tl-val tab-num`+(e.value<0?` neg`:``),children:ne(e.value,c)})]},t)})})]},t))}),p.curves.length>0&&(0,x.jsx)(`svg`,{className:`fin-tl-links`,viewBox:`0 0 100 ${p.totalH}`,preserveAspectRatio:`none`,"aria-hidden":`true`,children:p.curves.map(e=>(0,x.jsxs)(`g`,{opacity:.65,children:[(0,x.jsx)(`path`,{d:e.d,fill:`none`,stroke:`var(--presence)`,strokeWidth:.5,vectorEffect:`non-scaling-stroke`}),(0,x.jsx)(`polygon`,{points:e.arrow,fill:`var(--presence)`})]},e.key))}),(0,x.jsx)(`div`,{className:`fin-tl-link-labels`,children:p.curves.map(e=>(0,x.jsx)(`span`,{className:`fin-tl-link-lbl`,style:{left:`${e.lx}%`,top:`${e.ly}px`},children:e.label},e.key))})]})}),l&&(0,x.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(l)})]})}var V=340,H=220,U=34,ie=14,W=14,ae=26,G=V-U-ie,K=H-W-ae;function oe({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,curve:a,compareCurve:s,footer:c,delay:u}){let p=r[t]||r.chart,[m,h]=(0,b.useState)(null),_=(0,b.useRef)(null);g(_,{delay:u});let v=(0,b.useMemo)(()=>{let e=[];for(let t of a)e.includes(t.tenor)||e.push(t.tenor);for(let t of s??[])e.includes(t.tenor)||e.push(t.tenor);let t=Math.max(1,e.length),n=e=>U+(t>1?e/(t-1)*G:G/2),r=[...a,...s??[]].map(e=>e.rate),[i,o]=d(Math.min(0,...r),Math.max(...r,0)),c=o-i||1,u=e=>W+(1-(e-i)/c)*K,p=l(i,o,f(o-i,4)),m=t=>t.map(t=>{let r=e.indexOf(t.tenor);return r<0?null:{i:r,x:n(r),y:u(t.rate),tenor:t.tenor,rate:t.rate}}).filter(e=>e!==null),h=m(a),g=s?m(s):[];return{tenors:e,x:n,y:u,yTicks:p,main:h,compare:g,path:h.map((e,t)=>`${t===0?`M`:`L`}${e.x} ${e.y}`).join(` `),comparePath:g.map((e,t)=>`${t===0?`M`:`L`}${e.x} ${e.y}`).join(` `),inversions:h.slice(0,-1).map((e,t)=>({p:e,next:h[t+1]})).filter(({p:e,next:t})=>t.rate<e.rate).map(({p:e,next:t})=>({x0:e.x,x1:t.x,from:e.tenor,to:t.tenor}))}},[a,s]),y=e=>o(e,{decimals:e%1==0?0:2});return(0,x.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,x.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,x.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,x.jsxs)(`div`,{className:`fin-yc-plot`,onMouseLeave:()=>h(null),children:[(0,x.jsxs)(`svg`,{viewBox:`0 0 ${V} ${H}`,className:`fin-yc-svg`,role:`img`,"aria-label":e,children:[v.inversions.map((e,t)=>(0,x.jsx)(`rect`,{x:e.x0,y:W,width:Math.max(0,e.x1-e.x0),height:K,className:`fin-yc-inv`},t)),v.yTicks.map((e,t)=>(0,x.jsxs)(`g`,{children:[(0,x.jsx)(`line`,{x1:U,y1:v.y(e),x2:326,y2:v.y(e),className:`fin-yc-grid`}),(0,x.jsx)(`text`,{x:U-6,y:v.y(e)+3,textAnchor:`end`,className:`fin-yc-tick`,children:y(e)})]},t)),v.tenors.map((e,t)=>(0,x.jsx)(`text`,{x:v.x(t),y:210,textAnchor:`middle`,className:`fin-yc-tick`,children:e},e)),v.compare.length>1&&(0,x.jsx)(`path`,{d:v.comparePath,fill:`none`,stroke:`var(--text-muted)`,strokeWidth:1.8,strokeDasharray:`4 3`,strokeLinejoin:`round`}),(0,x.jsx)(`path`,{ref:_,d:v.path,fill:`none`,stroke:`var(--presence)`,strokeWidth:2.2,strokeLinejoin:`round`,strokeLinecap:`round`}),v.main.map(e=>(0,x.jsx)(`circle`,{cx:e.x,cy:e.y,r:m===e.i?4:2.8,fill:`var(--presence)`,stroke:`var(--surface-default)`,strokeWidth:1,style:{cursor:`pointer`},onMouseEnter:()=>h(e.i)},e.i))]}),m!=null&&v.main.filter(e=>e.i===m).map(e=>(0,x.jsxs)(`div`,{className:`fin-yc-tip`,style:{left:`${e.x/V*100}%`,top:`${e.y/H*100}%`},children:[(0,x.jsx)(`b`,{children:e.tenor}),(0,x.jsx)(`span`,{className:`tab-num`,children:y(e.rate)})]},e.i))]}),v.inversions.length>0&&(0,x.jsxs)(`div`,{className:`fin-yc-flag`,children:[(0,x.jsx)(r.alert,{className:`ic`}),` Inverted:`,` `,v.inversions.map(e=>`${e.from} → ${e.to}`).join(`, `)]}),v.compare.length>1&&(0,x.jsxs)(`div`,{className:`fin-yc-legend`,children:[(0,x.jsxs)(`span`,{className:`fin-yc-leg`,children:[(0,x.jsx)(`i`,{className:`solid`}),` current`]}),(0,x.jsxs)(`span`,{className:`fin-yc-leg`,children:[(0,x.jsx)(`i`,{className:`dashed`}),` comparison`]})]}),c&&(0,x.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}var q=320,J=220,Y={l:34,r:12,t:14,b:26};function se({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,assets:a,frontier:s,footer:c,delay:l}){let f=r[t]||r.chart,[m,h]=(0,b.useState)(null),_=(0,b.useRef)(null);g(_,{delay:l});let v=(0,b.useMemo)(()=>(Array.isArray(a)?a:[]).filter(e=>Number.isFinite(e?.risk)&&Number.isFinite(e?.return)),[a]),y=(0,b.useMemo)(()=>(Array.isArray(s)?s:[]).filter(e=>Number.isFinite(e?.risk)&&Number.isFinite(e?.return)),[s]),{sx:S,sy:C,xTicks:w,yTicks:T}=(0,b.useMemo)(()=>{let e=[...v.map(e=>e.risk),...y.map(e=>e.risk)],t=[...v.map(e=>e.return),...y.map(e=>e.return)],n=p(e),r=p(t),[i,a]=d(n?n[0]:0,n?n[1]:1),[o,s]=d(r?r[0]:0,r?r[1]:1),c=u([i,a],[Y.l,q-Y.r]),l=u([o,s],[J-Y.b,Y.t]);return{sx:c,sy:l,xTicks:c.ticks(4),yTicks:l.ticks(4)}},[v,y]),E=y.map((e,t)=>`${t===0?`M`:`L`}${S(e.risk)} ${C(e.return)}`).join(` `);return(0,x.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,x.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,x.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,x.jsxs)(`div`,{className:`fin-ef-plot`,onMouseLeave:()=>h(null),children:[(0,x.jsxs)(`svg`,{viewBox:`0 0 ${q} ${J}`,className:`fin-ef-svg`,role:`img`,"aria-label":e,children:[w.map((e,t)=>(0,x.jsxs)(`g`,{children:[(0,x.jsx)(`line`,{x1:S(e),y1:Y.t,x2:S(e),y2:J-Y.b,className:`fin-ef-grid`}),(0,x.jsx)(`text`,{x:S(e),y:J-Y.b+12,className:`fin-ef-tick`,textAnchor:`middle`,children:o(e,{decimals:0})})]},`gx${t}`)),T.map((e,t)=>(0,x.jsxs)(`g`,{children:[(0,x.jsx)(`line`,{x1:Y.l,y1:C(e),x2:q-Y.r,y2:C(e),className:`fin-ef-grid`}),(0,x.jsx)(`text`,{x:Y.l-4,y:C(e)+3,className:`fin-ef-tick`,textAnchor:`end`,children:o(e,{decimals:0})})]},`gy${t}`)),(0,x.jsx)(`line`,{x1:Y.l,y1:J-Y.b,x2:q-Y.r,y2:J-Y.b,className:`fin-ef-axis`}),(0,x.jsx)(`line`,{x1:Y.l,y1:Y.t,x2:Y.l,y2:J-Y.b,className:`fin-ef-axis`}),y.length>1&&(0,x.jsx)(`path`,{ref:_,d:E,fill:`none`,stroke:`var(--insight)`,strokeWidth:2,strokeLinejoin:`round`,strokeLinecap:`round`}),v.map((e,t)=>{let n=S(e.risk),r=C(e.return),i=m===t;return(0,x.jsxs)(`g`,{children:[e.highlight&&(0,x.jsx)(`circle`,{cx:n,cy:r,r:8,fill:`none`,stroke:`var(--presence)`,strokeWidth:1.4,className:`fin-ef-ring`}),(0,x.jsx)(`circle`,{cx:n,cy:r,r:i?5.5:4,fill:e.highlight?`var(--presence)`:`var(--text-secondary)`,stroke:`var(--surface-default)`,strokeWidth:1,style:{cursor:`pointer`,transition:`r var(--m-fast)`},onMouseEnter:()=>h(t)})]},t)})]}),m!=null&&v[m]&&(0,x.jsxs)(`div`,{className:`fin-ef-tip`,style:{left:`${S(v[m].risk)/q*100}%`,top:`${C(v[m].return)/J*100}%`},children:[(0,x.jsx)(`b`,{children:v[m].label}),(0,x.jsxs)(`span`,{className:`tab-num faint`,children:[`risk `,o(v[m].risk,{decimals:1}),` · return`,` `,o(v[m].return,{decimals:1})]})]})]}),(0,x.jsxs)(`div`,{className:`fin-ef-axlbl`,children:[(0,x.jsx)(`span`,{children:`risk →`}),(0,x.jsx)(`span`,{children:`↑ return`})]}),c&&(0,x.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:i(c)})]})}function X(e){if(typeof e!=`string`)return 1/0;let t=new Date(e).getTime();if(!Number.isNaN(t))return t;let n=e.match(/\d+(\.\d+)?/);return n?parseFloat(n[0]):1/0}function ce(e){if(typeof e!=`string`)return`—`;let t=new Date(e).getTime();return Number.isNaN(t)?e:c(e,{style:`month`})}function le({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,rungs:a,footer:c,delay:l}){let u=r[t]||r.chart,d=(0,b.useMemo)(()=>[...a].sort((e,t)=>X(e.maturity)-X(t.maturity)),[a]),f=d.reduce((e,t)=>Math.max(e,t.yieldPct),0)||1;return(0,x.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,x.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,x.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,x.jsx)(`div`,{className:`fin-bl-items`,children:d.map((e,t)=>{let n=Math.max(0,e.yieldPct)/f*100,r=e.yieldPct===f;return(0,x.jsxs)(`div`,{className:`fin-bl-item m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,x.jsx)(`span`,{className:`fin-bl-badge`,children:ce(e.maturity)}),(0,x.jsx)(`span`,{className:`fin-bl-label`,title:e.label,children:e.label}),(0,x.jsx)(`div`,{className:`fin-bl-track`,children:(0,x.jsx)(`div`,{className:`fin-bl-fill`+(r?` leader`:``),style:{width:`${n}%`},...r?{"data-mark":`circle`}:{}})}),(0,x.jsx)(`span`,{className:`fin-bl-yield tab-num`,children:o(e.yieldPct,{decimals:e.yieldPct%1==0?0:2})}),(0,x.jsx)(`span`,{className:`fin-bl-face tab-num`,children:s(e.faceValue,{compact:e.faceValue>=1e6})})]},t)})}),c&&(0,x.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(c)})]})}var Z=46,ue=46,de=6,fe=104,pe=12,Q=6,me=14;function $(e,t){return a(e,t,{compact:e>=1e4})}function he({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,flows:o,periodLabel:c,discountRate:u,currency:p,footer:v,delay:S}){let C=r[t]||r.chart,[w,T]=(0,b.useState)(null),E=(0,b.useRef)(null);g(E,{delay:S});let D=typeof p==`string`&&p.trim()?p.trim():`$`,O=typeof c==`string`&&c.trim()?c.trim():`Year`,k=(0,b.useMemo)(()=>{let e=Array.isArray(o)?o:[],t=[];for(let n of e){if(!n||typeof n!=`object`)continue;let e=Number(n.period),r=Number(n.amount);if(!Number.isFinite(e)||!Number.isFinite(r))continue;let i=typeof n.label==`string`&&n.label.trim()?n.label:void 0;t.push({period:Math.max(0,Math.round(e)),amount:r,label:i})}if(t.sort((e,t)=>e.period-t.period),!t.length)return null;let n=t[t.length-1].period,r=l(0,n,n<=24?1:f(n,12));r.length||r.push(0);let i=[...new Set(t.map(e=>e.period))],a=n<=24?n+1:r.length,s=Math.min(1160,Math.max(320,(a-1)*48,i.length*18)),c=Z+s+ue,p=e=>n===0?Z+s/2:Z+e/n*s,m=t.reduce((e,t)=>Math.max(e,Math.abs(t.amount)),0),g=m>0?d(0,m)[1]:1,_=e=>e===0?0:Math.max(pe,Math.abs(e)/g*fe),v=i.map(p).sort((e,t)=>e-t),b=s;for(let e=1;e<v.length;e++)b=Math.min(b,v[e]-v[e-1]);b>0||(b=s);let x=new Map;for(let e of t)x.set(e.period,(x.get(e.period)??0)+1);let S=new Map,C=t.map(e=>{let t=x.get(e.period)??1,n=S.get(e.period)??0;S.set(e.period,n+1);let r=t>1?Math.max(3,Math.min(10,b*.85/(t-1))):0,i=e.amount>0?1:e.amount<0?-1:0;return{x:p(e.period)+(n-(t-1)/2)*r,dir:i,len:_(e.amount)}}),w=Math.max(2,Math.floor(s/40)),T=t.map((e,t)=>t).filter(e=>t[e].amount!==0).sort((e,n)=>Math.abs(t[n].amount)-Math.abs(t[e].amount)||e-n),E=[];for(let e of T){if(E.length>=w)break;E.some(t=>C[t].dir===C[e].dir&&Math.abs(C[t].x-C[e].x)<34&&Math.abs(C[t].len-C[e].len)<12)||E.push(e)}let O=new Set(E),k=t.map((e,t)=>({...e,i:t,...C[t],fit:O.has(t)?y($(Math.abs(e.amount),D),{maxWidth:56,fontSize:10,minFontSize:8,maxLines:2,lineHeight:1.12}):null})),A=16,j=24;for(let e of k){let t=e.fit?e.fit.lines.length*e.fit.lineHeightPx:0;e.dir===1&&(A=Math.max(A,e.len+(e.fit?t+8:4))),e.dir===-1&&(j=Math.max(j,e.len+(e.fit?t+10:6)))}let M=de+A,N=Math.ceil(M+j+6),P=h(r.length,s),F=typeof u==`number`&&Number.isFinite(u)&&u>-1?u:null,I=null;if(F!=null){I=0;for(let e of t){let t=(1+F)**+e.period;I+=t>0?e.amount/t:NaN}}return{nodes:k,tickVals:r,plan:P,W:c,H:N,plotW:s,axisY:M,xOf:p,maxP:n,rate:F,npv:I,hasIn:k.some(e=>e.dir===1),hasOut:k.some(e=>e.dir===-1)}},[o,u,D]),A=_(k?.npv??0,{duration:900,delay:(S||0)+300,format:e=>{let t=Math.abs(e);return(e<0?`−`:``)+a(t,D,{compact:t>=1e6,decimals:+(t>=1e6)})}}),j=e=>k==null||e.dir===0?k?.axisY??0:k.axisY-e.dir*e.len,M=w==null?null:k?.nodes[w]??null,N=k?.rate==null?``:s(Math.round(k.rate*1e4)/100,{percent:!0});return(0,x.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(S||0)+`ms`},children:[(0,x.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,x.jsx)(C,{className:`ic`,style:{color:n}}),` `,e]}),k?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`div`,{className:`fin-cf-scroll`,children:(0,x.jsxs)(`div`,{className:`fin-cf-plot`,style:{minWidth:k.W,maxWidth:Math.round(k.W*1.3)},onMouseLeave:()=>T(null),children:[(0,x.jsxs)(`svg`,{viewBox:`0 0 ${k.W} ${k.H}`,className:`fin-cf-svg`,role:`img`,"aria-label":e,children:[k.nodes.map(e=>{let t=j(e);return(0,x.jsxs)(`g`,{className:`fin-cf-flow m-stagger-item m-fade-rise`+(w===e.i?` on`:``),style:{"--i":e.i},onMouseEnter:()=>T(e.i),children:[(0,x.jsx)(`title`,{children:(e.label?e.label+` — `:``)+`${O} ${e.period}: `+(e.amount<0?`−`:e.amount>0?`+`:``)+$(Math.abs(e.amount),D)}),e.dir===0?(0,x.jsx)(`circle`,{cx:e.x,cy:k.axisY,r:2.6,className:`fin-cf-zero`}):(0,x.jsxs)(`g`,{className:`fin-cf-arrow `+(e.dir===1?`in`:`out`),children:[(0,x.jsx)(`line`,{x1:e.x,y1:k.axisY,x2:e.x,y2:t+e.dir*Q}),(0,x.jsx)(`path`,{d:`M${e.x} ${t} L${e.x-3.6} ${t+e.dir*Q} L${e.x+3.6} ${t+e.dir*Q} Z`})]}),e.fit&&(0,x.jsx)(`text`,{className:`fin-cf-amt `+(e.dir===1?`in`:`out`),textAnchor:`middle`,fontSize:e.fit.fontSize,children:e.fit.lines.map((n,r)=>(0,x.jsx)(`tspan`,{x:e.x,y:e.dir===1?t-6-(e.fit.lines.length-1-r)*e.fit.lineHeightPx:t+12+r*e.fit.lineHeightPx,children:n},r))})]},e.i)}),(0,x.jsx)(`line`,{ref:E,x1:Z-12,y1:k.axisY,x2:Z+k.plotW+12,y2:k.axisY,className:`fin-cf-axis`}),k.tickVals.map((e,t)=>(0,x.jsxs)(`g`,{children:[(0,x.jsx)(`line`,{x1:k.xOf(e),y1:k.axisY-3,x2:k.xOf(e),y2:k.axisY+3,className:`fin-cf-tickmark`}),t%k.plan.labelEvery===0&&(0,x.jsx)(`text`,{className:`fin-cf-tick`,x:k.xOf(e),y:k.axisY+me,textAnchor:`middle`,children:s(e,{compact:e>=1e4})})]},t))]}),M&&(0,x.jsxs)(`div`,{className:`fin-cf-tip`+(M.dir===-1?` below`:``),style:{left:`${M.x/k.W*100}%`,top:`${j(M)/k.H*100}%`},children:[(0,x.jsx)(`b`,{children:M.label||(M.dir>=0?`Inflow`:`Outflow`)}),(0,x.jsxs)(`span`,{children:[O,` `,s(M.period,{compact:M.period>=1e4})]}),(0,x.jsx)(`span`,{className:`tab-num`,children:(M.amount<0?`−`:M.amount>0?`+`:``)+$(Math.abs(M.amount),D)})]})]})}),(0,x.jsxs)(`div`,{className:`fin-cf-legend`,children:[k.hasIn&&(0,x.jsxs)(`span`,{className:`fin-cf-leg`,children:[(0,x.jsx)(`i`,{className:`in`,children:`↑`}),` Inflow`]}),k.hasOut&&(0,x.jsxs)(`span`,{className:`fin-cf-leg`,children:[(0,x.jsx)(`i`,{className:`out`,children:`↓`}),` Outflow`]}),(0,x.jsxs)(`span`,{className:`fin-cf-axcap`,children:[O,` `,k.maxP===0?`0`:`0–${s(k.maxP,{compact:k.maxP>=1e4})}`]})]}),k.rate!=null&&(0,x.jsxs)(`div`,{className:`fin-cf-npv`,children:[(0,x.jsxs)(`span`,{className:`fin-cf-npv-lbl`,children:[`Net present value`,` `,(0,x.jsxs)(`span`,{className:`fin-cf-npv-rate`,children:[`@ `,N,` per `,O.toLowerCase()]})]}),(0,x.jsx)(`b`,{className:`fin-cf-npv-val tab-num`+((k.npv??0)<0?` neg`:``),children:A})]})]}):(0,x.jsx)(m,{message:`No cash flows to draw`}),v&&(0,x.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:i(v)})]})}var ge=e({financeRegistry:()=>_e}),_e={vestingschedule:v(E),termsheet:v(D),fundraisingrounds:v(k),saferterms:v(A),dilutionwaterfall:v(te),threestatementlink:v(re),yieldcurve:v(oe),efficientfrontier:v(se),bondladder:v(le),cashflowtimeline:v(he)};export{ge as n,_e as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./react-BQSORdFI.js";var t=e();function n(e){return(n,r)=>(0,t.createElement)(e,{...n,delay:r.delay})}export{n as t};
@@ -1 +0,0 @@
1
- import{r as e}from"./chunk-BVpWp9h4.js";import{t}from"./react-BQSORdFI.js";import{t as n}from"./jsx-runtime-DaSxXjOY.js";import{ht as r}from"./index-C7H7A1rW.js";import{n as i}from"./icons-CHVz6kv_.js";import"./lib-C7zXL8h0.js";import{n as a}from"./motion-dfA87zbb.js";import{t as o}from"./registry-types-DMuK0vJ6.js";function s(e){switch(e){case`triggered`:return`var(--danger)`;case`clear`:return`var(--insight)`;case`watching`:return`var(--presence)`;default:return`var(--text-muted)`}}function c(e){switch(e){case`triggered`:return`TRIGGERED`;case`clear`:return`CLEAR`;case`watching`:return`WATCHING`;default:return`AWAITING`}}var l=n();function u({title:e=`Why you’re tracking this`,icon:t=`quote`,iconColor:n=`var(--presence)`,reasoning:r,asOf:a,reconsiderIf:o,tripwireState:u,footer:d,delay:f}){let p=i[t]||i.quote;return(0,l.jsxs)(`div`,{className:`card reveal dash-thesis`,style:{"--delay":(f||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`blockquote`,{className:`dash-thesis-quote`,style:{borderColor:n},children:[r,a&&(0,l.jsx)(`span`,{className:`dash-thesis-date`,children:a})]}),o&&(0,l.jsxs)(`div`,{className:`dash-thesis-tripwire`,children:[(0,l.jsx)(`span`,{className:`dash-thesis-recon`,children:`Reconsider if:`}),(0,l.jsx)(`span`,{className:`dash-chip`,style:{"--chip":s(u??`watching`)},children:o}),u&&(0,l.jsx)(`span`,{className:`dash-chip-state`,style:{"--chip":s(u)},children:c(u)})]}),d&&(0,l.jsx)(`div`,{className:`dash-foot`,children:d})]})}var d=r(),f=t(),p=46,m=60,h=60;function g(e){return{x:m+p*Math.cos(e),y:h+p*Math.sin(e)}}function _(e){if(e<=0)return null;let t=Math.min(e,.9998),n=-Math.PI/2,r=n+t*2*Math.PI,i=g(n),a=g(r),o=+(t>.5);return`M ${i.x.toFixed(2)} ${i.y.toFixed(2)} A ${p} ${p} 0 ${o} 1 ${a.x.toFixed(2)} ${a.y.toFixed(2)}`}function v(e){let t=(0,d.c)(5),{d:n,color:r,delay:i}=e,o=(0,f.useRef)(null),s;t[0]===i?s=t[1]:(s={delay:i},t[0]=i,t[1]=s),a(o,s);let c;return t[2]!==r||t[3]!==n?(c=(0,l.jsx)(`path`,{ref:o,d:n,fill:`none`,stroke:r,strokeWidth:`9`,strokeLinecap:`round`,className:`dash-gauge-arc`}),t[2]=r,t[3]=n,t[4]=c):c=t[4],c}function y({title:e=`Thesis alignment`,icon:t=`shield`,iconColor:n=`var(--insight)`,pct:r,band:a,note:o,color:s=`var(--insight)`,footer:c,delay:u}){let d=i[t]||i.shield,f=r!==null&&Number.isFinite(r),m=_(f?Math.max(0,Math.min(100,r))/100:0);return(0,l.jsxs)(`div`,{className:`card reveal dash-gauge`,style:{"--delay":(u||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`dash-gauge-body`,children:[(0,l.jsxs)(`div`,{className:`dash-gauge-ring`,children:[(0,l.jsxs)(`svg`,{viewBox:`0 0 120 120`,className:`dash-gauge-svg`,"aria-hidden":`true`,children:[(0,l.jsx)(`circle`,{cx:`60`,cy:`60`,r:p,fill:`none`,stroke:`var(--track)`,strokeWidth:`9`}),m&&(0,l.jsx)(v,{d:m,color:s,delay:u},m)]}),(0,l.jsx)(`div`,{className:`dash-gauge-center`,children:(0,l.jsx)(`div`,{className:`dash-gauge-pct tab-num`,style:{color:f?s:`var(--text-muted)`},children:f?`${Math.round(r)}%`:`—`})})]}),(0,l.jsx)(`div`,{className:`dash-gauge-side`,children:f?(0,l.jsxs)(l.Fragment,{children:[a&&(0,l.jsx)(`div`,{className:`dash-gauge-band`,children:a}),o&&(0,l.jsx)(`div`,{className:`dash-gauge-note`,children:o})]}):(0,l.jsx)(`div`,{className:`dash-gauge-note faint`,children:`Awaiting your data`})})]}),c&&(0,l.jsx)(`div`,{className:`dash-foot`,children:c})]})}function b({title:e=`Standing alerts`,icon:t=`bell`,iconColor:n=`var(--warning)`,alerts:r,footer:a,delay:o}){let u=i[t]||i.bell;return(0,l.jsxs)(`div`,{className:`card reveal dash-alerts`,style:{"--delay":(o||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),r.length===0?(0,l.jsx)(`div`,{className:`dash-alerts-empty faint`,children:`No standing alerts.`}):(0,l.jsx)(`div`,{className:`dash-alerts-list`,children:r.map((e,t)=>(0,l.jsxs)(`div`,{className:`dash-alert-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,l.jsx)(`span`,{className:`dash-alert-dot`,style:{background:s(e.state)}}),(0,l.jsx)(`span`,{className:`dash-alert-label`,children:e.label}),(0,l.jsx)(`span`,{className:`dash-alert-state`,style:{color:s(e.state)},children:e.status??c(e.state)})]},t))}),a&&(0,l.jsx)(`div`,{className:`dash-foot`,children:a})]})}var x={origin:`var(--presence)`,added:`var(--insight)`,linked:`var(--warning)`},S={origin:`ORIGIN`,added:`ADDED`,linked:`LINKED`};function C({title:e=`Sources`,icon:t=`layers`,iconColor:n=`var(--text-muted)`,rows:r,footer:a,delay:o}){let s=i[t]||i.layers;return(0,l.jsxs)(`div`,{className:`card reveal dash-sources`,style:{"--delay":(o||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(s,{className:`ic`,style:{color:n}}),` `,e]}),r.length===0?(0,l.jsx)(`div`,{className:`dash-sources-empty faint`,children:`No sources yet.`}):(0,l.jsx)(`div`,{className:`dash-sources-list`,children:r.map((e,t)=>(0,l.jsxs)(`div`,{className:`dash-source-row`,children:[(0,l.jsx)(`span`,{className:`dash-source-rail`,style:{background:x[e.kind]}}),(0,l.jsxs)(`div`,{className:`dash-source-body`,children:[(0,l.jsxs)(`div`,{className:`dash-source-head`,children:[(0,l.jsx)(`span`,{className:`dash-source-label`,children:e.label}),(0,l.jsx)(`span`,{className:`dash-source-kind`,style:{color:x[e.kind]},children:S[e.kind]})]}),e.contributed&&(0,l.jsx)(`div`,{className:`dash-source-contrib`,children:e.contributed})]})]},t))}),a&&(0,l.jsx)(`div`,{className:`dash-foot`,children:a})]})}var w=e({dashboardRegistry:()=>T}),T={thesis:o(u),alignmentgauge:o(y),standingalerts:o(b),sourceslineage:o(C)};export{w as n,T as t};
@@ -1,23 +0,0 @@
1
- import{t as e}from"./providers-wzm7E8Pa.js";import{n as t}from"./streamParse-DRgMHWye.js";import{t as n}from"./verbatim-CBMzUDlf.js";import{t as r}from"./extractNumbers-CuhagRkd.js";function i(e){return`${+e.toFixed(1)}%`}function a(e,t,n){return e.unit!==t.unit||Math.abs(e.value-t.value)<=(e.unit===`%`?.5:e.unit===`x`?.05:Math.max(1,Math.abs(e.value)*.02))?null:{label:n,stated:e.raw,computed:t.raw,detail:`p.${e.page}: ${e.raw} ✕ p.${t.page}: ${t.raw}`}}function o(e,t,n,r){if(e.unit!==`%`||t.unit!==n.unit||t.unit!==`currency`&&t.unit!==`count`||t.value===0)return null;let a=(n.value-t.value)/t.value*100,o=Math.max(1,Math.abs(e.value)*.05);return Math.abs(a-e.value)<=o?null:{label:r,stated:e.raw,computed:i(a),detail:`p.${e.page}: ${e.raw} ✕ p.${t.page}: ${t.raw}→${n.raw} = ${i(a)}`}}var s=60,c=8;function l(e){if(e&&typeof e==`object`)return e;let t=String(e),n=t.indexOf(`{`);if(n<0)return null;let r=0,i=!1,a=!1;for(let e=n;e<t.length;e+=1){let o=t[e];if(i){a?a=!1:o===`\\`?a=!0:o===`"`&&(i=!1);continue}if(o===`"`)i=!0;else if(o===`{`)r+=1;else if(o===`}`&&(--r,r===0))try{return JSON.parse(t.slice(n,e+1))}catch{return null}}return null}function u(e){return typeof e==`string`?e:``}var d=`You check a document's own numbers for internal consistency and return strict JSON only. You only relate figures the document ITSELF ties together, you never invent a quote, and when nothing checkably relates you return an empty list.`;function f(e){return`Below are figures extracted verbatim from ONE document. Find places where the document's own
2
- numbers disagree — and ONLY those the document itself relates.
3
-
4
- FIGURES:
5
- ${e.map(e=>`[${e.id}] ${e.raw}${e.label?` (${e.label})`:``} — in: "${e.quote}" (p.${e.page})`).join(`
6
- `)}
7
-
8
- Return ONLY JSON (no prose, no fences):
9
- { "checks": [
10
- { "type": "equality", "ids": ["<id>", "<id>"], "label": "<the single quantity BOTH figures describe>", "evidence": "<a phrase copied VERBATIM from the document showing they are the same quantity>" },
11
- { "type": "growth", "percentId": "<id>", "fromId": "<id>", "toId": "<id>", "label": "<the quantity>", "evidence": "<a phrase copied VERBATIM showing the percent is the change from the first value to the second>" }
12
- ] }
13
-
14
- Rules:
15
- - Only propose a check when the DOCUMENT ITSELF asserts the relationship — e.g. a percent and a table
16
- figure that are clearly the SAME labelled quantity, or a "% growth/increase/decline" stated next to
17
- the two values it is computed from. Do NOT relate figures that merely look similar or share a topic.
18
- - Every "evidence" MUST be copied character-for-character from the document (it is verified — anything
19
- not found verbatim is dropped). All ids MUST come from the list above.
20
- - "equality" is for two figures of the SAME unit asserted to be the same quantity. "growth" is for a
21
- percent that should equal the change between two money/count values.
22
- - If nothing checkably relates, return { "checks": [] }. Quality over quantity — only defensible checks.
23
- - Return at most 10 checks — if a dense document has more, keep the 10 strongest.`}function p(e){let n=l(e),r=n&&Array.isArray(n.checks)?n.checks:typeof e==`string`?t(e,`checks`):[],i=[];for(let e of r)e&&typeof e==`object`&&i.push(e);return i}async function m(t,i,l,m){let h=r(t).slice(0,s);if(h.length<2)return[];let g;try{g=(await e(l.provider).generate({system:d,history:[],user:f(h),maxTokens:1500,temperature:0,format:null,...m?{signal:m}:{}},l)).raw}catch{return[]}let _=new Map(h.map(e=>[e.id,e])),v=e=>!!e.trim()&&i.some(t=>n(e,t)>0),y=[],b=new Set,x=0;for(let e of p(g)){if(y.length>=c)break;if(v(u(e.evidence))){if(e.type===`equality`){let t=Array.isArray(e.ids)?e.ids.map(u):[],n=_.get(t[0]),r=_.get(t[1]);if(!n||!r||n.claimId===r.claimId)continue;let i=a(n,r,u(e.label)||n.label||r.label||`these figures`);if(!i)continue;let o=`e:${[n.claimId,r.claimId].sort().join(`|`)}:${i.stated}:${i.computed}`;if(b.has(o))continue;b.add(o),y.push({id:`r${x+=1}`,kind:`equality`,...i,claimIds:[n.claimId,r.claimId],a:n.claimId,b:r.claimId})}else if(e.type===`growth`){let t=_.get(u(e.percentId)),n=_.get(u(e.fromId)),r=_.get(u(e.toId));if(!t||!n||!r)continue;let i=o(t,n,r,u(e.label)||t.label||`growth`);if(!i)continue;let a=[...new Set([t.claimId,n.claimId,r.claimId])],s=`g:${[t.claimId,r.claimId].sort().join(`|`)}:${i.stated}:${i.computed}`;if(b.has(s))continue;b.add(s),y.push({id:`r${x+=1}`,kind:`growth`,...i,claimIds:a,a:t.claimId,b:r.claimId})}}}return y}export{m as runReconcile};
@@ -1,21 +0,0 @@
1
- import{t as e}from"./providers-wzm7E8Pa.js";import{n as t}from"./streamParse-DRgMHWye.js";import{t as n}from"./verbatim-CBMzUDlf.js";var r=[`unstated-assumption`,`missing-baseline`,`cherry-pick`,`overgeneralization`,`undefined-term`,`circular`];function i(e){let t=String(e??``).toLowerCase().trim();return r.includes(t)?t:`unstated-assumption`}function a(e,t,r,a){let o=(e.anchorQuote??``).trim(),s=(e.question??``).trim();if(!o||!s)return null;let c=r[t.source];if(!c)return null;let l=n(o,c);if(l===0)return null;let u,d=(e.rebuttalQuote??``).trim();if(e.addressed&&d)for(let e=0;e<r.length;e+=1){let t=n(d,r[e]);if(t>0){u={quote:d,page:t,doc:e};break}}return{id:`obj-${t.id}-${a}`,claimId:t.id,doc:t.source,kind:i(e.kind),question:s,anchorQuote:o,anchorPage:l,status:u?`addressed`:`open`,...u?{rebuttalQuote:u.quote,rebuttalPage:u.page,rebuttalDoc:u.doc}:{}}}var o=10;function s(e){if(e&&typeof e==`object`)return e;let t=String(e),n=t.indexOf(`{`);if(n<0)return null;let r=0,i=!1,a=!1;for(let e=n;e<t.length;e+=1){let o=t[e];if(i){a?a=!1:o===`\\`?a=!0:o===`"`&&(i=!1);continue}if(o===`"`)i=!0;else if(o===`{`)r+=1;else if(o===`}`&&(--r,r===0))try{return JSON.parse(t.slice(n,e+1))}catch{return null}}return null}var c=`You are a meticulous, skeptical peer reviewer. You attack only a document's INTERNAL logic — never outside facts — you quote the document verbatim, and you return strict JSON only.`;function l(e){return`For each CLAIM below (a load-bearing assertion from one document), raise the single SHARPEST
2
- objection to its internal logic, using ONLY this taxonomy:
3
- - unstated-assumption | missing-baseline | cherry-pick | overgeneralization | undefined-term | circular
4
-
5
- CLAIMS:
6
- ${e.map(e=>`[${e.id}] "${e.quote}" (p.${e.page})`).join(`
7
- `)}
8
-
9
- Return ONLY JSON (no prose, no fences):
10
- { "objections": [ { "claimId": "...", "kind": "<taxonomy>", "question": "<the sharp question, <=140 chars>",
11
- "anchorQuote": "<the document's OWN words the objection targets, copied VERBATIM>",
12
- "addressed": true|false, "rebuttalQuote": "<if the document answers it elsewhere, the verbatim sentence that does>" } ] }
13
-
14
- Rules:
15
- - Exactly ONE objection per claim — the sharpest. "kind" MUST be from the taxonomy above.
16
- - Attack the internal logic only (a missing control, an unstated assumption, an overreach). NEVER bring
17
- in outside facts or your own knowledge.
18
- - "anchorQuote" MUST be copied character-for-character from the document (it is verified; if not found,
19
- the objection is dropped).
20
- - "addressed": true ONLY if the DOCUMENT ITSELF answers the objection elsewhere — and then "rebuttalQuote"
21
- MUST be the verbatim sentence that answers it. If you are unsure, set addressed=false. Do not invent a rebuttal.`}function u(e){let n=s(e),r=n&&Array.isArray(n.objections)?n.objections:typeof e==`string`?t(e,`objections`):[],i=[];for(let e of r)e&&typeof e==`object`&&i.push(e);return i}async function d(t,n,r,i){let s=t.slice(0,o);if(s.length===0)return[];let d;try{d=(await e(r.provider).generate({system:c,history:[],user:l(s),maxTokens:Math.min(4096,Math.max(1400,150+s.length*320)),temperature:0,format:null,...i?{signal:i}:{}},r)).raw}catch{return[]}let f=new Map(s.map(e=>[e.id,e])),p=[],m=new Set,h=0;for(let e of u(d)){let t=f.get(String(e.claimId??``));if(!t||m.has(t.id))continue;let r=a(e,{id:t.id,source:t.source},n,h+=1);r&&(m.add(t.id),p.push(r))}return p.sort((e,t)=>e.status===t.status?0:e.status===`open`?-1:1)}export{d as runCrossExam};
@@ -1 +0,0 @@
1
- var e=[`upload.wikimedia.org`,`commons.wikimedia.org`,`images.unsplash.com`,`images.pexels.com`,`cdn.pixabay.com`,`images-assets.nasa.gov`,`www.nasa.gov`];function t(t){let n=t.toLowerCase();return e.some(e=>n===e||n.endsWith(`.`+e))}function n(e){if(!e)return;let n=e.trim();if(!n)return;let r;try{r=new URL(n)}catch{return}if(r.protocol===`https:`&&t(r.hostname))return r.toString()}function r(e){if(!e)return;let t=e.trim();return t.startsWith(`/`)&&!t.startsWith(`//`)?t:n(t)}function i(e){if(!e)return;let t=e.trim();if(t){if(t.startsWith(`/`)&&!t.startsWith(`//`))return t;if(!(typeof window>`u`))try{let e=new URL(t,window.location.origin);return e.origin!==window.location.origin||e.protocol!==`http:`&&e.protocol!==`https:`?void 0:`${e.pathname}${e.search}${e.hash}`}catch{return}}}export{n,i as r,r as t};
@@ -1 +0,0 @@
1
- var e=15e4,t=8,n=18,r=11,i=3,a=9,o=32e4,s=3;function c(c=`rich`,l={}){if(c===`brief`)return s;let u=typeof window>`u`?1440:window.innerWidth||1440,d=typeof window>`u`?900:window.innerHeight||900;if(c===`lean`){let e=Math.round(u*d/o);return Math.max(i,Math.min(a,e))}let f=l.teaching?r:t;if(typeof window>`u`)return l.teaching?r:10;let p=Math.round(u*d/e);return Math.max(f,Math.min(n,p))}function l(e,t){return e===`brief`?`BLOCK COUNT — override any number above: the user explicitly asked for a SHORT answer, so give a TIGHT reply of 1 to 3 blocks. Lead with the single direct answer (an insight, or the one visual that fits it), add at most one supporting block, and STOP. Do NOT expand it into a dashboard or pre-answer extra questions — brevity is what they asked for, and a tight, complete answer is the GOAL here, not a failure.`:e===`lean`?`BLOCK COUNT — override any number above: this is a simple question, so keep it focused — about ${t} blocks, and ALWAYS at least 3 (never a single lone card). Lead with the direct answer, then add a couple of RELATED or adjacent visuals that give it context — the way a good explainer doesn't just state a fact but shows a beat around it (e.g. for "1+1" → the result, then a tiny number-line or a related-facts strip; for "capital of France" → the answer, then a key-stats kpi and a related-places list). Keep it small and clean — NOT a full dashboard — but never bare.`:`BLOCK COUNT — override any number above: size the canvas to the answer's REAL SUBSTANCE, not to a fixed number. This is a substantive question, so go rich and wide — aim for around ${t} blocks when the topic genuinely has that much to show (it usually does), filling the screen with varied, real visuals. But never pad with filler just to hit a number, and never cut real content to look tidy: if the COMPLETE answer needs more than ${t}, add them. HARD FLOOR: always emit at least 3 blocks — never 1 or 2, even for a simple topic. A good answer is the direct answer block PLUS supporting context and a related visual.`}export{c as n,l as t};
@@ -1 +0,0 @@
1
- function e(e){return!e||!Number.isFinite(e)?5:Math.min(20,Math.max(1,Math.floor(e)))}var t=`https://en.wikipedia.org/w/api.php`,n=6e3;function r(e,n=5){return`${t}?${new URLSearchParams({action:`query`,list:`search`,srsearch:e,srlimit:String(n),srprop:`snippet`,format:`json`,origin:`*`}).toString()}`}function i(e){return e.replace(/<[^>]*>/g,``).replace(/&nbsp;/g,` `).replace(/&quot;/g,`"`).replace(/&amp;/g,`&`).replace(/&#39;/g,`'`).replace(/&lt;/g,`<`).replace(/&gt;/g,`>`).replace(/\s+/g,` `).trim()}function a(e){let t=e?.query,n=Array.isArray(t?.search)?t.search:[],r=[];for(let e of n){let t=typeof e.title==`string`?e.title:``;t&&r.push({title:t,url:`https://en.wikipedia.org/wiki/${encodeURIComponent(t.replace(/ /g,`_`))}`,snippet:typeof e.snippet==`string`?i(e.snippet):``})}return r}var o={id:`wikipedia`,needsKey:!1,async search(t,i={}){let o=t.trim();if(!o)return[];let{signal:s}=i,c=new AbortController,l=setTimeout(()=>c.abort(),n),u=()=>c.abort();s?.addEventListener(`abort`,u,{once:!0});try{let t=await fetch(r(o,e(i.limit)),{signal:c.signal});return t.ok?a(await t.json()):[]}catch{return[]}finally{clearTimeout(l),s?.removeEventListener(`abort`,u)}}};async function s(e,t,n,r){let i=new AbortController,a=setTimeout(()=>i.abort(),n),o=()=>i.abort();r?.addEventListener(`abort`,o,{once:!0});try{return await fetch(e,{...t,signal:i.signal})}catch{return null}finally{clearTimeout(a),r?.removeEventListener(`abort`,o)}}var c=`/search/brave`,l=`/res/v1/web/search`,u=6e3;function d(e,t=5){return`${c}${l}?${new URLSearchParams({q:e,count:String(t)}).toString()}`}function f(e){let t=e?.web,n=Array.isArray(t?.results)?t.results:[],r=[];for(let e of n){let t=typeof e.url==`string`?e.url:``,n=typeof e.title==`string`?e.title:``;!t||!n||r.push({title:i(n),url:t,snippet:i(String(e.description??``))})}return r}var p={id:`brave`,needsKey:!0,async search(t,n={}){let r=t.trim();if(!r||!n.apiKey)return[];let i=await s(d(r,e(n.limit)),{method:`GET`,headers:{Accept:`application/json`,"X-Subscription-Token":n.apiKey}},u,n.signal);if(!i?.ok)return[];try{return f(await i.json())}catch{return[]}}},m=`/search/tavily`,h=`/search`,g=8e3;function _(e){let t=Array.isArray(e?.results)?e.results:[],n=[];for(let e of t){let t=typeof e.url==`string`?e.url:``,r=typeof e.title==`string`?e.title:``;!t||!r||n.push({title:i(r),url:t,snippet:i(String(e.content??``))})}return n}var v={wikipedia:o,brave:p,tavily:{id:`tavily`,needsKey:!0,async search(t,n={}){let r=t.trim();if(!r||!n.apiKey)return[];let i=await s(`${m}${h}`,{method:`POST`,headers:{"Content-Type":`application/json`,Authorization:`Bearer ${n.apiKey}`},body:JSON.stringify({query:r,max_results:e(n.limit),search_depth:`basic`})},g,n.signal);if(!i?.ok)return[];try{return _(await i.json())}catch{return[]}}}};function y(e){return e&&v[e]||o}var b=/\b(latest|current|currently|today|tonight|tomorrow|now|recent|recently|this (week|weekend|month|year)|upcoming|next (?:week(?:end)?|month|game|match|season)|fixtures?|schedule[ds]?|line[- ]?ups?|kick[- ]?off|who(?:'s| is| are)? (?:playing|plays)|202\d|news|update|price|cost|stock|scores?|weather|forecast|release[ds]?|version|who(?:'s| is| are| was)|what(?:'s| is| are| was)|when (is|was|did)|where (is|was)|how (much|many)|population|capital|ceo|founded|net worth|statistics?|stats)\b/i,x=`(?:jan(?:uary)?|feb(?:ruary)?|mar(?:ch)?|apr(?:il)?|may|jun(?:e)?|jul(?:y)?|aug(?:ust)?|sep(?:t(?:ember)?)?|oct(?:ober)?|nov(?:ember)?|dec(?:ember)?)\\.?\\s+\\d{1,2}(?:st|nd|rd|th)?\\b`,S=RegExp(`\\b(?:trip|visit(?:ing)?|travel(?:l?ing)?|vacation|itinerary|going to|flying to|heading to)\\b[\\s\\S]{0,40}${x}`,`i`),C=`(?:this |next )?(?:mon|tue(?:s)?|wed(?:nes)?|thu(?:rs)?|fri|sat(?:ur)?|sun)(?:day)?`,w=`(?:games?|match(?:es)?|fixtures?|kick[- ]?off|final|semi[- ]?finals?|playoffs?|tournament|concert|gig|screening|premiere|festival|match[- ]?up)`,T=`(?:${x}|\\b${C}\\b|\\bthe \\d{1,2}(?:st|nd|rd|th)\\b)`,E=RegExp(`\\b${w}\\b[\\s\\S]{0,40}${T}|${T}[\\s\\S]{0,40}\\b${w}\\b`,`i`);function D(e){let t=e.trim();return t.length<3?!1:b.test(t)||S.test(t)||E.test(t)}var O=new RegExp([`live score|final score|half[- ]?time|who'?s winning`,`who won (?:the )?(?:game|match|race|fight|bout|series|final)`,`(?<!\\b(?:wrote|writes|writing|composed|film|music|movie|metacritic|review|test|exam)\\s)\\bscores?\\b(?=.*\\b(?:today|tonight|last night|now|live|games?|match(?:es)?)\\b)`,`\\b(?:the|today'?s|tonight'?s|current)\\s+(?:\\w+\\s+){0,2}?(?<!\\b(?:video|board|card)\\s)(?:games?|match(?:es)?)\\b[^.?!]{0,30}\\bscores?\\b`,`\\bstandings?\\b|league table`,`\\b(?:games?|matches|match|fixtures?|schedule|kick[- ]?off|line[- ]?ups?|who plays)\\b(?=.*\\b(?:this weekend|tonight|today|tomorrow|this week|upcoming|right now)\\b)`,`\\b(?:stock|share|crypto|bitcoin|ethereum|btc|eth)\\b.{0,15}\\b(?:price|value|worth|quote|trading|rate)\\b`,`stock market|market cap|exchange rate|gas prices?`,`\\bweather\\b|\\bforecast\\b|temperature (?:right now|today|outside)`,`breaking news|latest (?:news|headlines?)|today'?s (?:news|headlines?)|news (?:right now|today)`,`right now|at the moment|as we speak`].join(`|`),`i`),k=/\b(?:1\d{3}|20[0-2]\d|in \d{4}|back in|years? ago|all[-\s]?time)\b/i;function A(e){let t=e.trim();return t.length<3||k.test(t)?!1:O.test(t)||E.test(t)}var j=/^(?:what(?:'s| is| are| was| were)?|who(?:'s| is| are| was| were)?|when (?:is|was|did|will)|where (?:is|are|was)|how (?:much|many|do|does|did|has|have)|tell me about|give me|show me|can you (?:tell me|show me)?|could you|please|i want to know|do you know)\s+/i,M=/[,;]?\s*(?:and how (?:has|have|did|does) .+|right now|at the moment|currently|today|recently|these days|this (?:week|month|year)|so far)\s*$/i;function N(e){let t=e.trim().replace(/[?!.]+$/,``).replace(j,``).replace(M,``).replace(/\s+/g,` `).trim(),n=t.length>=3?t:e.trim();return n.length>96?n.slice(0,96).trim():n}var P=/\b(\d{1,3})\s+(?:results?|sources?|articles?|links?|headlines?|items?|examples?|options?|ideas?|entries?|citations?|references?)\b/i,F=/\btop\s+(\d{1,3})\b/i;function I(e){let t=e.match(P)??e.match(F);if(!t)return;let n=Number(t[1]);return Number.isFinite(n)&&n>=1?n:void 0}export{N as a,I as i,D as n,e as o,A as r,y as t};
@@ -1 +0,0 @@
1
- import{r as e}from"./chunk-BVpWp9h4.js";import{n as t}from"./http-CJCtjYpA.js";import{t as n}from"./providers-wzm7E8Pa.js";import{n as r,t as i}from"./contentVault-DzTYWcbD.js";var a=null,o=!1,s=!1,c=0,l=new Map;function u(){if(!(a||s)){if(typeof Worker>`u`){s=!0;return}try{a=new Worker(new URL(`/assets/worker-BbLKfGzm.js`,``+import.meta.url),{type:`module`}),a.onmessage=e=>{let t=e.data;if(t.type===`ready`)o=!0;else if(t.type===`error`)s=!0,d();else if(t.type===`result`){let e=l.get(t.id);l.delete(t.id),e?.kind===`fit`&&e.resolve(t.fits)}else if(t.type===`embedded`){let e=l.get(t.id);l.delete(t.id),e?.kind===`embed`&&e.resolve(t.vec.length?t.vec:null)}},a.onerror=()=>{s=!0,d()},a.postMessage({type:`init`,base:h,modelId:m})}catch{s=!0}}}function d(){for(let e of l.values())e.resolve(null);l.clear();try{a?.terminate()}catch{}a=null,o=!1}function f(e,t=80){if(u(),!o||!a)return Promise.resolve(null);let n=++c;return new Promise(r=>{let i=setTimeout(()=>{l.delete(n),r(null)},t);l.set(n,{kind:`fit`,resolve:e=>{clearTimeout(i),r(e?new Map(e):null)}}),a.postMessage({type:`fit`,id:n,query:e})})}function p(e,t=80){if(u(),!o||!a)return Promise.resolve(null);let n=++c;return new Promise(r=>{let i=setTimeout(()=>{l.delete(n),r(null)},t);l.set(n,{kind:`embed`,resolve:e=>{clearTimeout(i),r(e)}}),a.postMessage({type:`embed`,id:n,text:e})})}var m=`minishlab/potion-base-8M`,h=`/semantic/`,ee=new Set(`the.a.an.and.or.but.of.to.in.on.for.is.are.was.were.be.been.am.as.at.by.it.its.this.that.these.those.with.your.you.my.mine.me.we.us.our.they.them.their.he.she.his.her.do.does.did.has.have.had.will.would.can.could.should.about.from.into.if.then.so.than.too.very.just.also.what.when.where.who.why.how.which.not.no.yes.up.out.over`.split(`.`));function te(e){return(e.toLowerCase().match(/[a-z0-9]+/g)??[]).filter(e=>e.length>=2&&!ee.has(e))}function g(e){return new Set(te(e))}function ne(e,t){if(!e.size||!t.size)return 0;let n=0;for(let r of e)t.has(r)&&(n+=1);return n/(e.size+t.size-n)}function re(e,t){if(!e.size)return 0;let n=0;for(let r of e)t.has(r)&&(n+=1);return n/e.size}var _=`mavea-live-memory-v3`,v=`mavea-live-memory-v2`,y=`mavea-live-memory-v1`,b=`mavea-live-memory`,x=50,S=20,ie=400,C=200,w=/^[a-z][a-z0-9]*(\.[a-z][a-z0-9]*)*$/,ae=.5,T={"model-inferred":0,"web-grounded":1,"ink-correction":2,"user-stated":3,"user-edit":3},oe=new Set([`user-stated`,`user-edit`,`ink-correction`,`web-grounded`]);function se(e){return oe.has(e??`model-inferred`)}function ce(e,t){return T[t]>T[e]?t:e}var E={nodes:[],updatedAt:0},D=null,O=0;function k(){try{let e=globalThis.crypto;if(e?.randomUUID)return e.randomUUID()}catch{}return O+=1,`mn-${O.toString(36)}-${Math.floor(Math.random()*1e9).toString(36)}`}function A(e){return e.replace(/\s+/g,` `).trim().slice(0,ie)}function j(e){return e.toLowerCase().trim().replace(/\s+/g,`.`)}var M=new Set(Object.keys(T));function N(e){return typeof e==`string`&&M.has(e)}function P(e){if(!Array.isArray(e))return;let t=e.filter(e=>typeof e==`string`&&e.length>0).slice(0,12);return t.length?t:void 0}function le(e){return e===`tight`||e===`standard`||e===`deep`}function F(e){return typeof e==`number`&&Number.isFinite(e)&&e>0?Math.floor(e):void 0}function I(e){if(!e||typeof e!=`object`)return null;let t=e,n=typeof t.concept==`string`?j(t.concept):``;if(!n||!w.test(n))return null;let r=typeof t.body==`string`?A(t.body):``;return r?{id:typeof t.id==`string`&&t.id?t.id:k(),concept:n,body:r,updatedAt:typeof t.updatedAt==`number`&&Number.isFinite(t.updatedAt)?t.updatedAt:0,kind:t.kind===`procedural`?`procedural`:`semantic`,source:N(t.source)?t.source:`model-inferred`,state:t.state===`archived`?`archived`:`active`,prevBody:typeof t.prevBody==`string`?A(t.prevBody):void 0,turnId:typeof t.turnId==`string`?t.turnId:void 0,quote:typeof t.quote==`string`?t.quote.replace(/\s+/g,` `).trim().slice(0,C):void 0,uses:F(t.uses)??0,prefer:P(t.prefer),avoid:P(t.avoid),depth:le(t.depth)?t.depth:void 0,verify:typeof t.verify==`boolean`?t.verify:void 0,wins:F(t.wins),losses:F(t.losses)}:null}function ue(){try{if(typeof localStorage>`u`)return null;let e=localStorage.getItem(y);if(!e)return null;let t=JSON.parse(e),n=Array.isArray(t.facts)?t.facts.map(e=>{if(e&&typeof e==`object`){let t=e;return typeof t.text==`string`?t.text.trim():``}return``}).filter(e=>e.length>0):[];if(!n.length)return null;let r=I({concept:`profile`,body:n.join(`. `),source:`model-inferred`});return r?{nodes:[r],updatedAt:0}:null}catch{return null}}function de(){try{if(typeof localStorage>`u`)return null;let e=localStorage.getItem(v);if(!e)return null;let t=JSON.parse(e),n=Array.isArray(t.nodes)?t.nodes.map(I).filter(e=>e!==null):[];return n.length?{nodes:n.slice(-50),updatedAt:typeof t.updatedAt==`number`?t.updatedAt:0}:null}catch{return null}}var L=!1,R=0;function z(e){let t=e??{};return{nodes:(Array.isArray(t.nodes)?t.nodes.map(I).filter(e=>e!==null):[]).slice(-50),updatedAt:typeof t.updatedAt==`number`?t.updatedAt:0}}async function B(e){let t=++R;try{if(typeof localStorage>`u`)return;let n=await r(e);if(t!==R)return;localStorage.setItem(_,n)}catch{}}function V(){try{if(typeof localStorage>`u`)return{...E};let e=localStorage.getItem(_);if(!e)return de()??ue()??{...E};let t=z(JSON.parse(e));return t.nodes.length&&B(t),t}catch{return{...E}}}async function H(){try{if(typeof localStorage>`u`)return;let e=localStorage.getItem(_);if(!e)return;try{JSON.parse(e);return}catch{}let t=z(await i(e));if(L)return;D=t,L=!0,typeof window<`u`&&typeof CustomEvent==`function`&&window.dispatchEvent(new CustomEvent(b,{detail:{nodes:t.nodes,changed:[]}}))}catch{}}H();function U(){return D||(D=V(),D)}function W(e,t){D=e,L=!0,B(e);try{typeof window<`u`&&typeof CustomEvent==`function`&&window.dispatchEvent(new CustomEvent(b,{detail:{nodes:e.nodes,changed:t}}))}catch{}}function G(e){if(e.length<=x)return e;let t=(e,t)=>t.updatedAt-e.updatedAt,n=e.filter(e=>e.kind===`procedural`).sort(t),r=e.filter(e=>e.kind!==`procedural`).sort(t),i=n.slice(0,S),a=r.slice(0,x-i.length),o=Math.max(0,x-i.length-a.length),s=n.slice(S,S+o);return[...i,...s,...a]}function fe(){return[...U().nodes].sort((e,t)=>t.updatedAt-e.updatedAt)}function pe(e){let t=e.map(I).filter(e=>e!==null);if(!t.length)return 0;let n=new Map(U().nodes.map(e=>[e.id,e]));for(let e of t){let t=n.get(e.id);(!t||e.updatedAt>=t.updatedAt)&&n.set(e.id,e)}return W({nodes:G([...n.values()]),updatedAt:Date.now()},t),t.length}function me(e,t={}){let n=U(),r=t.now??Date.now(),i=[],a=!1,o=[...n.nodes];for(let t of e){let e=j(t.concept);if(!e||!w.test(e))continue;let n=A(t.body),s=N(t.source)?t.source:`model-inferred`,c=t.kind===`procedural`?`procedural`:`semantic`,l=t.quote?t.quote.replace(/\s+/g,` `).trim().slice(0,C):void 0,u=o.findIndex(t=>t.concept===e&&t.state!==`archived`);if(u<0){if(!n)continue;let u={id:k(),concept:e,body:n,updatedAt:r,kind:c,source:s,state:`active`,turnId:t.turnId,quote:l,uses:0,prefer:t.prefer,avoid:t.avoid,depth:t.depth,verify:t.verify,wins:t.outcome===`win`?1:void 0,losses:t.outcome===`loss`?1:void 0};o.push(u),i.push(u),a=!0;continue}let d=o[u],f={...d},p=!1,m=!1;c===`procedural`&&f.kind!==`procedural`&&(f.kind=`procedural`,m=!0),t.prefer&&(f.prefer=Array.from(new Set([...d.prefer??[],...t.prefer])).slice(0,12),m=!0),t.avoid&&(f.avoid=Array.from(new Set([...d.avoid??[],...t.avoid])).slice(0,12),m=!0),t.depth&&t.depth!==d.depth&&(f.depth=t.depth,m=!0),typeof t.verify==`boolean`&&t.verify!==d.verify&&(f.verify=t.verify,m=!0),t.outcome===`win`?(f.wins=(d.wins??0)+1,m=!0):t.outcome===`loss`&&(f.losses=(d.losses??0)+1,m=!0),n&&n!==d.body&&(ne(g(d.body),g(n))>=ae?f.uses=(d.uses??0)+1:(f.prevBody=d.body,f.uses=0),f.body=n,l&&(f.quote=l),t.turnId&&(f.turnId=t.turnId),p=!0,m=!0);let h=ce(d.source??`model-inferred`,s);h!==(d.source??`model-inferred`)&&(f.source=h,m=!0),m&&(f.updatedAt=r,o[u]=f,a=!0,p&&i.push(f))}return a?(o=G(o),W({nodes:o,updatedAt:r},i),i):[]}function he(e,t){let n=U(),r=A(t);if(!r)return;let i=!1,a=n.nodes.map(t=>t.id===e?(i=!0,{...t,prevBody:t.body===r?t.prevBody:t.body,body:r,source:`user-edit`,updatedAt:Date.now()}):t);i&&W({nodes:a,updatedAt:Date.now()},[])}function ge(e){let t=U(),n=t.nodes.filter(t=>t.id!==e);n.length!==t.nodes.length&&W({nodes:n,updatedAt:Date.now()},[])}function _e(){W({nodes:[],updatedAt:Date.now()},[])}var ve=/\b(poems?|haikus?|limericks?|sonnets?|ballads?|rhymes?|riddles?|puns?|jokes?|knock[- ]?knock|tongue[- ]?twisters?|lullab(?:y|ies)|raps?)\b/i,ye=/\b(write|compose|make(?:\s+me|\s+up)?|tell(?:\s+me)?\s+(?:a|an)|sing|invent|create|generate|come up with)\b[^.?!]{0,40}\b(story|stories|song|lyrics?|tale|fable|fiction|script|screenplay|verse|jingle)\b/i;function be(e){let t=e.toLowerCase();return ve.test(t)||ye.test(t)}var xe=e=>!be(e),Se=/\b(just (?:tell me|give me|the answer)|in one line|one[- ]liner|in a (?:sentence|word|line)|in a few words|brief(?:ly)?|tl;?dr|short (?:version|answer)|keep it (?:short|brief)|quick (?:answer|version|recap|rundown|summary)|in short|the short version|bottom line|in a nutshell|the gist)\b/,Ce=/\b(tell me about|explain|overview|how (?:do|does|to|can|is|are|did|would|should)|why|guide|walk\s?(?:me\s)?through|break\s?down|breakdown|deep\s?dive|everything|compare|comparison|versus|vs\.?|pros and cons|plan|itinerary|roadmap|review|analy[sz]e|dashboard|trends?|history of|all about|summary of)\b/,K=/\b(teach (?:me|us)|help me (?:understand|learn|grasp|wrap my head around)|walk me through|crash course|get (?:me |us )?up to speed|bring me up to speed|from scratch|(?:the )?(?:basics|fundamentals|essentials|core concepts|key concepts) of|study (?:for|guide|plan)|prep(?:are)? (?:me |us )?for (?:my |an? |the |our )?(?:\w+ )?(?:interview|exam|test|quiz|midterm|final|cert\w*)|(?:interview|exam) prep|tutorial|lesson on|learn (?:about |how )?[a-z]+)\b/,we=[/^[\s\d().,+\-*/^%×÷=]+\??$/,/\bwhat(?:'s| is| are| was)?\s*[\d().,\s+\-*/^%×÷]+\s*\??$/,/\b(calculate|compute|solve)\b/,/\b\d+(?:\.\d+)?\s*%\s*of\s+\d/,/\bconvert\b/,/\bhow many\s+\w+\s+(?:in|are in|per)\b/,/\b\d+\s*[a-z]+\s+(?:in|to)\s+[a-z]+\b/,/\b(define|definition of)\b/,/\bwhat does\s+.+\s+mean\b/,/\bcapital of\b/];function Te(e){let t=e.toLowerCase().trim();if(!t)return`rich`;let n=Se.test(t);return K.test(t)||Ce.test(t)?n?`brief`:`rich`:we.some(e=>e.test(t))?`lean`:n?`brief`:`rich`}function Ee(e){return K.test(e.toLowerCase())}var De=/\b(deriv\w*|prove|proof|theorem|integral|derivative|equation|algebra|calculus|optimi[sz]e|trade-?offs?|step[-\s]?by[-\s]?step|reason\w* through|figure out|work out|why (?:does|is|are|do)|analy[sz]e|compare\b.*\bvs\b|root cause|debug|diagnose|strategy|plan\b.*\b(?:budget|trip|itinerary|migration))\b/;function q(e){return De.test(e.toLowerCase())}function Oe(e,t){return e===`lean`?`minimal`:t?`low`:`minimal`}var J=[`minimal`,`low`,`medium`,`high`];function ke(e,t){let n=J.indexOf(e);return J[Math.min(J.length-1,Math.max(0,n+t))]}function Ae(e,t,n=`fast`){let r=q(t);return e===`lean`&&!r?`minimal`:ke(Oe(e,r),n===`thorough`?2:+(n===`balanced`))}var je=.1,Me=.3,Ne=.75;function Pe(e,t,n){return t.creative?Ne:e===`lean`||q(n)||t.troubleshoot?je:Me}var Y=140,X=320;function Fe(e,t){if(e.length<=t)return e;let n=e.slice(0,t-1),r=[...n.matchAll(/[.!?](?=\s|$)/g)].at(-1);if(r&&r.index!==void 0&&r.index>t*.3)return n.slice(0,r.index+1);let i=n.lastIndexOf(` `);return(i>t*.6?n.slice(0,i):n).trimEnd()+`…`}function Ie(e,t){let n=t===`lean`||t===`brief`?Y:X;return Fe(e.trim(),n)}function Z(e){return e===`lean`||e===`brief`?Y:X}var Le=`OUTPUT ORDER — emit the "narration" field FIRST in the JSON, before "title", "sub", and "blocks", and write it as complete sentences. It is spoken aloud the moment it streams, so it must lead.`;function Re(e){return e===`lean`||e===`brief`?`SPOKEN LINE ("narration") — keep it to ONE short sentence (≈${Z(e)} characters). Right to the point.`:`SPOKEN LINE ("narration") — at most two or three short sentences (≈${Z(`rich`)} characters), like a person talking. The visuals carry the detail; never narrate the whole canvas.`}var ze=e({checkLiveReady:()=>Q}),Be=2500;async function Q(e,r={}){let i=n(e.provider).probe(e).catch(()=>({ok:!1,model:!1})),a=r.tts===!1?Promise.resolve(!1):(async()=>{try{return(await t(`/tts/health`,{method:`GET`},Be)).ok}catch{return!1}})(),[{ok:o,model:s,statusCode:c},l]=await Promise.all([i,a]);return{llm:o,tts:l,model:s,statusCode:c}}var Ve=[{key:`decision`,test:/\b(should i|should we|worth it|is it worth|which (?:one|should|is better)|do i (?:need|have to)|ought i|better to|or should i)\b/},{key:`comparison`,test:/\b(vs\.?|versus|compare\w*|comparison|pros and cons|trade-?offs?|better than|which is better)\b/},{key:`risk`,test:/\b(risk\w*|danger\w*|downside|what could go wrong|threat\w*|is it safe|safe to|consequenc\w*|backfire|red flags?|pitfalls?)\b/},{key:`planning`,test:/\b(roadmap|schedule|timeline|milestone\w*|strateg\w*|prepare for|get ready|launch|plan (?:to|for|a|my|out)|over the next \d+|in \d+ (?:weeks?|months?|days?))\b/},{key:`troubleshoot`,test:/\b(troubleshoot|debug|not working|isn'?t working|won'?t \w+|broken|\berror\b|\bbug\b|fix\b|stopped working|fail(?:s|ing|ed)?|why (?:is|does|won'?t|isn'?t|can'?t))\b/},{key:`learning`,test:/\b(explain|how does|how do .* work|what is|what are|teach me|help me understand|learn\b|tell me about|why does|the difference between|concept of|crash course|walk me through|for (?:my|an?|the|our) (?:\w+ )?(?:interview|exam|test|midterm|final)|study for)\b/},{key:`creative`,test:/\b(brainstorm|ideas? for|come up with|imagine|invent|design a|creative|name (?:my|a|some|ideas)|suggest (?:some )?\w+ (?:names|ideas))\b/},{key:`whatIf`,test:/\b(what (?:if|happens if|would happen)|if i (?:do|don'?t|take|stay|leave|wait)|either way|both (?:paths|options|ways)|play(?:ed)? out|scenario\w*|down the road|in (?:each|both) cases?|stay or (?:go|leave|take)|futures?\b)\b/},{key:`reflection`,test:/\b(my (?:friend|partner|relationship|boyfriend|girlfriend|marriage|spouse|boss|family|mom|dad|kid)|feel(?:ing)?\b|emotionally|am i (?:wrong|right|overreacting|the problem)|should i feel|drain(?:s|ing|ed)?|toxic|healthy (?:relationship|friendship)|cope\b|burn(?:t|ed)?\s?out|overwhelm\w*|anxious|lonely)\b/},{key:`highStakes`,test:/\b(quit (?:my|the|this) (?:job|career)|get married|getting married|divorce|buy a (?:house|home)|mortgage|life savings|career change|drop out|move (?:abroad|across|countr|to another)|surgery|diagnos\w*|lawsuit|\bsue\b|custody|life-?changing)\b/},{key:`serious`,test:/\b(grief|grieving|death|dying|depress\w*|suicid\w*|self-?harm|abuse|trauma|addiction|crisis|terminal|miscarriage)\b/}],He=[{domain:`health`,test:/\b(health\w*|symptom\w*|doctor|medic\w*|diagnos\w*|disease|surgery|mental health|therap\w*|depress\w*|anxiety)\b/},{domain:`legal`,test:/\b(legal|lawyer|attorney|lawsuit|\bsue\b|court|custody|rights\b|contract\b)\b/},{domain:`money`,test:/\b(money|budget|invest\w*|savings|\bdebt\b|loan|mortgage|finance\w*|retire\w*|taxe?s?\b|salary)\b/},{domain:`career`,test:/\b(job\b|career|\bwork\b|boss|promotion|freelanc\w*|resume|interview|fired|laid off|quit)\b/},{domain:`relationship`,test:/\b(relationship|friend\w*|partner|boyfriend|girlfriend|marriage|spouse|dating|breakup|family)\b/},{domain:`travel`,test:/\b(travel|trip|vacation|flight|hotel|itinerary|destination|visit\b)\b/},{domain:`tech`,test:/\b(code|coding|software|\bapp\b|\bapi\b|database|server|deploy|programming|website|algorithm)\b/},{domain:`learning`,test:/\b(study|course|exam|tutorial|homework|\bclass\b|lesson|curriculum)\b/}];function Ue(e){if(!e)return``;for(let t=e.length-1;t>=0;t--)if(e[t].role===`user`)return e[t].content;return``}function We(e,t){let n=e.toLowerCase(),r=Ue(t).toLowerCase(),i=r?`${n} ${r}`:n,a={decision:!1,comparison:!1,risk:!1,planning:!1,troubleshoot:!1,learning:!1,creative:!1,whatIf:!1,reflection:!1,highStakes:!1,serious:!1};for(let e of Ve)e.test.test(i)&&(a[e.key]=!0);(a.highStakes||a.reflection)&&(a.serious=!0);for(let e of He)if(e.test.test(i)){a.domain=e.domain;break}return a}function Ge(e){let t=new Set;return e.decision&&t.add(`decide`),e.comparison&&(t.add(`compare`),t.add(`decide`)),e.risk&&t.add(`decide`),e.planning&&(t.add(`plan`),t.add(`howto`)),e.troubleshoot&&(t.add(`howto`),t.add(`explain`)),e.learning&&(t.add(`explain`),t.add(`reference`)),e.creative&&t.add(`draft`),e.whatIf&&t.add(`decide`),e.reflection&&(t.add(`reflect`),t.add(`comfort`)),[...t]}var Ke=[{shape:`composition`,weight:1,test:/\b(budget|allocat\w*|split|breakdown|where\s+(?:\w+\s+)?(?:my\s+|the\s+)?(?:money|time|spend\w*|budget)|(?:money|time|spend\w*)\s+goes?|portion|share|mix|composition|makeup|made up of|percent\w*|proportion|divid\w*)\b/},{shape:`series`,weight:1,test:/\b(trend\w*|over time|growth|history|historical|month\w*|week\w*|dai\w*|quarter\w*|year\w*|forecast|projection|trajectory|since|past \d+)\b/},{shape:`comparison`,weight:1,test:/\b(vs\.?|versus|compare\w*|comparison|better|which (?:one|should|is)|either|or should|pros and cons|trade-?offs?|options?|best|top \d+|worth it|should i (?:buy|get|pick|choose|use)|recommend\w*)\b/},{shape:`ranking`,weight:1,test:/\b(rank\w*|leaderboard|top \d+|best|worst|most|least|highest|lowest|fastest|biggest|smallest|standings)\b/},{shape:`status`,weight:1,test:/\b(progress|on track|readiness|ready|status|health\w*|complete\w*|how (?:far|close)|goal|target|score|rating|grade)\b/},{shape:`sequence`,weight:1,test:/\b(steps?|how (?:do|to)|process|guide|walk\s?through|plan|schedule|roadmap|sequence|order|first.*then|itinerary|timeline)\b/},{shape:`flow`,weight:.8,test:/\b(funnel|pipeline|workflow|conversion|stages?|flow|drop-?off|state\s?machine|feedback\s?loops?|decision\s?tree|control\s?flow)\b/},{shape:`geo`,weight:1,test:/\b(map|where is|near\w*|location|route|directions?|cities|country|countries|region|travel|trip|drive)\b/},{shape:`list`,weight:.8,test:/\b(list|tips?|checklist|things to|ways to|ideas|reasons|items|bullet\w*)\b/},{shape:`distribution`,weight:1,test:/\b(distribution|spread|histogram|range|variance|outliers?|percentile|frequency|how (?:often|spread))\b/},{shape:`relationship`,weight:1,test:/\b(correlat\w*|relationship between|scatter|vs.*axis|impact of|affect\w*|driver\w*)\b/},{shape:`structure`,weight:1,test:/\b(molecul\w*|chemical structure|molecular structure|skeletal (?:formula|structure)|lewis structure|smiles|functional group|benzene)\b/},{shape:`tabular`,weight:.9,test:/\b(table|rows?|columns?|spreadsheet|records|dataset|grid of|matrix)\b/},{shape:`media`,weight:1,test:/\b(image\w*|photos?|gallery|pictures?|visual\w*|video|watch|before and after|screenshot)\b/},{shape:`text`,weight:.8,test:/\b(quote\w*|testimonial\w*|said|opinions?|reviews?|feedback|explain|defin\w*|definition|what is|tell me about|meaning of|translate\w*|vocabulary)\b/},{shape:`code`,weight:1.1,test:/\b(code|coding|programming|software|function|algorithm\w*|recursi\w*|data structures?|linked lists?|binary (?:tree|search)|hash\s?(?:map|table)|big-?o|time complexity|syntax|compil\w*|debug\w*|refactor\w*|regex|sql|snippet|pseudo\s?code|api)\b/},{shape:`scalar`,weight:.7,test:/\b(how (?:many|much)|number of|total|count|metric|stat\w*|kpi|figure)\b/},{shape:`keyvalue`,weight:.7,test:/\b(stats|metrics|numbers|key figures|at a glance|summary of|overview)\b/},{shape:`selection`,weight:.9,test:/\b(choose|pick|select|decide|configure|settings|sign\s?up|form|filter|adjust|set up)\b/},{shape:`hierarchy`,weight:.9,test:/\b(hierarch\w*|tree|nested|org\s?chart|structure of|breakdown of .* into|parent|sub-?categor\w*)\b/}],$=[{test:/\b(pdf|white\s?paper|the paper|the document|the report|the contract|the article|the spec|the manual|the filing|the brief|full text|read (?:it|the\b))\b/,types:[`pdfreader`,`docview`]},{test:/\b(images?|photos?|pictures?|gallery|pics?|snapshots?)\b/,types:[`gallery`]},{test:/\b(maps?|where is|located|directions?|on a map|near (?:the|downtown|campus)|walking distance|walkable|nearby|neighborhood|what'?s around|close to (?:downtown|the))\b/,types:[`geomap`]},{test:/\b(code|snippet|implementation|source code|pseudo\s?code)\b/,types:[`codeblock`]},{test:/\b(dialogue\w*|a scene\b|conversation between|exchange between|speakers?|write a (?:script|scene|transcript))\b/,types:[`dialogue`]},{test:/\b(defin\w*|etymology\b|what does .{1,30} mean|look up\b|vocabulary\b|word for\b)\b/,types:[`dictionary`]},{test:/\b(variant\w*|alternativ\w*|\d+ (?:version\w*|option\w*|draft\w*)|rewrit\w*|different (?:tone\w*|style\w*|version\w*))\b/,types:[`variants`]},{test:/\b(translat\w+|in (?:french|spanish|japanese|german|chinese|portuguese|italian|korean|arabic|russian|hindi|dutch|swedish|polish|turkish|vietnamese|thai|hebrew|greek|latin)|from (?:english|spanish|french|japanese|german|chinese) (?:to|into))\b/,types:[`translation`]},{test:/\b(rank (?:the )?top \d+|top \d+ (?:ranked|ranking)|leaderboard\b|ranked list\b|best \d+ .{1,30} rank\w*)\b/,types:[`bracketbar`]},{test:/\b(?:as|in|into) (?:a |an )?(?:data )?table\b|\b(?:make|build|draw|create|show|give|put|render|format)\b(?:[\w\s]{0,12})?\btable\b|\btabular\b|\bspreadsheet\b/,types:[`datatable`]},{test:/\b(?:draw|make|show|give|create|build)\b(?:[\w\s]{0,12})?\b(?:flow\s?chart|flow\s?diagram|diagram)\b|\bdiagram (?:this|it|of|the)\b|\bflow\s?chart\b|\bas an? [\w\s]{0,20}?diagram\b|\bstate\s?machine\b/,types:[`diagramflow`]},{test:/\b(?:as|make|draw|show|give|build|on)\b(?:[\w\s]{0,12})?\btime\s?line\b|\btime\s?line of\b/,types:[`timeline`]},{test:/\bcheck\s?list\b/,types:[`checklist`]},{test:/\bstep[-\s]?by[-\s]?step\b|\b(?:numbered|ordered) steps\b|\bwalk me through (?:the )?steps\b/,types:[`howtosteps`,`checklist`]},{test:/\bcompare\b|\bcomparison\b|\b\w+ (?:vs\.?|versus) \w+\b|\bdifference between\b|\bside[-\s]?by[-\s]?side\b/,types:[`compare`]},{test:/\bquiz\b|\btest me on\b|\bpractice questions\b/,types:[`quiz`]},{test:/\bflash\s?cards?\b/,types:[`flashcard`]},{test:/\b(recipe\b|how to (?:make|cook|bake) |step\w*-?by\w*-?step .{0,20}(?:recipe|cook)|(?:dinner|lunch|breakfast|dessert|cookie|pasta|chicken|beef|vegan|gluten.free) recipe\b)\b/,types:[`recipecard`]},{test:/\b(workout plan|training plan|exercise plan|gym (?:program|plan|routine)|fitness (?:plan|program|routine)|sets? and reps?|push.?pull.?legs?|strength (?:program|plan)|build muscle (?:plan|program)|weekly (?:workout|training|gym) (?:plan|program|schedule))\b/,types:[`workoutplan`]},{test:/\b(macro(?:nutrient)?s?\b|(?:calorie|nutrition(?:al)?) (?:breakdown|facts?|info|content)|grams? of (?:protein|carbs?|fat)|protein.*carb\w*.*fat|caloric breakdown)\b/,types:[`macrobreakdown`]},{test:/\b(medication (?:schedule|reminder|timing)|dosing schedule|pill (?:schedule|reminder)|when (?:to|should i|do i) take .{0,30}(?:pill\w*|drug|medication|meds?|tablet\w*|dose\w*)|what time .{0,20}(?:take|dose) .{0,20}(?:pill\w*|medication|meds?)|drug dosage (?:schedule|timing))\b/,types:[`medicationschedule`]},{test:/\b(chord diagram|guitar chord\b|(?:how to (?:play|finger)|fingering for) .{0,20}chord|barre chord|power chord|open chord|chord shape\w*)\b/,types:[`chorddiagram`]},{test:/\b((?:baby|child|toddler|infant) (?:milestone\w*|developmental? milestone\w*)|developmental? milestone\w*|\d+[- ]month[- ]old milestone\w*|\d+[- ]year[- ]old milestone\w*|when (?:should|do) (?:babies|kids|toddlers|infants)\b)\b/,types:[`developmentmilestone`]},{test:/\b(argument map\b|arguments? (?:for and against\b|supporting and opposing)|philosophical argument\b|claim(?:s?) (?:and|with) (?:evidence|support\w*|objection\w*)|debate the (?:claim|motion|topic)\b|case for and against\b)\b/,types:[`argumentmap`]},{test:/\b((?:soccer|football|basketball|baseball|tennis) (?:formation\b|lineup\b|position\w*|play diagram|tactic\w*)|4-3-3\b|4-4-2\b|3-5-2\b|4-2-3-1\b|3-4-3\b|defensive (?:shift\b|formation\b)|starting (?:eleven\b|xi\b|lineup\b))\b/,types:[`sportspitch`]},{test:/\b(floor\s?plan\b|room layout\b|apartment layout\b|(?:house|home|office) (?:layout\b|floor plan)|room arrangement\b|furniture layout\b)\b/,types:[`floorplan`]},{test:/\b(medical (?:history|timeline|chronolog\w*)|clinical (?:history|course|timeline)|patient (?:history|chronolog\w*)|diagnosis timeline\b|treatment (?:history|timeline)|symptom (?:progression|history|chronolog\w*))\b/,types:[`clinicaltimeline`]},{test:/\b(research (?:finding\w*|result\w*|summary|paper summary)|what (?:does|did) (?:the research|studies|the study|the science) (?:say|show|find|reveal)\b|scientific (?:consensus|evidence|finding\w*)|meta-?analysis\b|randomized (?:controlled )?trial\b|clinical (?:evidence|finding\w*|trial\w*))\b/,types:[`researchsummary`]},{test:/\b(hourly itinerary|hour.?by.?hour|itinerary (?:for|of)\b|trip itinerary|travel itinerary|daily itinerary|day.?by.?day (?:plan|schedule|itinerary)|morning (?:to|through) (?:evening|night)|full day (?:plan|schedule|itinerary)|schedule (?:for|of) (?:my |a |the )?(?:trip|day|visit))\b/,types:[`agenda`]}];function qe(e){let t=e.toLowerCase(),n=[];for(let e of $)e.test.test(t)&&n.push(...e.types);return[...new Set(n)]}var Je={datatable:`a data table`,diagramflow:`a flow diagram`,timeline:`a timeline`,codeblock:`a code block`,geomap:`a map`,gallery:`an image gallery`,pdfreader:`the document`,docview:`the document`,checklist:`a checklist`,howtosteps:`a step-by-step`,compare:`a side-by-side comparison`,quiz:`a quiz`,flashcard:`flashcards`,dictionary:`a definition`,recipecard:`a recipe`,dialogue:`a scripted dialogue`,variants:`variations`,translation:`a translation`,bracketbar:`a ranking`};function Ye(e){return Je[e]??`a ${e}`}function Xe(e){return e.length?`FORMAT REQUEST — the user explicitly asked for their answer in a specific FORM: ${[...new Set(e.map(Ye))].join(`, `)}. Make that the LEAD block (position 0 or 1), built fully and completely; the rest of the canvas supports it. Never answer in a different shape than the one they named.`:``}function Ze(e){if(!e)return``;for(let t=e.length-1;t>=0;t--)if(e[t].role===`user`)return e[t].content;return``}function Qe(e,t){let n=e.toLowerCase(),r=Ze(t).toLowerCase(),i={};for(let e of Ke){let t=0;e.test.test(n)&&(t+=e.weight),r&&e.test.test(r)&&(t+=e.weight*.4),t>0&&(i[e.shape]=(i[e.shape]??0)+t)}return i}export{se as C,p as D,g as E,f as O,pe as S,re as T,b as _,Ge as a,_e as b,Le as c,Re as d,Pe as f,xe as g,Ee as h,We as i,u as k,Ie as l,Te as m,Qe as n,Q as o,Ae as p,Xe as r,ze as s,qe as t,Z as u,ge as v,me as w,fe as x,he as y};
@@ -1 +0,0 @@
1
- var e={gantt:{blurb:`Project schedule: task bars spanning DATE RANGES on a timeline, with completion and dependencies. Never for a single-point event timeline or a status list — use timeline or statustimeline.`,optional:[`icon`,`iconColor`,`footer`],stringItems:[`cols`]},bubble:{blurb:`Scatter plot with size and color — multivariate relationship explorer.`,optional:[`icon`,`iconColor`,`xLabel`,`yLabel`,`xDomain`,`yDomain`,`footer`]},arearange:{blurb:`Line with confidence band — forecast or range trend over time.`,optional:[`icon`,`iconColor`,`unit`,`color`,`footer`]},waffle:{blurb:`10x10 grid of squares — composition breakdown or percentage at a glance.`,optional:[`icon`,`iconColor`,`footer`]},groupedbars:{blurb:`Clustered bars by group — compare multiple series side-by-side.`,optional:[`icon`,`iconColor`,`unit`,`footer`],stringItems:[`groups`]},bridge:{blurb:`Waterfall bridge explaining why a number changed — a start, a sequence of signed +/- contributions, and an end, each step floating from the running total. For "what moved revenue/cost/score". Use bars for a plain comparison with no start→end story.`,optional:[`icon`,`iconColor`,`unit`,`prefix`,`footer`],itemShapes:[{prop:`steps`,text:`label`}]},calheat:{blurb:`GitHub-style activity calendar: daily intensity over weeks (streaks and gaps).`,optional:[`icon`,`iconColor`,`color`,`weekdays`,`legend`,`footer`],stringItems:[`weekdays`]},bump:{blurb:`Rank-over-time lines; crossings show where things overtake each other.`,optional:[`icon`,`iconColor`,`footer`],stringItems:[`periods`]}};export{e as D};
@@ -1 +0,0 @@
1
- var e={marimekko:{blurb:`Mosaic: column width is the total, height is the share — magnitude and mix at once.`,optional:[`icon`,`iconColor`,`unit`,`footer`]},plot:{blurb:`Cartesian plot of functions/curves on an x/y plane; axes through origin, gridlines, markers.`,optional:[`icon`,`iconColor`,`xLabel`,`yLabel`,`xDomain`,`yDomain`,`markers`,`origin`,`footer`]},dualaxis:{blurb:`Two y-axes over the same x (e.g. revenue + margin); bars on left, line on right.`,optional:[`icon`,`iconColor`,`footer`],stringItems:[`categories`],propHints:{"bar.unit":`e.g. "$" or "units"`,"line.unit":`e.g. "%" or "bps"`}},scatterregression:{blurb:`Scatter plot with an OLS regression line, R² annotation, and optional point labels.`,optional:[`icon`,`iconColor`,`xLabel`,`yLabel`,`color`,`fit`,`footer`]},dotplot:{blurb:`A stacked-dot plot where each observation becomes one dot above a number line. Shows distribution shape, clusters, and outliers. Ideal for small datasets (≤ 30 values).`,optional:[`label`,`color`,`note`,`sub`],propHints:{values:`raw numeric observations, e.g. [12, 15, 15, 18, 22]`,label:`x-axis label, e.g. "Test score"`}},controlchart:{blurb:`A Shewhart process-control chart with upper/lower control limits and a center line. Out-of-control points are highlighted. Use for manufacturing quality, service metrics, or any process monitored over time.`,optional:[`icon`,`iconColor`,`yLabel`,`note`,`sub`],propHints:{"points[].label":`sample label, e.g. "Week 1"`,"points[].value":`measured value for that sample`,ucl:`upper control limit (mean + 3σ)`,lcl:`lower control limit (mean − 3σ)`,centerLine:`process mean`}},areaplot:{blurb:`Cartesian plot that shades a region — area under a curve to the x-axis or between two curves, with optional Riemann/trapezoid rectangles and the area value labeled. The integral/AUC visual: calculus areas, probability mass under a pdf, consumer/producer surplus, work under an F–x curve.`,optional:[`icon`,`iconColor`,`xLabel`,`yLabel`,`xDomain`,`yDomain`,`shade`,`rects`,`areaLabel`,`showArea`,`origin`,`footer`],itemShapes:[{prop:`curves`,textAliases:[`name`,`title`]}],propHints:{"curves[].points":`sampled points [{x,y}] in data coords (sample finely, e.g. ~30+ pts, for a smooth fill)`,shade:`{ from: 'axis' | curveIndex, to: topCurveIndex, x0?, x1? } — 'axis' fills down to y=0; x0/x1 are the integration limits (default = the curves' sampled span)`,rects:`{ n: number, rule: 'left'|'right'|'mid'|'trap' } — draws Riemann/trapezoid rectangles over the region and prints the estimate`,areaLabel:`override the area badge (e.g. an exact symbolic value); omit to show the computed integral`,origin:`true (default) draws axes through (0,0) when in range; false = edge axes`}},supplydemand:{blurb:`The economics supply×demand diagram: an upward supply line and downward demand line on price(y)×quantity(x) axes, the equilibrium marked P*/Q*, optional shaded consumer/producer surplus, and an optional shift of one curve (faded original + arrow). Pick it for market equilibrium, price controls, taxes, and comparative-statics questions.`,optional:[`icon`,`iconColor`,`shift`,`region`,`qMax`,`pMax`,`priceLabel`,`quantityLabel`,`pricePrefix`,`showEquilibrium`,`footer`],propHints:{supply:`the supply line as { intercept, slope } where P = intercept + slope·Q with slope > 0 (e.g. { intercept: 2, slope: 0.5 }), OR { points: [{q,p},{q,p}] }`,demand:`the demand line as { intercept, slope } where P = intercept + slope·Q with slope < 0 (e.g. { intercept: 14, slope: -0.7 }), OR { points: [{q,p},{q,p}] }`,"shift.curve":`'supply'|'demand' — which curve moves`,"shift.to":`the curve’s new position, same shape as supply/demand ({intercept,slope} or {points})`,region:`'consumer'|'producer'|'none' — shade the surplus triangle at equilibrium`,pricePrefix:`currency symbol on every price, e.g. '$'`}}};export{e as D};
@@ -1 +0,0 @@
1
- var e={bigo:{blurb:`Big-O growth chart: operations vs input size n, the canonical complexity curves (O(1), O(log n), O(n), O(n log n), O(n^2), O(2^n)) drawn together so the exponential visibly dwarfs the rest. Pick for "how fast does X grow" / comparing algorithm complexities; highlight one class or annotate "this algorithm" on a curve.`,optional:[`icon`,`iconColor`,`classes`,`maxN`,`highlight`,`algorithm`,`xLabel`,`yLabel`,`footer`],propHints:{classes:`subset of 'o-1'|'o-logn'|'o-n'|'o-nlogn'|'o-n2'|'o-2n' (drawn slow->fast; default all six)`,highlight:`one of 'o-1'|'o-logn'|'o-n'|'o-nlogn'|'o-n2'|'o-2n'`,maxN:`integer largest input size on x-axis, 2..64 (default 16)`,algorithm:`{ name: string, complexity: 'o-1'|'o-logn'|'o-n'|'o-nlogn'|'o-n2'|'o-2n' }`,iconColor:`var(--presence)|var(--insight)|var(--warning)|var(--danger)`}},errorbars:{blurb:`Group means with their uncertainty — each group a point (or bar) plus a confidence-interval whisker (mean ± ci, or explicit low/high). The #1 inferential-statistics graphic for comparing groups, and the standard way to report lab/experiment results. Use over plain bars whenever the spread or overlap of the estimates is the point.`,optional:[`icon`,`iconColor`,`unit`,`yLabel`,`bars`,`reference`,`bracket`,`footer`],itemShapes:[{prop:`groups`,text:`label`,textAliases:[`name`,`group`]}],propHints:{"groups[].label":`group name, e.g. "Placebo"`,"groups[].mean":`the group mean / central estimate (the point or bar height)`,"groups[].ci":`symmetric half-width of the interval (drawn as mean ± ci)`,"groups[].low":`explicit lower interval bound (use low + high for asymmetric CIs instead of ci)`,"groups[].high":`explicit upper interval bound (pair with low)`,"groups[].color":`var(--presence)|var(--insight)|var(--warning)|var(--danger)`,bars:`true draws a bar from the baseline to each mean behind the whisker; false (default) = points`,reference:`{ value: number, label?: string } — a horizontal target/baseline line`,bracket:`{ from: number, to: number, label: string } — significance annotation between two groups by index, e.g. { from: 0, to: 2, label: "p < 0.001" }`}},eratimeline:{blurb:`Comparative multi-track timeline on ONE shared time axis: several parallel lanes (regions, fields, people), each with era BANDS (start→end spans) and point events, so synchronous history lines up vertically. For "what was happening in X vs Y at the same time", overlapping eras, side-by-side project/era comparison. Times are signed years (negative = BCE). Use gantt for a project schedule with dependencies; timeline for a single sequence of dated points.`,optional:[`icon`,`iconColor`,`min`,`max`,`footer`],itemShapes:[{prop:`tracks`,text:`label`,children:{prop:`spans`,text:`label`}}],propHints:{"tracks[].spans[].start":`signed year, negative = BCE (e.g. -509 for 509 BCE, 1492 for 1492 CE)`,"tracks[].spans[].end":`signed year >= start`,"tracks[].events[].at":`signed year of a single-moment event`,color:`var(--presence)|var(--insight)|var(--warning)|var(--danger)`,iconColor:`var(--presence)|var(--insight)|var(--warning)|var(--danger)`}},payoffdiagram:{blurb:`Options / derivatives payoff diagram: profit-and-loss (y) vs the underlying price at expiration (x). The kinked payoff line is computed from the position legs (call/put × long/short × strike × premium), with breakeven prices marked where P/L crosses zero, profit (green) vs loss (red) zones shaded, a zero reference line, and max profit / max loss (incl. "unlimited") derived. Pick for a single call/put, a spread, a straddle, a collar — any options strategy P&L.`,optional:[`icon`,`iconColor`,`priceMin`,`priceMax`,`pricePrefix`,`underlyingLabel`,`pnlLabel`,`spot`,`footer`],itemShapes:[{prop:`legs`}],propHints:{legs:`the position's legs: [{ type: 'call'|'put', position: 'long'|'short', strike: number, premium: number, qty?: number }] — payoff is summed across legs, so the curve bends at every strike`,"legs[].type":`'call' | 'put'`,"legs[].position":`'long' (bought, pays premium) | 'short' (written, collects premium)`,priceMin:`visible price-axis lower bound; auto-fit around the strikes when omitted`,priceMax:`visible price-axis upper bound; auto-fit around the strikes when omitted`,pricePrefix:`currency symbol on prices and P/L, e.g. '$' (default '$')`,spot:`today's underlying price; drawn as a vertical guide`}},phasediagram:{blurb:`A pressure–temperature phase diagram: temperature (x) vs pressure (y), with the solid / liquid / gas (and optional supercritical-fluid) regions separated by phase-boundary curves (sublimation, fusion, vaporization), the triple point and critical point marked and labelled. Pick it for chemistry / thermodynamics / materials questions about states of matter, phase transitions, sublimation, melting/boiling under pressure — and water’s famous negative-slope fusion line (ice melts under pressure), which the boundary points can express directly.`,optional:[`icon`,`iconColor`,`triplePoint`,`criticalPoint`,`regions`,`tLabel`,`pLabel`,`tUnit`,`pUnit`,`tDomain`,`pDomain`,`footer`],itemShapes:[{prop:`boundaries`,text:`label`},{prop:`regions`,text:`label`}],propHints:{"boundaries[].kind":`'sublimation' (solid⇌gas) | 'fusion' (solid⇌liquid) | 'vaporization' (liquid⇌gas)`,"boundaries[].points":`sampled points [{t,p}] in data coords (temperature, pressure) along the curve; sample finely. Fusion can have NEGATIVE slope (e.g. water) — just supply points trending left as pressure rises.`,"boundaries[].color":`var(--presence)|var(--insight)|var(--warning)|var(--danger)|var(--line-strong)`,triplePoint:`{ t, p } — where all three phases coexist (e.g. water: {t:273.16, p:0.006} in K/atm)`,criticalPoint:`{ t, p } — where the liquid⇌gas boundary ends and the supercritical fluid begins (e.g. water: {t:647.1, p:218} in K/atm)`,"regions[]":`{ t, p, phase, label, color?, anchor? } — a label placed inside an area; phase is 'solid'|'liquid'|'gas'|'supercritical' (drives the tint), anchor is 'start'|'middle'|'end'`,tUnit:`temperature unit, e.g. 'K' or '°C'`,pUnit:`pressure unit, e.g. 'atm', 'kPa', 'bar'`,iconColor:`var(--presence)|var(--insight)|var(--warning)|var(--danger)`}},indifferencecurve:{blurb:`The microeconomics indifference-curve map: good X (x) vs good Y (y), a family of convex, downward-sloping indifference curves (further from the origin = more utility, labelled U₁ < U₂ < U₃), with an optional budget line and the optimal consumption bundle marked where the budget line is tangent to the highest reachable curve. Pick it for consumer choice / utility theory, MRS = price-ratio tangency, and how a price or income change moves the optimum.`,optional:[`icon`,`iconColor`,`budget`,`optimal`,`xLabel`,`yLabel`,`xMax`,`yMax`,`footer`],itemShapes:[{prop:`curves`,textAliases:[`name`,`title`]}],propHints:{"curves[].points":`sampled points [{x,y}] left→right tracing ONE convex, downward-sloping curve (sample finely, ~8+ pts); higher-utility curves bow further from the origin and must NOT cross a lower one`,"curves[].label":`utility level, e.g. "U₁" (lowest) … "U₃" (highest)`,budget:`the budget line as { intercept, slope } where Y = intercept + slope·X with slope < 0 (intercept = income ÷ price of Y, slope = −price of X ÷ price of Y), OR { points: [{x,y},{x,y}] }`,optimal:`{ x, y, label? } the optimal bundle (tangency of the budget line with the highest reachable curve); make (x,y) an exact sampled point on that curve to highlight it`,iconColor:`var(--presence)|var(--insight)|var(--warning)|var(--danger)`}},breakeven:{blurb:`The cost-volume-profit (break-even) chart: a revenue line and a total-cost line on units(x) x money(y) axes that cross at the break-even volume, with the loss region (left of the crossing) shaded and the profit region (right) shaded. Computed entirely from fixed cost, price per unit, and variable cost per unit — it derives break-even units = fixed / (price - cost) and the per-unit contribution margin. Pick it for pricing, profitability, and "how many do we need to sell" questions.`,optional:[`title`,`icon`,`iconColor`,`maxUnits`,`unit`,`currency`,`caption`,`footer`],propHints:{fixedCost:`total fixed cost that does not change with volume (rent, salaries, tooling)`,pricePerUnit:`revenue earned per unit sold`,costPerUnit:`variable cost per unit produced; must be < pricePerUnit for a finite break-even`,maxUnits:`right end of the units axis; auto-fits to ~2x the break-even volume when omitted`,unit:`unit noun on the x-axis + readouts, e.g. 'units'|'subscriptions'|'seats'`,currency:`currency symbol prefixing every money value (default '$')`,iconColor:`var(--presence)|var(--insight)|var(--warning)|var(--danger)`}},burnrunway:{blurb:`Cash balance + monthly burn rate chart with projected runway: a dual-axis view pairing the declining cash curve against the per-month burn bars. A runway horizon line and read-out show exactly how many months remain. Use for startup financials, seed-round planning, "how long does our cash last", and fundraising readiness discussions.`,optional:[`title`,`icon`,`iconColor`,`initialCash`,`runwayMonths`,`currency`,`footer`],itemShapes:[{prop:`months`,text:`label`,textAliases:[`month`,`period`,`name`]}],propHints:{months:`array of monthly data — each has label (e.g. "Jan 25"), burn (monthly spend), and optional balance (if omitted, computed as running total)`,initialCash:`opening cash balance in the same units as burn (e.g. 1_200_000 for $1.2M); inferred from the first balance when omitted`,currency:`currency symbol prefix shown on all cash figures; default "$"`}}};export{e as D};
@@ -1 +0,0 @@
1
- var e={loaddiagram:{blurb:`A structural-engineering beam load diagram with its matched shear V(x) and bending-moment M(x) plots — three panels stacked on one shared position axis (distance along the beam), so a support, a load, the shear it produces, and the resulting moment all line up vertically. The top panel draws the beam with supports (pin/roller/fixed) and applied loads (point arrows, distributed bands); the V and M panels plot the supplied series with the peaks (Vmax, Mmax) marked. For statics, mechanics of materials, and structural-analysis explanations. Plots the V/M series it is given (it does not solve the statics); supply them alongside the loads.`,optional:[`icon`,`iconColor`,`unit`,`shear`,`moment`,`caption`,`footer`],itemShapes:[{prop:`supports`},{prop:`loads`,text:`label`},{prop:`shear`},{prop:`moment`}],propHints:{span:`total beam length; sets the shared distance axis [0, span]`,"supports[].at":`position along the span (0 … span) where the support sits`,"supports[].kind":`'pin'|'roller'|'fixed' (default 'pin')`,"loads[].kind":`'point' (concentrated force) | 'udl' (uniformly distributed load over [at, to])`,"loads[].at":`the load's position (point) or its start (udl)`,"loads[].to":`the udl's end position; required for kind 'udl', ignored for 'point'`,"loads[].mag":`a point load's force, or a udl's intensity per unit length`,"loads[].label":`caption drawn by the load, e.g. 'P = 12 kN' or 'w = 4 kN/m'`,unit:`force unit suffix on labels + read-outs, e.g. 'kN', 'lbf'`,shear:`the shear diagram V(x) as a sampled series [{x, v}] left→right (plotted, not computed) — include the jumps at point loads and the endpoints`,moment:`the bending-moment diagram M(x) as a sampled series [{x, m}] left→right (plotted, not computed) — sample finely enough to show its curvature`,iconColor:`var(--presence)|var(--insight)|var(--warning)|var(--danger)`}},ecgstrip:{blurb:`A physiologic ECG rhythm strip on the classic pink graticule (1 mm small squares grouped into 5 mm large squares). The P-QRS-T waveform is drawn from a sampled trace (normalized -1..2, baseline 0, R-wave peak near 2); when no samples are given a normal sinus beat is synthesized and repeated at rateBpm, so the strip stays honest to the stated rate. PR/QRS/QT interval brackets and abnormality pins (PVC, ST elevation…) are placed by millisecond and the rate + rhythm read out above. For cardiology, vitals, and clinical-teaching explanations. Plots the trace it is given — it never invents a measurement.`,optional:[`title`,`icon`,`iconColor`,`samples`,`rateBpm`,`rhythm`,`intervals`,`abnormalities`,`gridMs`,`caption`,`footer`],itemShapes:[{prop:`intervals`,text:`label`},{prop:`abnormalities`,text:`label`}],propHints:{samples:`the waveform as numbers, one per gridMs, normalized -1..2 (0 = baseline, ~2 = R-wave peak); omit to synthesize a normal sinus beat at rateBpm`,rateBpm:`heart rate in beats per minute; drives synthesized beat spacing + the rate read-out`,rhythm:`rhythm interpretation shown beside the rate, e.g. 'Normal sinus rhythm'`,"intervals[].label":`segment measured, e.g. 'PR', 'QRS', 'QT'`,"intervals[].fromMs":`interval start, in ms from the strip's left edge`,"intervals[].toMs":`interval end, in ms (>= fromMs)`,"abnormalities[].atMs":`time of the finding, in ms from the strip's left edge`,"abnormalities[].label":`short caption pinned above the trace, e.g. 'PVC'`,gridMs:`ms represented by one small (1 mm) grid square (default 40, paper standard)`,iconColor:`var(--presence)|var(--insight)|var(--warning)|var(--danger)`}},vitalstrip:{blurb:`A multi-channel patient-monitor panel. Each channel (HR, BP, SpO₂, RR, temp…) stacks a mini trend line with its normal-range band shaded behind it and a big current read-out; any value falling outside the channel’s normal range is flagged (the row glows, the value turns red). The trend geometry, the band, and the out-of-range detection are all computed from the supplied series + range — it plots the numbers it is given and never fabricates a reading. For bedside monitoring, triage, and clinical explanations.`,optional:[`title`,`icon`,`iconColor`,`windowLabel`,`caption`,`footer`],itemShapes:[{prop:`channels`,text:`label`}],propHints:{"channels[].label":`channel name, e.g. 'HR', 'SpO₂', 'RR'`,"channels[].unit":`unit suffix on the read-out, e.g. 'bpm', '%', '°C'`,"channels[].series":`the trend samples as numbers, oldest → newest (left → right)`,"channels[].current":`the headline current value; defaults to the last sample when omitted`,"channels[].normal":`the channel’s normal range as [low, high]; the band is shaded and excursions flagged`,"channels[].color":`var(--presence)|var(--insight)|var(--warning)|var(--danger)`,windowLabel:`the time window the trends cover, e.g. 'last 30 min'`,iconColor:`var(--presence)|var(--insight)|var(--warning)|var(--danger)`}},growthcurve:{blurb:`A pediatric percentile growth chart. Reference percentile curves (p3 … p97) fan out over an age axis; the child’s measured points are plotted on top and each landing is tracked to a percentile by interpolating the fan AT that exact age, so the standing read-out is computed, never invented. The median curve is emphasised and the outer band tinted. Both the reference curves and the child’s track come from the data (real-data-only). For pediatrics, well-child visits, and growth-monitoring explanations.`,optional:[`title`,`icon`,`iconColor`,`unit`,`ageUnit`,`caption`,`footer`],propHints:{metric:`'weight'|'height'|'head' — drives the default y-axis title`,unit:`value-axis unit suffix, e.g. 'kg', 'cm', 'lb'`,ageUnit:`age-axis unit noun, e.g. 'months', 'years' (default 'months')`,"percentiles[].p":`the percentile this curve represents, e.g. 3, 15, 50, 85, 97`,"percentiles[].points":`the curve as {age, value} samples, ascending in age`,"plotted[].age":`the child’s age at this measurement, on the same scale as the curves`,"plotted[].value":`the measured weight / height / head circumference`,iconColor:`var(--presence)|var(--insight)|var(--warning)|var(--danger)`}},sleepcycle:{blurb:`A one-night hypnogram. Sleep stages (Awake / REM / Light / Deep) on a categorical depth axis are traced as a stepped line across the hours of the night; REM spans are highlighted, bedtime and wake are marked, and the cycle count is reported. The step geometry, the time axis, the per-stage time totals, and the cycle count are all computed from the supplied spans — it plots the sleep architecture it is given and never fabricates a stage. For sleep science, sleep-tracker read-outs, and clinical explanations.`,optional:[`title`,`icon`,`iconColor`,`bedtime`,`wake`,`cycles`,`caption`,`footer`],itemShapes:[{prop:`stages`,text:`stage`,closedVocab:!0}],propHints:{"stages[].stage":`'awake'|'rem'|'light'|'deep'`,"stages[].fromMin":`start of the span, in minutes from lights-out (= 0)`,"stages[].toMin":`end of the span, in minutes (>= fromMin)`,bedtime:`clock label for lights-out under the left edge, e.g. '11:00 PM'`,wake:`clock label for waking under the right edge, e.g. '7:00 AM'`,cycles:`number of completed sleep cycles; inferred from REM bouts when omitted`,iconColor:`var(--presence)|var(--insight)|var(--warning)|var(--danger)`}},seasonband:{blurb:`A 12-month seasonal calendar band. Each row (a crop, a flower, a fish) shows its active WINDOWS across a fixed Jan→Dec grid — in-season / planting / harvest / peak / bloom spans — with an optional "now" marker pinning today's month. Every x-position is computed from the month numbers (1=Jan…12=Dec); it never invents a month. For "what's in season when", planting/harvest calendars, bloom schedules, and any annually-recurring availability. Use gantt for a dated one-off project schedule, eratimeline for multi-year history.`,optional:[`title`,`icon`,`iconColor`,`nowMonth`,`caption`,`footer`],itemShapes:[{prop:`rows`,text:`label`}],propHints:{"rows[].windows[].from":`first active month, inclusive (1 = Jan … 12 = Dec)`,"rows[].windows[].to":`last active month, inclusive (>= from)`,"rows[].windows[].kind":`'peak'|'available'|'planting'|'harvest'|'bloom' (default 'available')`,nowMonth:`highlight today's month with a vertical marker, 1 (Jan) … 12 (Dec)`,iconColor:`var(--presence)|var(--insight)|var(--warning)|var(--danger)`}},roccurve:{blurb:`ROC (Receiver Operating Characteristic) curve: TPR vs FPR at each decision threshold, with the chance diagonal, shaded AUC area, and a draggable operating-point marker. Compare multiple classifiers or diagnostic tests on the same axes. The model supplies the (fpr, tpr) point cloud and AUC; dragging explores trade-offs without fabricating data. Use for classifier evaluation, diagnostic test sensitivity/specificity, model selection.`,optional:[`title`,`icon`,`iconColor`,`operatingPoint`,`xLabel`,`yLabel`,`caption`,`footer`],itemShapes:[{prop:`curves`,text:`name`,textAliases:[`label`,`model`,`classifier`]}],propHints:{"curves[].name":`classifier or model name shown in the legend`,"curves[].points":`array of { fpr, tpr, threshold? } in ascending fpr order`,"curves[].auc":`area under curve 0-1 (model-supplied, not recomputed)`,operatingPoint:`0-based index into the first curve points for the initial marker position`}},surfaceplot:{blurb:`Scalar field z = f(x,y) rendered as a 2-D heatmap with optional marching-squares contour isolines (mode "contour", default), a flat heatmap without isolines (mode "filled"), or an oblique 3-D projection (mode "surface3d"). Color ramp goes from insight (low) through presence (mid) to warning (high). Use for multivariable calculus (gradient fields, saddle points, Lagrange multipliers), heat distribution, probability density surfaces, and topographic elevation. The model supplies a row-major grid of z-values; all geometry is computed.`,optional:[`mode`,`levels`,`xLabel`,`yLabel`,`zLabel`,`zRange`,`caption`],propHints:{grid:`2-D number[][] row-major array of z-values; grid[0] is the top row`,mode:`"contour" (default) | "filled" | "surface3d"`,levels:`number of contour threshold bands (default 6)`,zRange:`[min, max] override; omit to auto-compute from grid`}}};export{e as D};
@@ -1 +0,0 @@
1
- var e={gradientdescent:{blurb:`A loss surface — contour isolines over a 2-D grid of (x, y, z) samples — with an optimizer's actual descent path traced over it as a drawn-on trail with step markers. Use for gradient descent, learning-rate/convergence intuition, and optimization landscapes (saddle points, local minima, ravines). The model supplies both the real loss grid and the real visited points; no curve is fitted or fabricated.`,optional:[`title`,`icon`,`iconColor`,`learningRate`,`footer`],propHints:{contour:`row-major 2-D array of { x, y, z } loss samples — a rectilinear mesh, grid[0] is the top row`,path:`array of { x, y, step } — the optimizer's actual visited points, in step order`,learningRate:`the optimizer's step size, shown as a caption`}},biasvariance:{blurb:`The canonical bias-variance tradeoff diagram: training error falling and test error forming a U-shape as model complexity rises, with an optional shaded "sweet spot" band at the best-generalizing complexity. Use for overfitting/underfitting intuition, model-selection and regularization discussions, and explaining the complexity/generalization tradeoff. Three parallel arrays plot straight through — nothing is curve-fit.`,optional:[`title`,`icon`,`iconColor`,`sweetSpot`,`footer`],propHints:{complexity:`ascending model-complexity x-values, one per sample`,trainError:`training error at each complexity level, same length as complexity`,testError:`held-out/test error at each complexity level, same length as complexity`,sweetSpot:`complexity value to shade as the best-generalizing point, if known`}},timeseriesdecomposition:{blurb:`STL-style time series decomposition: observed, trend, seasonal, and residual plotted as four small panels stacked on one shared x-axis, each with its own y-scale so a small seasonal/residual swing stays readable next to a much larger observed series. Use for forecasting explainers, seasonality analysis, and anomaly discussions (residual spikes). All four series are the caller's real numbers — nothing is filtered or smoothed here.`,optional:[`title`,`icon`,`iconColor`,`footer`],stringItems:[`dates`],propHints:{dates:`x-axis labels, one per sample (only shown under the bottom panel)`,observed:`the raw series`,trend:`the long-run trend component, same length as dates`,seasonal:`the repeating seasonal component, same length as dates`,residual:`what's left after removing trend and seasonal — the noise/anomaly component`}},precisionrecallcurve:{blurb:`Precision-recall curve for classifier evaluation: precision (y) vs recall (x) across decision thresholds, with a shaded area-under-curve fill. Unlike ROC there is no chance-diagonal (a PR curve's no-skill baseline depends on class prevalence, which this component is never given, so none is drawn). Prefer this over ROC on imbalanced classes, where ROC can look misleadingly good. Compare multiple classifiers on the same axes; an optional average-precision badge summarizes the primary curve.`,optional:[`title`,`icon`,`iconColor`,`avgPrecision`,`footer`],itemShapes:[{prop:`curves`,text:`label`,textAliases:[`name`,`model`,`classifier`]}],propHints:{"curves[].label":`classifier or model name shown in the legend`,"curves[].points":`array of { precision, recall, threshold? } — any order, sorted by recall to draw`,avgPrecision:`area under the PR curve, 0-1 (model-supplied, not recomputed) — shown as an AP badge`}},chromatogram:{blurb:"An HPLC/GC chromatography readout: detector signal over retention time with each eluting peak apex labeled (RT, compound, area%) and its real integrated region shaded between the valleys either side of it. Give `trace` for the full baseline; without it, only the peak results table renders — never a fabricated baseline shape. Use for analytical chemistry, purity checks, and separation science.",optional:[`icon`,`iconColor`,`method`,`trace`,`footer`],propHints:{method:`instrument/method line, e.g. "HPLC · C18, 1.0 mL/min, 254 nm"`,"trace[].t":`retention time, in minutes unless stated otherwise`,"trace[].signal":`detector response (mAU or counts) at that time`,"peaks[].rt":`retention time of the peak apex`,"peaks[].label":`compound identity, e.g. "Caffeine"`,"peaks[].areaPct":`percent of total integrated area, 0-100`,"peaks[].height":`peak height in detector units`}},stressstraincurve:{blurb:"A material's engineering stress-strain diagram, plotted straight from the tensile-test curve. When `yieldPoint` is given, the elastic region (up to yield) is shaded and a Young's-modulus slope is computed from the curve's own first sample and the yield point. Yield/ultimate-tensile/fracture points are each independently optional and called out with a labeled leader line. Use for materials science, mechanical engineering, and manufacturing QA — never for a curve the model hasn't actually sampled.",optional:[`icon`,`iconColor`,`yieldPoint`,`ultimatePoint`,`fracturePoint`,`footer`],propHints:{"curve[].strain":`engineering strain, dimensionless (e.g. 0.02 = 2%)`,"curve[].stress":`engineering stress, in the material's own unit (MPa unless stated otherwise)`,yieldPoint:`{ strain, stress } where plastic deformation begins`,ultimatePoint:`{ strain, stress } at the curve peak — ultimate tensile strength`,fracturePoint:`{ strain, stress } where the sample actually broke`}},gatingplot:{blurb:`A flow-cytometry gating plot: the raw event point-cloud on linear or log axes, with translucent gate boundaries (ellipse or polygon) drawn over the populations they enclose, each labeled with its name and percent-of-parent. Click a gate or its legend chip to isolate that population. Use for immunology, cell biology, and clinical flow-cytometry panels — never invents a gate boundary the model wasn't given.`,optional:[`icon`,`iconColor`,`xScale`,`yScale`,`gates`,`footer`],itemShapes:[{prop:`gates`,text:`name`,textAliases:[`label`,`population`,`gateName`]}],propHints:{xScale:`'linear' (default) | 'log' — fluorescence channels commonly need log`,yScale:`'linear' (default) | 'log'`,"points[].gate":"0-based index into `gates` this event was assigned to; omit for ungated","gates[].shape":`'ellipse' | 'polygon'`,"gates[].region":`ellipse: exactly [[cx,cy],[rx,ry]] (center, then radii). polygon: 3+ [x,y] vertices in order.`,"gates[].pctOfParent":`percent of the parent population this gate captures, 0-100`}},gellane:{blurb:`A gel electrophoresis lane readout: vertical sample lanes on a gel backdrop with blurred bands positioned by migration distance and shaded by intensity, plus an optional size ladder with tick labels. Use for molecular biology (DNA/RNA gels, Western blots, PCR product checks) — band position and darkness come straight from the data, nothing is fit or estimated.`,optional:[`icon`,`iconColor`,`ladder`,`footer`],itemShapes:[{prop:`lanes`,text:`label`,textAliases:[`name`,`sample`],children:{prop:`bands`}}],propHints:{"lanes[].bands[].pos":`0-1 migration distance from the well; 0 = top (well), 1 = bottom (dye front)`,"lanes[].bands[].intensity":`0-1 band darkness/brightness`,"lanes[].bands[].sizeLabel":`size shown beside the band, e.g. "480 bp" or "42 kDa"`,ladder:`{ unit: "bp"|"kDa", marks: [...] } — a standard ladder lane drawn first, any mark order`}}};export{e as D};
@@ -1 +0,0 @@
1
- var e={flightchart:{blurb:`A media flight/budget chart: channels as horizontal lanes, each flight a bar across the timeline sized and labeled by spend, with a total-spend readout. Use for marketing/ad campaign planning across channels — never for a project schedule with dependencies, use gantt.`,optional:[`icon`,`iconColor`,`totalBudget`,`currency`,`footer`],itemShapes:[{prop:`channels`,text:`name`,textAliases:[`label`,`channel`]},{prop:`flights`,text:`channel`,textAliases:[`lane`,`name`]}],propHints:{"flights[].start":`0-based period index the flight starts in`,"flights[].span":`how many periods the flight runs, minimum 1`,"flights[].budget":`spend for that one flight`,currency:`ISO 4217 code, e.g. "USD" — defaults to USD`}},paybandchart:{blurb:`An HR compensation band: a role’s min–mid–max range as a bullet-style track, with named offers/incumbents plotted inside it. A marker flagged as an equity-watch case (compression, off-cycle exception) gets a distinct accent. Use for comp bands, offer positioning, pay-equity review — never for a plain min/max range with no named people on it.`,optional:[`icon`,`iconColor`,`currency`,`footer`],itemShapes:[{prop:`markers`,text:`name`,textAliases:[`label`,`person`,`employee`]}],propHints:{"markers[].value":`that person/offer’s comp, same unit as min/mid/max`,"markers[].flag":`true marks it an equity-watch case, drawn with the warning accent`,currency:`ISO 4217 code, e.g. "USD" — defaults to USD`}},linebalance:{blurb:`A manufacturing line-balance/takt chart: one bar per station’s real cycle time, with a dashed takt-time reference line spanning every bar. Any station whose cycle time clears takt flips to the warning tint and is labeled a bottleneck. Use for assembly-line balancing, station-by-station throughput — never for a generic time series, use chart.`,optional:[`icon`,`iconColor`,`unit`,`footer`],itemShapes:[{prop:`stations`,text:`name`,textAliases:[`label`,`station`]}],propHints:{takt:`takt time — the pace demand sets, same unit as every station’s cycleTime`,"stations[].cycleTime":`that station’s measured cycle time`,"stations[].bottleneck":`true forces the bottleneck tint even if under takt`}},epicurve:{blurb:`An epidemiological epi curve: case counts per period, stacked and colored by diagnostic classification (confirmed/probable/suspected), with an optional dashed alert-threshold line and dotted vertical markers for named interventions/events. Use for outbreak surveillance over time — never for a single running total, use chart.`,optional:[`icon`,`iconColor`,`threshold`,`phases`,`footer`],itemShapes:[{prop:`cases`,text:`period`,textAliases:[`label`,`week`,`date`,`time`]},{prop:`phases`,text:`label`,textAliases:[`name`,`event`]}],propHints:{"cases[].classification":`'confirmed' | 'probable' | 'suspected' — omit for unclassified`,threshold:`{ value, label } — drawn as a dashed reference line`,"phases[].period":`must match one of cases[].period; a non-matching phase is dropped`}},pareto:{blurb:`An 80/20 Pareto chart: bars sorted descending by frequency/value, with a cumulative-percent line on a dual right axis and an 80% guide line. The bars carrying the line up to that guide are highlighted. Use to find the vital few causes behind most of an effect — never for data with no meaningful "which few matter most" read, use bars.`,optional:[`icon`,`iconColor`,`cumulative`,`unit`,`footer`],itemShapes:[{prop:`bars`,text:`label`,textAliases:[`name`,`category`,`reason`,`cause`]}]},populationpyramid:{blurb:`A demographic population pyramid: mirrored horizontal bars from a shared center axis, one row per age band, both sides sharing one scale so bar length is comparable across the whole chart. Use for age/sex population structure — never for a plain two-series comparison with no natural left/right split, use dumbbell.`,optional:[`icon`,`iconColor`,`unit`,`footer`],itemShapes:[{prop:`bands`,text:`label`,textAliases:[`age`,`group`,`range`]}],propHints:{leftLabel:`header over the left bars, e.g. "Male"`,rightLabel:`header over the right bars, e.g. "Female"`,"bands[].left":`the left side's real count for that age band`,"bands[].right":`the right side's real count for that age band`}},parallelcoordinates:{blurb:`A parallel-coordinates plot: one vertical axis per variable, each observation drawn as a line connecting its own position on every axis, each axis normalized to its own real min/max. Hover a line or its legend chip to isolate it. Use to compare several options/observations across MANY variables at once — never for just two variables, use scatterregression.`,optional:[`icon`,`iconColor`,`footer`],itemShapes:[{prop:`axes`,text:`key`,textAliases:[`id`,`field`,`name`]},{prop:`lines`,text:`label`,textAliases:[`name`,`series`]}],propHints:{"axes[].label":`display name for the axis; falls back to its key when omitted`,"axes[].domain":`optional fixed [min,max]; omit to normalize from the real data`,"lines[].values":`object keyed by each axes[].key — a missing key just skips that axis`}},scatterplotmatrix:{blurb:`A scatterplot matrix (pairs plot): an NxN grid of small scatter plots, one per pair of variables, sharing each variable’s own real min/max whether it lands on a row or a column. Diagonal cells show the variable name instead of plotting it against itself. Use to eyeball correlations across MANY variables at once — never for just two, use scatterregression.`,optional:[`icon`,`iconColor`,`color`,`footer`],stringItems:[`vars`],propHints:{vars:`the variable names, in display order — every row/column of the grid`,rows:`one object per real observation, keyed by each name in vars to its numeric value`}}};export{e as D};
@@ -1 +0,0 @@
1
- var e={pictogramchart:{blurb:`A true icon-array (isotype) chart: the same 100-glyph grid as waffle, but each cell renders the category’s own icon instead of a plain color square, with a "1 glyph = N units" key. Use when the units being counted have a natural real-world glyph (people, votes, days, vehicles) — for a plain percentage breakdown with no meaningful per-unit icon, use waffle instead.`,optional:[`icon`,`iconColor`,`unitValue`,`footer`],itemShapes:[{prop:`categories`,text:`label`,textAliases:[`name`,`category`]}],propHints:{"categories[].icon":`an existing icon key, e.g. "sun"|"rain"|"walk"|"bus"|"car" — invalid keys fall back to a default glyph`,unitValue:`real units per glyph; omit to auto-fit the whole chart under 100 glyphs`}},qqplot:{blurb:`Quantile-quantile plot: sorts sample values and plots them against the theoretical quantiles of a reference distribution (default normal). The IQR-based reference line is drawn automatically. Points that hug the line indicate a good distributional fit; systematic deviations reveal skewness, heavy tails, or multimodality. Use for normality testing, residual diagnostics, and distribution comparison in statistics courses and data analysis.`,optional:[`distribution`,`xlabel`,`ylabel`],propHints:{values:`raw numeric sample data array — the component sorts and computes quantiles`,distribution:`"normal" (default, only option currently supported)`}},samplingdistribution:{blurb:`Central Limit Theorem demonstration — three linked panels: population histogram (top-left), a single sample dot strip (top-right), and the sampling distribution of sample means (bottom) with theoretical N(μ, σ²/n) overlay. Deterministic simulation (no Math.random) for stable renders.`,optional:[`title`,`icon`,`iconColor`,`population`,`sampleSize`,`numSamples`,`footer`],propHints:{"population.shape":`'uniform' | 'skewed' | 'bimodal' — default skewed`,sampleSize:`n per sample, default 30`,numSamples:`number of simulated samples, default 200`}},hrdiagram:{blurb:`A Hertzsprung–Russell diagram: stars on an inverted log temperature axis (hot O/B stars left, cool K/M right) against log luminosity in solar units, with spectral-class letters, soft bands for the main sequence / giants / supergiants / white dwarfs, and the Sun as a fixed reference at 5772 K, 1 L☉. Use for stellar classification and stellar evolution. Never for a generic two-variable scatter — use scatterregression.`,optional:[`icon`,`iconColor`,`showRegions`,`highlight`,`footer`],itemShapes:[{prop:`stars`,text:`name`,textAliases:[`label`,`star`]}],propHints:{"stars[].tempK":`surface temperature in Kelvin — must be > 0 (the axis is logarithmic)`,"stars[].luminosity":`luminosity in SOLAR units (Sun = 1), e.g. Betelgeuse ~126000, Proxima ~0.0017 — must be > 0`,"stars[].stage":`'main-sequence' | 'giant' | 'supergiant' | 'white-dwarf' — sizes and tints the dot; omit when unknown`,highlight:`name of ONE star (matching stars[].name) to ring and label persistently`,showRegions:`default true — the soft population bands carry most of the teaching value`}},ternaryplot:{blurb:`A ternary (barycentric) plot: three-part compositions inside an equilateral triangle, each point normalized by its own a+b+c sum so any raw scale works, with 20% gridlines parallel to every edge and optional translucent zone polygons (soil-texture classes, alloy phases, color mixes). Use when every observation is a three-component mixture of a whole. Never for a single part-to-whole breakdown — use piedonut.`,optional:[`icon`,`iconColor`,`zones`,`unit`,`footer`],itemShapes:[{prop:`points`,text:`label`,textAliases:[`name`,`sample`]},{prop:`zones`,text:`label`,textAliases:[`name`,`class`],children:{prop:`vertices`}}],propHints:{axes:`{ a, b, c } corner labels — a is the TOP apex, b bottom-left, c bottom-right`,"points[].a":`that point's amount of component a (same for b/c) — any scale; each point is normalized by its own a+b+c sum`,"zones[].vertices":`3+ {a,b,c} corners of a region polygon, normalized like points`,unit:`unit the raw values are in, e.g. "%" — appended to the corner labels`}},parliamentseats:{blurb:`A hemicycle parliament chart: one dot per seat packed into concentric arc rows, parties filling contiguous wedges left to right in array order, with a majority marker at the top-center aisle, a big center total, and clickable legend chips that isolate a party. Use for legislature/council/committee seat counts — real WHOLE seat numbers. Never for part-to-whole percentages — use piedonut/waffle.`,optional:[`icon`,`iconColor`,`totalLabel`,`footer`],itemShapes:[{prop:`parties`,text:`name`,textAliases:[`label`,`party`]}],propHints:{"parties[].seats":`whole number of seats won — a count, never a percentage`,totalLabel:`label under the big center total, defaults to "seats"`}},componentapi:{blurb:`A typed prop/contract reference — every prop of a component or function as a tidy table of name, type, required, default, and description.`,optional:[`icon`,`iconColor`,`footer`],itemShapes:[{prop:`props`,text:`name`,textAliases:[`prop`,`param`,`key`]}],propHints:{component:`the component or function name, e.g. "<Button>" or "fetchUser()"`,"props[].type":`the type signature, e.g. "string"|"() => void"|"'sm'|'md'|'lg'"`,"props[].required":`true if the prop must be supplied (marked in the table)`,"props[].default":`the default value shown verbatim when the prop is omitted`}},stacktrace:{blurb:`A formatted error + call stack — error type, message, per-frame file/line/context, root cause, and a plain-language fix.`,optional:[`icon`,`iconColor`,`frames`,`cause`,`fix`,`footer`],itemShapes:[{prop:`frames`,text:`file`,textAliases:[`filename`,`path`,`module`]}],propHints:{errorType:`e.g. "TypeError"|"ValueError"|"ReferenceError"`,"frames[].isUser":`true for app code, false for library/runtime frames`}}};export{e as D};
@@ -1 +0,0 @@
1
- var e={syntaxbreakdown:{blurb:`Annotated code — each line explained in plain English, with per-token labels for keywords, types, and operators.`,optional:[`icon`,`iconColor`,`summary`,`runnable`,`footer`],itemShapes:[{prop:`lines`,text:`code`,textAliases:[`line`,`source`,`text`]}],propHints:{"lines[].tokens[].kind":`'keyword'|'type'|'value'|'operator'|'identifier'|'comment'|'other'`,runnable:`true ONLY when every line together forms one complete dependency-free JavaScript/TypeScript snippet; fragments and code needing imports/DOM/server globals must omit it`}},codewalk:{blurb:`A step-by-step algorithm walkthrough — numbered steps each with a title, code snippet, and plain-English explanation.`,optional:[`icon`,`iconColor`,`algorithm`,`footer`],itemShapes:[{prop:`steps`,text:`title`,textAliases:[`name`,`heading`,`label`]}]},terminal:{blurb:`A realistic terminal session — prompt-prefixed commands with color-coded stdout/stderr and a final exit-code badge. Use for "run this", CLI/git/npm/docker walkthroughs.`,optional:[`title`,`icon`,`iconColor`,`prompt`,`exitCode`,`caption`,`footer`],itemShapes:[{prop:`lines`,text:`text`,textAliases:[`line`,`content`,`command`]}],propHints:{"lines[].kind":`'command'|'stdout'|'stderr'|'comment' (defaults to stdout)`,prompt:`the shell prompt shown before commands, e.g. "~/app %"`}},logstream:{blurb:`A severity-coded log feed — timestamp, level pill, source tag, message, with per-level volume chips you can filter by. Use for log analysis, incidents, and observability.`,optional:[`title`,`icon`,`iconColor`,`caption`,`footer`],itemShapes:[{prop:`entries`,text:`message`,textAliases:[`msg`,`text`,`line`]}],propHints:{"entries[].level":`'trace'|'debug'|'info'|'warn'|'error'|'fatal'`}},gitgraph:{blurb:"A git commit graph — branch lanes, merges, tags, and HEAD drawn like `git log --graph`. Use for explaining history, branching strategy, and merges.",optional:[`title`,`icon`,`iconColor`,`branches`,`caption`,`footer`],itemShapes:[{prop:`commits`,text:`message`,textAliases:[`subject`,`msg`,`title`]}],stringItems:[`branches`],propHints:{commits:`newest first (top); each needs id, message, branch`,"commits[].parents":`parent commit id(s) — two parents render as a merge`,"commits[].head":`true marks the current HEAD`}},queryplan:{blurb:`A database EXPLAIN plan as an indented operation tree — each node with rows, cost, and time, and the bottleneck flagged. Use for "why is this query slow".`,optional:[`title`,`icon`,`iconColor`,`sql`,`caption`,`footer`],itemShapes:[{prop:`nodes`,text:`op`,textAliases:[`operation`,`node`,`name`]}],propHints:{"nodes[].depth":`indent level, 0 = root; emit nodes in pre-order`,"nodes[].slow":`true on the bottleneck node`}},flamegraph:{blurb:`A CPU flame graph — width is time/samples, depth is the call stack, with the hot path highlighted. Use for profiling and "where is the time going".`,optional:[`title`,`icon`,`iconColor`,`unit`,`caption`,`footer`],itemShapes:[{prop:`frames`,text:`name`,textAliases:[`fn`,`function`,`label`]}],propHints:{frames:`DFS pre-order: a frame is immediately followed by its children; a parent value ≥ the sum of its children`,"frames[].depth":`stack depth, 0 = root`,"frames[].hot":`true marks the hot path`}},regexscope:{blurb:`A regular-expression explainer — the pattern broken into labeled, color-coded tokens, plus test strings with matched runs highlighted. Use for "explain this regex".`,optional:[`title`,`icon`,`iconColor`,`flags`,`samples`,`caption`,`footer`],itemShapes:[{prop:`parts`,text:`label`,textAliases:[`meaning`,`desc`,`explanation`]},{prop:`samples`,children:{prop:`segments`,text:`text`}}],propHints:{"parts[].kind":`'literal'|'class'|'quantifier'|'group'|'anchor'|'escape'|'other'`,"samples[].segments[].match":`true marks a matched run (highlighted)`}}};export{e as D};
@@ -1 +0,0 @@
1
- var e={sequencealign:{blurb:`A DNA/RNA/protein sequence alignment — stacked monospace reads with a pinned label column, gaps shown as dashes, optional per-column mismatch tinting, and a majority-consensus row computed from the real reads. Use for comparing reads, mutations/indels, or homologous sequences.`,optional:[`icon`,`iconColor`,`consensus`,`highlightMismatches`,`footer`],itemShapes:[{prop:`sequences`,text:`chars`,textAliases:[`sequence`,`seq`,`bases`,`residues`]}],propHints:{kind:`'dna'|'rna'|'protein' — which alphabet the reads use`,"sequences[].label":`a short read/sample/species name shown at the left of its row`,"sequences[].chars":`the aligned sequence itself; use '-' for a gap, same length across reads`,consensus:'any short label (e.g. "Consensus") to show a majority-vote row — the symbols shown are always computed from `sequences`, never taken from this string',highlightMismatches:`true tints any column where the reads disagree`}},voicestyle:{blurb:`Captures the user's personal writing voice as style-trait chips, then lands a before→after — the same line in a flat generic voice vs rewritten in the user's own voice (the rewrite is the emphasised payoff). For 'learn my voice / make it sound like me'.`,optional:[`icon`,`iconColor`,`footer`],itemShapes:[{prop:`traits`,text:`trait`,textAliases:[`name`,`label`,`style`]}],propHints:{sample:`{ generic: string, inYourVoice: string } — the SAME line, generic vs in-the-user's-voice`,"traits[].example":`optional short snippet showing the trait in action`,iconColor:`var(--presence)|var(--insight)|var(--warning)`}},messagedraft:{blurb:`A polished email or message draft with subject, recipient, body, and tone chip — ready to copy and send.`,optional:[`icon`,`iconColor`,`to`,`from`,`greeting`,`closing`,`signature`,`tone`,`footer`],propHints:{tone:`'formal'|'casual'|'friendly'|'professional'|'apologetic'|'assertive'`,iconColor:`var(--presence)|var(--insight)|var(--warning)`}},chatthread:{blurb:"A realistic chat bubble thread — existing text messages or IM-style conversation, rendered as user/assistant speech bubbles with names and timestamps. For a scripted theatrical exchange between named characters, use `dialogue` instead.",optional:[`icon`,`iconColor`,`participants`,`footer`],itemShapes:[{prop:`messages`,text:`text`,textAliases:[`content`,`body`,`message`],requiredFields:[`role`]}],propHints:{"messages[].status":`'sent'|'delivered'|'read'|'error'`,"messages[].role":`'user'|'assistant'|'system'|'other'`}},dialogue:{blurb:`A script-style exchange between two named characters — teacher/student, interviewer/candidate, doctor/patient — alternating spoken lines with optional context header. Use for any "write a dialogue/conversation between X and Y" ask.`,optional:[`icon`,`iconColor`,`context`,`footer`],itemShapes:[{prop:`lines`,text:`text`,textAliases:[`content`,`dialogue`,`line`]}]},variants:{blurb:`Multiple text variants of the same message — three email rewrites with different tones, A/B subject lines, formal vs casual alternatives — each numbered with a label and optional note. Use whenever the ask is "write N versions/variants/alternatives of …".`,optional:[`icon`,`iconColor`,`prompt`,`footer`],itemShapes:[{prop:`variants`,text:`text`,textAliases:[`content`,`body`,`value`]}]},verse:{blurb:`A poem, song lyrics, or any stanza-structured literary text — with per-line indent, stanza labels, and form note.`,optional:[`icon`,`iconColor`,`form`,`footer`]},slidedeck:{blurb:`A presentation outline — one card per slide with title, bullets, speaker notes, and layout hint.`,optional:[`icon`,`iconColor`,`footer`],itemShapes:[{prop:`slides`,text:`title`,textAliases:[`name`,`heading`,`label`]}],propHints:{"slides[].layout":`'title'|'content'|'quote'|'image'`}}};export{e as D};
@@ -1 +0,0 @@
1
- var e={screenplay:{blurb:`A scene typed in industry-standard screenplay format — sluglines (INT./EXT.), action, centred character cues, parentheticals, indented dialogue, and right-aligned transitions, in monospace. Use for any "write a screenplay/script scene" or "format this as a screenplay" ask.`,optional:[`title`,`icon`,`iconColor`,`caption`,`footer`],itemShapes:[{prop:`elements`,text:`text`,textAliases:[`line`,`content`]}],propHints:{"elements[].kind":`'slug'|'action'|'character'|'parenthetical'|'dialogue'|'transition'`}},socialpost:{blurb:`A platform post preview — avatar, handle, and body rendered as X/LinkedIn/Instagram/Threads chrome, with a live character-count readout against that platform's limit. Use for "draft a tweet/post" or "write my LinkedIn update".`,optional:[`icon`,`iconColor`,`displayName`,`avatarInitial`,`timestamp`,`media`,`footer`],itemShapes:[{prop:`media`,text:`alt`,textAliases:[`caption`,`description`,`label`]}],propHints:{platform:`'x'|'linkedin'|'instagram'|'threads'|'generic'`,timestamp:`short relative or absolute label, e.g. '2h' or 'Jul 2'`,iconColor:`var(--presence)|var(--insight)|var(--warning)`}},insight:{blurb:`A headline number with optional delta and confidence — the primary insight unit.`,optional:[`summary`,`stat`,`delta`,`deltaDir`,`conf`,`sources`]},chart:{blurb:`Time-series trend chart with multiple series, areas, and optional axes.`,optional:[`unit`,`footer`,`conf`]},breakdown:{blurb:`A split of parts with percentages, values, tags, and heat indicators.`,optional:[`icon`,`iconColor`,`conf`]},timeline:{blurb:`Ordered steps or events with times, tags, and colors.`,optional:[`eyebrow`,`title`,`footer`]},list:{blurb:`A title with bullet points, tips, or plain-text items.`,optional:[`icon`,`iconColor`]},compare:{blurb:`Side-by-side options scored against criteria with a pick state and recommendation.`,optional:[`eyebrow`,`recommendation`]}};export{e as D};
@@ -1 +0,0 @@
1
- var e={ring:{blurb:`Concentric rings showing completion, health, or multi-metric progress.`,optional:[`icon`,`iconColor`,`footer`]},bars:{blurb:`Vertical bars with optional goal line and heat indicators.`,optional:[`icon`,`iconColor`,`unit`,`goal`,`goalLabel`,`footer`,`conf`]},stack:{blurb:`A horizontal bar split into colored segments with labels and totals.`,optional:[`icon`,`iconColor`,`total`,`footer`,`conf`]},scatter:{blurb:`X/Y point cloud with optional domains, trend line, and heat.`,optional:[`icon`,`iconColor`,`xLabel`,`yLabel`,`xDomain`,`yDomain`,`trend`,`footer`]},heat:{blurb:`A 2D grid of heat-colored cells with row/column headers and optional marks.`,optional:[`icon`,`iconColor`,`cols`,`levelColor`,`legend`,`footer`]},flow:{blurb:`A process or funnel with sequential steps, subtitles, and colors.`,optional:[`icon`,`iconColor`,`footer`]},web:{blurb:`Search results with titles, domains, excerpts, and optional live refresh.`,optional:[`title`,`live`,`footer`]},gallery:{blurb:`A grid of images with captions, tags, and optional headers.`,optional:[`title`,`eyebrow`,`footer`]}};export{e as D};