@mavea/mavea 2.1.0 → 2.2.0

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 (307) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +1 -7
  3. package/TERMS.md +9 -3
  4. package/dist/.vite/manifest.json +610 -540
  5. package/dist/assets/{AnnotationLayer-Bh1yiSAK.js → AnnotationLayer-HanjTRYY.js} +1 -1
  6. package/dist/assets/{AppCommandPalette-DS4sLY_K.js → AppCommandPalette-DBiuHUNL.js} +1 -1
  7. package/dist/assets/{CheckLogRail-onH7DaxW.js → CheckLogRail-CfoGgTqv.js} +1 -1
  8. package/dist/assets/{ConversationVideoStudio-adb7legp.js → ConversationVideoStudio-CEi_cgBR.js} +1 -1
  9. package/dist/assets/{CourseLessonReader-CkzViEij.js → CourseLessonReader-CaLT_Y6N.js} +2 -2
  10. package/dist/assets/{CoursesApp-B0HFM8Al.js → CoursesApp-IfWCeml5.js} +2 -2
  11. package/dist/assets/{DashPresent-BdOJ7F9D.js → DashPresent-T7I-lAng.js} +1 -1
  12. package/dist/assets/{DashboardDetail-Chrpi1Yk.js → DashboardDetail-BhRSDenD.js} +2 -2
  13. package/dist/assets/{DashboardLoopGate-B01Hpm7O.js → DashboardLoopGate-DBVAR7IS.js} +2 -2
  14. package/dist/assets/DashboardLoopRuntime-B55z8L4b.js +1 -0
  15. package/dist/assets/{DashboardsApp--jjj-GVX.js → DashboardsApp-C_awJ3hM.js} +2 -2
  16. package/dist/assets/{DeepZoomApp-BpQbKTjc.js → DeepZoomApp-C-66OasV.js} +1 -1
  17. package/dist/assets/{DelegatePanel-e4y0CJsn.js → DelegatePanel-DaJTDkYu.js} +1 -1
  18. package/dist/assets/{DemoGallery-DF1ShRG4.js → DemoGallery-B9F7SUzp.js} +1 -1
  19. package/dist/assets/{DropSelect-D3Q9Su_x.js → DropSelect-IBjV5Ol1.js} +1 -1
  20. package/dist/assets/{ExportModal-DkmyBpeN.js → ExportModal-gckBiikq.js} +1 -1
  21. package/dist/assets/{ExtractionPreview-C6F1q3qG.js → ExtractionPreview-DDOkCH9u.js} +1 -1
  22. package/dist/assets/FallbackCard-CUe6i-zT.js +1 -0
  23. package/dist/assets/{FeatureUseNotice-CCI4mM39.js → FeatureUseNotice-BfnZH8Vt.js} +1 -1
  24. package/dist/assets/{FlagshipCommandPalette-BkjvGrKT.js → FlagshipCommandPalette-CYQdl3Zu.js} +1 -1
  25. package/dist/assets/{FlagshipShowcase-Dx2noFrP.js → FlagshipShowcase-CFMmbeff.js} +1 -1
  26. package/dist/assets/{FlashcardsApp-C1TeLlkY.js → FlashcardsApp-KJ1bmlbp.js} +1 -1
  27. package/dist/assets/GalleryApp-B4KBdNyu.css +1 -0
  28. package/dist/assets/GalleryApp-Dh8Nc_So.js +2 -0
  29. package/dist/assets/{HonestByDesign-DlRrxgrO.js → HonestByDesign-C3LTj4Bx.js} +1 -1
  30. package/dist/assets/{HowItWorks-BM2yn2dq.js → HowItWorks-C5Dqqvl-.js} +1 -1
  31. package/dist/assets/{LegalApp-DPfTD0jz.js → LegalApp-DYVJIUyF.js} +1 -1
  32. package/dist/assets/{LegalMarkdownDocument-DJgwmK1q.js → LegalMarkdownDocument-CbuQ-pLN.js} +1 -1
  33. package/dist/assets/{LegalPageShell-DuIwSVSJ.js → LegalPageShell-CoEyiZGz.js} +1 -1
  34. package/dist/assets/{LibraryOverlay-DsLhiJzF.js → LibraryOverlay-TQnxY9R8.js} +1 -1
  35. package/dist/assets/LiveApp-DRnphsFA.js +79 -0
  36. package/dist/assets/{LiveApp-CEaISHEZ.css → LiveApp-Dc7Mk5oS.css} +1 -1
  37. package/dist/assets/{LiveSettings-CDHQnEtF.js → LiveSettings-Cz3XSqv8.js} +3 -3
  38. package/dist/assets/{MindMapViewerDrawer-C3BgiubE.js → MindMapViewerDrawer-AUJlLC2R.js} +1 -1
  39. package/dist/assets/{MindShape-DVlgSR1B.js → MindShape-BbuVOTaR.js} +1 -1
  40. package/dist/assets/{PinToDashboard-Dd_egidB.js → PinToDashboard-BdXI7oo9.js} +1 -1
  41. package/dist/assets/{PlanReview-wOsBpofo.js → PlanReview-CGRvSRAt.js} +1 -1
  42. package/dist/assets/{PresentationDeck-BSMzp5T9.js → PresentationDeck-CoPmOr2f.js} +1 -1
  43. package/dist/assets/{PrismApp-DbbDNVpy.js → PrismApp-DPECS285.js} +2 -2
  44. package/dist/assets/{PrismBriefingPlayer-B1_ziOwl.js → PrismBriefingPlayer-BvpG7oZs.js} +2 -2
  45. package/dist/assets/{PrismOverlay-DLxvsh9l.js → PrismOverlay-c8rcvt4V.js} +3 -3
  46. package/dist/assets/{PrismWorkbench-ZlhI7Mhw.js → PrismWorkbench-BEaD7Arj.js} +1 -1
  47. package/dist/assets/{PrivacyApp-Ki_5bM9Z.js → PrivacyApp-_O_MR088.js} +1 -1
  48. package/dist/assets/{ReplayCard-WKBKeSKc.js → ReplayCard-IN-ilb2E.js} +2 -2
  49. package/dist/assets/{ReplayOverlay-PFSJv540.js → ReplayOverlay-ZRjFP-zf.js} +1 -1
  50. package/dist/assets/{RippleApp-DqVyZYKV.js → RippleApp-D_Gd8Lw8.js} +2 -2
  51. package/dist/assets/{RippleOverlay-4McJCSV8.js → RippleOverlay-vP2KxTiI.js} +2 -2
  52. package/dist/assets/{SeeDontRead-gARjJuF7.js → SeeDontRead-BmUyUai5.js} +1 -1
  53. package/dist/assets/{ShareModal-C5HVVMtQ.js → ShareModal-_KYCohqO.js} +2 -2
  54. package/dist/assets/{ShipCourse-BUm4TKUk.js → ShipCourse--ajDej06.js} +1 -1
  55. package/dist/assets/{SignatureLoop-CYspJuij.js → SignatureLoop-DDw2gtQ_.js} +1 -1
  56. package/dist/assets/{SynthesisApp-BNhF9aJ2.js → SynthesisApp-CilzogOF.js} +2 -2
  57. package/dist/assets/{SynthesisOverlay-Bvwdc8uQ.js → SynthesisOverlay-CAK5h0hB.js} +1 -1
  58. package/dist/assets/{TemplatePicker-DBa4lkpf.js → TemplatePicker-3w18ViSc.js} +1 -1
  59. package/dist/assets/{TermsApp-BvwDtgIz.js → TermsApp-BfTGOTq6.js} +10 -4
  60. package/dist/assets/TopicCanvas-DSCNWNjv.js +2 -0
  61. package/dist/assets/TopicCanvas-sGuo7pnQ.css +1 -0
  62. package/dist/assets/{TourPrism-CCjys3-x.js → TourPrism-Y47m-KGq.js} +1 -1
  63. package/dist/assets/{TrackerTile-B4j5qtop.js → TrackerTile-LXFQXcvH.js} +2 -2
  64. package/dist/assets/{TwoSurfaces-fGm1MJrD.js → TwoSurfaces-CSpKrgfJ.js} +1 -1
  65. package/dist/assets/{WorldOverlay-JOp1rLyU.js → WorldOverlay-D5FWgYe3.js} +2 -2
  66. package/dist/assets/{WowFeatures-D5dJvp9W.js → WowFeatures-e6mkftpD.js} +1 -1
  67. package/dist/assets/{ZoomDeck-DYmkT0TA.js → ZoomDeck-CC9zXPxF.js} +1 -1
  68. package/dist/assets/{audioTrack-BJ2D_nuy.js → audioTrack-w1tZwSoU.js} +1 -1
  69. package/dist/assets/{backup-DkCsHNEE.js → backup-AymOkasb.js} +1 -1
  70. package/dist/assets/briefs-5oOobpyS.js +1 -0
  71. package/dist/assets/canvas-BRGFkCD-.js +1 -0
  72. package/dist/assets/{capture-Y6Qm8zCN.js → capture-Bomj_Egy.js} +1 -1
  73. package/dist/assets/catalog-vLsIS_Na.js +1 -0
  74. package/dist/assets/{confirmAdd-D-TTCQ31.js → confirmAdd-CUFiPNWz.js} +1 -1
  75. package/dist/assets/{dashboardEvents-MzCzak6K.js → dashboardEvents-PktCbV72.js} +1 -1
  76. package/dist/assets/{deepen-FZiVqiEc.js → deepen-Dz4yTyJs.js} +1 -1
  77. package/dist/assets/{effort-BftNJCCV.js → effort-BKGxLYoq.js} +1 -1
  78. package/dist/assets/facts-CNQz8OQz.js +1 -0
  79. package/dist/assets/{generateBeats-Dqtfd8HC.js → generateBeats-BjWC2fwl.js} +1 -1
  80. package/dist/assets/{generateLive-B7nlaqz8.js → generateLive-BLajGcNK.js} +1 -1
  81. package/dist/assets/{index-Db-FgYxX.js → index-CKRjGbeR.js} +3 -3
  82. package/dist/assets/{kokoro-yB7iU_JU.js → kokoro-B-rc224u.js} +1 -1
  83. package/dist/assets/{lens-DyGK7Owa.js → lens-Ba83fBmq.js} +1 -1
  84. package/dist/assets/liveSchema-eKgFc5D0.js +127 -0
  85. package/dist/assets/loader-BiYFMeRS.js +2 -0
  86. package/dist/assets/notes-nfocTnUv.js +1 -0
  87. package/dist/assets/overflowAudit-DQLYFrM8.js +1 -0
  88. package/dist/assets/{perfProbe-DrOeB7yd.js → perfProbe-BqMK4N56.js} +1 -1
  89. package/dist/assets/{pin-C5_s4Ju5.js → pin-IyE46GaQ.js} +1 -1
  90. package/dist/assets/{portal-TqJbr2rR.js → portal-C2b5NoMN.js} +1 -1
  91. package/dist/assets/{prewarm-Bt5X_9CM.js → prewarm-Pvdu5Jt0.js} +1 -1
  92. package/dist/assets/{quietHours-LtXDl4-v.js → quietHours-lWcjQ2Iu.js} +1 -1
  93. package/dist/assets/registry-B3HqLZyO.css +1 -0
  94. package/dist/assets/registry-BD1Zyd46.js +1 -0
  95. package/dist/assets/registry-BJFqryP_.js +1 -0
  96. package/dist/assets/registry-BTUHr4mQ.js +1 -0
  97. package/dist/assets/registry-BZsqAOnQ.css +1 -0
  98. package/dist/assets/registry-BiT0eNZb.js +2 -0
  99. package/dist/assets/registry-BoLdoGPW.js +1 -0
  100. package/dist/assets/registry-CLHP_r7X.js +1 -0
  101. package/dist/assets/registry-CT85vG1M.js +1 -0
  102. package/dist/assets/{registry-CIcGBgtK.css → registry-CnNL4jmR.css} +1 -1
  103. package/dist/assets/{registry-BHDUu15I.js → registry-CnmuVlAA.js} +1 -1
  104. package/dist/assets/registry-CyPRooIp.css +1 -0
  105. package/dist/assets/registry-D5O0Ptw_.css +1 -0
  106. package/dist/assets/registry-DOctfuxc.js +1 -0
  107. package/dist/assets/{registry-BZuT2Epw.css → registry-DhWVSz_J.css} +1 -1
  108. package/dist/assets/{registry-BPLbZIVz.js → registry-OUL5YJry.js} +1 -1
  109. package/dist/assets/registry-brX673Dg.css +1 -0
  110. package/dist/assets/{registry-C4Yh05pk.js → registry-nCDSZOmZ.js} +1 -1
  111. package/dist/assets/registry-sT9NoG1k.css +1 -0
  112. package/dist/assets/registry-yzYj0SNk.css +1 -0
  113. package/dist/assets/{relate-CCma73G9.js → relate-ZHm-ZvaR.js} +1 -1
  114. package/dist/assets/{replay-dMDmsTaD.js → replay-DBeCo_vn.js} +1 -1
  115. package/dist/assets/select-CejTsgpx.js +3 -0
  116. package/dist/assets/shapes-BwXCYTlu.js +1 -0
  117. package/dist/assets/shard001-BrI-88cO.js +1 -0
  118. package/dist/assets/shard002-CVTdbXod.js +1 -0
  119. package/dist/assets/shard003-Bilw1tcB.js +1 -0
  120. package/dist/assets/shard004-Cq0Or-2a.js +1 -0
  121. package/dist/assets/shard005-Wh3WypcW.js +1 -0
  122. package/dist/assets/shard006-BAUUhTjB.js +1 -0
  123. package/dist/assets/shard007-DYMH8Yxn.js +1 -0
  124. package/dist/assets/shard008-DsrV7tH6.js +1 -0
  125. package/dist/assets/shard009-Bsf_hKwR.js +1 -0
  126. package/dist/assets/shard010-B5P3ny1k.js +1 -0
  127. package/dist/assets/shard011-BgeG9-or.js +1 -0
  128. package/dist/assets/shard012-BDkbj6cq.js +1 -0
  129. package/dist/assets/shard013-G23LG7Fa.js +1 -0
  130. package/dist/assets/shard014-CnDxCS2j.js +1 -0
  131. package/dist/assets/shard015-JvmiIIrG.js +1 -0
  132. package/dist/assets/shard016-BVcRKptB.js +1 -0
  133. package/dist/assets/shard017-DrpF6FaE.js +1 -0
  134. package/dist/assets/shard018-Bi11C9yu.js +1 -0
  135. package/dist/assets/shard019-QyeKtIb0.js +1 -0
  136. package/dist/assets/shard020-Djc1cf5i.js +1 -0
  137. package/dist/assets/shard021-D2RM4FCA.js +1 -0
  138. package/dist/assets/shard022-DRT0Qsp3.js +1 -0
  139. package/dist/assets/shard023-COM71H0n.js +1 -0
  140. package/dist/assets/shard024-DEnCOj6l.js +1 -0
  141. package/dist/assets/shard025-DHxYqsae.js +1 -0
  142. package/dist/assets/shard026-BIgdfcha.js +1 -0
  143. package/dist/assets/shard027-CvJzY_e0.js +1 -0
  144. package/dist/assets/shard028-57qhg2sc.js +1 -0
  145. package/dist/assets/shard029-Dx2Qnz9G.js +1 -0
  146. package/dist/assets/shard030-CtC4LpQR.js +1 -0
  147. package/dist/assets/shard031-jLIDhN2C.js +1 -0
  148. package/dist/assets/shard032-BDQTeOZV.js +1 -0
  149. package/dist/assets/shard033-955G5ec6.js +1 -0
  150. package/dist/assets/shard034-Bu3aEL9i.js +1 -0
  151. package/dist/assets/shard035-B2E-tzQZ.js +1 -0
  152. package/dist/assets/shard036-BEyPFMoV.js +1 -0
  153. package/dist/assets/shard037-CFQfstFa.js +1 -0
  154. package/dist/assets/shard038-C3QlFW5S.js +1 -0
  155. package/dist/assets/shard039-DFpQvV8e.js +1 -0
  156. package/dist/assets/shard040-I3SaNaKO.js +1 -0
  157. package/dist/assets/shard041-B1UVtmcS.js +1 -0
  158. package/dist/assets/shard042-DGJ4rHUt.js +1 -0
  159. package/dist/assets/shard043-BCie8K9U.js +1 -0
  160. package/dist/assets/shard044-DeFpPsR0.js +1 -0
  161. package/dist/assets/{shard043-BKoTEB-H.js → shard045-COwX5PHB.js} +1 -1
  162. package/dist/assets/shard046-CDOiSCGB.js +1 -0
  163. package/dist/assets/shard047-CuL2iVAe.js +1 -0
  164. package/dist/assets/shard048-B7z0WHO6.js +1 -0
  165. package/dist/assets/shard049-D1yDablJ.js +1 -0
  166. package/dist/assets/shard050-DJi3AgeT.js +1 -0
  167. package/dist/assets/shard051-D_2ipfUr.js +1 -0
  168. package/dist/assets/shard052-1aGgWZdd.js +1 -0
  169. package/dist/assets/shard053-Bjwa0Og4.js +1 -0
  170. package/dist/assets/shard054-Cx_GAk3v.js +1 -0
  171. package/dist/assets/shard055-LaeOD3V5.js +1 -0
  172. package/dist/assets/shard056-CAArZwW0.js +1 -0
  173. package/dist/assets/shard057-CM8eSRQk.js +1 -0
  174. package/dist/assets/shard058-QRpDl4Vs.js +1 -0
  175. package/dist/assets/shard059-DkY7CQm3.js +1 -0
  176. package/dist/assets/shard060-BVCgf7o0.js +1 -0
  177. package/dist/assets/shard061-93aGtdrX.js +1 -0
  178. package/dist/assets/shard062-rJE9X1_I.js +1 -0
  179. package/dist/assets/shard063-Co_V_D1g.js +1 -0
  180. package/dist/assets/{shard062-BJ8OX6CJ.js → shard064-C9A8iNiq.js} +1 -1
  181. package/dist/assets/shard065-CpmX_yt1.js +1 -0
  182. package/dist/assets/shard066-C_uen3Ub.js +1 -0
  183. package/dist/assets/shard067-Dl5k0N1Z.js +1 -0
  184. package/dist/assets/shard068-DLIIO7yh.js +1 -0
  185. package/dist/assets/shard069-D15zOFva.js +1 -0
  186. package/dist/assets/shard070-BwHL1JLg.js +1 -0
  187. package/dist/assets/shard071-BFQhwU3I.js +1 -0
  188. package/dist/assets/shard072-DC9v9Ysb.js +1 -0
  189. package/dist/assets/shard073-CicaGoa8.js +1 -0
  190. package/dist/assets/shard074-BvwBlB0R.js +1 -0
  191. package/dist/assets/shard075-BDKPICyR.js +1 -0
  192. package/dist/assets/shard076-COQxCeXV.js +1 -0
  193. package/dist/assets/{shard076-DZHs0uzd.js → shard076-b5-2mnEN.js} +1 -1
  194. package/dist/assets/shard077-DGa0bRNk.js +1 -0
  195. package/dist/assets/shard077-wv2mA5w5.js +1 -0
  196. package/dist/assets/shard078-CI97pFkb.js +1 -0
  197. package/dist/assets/shard078-D64eVQuV.js +1 -0
  198. package/dist/assets/{useDashboardLoop-Cnxmf7wU.js → useDashboardLoop-SPlr1Mrm.js} +3 -3
  199. package/dist/assets/{walkSync-D6leFb_u.js → walkSync-BtO3jsqQ.js} +1 -1
  200. package/dist/index.html +1 -1
  201. package/dist/legal/TERMS.md +9 -3
  202. package/package.json +1 -1
  203. package/dist/assets/DashboardLoopRuntime-BcdZtIgH.js +0 -1
  204. package/dist/assets/FallbackCard-ap_4wOfj.js +0 -1
  205. package/dist/assets/GalleryApp-7oBldBKU.js +0 -1
  206. package/dist/assets/GalleryApp-B1CB3_81.css +0 -1
  207. package/dist/assets/LiveApp-DNYYimuo.js +0 -79
  208. package/dist/assets/TopicCanvas-Cwc6-K3q.js +0 -2
  209. package/dist/assets/TopicCanvas-DWTm611H.css +0 -1
  210. package/dist/assets/canvas-CYrbzF43.js +0 -1
  211. package/dist/assets/catalog-CRekRbKO.js +0 -1
  212. package/dist/assets/facts-BUGuVUIc.js +0 -1
  213. package/dist/assets/liveSchema-Z_39HuDI.js +0 -125
  214. package/dist/assets/loader-Ciz6XbG-.js +0 -2
  215. package/dist/assets/notes-CEloxKQ3.js +0 -1
  216. package/dist/assets/registry-B5S3brjM.css +0 -1
  217. package/dist/assets/registry-BAoRB8rd.css +0 -1
  218. package/dist/assets/registry-B_wlsfxh.js +0 -1
  219. package/dist/assets/registry-BwlvYVHq.js +0 -2
  220. package/dist/assets/registry-BxkAuBx8.js +0 -1
  221. package/dist/assets/registry-C3ezxLR3.css +0 -1
  222. package/dist/assets/registry-CfIJ9dJS.js +0 -1
  223. package/dist/assets/registry-CwRTUk0R.js +0 -1
  224. package/dist/assets/registry-Dbe9TQPw.css +0 -1
  225. package/dist/assets/registry-S3j4OpCH.js +0 -1
  226. package/dist/assets/registry-YrewlFlo.js +0 -1
  227. package/dist/assets/registry-dmR14XnY.css +0 -1
  228. package/dist/assets/registry-twSIyxJQ.css +0 -1
  229. package/dist/assets/select-BuqyXI8k.js +0 -3
  230. package/dist/assets/shapes-BwoDrn09.js +0 -1
  231. package/dist/assets/shard001-gQEQs7_F.js +0 -1
  232. package/dist/assets/shard002-DbDas-W-.js +0 -1
  233. package/dist/assets/shard003-DxMszG4_.js +0 -1
  234. package/dist/assets/shard004-DZMpLBw1.js +0 -1
  235. package/dist/assets/shard005-Dp5TM33O.js +0 -1
  236. package/dist/assets/shard006-DpJfkjmW.js +0 -1
  237. package/dist/assets/shard007-CIQN8OfZ.js +0 -1
  238. package/dist/assets/shard008-BFiyL7r6.js +0 -1
  239. package/dist/assets/shard009-0s30Tkk9.js +0 -1
  240. package/dist/assets/shard010-DPhgF5ck.js +0 -1
  241. package/dist/assets/shard011-C2jVsC25.js +0 -1
  242. package/dist/assets/shard012-DYtN5yzJ.js +0 -1
  243. package/dist/assets/shard013-1D6_Qy9C.js +0 -1
  244. package/dist/assets/shard014-D8s7GHnm.js +0 -1
  245. package/dist/assets/shard015-16W6KgnL.js +0 -1
  246. package/dist/assets/shard016-B4PpWmro.js +0 -1
  247. package/dist/assets/shard017-BO1sA5b3.js +0 -1
  248. package/dist/assets/shard018-D4gn8z25.js +0 -1
  249. package/dist/assets/shard019-vSbfaqRA.js +0 -1
  250. package/dist/assets/shard020-DwbHP8bp.js +0 -1
  251. package/dist/assets/shard021-BhEyVVAL.js +0 -1
  252. package/dist/assets/shard022-BdT7zFy3.js +0 -1
  253. package/dist/assets/shard023-Dga_NQcm.js +0 -1
  254. package/dist/assets/shard024-CXHofcxc.js +0 -1
  255. package/dist/assets/shard025-a4CQKYw1.js +0 -1
  256. package/dist/assets/shard026-0rhLKfDL.js +0 -1
  257. package/dist/assets/shard027-C9GMfOtn.js +0 -1
  258. package/dist/assets/shard028-D9__rPnw.js +0 -1
  259. package/dist/assets/shard029-BSdYKGgG.js +0 -1
  260. package/dist/assets/shard030-DceOU7pS.js +0 -1
  261. package/dist/assets/shard031-C6_p076r.js +0 -1
  262. package/dist/assets/shard032-Cah16sJi.js +0 -1
  263. package/dist/assets/shard033-D-iobGzc.js +0 -1
  264. package/dist/assets/shard034-DIyfCKl8.js +0 -1
  265. package/dist/assets/shard035-BHWs8v0a.js +0 -1
  266. package/dist/assets/shard036-AhOPHqzq.js +0 -1
  267. package/dist/assets/shard037-CuAGDOOu.js +0 -1
  268. package/dist/assets/shard038-CYdtnPjK.js +0 -1
  269. package/dist/assets/shard039-DgvXKOyi.js +0 -1
  270. package/dist/assets/shard040-DO012waT.js +0 -1
  271. package/dist/assets/shard041-BeUicA1R.js +0 -1
  272. package/dist/assets/shard042-D2zbq14A.js +0 -1
  273. package/dist/assets/shard044-bmYKfH3A.js +0 -1
  274. package/dist/assets/shard045-i_R1olD9.js +0 -1
  275. package/dist/assets/shard046-CFk2L0GQ.js +0 -1
  276. package/dist/assets/shard047-pjHCnVaT.js +0 -1
  277. package/dist/assets/shard048-Cc7tGz6R.js +0 -1
  278. package/dist/assets/shard049-C9eoD-6Z.js +0 -1
  279. package/dist/assets/shard050-V3c_ZDrB.js +0 -1
  280. package/dist/assets/shard051-D1ISwZzf.js +0 -1
  281. package/dist/assets/shard052-Dy09xx3S.js +0 -1
  282. package/dist/assets/shard053-Bi4Z4cwW.js +0 -1
  283. package/dist/assets/shard054-CNzJxw2V.js +0 -1
  284. package/dist/assets/shard055-D2NJeMN1.js +0 -1
  285. package/dist/assets/shard056-sSFMbxXN.js +0 -1
  286. package/dist/assets/shard057-DhNK5nyZ.js +0 -1
  287. package/dist/assets/shard058-Du4SjxeD.js +0 -1
  288. package/dist/assets/shard059-fGiLnJzG.js +0 -1
  289. package/dist/assets/shard060-l84MDY2t.js +0 -1
  290. package/dist/assets/shard061-B3aIa7Aa.js +0 -1
  291. package/dist/assets/shard063-CMo-7Qit.js +0 -1
  292. package/dist/assets/shard064-B0EEOnfG.js +0 -1
  293. package/dist/assets/shard065-D-StlUHp.js +0 -1
  294. package/dist/assets/shard066-C2edvdvh.js +0 -1
  295. package/dist/assets/shard067-DFcuVhZm.js +0 -1
  296. package/dist/assets/shard068-BN8DM8JZ.js +0 -1
  297. package/dist/assets/shard069-i464K77p.js +0 -1
  298. package/dist/assets/shard070-BmNyRhxw.js +0 -1
  299. package/dist/assets/shard071-BPVvR8GH.js +0 -1
  300. package/dist/assets/shard072-Bal_0d9L.js +0 -1
  301. package/dist/assets/shard073-CBQu62kt.js +0 -1
  302. package/dist/assets/shard074-D5BRae0w.js +0 -1
  303. package/dist/assets/shard075-DtFvcBnZ.js +0 -1
  304. package/docs/media/go-hub.jpg +0 -0
  305. /package/dist/assets/{registry-Ci65uThi.js → registry-C4RNoF_2.js} +0 -0
  306. /package/dist/assets/{registry-Bjf2Ggs6.js → registry-CbKXa68-.js} +0 -0
  307. /package/dist/assets/{registry-Di1fTdpi.js → registry-Cdk7NOiD.js} +0 -0
@@ -1 +1 @@
1
- import{t as e}from"./react-BZJXY1be.js";import{t}from"./compiler-runtime-qQQXpJgv.js";import{t as n}from"./jsx-runtime-DeHZSEgm.js";import{t as r}from"./PrismOverlay-DLxvsh9l.js";var i=t(),a=e(),o=n(),s=900;function c(e){let t=(0,i.c)(11),{doc:n,cfg:c,onClose:l}=e,[u,d]=(0,a.useState)(`igniting`),f,p;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(f=()=>{let e=setTimeout(()=>d(`blooming`),s),t=setTimeout(()=>d(`settled`),2300);return()=>{clearTimeout(e),clearTimeout(t)}},p=[],t[0]=f,t[1]=p):(f=t[0],p=t[1]),(0,a.useEffect)(f,p);let m=u===`settled`?n.spec:null,h;t[2]!==n.proposed||t[3]!==u||t[4]!==m?(h={phase:u,spec:m,corpus:null,proposed:n.proposed,error:null},t[2]=n.proposed,t[3]=u,t[4]=m,t[5]=h):h=t[5];let g=h,_;return t[6]!==c||t[7]!==n.doc||t[8]!==l||t[9]!==g?(_=(0,o.jsx)(r,{pdf:n.doc,world:g,cfg:c,autoBriefing:!0,onClose:l}),t[6]=c,t[7]=n.doc,t[8]=l,t[9]=g,t[10]=_):_=t[10],_}export{c as TourPrism};
1
+ import{t as e}from"./react-BZJXY1be.js";import{t}from"./compiler-runtime-qQQXpJgv.js";import{t as n}from"./jsx-runtime-DeHZSEgm.js";import{t as r}from"./PrismOverlay-c8rcvt4V.js";var i=t(),a=e(),o=n(),s=900;function c(e){let t=(0,i.c)(11),{doc:n,cfg:c,onClose:l}=e,[u,d]=(0,a.useState)(`igniting`),f,p;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(f=()=>{let e=setTimeout(()=>d(`blooming`),s),t=setTimeout(()=>d(`settled`),2300);return()=>{clearTimeout(e),clearTimeout(t)}},p=[],t[0]=f,t[1]=p):(f=t[0],p=t[1]),(0,a.useEffect)(f,p);let m=u===`settled`?n.spec:null,h;t[2]!==n.proposed||t[3]!==u||t[4]!==m?(h={phase:u,spec:m,corpus:null,proposed:n.proposed,error:null},t[2]=n.proposed,t[3]=u,t[4]=m,t[5]=h):h=t[5];let g=h,_;return t[6]!==c||t[7]!==n.doc||t[8]!==l||t[9]!==g?(_=(0,o.jsx)(r,{pdf:n.doc,world:g,cfg:c,autoBriefing:!0,onClose:l}),t[6]=c,t[7]=n.doc,t[8]=l,t[9]=g,t[10]=_):_=t[10],_}export{c as TourPrism};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/useDashboardLoop-Cnxmf7wU.js","assets/rolldown-runtime-DkW27tQK.js","assets/react-BZJXY1be.js","assets/compiler-runtime-qQQXpJgv.js","assets/preload-helper-CiWYd9n-.js","assets/http-Bqk6nJiH.js","assets/number-zqlPMliA.js","assets/store-D16dGt7I.js","assets/contentVault-XKWjF2FB.js","assets/keyVault-Aw5Y2PjT.js","assets/localBudget-CxLP6bjE.js","assets/providers-CPhoN8j0.js","assets/blockTypes-DUDdP3pB.js","assets/info-CiqHR5cs.js","assets/attachments-BW-vki-E.js","assets/route-CMdTFx0P.js","assets/useLiveConfig-CvOQTr0s.js","assets/json-J4Y32_i9.js","assets/ledger-DHS2di3l.js","assets/format-BkvssSOr.js","assets/dataPending-DGdCvY5Y.js","assets/now-C9-UAzTC.js","assets/predictions-CkVKHq-5.js","assets/notify-Bz4wuE4T.js","assets/dashboardEvents-MzCzak6K.js","assets/spokenText-Dy-GZvZV.js","assets/kokoro-yB7iU_JU.js","assets/index-Db-FgYxX.js","assets/useInView-DsTvv7L_.js","assets/jsx-runtime-DeHZSEgm.js","assets/coreIcons-DDTChE1H.js","assets/preloadableLazy-MIX1ApBW.js","assets/cachedImport-DW0gP14h.js","assets/lazyRetry-D50B1UMY.js","assets/theme-D5D55hZi.js","assets/index-CFE0vqqO.css"])))=>i.map(i=>d[i]);
2
- import{t as e}from"./react-BZJXY1be.js";import{t}from"./compiler-runtime-qQQXpJgv.js";import{t as n}from"./jsx-runtime-DeHZSEgm.js";import{n as r,t as i}from"./preload-helper-CiWYd9n-.js";import{n as a}from"./icons-gLFQTv74.js";import{L as o,R as s}from"./store-D16dGt7I.js";import{t as c}from"./route-D4kd-D3B.js";import{a as l,s as u,t as d}from"./format-BkvssSOr.js";import{n as f}from"./dataPending-DGdCvY5Y.js";import{t as p}from"./AreaChart-DZGCSEwt.js";import{t as m}from"./tiles-D-s6v-mA.js";var h=e(),g={"15min":`15M`,hourly:`1H`,"6h":`6H`,daily:`DAILY`,manual:`MANUAL`};function _(e){return e.metrics.find(e=>e.lastValue!==null)??e.metrics[0]}function v(e,t){for(let n of e.widgets)if(n.block.type===t)return n.block}function y(e){if(!e.history||e.history.length<2)return!1;let t=e.unit?.trim();return t===`$`||t?.startsWith(`$`)?!0:/price/i.test(e.label)}function b(e){return e.metrics.length!==1||e.metrics[0].unit!==`%`?!1:!e.widgets.some(e=>e.block.type===`scoreboard`)}function x(e,t){if(e.oneShotAt!==void 0&&e.oneShotAt>t)return`scheduled`;if(e.cadence.window)return`live-event`;if(e.widgets.some(e=>e.block.type===`scoreboard`||e.block.type===`standings`))return`sports`;if(e.widgets.some(e=>e.block.type===`forecast`))return`weather`;if(b(e))return`probability`;let n=_(e);return n&&y(n)?`price`:`generic`}function S(e){if(!e?.history||e.history.length<2)return null;let t=e.history[e.history.length-2].value,n=e.history[e.history.length-1].value;if(n===t)return null;let r=n>t?`up`:`down`,i=Math.round(Math.abs(n-t)*100)/100;if(i===0)return null;let a=Number.isInteger(i)?String(i):i.toFixed(2),o=e.unit;return{direction:r,text:`${r===`up`?`+`:`-`}${o===`$`?`$`:``}${a}${o&&o!==`$`?o:``}`}}function C(e){return typeof e==`number`?Number.isFinite(e):typeof e==`string`&&e.trim()!==``}function w(e){let t=v(e,`scoreboard`);if(t)return t.props.games.filter(e=>C(e.as)&&C(e.hs)).slice(0,5).map(e=>({label:`${e.as}-${e.hs}`,tone:e.hot?`accent`:`flat`,title:`${e.away} @ ${e.home} · ${e.status}`}));let n=v(e,`standings`);return n?n.props.rows.filter(e=>!!e.rec?.trim()).slice(0,5).map((e,t)=>({label:e.rec,tone:t===0?`accent`:`flat`,title:e.team})):[]}function T(e){let t=v(e,`forecast`);return t?t.props.days.slice(0,4).map(e=>({label:e.label,hi:e.hi,lo:e.lo,icon:e.icon})):[]}function E(e){return e.replace(/^(updated|checked)\s+/,``)}var D={scheduled:`countdown`,"live-event":`livescore`,sports:`formchips`,weather:`forecast`,probability:`probability`};function O(e,t){let n=x(e,t),r=_(e),i=l(e),a=u(e),c=e.lastDataOutcome===`unverified`,f=s(e),p,m;i?(p=i.value,m=i.label):a>0?(p=String(a),m=a===1?`live card`:`live cards`):(p=`—`,m=f.status===`pending`&&f.failure?o(f.failure):c?`Couldn't verify with sources — check again`:`Not yet checked`);let h=i?r?.history??null:null,v=i?S(r):null,y;y=n===`price`?h&&h.length>=2?`area`:`none`:n===`generic`?h&&h.length>=2?`sparkline`:`none`:D[n];let b=e.cadence.window??null,C=b!==null&&t>=b.startAt&&t<=b.endAt,O=e.lastRefreshedAt!==null&&e.lastRefreshedAt>0,k=E(d(e.lastRefreshedAt,t,e.lastDataOutcome));return{id:e.id,name:e.title,kind:n,vizKind:y,cadenceLabel:g[e.cadence.data],pauseEligible:e.cadence.data!==`manual`,isLiveWindow:C,liveWindow:b,value:p,context:m,delta:v,history:h,probabilityPct:n===`probability`?e.metrics[0].lastValue:null,formChips:n===`sports`?w(e):[],forecastDays:n===`weather`?T(e):[],oneShotAt:e.oneShotAt??null,oneShotLabel:e.oneShotLabel??null,everChecked:O,asOf:k,unverified:c}}var k=t(),A=n();function j(e){let t=(0,k.c)(4),{days:n}=e;if(n.length===0)return null;let r;t[0]===n?r=t[1]:(r=n.map(M),t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,A.jsx)(`div`,{className:`tile-forecast`,children:r}),t[2]=r,t[3]=i),i}function M(e,t){let n=e.icon?a[e.icon]:null;return(0,A.jsxs)(`div`,{className:`tile-forecast-day`,children:[(0,A.jsx)(`span`,{className:`tile-forecast-label`,children:e.label}),n&&(0,A.jsx)(n,{className:`tile-forecast-glyph`,"aria-hidden":`true`}),(0,A.jsxs)(`span`,{className:`tile-forecast-temp`,children:[e.hi??`—`,e.lo&&(0,A.jsxs)(`span`,{className:`tile-forecast-lo`,children:[`/`,e.lo]})]})]},`${e.label}-${t}`)}function N(e){let t=(0,k.c)(4),{items:n}=e;if(n.length===0)return null;let r;t[0]===n?r=t[1]:(r=n.map(P),t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,A.jsx)(`div`,{className:`tile-chips`,children:r}),t[2]=r,t[3]=i),i}function P(e,t){return(0,A.jsx)(`span`,{className:`tile-chip tile-chip--${e.tone}`,title:e.title,children:e.label},`${e.label}-${t}`)}function F(e){let t=(0,k.c)(15),{liveWindow:n,now:r}=e,i=n.endAt-n.startAt||1,a=Math.min(1,Math.max(0,(r-n.startAt)/i)),o=r>=n.startAt,s;t[0]===o?s=t[1]:(s=o&&(0,A.jsx)(`i`,{className:`dash-live-dot`,"aria-hidden":`true`}),t[0]=o,t[1]=s);let c;t[2]===n.label?c=t[3]:(c=(0,A.jsx)(`span`,{className:`tile-live-label`,children:n.label}),t[2]=n.label,t[3]=c);let l;t[4]!==s||t[5]!==c?(l=(0,A.jsxs)(`div`,{className:`tile-live-head`,children:[s,c]}),t[4]=s,t[5]=c,t[6]=l):l=t[6];let u;t[7]!==a||t[8]!==o?(u=o&&(0,A.jsx)(`div`,{className:`tile-live-fill`,style:{width:`${a*100}%`}}),t[7]=a,t[8]=o,t[9]=u):u=t[9];let d;t[10]===u?d=t[11]:(d=(0,A.jsx)(`div`,{className:`tile-live-track`,children:u}),t[10]=u,t[11]=d);let f;return t[12]!==l||t[13]!==d?(f=(0,A.jsxs)(`div`,{className:`tile-live`,children:[l,d]}),t[12]=l,t[13]=d,t[14]=f):f=t[14],f}function I(e){let t=(0,k.c)(10),{pct:n}=e,r;t[0]===n?r=t[1]:(r=Math.round(Math.min(100,Math.max(0,n))),t[0]=n,t[1]=r);let i=r,a=`${i}% likely`,o=`${i}%`,s;t[2]===o?s=t[3]:(s=(0,A.jsx)(`div`,{className:`tile-prob-track`,children:(0,A.jsx)(`div`,{className:`tile-prob-fill`,style:{width:o}})}),t[2]=o,t[3]=s);let c;t[4]===i?c=t[5]:(c=(0,A.jsxs)(`span`,{className:`tile-prob-pct`,children:[i,`%`]}),t[4]=i,t[5]=c);let l;return t[6]!==a||t[7]!==s||t[8]!==c?(l=(0,A.jsxs)(`div`,{className:`tile-prob`,role:`img`,"aria-label":a,children:[s,c]}),t[6]=a,t[7]=s,t[8]=c,t[9]=l):l=t[9],l}var L=200,R=40,z=3;function B(e){let t=(0,k.c)(14),{points:n}=e;if(n.length<2)return null;let r,i;if(t[0]!==n){let e=n.map(V);r=Math.min(...e),i=Math.max(...e),t[0]=n,t[1]=r,t[2]=i}else r=t[1],i=t[2];let a=i-r||1,o=194/(n.length-1),s;if(t[3]!==r||t[4]!==n||t[5]!==a||t[6]!==o){let e;t[8]!==r||t[9]!==a||t[10]!==o?(e=(e,t)=>{let n=z+t*o,i=z+(1-(e.value-r)/a)*34;return`${t===0?`M`:`L`}${n.toFixed(1)},${i.toFixed(1)}`},t[8]=r,t[9]=a,t[10]=o,t[11]=e):e=t[11],s=n.map(e).join(` `),t[3]=r,t[4]=n,t[5]=a,t[6]=o,t[7]=s}else s=t[7];let c=s,l;return t[12]===c?l=t[13]:(l=(0,A.jsx)(`svg`,{className:`tile-viz-svg`,viewBox:`0 0 ${L} ${R}`,preserveAspectRatio:`none`,role:`presentation`,children:(0,A.jsx)(`path`,{d:c,fill:`none`,stroke:`var(--text-secondary)`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,vectorEffect:`non-scaling-stroke`})}),t[12]=c,t[13]=l),l}function V(e){return e.value}r();function H(e,t){switch(e.vizKind){case`area`:return e.history?(0,A.jsx)(p,{points:e.history,tone:e.delta?.direction??`flat`}):null;case`sparkline`:return e.history?(0,A.jsx)(B,{points:e.history}):null;case`probability`:return e.probabilityPct===null?null:(0,A.jsx)(I,{pct:e.probabilityPct});case`countdown`:return e.oneShotAt===null?null:(0,A.jsx)(m,{targetAt:e.oneShotAt,now:t,label:e.oneShotLabel??void 0});case`formchips`:return(0,A.jsx)(N,{items:e.formChips});case`forecast`:return(0,A.jsx)(j,{days:e.forecastDays});case`livescore`:return e.liveWindow?(0,A.jsx)(F,{liveWindow:e.liveWindow,now:t}):null;case`none`:return null}}var U={failed:`Couldn’t reach your model — check its key or quota, then try again.`,unverified:`Checked, but no source could verify new values — keeping the last real ones.`},W=8e3;function G({dashboard:e,now:t,paused:n=!1}){let r=(0,h.useMemo)(()=>O(e,t),[e,t]),o=f(e.id),[s,l]=(0,h.useState)(!1),u=o||s,[d,p]=(0,h.useState)(null),m=(0,h.useRef)(void 0);(0,h.useEffect)(()=>()=>window.clearTimeout(m.current),[]);let g=n&&r.pauseEligible,_=g?`paused`:r.isLiveWindow?`live`:`plain`,v=e=>{p(e),m.current=window.setTimeout(()=>p(null),W)},y=t=>{t.preventDefault(),t.stopPropagation(),!u&&(window.clearTimeout(m.current),p(null),l(!0),i(async()=>{let{refreshDashboardNow:e}=await import(`./useDashboardLoop-Cnxmf7wU.js`).then(e=>e.i);return{refreshDashboardNow:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35])).then(({refreshDashboardNow:t})=>t(e.id)).then(e=>{(e===`failed`||e===`unverified`)&&v(e)}).catch(()=>v(`failed`)).finally(()=>l(!1)))};return(0,A.jsxs)(`a`,{className:`tile-frame`,href:c.detail(e.id),"data-tile-state":_===`plain`?void 0:_,children:[(0,A.jsxs)(`div`,{className:`tile-top`,children:[(0,A.jsx)(`span`,{className:`tile-name`,title:r.name,children:r.name}),(0,A.jsxs)(`span`,{className:`tile-cadence tile-cadence--${_}`,children:[_===`live`&&(0,A.jsx)(`i`,{className:`dash-live-dot`,"aria-hidden":`true`}),g?`PAUSED`:r.cadenceLabel]})]}),(0,A.jsxs)(`div`,{className:`tile-value-row`,children:[(0,A.jsx)(`span`,{className:`tile-value${u?` tile-value--checking`:``}`,children:r.value}),r.delta&&(0,A.jsx)(`span`,{className:`tile-delta tile-delta--${r.delta.direction}`,children:r.delta.text})]}),(0,A.jsx)(`p`,{className:`tile-context${!u&&d?` tile-context--note`:``}`,children:u?`Checking for live data…`:d?U[d]:r.context}),(0,A.jsx)(`div`,{className:`tile-viz`,children:H(r,t)}),(0,A.jsxs)(`div`,{className:`tile-foot`,children:[(0,A.jsx)(`span`,{className:`tile-asof`,children:r.everChecked?`AS OF ${r.asOf}`:r.asOf}),(0,A.jsx)(`span`,{role:`button`,tabIndex:0,className:`tile-check${u?` is-checking`:``}`,"aria-label":`Check ${r.name} now`,"aria-disabled":u,title:`Check now`,onClick:y,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&y(e)},children:(0,A.jsx)(a.refresh,{className:u?`dash-refresh-spin`:void 0})})]})]})}export{F as n,O as r,G as t};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/useDashboardLoop-SPlr1Mrm.js","assets/rolldown-runtime-DkW27tQK.js","assets/react-BZJXY1be.js","assets/compiler-runtime-qQQXpJgv.js","assets/preload-helper-CiWYd9n-.js","assets/http-Bqk6nJiH.js","assets/number-zqlPMliA.js","assets/store-D16dGt7I.js","assets/contentVault-XKWjF2FB.js","assets/keyVault-Aw5Y2PjT.js","assets/localBudget-CxLP6bjE.js","assets/providers-CPhoN8j0.js","assets/blockTypes-DUDdP3pB.js","assets/info-CiqHR5cs.js","assets/attachments-BW-vki-E.js","assets/route-CMdTFx0P.js","assets/useLiveConfig-CvOQTr0s.js","assets/json-J4Y32_i9.js","assets/ledger-DHS2di3l.js","assets/format-BkvssSOr.js","assets/dataPending-DGdCvY5Y.js","assets/now-C9-UAzTC.js","assets/predictions-CkVKHq-5.js","assets/notify-Bz4wuE4T.js","assets/dashboardEvents-PktCbV72.js","assets/spokenText-Dy-GZvZV.js","assets/kokoro-B-rc224u.js","assets/index-CKRjGbeR.js","assets/useInView-DsTvv7L_.js","assets/jsx-runtime-DeHZSEgm.js","assets/coreIcons-DDTChE1H.js","assets/preloadableLazy-MIX1ApBW.js","assets/cachedImport-DW0gP14h.js","assets/lazyRetry-D50B1UMY.js","assets/theme-D5D55hZi.js","assets/index-CFE0vqqO.css"])))=>i.map(i=>d[i]);
2
+ import{t as e}from"./react-BZJXY1be.js";import{t}from"./compiler-runtime-qQQXpJgv.js";import{t as n}from"./jsx-runtime-DeHZSEgm.js";import{n as r,t as i}from"./preload-helper-CiWYd9n-.js";import{n as a}from"./icons-gLFQTv74.js";import{L as o,R as s}from"./store-D16dGt7I.js";import{t as c}from"./route-D4kd-D3B.js";import{a as l,s as u,t as d}from"./format-BkvssSOr.js";import{n as f}from"./dataPending-DGdCvY5Y.js";import{t as p}from"./AreaChart-DZGCSEwt.js";import{t as m}from"./tiles-D-s6v-mA.js";var h=e(),g={"15min":`15M`,hourly:`1H`,"6h":`6H`,daily:`DAILY`,manual:`MANUAL`};function _(e){return e.metrics.find(e=>e.lastValue!==null)??e.metrics[0]}function v(e,t){for(let n of e.widgets)if(n.block.type===t)return n.block}function y(e){if(!e.history||e.history.length<2)return!1;let t=e.unit?.trim();return t===`$`||t?.startsWith(`$`)?!0:/price/i.test(e.label)}function b(e){return e.metrics.length!==1||e.metrics[0].unit!==`%`?!1:!e.widgets.some(e=>e.block.type===`scoreboard`)}function x(e,t){if(e.oneShotAt!==void 0&&e.oneShotAt>t)return`scheduled`;if(e.cadence.window)return`live-event`;if(e.widgets.some(e=>e.block.type===`scoreboard`||e.block.type===`standings`))return`sports`;if(e.widgets.some(e=>e.block.type===`forecast`))return`weather`;if(b(e))return`probability`;let n=_(e);return n&&y(n)?`price`:`generic`}function S(e){if(!e?.history||e.history.length<2)return null;let t=e.history[e.history.length-2].value,n=e.history[e.history.length-1].value;if(n===t)return null;let r=n>t?`up`:`down`,i=Math.round(Math.abs(n-t)*100)/100;if(i===0)return null;let a=Number.isInteger(i)?String(i):i.toFixed(2),o=e.unit;return{direction:r,text:`${r===`up`?`+`:`-`}${o===`$`?`$`:``}${a}${o&&o!==`$`?o:``}`}}function C(e){return typeof e==`number`?Number.isFinite(e):typeof e==`string`&&e.trim()!==``}function w(e){let t=v(e,`scoreboard`);if(t)return t.props.games.filter(e=>C(e.as)&&C(e.hs)).slice(0,5).map(e=>({label:`${e.as}-${e.hs}`,tone:e.hot?`accent`:`flat`,title:`${e.away} @ ${e.home} · ${e.status}`}));let n=v(e,`standings`);return n?n.props.rows.filter(e=>!!e.rec?.trim()).slice(0,5).map((e,t)=>({label:e.rec,tone:t===0?`accent`:`flat`,title:e.team})):[]}function T(e){let t=v(e,`forecast`);return t?t.props.days.slice(0,4).map(e=>({label:e.label,hi:e.hi,lo:e.lo,icon:e.icon})):[]}function E(e){return e.replace(/^(updated|checked)\s+/,``)}var D={scheduled:`countdown`,"live-event":`livescore`,sports:`formchips`,weather:`forecast`,probability:`probability`};function O(e,t){let n=x(e,t),r=_(e),i=l(e),a=u(e),c=e.lastDataOutcome===`unverified`,f=s(e),p,m;i?(p=i.value,m=i.label):a>0?(p=String(a),m=a===1?`live card`:`live cards`):(p=`—`,m=f.status===`pending`&&f.failure?o(f.failure):c?`Couldn't verify with sources — check again`:`Not yet checked`);let h=i?r?.history??null:null,v=i?S(r):null,y;y=n===`price`?h&&h.length>=2?`area`:`none`:n===`generic`?h&&h.length>=2?`sparkline`:`none`:D[n];let b=e.cadence.window??null,C=b!==null&&t>=b.startAt&&t<=b.endAt,O=e.lastRefreshedAt!==null&&e.lastRefreshedAt>0,k=E(d(e.lastRefreshedAt,t,e.lastDataOutcome));return{id:e.id,name:e.title,kind:n,vizKind:y,cadenceLabel:g[e.cadence.data],pauseEligible:e.cadence.data!==`manual`,isLiveWindow:C,liveWindow:b,value:p,context:m,delta:v,history:h,probabilityPct:n===`probability`?e.metrics[0].lastValue:null,formChips:n===`sports`?w(e):[],forecastDays:n===`weather`?T(e):[],oneShotAt:e.oneShotAt??null,oneShotLabel:e.oneShotLabel??null,everChecked:O,asOf:k,unverified:c}}var k=t(),A=n();function j(e){let t=(0,k.c)(4),{days:n}=e;if(n.length===0)return null;let r;t[0]===n?r=t[1]:(r=n.map(M),t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,A.jsx)(`div`,{className:`tile-forecast`,children:r}),t[2]=r,t[3]=i),i}function M(e,t){let n=e.icon?a[e.icon]:null;return(0,A.jsxs)(`div`,{className:`tile-forecast-day`,children:[(0,A.jsx)(`span`,{className:`tile-forecast-label`,children:e.label}),n&&(0,A.jsx)(n,{className:`tile-forecast-glyph`,"aria-hidden":`true`}),(0,A.jsxs)(`span`,{className:`tile-forecast-temp`,children:[e.hi??`—`,e.lo&&(0,A.jsxs)(`span`,{className:`tile-forecast-lo`,children:[`/`,e.lo]})]})]},`${e.label}-${t}`)}function N(e){let t=(0,k.c)(4),{items:n}=e;if(n.length===0)return null;let r;t[0]===n?r=t[1]:(r=n.map(P),t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,A.jsx)(`div`,{className:`tile-chips`,children:r}),t[2]=r,t[3]=i),i}function P(e,t){return(0,A.jsx)(`span`,{className:`tile-chip tile-chip--${e.tone}`,title:e.title,children:e.label},`${e.label}-${t}`)}function F(e){let t=(0,k.c)(15),{liveWindow:n,now:r}=e,i=n.endAt-n.startAt||1,a=Math.min(1,Math.max(0,(r-n.startAt)/i)),o=r>=n.startAt,s;t[0]===o?s=t[1]:(s=o&&(0,A.jsx)(`i`,{className:`dash-live-dot`,"aria-hidden":`true`}),t[0]=o,t[1]=s);let c;t[2]===n.label?c=t[3]:(c=(0,A.jsx)(`span`,{className:`tile-live-label`,children:n.label}),t[2]=n.label,t[3]=c);let l;t[4]!==s||t[5]!==c?(l=(0,A.jsxs)(`div`,{className:`tile-live-head`,children:[s,c]}),t[4]=s,t[5]=c,t[6]=l):l=t[6];let u;t[7]!==a||t[8]!==o?(u=o&&(0,A.jsx)(`div`,{className:`tile-live-fill`,style:{width:`${a*100}%`}}),t[7]=a,t[8]=o,t[9]=u):u=t[9];let d;t[10]===u?d=t[11]:(d=(0,A.jsx)(`div`,{className:`tile-live-track`,children:u}),t[10]=u,t[11]=d);let f;return t[12]!==l||t[13]!==d?(f=(0,A.jsxs)(`div`,{className:`tile-live`,children:[l,d]}),t[12]=l,t[13]=d,t[14]=f):f=t[14],f}function I(e){let t=(0,k.c)(10),{pct:n}=e,r;t[0]===n?r=t[1]:(r=Math.round(Math.min(100,Math.max(0,n))),t[0]=n,t[1]=r);let i=r,a=`${i}% likely`,o=`${i}%`,s;t[2]===o?s=t[3]:(s=(0,A.jsx)(`div`,{className:`tile-prob-track`,children:(0,A.jsx)(`div`,{className:`tile-prob-fill`,style:{width:o}})}),t[2]=o,t[3]=s);let c;t[4]===i?c=t[5]:(c=(0,A.jsxs)(`span`,{className:`tile-prob-pct`,children:[i,`%`]}),t[4]=i,t[5]=c);let l;return t[6]!==a||t[7]!==s||t[8]!==c?(l=(0,A.jsxs)(`div`,{className:`tile-prob`,role:`img`,"aria-label":a,children:[s,c]}),t[6]=a,t[7]=s,t[8]=c,t[9]=l):l=t[9],l}var L=200,R=40,z=3;function B(e){let t=(0,k.c)(14),{points:n}=e;if(n.length<2)return null;let r,i;if(t[0]!==n){let e=n.map(V);r=Math.min(...e),i=Math.max(...e),t[0]=n,t[1]=r,t[2]=i}else r=t[1],i=t[2];let a=i-r||1,o=194/(n.length-1),s;if(t[3]!==r||t[4]!==n||t[5]!==a||t[6]!==o){let e;t[8]!==r||t[9]!==a||t[10]!==o?(e=(e,t)=>{let n=z+t*o,i=z+(1-(e.value-r)/a)*34;return`${t===0?`M`:`L`}${n.toFixed(1)},${i.toFixed(1)}`},t[8]=r,t[9]=a,t[10]=o,t[11]=e):e=t[11],s=n.map(e).join(` `),t[3]=r,t[4]=n,t[5]=a,t[6]=o,t[7]=s}else s=t[7];let c=s,l;return t[12]===c?l=t[13]:(l=(0,A.jsx)(`svg`,{className:`tile-viz-svg`,viewBox:`0 0 ${L} ${R}`,preserveAspectRatio:`none`,role:`presentation`,children:(0,A.jsx)(`path`,{d:c,fill:`none`,stroke:`var(--text-secondary)`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,vectorEffect:`non-scaling-stroke`})}),t[12]=c,t[13]=l),l}function V(e){return e.value}r();function H(e,t){switch(e.vizKind){case`area`:return e.history?(0,A.jsx)(p,{points:e.history,tone:e.delta?.direction??`flat`}):null;case`sparkline`:return e.history?(0,A.jsx)(B,{points:e.history}):null;case`probability`:return e.probabilityPct===null?null:(0,A.jsx)(I,{pct:e.probabilityPct});case`countdown`:return e.oneShotAt===null?null:(0,A.jsx)(m,{targetAt:e.oneShotAt,now:t,label:e.oneShotLabel??void 0});case`formchips`:return(0,A.jsx)(N,{items:e.formChips});case`forecast`:return(0,A.jsx)(j,{days:e.forecastDays});case`livescore`:return e.liveWindow?(0,A.jsx)(F,{liveWindow:e.liveWindow,now:t}):null;case`none`:return null}}var U={failed:`Couldn’t reach your model — check its key or quota, then try again.`,unverified:`Checked, but no source could verify new values — keeping the last real ones.`},W=8e3;function G({dashboard:e,now:t,paused:n=!1}){let r=(0,h.useMemo)(()=>O(e,t),[e,t]),o=f(e.id),[s,l]=(0,h.useState)(!1),u=o||s,[d,p]=(0,h.useState)(null),m=(0,h.useRef)(void 0);(0,h.useEffect)(()=>()=>window.clearTimeout(m.current),[]);let g=n&&r.pauseEligible,_=g?`paused`:r.isLiveWindow?`live`:`plain`,v=e=>{p(e),m.current=window.setTimeout(()=>p(null),W)},y=t=>{t.preventDefault(),t.stopPropagation(),!u&&(window.clearTimeout(m.current),p(null),l(!0),i(async()=>{let{refreshDashboardNow:e}=await import(`./useDashboardLoop-SPlr1Mrm.js`).then(e=>e.i);return{refreshDashboardNow:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35])).then(({refreshDashboardNow:t})=>t(e.id)).then(e=>{(e===`failed`||e===`unverified`)&&v(e)}).catch(()=>v(`failed`)).finally(()=>l(!1)))};return(0,A.jsxs)(`a`,{className:`tile-frame`,href:c.detail(e.id),"data-tile-state":_===`plain`?void 0:_,children:[(0,A.jsxs)(`div`,{className:`tile-top`,children:[(0,A.jsx)(`span`,{className:`tile-name`,title:r.name,children:r.name}),(0,A.jsxs)(`span`,{className:`tile-cadence tile-cadence--${_}`,children:[_===`live`&&(0,A.jsx)(`i`,{className:`dash-live-dot`,"aria-hidden":`true`}),g?`PAUSED`:r.cadenceLabel]})]}),(0,A.jsxs)(`div`,{className:`tile-value-row`,children:[(0,A.jsx)(`span`,{className:`tile-value${u?` tile-value--checking`:``}`,children:r.value}),r.delta&&(0,A.jsx)(`span`,{className:`tile-delta tile-delta--${r.delta.direction}`,children:r.delta.text})]}),(0,A.jsx)(`p`,{className:`tile-context${!u&&d?` tile-context--note`:``}`,children:u?`Checking for live data…`:d?U[d]:r.context}),(0,A.jsx)(`div`,{className:`tile-viz`,children:H(r,t)}),(0,A.jsxs)(`div`,{className:`tile-foot`,children:[(0,A.jsx)(`span`,{className:`tile-asof`,children:r.everChecked?`AS OF ${r.asOf}`:r.asOf}),(0,A.jsx)(`span`,{role:`button`,tabIndex:0,className:`tile-check${u?` is-checking`:``}`,"aria-label":`Check ${r.name} now`,"aria-disabled":u,title:`Check now`,onClick:y,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&y(e)},children:(0,A.jsx)(a.refresh,{className:u?`dash-refresh-spin`:void 0})})]})]})}export{F as n,O as r,G as t};
@@ -1 +1 @@
1
- import{t as e}from"./compiler-runtime-qQQXpJgv.js";import{t}from"./jsx-runtime-DeHZSEgm.js";import{ot as n}from"./index-Db-FgYxX.js";import{r}from"./info-CiqHR5cs.js";var i=e(),a=t(),o=[`No sign-up`,`No install`,`Key-free tour`,`Keys session-only`];function s(e){let t=(0,i.c)(16),{onEnterLive:s}=e,u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,a.jsxs)(n,{eyebrow:`Yours in seconds`,children:[`No account. `,(0,a.jsx)(`em`,{children:`Your engine.`})]}),t[0]=u):u=t[0];let d,f,p;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,a.jsx)(`div`,{className:`fl-surface-tag insight`,children:`Instant · no sign-up`}),f=(0,a.jsx)(`div`,{className:`fl-surface-title`,children:`Nothing to sign up for`}),p=(0,a.jsx)(`p`,{className:`fl-surface-body`,children:`No account, no waitlist, no install. The tour and demos run key-free; Live starts the moment you paste a key.`}),t[1]=d,t[2]=f,t[3]=p):(d=t[1],f=t[2],p=t[3]);let m;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,a.jsx)(`div`,{className:`fl-surface-chips`,children:o.map(l)}),t[4]=m):m=t[4];let h;t[5]===s?h=t[6]:(h=(0,a.jsxs)(`div`,{className:`fl-surface`,children:[d,f,p,m,(0,a.jsx)(`button`,{type:`button`,className:`fl-ghost-btn`,onClick:()=>s(),children:`Open Mavéa →`})]}),t[5]=s,t[6]=h);let g,_,v;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,a.jsx)(`div`,{className:`fl-surface-tag live`,children:`Live · your model`}),_=(0,a.jsx)(`div`,{className:`fl-surface-title`,children:`Bring your own keys`}),v=(0,a.jsx)(`p`,{className:`fl-surface-body`,children:`Anthropic, OpenAI, Gemini, Grok, OpenRouter. Same beautiful canvas, your engine.`}),t[7]=g,t[8]=_,t[9]=v):(g=t[7],_=t[8],v=t[9]);let y;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,a.jsx)(`div`,{className:`fl-surface-chips`,children:r.map(c)}),t[10]=y):y=t[10];let b;t[11]===s?b=t[12]:(b=(0,a.jsxs)(`div`,{className:`fl-surface live`,children:[g,_,v,y,(0,a.jsx)(`button`,{type:`button`,className:`fl-ghost-btn live`,onClick:()=>s(),children:`Open Live →`})]}),t[11]=s,t[12]=b);let x;return t[13]!==b||t[14]!==h?(x=(0,a.jsxs)(a.Fragment,{children:[u,(0,a.jsxs)(`div`,{className:`fl-surfaces`,children:[h,b]})]}),t[13]=b,t[14]=h,t[15]=x):x=t[15],x}function c(e){return(0,a.jsx)(`span`,{className:`fl-surface-chip fl-model-chip`,children:e.label},e.id)}function l(e){return(0,a.jsx)(`span`,{className:`fl-surface-chip`,children:e},e)}export{s as TwoSurfaces};
1
+ import{t as e}from"./compiler-runtime-qQQXpJgv.js";import{t}from"./jsx-runtime-DeHZSEgm.js";import{ot as n}from"./index-CKRjGbeR.js";import{r}from"./info-CiqHR5cs.js";var i=e(),a=t(),o=[`No sign-up`,`No install`,`Key-free tour`,`Keys session-only`];function s(e){let t=(0,i.c)(16),{onEnterLive:s}=e,u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,a.jsxs)(n,{eyebrow:`Yours in seconds`,children:[`No account. `,(0,a.jsx)(`em`,{children:`Your engine.`})]}),t[0]=u):u=t[0];let d,f,p;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,a.jsx)(`div`,{className:`fl-surface-tag insight`,children:`Instant · no sign-up`}),f=(0,a.jsx)(`div`,{className:`fl-surface-title`,children:`Nothing to sign up for`}),p=(0,a.jsx)(`p`,{className:`fl-surface-body`,children:`No account, no waitlist, no install. The tour and demos run key-free; Live starts the moment you paste a key.`}),t[1]=d,t[2]=f,t[3]=p):(d=t[1],f=t[2],p=t[3]);let m;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,a.jsx)(`div`,{className:`fl-surface-chips`,children:o.map(l)}),t[4]=m):m=t[4];let h;t[5]===s?h=t[6]:(h=(0,a.jsxs)(`div`,{className:`fl-surface`,children:[d,f,p,m,(0,a.jsx)(`button`,{type:`button`,className:`fl-ghost-btn`,onClick:()=>s(),children:`Open Mavéa →`})]}),t[5]=s,t[6]=h);let g,_,v;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,a.jsx)(`div`,{className:`fl-surface-tag live`,children:`Live · your model`}),_=(0,a.jsx)(`div`,{className:`fl-surface-title`,children:`Bring your own keys`}),v=(0,a.jsx)(`p`,{className:`fl-surface-body`,children:`Anthropic, OpenAI, Gemini, Grok, OpenRouter. Same beautiful canvas, your engine.`}),t[7]=g,t[8]=_,t[9]=v):(g=t[7],_=t[8],v=t[9]);let y;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,a.jsx)(`div`,{className:`fl-surface-chips`,children:r.map(c)}),t[10]=y):y=t[10];let b;t[11]===s?b=t[12]:(b=(0,a.jsxs)(`div`,{className:`fl-surface live`,children:[g,_,v,y,(0,a.jsx)(`button`,{type:`button`,className:`fl-ghost-btn live`,onClick:()=>s(),children:`Open Live →`})]}),t[11]=s,t[12]=b);let x;return t[13]!==b||t[14]!==h?(x=(0,a.jsxs)(a.Fragment,{children:[u,(0,a.jsxs)(`div`,{className:`fl-surfaces`,children:[h,b]})]}),t[13]=b,t[14]=h,t[15]=x):x=t[15],x}function c(e){return(0,a.jsx)(`span`,{className:`fl-surface-chip fl-model-chip`,children:e.label},e.id)}function l(e){return(0,a.jsx)(`span`,{className:`fl-surface-chip`,children:e},e)}export{s as TwoSurfaces};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/lens-DyGK7Owa.js","assets/display-CAb_PiGv.js","assets/facts-BUGuVUIc.js","assets/types-DuEbJpIA.js"])))=>i.map(i=>d[i]);
2
- import{t as e}from"./react-BZJXY1be.js";import{t}from"./compiler-runtime-qQQXpJgv.js";import{t as n}from"./jsx-runtime-DeHZSEgm.js";import{n as r,t as i}from"./preload-helper-CiWYd9n-.js";import{i as a,n as o,t as s}from"./loader-Ciz6XbG-.js";import{t as c}from"./useFocusTrap-CJmpNZv2.js";import{r as l,t as u}from"./useSpatialCanvas-CfmZOXXP.js";import{i as d}from"./format-q0LwBjID.js";import{i as f,n as p}from"./openWorld-B4VY6xO7.js";import{a as m,i as h,n as g,t as _}from"./display-CAb_PiGv.js";import{t as v}from"./sentenceCase-CLDiNB0f.js";import{r as y,t as b}from"./sourceHost-BV3t2XDb.js";import{r as x}from"./stepDriver-DwjFet6U.js";import{a as S,i as C,s as w}from"./spokenText-Dy-GZvZV.js";import{d as T,l as E,s as D,u as O}from"./walkSync-D6leFb_u.js";import{n as k}from"./emphasize-BqCIst-B.js";import{c as A,s as j,t as M}from"./validate-MQG0EcTD.js";import{n as N,s as P}from"./receipts-D7zveV-I.js";import{n as F,r as I}from"./value-Dx7DZob4.js";import{t as L}from"./types-DuEbJpIA.js";import{a as R,c as z,d as B,f as V,i as H,l as U,n as W,o as G,r as ee,s as K,t as te,u as ne}from"./offers-eBNj_lSP.js";import{n as re,t as ie}from"./engine-BiM6INsW.js";var q=e(),J=t(),Y=n();function ae(e){return e.kind}var oe=.33,se=.1,ce=.005;function le(e,t){if(!Number.isFinite(e)||!Number.isFinite(t))return`would barely change`;let n=Math.abs(e)>1e-9?Math.abs(e):1,r=(t-e)/n,i=Math.abs(r);if(i<=ce)return`would barely change`;let a=r>0?`rise`:`fall`;return i>=oe?`would ${a} meaningfully`:i>=se?`would ${a} somewhat`:`would ${a} slightly`}var ue=.6;function de(e){if(!Number.isFinite(e))return null;let t=e-1,n=Math.abs(t);if(n<=.005)return null;let r=t>0?`stronger`:`weaker`;return n>=ue?`much ${r}`:n>=oe?r:`slightly ${r}`}var fe=440,pe=2,me=1.25,he=320;function ge(e){if(!(e===void 0||!Number.isFinite(e))){if(e<.995)return`weaker`;if(e>1.005)return`stronger`}}var _e=[{id:`mv-arrow`,cls:`mv-marker-up`,refX:9,size:13,shape:(0,Y.jsx)(`path`,{d:`M0.5 1 L9.5 5 L0.5 9 Z`})},{id:`mv-arrow-damp`,cls:`mv-marker-down`,refX:8,size:17,shape:(0,Y.jsx)(`path`,{d:`M8 0.6 L8 9.4`})},{id:`mv-arrow-open`,cls:`mv-marker-open`,refX:9,size:13,shape:(0,Y.jsx)(`path`,{d:`M1 1.4 L9 5 L1 8.6 Z`})},{id:`mv-arrow-ring`,cls:`mv-marker-ring`,refX:7.4,size:13,shape:(0,Y.jsx)(`circle`,{cx:`5`,cy:`5`,r:`3`})},{id:`mv-dot`,cls:`mv-marker-dot`,refX:5,size:9,shape:(0,Y.jsx)(`circle`,{cx:`5`,cy:`5`,r:`2.6`})}];function ve(){let e=(0,J.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Y.jsx)(`defs`,{children:_e.flatMap(ye)}),e[0]=t):t=e[0],t}function ye(e){return[!1,!0].map(t=>(0,Y.jsx)(`marker`,{id:t?`${e.id}-soft`:e.id,className:`mv-marker ${e.cls}${t?` mv-marker-soft`:``}`,viewBox:`0 0 10 10`,refX:e.refX,refY:`5`,markerUnits:`userSpaceOnUse`,markerWidth:e.size,markerHeight:e.size,orient:`auto`,children:e.shape},t?`${e.id}-soft`:e.id))}function be(e,t){let n=(0,J.c)(5),r;n[0]===e.current?r=n[1]:(r=()=>{let t=e.current;if(!t||window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches)return;let n=t.querySelectorAll(`[data-draw]:not(.m-draw-path):not([data-drawn])`),r=Array.from(n,Se);n.forEach((e,t)=>{let n=r[t];n!==null&&(e.style.setProperty(`--path-len`,`${n}px`),e.style.setProperty(`--delay`,`${fe}ms`),e.classList.add(`m-draw-path`))});let i=xe;return t.addEventListener(`animationend`,i),()=>t.removeEventListener(`animationend`,i)},n[0]=e.current,n[1]=r);let i;n[2]!==t||n[3]!==e?(i=[e,t],n[2]=t,n[3]=e,n[4]=i):i=n[4],(0,q.useEffect)(r,i)}function xe(e){if(e.animationName!==`mavea-draw`)return;let t=e.target;t.classList.remove(`m-draw-path`),t.style.removeProperty(`--path-len`),t.style.removeProperty(`--delay`),t.dataset.drawn=``}function Se(e){return typeof e.getTotalLength==`function`?e.getTotalLength():null}function Ce(e){let t=(0,J.c)(33),{chrome:n,bbox:r,exiting:i,onSettle:a}=e,o=(0,q.useRef)(null);be(o,n.paths);let s=i?``:void 0,c=i?!0:void 0,l=r.w,u=r.h,d=`${r.x} ${r.y} ${r.w} ${r.h}`,f;t[0]===n.bands?f=t[1]:(f=n.bands.map(Te),t[0]=n.bands,t[1]=f);let p;t[2]===n.paths?p=t[3]:(p=n.paths.map(we),t[2]=n.paths,t[3]=p);let m;t[4]!==r.h||t[5]!==r.w||t[6]!==d||t[7]!==f||t[8]!==p?(m=(0,Y.jsxs)(`svg`,{ref:o,className:`mv-chrome-svg`,width:l,height:u,viewBox:d,"aria-hidden":`true`,children:[f,p]}),t[4]=r.h,t[5]=r.w,t[6]=d,t[7]=f,t[8]=p,t[9]=m):m=t[9];let h;if(t[10]!==r.x||t[11]!==r.y||t[12]!==n.bands){let e;t[14]!==r.x||t[15]!==r.y?(e=e=>e.label===void 0?null:(0,Y.jsx)(`div`,{className:`mv-shelf-label`,style:{left:e.x-r.x+12,top:e.y-r.y+12},children:e.label},`${e.id}:label`),t[14]=r.x,t[15]=r.y,t[16]=e):e=t[16],h=n.bands.map(e),t[10]=r.x,t[11]=r.y,t[12]=n.bands,t[13]=h}else h=t[13];let g;if(t[17]!==r.x||t[18]!==r.y||t[19]!==n.labels){let e;t[21]!==r.x||t[22]!==r.y?(e=e=>(0,Y.jsx)(`div`,{className:`mv-chrome-label ${e.className}`,"data-anchor":e.anchor??`start`,style:{left:e.x-r.x,top:e.y-r.y},children:e.text},e.id),t[21]=r.x,t[22]=r.y,t[23]=e):e=t[23],g=n.labels.map(e),t[17]=r.x,t[18]=r.y,t[19]=n.labels,t[20]=g}else g=t[20];let _;t[24]!==g||t[25]!==h?(_=(0,Y.jsxs)(`div`,{className:`mv-chrome-labels`,children:[h,g]}),t[24]=g,t[25]=h,t[26]=_):_=t[26];let v;return t[27]!==a||t[28]!==s||t[29]!==_||t[30]!==c||t[31]!==m?(v=(0,Y.jsxs)(`div`,{className:`mv-chrome`,"data-exiting":s,onTransitionEnd:a,"aria-hidden":c,children:[m,_]}),t[27]=a,t[28]=s,t[29]=_,t[30]=c,t[31]=m,t[32]=v):v=t[32],v}function we(e){return(0,Y.jsx)(`path`,{className:e.className,d:e.d,fill:`none`,"data-draw":e.draw?``:void 0},e.id)}function Te(e){return(0,Y.jsx)(`rect`,{className:`mv-band ${e.className}`,x:e.x,y:e.y,width:e.w,height:e.h,rx:12},e.id)}function Ee(e){if(e instanceof Element)return e.closest(`.mv-node`)?.dataset.id}var De=60;function Oe(e){return[...e.positions.entries()].filter(([,e])=>e.folded!==!0).sort(([e,t],[n,r])=>{let i=Number(t.shelved===!0)-Number(r.shelved===!0);if(i!==0)return i;let a=Math.round(t.y/De)-Math.round(r.y/De);return a===0?t.x-r.x||e.localeCompare(n):a}).map(([e])=>e)}var ke=(0,q.memo)(function(e){let t=(0,J.c)(65),{nodes:n,edges:r,layout:i,exiting:a,settleExit:o,activate:s,lod:c,renderFace:l,onNodeClick:u,onEdgeClick:d,selectedId:f,litEdgeId:p}=e,m=(0,q.useRef)(null);be(m,i.edgePaths);let h;t[0]===i?h=t[1]:(h=Oe(i),t[0]=i,t[1]=h);let g=h,[_,v]=(0,q.useState)(null),y;t[2]!==_||t[3]!==g?(y=_!==null&&g.includes(_)?_:g[0]??null,t[2]=_,t[3]=g,t[4]=y):y=t[4];let b=y,x;t[5]!==g||t[6]!==b?(x=e=>{if(g.length===0)return;let t=b===null?0:g.indexOf(b),n=e===`first`?0:e===`last`?g.length-1:Math.min(g.length-1,Math.max(0,t+e)),r=g[n];v(r),document.querySelector(`.mv-node[data-id="${CSS.escape(r)}"]`)?.focus()},t[5]=g,t[6]=b,t[7]=x):x=t[7];let S=x,C;if(t[8]!==r){C=new Map;for(let e of r)e.label!==void 0&&C.set(e.id,e.label);t[8]=r,t[9]=C}else C=t[9];let w=C,{bbox:T}=i,E;if(t[10]!==r||t[11]!==n){let e=new Map(n.map(je));E=new Map;for(let t of r){let n=e.get(t.from);n!==void 0&&Number.isFinite(n)&&E.set(t.id,n)}t[10]=r,t[11]=n,t[12]=E}else E=t[12];let D=E,O;t[13]!==a||t[14]!==o?(O=a&&(0,Y.jsx)(Ce,{chrome:a.layout.chrome,bbox:a.layout.bbox,exiting:!0,onSettle:()=>o(a.token)},a.token),t[13]=a,t[14]=o,t[15]=O):O=t[15];let k;t[16]!==T||t[17]!==i.chrome||t[18]!==i.rep?(k=(0,Y.jsx)(Ce,{chrome:i.chrome,bbox:T},i.rep),t[16]=T,t[17]=i.chrome,t[18]=i.rep,t[19]=k):k=t[19];let A=T.w,j=T.h,M=`${T.x} ${T.y} ${T.w} ${T.h}`,N;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,Y.jsx)(ve,{}),t[20]=N):N=t[20];let P;if(t[21]!==w||t[22]!==D||t[23]!==i.edgePaths||t[24]!==p||t[25]!==d){let e;t[27]!==w||t[28]!==D||t[29]!==p||t[30]!==d?(e=e=>(0,Y.jsxs)(`g`,{className:`mv-edge-g`,"data-lit":p===e.id?``:void 0,"data-shift":ge(D.get(e.id)),style:D.has(e.id)?{"--mv-shift":D.get(e.id)}:void 0,onClick:d?()=>d(e.id):void 0,children:[w.has(e.id)&&(0,Y.jsx)(`title`,{children:w.get(e.id)}),d&&(0,Y.jsx)(`path`,{className:`mv-edge-hit`,d:e.d,fill:`none`}),(0,Y.jsx)(`path`,{className:e.className,d:e.d,fill:`none`,"data-draw":``,style:e.width===void 0?void 0:{"--mv-edge-w":e.width}})]},e.id),t[27]=w,t[28]=D,t[29]=p,t[30]=d,t[31]=e):e=t[31],P=i.edgePaths.map(e),t[21]=w,t[22]=D,t[23]=i.edgePaths,t[24]=p,t[25]=d,t[26]=P}else P=t[26];let F;t[32]!==T.h||t[33]!==T.w||t[34]!==P||t[35]!==M?(F=(0,Y.jsxs)(`svg`,{ref:m,className:`mv-edges`,width:A,height:j,viewBox:M,"aria-hidden":`true`,children:[N,P]}),t[32]=T.h,t[33]=T.w,t[34]=P,t[35]=M,t[36]=F):F=t[36];let I;if(t[37]!==s||t[38]!==T.x||t[39]!==T.y||t[40]!==i.positions||t[41]!==c||t[42]!==S||t[43]!==n||t[44]!==u||t[45]!==l||t[46]!==b||t[47]!==f){let e;t[49]!==s||t[50]!==T.x||t[51]!==T.y||t[52]!==i.positions||t[53]!==c||t[54]!==S||t[55]!==u||t[56]!==l||t[57]!==b||t[58]!==f?(e=(e,t)=>{let n=i.positions.get(e.id);if(!n)return null;let r={"--nx":`${n.x+n.w/2-T.x}px`,"--ny":`${n.y+n.h/2-T.y}px`,"--mv-i":e.depth??t,...e.shift===void 0?{}:{"--mv-shift":e.shift}},a=u!==void 0&&!n.folded,o=n.folded?void 0:l,d=l?.(e,`entry`);return(0,Y.jsxs)(`div`,{className:`mv-node`,"data-id":e.id,"data-role":e.role,"data-tier":e.tier,"data-domain":e.domain,"data-series":e.series?.length?``:void 0,"data-face":n.face,"data-shelved":n.shelved?``:void 0,"data-folded":n.folded?``:void 0,"data-shift":ge(e.shift),"data-selected":f===e.id?``:void 0,"data-lod":c,style:r,"aria-hidden":n.folded?!0:void 0,role:a?`button`:void 0,tabIndex:a?e.id===b?0:-1:void 0,onFocus:a?()=>v(e.id):void 0,onClick:a?()=>s(e):void 0,onKeyDown:a?t=>{if(t.key===`Enter`||t.key===` `){t.preventDefault(),u?.(e);return}let n={ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1,Home:`first`,End:`last`}[t.key];n!==void 0&&(t.preventDefault(),S(n))}:void 0,children:[(0,Y.jsxs)(`div`,{className:`mv-face mv-face-card`,"aria-hidden":n.face!==`card`||void 0,children:[(0,Y.jsx)(`span`,{className:`mv-label`,children:e.label}),(0,Y.jsxs)(`span`,{className:`mv-card-foot`,children:[e.domain!==void 0&&(0,Y.jsx)(`span`,{className:`mv-domain`,title:e.domain,"aria-label":e.domain}),e.value!==void 0&&(0,Y.jsxs)(`span`,{className:`mv-value`,children:[e.value.toLocaleString(),e.unit??``]}),o?.(e,`card`),e.tier!==void 0&&(0,Y.jsx)(`span`,{className:`mv-tier`,children:e.tier})]})]}),(0,Y.jsx)(`div`,{className:`mv-face mv-face-entry`,"aria-hidden":n.face!==`entry`||void 0,children:(0,Y.jsxs)(`span`,{className:`mv-label`,children:[d,d?` `:null,e.label]})}),(0,Y.jsx)(`div`,{className:`mv-face mv-face-mark`,"aria-hidden":n.face!==`mark`||void 0,children:o?.(e,`mark`)})]},e.id)},t[49]=s,t[50]=T.x,t[51]=T.y,t[52]=i.positions,t[53]=c,t[54]=S,t[55]=u,t[56]=l,t[57]=b,t[58]=f,t[59]=e):e=t[59],I=n.map(e),t[37]=s,t[38]=T.x,t[39]=T.y,t[40]=i.positions,t[41]=c,t[42]=S,t[43]=n,t[44]=u,t[45]=l,t[46]=b,t[47]=f,t[48]=I}else I=t[48];let L;return t[60]!==F||t[61]!==I||t[62]!==O||t[63]!==k?(L=(0,Y.jsxs)(Y.Fragment,{children:[O,k,F,I]}),t[60]=F,t[61]=I,t[62]=O,t[63]=k,t[64]=L):L=t[64],L});function Ae({stage:e,world:t,renderFace:n,onNodeClick:r,onEdgeClick:i,selectedId:a,litEdgeId:o}){let{cam:s,layout:c,exiting:l,lod:u,settleExit:d,morphing:f,settle:p}=e,{viewportRef:m,zoomAtClient:h,pan:g}=s,[_,v]=(0,q.useState)(!1),y=(0,q.useRef)(new Map),b=(0,q.useRef)(0),x=(0,q.useRef)(!1),S=(0,q.useRef)(!1),C=(0,q.useRef)(!1),w=(0,q.useRef)({x:0,y:0}),T=(0,q.useCallback)((t,n,r,i)=>{if(x.current){h(t,n,r);return}e.pinch(t,n,r,i)!==`zoom`&&(x.current=!0)},[e,h]),E=(0,q.useRef)(T);E.current=T,(0,q.useEffect)(()=>{let e=m.current;if(!e)return;let t,n=e=>{if(e.preventDefault(),p(),e.ctrlKey){E.current(Math.exp(-e.deltaY/100),e.clientX,e.clientY,Ee(e.target)),clearTimeout(t),t=setTimeout(()=>{x.current=!1},he);return}h(e.deltaY<0?1.12:1/1.12,e.clientX,e.clientY)};return e.addEventListener(`wheel`,n,{passive:!1}),()=>{clearTimeout(t),e.removeEventListener(`wheel`,n)}},[m,h,p]);let D=()=>{let[e,t]=[...y.current.values()];return{x:(e.x+t.x)/2,y:(e.y+t.y)/2,d:Math.hypot(e.x-t.x,e.y-t.y)}},O=(0,q.useCallback)(e=>{if(p(),y.current.set(e.pointerId,{x:e.clientX,y:e.clientY}),y.current.size>=2){e.currentTarget.setPointerCapture(e.pointerId),S.current=!1,v(!1),b.current=0;return}S.current=!0,C.current=!1,v(!0),w.current={x:e.clientX,y:e.clientY}},[p]),k=(0,q.useRef)({dx:0,dy:0}),A=(0,q.useRef)(0),j=(0,q.useCallback)(()=>{A.current!==0&&(cancelAnimationFrame(A.current),A.current=0);let{dx:e,dy:t}=k.current;(e!==0||t!==0)&&(k.current={dx:0,dy:0},g(e,t))},[g]),M=(0,q.useCallback)((e,t)=>{k.current.dx+=e,k.current.dy+=t,A.current===0&&(A.current=requestAnimationFrame(()=>{A.current=0;let e=k.current;k.current={dx:0,dy:0},(e.dx!==0||e.dy!==0)&&g(e.dx,e.dy)}))},[g]);(0,q.useEffect)(()=>()=>cancelAnimationFrame(A.current),[]);let N=(0,q.useCallback)(e=>{let t=y.current;if(!t.has(e.pointerId))return;if(t.set(e.pointerId,{x:e.clientX,y:e.clientY}),t.size>=2){let{x:t,y:n,d:r}=D();if(b.current===0){b.current=r;return}let i=r/b.current;(i>me||i<1/me)&&(b.current=r,E.current(i,t,n,Ee(e.target)));return}if(!S.current)return;let n=e.clientX-w.current.x,r=e.clientY-w.current.y;Math.abs(n)+Math.abs(r)>pe&&!C.current&&(C.current=!0,e.currentTarget.setPointerCapture(e.pointerId)),w.current={x:e.clientX,y:e.clientY},M(n,r)},[M]),P=(0,q.useCallback)(e=>{j(),y.current.delete(e.pointerId),y.current.size<2&&(b.current=0,x.current=!1),y.current.size===0&&(S.current=!1,v(!1)),e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId)},[j]),F=(0,q.useCallback)(e=>{C.current||r?.(e)},[r]),I=(0,q.useCallback)(e=>{e.propertyName===`transform`&&p()},[p]),{bbox:L}=c,R={transform:s.transform,width:L.w,height:L.h,"--mv-cam-scale":s.camera.scale};return(0,Y.jsx)(`div`,{className:`mv-viewport`,ref:m,"data-panning":_?`true`:void 0,style:{"--mv-cam-scale":s.camera.scale},onPointerDown:O,onPointerMove:N,onPointerUp:P,onPointerCancel:P,children:(0,Y.jsx)(`div`,{className:`mv-world`,style:R,"data-morphing":f?``:void 0,onTransitionEnd:I,children:(0,Y.jsx)(ke,{nodes:t.nodes,edges:t.edges,layout:c,exiting:l,settleExit:d,activate:F,lod:u,renderFace:n,onNodeClick:r,onEdgeClick:i,selectedId:a,litEdgeId:o})})})}function je(e){return[e.id,e.shift]}function Me(e,t){return e===`in`?`zoom-camera`:t?`ascend`:`zoom-camera`}var Ne={graph:{chip:`Graph`,caption:`What caused what`,legend:`Left to right is what led to what. Colour is the direction of the push; thickness is how much of the outcome the link explains.`},flow:{chip:`Contribution`,caption:`How much each one contributed`,legend:`Ribbon thickness is how much of the outcome that link was MEASURED to explain. A cause whose links carry no measured share is held aside rather than drawn thin, which would read as a finding nobody made.`},timeline:{chip:`Over time`,caption:`The same causes, in time`,legend:`Left to right is WHEN, read against the axis below; a bar is how long a cause lasted. Height only keeps entries from overlapping — it means nothing.`},spheres:{chip:`Spheres`,caption:`What kinds of force`,legend:`Each lane is a sphere the causes belong to. A link that CHANGES lane is a handoff between kinds of force and is drawn at full weight; one that stays inside a lane goes faint. A cause the answer put in no single sphere is held aside rather than filed under one it does not belong to.`},chart:{chip:`As a chart`,caption:`How much each one moved`,legend:`Each mark is a cause plotted against its own measured history. Causes with nothing measured are held aside rather than drawn at zero.`}},Pe={min:ne,max:2.2},Fe=56,Ie=1300,Le=1300,X=.7,Re=120,ze=120,Be={graph:K,timeline:R,chart:U,flow:z,spheres:G},Ve=e=>({x:0,y:0,w:e.w,h:e.h}),He=(e,t,n)=>[t-e.x,n-e.y];function Ue(e,t,n){let r=e.positions.get(t);if(!r)return null;let i=r.x,a=r.y,o=r.x+r.w,s=r.y+r.h;for(let r of n.get(t)??[]){let t=e.positions.get(r);!t||t.folded||(i=Math.min(i,t.x),a=Math.min(a,t.y),o=Math.max(o,t.x+t.w),s=Math.max(s,t.y+t.h))}let[c,l]=He(e.bbox,i-Re,a-Re);return{x:c,y:l,w:o-i+240,h:s-a+240}}function We(e){let{world:t,onAscend:n,driverId:r,insetBottom:i}=e,[a,o]=(0,q.useState)(e.initialRep??`graph`),[s,c]=(0,q.useState)(()=>new Set),[d,f]=(0,q.useState)(null),p=u({clamp:Pe,margin:Fe,...i===void 0?{}:{insetBottom:i}}),m=(0,q.useRef)(void 0),{viewport:h}=p,g=(0,q.useMemo)(()=>h?{w:Math.max(1,h.w-112),h:Math.max(1,h.h-112)}:void 0,[h]),_=(0,q.useMemo)(()=>Be[a](t,{expandedIds:s,previous:m.current,...g?{viewport:g}:{}}),[a,t,s,g]);(0,q.useEffect)(()=>{let e=new Map;for(let[t,n]of _.positions)e.set(t,{x:n.x,y:n.y});m.current=e},[_]);let v=(0,q.useRef)(a);v.current=a;let y=(0,q.useRef)(_);y.current=_;let b=(0,q.useRef)(p.camera);b.current=p.camera;let S=(0,q.useRef)(s);S.current=s;let C=(0,q.useRef)(n);C.current=n;let[w,T]=(0,q.useState)(null),{endFlight:E}=p,D=(0,q.useCallback)(()=>{T({layout:y.current,rep:v.current,expandedIds:S.current}),E()},[E]),O=(0,q.useRef)(0),k=(0,q.useRef)(void 0);(0,q.useEffect)(()=>()=>clearTimeout(k.current),[]);let A=(0,q.useCallback)(e=>{if(e===v.current)return;let t=++O.current;f({layout:y.current,token:t}),clearTimeout(k.current),k.current=setTimeout(()=>{t===O.current&&f(null)},Ie),v.current=e,o(e)},[]),j=(0,q.useCallback)(e=>{e===O.current&&(clearTimeout(k.current),f(null))},[]),M=(0,q.useRef)(null),N=(0,q.useCallback)(e=>{let t=new Set(S.current);t.delete(e)||(t.add(e),U.current(e)&&(M.current=e)),c(t)},[]),P=(0,q.useMemo)(()=>{let e=new Map;for(let n of t.nodes){if(n.parentId===void 0)continue;let t=e.get(n.parentId);t?t.push(n.id):e.set(n.parentId,[n.id])}return e},[t]),{fitTo:F,setCamera:I,viewportRef:L}=p;(0,q.useEffect)(()=>{let e=M.current;if(M.current=null,e!==null){let t=Ue(_,e,P);if(t){F(t);return}}F(Ve(_.bbox))},[_,P,F,I,L]);let R=(0,q.useMemo)(()=>new Map(t.nodes.map(e=>[e.id,e.parentId])),[t]),z=(0,q.useMemo)(()=>{let e=new Set;for(let t of R.values())t!==void 0&&e.add(t);return e},[R]),B=(0,q.useCallback)(e=>{let t=0,n=e,r=new Set;for(;n!==void 0&&!r.has(n);)r.add(n),n=R.get(n),n!==void 0&&(t+=1);return t},[R]),V=a===`graph`,H=(0,q.useCallback)(e=>{if(!V)return!1;let t=_.positions.get(e);return t===void 0||t.folded===!0||t.shelved===!0?!1:B(e)+1<=2},[V,_,B]),U=(0,q.useRef)(H);U.current=H;let{zoomAtClient:W}=p,G=(0,q.useCallback)((e,t,n,r)=>{if(e>=1)return r!==void 0&&z.has(r)&&!S.current.has(r)&&U.current(r)?(N(r),`expand`):(W(e,t,n),`zoom`);let i=L.current?.getBoundingClientRect();if(Me(`out`,!!i&&(i.width>0||i.height>0)&&l(b.current,Ve(y.current.bbox),{w:i.width,h:i.height},Fe,Pe))===`zoom-camera`)return W(e,t,n),`zoom`;let a=[...S.current];if(a.length>0){let e=a[0],t=B(e);for(let n of a){let r=B(n);r>t&&(e=n,t=r)}return N(e),`collapse`}return C.current?.(),`ascend`},[z,N,W,L,B]),ee=(0,q.useCallback)(e=>{let t=y.current,n=e===null?void 0:t.positions.get(e);if(!n||n.folded){F(Ve(t.bbox));return}let[r,i]=He(t.bbox,n.x-ze,n.y-ze);F({x:r,y:i,w:n.w+240,h:n.h+240})},[F]);(0,q.useEffect)(()=>{if(r!==void 0)return x(r,{count:te.length,setIndex:e=>A(te[Math.min(te.length-1,Math.max(0,Math.trunc(e)))]),spokenFor:()=>void 0,captionFor:e=>{let t=te[e];return t?Ne[t].caption:void 0}})},[r,A]);let K=w?.layout!==_||p.flying;return(0,q.useEffect)(()=>{if(!K)return;let e=setTimeout(D,Le);return()=>clearTimeout(e)},[K,_,D]),{rep:a,setRep:A,layout:_,exiting:d,settleExit:j,expandedIds:s,toggleExpand:N,expandable:z,unfoldsOnStage:H,cam:p,morphing:K,settle:D,lod:p.camera.scale>=X?`near`:`far`,pinch:G,focusNode:ee}}function Ge({label:e,min:t,max:n,step:r=1,value:i,onChange:a,format:o,color:s=`var(--presence)`}){let c=n-t||1,l=(i-t)/c*100;return(0,Y.jsxs)(`label`,{className:`viz-ctl`,style:{"--ctl-c":s,"--ctl-pct":l+`%`},children:[(0,Y.jsx)(`span`,{className:`viz-ctl-label`,children:e}),(0,Y.jsx)(`input`,{type:`range`,className:`viz-ctl-range`,min:t,max:n,step:r,value:i,"aria-label":e,onChange:e=>a(Number(e.target.value))}),(0,Y.jsx)(`span`,{className:`viz-ctl-val tab-num`,children:o?o(i):i.toLocaleString()})]})}var Ke=`No cause is established yet, so there is nothing to push on.`;function qe(e){let t=(0,J.c)(17),{levers:n,onSet:r,onReset:i}=e,a;t[0]===n?a=t[1]:(a=n.every(Je),t[0]=n,t[1]=a);let o=a,s;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`h3`,{className:`tr-sec-title`,children:`WHAT IF`}),t[2]=s):s=t[2];let c;t[3]!==i||t[4]!==o?(c=(0,Y.jsxs)(`div`,{className:`tr-levers-head`,children:[s,(0,Y.jsx)(`button`,{type:`button`,className:`tr-reset`,onClick:i,disabled:o,children:`Reset`})]}),t[3]=i,t[4]=o,t[5]=c):c=t[5];let l;t[6]===n.length?l=t[7]:(l=n.length===0&&(0,Y.jsx)(`p`,{className:`tr-levers-empty`,children:Ke}),t[6]=n.length,t[7]=l);let u;if(t[8]!==n||t[9]!==r){let e;t[11]===r?e=t[12]:(e=e=>(0,Y.jsx)(Ge,{label:e.label,min:0,max:100,value:e.pct,onChange:t=>r(e.id,t),format:Z},e.id),t[11]=r,t[12]=e),u=n.map(e),t[8]=n,t[9]=r,t[10]=u}else u=t[10];let d;return t[13]!==c||t[14]!==l||t[15]!==u?(d=(0,Y.jsxs)(`div`,{className:`tr-levers`,children:[c,l,u]}),t[13]=c,t[14]=l,t[15]=u,t[16]=d):d=t[16],d}function Z(e){return`${e}%`}function Je(e){return e.pct===100}var Ye=(0,q.memo)(qe),Xe=(0,q.createContext)(null);function Ze(){return(0,q.useContext)(Xe)}function Qe(e){let t=(0,J.c)(19),{id:n,className:r}=e,i=Ze(),a,o,s,c,l,u;if(t[0]!==r||t[1]!==n||t[2]!==i){u=Symbol.for(`react.early_return_sentinel`);bb0:{let e=i?.registry.values.get(n);if(!e){u=null;break bb0}let d=`tr-num`+(r?` ${r}`:``);if(e.kind===`structure`){u=(0,Y.jsx)(`span`,{className:`${d} tr-num-qual`,"data-status":`structure`,children:e.resolution.raw});break bb0}a=`button`,o=d,s=ae(e),t[9]!==n||t[10]!==i?(c=e=>i?.open(n,e.currentTarget),t[9]=n,t[10]=i,t[11]=c):c=t[11],l=h(e)}t[0]=r,t[1]=n,t[2]=i,t[3]=a,t[4]=o,t[5]=s,t[6]=c,t[7]=l,t[8]=u}else a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8];if(u!==Symbol.for(`react.early_return_sentinel`))return u;let d;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Y.jsx)(`span`,{className:`tr-sr`,children:`, source available`}),t[12]=d):d=t[12];let f;return t[13]!==a||t[14]!==o||t[15]!==s||t[16]!==c||t[17]!==l?(f=(0,Y.jsxs)(`button`,{type:a,className:o,"data-status":s,onClick:c,children:[l,d]}),t[13]=a,t[14]=o,t[15]=s,t[16]=c,t[17]=l,t[18]=f):f=t[18],f}var Q=8,$e=6;function et(e,t,n){return Math.max(Q,Math.min(e,n-t-Q))}function tt(e,t,n){if(!(e.width>0||e.height>0||e.left>0||e.top>0))return{left:et((n.w-t.w)/2,t.w,n.w),top:et((n.h-t.h)/2,t.h,n.h)};let r=e.bottom+$e,i=e.top-$e-t.h,a=r+t.h+Q>n.h&&i>=Q;return{left:et(e.left,t.w,n.w),top:et(a?i:r,t.h,n.h)}}var $=320,nt=340,rt=8;function it(e){let t=(0,J.c)(64),{registry:n,valueId:r,anchorRect:i,trail:a,hinted:o,onMarkHinted:s,onDrill:l,onBack:u,onNavigate:d,onDismiss:f}=e,p=(0,q.useRef)(null),v;t[0]===f?v=t[1]:(v={onEscape:f},t[0]=f,t[1]=v),c(p,v);let[x]=(0,q.useState)(!o),S,C;t[2]===s?(S=t[3],C=t[4]):(S=()=>s(),C=[s],t[2]=s,t[3]=S,t[4]=C),(0,q.useEffect)(S,C);let w=(0,q.useRef)(!0),T;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(T=()=>{w.current||p.current?.focus({preventScroll:!0}),w.current=!1},t[5]=T):T=t[5];let E;t[6]===r?E=t[7]:(E=[r],t[6]=r,t[7]=E),(0,q.useEffect)(T,E);let D,O;t[8]===f?(D=t[9],O=t[10]):(D=()=>{let e=e=>{let t=p.current;t&&e.target instanceof Node&&!t.contains(e.target)&&f()};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},O=[f],t[8]=f,t[9]=D,t[10]=O),(0,q.useEffect)(D,O);let k=n.values,A,j,M,N,P,F,I,L,R,z,B,V,H,U;if(t[11]!==i||t[12]!==u||t[13]!==l||t[14]!==d||t[15]!==n.usedIn||t[16]!==n.values||t[17]!==a||t[18]!==r){V=Symbol.for(`react.early_return_sentinel`);bb0:{if(U=k.get(r),!U){V=null;break bb0}let e=ae(U),o=U.scope,s=n.usedIn.get(r)??[],c=U.kind===`grounded`?U.resolution.receipt:null,f=U.kind===`grounded`&&U.resolution.tier===`T1`,v=c?.url?y(c.url):null,x=c?c.host??(c.url?b(c.url):null):null,S=U.kind===`calculated`?U.calc.inputs:[],C=S.slice(0,rt),w=S.length-C.length,T;t[33]!==n.values||t[34]!==a?(T=a.length>0?n.values.get(a[a.length-1]):void 0,t[33]=n.values,t[34]=a,t[35]=T):T=t[35];let E=T,D;t[36]===i?D=t[37]:(D=tt(i,{w:$,h:nt},{w:window.innerWidth,h:window.innerHeight}),t[36]=i,t[37]=D);let{left:O,top:W}=D;H=p,A=`tr-card`,j=`dialog`,M=`false`,N=`Where ${U.label} came from`,P=-1,t[38]!==O||t[39]!==W?(F={left:O,top:W,width:$,maxHeight:nt},t[38]=O,t[39]=W,t[40]=F):F=t[40];let G;t[41]!==u||t[42]!==E?(G=E&&(0,Y.jsxs)(`button`,{type:`button`,className:`tr-back`,onClick:u,"aria-label":`Back to ${E.label}`,children:[`‹ back`,(0,Y.jsxs)(`span`,{className:`tr-back-to`,children:[` to `,E.label]})]}),t[41]=u,t[42]=E,t[43]=G):G=t[43],I=(0,Y.jsxs)(`header`,{className:`tr-head`,children:[G,(0,Y.jsx)(`span`,{className:`tr-badge`,"data-status":e,children:_[e]}),(0,Y.jsx)(`p`,{className:`tr-figure`,children:h(U)}),(0,Y.jsx)(`p`,{className:`tr-label`,children:U.label})]}),L=c&&(0,Y.jsxs)(`section`,{className:`tr-sec`,children:[(0,Y.jsx)(`h3`,{className:`tr-sec-title`,children:`SOURCE`}),c.quote&&(0,Y.jsxs)(`blockquote`,{className:`tr-quote`,children:[`“`,c.quote,`”`]}),f?(0,Y.jsx)(`p`,{className:`tr-host`,children:m(c)}):x&&(0,Y.jsxs)(`p`,{className:`tr-host`,children:[v?(0,Y.jsx)(`a`,{href:v,target:`_blank`,rel:`noreferrer noopener`,children:x}):x,c.date&&(0,Y.jsxs)(`span`,{className:`tr-date`,children:[` · `,c.date]})]})]}),R=o&&(o.region||o.period||o.unit)&&(0,Y.jsxs)(`section`,{className:`tr-sec`,children:[(0,Y.jsx)(`h3`,{className:`tr-sec-title`,children:`SCOPE`}),(0,Y.jsx)(`p`,{className:`tr-chips`,children:[o.region,o.period,o.unit].filter(ot).map(at)})]}),z=U.kind===`calculated`&&(0,Y.jsxs)(`section`,{className:`tr-sec`,children:[(0,Y.jsx)(`h3`,{className:`tr-sec-title`,children:`CALCULATION`}),(0,Y.jsx)(`p`,{className:`tr-formula`,children:g(U.calc.formula,e=>n.values.get(e)?.label)}),(0,Y.jsx)(`ul`,{className:`tr-inputs`,children:C.map(e=>{let t=n.values.get(e);return(0,Y.jsx)(`li`,{children:t?(0,Y.jsxs)(`button`,{type:`button`,className:`tr-input`,onClick:()=>l(e),children:[(0,Y.jsx)(`span`,{className:`tr-input-label`,children:t.label}),(0,Y.jsx)(`span`,{className:`tr-input-val`,children:h(t)})]}):(0,Y.jsx)(`span`,{className:`tr-input tr-input-missing`,children:e})},e)})}),w>0&&(0,Y.jsxs)(`p`,{className:`tr-more`,children:[`…and `,w,` more`]}),U.calc.note&&(0,Y.jsx)(`p`,{className:`tr-note`,children:U.calc.note})]}),B=s.length>0&&(0,Y.jsxs)(`section`,{className:`tr-sec`,children:[(0,Y.jsx)(`h3`,{className:`tr-sec-title`,children:`USED IN`}),(0,Y.jsx)(`ul`,{className:`tr-used`,children:s.map(e=>(0,Y.jsx)(`li`,{children:d?(0,Y.jsx)(`button`,{type:`button`,className:`tr-usedin`,onClick:()=>d(e),children:e.label}):(0,Y.jsx)(`span`,{className:`tr-usedin tr-usedin-flat`,children:e.label})},`${e.surface}:${e.id}:${e.label}`))})]})}t[11]=i,t[12]=u,t[13]=l,t[14]=d,t[15]=n.usedIn,t[16]=n.values,t[17]=a,t[18]=r,t[19]=A,t[20]=j,t[21]=M,t[22]=N,t[23]=P,t[24]=F,t[25]=I,t[26]=L,t[27]=R,t[28]=z,t[29]=B,t[30]=V,t[31]=H,t[32]=U}else A=t[19],j=t[20],M=t[21],N=t[22],P=t[23],F=t[24],I=t[25],L=t[26],R=t[27],z=t[28],B=t[29],V=t[30],H=t[31],U=t[32];if(V!==Symbol.for(`react.early_return_sentinel`))return V;let W;t[44]!==U.kind||t[45]!==U.resolution?(W=U.kind===`illustrative`&&(0,Y.jsxs)(`p`,{className:`tr-caveat`,children:[`Illustrative — shows the shape, not a measured fact. `,U.resolution.illustrative]}),t[44]=U.kind,t[45]=U.resolution,t[46]=W):W=t[46];let G;t[47]===x?G=t[48]:(G=x&&(0,Y.jsx)(`p`,{className:`tr-hint`,children:`Any figure like this one opens its own receipt.`}),t[47]=x,t[48]=G);let ee;return t[49]!==A||t[50]!==j||t[51]!==M||t[52]!==N||t[53]!==P||t[54]!==F||t[55]!==I||t[56]!==L||t[57]!==R||t[58]!==z||t[59]!==B||t[60]!==W||t[61]!==G||t[62]!==H?(ee=(0,Y.jsxs)(`div`,{ref:H,className:A,role:j,"aria-modal":M,"aria-label":N,tabIndex:P,style:F,children:[I,L,R,z,B,W,G]}),t[49]=A,t[50]=j,t[51]=M,t[52]=N,t[53]=P,t[54]=F,t[55]=I,t[56]=L,t[57]=R,t[58]=z,t[59]=B,t[60]=W,t[61]=G,t[62]=H,t[63]=ee):ee=t[63],ee}function at(e){return(0,Y.jsx)(`span`,{className:`tr-chip`,children:e},e)}function ot(e){return!!e}function st(e){let t=(0,J.c)(23),{registry:n,onNavigate:r,children:i,ref:a}=e,[o,s]=(0,q.useState)(null),[c,l]=(0,q.useState)(!1),u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>s(null),t[0]=u):u=t[0];let d;t[1]===n?d=t[2]:(d=[n],t[1]=n,t[2]=d),(0,q.useEffect)(u,d);let f;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(f=()=>s(null),t[3]=f):f=t[3];let p=f,m,h;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(m=()=>({dismiss:p}),h=[p],t[4]=m,t[5]=h):(m=t[4],h=t[5]),(0,q.useImperativeHandle)(a,m,h);let g;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(g=(e,t)=>{t.focus(),s({valueId:e,anchorRect:t.getBoundingClientRect(),trail:[]})},t[6]=g):g=t[6];let _=g,v;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(v=()=>l(!0),t[7]=v):v=t[7];let y=v,b;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(b=e=>{s(t=>t&&{valueId:e,anchorRect:t.anchorRect,trail:[...t.trail,t.valueId]})},t[8]=b):b=t[8];let x=b,S;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(S=()=>{s(ct)},t[9]=S):S=t[9];let C=S,w;t[10]!==c||t[11]!==r||t[12]!==n?(w={registry:n,open:_,onNavigate:r,hinted:c,markHinted:y},t[10]=c,t[11]=r,t[12]=n,t[13]=w):w=t[13];let T=w,E;t[14]!==o||t[15]!==c||t[16]!==r||t[17]!==n?(E=o&&(0,Y.jsx)(it,{registry:n,valueId:o.valueId,anchorRect:o.anchorRect,trail:o.trail,hinted:c,onMarkHinted:y,onDrill:x,onBack:C,onNavigate:r,onDismiss:p}),t[14]=o,t[15]=c,t[16]=r,t[17]=n,t[18]=E):E=t[18];let D;return t[19]!==i||t[20]!==E||t[21]!==T?(D=(0,Y.jsxs)(Xe.Provider,{value:T,children:[i,E]}),t[19]=i,t[20]=E,t[21]=T,t[22]=D):D=t[22],D}function ct(e){let t=e?.trail[e.trail.length-1];return!e||t===void 0?e:{valueId:t,anchorRect:e.anchorRect,trail:e.trail.slice(0,-1)}}var lt=`Recomputed locally from the causes above — a model of what would happen, never an observation.`,ut=`What was actually measured. This column never moves when a lever is pulled.`;function dt(e,t){return(e>0?`+`:``)+d(e,t)}function ft(e){return e!==null&&Number.isFinite(e)&&e>=0&&e<=1}function pt(e){return e.exactBase===null?`nothing measured stands behind this outcome`:`not every step is grounded, so the total stays unmeasured`}function mt(e){let t=(0,J.c)(22),{baseline:n,current:r,unit:i,active:a,observedNote:o}=e,s;t[0]!==n.exactBase||t[1]!==n.fullyGrounded||t[2]!==i?(s=n.fullyGrounded&&n.exactBase!==null?d(n.exactBase,i):null,t[0]=n.exactBase,t[1]=n.fullyGrounded,t[2]=i,t[3]=s):s=t[3];let c=s,l=r.exactBase??n.exactBase,u=a?`1`:void 0,f;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,Y.jsx)(`span`,{className:`tr-chip tr-wi-chip`,title:ut,children:`OBSERVED`}),t[4]=f):f=t[4];let p;t[5]!==n||t[6]!==c||t[7]!==o?(p=(0,Y.jsxs)(`div`,{className:`tr-wi-col`,children:[f,c===null?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`p`,{className:`tr-wi-figure tr-wi-dash`,children:`—`}),(0,Y.jsx)(`p`,{className:`tr-wi-note tr-wi-why`,children:o??pt(n)})]}):(0,Y.jsx)(`p`,{className:`tr-wi-figure`,children:c})]}),t[5]=n,t[6]=c,t[7]=o,t[8]=p):p=t[8];let m;t[9]!==a||t[10]!==l||t[11]!==r.exactDelta||t[12]!==r.explainedPct||t[13]!==r.fullyGrounded||t[14]!==r.relBase||t[15]!==r.relCur||t[16]!==i?(m=a&&(0,Y.jsxs)(`div`,{className:`tr-wi-col tr-wi-hypo`,"data-world":`hypothetical`,children:[(0,Y.jsx)(`span`,{className:`tr-chip tr-wi-chip tr-wi-chip-hypo`,title:lt,children:`HYPOTHETICAL (MODELED)`}),r.fullyGrounded&&l!==null&&r.exactDelta!==null?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`p`,{className:`tr-wi-figure`,children:d(l+r.exactDelta,i)}),(0,Y.jsx)(`p`,{className:`tr-wi-delta`,children:dt(r.exactDelta,i)}),ft(r.explainedPct)&&(0,Y.jsxs)(`p`,{className:`tr-wi-note`,children:[Math.round(r.explainedPct*100),`% explained`]})]}):r.relCur===null?(0,Y.jsx)(`p`,{className:`tr-wi-figure tr-wi-dash`,children:`—`}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`p`,{className:`tr-wi-figure tr-wi-phrase`,children:le(r.relBase??0,r.relCur)}),(0,Y.jsx)(`p`,{className:`tr-wi-note`,children:`relative, not measured`})]})]}),t[9]=a,t[10]=l,t[11]=r.exactDelta,t[12]=r.explainedPct,t[13]=r.fullyGrounded,t[14]=r.relBase,t[15]=r.relCur,t[16]=i,t[17]=m):m=t[17];let h;return t[18]!==u||t[19]!==p||t[20]!==m?(h=(0,Y.jsxs)(`div`,{className:`tr-wi`,"data-active":u,children:[p,m]}),t[18]=u,t[19]=p,t[20]=m,t[21]=h):h=t[21],h}var ht=(0,q.memo)(mt);function gt(e){return{id:e.id,label:e.label,role:e.role,depth:e.depth,tier:e.tier,...e.value===void 0?{}:{value:e.value},...e.unit?{unit:e.unit}:{},...e.receipt?{receipt:e.receipt}:{}}}function _t(e){let t=e.receipts?.[0]??e.receipt;return{from:e.from,to:e.to,sign:e.sign,tier:e.tier,...e.verb?{verb:e.verb}:{},...e.weight===void 0?{}:{weight:e.weight},...t&&!e.provisional?{receipt:t}:{},...e.provisional?{provisional:!0}:{}}}function vt(e){return{center:e.title,outcomeId:e.outcomeId,nodes:e.nodes.map(gt),edges:e.edges.map(_t),provenance:{...e.provenance.illustrative?{illustrative:!0}:{},...e.provenance.notes?.length?{notes:e.provenance.notes}:{}}}}var yt=e=>`node:${e}`,bt=(e,t)=>`node:${e}@${t}`;function xt(e,t){let n=e.provenance.illustrative===!0,r=[],i=[],a=[],o=new Map,s=[],c=new Map,l=(e,t,n)=>{!e||o.has(e.id)||(o.set(e.id,e),s.push(t),i.push(n))},u=(e,t)=>{c.set(e.id,e.label),r.push({id:e.id,label:e.label,role:e.role,...e.detail===void 0?{}:{detail:e.detail},...e.domain===void 0?{}:{domain:e.domain},...t===void 0?{}:{parentId:t}});let i=e.series,a=e.unit??i?.unit,o=t=>({valueId:t,surface:`node`,id:e.id,label:e.label});if(e.value!==void 0){let t=yt(e.id);l(F(t,e.label,e.value,e.tier,a,e.receipt,n),o(t),{valueId:t,entityId:e.id})}if(i)for(let t of i.points){let r=bt(e.id,t.t),a=F(r,`${e.label} · ${t.t}`,t.value,i.tier,i.unit,t.receipt??i.receipt,n,t.t);l(a,o(r),{valueId:r,entityId:e.id,at:t.t})}for(let t of e.children??[])u(t,e.id)};for(let t of e.nodes)u(t);return B(e.edges).forEach((e,n)=>{let r=`${c.get(e.from)??e.from} ${e.verb??`→`} ${c.get(e.to)??e.to}`,i=t.edges[n]?.id;if(i!==void 0){a.push({id:i,from:e.from,to:e.to,...e.relation===void 0?{}:{kind:e.relation},...e.sign===void 0?{}:{sign:e.sign},...e.weight===void 0?{}:{weight:e.weight}});for(let t of[e.from,e.to])s.push({valueId:yt(t),surface:`edge`,id:i,label:r})}}),{title:e.title,entities:r,relations:a,facts:i,trust:I(o,s),outcomeId:e.outcomeId,...n?{illustrative:n}:{}}}var St=1100;function Ct(e,t,n,r){let i=!1,a=e=>{i||(i=!0,r(e))};(async()=>{for(let r=Math.max(0,t);r<e.length;r++){let t=e[r];if(!t)continue;if(n.isCancelled()){a(`cancelled`);return}let i=E(t.say),o=n.speakLine?.(t.say)??null,s=o?await T(o):!1;if(n.isCancelled()){a(`cancelled`);return}n.apply(t,r),o&&s?await O(o,i,St):await D(i)}a(n.isCancelled()?`cancelled`:`complete`)})()}function wt({beats:e,apply:t,speakLine:n}){let[r,i]=(0,q.useState)(-1),[a,o]=(0,q.useState)(!1),s=(0,q.useRef)(0),c=(0,q.useRef)(e);c.current=e;let l=(0,q.useRef)(t);l.current=t;let u=(0,q.useRef)(n);u.current=n;let d=(0,q.useCallback)(()=>{s.current+=1,o(!1)},[]),f=(0,q.useCallback)(e=>{let t=s.current+=1;o(!0),Ct(c.current,e,{speakLine:e=>u.current?.(e)??null,apply:(e,t)=>{i(t),l.current(e,t)},isCancelled:()=>s.current!==t},()=>{s.current===t&&o(!1)})},[]);(0,q.useEffect)(()=>()=>void(s.current+=1),[]),(0,q.useEffect)(()=>{s.current+=1,o(!1),i(-1)},[e]);let p=(0,q.useCallback)(()=>{if(a){d();return}let e=c.current.length;e!==0&&f(r>=0&&r<e-1?r:0)},[a,r,f,d]),m=(0,q.useCallback)(e=>{let t=c.current.length;t!==0&&f(Math.min(Math.max(e,0),t-1))},[f]),h=(0,q.useCallback)(()=>{d(),i(-1)},[d]);return{index:r,playing:a,caption:r>=0?e[r]?.caption??null:null,toggle:p,seek:m,reset:h}}function Tt(e){let t=(0,J.c)(33),{count:n,index:r,playing:i,caption:a,expanded:o,onToggle:s,onSeek:c,inviting:l}=e;if(n===0)return null;let u=Math.min(Math.max(r,-1),n-1),d=i?``:void 0,f=o?``:void 0,p=`${o?108:54}px`,m;t[0]===p?m=t[1]:(m={"--wo-transport-h":p},t[0]=p,t[1]=m);let h=m,g=l&&!i?``:void 0,_=i?`Pause the walkthrough`:`Walk me through it`,v=i?`❙❙`:`▶`,y;t[2]===v?y=t[3]:(y=(0,Y.jsx)(`span`,{className:`wo-play-glyph`,"aria-hidden":`true`,children:v}),t[2]=v,t[3]=y);let b=i?`Pause`:`Walk me through it`,x;t[4]===b?x=t[5]:(x=(0,Y.jsx)(`span`,{className:`wo-play-label`,children:b}),t[4]=b,t[5]=x);let S;t[6]!==s||t[7]!==x||t[8]!==g||t[9]!==_||t[10]!==y?(S=(0,Y.jsxs)(`button`,{type:`button`,className:`wo-play`,"data-inviting":g,onClick:s,"aria-label":_,children:[y,x]}),t[6]=s,t[7]=x,t[8]=g,t[9]=_,t[10]=y,t[11]=S):S=t[11];let C;t[12]!==l||t[13]!==i?(C=l&&!i&&(0,Y.jsx)(`span`,{className:`wo-play-aside`,children:`or press any cause`}),t[12]=l,t[13]=i,t[14]=C):C=t[14];let w;t[15]!==u||t[16]!==n||t[17]!==o||t[18]!==c?(w=o&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`div`,{className:`wo-track`,role:`group`,"aria-label":`Walkthrough beats`,children:Array.from({length:n},(e,t)=>(0,Y.jsx)(`button`,{type:`button`,className:`wo-tick`,"data-state":t<u?`past`:t===u?`now`:`ahead`,onClick:()=>c(t),"aria-label":`Beat ${t+1} of ${n}`,"aria-current":t===u?`step`:void 0},t))}),(0,Y.jsxs)(`span`,{className:`wo-transport-count`,"aria-hidden":`true`,children:[u<0?n:u+1,`/`,n]})]}),t[15]=u,t[16]=n,t[17]=o,t[18]=c,t[19]=w):w=t[19];let T;t[20]!==S||t[21]!==C||t[22]!==w?(T=(0,Y.jsxs)(`div`,{className:`wo-transport-row`,children:[S,C,w]}),t[20]=S,t[21]=C,t[22]=w,t[23]=T):T=t[23];let E;t[24]!==a||t[25]!==o?(E=o&&(0,Y.jsx)(`p`,{className:`wo-caption`,"aria-live":`polite`,children:a===null?``:k(a)}),t[24]=a,t[25]=o,t[26]=E):E=t[26];let D;return t[27]!==d||t[28]!==T||t[29]!==E||t[30]!==f||t[31]!==h?(D=(0,Y.jsxs)(`div`,{className:`wo-transport`,"data-playing":d,"data-open":f,style:h,children:[T,E]}),t[27]=d,t[28]=T,t[29]=E,t[30]=f,t[31]=h,t[32]=D):D=t[32],D}var Et=170,Dt={contributes:`fed by`,causes:`driven by`,dampens:`held back by`,enables:`made possible by`,correlates:`moving together with`},Ot={1:`pushed up by`,[-1]:`pushed down by`};function kt(e){let t=e.split(` `,1)[0]??``;return t.length===0||/[A-Z]/.test(t.slice(1))?e:e[0].toLowerCase()+e.slice(1)}var At={graph:`And that is how the causes fit together.`,timeline:`And here are the same causes, in time.`,chart:`And here is what each one actually measured.`,flow:`And here is how much each one contributed.`,spheres:`And here are the kinds of force it is made of.`};function jt(e,t){let n=e.values.get(yt(t));if(!n||n.kind===`structure`)return null;let r=h(n);return n.kind===`illustrative`?{say:`Illustratively, about ${r}.`,shown:`Illustratively, about ${r}.`}:{say:`Measured at ${r}.`,shown:`Measured at ${r}.`}}function Mt(e){return e.kind?e.kind===`dampens`||e.kind===`enables`||e.kind===`correlates`:e.sign===-1}function Nt(e){return e.kind&&Dt[e.kind]?Dt[e.kind]:Ot[e.sign??1]??`fed by`}function Pt(e){let t=e.nodes.filter(e=>e.parentId===void 0),n=new Set(t.map(e=>e.id)),r=e.edges.filter(e=>n.has(e.from)&&n.has(e.to)),i=new Map(t.map(e=>[e.id,e.depth??0])),a=new Map;for(let e of r)a.set(e.from,(a.get(e.from)??0)+(e.weight??0));let o=new Map(t.map(e=>[e.id,0]));for(let e of r)o.set(e.to,(o.get(e.to)??0)+1);let s=(e,t)=>(i.get(e)??0)-(i.get(t)??0)||(a.get(t)??0)-(a.get(e)??0)||(e<t?-1:+(e>t)),c=t.filter(e=>o.get(e.id)===0).map(e=>e.id),l=[],u=new Set;for(;c.length>0;){c.sort(s);let e=c.shift();if(!(e===void 0||u.has(e))){u.add(e),l.push(e);for(let t of r){if(t.from!==e)continue;let n=(o.get(t.to)??0)-1;o.set(t.to,n),n<=0&&!u.has(t.to)&&c.push(t.to)}}}for(let e of t.map(e=>e.id).sort(s))u.has(e)||l.push(e);return l}function Ft(e,t,n,r={}){let i=Pt(t);if(i.length<2)return[];let a=new Map(e.nodes.map(e=>[e.id,e])),o=new Map(t.nodes.map(e=>[e.id,e.label])),s=new Map(i.map((e,t)=>[e,t])),c=e=>t.edges.filter(t=>t.to===e&&s.has(t.from)&&(s.get(t.from)??0)<(s.get(e)??0)).sort((e,t)=>(t.weight??0)-(e.weight??0)||(e.id<t.id?-1:1))[0],l=[],u=i.at(-1)===e.outcomeId?i.length-1:i.length,d=u===1?`One cause, one outcome. Here is how it connects.`:`${u} causes, one outcome. Here is how they connect.`;l.push({nodeId:e.outcomeId,wide:!0,rep:`graph`,say:d,caption:d});let f=null;for(let[t,r]of i.entries()){let s=a.get(r),u=o.get(r)??r,d=c(r),p=r===e.outcomeId&&t===i.length-1,m=d?o.get(d.from)??d.from:null,h;h=p?d?`And it ends here: ${kt(u)}, ${Nt(d)} ${d.from===f?`it`:kt(m??``)}.`:`And it ends here: ${kt(u)}.`:d?d.from===f?Mt(d)?`Then ${kt(u)}, ${Nt(d)} it.`:`Then ${kt(u)}.`:`${u}, ${Nt(d)} ${kt(m??``)}.`:t===0?`It starts with ${kt(u)}.`:`Alongside it: ${u}.`,f=r;let g=[h],_=[h],v=jt(n,r);v&&(g.push(v.say),_.push(v.shown));let y=s?.detail;y&&(g.push(w(S(y),Et)),_.push(w(C(y),Et))),l.push({nodeId:r,...d?{edgeId:d.id}:{},say:g.join(` `),caption:_.join(` `)})}if(r.closeOn){let t=At[r.closeOn];l.push({nodeId:e.outcomeId,wide:!0,rep:r.closeOn,say:t,caption:t})}return l}var It={economy:`var(--domain-economy)`,policy:`var(--domain-policy)`,technology:`var(--domain-technology)`,science:`var(--domain-science)`,environment:`var(--domain-environment)`,society:`var(--domain-society)`,health:`var(--domain-health)`,conflict:`var(--domain-conflict)`},Lt=.5;function Rt(e){let t=e.nodes.filter(e=>e.parentId===void 0);if(t.length===0)return null;let n=new Map;for(let e of t)e.domain!==void 0&&n.set(e.domain,(n.get(e.domain)??0)+1);if([...n.values()].reduce((e,t)=>e+t,0)/t.length<Lt)return null;let r=[...n.entries()].sort((e,t)=>t[1]-e[1]||(e[0]<t[0]?-1:1)).map(([e])=>It[e]).filter(e=>e!==void 0);return r.length===0?null:{air1:r[0],air2:r[1]??r[0]}}r();var zt=5,Bt=`wo-stage`,Vt=`an illustrative living answer measures nothing, so there is no baseline`;function Ht(e){if(e.length<2)return null;let t=e.reduce((e,t)=>Math.min(e,t.v),1/0),n=e.reduce((e,t)=>Math.max(e,t.v),-1/0)-t,r=e.length-1;return e.map((e,i)=>{let a=i/r*100,o=n===0?10:18-(e.v-t)/n*16;return`${i===0?`M`:`L`} ${Math.round(a*10)/10} ${Math.round(o*10)/10}`}).join(` `)}function Ut(e,t){return Wt(e,t)?.length??0}function Wt(e,t){for(let n of e){if(n.id===t)return n.children;let e=n.children===void 0?void 0:Wt(n.children,t);if(e)return e}}function Gt(e){let{value:t,...n}=e;return n}function Kt(e,t){let n=new Map;for(let[r,i]of e.relativeByNode){let e=t.relativeByNode.get(r)??0;i>0&&n.set(r,e/i)}return n}function qt(e,t,n,r){return{exactBase:n??null,exactDelta:e.outcomeDelta,explainedPct:e.explainedPct,fullyGrounded:e.fullyGrounded&&!r,relBase:t.relativeOutcome,relCur:e.relativeOutcome}}function Jt(e){let t=(0,J.c)(14),{spec:n,question:r,failed:i,onRetry:a,onClose:o,view:s,onExpandNode:c,autoWalk:l,speakLine:u}=e;if(n){let e;return t[0]!==l||t[1]!==o||t[2]!==c||t[3]!==u||t[4]!==n||t[5]!==s?(e=(0,Y.jsx)(Xt,{spec:n,view:s,onClose:o,onExpandNode:c,autoWalk:l,speakLine:u}),t[0]=l,t[1]=o,t[2]=c,t[3]=u,t[4]=n,t[5]=s,t[6]=e):e=t[6],e}let d;t[7]===r?d=t[8]:(d=r?v(r):``,t[7]=r,t[8]=d);let f=i===!0,p;return t[9]!==o||t[10]!==a||t[11]!==d||t[12]!==f?(p=(0,Y.jsx)(Yt,{title:d,failed:f,onRetry:a,onClose:o}),t[9]=o,t[10]=a,t[11]=d,t[12]=f,t[13]=p):p=t[13],p}function Yt(e){let t=(0,J.c)(17),{title:n,failed:r,onRetry:i,onClose:a}=e,o=`Living answer: ${n}`,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`span`,{className:`wo-kicker`,children:`THE LIVING ANSWER`}),t[0]=s):s=t[0];let c;t[1]===n?c=t[2]:(c=(0,Y.jsxs)(`div`,{className:`wo-title`,children:[s,(0,Y.jsx)(`h2`,{children:n})]}),t[1]=n,t[2]=c);let l;t[3]===a?l=t[4]:(l=a&&(0,Y.jsx)(`div`,{className:`wo-head-actions`,children:(0,Y.jsx)(`button`,{type:`button`,className:`wo-btn wo-btn-close`,onClick:a,"aria-label":`Back to the answer`,children:`← Back to the answer`})}),t[3]=a,t[4]=l);let u;t[5]!==c||t[6]!==l?(u=(0,Y.jsxs)(`header`,{className:`wo-head`,children:[c,l]}),t[5]=c,t[6]=l,t[7]=u):u=t[7];let d;t[8]!==r||t[9]!==i?(d=(0,Y.jsx)(`div`,{className:`wo-shell`,role:`status`,"aria-live":`polite`,children:r?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`p`,{className:`wo-shell-line`,children:`This living answer didn’t come back.`}),(0,Y.jsx)(`p`,{className:`wo-shell-note`,children:`Nothing was built, and Mavéa won’t stand in a causal web it can’t source. The answer behind this card is untouched.`}),i&&(0,Y.jsx)(`button`,{type:`button`,className:`wo-btn`,onClick:i,children:`Try again`})]}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`div`,{className:`wo-shell-ground`,"aria-hidden":`true`}),(0,Y.jsx)(`span`,{className:`wo-shell-pulse`,"aria-hidden":`true`}),(0,Y.jsx)(`p`,{className:`wo-shell-line`,children:`Building your living answer…`}),(0,Y.jsx)(`p`,{className:`wo-shell-note`,children:`One model call, grounded in what this answer already found. Once it is built it is kept — re-opening it, and replaying this turn, costs nothing.`})]})}),t[8]=r,t[9]=i,t[10]=d):d=t[10];let f;t[11]!==u||t[12]!==d?(f=(0,Y.jsxs)(`div`,{className:`wo-panel`,children:[u,d]}),t[11]=u,t[12]=d,t[13]=f):f=t[13];let p;return t[14]!==o||t[15]!==f?(p=(0,Y.jsx)(`section`,{className:`wo-scrim`,"aria-label":o,children:f}),t[14]=o,t[15]=f,t[16]=p):p=t[16],p}function Xt({spec:e,view:t,onClose:n,onExpandNode:r,autoWalk:c,speakLine:l}){let[u,d]=(0,q.useState)(()=>p(e.title));(0,q.useEffect)(()=>{f(e.title,u)},[e.title,u]);let[m,h]=(0,q.useState)(null),g=(0,q.useMemo)(()=>{if(u.size===0)return e;let t=e;for(let[e,n]of u)t=M(t,e,n);return t},[e,u]),_=g.provenance.illustrative===!0,y=(0,q.useMemo)(()=>V(g),[g]),b=(0,q.useMemo)(()=>xt(g,y),[g,y]),x=b.trust,S=(0,q.useMemo)(()=>vt(g),[g]),[C,w]=(0,q.useState)(()=>new Map),[T,E]=(0,q.useState)(null),[D,O]=(0,q.useState)(!1),k=(0,q.useMemo)(()=>[...C.values()].some(e=>e!==100),[C]),F=(0,q.useMemo)(()=>[...C].map(([e,t])=>({nodeId:e,pct:t/100})),[C]),I=(0,q.useMemo)(()=>ie(S,[]),[S]),R=(0,q.useMemo)(()=>ie(S,F),[S,F]),z=(0,q.useMemo)(()=>k?Kt(I,R):null,[k,I,R]),U=(0,q.useDeferredValue)(z),G=(0,q.useCallback)(e=>H(e,y),[y]),K=(0,q.useMemo)(()=>ee(y),[y]),te=(0,q.useMemo)(()=>{let e=g.nodes[0]?.tier;return e!==void 0&&g.nodes.every(t=>t.tier===e)?``:void 0},[g]),ne=(0,q.useMemo)(()=>Rt(y),[y]),J=t&&G(t)?t:void 0,ae=We({world:y,insetBottom:D?108:54,initialRep:J??W(y)}),{rep:oe,setRep:se,expandedIds:ce,toggleExpand:le,unfoldsOnStage:ue}=ae;(0,q.useEffect)(()=>{J&&se(J)},[J,se]);let fe=(0,q.useMemo)(()=>{let e=new Map(y.nodes.map(e=>[e.id,e.parentId])),t=new Map;for(let n of y.nodes){let r=n.id,i=new Set([r]),a=e.get(r);for(;a!==void 0&&!i.has(a);)i.add(a),r=a,a=e.get(r);t.set(n.id,r)}return t},[y]),pe=(0,q.useMemo)(()=>{let e=y.nodes.map(e=>{let t=Gt(e),n=U?.get(fe.get(e.id)??e.id),r=A(e.label);return{...t,label:r,...n===void 0?{}:{shift:n}}});return{...y,nodes:e}},[y,U,fe]),me=(0,q.useMemo)(()=>{let e=new Map,t=n=>{e.set(n.id,n);for(let e of n.children??[])t(e)};for(let e of g.nodes)t(e);return e},[g]),he=(0,q.useMemo)(()=>{let e=B(g.edges);return new Map(y.edges.map((t,n)=>[t.id,e[n]]))},[y,g]),ge=(0,q.useRef)(null),_e=(0,q.useCallback)(()=>ge.current?.dismiss(),[]),ve=(0,q.useCallback)(e=>{(e.surface===`node`||e.surface===`edge`)&&E({kind:e.surface,id:e.id})},[]),[ye,be]=(0,q.useState)(void 0),xe=K.find(e=>e!==`graph`),[Se,Ce]=(0,q.useState)([]);(0,q.useEffect)(()=>{let e=globalThis.requestIdleCallback,t=()=>Ce(Ft(g,y,x,xe?{closeOn:xe}:{}));if(typeof e==`function`){let n=e(t,{timeout:2e3});return()=>globalThis.cancelIdleCallback?.(n)}let n=setTimeout(t,1);return()=>clearTimeout(n)},[g,y,x,xe]);let{focusNode:we}=ae,Te=(0,q.useCallback)(e=>{e.rep&&se(e.rep),E({kind:`node`,id:e.nodeId}),be(e.edgeId),e.wide?we(null):e.rep||we(e.nodeId)},[we,se]),{index:Ee,playing:De,caption:Oe,toggle:ke,seek:je,reset:Me}=wt((0,q.useMemo)(()=>({beats:Se,apply:Te,...l?{speakLine:l}:{}}),[Se,Te,l]));(0,q.useEffect)(()=>{O(De||Ee>=0)},[De,Ee]);let Pe=(0,q.useRef)(!1);(0,q.useEffect)(()=>{typeof matchMedia==`function`&&matchMedia(`(prefers-reduced-motion: reduce)`).matches||!c||Pe.current||Se.length===0||(Pe.current=!0,ke())},[c,Se.length,ke]);let[Fe,Ie]=(0,q.useState)(!0),Le=(0,q.useCallback)(()=>Ie(!1),[]),X=(0,q.useCallback)(()=>{Me(),be(void 0)},[Me]),Re=(0,q.useRef)(n);Re.current=n;let ze=(0,q.useRef)(ke);ze.current=ke;let Be=(0,q.useRef)(X);Be.current=X,(0,q.useEffect)(()=>{let e=e=>{if(e.key===`Escape`){Be.current(),Re.current?.();return}(e.key===` `||e.key===`Spacebar`)&&(e.target?.closest(`button, input, select, textarea, [contenteditable="true"]`)||(e.preventDefault(),ze.current()))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[]);let Ve=(0,q.useCallback)(e=>{X(),E({kind:`node`,id:e.id})},[X]),He=(0,q.useCallback)(e=>{X(),E({kind:`edge`,id:e})},[X]),Ue=(0,q.useCallback)((e,t)=>{X(),w(n=>new Map(n).set(e,t))},[X]),Ge=(0,q.useCallback)(()=>{X(),w(new Map)},[X]),Ke=(0,q.useCallback)(e=>{!r||m!==null||(h(e),r(e,g).then(t=>{h(null);let n=t===null?void 0:Wt(t.nodes,e);n?.length&&(d(t=>new Map(t).set(e,n)),ue(e)?le(e):E({kind:`node`,id:e}))},()=>h(null)))},[r,ue,m,g,le]),qe=(0,q.useCallback)((e,t)=>{if(t===`entry`&&oe===`timeline`){let t=me.get(e.id),n=t?.date,r=t?.series?.points,i=n?.until!==void 0||(r?.length??0)>1,a=n?.t??r?.[0]?.t;return i||!a?null:(0,Y.jsx)(`span`,{className:`wo-when`,"data-said":e.dateGrounded?``:void 0,children:a})}if(t!==`card`)return null;let n=ce.has(e.id),i=Ut(g.nodes,e.id),a=i>0,o=Ht(e.series??[]),s=me.get(e.id),c=s?.value===void 0?s?.date:void 0,l=c===void 0||j(c.t)===null?null:c.until!==void 0&&j(c.until)!==null?`${c.t}–${c.until}`:c.t,u=a&&ue(e.id),d=!a&&r!==void 0,f=m===e.id,p=a&&!u?i:0;return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(Qe,{id:yt(e.id),className:`wo-num`}),e.shift!==void 0&&de(e.shift)!==null&&(0,Y.jsx)(`span`,{className:`wo-shift`,"data-dir":e.shift<1?`down`:`up`,children:de(e.shift)}),o!==null&&(0,Y.jsx)(`svg`,{className:`wo-trace`,viewBox:`0 0 100 20`,preserveAspectRatio:`none`,"aria-hidden":`true`,children:(0,Y.jsx)(`path`,{d:o,fill:`none`})}),l!==null&&(0,Y.jsx)(`span`,{className:`wo-when`,"data-said":e.dateGrounded?``:void 0,children:l}),p>0&&(0,Y.jsx)(`span`,{className:`wo-parts-count`,children:`${p} part${p===1?``:`s`}`}),(u||d)&&(0,Y.jsx)(`button`,{type:`button`,className:`wo-expand`,"aria-expanded":u?n:void 0,"aria-busy":f||void 0,disabled:f||d&&m!==null,"aria-label":`${u&&n?`Close`:`Break down`} ${e.label}`,onClick:t=>{t.stopPropagation(),u?le(e.id):Ke(e.id)},children:f?`breaking down…`:u&&n?`close`:`break down`})]})},[ue,g,me,ce,le,r,m,Ke,oe]),Z=me.get(g.outcomeId),Je=(0,q.useMemo)(()=>qt(I,I,Z?.value,_),[I,Z?.value,_]),Xe=(0,q.useMemo)(()=>qt(R,I,Z?.value,_),[R,I,Z?.value,_]),Ze=(0,q.useMemo)(()=>({causes:g.nodes.length,links:g.edges.length,sourced:g.nodes.filter(e=>e.receipt!==void 0).length}),[g]),Q=T?.kind===`node`?me.get(T.id):void 0,$e=(0,q.useMemo)(()=>Q===void 0?[]:L(b,Q.id),[b,Q]),[et,tt]=(0,q.useState)(null);(0,q.useEffect)(()=>{if(Q===void 0){tt(null);return}let e=!0;return(async()=>{let{hierarchyLens:t}=await i(async()=>{let{hierarchyLens:e}=await import(`./lens-DyGK7Owa.js`);return{hierarchyLens:e}},__vite__mapDeps([0,1,2,3]));if(!e)return;let n=t.compile(b,Q.id);if(n===null){tt(null);return}await a(o([n.block]));let r=s(n.block.type);e&&r&&tt({plan:n,render:r})})(),()=>{e=!1}},[b,Q]);let $=T?.kind===`edge`?he.get(T.id):void 0,nt=(0,q.useMemo)(()=>g.nodes.filter(e=>e.role===`root`).map(e=>({id:e.id,label:A(e.label),pct:C.get(e.id)??100})),[g.nodes,C]);return(0,Y.jsx)(st,{registry:x,onNavigate:ve,ref:ge,children:(0,Y.jsx)(`section`,{className:`wo-scrim`,"aria-label":`Living answer: ${v(g.title)}`,onPointerDownCapture:Le,onKeyDownCapture:Le,children:(0,Y.jsxs)(`div`,{className:`wo-panel`,children:[(0,Y.jsxs)(`header`,{className:`wo-head`,children:[(0,Y.jsxs)(`div`,{className:`wo-title`,children:[(0,Y.jsx)(`span`,{className:`wo-kicker`,children:`THE LIVING ANSWER`}),(0,Y.jsx)(`h2`,{children:v(g.title)})]}),(0,Y.jsxs)(`div`,{className:`wo-head-actions`,children:[K.length===1?(0,Y.jsx)(`span`,{className:`wo-chip wo-chip-sole`,children:Ne[K[0]].chip}):(0,Y.jsx)(`div`,{className:`wo-views`,role:`tablist`,"aria-label":`View`,children:K.slice(0,zt).map((e,t,n)=>(0,Y.jsx)(`button`,{type:`button`,id:`wo-tab-${e}`,className:`wo-chip`,role:`tab`,"aria-selected":oe===e,"aria-controls":Bt,tabIndex:oe===e?0:-1,onKeyDown:e=>{let r=e.key===`ArrowRight`?1:e.key===`ArrowLeft`?-1:0;if(r===0)return;e.preventDefault();let i=n[(t+r+n.length)%n.length];X(),se(i),document.getElementById(`wo-tab-${i}`)?.focus()},onClick:()=>{X(),se(e)},children:Ne[e].chip},e))}),(0,Y.jsx)(`button`,{type:`button`,className:`wo-btn`,onClick:Ge,disabled:!k,children:`Reset`}),n&&(0,Y.jsx)(`button`,{type:`button`,className:`wo-btn wo-btn-close`,onClick:n,"aria-label":`Back to the answer`,children:`← Back to the answer`})]})]}),_&&(0,Y.jsx)(`div`,{className:`wo-banner wo-banner-illustrative`,children:`Illustrative model — shows the shape, not your numbers.`}),(0,Y.jsxs)(`p`,{className:`wo-legend`,"aria-live":`polite`,children:[(0,Y.jsxs)(`span`,{className:`wo-legend-view`,children:[Ne[oe].caption,`.`]}),` `,Ne[oe].legend]}),(0,Y.jsxs)(`div`,{className:`wo-body`,children:[(0,Y.jsxs)(`div`,{className:`wo-stage`,id:Bt,role:K.length>1?`tabpanel`:void 0,"aria-labelledby":K.length>1?`wo-tab-${oe}`:void 0,"data-uniform-tier":te,"data-illustrative":_?``:void 0,onWheelCapture:_e,onPointerDownCapture:_e,style:ne===null?void 0:{"--wo-air-1":ne.air1,"--wo-air-2":ne.air2},children:[(0,Y.jsx)(Ae,{stage:ae,world:pe,renderFace:qe,onNodeClick:Ve,onEdgeClick:He,selectedId:T?.kind===`node`?T.id:void 0,litEdgeId:ye}),(0,Y.jsx)(Tt,{count:Se.length,index:Ee,playing:De,caption:Oe,expanded:D,onToggle:ke,onSeek:je,inviting:Fe})]}),(0,Y.jsxs)(`aside`,{className:`wo-rail`,children:[(0,Y.jsx)(Ye,{levers:nt,onSet:Ue,onReset:Ge}),(0,Y.jsx)(ht,{baseline:Je,current:Xe,unit:Z?.unit,active:k,observedNote:_?Vt:void 0}),(0,Y.jsxs)(`div`,{className:`wo-detail`,children:[(0,Y.jsx)(`span`,{className:`wo-rail-kicker`,children:`EVIDENCE`}),!T&&(0,Y.jsxs)(`div`,{className:`wo-standing`,children:[(0,Y.jsxs)(`p`,{className:`wo-invite`,children:[`Press `,(0,Y.jsx)(`strong`,{children:`Walk me through it`}),` and Mavéa takes you cause by cause — free, and as often as you like.`]}),(0,Y.jsx)(`p`,{className:`wo-hint`,children:`Or tap any cause or link to see what stands behind it.`}),(0,Y.jsxs)(`dl`,{className:`wo-facts`,children:[(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`dt`,{children:`Causes`}),(0,Y.jsx)(`dd`,{children:Ze.causes})]}),(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`dt`,{children:`Links`}),(0,Y.jsx)(`dd`,{children:Ze.links})]}),(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`dt`,{children:_?`Illustrative`:`With a source`}),(0,Y.jsx)(`dd`,{children:_?`every cause`:Ze.sourced})]})]}),Z&&(0,Y.jsxs)(`p`,{className:`wo-standing-outcome`,children:[(0,Y.jsx)(`span`,{className:`wo-standing-lead`,children:`It ends at`}),` `,Z.label,Z.detail?(0,Y.jsx)(`span`,{className:`wo-standing-note`,children:Z.detail}):null]}),(0,Y.jsx)(`p`,{className:`wo-hint`,children:`Turn a root cause down and the rest of the web re-weights — nothing is re-computed by a model, and no projected number is invented.`})]}),Q&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`h3`,{className:`wo-detail-title`,children:Q.label}),Q.detail&&(0,Y.jsx)(`p`,{className:`wo-detail-note`,children:Q.detail}),(0,Y.jsx)(`p`,{className:`wo-detail-figure`,children:(0,Y.jsx)(Qe,{id:yt(Q.id)})}),Q.series&&(0,Y.jsx)(`ul`,{className:`wo-series`,children:Q.series.points.map((e,t)=>(0,Y.jsxs)(`li`,{children:[(0,Y.jsx)(`span`,{className:`wo-series-t`,children:e.t}),(0,Y.jsx)(Qe,{id:bt(Q.id,e.t)})]},`${e.t}:${t}`))}),(et||$e.length>0)&&(0,Y.jsxs)(`div`,{className:`wo-parts`,children:[(0,Y.jsx)(`span`,{className:`wo-rail-kicker`,children:`WHAT THIS IS MADE OF`}),et?et.render(et.plan.block.props,{delay:0}):(0,Y.jsx)(`ul`,{className:`wo-part-list`,children:$e.map(e=>(0,Y.jsx)(`li`,{children:A(e.label)},e.id))})]})]}),$&&(0,Y.jsx)(re,{relation:P($.relation),sign:$.sign,status:$.status??N($),receipts:$.receipts??($.receipt?[$.receipt]:[]),counter:$.counter,provisional:$.provisional})]})]})]})]})})})}export{Jt as WorldOverlay};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/lens-Ba83fBmq.js","assets/display-CAb_PiGv.js","assets/facts-CNQz8OQz.js","assets/types-DuEbJpIA.js"])))=>i.map(i=>d[i]);
2
+ import{t as e}from"./react-BZJXY1be.js";import{t}from"./compiler-runtime-qQQXpJgv.js";import{t as n}from"./jsx-runtime-DeHZSEgm.js";import{n as r,t as i}from"./preload-helper-CiWYd9n-.js";import{i as a,n as o,t as s}from"./loader-BiYFMeRS.js";import{t as c}from"./useFocusTrap-CJmpNZv2.js";import{r as l,t as u}from"./useSpatialCanvas-CfmZOXXP.js";import{i as d}from"./format-q0LwBjID.js";import{i as f,n as p}from"./openWorld-B4VY6xO7.js";import{a as m,i as h,n as g,t as _}from"./display-CAb_PiGv.js";import{t as v}from"./sentenceCase-CLDiNB0f.js";import{r as y,t as b}from"./sourceHost-BV3t2XDb.js";import{r as x}from"./stepDriver-DwjFet6U.js";import{a as S,i as C,s as w}from"./spokenText-Dy-GZvZV.js";import{d as T,l as E,s as D,u as O}from"./walkSync-BtO3jsqQ.js";import{n as k}from"./emphasize-BqCIst-B.js";import{c as A,s as j,t as M}from"./validate-MQG0EcTD.js";import{n as N,s as P}from"./receipts-D7zveV-I.js";import{n as F,r as I}from"./value-Dx7DZob4.js";import{t as L}from"./types-DuEbJpIA.js";import{a as R,c as z,d as B,f as V,i as H,l as U,n as W,o as G,r as ee,s as K,t as te,u as ne}from"./offers-eBNj_lSP.js";import{n as re,t as ie}from"./engine-BiM6INsW.js";var q=e(),J=t(),Y=n();function ae(e){return e.kind}var oe=.33,se=.1,ce=.005;function le(e,t){if(!Number.isFinite(e)||!Number.isFinite(t))return`would barely change`;let n=Math.abs(e)>1e-9?Math.abs(e):1,r=(t-e)/n,i=Math.abs(r);if(i<=ce)return`would barely change`;let a=r>0?`rise`:`fall`;return i>=oe?`would ${a} meaningfully`:i>=se?`would ${a} somewhat`:`would ${a} slightly`}var ue=.6;function de(e){if(!Number.isFinite(e))return null;let t=e-1,n=Math.abs(t);if(n<=.005)return null;let r=t>0?`stronger`:`weaker`;return n>=ue?`much ${r}`:n>=oe?r:`slightly ${r}`}var fe=440,pe=2,me=1.25,he=320;function ge(e){if(!(e===void 0||!Number.isFinite(e))){if(e<.995)return`weaker`;if(e>1.005)return`stronger`}}var _e=[{id:`mv-arrow`,cls:`mv-marker-up`,refX:9,size:13,shape:(0,Y.jsx)(`path`,{d:`M0.5 1 L9.5 5 L0.5 9 Z`})},{id:`mv-arrow-damp`,cls:`mv-marker-down`,refX:8,size:17,shape:(0,Y.jsx)(`path`,{d:`M8 0.6 L8 9.4`})},{id:`mv-arrow-open`,cls:`mv-marker-open`,refX:9,size:13,shape:(0,Y.jsx)(`path`,{d:`M1 1.4 L9 5 L1 8.6 Z`})},{id:`mv-arrow-ring`,cls:`mv-marker-ring`,refX:7.4,size:13,shape:(0,Y.jsx)(`circle`,{cx:`5`,cy:`5`,r:`3`})},{id:`mv-dot`,cls:`mv-marker-dot`,refX:5,size:9,shape:(0,Y.jsx)(`circle`,{cx:`5`,cy:`5`,r:`2.6`})}];function ve(){let e=(0,J.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Y.jsx)(`defs`,{children:_e.flatMap(ye)}),e[0]=t):t=e[0],t}function ye(e){return[!1,!0].map(t=>(0,Y.jsx)(`marker`,{id:t?`${e.id}-soft`:e.id,className:`mv-marker ${e.cls}${t?` mv-marker-soft`:``}`,viewBox:`0 0 10 10`,refX:e.refX,refY:`5`,markerUnits:`userSpaceOnUse`,markerWidth:e.size,markerHeight:e.size,orient:`auto`,children:e.shape},t?`${e.id}-soft`:e.id))}function be(e,t){let n=(0,J.c)(5),r;n[0]===e.current?r=n[1]:(r=()=>{let t=e.current;if(!t||window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches)return;let n=t.querySelectorAll(`[data-draw]:not(.m-draw-path):not([data-drawn])`),r=Array.from(n,Se);n.forEach((e,t)=>{let n=r[t];n!==null&&(e.style.setProperty(`--path-len`,`${n}px`),e.style.setProperty(`--delay`,`${fe}ms`),e.classList.add(`m-draw-path`))});let i=xe;return t.addEventListener(`animationend`,i),()=>t.removeEventListener(`animationend`,i)},n[0]=e.current,n[1]=r);let i;n[2]!==t||n[3]!==e?(i=[e,t],n[2]=t,n[3]=e,n[4]=i):i=n[4],(0,q.useEffect)(r,i)}function xe(e){if(e.animationName!==`mavea-draw`)return;let t=e.target;t.classList.remove(`m-draw-path`),t.style.removeProperty(`--path-len`),t.style.removeProperty(`--delay`),t.dataset.drawn=``}function Se(e){return typeof e.getTotalLength==`function`?e.getTotalLength():null}function Ce(e){let t=(0,J.c)(33),{chrome:n,bbox:r,exiting:i,onSettle:a}=e,o=(0,q.useRef)(null);be(o,n.paths);let s=i?``:void 0,c=i?!0:void 0,l=r.w,u=r.h,d=`${r.x} ${r.y} ${r.w} ${r.h}`,f;t[0]===n.bands?f=t[1]:(f=n.bands.map(Te),t[0]=n.bands,t[1]=f);let p;t[2]===n.paths?p=t[3]:(p=n.paths.map(we),t[2]=n.paths,t[3]=p);let m;t[4]!==r.h||t[5]!==r.w||t[6]!==d||t[7]!==f||t[8]!==p?(m=(0,Y.jsxs)(`svg`,{ref:o,className:`mv-chrome-svg`,width:l,height:u,viewBox:d,"aria-hidden":`true`,children:[f,p]}),t[4]=r.h,t[5]=r.w,t[6]=d,t[7]=f,t[8]=p,t[9]=m):m=t[9];let h;if(t[10]!==r.x||t[11]!==r.y||t[12]!==n.bands){let e;t[14]!==r.x||t[15]!==r.y?(e=e=>e.label===void 0?null:(0,Y.jsx)(`div`,{className:`mv-shelf-label`,style:{left:e.x-r.x+12,top:e.y-r.y+12},children:e.label},`${e.id}:label`),t[14]=r.x,t[15]=r.y,t[16]=e):e=t[16],h=n.bands.map(e),t[10]=r.x,t[11]=r.y,t[12]=n.bands,t[13]=h}else h=t[13];let g;if(t[17]!==r.x||t[18]!==r.y||t[19]!==n.labels){let e;t[21]!==r.x||t[22]!==r.y?(e=e=>(0,Y.jsx)(`div`,{className:`mv-chrome-label ${e.className}`,"data-anchor":e.anchor??`start`,style:{left:e.x-r.x,top:e.y-r.y},children:e.text},e.id),t[21]=r.x,t[22]=r.y,t[23]=e):e=t[23],g=n.labels.map(e),t[17]=r.x,t[18]=r.y,t[19]=n.labels,t[20]=g}else g=t[20];let _;t[24]!==g||t[25]!==h?(_=(0,Y.jsxs)(`div`,{className:`mv-chrome-labels`,children:[h,g]}),t[24]=g,t[25]=h,t[26]=_):_=t[26];let v;return t[27]!==a||t[28]!==s||t[29]!==_||t[30]!==c||t[31]!==m?(v=(0,Y.jsxs)(`div`,{className:`mv-chrome`,"data-exiting":s,onTransitionEnd:a,"aria-hidden":c,children:[m,_]}),t[27]=a,t[28]=s,t[29]=_,t[30]=c,t[31]=m,t[32]=v):v=t[32],v}function we(e){return(0,Y.jsx)(`path`,{className:e.className,d:e.d,fill:`none`,"data-draw":e.draw?``:void 0},e.id)}function Te(e){return(0,Y.jsx)(`rect`,{className:`mv-band ${e.className}`,x:e.x,y:e.y,width:e.w,height:e.h,rx:12},e.id)}function Ee(e){if(e instanceof Element)return e.closest(`.mv-node`)?.dataset.id}var De=60;function Oe(e){return[...e.positions.entries()].filter(([,e])=>e.folded!==!0).sort(([e,t],[n,r])=>{let i=Number(t.shelved===!0)-Number(r.shelved===!0);if(i!==0)return i;let a=Math.round(t.y/De)-Math.round(r.y/De);return a===0?t.x-r.x||e.localeCompare(n):a}).map(([e])=>e)}var ke=(0,q.memo)(function(e){let t=(0,J.c)(65),{nodes:n,edges:r,layout:i,exiting:a,settleExit:o,activate:s,lod:c,renderFace:l,onNodeClick:u,onEdgeClick:d,selectedId:f,litEdgeId:p}=e,m=(0,q.useRef)(null);be(m,i.edgePaths);let h;t[0]===i?h=t[1]:(h=Oe(i),t[0]=i,t[1]=h);let g=h,[_,v]=(0,q.useState)(null),y;t[2]!==_||t[3]!==g?(y=_!==null&&g.includes(_)?_:g[0]??null,t[2]=_,t[3]=g,t[4]=y):y=t[4];let b=y,x;t[5]!==g||t[6]!==b?(x=e=>{if(g.length===0)return;let t=b===null?0:g.indexOf(b),n=e===`first`?0:e===`last`?g.length-1:Math.min(g.length-1,Math.max(0,t+e)),r=g[n];v(r),document.querySelector(`.mv-node[data-id="${CSS.escape(r)}"]`)?.focus()},t[5]=g,t[6]=b,t[7]=x):x=t[7];let S=x,C;if(t[8]!==r){C=new Map;for(let e of r)e.label!==void 0&&C.set(e.id,e.label);t[8]=r,t[9]=C}else C=t[9];let w=C,{bbox:T}=i,E;if(t[10]!==r||t[11]!==n){let e=new Map(n.map(je));E=new Map;for(let t of r){let n=e.get(t.from);n!==void 0&&Number.isFinite(n)&&E.set(t.id,n)}t[10]=r,t[11]=n,t[12]=E}else E=t[12];let D=E,O;t[13]!==a||t[14]!==o?(O=a&&(0,Y.jsx)(Ce,{chrome:a.layout.chrome,bbox:a.layout.bbox,exiting:!0,onSettle:()=>o(a.token)},a.token),t[13]=a,t[14]=o,t[15]=O):O=t[15];let k;t[16]!==T||t[17]!==i.chrome||t[18]!==i.rep?(k=(0,Y.jsx)(Ce,{chrome:i.chrome,bbox:T},i.rep),t[16]=T,t[17]=i.chrome,t[18]=i.rep,t[19]=k):k=t[19];let A=T.w,j=T.h,M=`${T.x} ${T.y} ${T.w} ${T.h}`,N;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,Y.jsx)(ve,{}),t[20]=N):N=t[20];let P;if(t[21]!==w||t[22]!==D||t[23]!==i.edgePaths||t[24]!==p||t[25]!==d){let e;t[27]!==w||t[28]!==D||t[29]!==p||t[30]!==d?(e=e=>(0,Y.jsxs)(`g`,{className:`mv-edge-g`,"data-lit":p===e.id?``:void 0,"data-shift":ge(D.get(e.id)),style:D.has(e.id)?{"--mv-shift":D.get(e.id)}:void 0,onClick:d?()=>d(e.id):void 0,children:[w.has(e.id)&&(0,Y.jsx)(`title`,{children:w.get(e.id)}),d&&(0,Y.jsx)(`path`,{className:`mv-edge-hit`,d:e.d,fill:`none`}),(0,Y.jsx)(`path`,{className:e.className,d:e.d,fill:`none`,"data-draw":``,style:e.width===void 0?void 0:{"--mv-edge-w":e.width}})]},e.id),t[27]=w,t[28]=D,t[29]=p,t[30]=d,t[31]=e):e=t[31],P=i.edgePaths.map(e),t[21]=w,t[22]=D,t[23]=i.edgePaths,t[24]=p,t[25]=d,t[26]=P}else P=t[26];let F;t[32]!==T.h||t[33]!==T.w||t[34]!==P||t[35]!==M?(F=(0,Y.jsxs)(`svg`,{ref:m,className:`mv-edges`,width:A,height:j,viewBox:M,"aria-hidden":`true`,children:[N,P]}),t[32]=T.h,t[33]=T.w,t[34]=P,t[35]=M,t[36]=F):F=t[36];let I;if(t[37]!==s||t[38]!==T.x||t[39]!==T.y||t[40]!==i.positions||t[41]!==c||t[42]!==S||t[43]!==n||t[44]!==u||t[45]!==l||t[46]!==b||t[47]!==f){let e;t[49]!==s||t[50]!==T.x||t[51]!==T.y||t[52]!==i.positions||t[53]!==c||t[54]!==S||t[55]!==u||t[56]!==l||t[57]!==b||t[58]!==f?(e=(e,t)=>{let n=i.positions.get(e.id);if(!n)return null;let r={"--nx":`${n.x+n.w/2-T.x}px`,"--ny":`${n.y+n.h/2-T.y}px`,"--mv-i":e.depth??t,...e.shift===void 0?{}:{"--mv-shift":e.shift}},a=u!==void 0&&!n.folded,o=n.folded?void 0:l,d=l?.(e,`entry`);return(0,Y.jsxs)(`div`,{className:`mv-node`,"data-id":e.id,"data-role":e.role,"data-tier":e.tier,"data-domain":e.domain,"data-series":e.series?.length?``:void 0,"data-face":n.face,"data-shelved":n.shelved?``:void 0,"data-folded":n.folded?``:void 0,"data-shift":ge(e.shift),"data-selected":f===e.id?``:void 0,"data-lod":c,style:r,"aria-hidden":n.folded?!0:void 0,role:a?`button`:void 0,tabIndex:a?e.id===b?0:-1:void 0,onFocus:a?()=>v(e.id):void 0,onClick:a?()=>s(e):void 0,onKeyDown:a?t=>{if(t.key===`Enter`||t.key===` `){t.preventDefault(),u?.(e);return}let n={ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1,Home:`first`,End:`last`}[t.key];n!==void 0&&(t.preventDefault(),S(n))}:void 0,children:[(0,Y.jsxs)(`div`,{className:`mv-face mv-face-card`,"aria-hidden":n.face!==`card`||void 0,children:[(0,Y.jsx)(`span`,{className:`mv-label`,children:e.label}),(0,Y.jsxs)(`span`,{className:`mv-card-foot`,children:[e.domain!==void 0&&(0,Y.jsx)(`span`,{className:`mv-domain`,title:e.domain,"aria-label":e.domain}),e.value!==void 0&&(0,Y.jsxs)(`span`,{className:`mv-value`,children:[e.value.toLocaleString(),e.unit??``]}),o?.(e,`card`),e.tier!==void 0&&(0,Y.jsx)(`span`,{className:`mv-tier`,children:e.tier})]})]}),(0,Y.jsx)(`div`,{className:`mv-face mv-face-entry`,"aria-hidden":n.face!==`entry`||void 0,children:(0,Y.jsxs)(`span`,{className:`mv-label`,children:[d,d?` `:null,e.label]})}),(0,Y.jsx)(`div`,{className:`mv-face mv-face-mark`,"aria-hidden":n.face!==`mark`||void 0,children:o?.(e,`mark`)})]},e.id)},t[49]=s,t[50]=T.x,t[51]=T.y,t[52]=i.positions,t[53]=c,t[54]=S,t[55]=u,t[56]=l,t[57]=b,t[58]=f,t[59]=e):e=t[59],I=n.map(e),t[37]=s,t[38]=T.x,t[39]=T.y,t[40]=i.positions,t[41]=c,t[42]=S,t[43]=n,t[44]=u,t[45]=l,t[46]=b,t[47]=f,t[48]=I}else I=t[48];let L;return t[60]!==F||t[61]!==I||t[62]!==O||t[63]!==k?(L=(0,Y.jsxs)(Y.Fragment,{children:[O,k,F,I]}),t[60]=F,t[61]=I,t[62]=O,t[63]=k,t[64]=L):L=t[64],L});function Ae({stage:e,world:t,renderFace:n,onNodeClick:r,onEdgeClick:i,selectedId:a,litEdgeId:o}){let{cam:s,layout:c,exiting:l,lod:u,settleExit:d,morphing:f,settle:p}=e,{viewportRef:m,zoomAtClient:h,pan:g}=s,[_,v]=(0,q.useState)(!1),y=(0,q.useRef)(new Map),b=(0,q.useRef)(0),x=(0,q.useRef)(!1),S=(0,q.useRef)(!1),C=(0,q.useRef)(!1),w=(0,q.useRef)({x:0,y:0}),T=(0,q.useCallback)((t,n,r,i)=>{if(x.current){h(t,n,r);return}e.pinch(t,n,r,i)!==`zoom`&&(x.current=!0)},[e,h]),E=(0,q.useRef)(T);E.current=T,(0,q.useEffect)(()=>{let e=m.current;if(!e)return;let t,n=e=>{if(e.preventDefault(),p(),e.ctrlKey){E.current(Math.exp(-e.deltaY/100),e.clientX,e.clientY,Ee(e.target)),clearTimeout(t),t=setTimeout(()=>{x.current=!1},he);return}h(e.deltaY<0?1.12:1/1.12,e.clientX,e.clientY)};return e.addEventListener(`wheel`,n,{passive:!1}),()=>{clearTimeout(t),e.removeEventListener(`wheel`,n)}},[m,h,p]);let D=()=>{let[e,t]=[...y.current.values()];return{x:(e.x+t.x)/2,y:(e.y+t.y)/2,d:Math.hypot(e.x-t.x,e.y-t.y)}},O=(0,q.useCallback)(e=>{if(p(),y.current.set(e.pointerId,{x:e.clientX,y:e.clientY}),y.current.size>=2){e.currentTarget.setPointerCapture(e.pointerId),S.current=!1,v(!1),b.current=0;return}S.current=!0,C.current=!1,v(!0),w.current={x:e.clientX,y:e.clientY}},[p]),k=(0,q.useRef)({dx:0,dy:0}),A=(0,q.useRef)(0),j=(0,q.useCallback)(()=>{A.current!==0&&(cancelAnimationFrame(A.current),A.current=0);let{dx:e,dy:t}=k.current;(e!==0||t!==0)&&(k.current={dx:0,dy:0},g(e,t))},[g]),M=(0,q.useCallback)((e,t)=>{k.current.dx+=e,k.current.dy+=t,A.current===0&&(A.current=requestAnimationFrame(()=>{A.current=0;let e=k.current;k.current={dx:0,dy:0},(e.dx!==0||e.dy!==0)&&g(e.dx,e.dy)}))},[g]);(0,q.useEffect)(()=>()=>cancelAnimationFrame(A.current),[]);let N=(0,q.useCallback)(e=>{let t=y.current;if(!t.has(e.pointerId))return;if(t.set(e.pointerId,{x:e.clientX,y:e.clientY}),t.size>=2){let{x:t,y:n,d:r}=D();if(b.current===0){b.current=r;return}let i=r/b.current;(i>me||i<1/me)&&(b.current=r,E.current(i,t,n,Ee(e.target)));return}if(!S.current)return;let n=e.clientX-w.current.x,r=e.clientY-w.current.y;Math.abs(n)+Math.abs(r)>pe&&!C.current&&(C.current=!0,e.currentTarget.setPointerCapture(e.pointerId)),w.current={x:e.clientX,y:e.clientY},M(n,r)},[M]),P=(0,q.useCallback)(e=>{j(),y.current.delete(e.pointerId),y.current.size<2&&(b.current=0,x.current=!1),y.current.size===0&&(S.current=!1,v(!1)),e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId)},[j]),F=(0,q.useCallback)(e=>{C.current||r?.(e)},[r]),I=(0,q.useCallback)(e=>{e.propertyName===`transform`&&p()},[p]),{bbox:L}=c,R={transform:s.transform,width:L.w,height:L.h,"--mv-cam-scale":s.camera.scale};return(0,Y.jsx)(`div`,{className:`mv-viewport`,ref:m,"data-panning":_?`true`:void 0,style:{"--mv-cam-scale":s.camera.scale},onPointerDown:O,onPointerMove:N,onPointerUp:P,onPointerCancel:P,children:(0,Y.jsx)(`div`,{className:`mv-world`,style:R,"data-morphing":f?``:void 0,onTransitionEnd:I,children:(0,Y.jsx)(ke,{nodes:t.nodes,edges:t.edges,layout:c,exiting:l,settleExit:d,activate:F,lod:u,renderFace:n,onNodeClick:r,onEdgeClick:i,selectedId:a,litEdgeId:o})})})}function je(e){return[e.id,e.shift]}function Me(e,t){return e===`in`?`zoom-camera`:t?`ascend`:`zoom-camera`}var Ne={graph:{chip:`Graph`,caption:`What caused what`,legend:`Left to right is what led to what. Colour is the direction of the push; thickness is how much of the outcome the link explains.`},flow:{chip:`Contribution`,caption:`How much each one contributed`,legend:`Ribbon thickness is how much of the outcome that link was MEASURED to explain. A cause whose links carry no measured share is held aside rather than drawn thin, which would read as a finding nobody made.`},timeline:{chip:`Over time`,caption:`The same causes, in time`,legend:`Left to right is WHEN, read against the axis below; a bar is how long a cause lasted. Height only keeps entries from overlapping — it means nothing.`},spheres:{chip:`Spheres`,caption:`What kinds of force`,legend:`Each lane is a sphere the causes belong to. A link that CHANGES lane is a handoff between kinds of force and is drawn at full weight; one that stays inside a lane goes faint. A cause the answer put in no single sphere is held aside rather than filed under one it does not belong to.`},chart:{chip:`As a chart`,caption:`How much each one moved`,legend:`Each mark is a cause plotted against its own measured history. Causes with nothing measured are held aside rather than drawn at zero.`}},Pe={min:ne,max:2.2},Fe=56,Ie=1300,Le=1300,X=.7,Re=120,ze=120,Be={graph:K,timeline:R,chart:U,flow:z,spheres:G},Ve=e=>({x:0,y:0,w:e.w,h:e.h}),He=(e,t,n)=>[t-e.x,n-e.y];function Ue(e,t,n){let r=e.positions.get(t);if(!r)return null;let i=r.x,a=r.y,o=r.x+r.w,s=r.y+r.h;for(let r of n.get(t)??[]){let t=e.positions.get(r);!t||t.folded||(i=Math.min(i,t.x),a=Math.min(a,t.y),o=Math.max(o,t.x+t.w),s=Math.max(s,t.y+t.h))}let[c,l]=He(e.bbox,i-Re,a-Re);return{x:c,y:l,w:o-i+240,h:s-a+240}}function We(e){let{world:t,onAscend:n,driverId:r,insetBottom:i}=e,[a,o]=(0,q.useState)(e.initialRep??`graph`),[s,c]=(0,q.useState)(()=>new Set),[d,f]=(0,q.useState)(null),p=u({clamp:Pe,margin:Fe,...i===void 0?{}:{insetBottom:i}}),m=(0,q.useRef)(void 0),{viewport:h}=p,g=(0,q.useMemo)(()=>h?{w:Math.max(1,h.w-112),h:Math.max(1,h.h-112)}:void 0,[h]),_=(0,q.useMemo)(()=>Be[a](t,{expandedIds:s,previous:m.current,...g?{viewport:g}:{}}),[a,t,s,g]);(0,q.useEffect)(()=>{let e=new Map;for(let[t,n]of _.positions)e.set(t,{x:n.x,y:n.y});m.current=e},[_]);let v=(0,q.useRef)(a);v.current=a;let y=(0,q.useRef)(_);y.current=_;let b=(0,q.useRef)(p.camera);b.current=p.camera;let S=(0,q.useRef)(s);S.current=s;let C=(0,q.useRef)(n);C.current=n;let[w,T]=(0,q.useState)(null),{endFlight:E}=p,D=(0,q.useCallback)(()=>{T({layout:y.current,rep:v.current,expandedIds:S.current}),E()},[E]),O=(0,q.useRef)(0),k=(0,q.useRef)(void 0);(0,q.useEffect)(()=>()=>clearTimeout(k.current),[]);let A=(0,q.useCallback)(e=>{if(e===v.current)return;let t=++O.current;f({layout:y.current,token:t}),clearTimeout(k.current),k.current=setTimeout(()=>{t===O.current&&f(null)},Ie),v.current=e,o(e)},[]),j=(0,q.useCallback)(e=>{e===O.current&&(clearTimeout(k.current),f(null))},[]),M=(0,q.useRef)(null),N=(0,q.useCallback)(e=>{let t=new Set(S.current);t.delete(e)||(t.add(e),U.current(e)&&(M.current=e)),c(t)},[]),P=(0,q.useMemo)(()=>{let e=new Map;for(let n of t.nodes){if(n.parentId===void 0)continue;let t=e.get(n.parentId);t?t.push(n.id):e.set(n.parentId,[n.id])}return e},[t]),{fitTo:F,setCamera:I,viewportRef:L}=p;(0,q.useEffect)(()=>{let e=M.current;if(M.current=null,e!==null){let t=Ue(_,e,P);if(t){F(t);return}}F(Ve(_.bbox))},[_,P,F,I,L]);let R=(0,q.useMemo)(()=>new Map(t.nodes.map(e=>[e.id,e.parentId])),[t]),z=(0,q.useMemo)(()=>{let e=new Set;for(let t of R.values())t!==void 0&&e.add(t);return e},[R]),B=(0,q.useCallback)(e=>{let t=0,n=e,r=new Set;for(;n!==void 0&&!r.has(n);)r.add(n),n=R.get(n),n!==void 0&&(t+=1);return t},[R]),V=a===`graph`,H=(0,q.useCallback)(e=>{if(!V)return!1;let t=_.positions.get(e);return t===void 0||t.folded===!0||t.shelved===!0?!1:B(e)+1<=2},[V,_,B]),U=(0,q.useRef)(H);U.current=H;let{zoomAtClient:W}=p,G=(0,q.useCallback)((e,t,n,r)=>{if(e>=1)return r!==void 0&&z.has(r)&&!S.current.has(r)&&U.current(r)?(N(r),`expand`):(W(e,t,n),`zoom`);let i=L.current?.getBoundingClientRect();if(Me(`out`,!!i&&(i.width>0||i.height>0)&&l(b.current,Ve(y.current.bbox),{w:i.width,h:i.height},Fe,Pe))===`zoom-camera`)return W(e,t,n),`zoom`;let a=[...S.current];if(a.length>0){let e=a[0],t=B(e);for(let n of a){let r=B(n);r>t&&(e=n,t=r)}return N(e),`collapse`}return C.current?.(),`ascend`},[z,N,W,L,B]),ee=(0,q.useCallback)(e=>{let t=y.current,n=e===null?void 0:t.positions.get(e);if(!n||n.folded){F(Ve(t.bbox));return}let[r,i]=He(t.bbox,n.x-ze,n.y-ze);F({x:r,y:i,w:n.w+240,h:n.h+240})},[F]);(0,q.useEffect)(()=>{if(r!==void 0)return x(r,{count:te.length,setIndex:e=>A(te[Math.min(te.length-1,Math.max(0,Math.trunc(e)))]),spokenFor:()=>void 0,captionFor:e=>{let t=te[e];return t?Ne[t].caption:void 0}})},[r,A]);let K=w?.layout!==_||p.flying;return(0,q.useEffect)(()=>{if(!K)return;let e=setTimeout(D,Le);return()=>clearTimeout(e)},[K,_,D]),{rep:a,setRep:A,layout:_,exiting:d,settleExit:j,expandedIds:s,toggleExpand:N,expandable:z,unfoldsOnStage:H,cam:p,morphing:K,settle:D,lod:p.camera.scale>=X?`near`:`far`,pinch:G,focusNode:ee}}function Ge({label:e,min:t,max:n,step:r=1,value:i,onChange:a,format:o,color:s=`var(--presence)`}){let c=n-t||1,l=(i-t)/c*100;return(0,Y.jsxs)(`label`,{className:`viz-ctl`,style:{"--ctl-c":s,"--ctl-pct":l+`%`},children:[(0,Y.jsx)(`span`,{className:`viz-ctl-label`,children:e}),(0,Y.jsx)(`input`,{type:`range`,className:`viz-ctl-range`,min:t,max:n,step:r,value:i,"aria-label":e,onChange:e=>a(Number(e.target.value))}),(0,Y.jsx)(`span`,{className:`viz-ctl-val tab-num`,children:o?o(i):i.toLocaleString()})]})}var Ke=`No cause is established yet, so there is nothing to push on.`;function qe(e){let t=(0,J.c)(17),{levers:n,onSet:r,onReset:i}=e,a;t[0]===n?a=t[1]:(a=n.every(Je),t[0]=n,t[1]=a);let o=a,s;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`h3`,{className:`tr-sec-title`,children:`WHAT IF`}),t[2]=s):s=t[2];let c;t[3]!==i||t[4]!==o?(c=(0,Y.jsxs)(`div`,{className:`tr-levers-head`,children:[s,(0,Y.jsx)(`button`,{type:`button`,className:`tr-reset`,onClick:i,disabled:o,children:`Reset`})]}),t[3]=i,t[4]=o,t[5]=c):c=t[5];let l;t[6]===n.length?l=t[7]:(l=n.length===0&&(0,Y.jsx)(`p`,{className:`tr-levers-empty`,children:Ke}),t[6]=n.length,t[7]=l);let u;if(t[8]!==n||t[9]!==r){let e;t[11]===r?e=t[12]:(e=e=>(0,Y.jsx)(Ge,{label:e.label,min:0,max:100,value:e.pct,onChange:t=>r(e.id,t),format:Z},e.id),t[11]=r,t[12]=e),u=n.map(e),t[8]=n,t[9]=r,t[10]=u}else u=t[10];let d;return t[13]!==c||t[14]!==l||t[15]!==u?(d=(0,Y.jsxs)(`div`,{className:`tr-levers`,children:[c,l,u]}),t[13]=c,t[14]=l,t[15]=u,t[16]=d):d=t[16],d}function Z(e){return`${e}%`}function Je(e){return e.pct===100}var Ye=(0,q.memo)(qe),Xe=(0,q.createContext)(null);function Ze(){return(0,q.useContext)(Xe)}function Qe(e){let t=(0,J.c)(19),{id:n,className:r}=e,i=Ze(),a,o,s,c,l,u;if(t[0]!==r||t[1]!==n||t[2]!==i){u=Symbol.for(`react.early_return_sentinel`);bb0:{let e=i?.registry.values.get(n);if(!e){u=null;break bb0}let d=`tr-num`+(r?` ${r}`:``);if(e.kind===`structure`){u=(0,Y.jsx)(`span`,{className:`${d} tr-num-qual`,"data-status":`structure`,children:e.resolution.raw});break bb0}a=`button`,o=d,s=ae(e),t[9]!==n||t[10]!==i?(c=e=>i?.open(n,e.currentTarget),t[9]=n,t[10]=i,t[11]=c):c=t[11],l=h(e)}t[0]=r,t[1]=n,t[2]=i,t[3]=a,t[4]=o,t[5]=s,t[6]=c,t[7]=l,t[8]=u}else a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8];if(u!==Symbol.for(`react.early_return_sentinel`))return u;let d;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Y.jsx)(`span`,{className:`tr-sr`,children:`, source available`}),t[12]=d):d=t[12];let f;return t[13]!==a||t[14]!==o||t[15]!==s||t[16]!==c||t[17]!==l?(f=(0,Y.jsxs)(`button`,{type:a,className:o,"data-status":s,onClick:c,children:[l,d]}),t[13]=a,t[14]=o,t[15]=s,t[16]=c,t[17]=l,t[18]=f):f=t[18],f}var Q=8,$e=6;function et(e,t,n){return Math.max(Q,Math.min(e,n-t-Q))}function tt(e,t,n){if(!(e.width>0||e.height>0||e.left>0||e.top>0))return{left:et((n.w-t.w)/2,t.w,n.w),top:et((n.h-t.h)/2,t.h,n.h)};let r=e.bottom+$e,i=e.top-$e-t.h,a=r+t.h+Q>n.h&&i>=Q;return{left:et(e.left,t.w,n.w),top:et(a?i:r,t.h,n.h)}}var $=320,nt=340,rt=8;function it(e){let t=(0,J.c)(64),{registry:n,valueId:r,anchorRect:i,trail:a,hinted:o,onMarkHinted:s,onDrill:l,onBack:u,onNavigate:d,onDismiss:f}=e,p=(0,q.useRef)(null),v;t[0]===f?v=t[1]:(v={onEscape:f},t[0]=f,t[1]=v),c(p,v);let[x]=(0,q.useState)(!o),S,C;t[2]===s?(S=t[3],C=t[4]):(S=()=>s(),C=[s],t[2]=s,t[3]=S,t[4]=C),(0,q.useEffect)(S,C);let w=(0,q.useRef)(!0),T;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(T=()=>{w.current||p.current?.focus({preventScroll:!0}),w.current=!1},t[5]=T):T=t[5];let E;t[6]===r?E=t[7]:(E=[r],t[6]=r,t[7]=E),(0,q.useEffect)(T,E);let D,O;t[8]===f?(D=t[9],O=t[10]):(D=()=>{let e=e=>{let t=p.current;t&&e.target instanceof Node&&!t.contains(e.target)&&f()};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},O=[f],t[8]=f,t[9]=D,t[10]=O),(0,q.useEffect)(D,O);let k=n.values,A,j,M,N,P,F,I,L,R,z,B,V,H,U;if(t[11]!==i||t[12]!==u||t[13]!==l||t[14]!==d||t[15]!==n.usedIn||t[16]!==n.values||t[17]!==a||t[18]!==r){V=Symbol.for(`react.early_return_sentinel`);bb0:{if(U=k.get(r),!U){V=null;break bb0}let e=ae(U),o=U.scope,s=n.usedIn.get(r)??[],c=U.kind===`grounded`?U.resolution.receipt:null,f=U.kind===`grounded`&&U.resolution.tier===`T1`,v=c?.url?y(c.url):null,x=c?c.host??(c.url?b(c.url):null):null,S=U.kind===`calculated`?U.calc.inputs:[],C=S.slice(0,rt),w=S.length-C.length,T;t[33]!==n.values||t[34]!==a?(T=a.length>0?n.values.get(a[a.length-1]):void 0,t[33]=n.values,t[34]=a,t[35]=T):T=t[35];let E=T,D;t[36]===i?D=t[37]:(D=tt(i,{w:$,h:nt},{w:window.innerWidth,h:window.innerHeight}),t[36]=i,t[37]=D);let{left:O,top:W}=D;H=p,A=`tr-card`,j=`dialog`,M=`false`,N=`Where ${U.label} came from`,P=-1,t[38]!==O||t[39]!==W?(F={left:O,top:W,width:$,maxHeight:nt},t[38]=O,t[39]=W,t[40]=F):F=t[40];let G;t[41]!==u||t[42]!==E?(G=E&&(0,Y.jsxs)(`button`,{type:`button`,className:`tr-back`,onClick:u,"aria-label":`Back to ${E.label}`,children:[`‹ back`,(0,Y.jsxs)(`span`,{className:`tr-back-to`,children:[` to `,E.label]})]}),t[41]=u,t[42]=E,t[43]=G):G=t[43],I=(0,Y.jsxs)(`header`,{className:`tr-head`,children:[G,(0,Y.jsx)(`span`,{className:`tr-badge`,"data-status":e,children:_[e]}),(0,Y.jsx)(`p`,{className:`tr-figure`,children:h(U)}),(0,Y.jsx)(`p`,{className:`tr-label`,children:U.label})]}),L=c&&(0,Y.jsxs)(`section`,{className:`tr-sec`,children:[(0,Y.jsx)(`h3`,{className:`tr-sec-title`,children:`SOURCE`}),c.quote&&(0,Y.jsxs)(`blockquote`,{className:`tr-quote`,children:[`“`,c.quote,`”`]}),f?(0,Y.jsx)(`p`,{className:`tr-host`,children:m(c)}):x&&(0,Y.jsxs)(`p`,{className:`tr-host`,children:[v?(0,Y.jsx)(`a`,{href:v,target:`_blank`,rel:`noreferrer noopener`,children:x}):x,c.date&&(0,Y.jsxs)(`span`,{className:`tr-date`,children:[` · `,c.date]})]})]}),R=o&&(o.region||o.period||o.unit)&&(0,Y.jsxs)(`section`,{className:`tr-sec`,children:[(0,Y.jsx)(`h3`,{className:`tr-sec-title`,children:`SCOPE`}),(0,Y.jsx)(`p`,{className:`tr-chips`,children:[o.region,o.period,o.unit].filter(ot).map(at)})]}),z=U.kind===`calculated`&&(0,Y.jsxs)(`section`,{className:`tr-sec`,children:[(0,Y.jsx)(`h3`,{className:`tr-sec-title`,children:`CALCULATION`}),(0,Y.jsx)(`p`,{className:`tr-formula`,children:g(U.calc.formula,e=>n.values.get(e)?.label)}),(0,Y.jsx)(`ul`,{className:`tr-inputs`,children:C.map(e=>{let t=n.values.get(e);return(0,Y.jsx)(`li`,{children:t?(0,Y.jsxs)(`button`,{type:`button`,className:`tr-input`,onClick:()=>l(e),children:[(0,Y.jsx)(`span`,{className:`tr-input-label`,children:t.label}),(0,Y.jsx)(`span`,{className:`tr-input-val`,children:h(t)})]}):(0,Y.jsx)(`span`,{className:`tr-input tr-input-missing`,children:e})},e)})}),w>0&&(0,Y.jsxs)(`p`,{className:`tr-more`,children:[`…and `,w,` more`]}),U.calc.note&&(0,Y.jsx)(`p`,{className:`tr-note`,children:U.calc.note})]}),B=s.length>0&&(0,Y.jsxs)(`section`,{className:`tr-sec`,children:[(0,Y.jsx)(`h3`,{className:`tr-sec-title`,children:`USED IN`}),(0,Y.jsx)(`ul`,{className:`tr-used`,children:s.map(e=>(0,Y.jsx)(`li`,{children:d?(0,Y.jsx)(`button`,{type:`button`,className:`tr-usedin`,onClick:()=>d(e),children:e.label}):(0,Y.jsx)(`span`,{className:`tr-usedin tr-usedin-flat`,children:e.label})},`${e.surface}:${e.id}:${e.label}`))})]})}t[11]=i,t[12]=u,t[13]=l,t[14]=d,t[15]=n.usedIn,t[16]=n.values,t[17]=a,t[18]=r,t[19]=A,t[20]=j,t[21]=M,t[22]=N,t[23]=P,t[24]=F,t[25]=I,t[26]=L,t[27]=R,t[28]=z,t[29]=B,t[30]=V,t[31]=H,t[32]=U}else A=t[19],j=t[20],M=t[21],N=t[22],P=t[23],F=t[24],I=t[25],L=t[26],R=t[27],z=t[28],B=t[29],V=t[30],H=t[31],U=t[32];if(V!==Symbol.for(`react.early_return_sentinel`))return V;let W;t[44]!==U.kind||t[45]!==U.resolution?(W=U.kind===`illustrative`&&(0,Y.jsxs)(`p`,{className:`tr-caveat`,children:[`Illustrative — shows the shape, not a measured fact. `,U.resolution.illustrative]}),t[44]=U.kind,t[45]=U.resolution,t[46]=W):W=t[46];let G;t[47]===x?G=t[48]:(G=x&&(0,Y.jsx)(`p`,{className:`tr-hint`,children:`Any figure like this one opens its own receipt.`}),t[47]=x,t[48]=G);let ee;return t[49]!==A||t[50]!==j||t[51]!==M||t[52]!==N||t[53]!==P||t[54]!==F||t[55]!==I||t[56]!==L||t[57]!==R||t[58]!==z||t[59]!==B||t[60]!==W||t[61]!==G||t[62]!==H?(ee=(0,Y.jsxs)(`div`,{ref:H,className:A,role:j,"aria-modal":M,"aria-label":N,tabIndex:P,style:F,children:[I,L,R,z,B,W,G]}),t[49]=A,t[50]=j,t[51]=M,t[52]=N,t[53]=P,t[54]=F,t[55]=I,t[56]=L,t[57]=R,t[58]=z,t[59]=B,t[60]=W,t[61]=G,t[62]=H,t[63]=ee):ee=t[63],ee}function at(e){return(0,Y.jsx)(`span`,{className:`tr-chip`,children:e},e)}function ot(e){return!!e}function st(e){let t=(0,J.c)(23),{registry:n,onNavigate:r,children:i,ref:a}=e,[o,s]=(0,q.useState)(null),[c,l]=(0,q.useState)(!1),u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>s(null),t[0]=u):u=t[0];let d;t[1]===n?d=t[2]:(d=[n],t[1]=n,t[2]=d),(0,q.useEffect)(u,d);let f;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(f=()=>s(null),t[3]=f):f=t[3];let p=f,m,h;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(m=()=>({dismiss:p}),h=[p],t[4]=m,t[5]=h):(m=t[4],h=t[5]),(0,q.useImperativeHandle)(a,m,h);let g;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(g=(e,t)=>{t.focus(),s({valueId:e,anchorRect:t.getBoundingClientRect(),trail:[]})},t[6]=g):g=t[6];let _=g,v;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(v=()=>l(!0),t[7]=v):v=t[7];let y=v,b;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(b=e=>{s(t=>t&&{valueId:e,anchorRect:t.anchorRect,trail:[...t.trail,t.valueId]})},t[8]=b):b=t[8];let x=b,S;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(S=()=>{s(ct)},t[9]=S):S=t[9];let C=S,w;t[10]!==c||t[11]!==r||t[12]!==n?(w={registry:n,open:_,onNavigate:r,hinted:c,markHinted:y},t[10]=c,t[11]=r,t[12]=n,t[13]=w):w=t[13];let T=w,E;t[14]!==o||t[15]!==c||t[16]!==r||t[17]!==n?(E=o&&(0,Y.jsx)(it,{registry:n,valueId:o.valueId,anchorRect:o.anchorRect,trail:o.trail,hinted:c,onMarkHinted:y,onDrill:x,onBack:C,onNavigate:r,onDismiss:p}),t[14]=o,t[15]=c,t[16]=r,t[17]=n,t[18]=E):E=t[18];let D;return t[19]!==i||t[20]!==E||t[21]!==T?(D=(0,Y.jsxs)(Xe.Provider,{value:T,children:[i,E]}),t[19]=i,t[20]=E,t[21]=T,t[22]=D):D=t[22],D}function ct(e){let t=e?.trail[e.trail.length-1];return!e||t===void 0?e:{valueId:t,anchorRect:e.anchorRect,trail:e.trail.slice(0,-1)}}var lt=`Recomputed locally from the causes above — a model of what would happen, never an observation.`,ut=`What was actually measured. This column never moves when a lever is pulled.`;function dt(e,t){return(e>0?`+`:``)+d(e,t)}function ft(e){return e!==null&&Number.isFinite(e)&&e>=0&&e<=1}function pt(e){return e.exactBase===null?`nothing measured stands behind this outcome`:`not every step is grounded, so the total stays unmeasured`}function mt(e){let t=(0,J.c)(22),{baseline:n,current:r,unit:i,active:a,observedNote:o}=e,s;t[0]!==n.exactBase||t[1]!==n.fullyGrounded||t[2]!==i?(s=n.fullyGrounded&&n.exactBase!==null?d(n.exactBase,i):null,t[0]=n.exactBase,t[1]=n.fullyGrounded,t[2]=i,t[3]=s):s=t[3];let c=s,l=r.exactBase??n.exactBase,u=a?`1`:void 0,f;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,Y.jsx)(`span`,{className:`tr-chip tr-wi-chip`,title:ut,children:`OBSERVED`}),t[4]=f):f=t[4];let p;t[5]!==n||t[6]!==c||t[7]!==o?(p=(0,Y.jsxs)(`div`,{className:`tr-wi-col`,children:[f,c===null?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`p`,{className:`tr-wi-figure tr-wi-dash`,children:`—`}),(0,Y.jsx)(`p`,{className:`tr-wi-note tr-wi-why`,children:o??pt(n)})]}):(0,Y.jsx)(`p`,{className:`tr-wi-figure`,children:c})]}),t[5]=n,t[6]=c,t[7]=o,t[8]=p):p=t[8];let m;t[9]!==a||t[10]!==l||t[11]!==r.exactDelta||t[12]!==r.explainedPct||t[13]!==r.fullyGrounded||t[14]!==r.relBase||t[15]!==r.relCur||t[16]!==i?(m=a&&(0,Y.jsxs)(`div`,{className:`tr-wi-col tr-wi-hypo`,"data-world":`hypothetical`,children:[(0,Y.jsx)(`span`,{className:`tr-chip tr-wi-chip tr-wi-chip-hypo`,title:lt,children:`HYPOTHETICAL (MODELED)`}),r.fullyGrounded&&l!==null&&r.exactDelta!==null?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`p`,{className:`tr-wi-figure`,children:d(l+r.exactDelta,i)}),(0,Y.jsx)(`p`,{className:`tr-wi-delta`,children:dt(r.exactDelta,i)}),ft(r.explainedPct)&&(0,Y.jsxs)(`p`,{className:`tr-wi-note`,children:[Math.round(r.explainedPct*100),`% explained`]})]}):r.relCur===null?(0,Y.jsx)(`p`,{className:`tr-wi-figure tr-wi-dash`,children:`—`}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`p`,{className:`tr-wi-figure tr-wi-phrase`,children:le(r.relBase??0,r.relCur)}),(0,Y.jsx)(`p`,{className:`tr-wi-note`,children:`relative, not measured`})]})]}),t[9]=a,t[10]=l,t[11]=r.exactDelta,t[12]=r.explainedPct,t[13]=r.fullyGrounded,t[14]=r.relBase,t[15]=r.relCur,t[16]=i,t[17]=m):m=t[17];let h;return t[18]!==u||t[19]!==p||t[20]!==m?(h=(0,Y.jsxs)(`div`,{className:`tr-wi`,"data-active":u,children:[p,m]}),t[18]=u,t[19]=p,t[20]=m,t[21]=h):h=t[21],h}var ht=(0,q.memo)(mt);function gt(e){return{id:e.id,label:e.label,role:e.role,depth:e.depth,tier:e.tier,...e.value===void 0?{}:{value:e.value},...e.unit?{unit:e.unit}:{},...e.receipt?{receipt:e.receipt}:{}}}function _t(e){let t=e.receipts?.[0]??e.receipt;return{from:e.from,to:e.to,sign:e.sign,tier:e.tier,...e.verb?{verb:e.verb}:{},...e.weight===void 0?{}:{weight:e.weight},...t&&!e.provisional?{receipt:t}:{},...e.provisional?{provisional:!0}:{}}}function vt(e){return{center:e.title,outcomeId:e.outcomeId,nodes:e.nodes.map(gt),edges:e.edges.map(_t),provenance:{...e.provenance.illustrative?{illustrative:!0}:{},...e.provenance.notes?.length?{notes:e.provenance.notes}:{}}}}var yt=e=>`node:${e}`,bt=(e,t)=>`node:${e}@${t}`;function xt(e,t){let n=e.provenance.illustrative===!0,r=[],i=[],a=[],o=new Map,s=[],c=new Map,l=(e,t,n)=>{!e||o.has(e.id)||(o.set(e.id,e),s.push(t),i.push(n))},u=(e,t)=>{c.set(e.id,e.label),r.push({id:e.id,label:e.label,role:e.role,...e.detail===void 0?{}:{detail:e.detail},...e.domain===void 0?{}:{domain:e.domain},...t===void 0?{}:{parentId:t}});let i=e.series,a=e.unit??i?.unit,o=t=>({valueId:t,surface:`node`,id:e.id,label:e.label});if(e.value!==void 0){let t=yt(e.id);l(F(t,e.label,e.value,e.tier,a,e.receipt,n),o(t),{valueId:t,entityId:e.id})}if(i)for(let t of i.points){let r=bt(e.id,t.t),a=F(r,`${e.label} · ${t.t}`,t.value,i.tier,i.unit,t.receipt??i.receipt,n,t.t);l(a,o(r),{valueId:r,entityId:e.id,at:t.t})}for(let t of e.children??[])u(t,e.id)};for(let t of e.nodes)u(t);return B(e.edges).forEach((e,n)=>{let r=`${c.get(e.from)??e.from} ${e.verb??`→`} ${c.get(e.to)??e.to}`,i=t.edges[n]?.id;if(i!==void 0){a.push({id:i,from:e.from,to:e.to,...e.relation===void 0?{}:{kind:e.relation},...e.sign===void 0?{}:{sign:e.sign},...e.weight===void 0?{}:{weight:e.weight}});for(let t of[e.from,e.to])s.push({valueId:yt(t),surface:`edge`,id:i,label:r})}}),{title:e.title,entities:r,relations:a,facts:i,trust:I(o,s),outcomeId:e.outcomeId,...n?{illustrative:n}:{}}}var St=1100;function Ct(e,t,n,r){let i=!1,a=e=>{i||(i=!0,r(e))};(async()=>{for(let r=Math.max(0,t);r<e.length;r++){let t=e[r];if(!t)continue;if(n.isCancelled()){a(`cancelled`);return}let i=E(t.say),o=n.speakLine?.(t.say)??null,s=o?await T(o):!1;if(n.isCancelled()){a(`cancelled`);return}n.apply(t,r),o&&s?await O(o,i,St):await D(i)}a(n.isCancelled()?`cancelled`:`complete`)})()}function wt({beats:e,apply:t,speakLine:n}){let[r,i]=(0,q.useState)(-1),[a,o]=(0,q.useState)(!1),s=(0,q.useRef)(0),c=(0,q.useRef)(e);c.current=e;let l=(0,q.useRef)(t);l.current=t;let u=(0,q.useRef)(n);u.current=n;let d=(0,q.useCallback)(()=>{s.current+=1,o(!1)},[]),f=(0,q.useCallback)(e=>{let t=s.current+=1;o(!0),Ct(c.current,e,{speakLine:e=>u.current?.(e)??null,apply:(e,t)=>{i(t),l.current(e,t)},isCancelled:()=>s.current!==t},()=>{s.current===t&&o(!1)})},[]);(0,q.useEffect)(()=>()=>void(s.current+=1),[]),(0,q.useEffect)(()=>{s.current+=1,o(!1),i(-1)},[e]);let p=(0,q.useCallback)(()=>{if(a){d();return}let e=c.current.length;e!==0&&f(r>=0&&r<e-1?r:0)},[a,r,f,d]),m=(0,q.useCallback)(e=>{let t=c.current.length;t!==0&&f(Math.min(Math.max(e,0),t-1))},[f]),h=(0,q.useCallback)(()=>{d(),i(-1)},[d]);return{index:r,playing:a,caption:r>=0?e[r]?.caption??null:null,toggle:p,seek:m,reset:h}}function Tt(e){let t=(0,J.c)(33),{count:n,index:r,playing:i,caption:a,expanded:o,onToggle:s,onSeek:c,inviting:l}=e;if(n===0)return null;let u=Math.min(Math.max(r,-1),n-1),d=i?``:void 0,f=o?``:void 0,p=`${o?108:54}px`,m;t[0]===p?m=t[1]:(m={"--wo-transport-h":p},t[0]=p,t[1]=m);let h=m,g=l&&!i?``:void 0,_=i?`Pause the walkthrough`:`Walk me through it`,v=i?`❙❙`:`▶`,y;t[2]===v?y=t[3]:(y=(0,Y.jsx)(`span`,{className:`wo-play-glyph`,"aria-hidden":`true`,children:v}),t[2]=v,t[3]=y);let b=i?`Pause`:`Walk me through it`,x;t[4]===b?x=t[5]:(x=(0,Y.jsx)(`span`,{className:`wo-play-label`,children:b}),t[4]=b,t[5]=x);let S;t[6]!==s||t[7]!==x||t[8]!==g||t[9]!==_||t[10]!==y?(S=(0,Y.jsxs)(`button`,{type:`button`,className:`wo-play`,"data-inviting":g,onClick:s,"aria-label":_,children:[y,x]}),t[6]=s,t[7]=x,t[8]=g,t[9]=_,t[10]=y,t[11]=S):S=t[11];let C;t[12]!==l||t[13]!==i?(C=l&&!i&&(0,Y.jsx)(`span`,{className:`wo-play-aside`,children:`or press any cause`}),t[12]=l,t[13]=i,t[14]=C):C=t[14];let w;t[15]!==u||t[16]!==n||t[17]!==o||t[18]!==c?(w=o&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`div`,{className:`wo-track`,role:`group`,"aria-label":`Walkthrough beats`,children:Array.from({length:n},(e,t)=>(0,Y.jsx)(`button`,{type:`button`,className:`wo-tick`,"data-state":t<u?`past`:t===u?`now`:`ahead`,onClick:()=>c(t),"aria-label":`Beat ${t+1} of ${n}`,"aria-current":t===u?`step`:void 0},t))}),(0,Y.jsxs)(`span`,{className:`wo-transport-count`,"aria-hidden":`true`,children:[u<0?n:u+1,`/`,n]})]}),t[15]=u,t[16]=n,t[17]=o,t[18]=c,t[19]=w):w=t[19];let T;t[20]!==S||t[21]!==C||t[22]!==w?(T=(0,Y.jsxs)(`div`,{className:`wo-transport-row`,children:[S,C,w]}),t[20]=S,t[21]=C,t[22]=w,t[23]=T):T=t[23];let E;t[24]!==a||t[25]!==o?(E=o&&(0,Y.jsx)(`p`,{className:`wo-caption`,"aria-live":`polite`,children:a===null?``:k(a)}),t[24]=a,t[25]=o,t[26]=E):E=t[26];let D;return t[27]!==d||t[28]!==T||t[29]!==E||t[30]!==f||t[31]!==h?(D=(0,Y.jsxs)(`div`,{className:`wo-transport`,"data-playing":d,"data-open":f,style:h,children:[T,E]}),t[27]=d,t[28]=T,t[29]=E,t[30]=f,t[31]=h,t[32]=D):D=t[32],D}var Et=170,Dt={contributes:`fed by`,causes:`driven by`,dampens:`held back by`,enables:`made possible by`,correlates:`moving together with`},Ot={1:`pushed up by`,[-1]:`pushed down by`};function kt(e){let t=e.split(` `,1)[0]??``;return t.length===0||/[A-Z]/.test(t.slice(1))?e:e[0].toLowerCase()+e.slice(1)}var At={graph:`And that is how the causes fit together.`,timeline:`And here are the same causes, in time.`,chart:`And here is what each one actually measured.`,flow:`And here is how much each one contributed.`,spheres:`And here are the kinds of force it is made of.`};function jt(e,t){let n=e.values.get(yt(t));if(!n||n.kind===`structure`)return null;let r=h(n);return n.kind===`illustrative`?{say:`Illustratively, about ${r}.`,shown:`Illustratively, about ${r}.`}:{say:`Measured at ${r}.`,shown:`Measured at ${r}.`}}function Mt(e){return e.kind?e.kind===`dampens`||e.kind===`enables`||e.kind===`correlates`:e.sign===-1}function Nt(e){return e.kind&&Dt[e.kind]?Dt[e.kind]:Ot[e.sign??1]??`fed by`}function Pt(e){let t=e.nodes.filter(e=>e.parentId===void 0),n=new Set(t.map(e=>e.id)),r=e.edges.filter(e=>n.has(e.from)&&n.has(e.to)),i=new Map(t.map(e=>[e.id,e.depth??0])),a=new Map;for(let e of r)a.set(e.from,(a.get(e.from)??0)+(e.weight??0));let o=new Map(t.map(e=>[e.id,0]));for(let e of r)o.set(e.to,(o.get(e.to)??0)+1);let s=(e,t)=>(i.get(e)??0)-(i.get(t)??0)||(a.get(t)??0)-(a.get(e)??0)||(e<t?-1:+(e>t)),c=t.filter(e=>o.get(e.id)===0).map(e=>e.id),l=[],u=new Set;for(;c.length>0;){c.sort(s);let e=c.shift();if(!(e===void 0||u.has(e))){u.add(e),l.push(e);for(let t of r){if(t.from!==e)continue;let n=(o.get(t.to)??0)-1;o.set(t.to,n),n<=0&&!u.has(t.to)&&c.push(t.to)}}}for(let e of t.map(e=>e.id).sort(s))u.has(e)||l.push(e);return l}function Ft(e,t,n,r={}){let i=Pt(t);if(i.length<2)return[];let a=new Map(e.nodes.map(e=>[e.id,e])),o=new Map(t.nodes.map(e=>[e.id,e.label])),s=new Map(i.map((e,t)=>[e,t])),c=e=>t.edges.filter(t=>t.to===e&&s.has(t.from)&&(s.get(t.from)??0)<(s.get(e)??0)).sort((e,t)=>(t.weight??0)-(e.weight??0)||(e.id<t.id?-1:1))[0],l=[],u=i.at(-1)===e.outcomeId?i.length-1:i.length,d=u===1?`One cause, one outcome. Here is how it connects.`:`${u} causes, one outcome. Here is how they connect.`;l.push({nodeId:e.outcomeId,wide:!0,rep:`graph`,say:d,caption:d});let f=null;for(let[t,r]of i.entries()){let s=a.get(r),u=o.get(r)??r,d=c(r),p=r===e.outcomeId&&t===i.length-1,m=d?o.get(d.from)??d.from:null,h;h=p?d?`And it ends here: ${kt(u)}, ${Nt(d)} ${d.from===f?`it`:kt(m??``)}.`:`And it ends here: ${kt(u)}.`:d?d.from===f?Mt(d)?`Then ${kt(u)}, ${Nt(d)} it.`:`Then ${kt(u)}.`:`${u}, ${Nt(d)} ${kt(m??``)}.`:t===0?`It starts with ${kt(u)}.`:`Alongside it: ${u}.`,f=r;let g=[h],_=[h],v=jt(n,r);v&&(g.push(v.say),_.push(v.shown));let y=s?.detail;y&&(g.push(w(S(y),Et)),_.push(w(C(y),Et))),l.push({nodeId:r,...d?{edgeId:d.id}:{},say:g.join(` `),caption:_.join(` `)})}if(r.closeOn){let t=At[r.closeOn];l.push({nodeId:e.outcomeId,wide:!0,rep:r.closeOn,say:t,caption:t})}return l}var It={economy:`var(--domain-economy)`,policy:`var(--domain-policy)`,technology:`var(--domain-technology)`,science:`var(--domain-science)`,environment:`var(--domain-environment)`,society:`var(--domain-society)`,health:`var(--domain-health)`,conflict:`var(--domain-conflict)`},Lt=.5;function Rt(e){let t=e.nodes.filter(e=>e.parentId===void 0);if(t.length===0)return null;let n=new Map;for(let e of t)e.domain!==void 0&&n.set(e.domain,(n.get(e.domain)??0)+1);if([...n.values()].reduce((e,t)=>e+t,0)/t.length<Lt)return null;let r=[...n.entries()].sort((e,t)=>t[1]-e[1]||(e[0]<t[0]?-1:1)).map(([e])=>It[e]).filter(e=>e!==void 0);return r.length===0?null:{air1:r[0],air2:r[1]??r[0]}}r();var zt=5,Bt=`wo-stage`,Vt=`an illustrative living answer measures nothing, so there is no baseline`;function Ht(e){if(e.length<2)return null;let t=e.reduce((e,t)=>Math.min(e,t.v),1/0),n=e.reduce((e,t)=>Math.max(e,t.v),-1/0)-t,r=e.length-1;return e.map((e,i)=>{let a=i/r*100,o=n===0?10:18-(e.v-t)/n*16;return`${i===0?`M`:`L`} ${Math.round(a*10)/10} ${Math.round(o*10)/10}`}).join(` `)}function Ut(e,t){return Wt(e,t)?.length??0}function Wt(e,t){for(let n of e){if(n.id===t)return n.children;let e=n.children===void 0?void 0:Wt(n.children,t);if(e)return e}}function Gt(e){let{value:t,...n}=e;return n}function Kt(e,t){let n=new Map;for(let[r,i]of e.relativeByNode){let e=t.relativeByNode.get(r)??0;i>0&&n.set(r,e/i)}return n}function qt(e,t,n,r){return{exactBase:n??null,exactDelta:e.outcomeDelta,explainedPct:e.explainedPct,fullyGrounded:e.fullyGrounded&&!r,relBase:t.relativeOutcome,relCur:e.relativeOutcome}}function Jt(e){let t=(0,J.c)(14),{spec:n,question:r,failed:i,onRetry:a,onClose:o,view:s,onExpandNode:c,autoWalk:l,speakLine:u}=e;if(n){let e;return t[0]!==l||t[1]!==o||t[2]!==c||t[3]!==u||t[4]!==n||t[5]!==s?(e=(0,Y.jsx)(Xt,{spec:n,view:s,onClose:o,onExpandNode:c,autoWalk:l,speakLine:u}),t[0]=l,t[1]=o,t[2]=c,t[3]=u,t[4]=n,t[5]=s,t[6]=e):e=t[6],e}let d;t[7]===r?d=t[8]:(d=r?v(r):``,t[7]=r,t[8]=d);let f=i===!0,p;return t[9]!==o||t[10]!==a||t[11]!==d||t[12]!==f?(p=(0,Y.jsx)(Yt,{title:d,failed:f,onRetry:a,onClose:o}),t[9]=o,t[10]=a,t[11]=d,t[12]=f,t[13]=p):p=t[13],p}function Yt(e){let t=(0,J.c)(17),{title:n,failed:r,onRetry:i,onClose:a}=e,o=`Living answer: ${n}`,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`span`,{className:`wo-kicker`,children:`THE LIVING ANSWER`}),t[0]=s):s=t[0];let c;t[1]===n?c=t[2]:(c=(0,Y.jsxs)(`div`,{className:`wo-title`,children:[s,(0,Y.jsx)(`h2`,{children:n})]}),t[1]=n,t[2]=c);let l;t[3]===a?l=t[4]:(l=a&&(0,Y.jsx)(`div`,{className:`wo-head-actions`,children:(0,Y.jsx)(`button`,{type:`button`,className:`wo-btn wo-btn-close`,onClick:a,"aria-label":`Back to the answer`,children:`← Back to the answer`})}),t[3]=a,t[4]=l);let u;t[5]!==c||t[6]!==l?(u=(0,Y.jsxs)(`header`,{className:`wo-head`,children:[c,l]}),t[5]=c,t[6]=l,t[7]=u):u=t[7];let d;t[8]!==r||t[9]!==i?(d=(0,Y.jsx)(`div`,{className:`wo-shell`,role:`status`,"aria-live":`polite`,children:r?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`p`,{className:`wo-shell-line`,children:`This living answer didn’t come back.`}),(0,Y.jsx)(`p`,{className:`wo-shell-note`,children:`Nothing was built, and Mavéa won’t stand in a causal web it can’t source. The answer behind this card is untouched.`}),i&&(0,Y.jsx)(`button`,{type:`button`,className:`wo-btn`,onClick:i,children:`Try again`})]}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`div`,{className:`wo-shell-ground`,"aria-hidden":`true`}),(0,Y.jsx)(`span`,{className:`wo-shell-pulse`,"aria-hidden":`true`}),(0,Y.jsx)(`p`,{className:`wo-shell-line`,children:`Building your living answer…`}),(0,Y.jsx)(`p`,{className:`wo-shell-note`,children:`One model call, grounded in what this answer already found. Once it is built it is kept — re-opening it, and replaying this turn, costs nothing.`})]})}),t[8]=r,t[9]=i,t[10]=d):d=t[10];let f;t[11]!==u||t[12]!==d?(f=(0,Y.jsxs)(`div`,{className:`wo-panel`,children:[u,d]}),t[11]=u,t[12]=d,t[13]=f):f=t[13];let p;return t[14]!==o||t[15]!==f?(p=(0,Y.jsx)(`section`,{className:`wo-scrim`,"aria-label":o,children:f}),t[14]=o,t[15]=f,t[16]=p):p=t[16],p}function Xt({spec:e,view:t,onClose:n,onExpandNode:r,autoWalk:c,speakLine:l}){let[u,d]=(0,q.useState)(()=>p(e.title));(0,q.useEffect)(()=>{f(e.title,u)},[e.title,u]);let[m,h]=(0,q.useState)(null),g=(0,q.useMemo)(()=>{if(u.size===0)return e;let t=e;for(let[e,n]of u)t=M(t,e,n);return t},[e,u]),_=g.provenance.illustrative===!0,y=(0,q.useMemo)(()=>V(g),[g]),b=(0,q.useMemo)(()=>xt(g,y),[g,y]),x=b.trust,S=(0,q.useMemo)(()=>vt(g),[g]),[C,w]=(0,q.useState)(()=>new Map),[T,E]=(0,q.useState)(null),[D,O]=(0,q.useState)(!1),k=(0,q.useMemo)(()=>[...C.values()].some(e=>e!==100),[C]),F=(0,q.useMemo)(()=>[...C].map(([e,t])=>({nodeId:e,pct:t/100})),[C]),I=(0,q.useMemo)(()=>ie(S,[]),[S]),R=(0,q.useMemo)(()=>ie(S,F),[S,F]),z=(0,q.useMemo)(()=>k?Kt(I,R):null,[k,I,R]),U=(0,q.useDeferredValue)(z),G=(0,q.useCallback)(e=>H(e,y),[y]),K=(0,q.useMemo)(()=>ee(y),[y]),te=(0,q.useMemo)(()=>{let e=g.nodes[0]?.tier;return e!==void 0&&g.nodes.every(t=>t.tier===e)?``:void 0},[g]),ne=(0,q.useMemo)(()=>Rt(y),[y]),J=t&&G(t)?t:void 0,ae=We({world:y,insetBottom:D?108:54,initialRep:J??W(y)}),{rep:oe,setRep:se,expandedIds:ce,toggleExpand:le,unfoldsOnStage:ue}=ae;(0,q.useEffect)(()=>{J&&se(J)},[J,se]);let fe=(0,q.useMemo)(()=>{let e=new Map(y.nodes.map(e=>[e.id,e.parentId])),t=new Map;for(let n of y.nodes){let r=n.id,i=new Set([r]),a=e.get(r);for(;a!==void 0&&!i.has(a);)i.add(a),r=a,a=e.get(r);t.set(n.id,r)}return t},[y]),pe=(0,q.useMemo)(()=>{let e=y.nodes.map(e=>{let t=Gt(e),n=U?.get(fe.get(e.id)??e.id),r=A(e.label);return{...t,label:r,...n===void 0?{}:{shift:n}}});return{...y,nodes:e}},[y,U,fe]),me=(0,q.useMemo)(()=>{let e=new Map,t=n=>{e.set(n.id,n);for(let e of n.children??[])t(e)};for(let e of g.nodes)t(e);return e},[g]),he=(0,q.useMemo)(()=>{let e=B(g.edges);return new Map(y.edges.map((t,n)=>[t.id,e[n]]))},[y,g]),ge=(0,q.useRef)(null),_e=(0,q.useCallback)(()=>ge.current?.dismiss(),[]),ve=(0,q.useCallback)(e=>{(e.surface===`node`||e.surface===`edge`)&&E({kind:e.surface,id:e.id})},[]),[ye,be]=(0,q.useState)(void 0),xe=K.find(e=>e!==`graph`),[Se,Ce]=(0,q.useState)([]);(0,q.useEffect)(()=>{let e=globalThis.requestIdleCallback,t=()=>Ce(Ft(g,y,x,xe?{closeOn:xe}:{}));if(typeof e==`function`){let n=e(t,{timeout:2e3});return()=>globalThis.cancelIdleCallback?.(n)}let n=setTimeout(t,1);return()=>clearTimeout(n)},[g,y,x,xe]);let{focusNode:we}=ae,Te=(0,q.useCallback)(e=>{e.rep&&se(e.rep),E({kind:`node`,id:e.nodeId}),be(e.edgeId),e.wide?we(null):e.rep||we(e.nodeId)},[we,se]),{index:Ee,playing:De,caption:Oe,toggle:ke,seek:je,reset:Me}=wt((0,q.useMemo)(()=>({beats:Se,apply:Te,...l?{speakLine:l}:{}}),[Se,Te,l]));(0,q.useEffect)(()=>{O(De||Ee>=0)},[De,Ee]);let Pe=(0,q.useRef)(!1);(0,q.useEffect)(()=>{typeof matchMedia==`function`&&matchMedia(`(prefers-reduced-motion: reduce)`).matches||!c||Pe.current||Se.length===0||(Pe.current=!0,ke())},[c,Se.length,ke]);let[Fe,Ie]=(0,q.useState)(!0),Le=(0,q.useCallback)(()=>Ie(!1),[]),X=(0,q.useCallback)(()=>{Me(),be(void 0)},[Me]),Re=(0,q.useRef)(n);Re.current=n;let ze=(0,q.useRef)(ke);ze.current=ke;let Be=(0,q.useRef)(X);Be.current=X,(0,q.useEffect)(()=>{let e=e=>{if(e.key===`Escape`){Be.current(),Re.current?.();return}(e.key===` `||e.key===`Spacebar`)&&(e.target?.closest(`button, input, select, textarea, [contenteditable="true"]`)||(e.preventDefault(),ze.current()))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[]);let Ve=(0,q.useCallback)(e=>{X(),E({kind:`node`,id:e.id})},[X]),He=(0,q.useCallback)(e=>{X(),E({kind:`edge`,id:e})},[X]),Ue=(0,q.useCallback)((e,t)=>{X(),w(n=>new Map(n).set(e,t))},[X]),Ge=(0,q.useCallback)(()=>{X(),w(new Map)},[X]),Ke=(0,q.useCallback)(e=>{!r||m!==null||(h(e),r(e,g).then(t=>{h(null);let n=t===null?void 0:Wt(t.nodes,e);n?.length&&(d(t=>new Map(t).set(e,n)),ue(e)?le(e):E({kind:`node`,id:e}))},()=>h(null)))},[r,ue,m,g,le]),qe=(0,q.useCallback)((e,t)=>{if(t===`entry`&&oe===`timeline`){let t=me.get(e.id),n=t?.date,r=t?.series?.points,i=n?.until!==void 0||(r?.length??0)>1,a=n?.t??r?.[0]?.t;return i||!a?null:(0,Y.jsx)(`span`,{className:`wo-when`,"data-said":e.dateGrounded?``:void 0,children:a})}if(t!==`card`)return null;let n=ce.has(e.id),i=Ut(g.nodes,e.id),a=i>0,o=Ht(e.series??[]),s=me.get(e.id),c=s?.value===void 0?s?.date:void 0,l=c===void 0||j(c.t)===null?null:c.until!==void 0&&j(c.until)!==null?`${c.t}–${c.until}`:c.t,u=a&&ue(e.id),d=!a&&r!==void 0,f=m===e.id,p=a&&!u?i:0;return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(Qe,{id:yt(e.id),className:`wo-num`}),e.shift!==void 0&&de(e.shift)!==null&&(0,Y.jsx)(`span`,{className:`wo-shift`,"data-dir":e.shift<1?`down`:`up`,children:de(e.shift)}),o!==null&&(0,Y.jsx)(`svg`,{className:`wo-trace`,viewBox:`0 0 100 20`,preserveAspectRatio:`none`,"aria-hidden":`true`,children:(0,Y.jsx)(`path`,{d:o,fill:`none`})}),l!==null&&(0,Y.jsx)(`span`,{className:`wo-when`,"data-said":e.dateGrounded?``:void 0,children:l}),p>0&&(0,Y.jsx)(`span`,{className:`wo-parts-count`,children:`${p} part${p===1?``:`s`}`}),(u||d)&&(0,Y.jsx)(`button`,{type:`button`,className:`wo-expand`,"aria-expanded":u?n:void 0,"aria-busy":f||void 0,disabled:f||d&&m!==null,"aria-label":`${u&&n?`Close`:`Break down`} ${e.label}`,onClick:t=>{t.stopPropagation(),u?le(e.id):Ke(e.id)},children:f?`breaking down…`:u&&n?`close`:`break down`})]})},[ue,g,me,ce,le,r,m,Ke,oe]),Z=me.get(g.outcomeId),Je=(0,q.useMemo)(()=>qt(I,I,Z?.value,_),[I,Z?.value,_]),Xe=(0,q.useMemo)(()=>qt(R,I,Z?.value,_),[R,I,Z?.value,_]),Ze=(0,q.useMemo)(()=>({causes:g.nodes.length,links:g.edges.length,sourced:g.nodes.filter(e=>e.receipt!==void 0).length}),[g]),Q=T?.kind===`node`?me.get(T.id):void 0,$e=(0,q.useMemo)(()=>Q===void 0?[]:L(b,Q.id),[b,Q]),[et,tt]=(0,q.useState)(null);(0,q.useEffect)(()=>{if(Q===void 0){tt(null);return}let e=!0;return(async()=>{let{hierarchyLens:t}=await i(async()=>{let{hierarchyLens:e}=await import(`./lens-Ba83fBmq.js`);return{hierarchyLens:e}},__vite__mapDeps([0,1,2,3]));if(!e)return;let n=t.compile(b,Q.id);if(n===null){tt(null);return}await a(o([n.block]));let r=s(n.block.type);e&&r&&tt({plan:n,render:r})})(),()=>{e=!1}},[b,Q]);let $=T?.kind===`edge`?he.get(T.id):void 0,nt=(0,q.useMemo)(()=>g.nodes.filter(e=>e.role===`root`).map(e=>({id:e.id,label:A(e.label),pct:C.get(e.id)??100})),[g.nodes,C]);return(0,Y.jsx)(st,{registry:x,onNavigate:ve,ref:ge,children:(0,Y.jsx)(`section`,{className:`wo-scrim`,"aria-label":`Living answer: ${v(g.title)}`,onPointerDownCapture:Le,onKeyDownCapture:Le,children:(0,Y.jsxs)(`div`,{className:`wo-panel`,children:[(0,Y.jsxs)(`header`,{className:`wo-head`,children:[(0,Y.jsxs)(`div`,{className:`wo-title`,children:[(0,Y.jsx)(`span`,{className:`wo-kicker`,children:`THE LIVING ANSWER`}),(0,Y.jsx)(`h2`,{children:v(g.title)})]}),(0,Y.jsxs)(`div`,{className:`wo-head-actions`,children:[K.length===1?(0,Y.jsx)(`span`,{className:`wo-chip wo-chip-sole`,children:Ne[K[0]].chip}):(0,Y.jsx)(`div`,{className:`wo-views`,role:`tablist`,"aria-label":`View`,children:K.slice(0,zt).map((e,t,n)=>(0,Y.jsx)(`button`,{type:`button`,id:`wo-tab-${e}`,className:`wo-chip`,role:`tab`,"aria-selected":oe===e,"aria-controls":Bt,tabIndex:oe===e?0:-1,onKeyDown:e=>{let r=e.key===`ArrowRight`?1:e.key===`ArrowLeft`?-1:0;if(r===0)return;e.preventDefault();let i=n[(t+r+n.length)%n.length];X(),se(i),document.getElementById(`wo-tab-${i}`)?.focus()},onClick:()=>{X(),se(e)},children:Ne[e].chip},e))}),(0,Y.jsx)(`button`,{type:`button`,className:`wo-btn`,onClick:Ge,disabled:!k,children:`Reset`}),n&&(0,Y.jsx)(`button`,{type:`button`,className:`wo-btn wo-btn-close`,onClick:n,"aria-label":`Back to the answer`,children:`← Back to the answer`})]})]}),_&&(0,Y.jsx)(`div`,{className:`wo-banner wo-banner-illustrative`,children:`Illustrative model — shows the shape, not your numbers.`}),(0,Y.jsxs)(`p`,{className:`wo-legend`,"aria-live":`polite`,children:[(0,Y.jsxs)(`span`,{className:`wo-legend-view`,children:[Ne[oe].caption,`.`]}),` `,Ne[oe].legend]}),(0,Y.jsxs)(`div`,{className:`wo-body`,children:[(0,Y.jsxs)(`div`,{className:`wo-stage`,id:Bt,role:K.length>1?`tabpanel`:void 0,"aria-labelledby":K.length>1?`wo-tab-${oe}`:void 0,"data-uniform-tier":te,"data-illustrative":_?``:void 0,onWheelCapture:_e,onPointerDownCapture:_e,style:ne===null?void 0:{"--wo-air-1":ne.air1,"--wo-air-2":ne.air2},children:[(0,Y.jsx)(Ae,{stage:ae,world:pe,renderFace:qe,onNodeClick:Ve,onEdgeClick:He,selectedId:T?.kind===`node`?T.id:void 0,litEdgeId:ye}),(0,Y.jsx)(Tt,{count:Se.length,index:Ee,playing:De,caption:Oe,expanded:D,onToggle:ke,onSeek:je,inviting:Fe})]}),(0,Y.jsxs)(`aside`,{className:`wo-rail`,children:[(0,Y.jsx)(Ye,{levers:nt,onSet:Ue,onReset:Ge}),(0,Y.jsx)(ht,{baseline:Je,current:Xe,unit:Z?.unit,active:k,observedNote:_?Vt:void 0}),(0,Y.jsxs)(`div`,{className:`wo-detail`,children:[(0,Y.jsx)(`span`,{className:`wo-rail-kicker`,children:`EVIDENCE`}),!T&&(0,Y.jsxs)(`div`,{className:`wo-standing`,children:[(0,Y.jsxs)(`p`,{className:`wo-invite`,children:[`Press `,(0,Y.jsx)(`strong`,{children:`Walk me through it`}),` and Mavéa takes you cause by cause — free, and as often as you like.`]}),(0,Y.jsx)(`p`,{className:`wo-hint`,children:`Or tap any cause or link to see what stands behind it.`}),(0,Y.jsxs)(`dl`,{className:`wo-facts`,children:[(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`dt`,{children:`Causes`}),(0,Y.jsx)(`dd`,{children:Ze.causes})]}),(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`dt`,{children:`Links`}),(0,Y.jsx)(`dd`,{children:Ze.links})]}),(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`dt`,{children:_?`Illustrative`:`With a source`}),(0,Y.jsx)(`dd`,{children:_?`every cause`:Ze.sourced})]})]}),Z&&(0,Y.jsxs)(`p`,{className:`wo-standing-outcome`,children:[(0,Y.jsx)(`span`,{className:`wo-standing-lead`,children:`It ends at`}),` `,Z.label,Z.detail?(0,Y.jsx)(`span`,{className:`wo-standing-note`,children:Z.detail}):null]}),(0,Y.jsx)(`p`,{className:`wo-hint`,children:`Turn a root cause down and the rest of the web re-weights — nothing is re-computed by a model, and no projected number is invented.`})]}),Q&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`h3`,{className:`wo-detail-title`,children:Q.label}),Q.detail&&(0,Y.jsx)(`p`,{className:`wo-detail-note`,children:Q.detail}),(0,Y.jsx)(`p`,{className:`wo-detail-figure`,children:(0,Y.jsx)(Qe,{id:yt(Q.id)})}),Q.series&&(0,Y.jsx)(`ul`,{className:`wo-series`,children:Q.series.points.map((e,t)=>(0,Y.jsxs)(`li`,{children:[(0,Y.jsx)(`span`,{className:`wo-series-t`,children:e.t}),(0,Y.jsx)(Qe,{id:bt(Q.id,e.t)})]},`${e.t}:${t}`))}),(et||$e.length>0)&&(0,Y.jsxs)(`div`,{className:`wo-parts`,children:[(0,Y.jsx)(`span`,{className:`wo-rail-kicker`,children:`WHAT THIS IS MADE OF`}),et?et.render(et.plan.block.props,{delay:0}):(0,Y.jsx)(`ul`,{className:`wo-part-list`,children:$e.map(e=>(0,Y.jsx)(`li`,{children:A(e.label)},e.id))})]})]}),$&&(0,Y.jsx)(re,{relation:P($.relation),sign:$.sign,status:$.status??N($),receipts:$.receipts??($.receipt?[$.receipt]:[]),counter:$.counter,provisional:$.provisional})]})]})]})]})})})}export{Jt as WorldOverlay};
@@ -1 +1 @@
1
- import{t as e}from"./compiler-runtime-qQQXpJgv.js";import{t}from"./jsx-runtime-DeHZSEgm.js";import{ot as n}from"./index-Db-FgYxX.js";import{t as r}from"./Orb-D8lhTdmY.js";var i=e(),a=t();function o(e){let t=(0,i.c)(17),{reverse:n,eyebrow:r,eyebrowTone:o,title:s,body:c,visual:l}=e,u=`fl-panel`+(n?` reverse`:``),d=`fl-panel-eyebrow tone-`+o,f;t[0]!==r||t[1]!==d?(f=(0,a.jsx)(`div`,{className:d,children:r}),t[0]=r,t[1]=d,t[2]=f):f=t[2];let p;t[3]===s?p=t[4]:(p=(0,a.jsx)(`h3`,{className:`fl-panel-title`,children:s}),t[3]=s,t[4]=p);let m;t[5]===c?m=t[6]:(m=(0,a.jsx)(`p`,{className:`fl-panel-body`,children:c}),t[5]=c,t[6]=m);let h;t[7]!==f||t[8]!==p||t[9]!==m?(h=(0,a.jsxs)(`div`,{className:`fl-panel-copy`,children:[f,p,m]}),t[7]=f,t[8]=p,t[9]=m,t[10]=h):h=t[10];let g;t[11]===l?g=t[12]:(g=(0,a.jsx)(`div`,{className:`fl-panel-visual`,children:l}),t[11]=l,t[12]=g);let _;return t[13]!==u||t[14]!==h||t[15]!==g?(_=(0,a.jsxs)(`div`,{className:u,children:[h,g]}),t[13]=u,t[14]=h,t[15]=g,t[16]=_):_=t[16],_}var s=[`46%`,`52%`,`50%`,`58%`,`74%`,`100%`],c=[[24,72],[98,98],[173,116],[247,98],[322,66],[396,36]],l=[`Q1`,`Q2`,`Q3`,`Q4`,`Q5`,`Q6`];function u(){let e=(0,i.c)(12),t,n,r,o,s,u,m,h,g;if(e[0]===Symbol.for(`react.memo_cache_sentinel`)){let i=c.map(p).join(` `);u=`fl-card fl-pen`,m=(0,a.jsxs)(`div`,{className:`fl-pen-head`,children:[(0,a.jsx)(`span`,{className:`fl-ink-label`,children:`Revenue · the road back`}),(0,a.jsxs)(`span`,{className:`fl-pen-value`,children:[`$4.2M`,(0,a.jsx)(`i`,{className:`fl-pen-delta`,children:`▲ recovering`})]})]}),t=`fl-pen-plot`,n=`0 0 420 184`,r=`true`,o=(0,a.jsx)(`defs`,{children:(0,a.jsxs)(`linearGradient`,{id:`fl-pen-fill`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,a.jsx)(`stop`,{offset:`0`,className:`fl-pen-fill-top`}),(0,a.jsx)(`stop`,{offset:`1`,className:`fl-pen-fill-bot`})]})}),s=(0,a.jsxs)(`g`,{className:`fl-pen-grid`,children:[(0,a.jsx)(`line`,{x1:`24`,y1:`48`,x2:`396`,y2:`48`}),(0,a.jsx)(`line`,{x1:`24`,y1:`84`,x2:`396`,y2:`84`}),(0,a.jsx)(`line`,{x1:`24`,y1:`120`,x2:`396`,y2:`120`}),(0,a.jsx)(`line`,{x1:`24`,y1:`150`,x2:`396`,y2:`150`,className:`base`})]}),h=(0,a.jsx)(`path`,{className:`fl-pen-area`,d:`M${i.replace(/ /g,` L`)} L396,150 L24,150 Z`}),g=(0,a.jsx)(`polyline`,{className:`fl-pen-line`,points:i}),e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=s,e[5]=u,e[6]=m,e[7]=h,e[8]=g}else t=e[0],n=e[1],r=e[2],o=e[3],s=e[4],u=e[5],m=e[6],h=e[7],g=e[8];let _;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,a.jsx)(`g`,{className:`fl-pen-dots`,children:c.map(f)}),e[9]=_):_=e[9];let v;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,a.jsxs)(`svg`,{className:t,viewBox:n,"aria-hidden":r,children:[o,s,h,g,_,(0,a.jsx)(`g`,{className:`fl-pen-axis`,children:l.map(d)}),(0,a.jsx)(`path`,{className:`fl-pen-trend`,pathLength:1,d:`M166,126 C232,122 300,86 384,44 M384,44 l-13,1 m13,-1 l-3,12`}),(0,a.jsx)(`path`,{className:`fl-pen-star`,pathLength:1,d:`M396,18 L399,26 L407,26 L401,32 L403,40 L396,35 L389,40 L391,32 L385,26 L393,26 Z`})]}),e[10]=v):v=e[10];let y;return e[11]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,a.jsxs)(`div`,{className:u,children:[m,v,(0,a.jsxs)(`div`,{className:`fl-pen-options`,children:[(0,a.jsxs)(`span`,{className:`fl-pen-chip`,children:[`Cut marketing`,(0,a.jsx)(`svg`,{viewBox:`0 0 120 26`,preserveAspectRatio:`none`,"aria-hidden":`true`,className:`fl-pen-strike`,children:(0,a.jsx)(`path`,{pathLength:1,d:`M5,15 C34,10 74,18 115,10`})})]}),(0,a.jsx)(`span`,{className:`fl-pen-chip kept`,children:`Raise prices ✓`})]})]}),e[11]=y):y=e[11],y}function d(e,t){return(0,a.jsx)(`text`,{x:c[t][0],y:`172`,children:e},e)}function f(e,t){let[n,r]=e;return(0,a.jsx)(`circle`,{cx:n,cy:r,r:`3.2`},t)}function p(e){let[t,n]=e;return`${t},${n}`}var m=[{id:`bars`,d:`M6,26 V14 M14,26 V6 M22,26 V18`,label:`chart`},{id:`line`,d:`M4,24 L11,14 L18,18 L26,6`,label:`trend`},{id:`donut`,d:`M14,4 A10,10 0 1 1 4,14`,label:`share`},{id:`pin`,d:`M14,4 a8,8 0 0 1 8,8 c0,6 -8,14 -8,14 s-8,-8 -8,-14 a8,8 0 0 1 8,-8`,label:`map`},{id:`steps`,d:`M4,24 H12 V16 H20 V8 H26`,label:`timeline`},{id:`net`,d:`M6,22 L14,8 L24,20 M6,22 L24,20`,label:`network`},{id:`gauge`,d:`M4,22 A11,11 0 0 1 26,22 M15,22 L21,12`,label:`gauge`},{id:`rows`,d:`M5,8 H25 M5,15 H25 M5,22 H17`,label:`table`}];function h(){return(0,a.jsx)(`div`,{className:`fl-card fl-instruments`,children:m.map((e,t)=>(0,a.jsxs)(`span`,{className:`fl-instrument`,style:{"--in-i":String(t)},children:[(0,a.jsx)(`svg`,{viewBox:`0 0 30 30`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{d:e.d})}),e.label]},e.id))})}function g(){let e=(0,i.c)(4),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,a.jsx)(`div`,{className:`fl-ink-label`,children:`Revenue · last 6 quarters`}),e[0]=t):t=e[0];let n,r;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,a.jsx)(`div`,{className:`fl-ink-bars`,children:s.map(_)}),r=(0,a.jsx)(`span`,{className:`fl-hl-sweep`}),e[1]=n,e[2]=r):(n=e[1],r=e[2]);let o;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,a.jsxs)(`div`,{className:`fl-card fl-ink`,children:[t,(0,a.jsxs)(`div`,{className:`fl-ink-plot`,children:[n,r,(0,a.jsxs)(`span`,{className:`fl-hl-chip`,children:[(0,a.jsx)(`svg`,{viewBox:`0 0 24 24`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{d:`M3 21l3.2-.9L18 8.3l-2.3-2.3L4 17.6 3 21z M14.7 7l2.3 2.3`})}),`Ask about this`]})]})]}),e[3]=o):o=e[3],o}function _(e,t){return(0,a.jsx)(`div`,{className:`fl-ink-barcol`,children:(0,a.jsx)(`div`,{className:`fl-ink-bar`+(e===`100%`?` peak`:``),style:{height:e}})},t)}function v(){return(0,a.jsxs)(`div`,{className:`fl-card fl-ghostwrap`,children:[(0,a.jsxs)(`div`,{className:`fl-ghost-said`,children:[(0,a.jsx)(`span`,{className:`fl-wave`,"aria-hidden":`true`,children:Array.from({length:12},(e,t)=>(0,a.jsx)(`i`,{style:{"--i":String(t)}},t))}),(0,a.jsxs)(`span`,{className:`fl-ghost-words`,children:[`“…and how does that compare to last year, and`,(0,a.jsx)(`span`,{className:`fl-caret`}),`”`]})]}),(0,a.jsxs)(`div`,{className:`fl-ghost-cards`,children:[(0,a.jsxs)(`div`,{className:`fl-ghost`,children:[(0,a.jsx)(`div`,{className:`fl-ghost-tag`,children:`Forming…`}),(0,a.jsxs)(`div`,{className:`fl-ghost-bars`,children:[(0,a.jsx)(`i`,{style:{height:`50%`}}),(0,a.jsx)(`i`,{style:{height:`80%`}}),(0,a.jsx)(`i`,{style:{height:`65%`}})]})]}),(0,a.jsxs)(`div`,{className:`fl-ghost delay`,children:[(0,a.jsx)(`div`,{className:`fl-ghost-tag`,children:`Forming…`}),(0,a.jsx)(`svg`,{viewBox:`0 0 120 50`,"aria-hidden":`true`,children:(0,a.jsx)(`polyline`,{points:`0,42 24,30 48,34 72,18 96,22 120,8`})})]})]})]})}var y=[{label:`Runway: 14mo`,meta:`4×`,x:92,y:52,tone:`blue`},{label:`Hiring freeze`,meta:`a worry`,x:86,y:200,tone:`amber`},{label:`Ship velocity`,meta:`slowing`,x:300,y:204,tone:`amber`},{label:`Churn signal`,meta:`watch`,x:300,y:50,tone:`pink`},{label:`Pricing`,meta:`your idea`,x:206,y:226,tone:`green`}],b=[[0,3],[3,2],[1,4],[4,2],[0,1]];function x(){let e=(0,i.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,a.jsx)(`svg`,{className:`fl-mindmap-links`,viewBox:`0 0 420 264`,"aria-hidden":`true`,children:b.map(C)}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,a.jsxs)(`div`,{className:`fl-card fl-mindmap`,children:[t,(0,a.jsx)(`div`,{className:`fl-mindmap-hub`,children:(0,a.jsx)(r,{size:46})}),y.map(S)]}),e[1]=n):n=e[1],n}function S(e){return(0,a.jsxs)(`div`,{className:`fl-node tone-`+e.tone,style:{left:`${e.x/420*100}%`,top:`${e.y/264*100}%`},children:[(0,a.jsx)(`div`,{className:`fl-node-label`,children:e.label}),(0,a.jsx)(`div`,{className:`fl-node-meta`,children:e.meta})]},e.label)}function C(e,t){let[n,r]=e,i=y[n],o=y[r],s=(i.x+o.x)/2,c=(i.y+o.y)/2-20;return(0,a.jsx)(`path`,{d:`M${i.x},${i.y} Q${s},${c} ${o.x},${o.y}`},t)}var w=[{icon:`⌨`,label:`Type it`},{icon:`🎙`,label:`Say it`},{icon:`▦`,label:`Drag a card`}];function T(){let e=(0,i.c)(4),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,a.jsx)(`span`,{className:`fl-blank-num good`,children:`$2.1M`}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,a.jsxs)(`span`,{className:`fl-blank-hole`,children:[`your burn / mo`,(0,a.jsx)(`span`,{className:`fl-caret`})]}),e[1]=n):n=e[1];let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,a.jsxs)(`div`,{className:`fl-blank-sentence`,children:[`With `,t,` in the bank and a burn of`,` `,n,`, your runway is `,(0,a.jsx)(`span`,{className:`fl-blank-pending`,children:`— months`}),`.`]}),e[2]=r):r=e[2];let o;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,a.jsxs)(`div`,{className:`fl-card fl-blank`,children:[r,(0,a.jsx)(`div`,{className:`fl-blank-options`,"aria-hidden":`true`,children:w.map(E)})]}),e[3]=o):o=e[3],o}function E(e){return(0,a.jsxs)(`span`,{className:`fl-blank-btn`,children:[(0,a.jsx)(`span`,{className:`fl-blank-icon`,children:e.icon}),e.label]},e.label)}var D=[`“ARR climbed to $15.1M — up 21%.”`,`“The trend held steady all quarter.”`,`“North America still leads, at 54%.”`];function O(){return(0,a.jsxs)(`div`,{className:`fl-card fl-walk`,children:[(0,a.jsx)(`div`,{className:`fl-ink-label`,children:`Q3 revenue · read to you`}),(0,a.jsxs)(`div`,{className:`fl-walk-stage`,children:[(0,a.jsxs)(`div`,{className:`fl-walk-presenter`,children:[(0,a.jsx)(r,{size:44,className:`fl-walk-orb`}),(0,a.jsxs)(`div`,{className:`fl-walk-say`,children:[(0,a.jsx)(`span`,{className:`fl-wave`,"aria-hidden":`true`,children:Array.from({length:8},(e,t)=>(0,a.jsx)(`i`,{style:{"--i":String(t)}},t))}),(0,a.jsx)(`span`,{className:`fl-walk-caps`,children:D.map((e,t)=>(0,a.jsx)(`span`,{className:`fl-walk-line l${t+1}`,children:e},e))})]})]}),(0,a.jsxs)(`div`,{className:`fl-walk-items`,children:[(0,a.jsxs)(`div`,{className:`fl-walk-item`,children:[(0,a.jsx)(`span`,{className:`fl-walk-k`,children:`ARR`}),(0,a.jsx)(`span`,{className:`fl-walk-v`,children:`$15.1M`}),(0,a.jsx)(`span`,{className:`fl-walk-up`,children:`▲ 21%`})]}),(0,a.jsx)(`div`,{className:`fl-walk-item`,children:(0,a.jsx)(`svg`,{className:`fl-walk-spark`,viewBox:`0 0 120 26`,"aria-hidden":`true`,children:(0,a.jsx)(`polyline`,{points:`2,20 22,17 42,19 62,11 82,13 100,6 118,3`})})}),(0,a.jsxs)(`div`,{className:`fl-walk-item`,children:[(0,a.jsx)(`span`,{className:`fl-walk-k`,children:`N. America`}),(0,a.jsx)(`span`,{className:`fl-walk-v`,children:`54%`})]}),(0,a.jsx)(`span`,{className:`fl-walk-spot`,"aria-hidden":`true`})]})]}),(0,a.jsx)(`div`,{className:`fl-seen-note`,children:`Illustrative numbers`})]})}function k(){let e=(0,i.c)(8),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,a.jsxs)(n,{eyebrow:`Things a chat window can’t do`,children:[`It’s a `,(0,a.jsx)(`em`,{children:`friend at the whiteboard.`})]}),e[0]=t):t=e[0];let r;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,a.jsx)(o,{eyebrow:`Highlight is the interface`,eyebrowTone:`presence`,title:`Highlight the answer to ask.`,body:`Drag across a bar, a row, a figure — the highlight grabs exactly what’s under it, and your next question is grounded on that piece, not the whole answer.`,visual:(0,a.jsx)(g,{})}),e[1]=r):r=e[1];let s;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,a.jsx)(o,{reverse:!0,eyebrow:`And the pen is in its hand`,eyebrowTone:`amber`,title:`It draws on its own answers.`,body:`A trend arrow along the recovery, a star on the number that matters, a strike through the option it rules out — the whiteboard marks a good teacher leaves.`,visual:(0,a.jsx)(u,{})}),e[2]=s):s=e[2];let c;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,a.jsx)(o,{eyebrow:`It answers while you talk`,eyebrowTone:`blue`,title:`The answer forms mid-sentence.`,body:`Dashed “ghost” cards sketch the answer taking shape behind your words — and reshape live as your question turns. You see it thinking with you, not after you.`,visual:(0,a.jsx)(v,{})}),e[3]=c):c=e[3];let l;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,a.jsx)(o,{reverse:!0,eyebrow:`Watch it map your thinking`,eyebrowTone:`green`,title:`Ramble. Get a map of your mind.`,body:`Themes emerge from what you actually said — never fixed buckets — with the tensions between them drawn in. A minute of talking becomes a structure you can see.`,visual:(0,a.jsx)(x,{})}),e[4]=l):l=e[4];let d;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,a.jsx)(o,{eyebrow:`The Blank Space`,eyebrowTone:`pink`,title:`It won’t guess. It leaves a space.`,body:`When an answer needs a number only you have, Mavéa leaves a glowing hole to fill — type it, say it, or drag a card in. Uncertainty, made honest and interactive.`,visual:(0,a.jsx)(T,{})}),e[5]=d):d=e[5];let f;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,a.jsx)(o,{reverse:!0,eyebrow:`One canvas, many instruments`,eyebrowTone:`presence`,title:`The answer picks its shape.`,body:`Charts, maps, timelines, networks, tables — hundreds of visual instruments on one canvas, and each answer reaches for the ones that fit.`,visual:(0,a.jsx)(h,{})}),e[6]=f):f=e[6];let p;return e[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,a.jsxs)(a.Fragment,{children:[t,(0,a.jsxs)(`div`,{className:`fl-panels`,children:[r,s,c,l,d,f,(0,a.jsx)(o,{eyebrow:`It reads the answer to you`,eyebrowTone:`presence`,title:`It points, and talks you through.`,body:`Mavéa doesn’t drop a wall of cards and leave. It spotlights each part and speaks to it — walking you through the answer a piece at a time, the way a friend at the whiteboard would.`,visual:(0,a.jsx)(O,{})})]})]}),e[7]=p):p=e[7],p}export{k as WowFeatures};
1
+ import{t as e}from"./compiler-runtime-qQQXpJgv.js";import{t}from"./jsx-runtime-DeHZSEgm.js";import{ot as n}from"./index-CKRjGbeR.js";import{t as r}from"./Orb-D8lhTdmY.js";var i=e(),a=t();function o(e){let t=(0,i.c)(17),{reverse:n,eyebrow:r,eyebrowTone:o,title:s,body:c,visual:l}=e,u=`fl-panel`+(n?` reverse`:``),d=`fl-panel-eyebrow tone-`+o,f;t[0]!==r||t[1]!==d?(f=(0,a.jsx)(`div`,{className:d,children:r}),t[0]=r,t[1]=d,t[2]=f):f=t[2];let p;t[3]===s?p=t[4]:(p=(0,a.jsx)(`h3`,{className:`fl-panel-title`,children:s}),t[3]=s,t[4]=p);let m;t[5]===c?m=t[6]:(m=(0,a.jsx)(`p`,{className:`fl-panel-body`,children:c}),t[5]=c,t[6]=m);let h;t[7]!==f||t[8]!==p||t[9]!==m?(h=(0,a.jsxs)(`div`,{className:`fl-panel-copy`,children:[f,p,m]}),t[7]=f,t[8]=p,t[9]=m,t[10]=h):h=t[10];let g;t[11]===l?g=t[12]:(g=(0,a.jsx)(`div`,{className:`fl-panel-visual`,children:l}),t[11]=l,t[12]=g);let _;return t[13]!==u||t[14]!==h||t[15]!==g?(_=(0,a.jsxs)(`div`,{className:u,children:[h,g]}),t[13]=u,t[14]=h,t[15]=g,t[16]=_):_=t[16],_}var s=[`46%`,`52%`,`50%`,`58%`,`74%`,`100%`],c=[[24,72],[98,98],[173,116],[247,98],[322,66],[396,36]],l=[`Q1`,`Q2`,`Q3`,`Q4`,`Q5`,`Q6`];function u(){let e=(0,i.c)(12),t,n,r,o,s,u,m,h,g;if(e[0]===Symbol.for(`react.memo_cache_sentinel`)){let i=c.map(p).join(` `);u=`fl-card fl-pen`,m=(0,a.jsxs)(`div`,{className:`fl-pen-head`,children:[(0,a.jsx)(`span`,{className:`fl-ink-label`,children:`Revenue · the road back`}),(0,a.jsxs)(`span`,{className:`fl-pen-value`,children:[`$4.2M`,(0,a.jsx)(`i`,{className:`fl-pen-delta`,children:`▲ recovering`})]})]}),t=`fl-pen-plot`,n=`0 0 420 184`,r=`true`,o=(0,a.jsx)(`defs`,{children:(0,a.jsxs)(`linearGradient`,{id:`fl-pen-fill`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,a.jsx)(`stop`,{offset:`0`,className:`fl-pen-fill-top`}),(0,a.jsx)(`stop`,{offset:`1`,className:`fl-pen-fill-bot`})]})}),s=(0,a.jsxs)(`g`,{className:`fl-pen-grid`,children:[(0,a.jsx)(`line`,{x1:`24`,y1:`48`,x2:`396`,y2:`48`}),(0,a.jsx)(`line`,{x1:`24`,y1:`84`,x2:`396`,y2:`84`}),(0,a.jsx)(`line`,{x1:`24`,y1:`120`,x2:`396`,y2:`120`}),(0,a.jsx)(`line`,{x1:`24`,y1:`150`,x2:`396`,y2:`150`,className:`base`})]}),h=(0,a.jsx)(`path`,{className:`fl-pen-area`,d:`M${i.replace(/ /g,` L`)} L396,150 L24,150 Z`}),g=(0,a.jsx)(`polyline`,{className:`fl-pen-line`,points:i}),e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=s,e[5]=u,e[6]=m,e[7]=h,e[8]=g}else t=e[0],n=e[1],r=e[2],o=e[3],s=e[4],u=e[5],m=e[6],h=e[7],g=e[8];let _;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,a.jsx)(`g`,{className:`fl-pen-dots`,children:c.map(f)}),e[9]=_):_=e[9];let v;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,a.jsxs)(`svg`,{className:t,viewBox:n,"aria-hidden":r,children:[o,s,h,g,_,(0,a.jsx)(`g`,{className:`fl-pen-axis`,children:l.map(d)}),(0,a.jsx)(`path`,{className:`fl-pen-trend`,pathLength:1,d:`M166,126 C232,122 300,86 384,44 M384,44 l-13,1 m13,-1 l-3,12`}),(0,a.jsx)(`path`,{className:`fl-pen-star`,pathLength:1,d:`M396,18 L399,26 L407,26 L401,32 L403,40 L396,35 L389,40 L391,32 L385,26 L393,26 Z`})]}),e[10]=v):v=e[10];let y;return e[11]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,a.jsxs)(`div`,{className:u,children:[m,v,(0,a.jsxs)(`div`,{className:`fl-pen-options`,children:[(0,a.jsxs)(`span`,{className:`fl-pen-chip`,children:[`Cut marketing`,(0,a.jsx)(`svg`,{viewBox:`0 0 120 26`,preserveAspectRatio:`none`,"aria-hidden":`true`,className:`fl-pen-strike`,children:(0,a.jsx)(`path`,{pathLength:1,d:`M5,15 C34,10 74,18 115,10`})})]}),(0,a.jsx)(`span`,{className:`fl-pen-chip kept`,children:`Raise prices ✓`})]})]}),e[11]=y):y=e[11],y}function d(e,t){return(0,a.jsx)(`text`,{x:c[t][0],y:`172`,children:e},e)}function f(e,t){let[n,r]=e;return(0,a.jsx)(`circle`,{cx:n,cy:r,r:`3.2`},t)}function p(e){let[t,n]=e;return`${t},${n}`}var m=[{id:`bars`,d:`M6,26 V14 M14,26 V6 M22,26 V18`,label:`chart`},{id:`line`,d:`M4,24 L11,14 L18,18 L26,6`,label:`trend`},{id:`donut`,d:`M14,4 A10,10 0 1 1 4,14`,label:`share`},{id:`pin`,d:`M14,4 a8,8 0 0 1 8,8 c0,6 -8,14 -8,14 s-8,-8 -8,-14 a8,8 0 0 1 8,-8`,label:`map`},{id:`steps`,d:`M4,24 H12 V16 H20 V8 H26`,label:`timeline`},{id:`net`,d:`M6,22 L14,8 L24,20 M6,22 L24,20`,label:`network`},{id:`gauge`,d:`M4,22 A11,11 0 0 1 26,22 M15,22 L21,12`,label:`gauge`},{id:`rows`,d:`M5,8 H25 M5,15 H25 M5,22 H17`,label:`table`}];function h(){return(0,a.jsx)(`div`,{className:`fl-card fl-instruments`,children:m.map((e,t)=>(0,a.jsxs)(`span`,{className:`fl-instrument`,style:{"--in-i":String(t)},children:[(0,a.jsx)(`svg`,{viewBox:`0 0 30 30`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{d:e.d})}),e.label]},e.id))})}function g(){let e=(0,i.c)(4),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,a.jsx)(`div`,{className:`fl-ink-label`,children:`Revenue · last 6 quarters`}),e[0]=t):t=e[0];let n,r;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,a.jsx)(`div`,{className:`fl-ink-bars`,children:s.map(_)}),r=(0,a.jsx)(`span`,{className:`fl-hl-sweep`}),e[1]=n,e[2]=r):(n=e[1],r=e[2]);let o;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,a.jsxs)(`div`,{className:`fl-card fl-ink`,children:[t,(0,a.jsxs)(`div`,{className:`fl-ink-plot`,children:[n,r,(0,a.jsxs)(`span`,{className:`fl-hl-chip`,children:[(0,a.jsx)(`svg`,{viewBox:`0 0 24 24`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{d:`M3 21l3.2-.9L18 8.3l-2.3-2.3L4 17.6 3 21z M14.7 7l2.3 2.3`})}),`Ask about this`]})]})]}),e[3]=o):o=e[3],o}function _(e,t){return(0,a.jsx)(`div`,{className:`fl-ink-barcol`,children:(0,a.jsx)(`div`,{className:`fl-ink-bar`+(e===`100%`?` peak`:``),style:{height:e}})},t)}function v(){return(0,a.jsxs)(`div`,{className:`fl-card fl-ghostwrap`,children:[(0,a.jsxs)(`div`,{className:`fl-ghost-said`,children:[(0,a.jsx)(`span`,{className:`fl-wave`,"aria-hidden":`true`,children:Array.from({length:12},(e,t)=>(0,a.jsx)(`i`,{style:{"--i":String(t)}},t))}),(0,a.jsxs)(`span`,{className:`fl-ghost-words`,children:[`“…and how does that compare to last year, and`,(0,a.jsx)(`span`,{className:`fl-caret`}),`”`]})]}),(0,a.jsxs)(`div`,{className:`fl-ghost-cards`,children:[(0,a.jsxs)(`div`,{className:`fl-ghost`,children:[(0,a.jsx)(`div`,{className:`fl-ghost-tag`,children:`Forming…`}),(0,a.jsxs)(`div`,{className:`fl-ghost-bars`,children:[(0,a.jsx)(`i`,{style:{height:`50%`}}),(0,a.jsx)(`i`,{style:{height:`80%`}}),(0,a.jsx)(`i`,{style:{height:`65%`}})]})]}),(0,a.jsxs)(`div`,{className:`fl-ghost delay`,children:[(0,a.jsx)(`div`,{className:`fl-ghost-tag`,children:`Forming…`}),(0,a.jsx)(`svg`,{viewBox:`0 0 120 50`,"aria-hidden":`true`,children:(0,a.jsx)(`polyline`,{points:`0,42 24,30 48,34 72,18 96,22 120,8`})})]})]})]})}var y=[{label:`Runway: 14mo`,meta:`4×`,x:92,y:52,tone:`blue`},{label:`Hiring freeze`,meta:`a worry`,x:86,y:200,tone:`amber`},{label:`Ship velocity`,meta:`slowing`,x:300,y:204,tone:`amber`},{label:`Churn signal`,meta:`watch`,x:300,y:50,tone:`pink`},{label:`Pricing`,meta:`your idea`,x:206,y:226,tone:`green`}],b=[[0,3],[3,2],[1,4],[4,2],[0,1]];function x(){let e=(0,i.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,a.jsx)(`svg`,{className:`fl-mindmap-links`,viewBox:`0 0 420 264`,"aria-hidden":`true`,children:b.map(C)}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,a.jsxs)(`div`,{className:`fl-card fl-mindmap`,children:[t,(0,a.jsx)(`div`,{className:`fl-mindmap-hub`,children:(0,a.jsx)(r,{size:46})}),y.map(S)]}),e[1]=n):n=e[1],n}function S(e){return(0,a.jsxs)(`div`,{className:`fl-node tone-`+e.tone,style:{left:`${e.x/420*100}%`,top:`${e.y/264*100}%`},children:[(0,a.jsx)(`div`,{className:`fl-node-label`,children:e.label}),(0,a.jsx)(`div`,{className:`fl-node-meta`,children:e.meta})]},e.label)}function C(e,t){let[n,r]=e,i=y[n],o=y[r],s=(i.x+o.x)/2,c=(i.y+o.y)/2-20;return(0,a.jsx)(`path`,{d:`M${i.x},${i.y} Q${s},${c} ${o.x},${o.y}`},t)}var w=[{icon:`⌨`,label:`Type it`},{icon:`🎙`,label:`Say it`},{icon:`▦`,label:`Drag a card`}];function T(){let e=(0,i.c)(4),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,a.jsx)(`span`,{className:`fl-blank-num good`,children:`$2.1M`}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,a.jsxs)(`span`,{className:`fl-blank-hole`,children:[`your burn / mo`,(0,a.jsx)(`span`,{className:`fl-caret`})]}),e[1]=n):n=e[1];let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,a.jsxs)(`div`,{className:`fl-blank-sentence`,children:[`With `,t,` in the bank and a burn of`,` `,n,`, your runway is `,(0,a.jsx)(`span`,{className:`fl-blank-pending`,children:`— months`}),`.`]}),e[2]=r):r=e[2];let o;return e[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,a.jsxs)(`div`,{className:`fl-card fl-blank`,children:[r,(0,a.jsx)(`div`,{className:`fl-blank-options`,"aria-hidden":`true`,children:w.map(E)})]}),e[3]=o):o=e[3],o}function E(e){return(0,a.jsxs)(`span`,{className:`fl-blank-btn`,children:[(0,a.jsx)(`span`,{className:`fl-blank-icon`,children:e.icon}),e.label]},e.label)}var D=[`“ARR climbed to $15.1M — up 21%.”`,`“The trend held steady all quarter.”`,`“North America still leads, at 54%.”`];function O(){return(0,a.jsxs)(`div`,{className:`fl-card fl-walk`,children:[(0,a.jsx)(`div`,{className:`fl-ink-label`,children:`Q3 revenue · read to you`}),(0,a.jsxs)(`div`,{className:`fl-walk-stage`,children:[(0,a.jsxs)(`div`,{className:`fl-walk-presenter`,children:[(0,a.jsx)(r,{size:44,className:`fl-walk-orb`}),(0,a.jsxs)(`div`,{className:`fl-walk-say`,children:[(0,a.jsx)(`span`,{className:`fl-wave`,"aria-hidden":`true`,children:Array.from({length:8},(e,t)=>(0,a.jsx)(`i`,{style:{"--i":String(t)}},t))}),(0,a.jsx)(`span`,{className:`fl-walk-caps`,children:D.map((e,t)=>(0,a.jsx)(`span`,{className:`fl-walk-line l${t+1}`,children:e},e))})]})]}),(0,a.jsxs)(`div`,{className:`fl-walk-items`,children:[(0,a.jsxs)(`div`,{className:`fl-walk-item`,children:[(0,a.jsx)(`span`,{className:`fl-walk-k`,children:`ARR`}),(0,a.jsx)(`span`,{className:`fl-walk-v`,children:`$15.1M`}),(0,a.jsx)(`span`,{className:`fl-walk-up`,children:`▲ 21%`})]}),(0,a.jsx)(`div`,{className:`fl-walk-item`,children:(0,a.jsx)(`svg`,{className:`fl-walk-spark`,viewBox:`0 0 120 26`,"aria-hidden":`true`,children:(0,a.jsx)(`polyline`,{points:`2,20 22,17 42,19 62,11 82,13 100,6 118,3`})})}),(0,a.jsxs)(`div`,{className:`fl-walk-item`,children:[(0,a.jsx)(`span`,{className:`fl-walk-k`,children:`N. America`}),(0,a.jsx)(`span`,{className:`fl-walk-v`,children:`54%`})]}),(0,a.jsx)(`span`,{className:`fl-walk-spot`,"aria-hidden":`true`})]})]}),(0,a.jsx)(`div`,{className:`fl-seen-note`,children:`Illustrative numbers`})]})}function k(){let e=(0,i.c)(8),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,a.jsxs)(n,{eyebrow:`Things a chat window can’t do`,children:[`It’s a `,(0,a.jsx)(`em`,{children:`friend at the whiteboard.`})]}),e[0]=t):t=e[0];let r;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,a.jsx)(o,{eyebrow:`Highlight is the interface`,eyebrowTone:`presence`,title:`Highlight the answer to ask.`,body:`Drag across a bar, a row, a figure — the highlight grabs exactly what’s under it, and your next question is grounded on that piece, not the whole answer.`,visual:(0,a.jsx)(g,{})}),e[1]=r):r=e[1];let s;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,a.jsx)(o,{reverse:!0,eyebrow:`And the pen is in its hand`,eyebrowTone:`amber`,title:`It draws on its own answers.`,body:`A trend arrow along the recovery, a star on the number that matters, a strike through the option it rules out — the whiteboard marks a good teacher leaves.`,visual:(0,a.jsx)(u,{})}),e[2]=s):s=e[2];let c;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,a.jsx)(o,{eyebrow:`It answers while you talk`,eyebrowTone:`blue`,title:`The answer forms mid-sentence.`,body:`Dashed “ghost” cards sketch the answer taking shape behind your words — and reshape live as your question turns. You see it thinking with you, not after you.`,visual:(0,a.jsx)(v,{})}),e[3]=c):c=e[3];let l;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,a.jsx)(o,{reverse:!0,eyebrow:`Watch it map your thinking`,eyebrowTone:`green`,title:`Ramble. Get a map of your mind.`,body:`Themes emerge from what you actually said — never fixed buckets — with the tensions between them drawn in. A minute of talking becomes a structure you can see.`,visual:(0,a.jsx)(x,{})}),e[4]=l):l=e[4];let d;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,a.jsx)(o,{eyebrow:`The Blank Space`,eyebrowTone:`pink`,title:`It won’t guess. It leaves a space.`,body:`When an answer needs a number only you have, Mavéa leaves a glowing hole to fill — type it, say it, or drag a card in. Uncertainty, made honest and interactive.`,visual:(0,a.jsx)(T,{})}),e[5]=d):d=e[5];let f;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,a.jsx)(o,{reverse:!0,eyebrow:`One canvas, many instruments`,eyebrowTone:`presence`,title:`The answer picks its shape.`,body:`Charts, maps, timelines, networks, tables — hundreds of visual instruments on one canvas, and each answer reaches for the ones that fit.`,visual:(0,a.jsx)(h,{})}),e[6]=f):f=e[6];let p;return e[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,a.jsxs)(a.Fragment,{children:[t,(0,a.jsxs)(`div`,{className:`fl-panels`,children:[r,s,c,l,d,f,(0,a.jsx)(o,{eyebrow:`It reads the answer to you`,eyebrowTone:`presence`,title:`It points, and talks you through.`,body:`Mavéa doesn’t drop a wall of cards and leave. It spotlights each part and speaks to it — walking you through the answer a piece at a time, the way a friend at the whiteboard would.`,visual:(0,a.jsx)(O,{})})]})]}),e[7]=p):p=e[7],p}export{k as WowFeatures};
@@ -1 +1 @@
1
- import{t as e}from"./react-BZJXY1be.js";import{t}from"./compiler-runtime-qQQXpJgv.js";import{t as n}from"./jsx-runtime-DeHZSEgm.js";import{n as r}from"./icons-gLFQTv74.js";import{t as i}from"./useFocusTrap-CJmpNZv2.js";import{t as a}from"./portal-TqJbr2rR.js";import{t as o}from"./useZoomGesture-CN0p0lHL.js";var s=e(),c=t(),l=n();function u(e){let t=(0,c.c)(52),{model:n,level:u,onLevel:d,onJump:f,onClose:p}=e,m=(0,s.useRef)(null);i(m);let h;t[0]!==u||t[1]!==p||t[2]!==d?(h=e=>{e===`out`?d(`breath`):u===`breath`?d(`chapters`):p()},t[0]=u,t[1]=p,t[2]=d,t[3]=h):h=t[3],o(m,h);let g,_;t[4]!==u||t[5]!==p||t[6]!==d?(g=()=>{let e=e=>{e.key===`Escape`?(e.preventDefault(),p()):e.key===`ArrowRight`?(e.preventDefault(),u===`chapters`&&d(`breath`)):e.key===`ArrowLeft`&&(e.preventDefault(),u===`breath`?d(`chapters`):p())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},_=[u,p,d],t[4]=u,t[5]=p,t[6]=d,t[7]=g,t[8]=_):(g=t[7],_=t[8]),(0,s.useEffect)(g,_);let v;t[9]===p?v=t[10]:(v=e=>{e.target===e.currentTarget&&p()},t[9]=p,t[10]=v);let y=v,b;t[11]===y?b=t[12]:(b=e=>{(e.key===`Enter`||e.key===` `)&&(e.key===` `&&e.preventDefault(),y(e))},t[11]=y,t[12]=b);let x=`zoom-deck level-`+u,S;t[13]===p?S=t[14]:(S=(0,l.jsx)(`button`,{type:`button`,className:`zoom-level`,onClick:p,children:`Canvas`}),t[13]=p,t[14]=S);let C=`zoom-level`+(u===`chapters`?` active`:``),w=u===`chapters`,T;t[15]===d?T=t[16]:(T=()=>d(`chapters`),t[15]=d,t[16]=T);let E;t[17]!==T||t[18]!==C||t[19]!==w?(E=(0,l.jsx)(`button`,{type:`button`,className:C,"aria-pressed":w,onClick:T,children:`Chapters`}),t[17]=T,t[18]=C,t[19]=w,t[20]=E):E=t[20];let D=`zoom-level`+(u===`breath`?` active`:``),O=u===`breath`,k;t[21]===d?k=t[22]:(k=()=>d(`breath`),t[21]=d,t[22]=k);let A;t[23]!==D||t[24]!==O||t[25]!==k?(A=(0,l.jsx)(`button`,{type:`button`,className:D,"aria-pressed":O,onClick:k,children:`One breath`}),t[23]=D,t[24]=O,t[25]=k,t[26]=A):A=t[26];let j;t[27]!==E||t[28]!==A||t[29]!==S?(j=(0,l.jsxs)(`div`,{className:`zoom-levelbar`,role:`group`,"aria-label":`Zoom level`,children:[S,E,A]}),t[27]=E,t[28]=A,t[29]=S,t[30]=j):j=t[30];let M;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,l.jsx)(r.x,{}),t[31]=M):M=t[31];let N;t[32]===p?N=t[33]:(N=(0,l.jsx)(`button`,{type:`button`,className:`zoom-close`,onClick:p,"aria-label":`Close zoom`,title:`Close`,children:M}),t[32]=p,t[33]=N);let P;t[34]!==j||t[35]!==N?(P=(0,l.jsxs)(`header`,{className:`zoom-toolbar`,children:[j,N]}),t[34]=j,t[35]=N,t[36]=P):P=t[36];let F;t[37]!==u||t[38]!==n.heading||t[39]!==n.meta||t[40]!==n.rows||t[41]!==f||t[42]!==d?(F=u===`breath`?(0,l.jsxs)(`div`,{className:`zoom-breath`,children:[(0,l.jsxs)(`p`,{className:`zoom-breath-line`,children:[n.heading.replace(/, so far\.$/,``),`: `,n.rows.map((e,t)=>(0,l.jsxs)(`button`,{type:`button`,className:`zoom-breath-topic`,onClick:()=>d(`chapters`),children:[e.title,t<n.rows.length-1?` · `:``]},e.frameIndex))]}),(0,l.jsxs)(`p`,{className:`zoom-meta`,children:[n.meta,` · one breath`]})]}):(0,l.jsxs)(`div`,{className:`zoom-chapters`,children:[(0,l.jsxs)(`header`,{className:`zoom-head`,children:[(0,l.jsx)(`span`,{className:`zoom-title`,children:n.heading}),(0,l.jsx)(`span`,{className:`zoom-meta`,children:n.meta})]}),(0,l.jsx)(`ul`,{className:`zoom-rows`,children:n.rows.map(e=>(0,l.jsx)(`li`,{children:(0,l.jsxs)(`button`,{type:`button`,className:`zoom-row`,onClick:()=>f(e.frameIndex),children:[(0,l.jsxs)(`span`,{className:`zoom-row-title`,children:[e.title,(0,l.jsx)(`span`,{className:`zoom-row-clock`,children:e.clock})]}),(0,l.jsx)(`span`,{className:`zoom-row-line`,children:e.line}),e.corrected&&(0,l.jsx)(`span`,{className:`zoom-row-corrected`,children:e.corrected})]})},e.frameIndex))})]}),t[37]=u,t[38]=n.heading,t[39]=n.meta,t[40]=n.rows,t[41]=f,t[42]=d,t[43]=F):F=t[43];let I;t[44]!==P||t[45]!==F||t[46]!==x?(I=(0,l.jsxs)(`div`,{ref:m,className:x,role:`dialog`,"aria-modal":`true`,"aria-label":`Conversation zoomed out`,tabIndex:-1,children:[P,F]}),t[44]=P,t[45]=F,t[46]=x,t[47]=I):I=t[47];let L;return t[48]!==y||t[49]!==I||t[50]!==b?(L=(0,l.jsx)(a,{children:(0,l.jsx)(`div`,{className:`zoom-scrim`,role:`button`,tabIndex:0,"aria-label":`Close`,onClick:y,onKeyDown:b,children:I})}),t[48]=y,t[49]=I,t[50]=b,t[51]=L):L=t[51],L}export{u as ZoomDeck};
1
+ import{t as e}from"./react-BZJXY1be.js";import{t}from"./compiler-runtime-qQQXpJgv.js";import{t as n}from"./jsx-runtime-DeHZSEgm.js";import{n as r}from"./icons-gLFQTv74.js";import{t as i}from"./useFocusTrap-CJmpNZv2.js";import{t as a}from"./portal-C2b5NoMN.js";import{t as o}from"./useZoomGesture-CN0p0lHL.js";var s=e(),c=t(),l=n();function u(e){let t=(0,c.c)(52),{model:n,level:u,onLevel:d,onJump:f,onClose:p}=e,m=(0,s.useRef)(null);i(m);let h;t[0]!==u||t[1]!==p||t[2]!==d?(h=e=>{e===`out`?d(`breath`):u===`breath`?d(`chapters`):p()},t[0]=u,t[1]=p,t[2]=d,t[3]=h):h=t[3],o(m,h);let g,_;t[4]!==u||t[5]!==p||t[6]!==d?(g=()=>{let e=e=>{e.key===`Escape`?(e.preventDefault(),p()):e.key===`ArrowRight`?(e.preventDefault(),u===`chapters`&&d(`breath`)):e.key===`ArrowLeft`&&(e.preventDefault(),u===`breath`?d(`chapters`):p())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},_=[u,p,d],t[4]=u,t[5]=p,t[6]=d,t[7]=g,t[8]=_):(g=t[7],_=t[8]),(0,s.useEffect)(g,_);let v;t[9]===p?v=t[10]:(v=e=>{e.target===e.currentTarget&&p()},t[9]=p,t[10]=v);let y=v,b;t[11]===y?b=t[12]:(b=e=>{(e.key===`Enter`||e.key===` `)&&(e.key===` `&&e.preventDefault(),y(e))},t[11]=y,t[12]=b);let x=`zoom-deck level-`+u,S;t[13]===p?S=t[14]:(S=(0,l.jsx)(`button`,{type:`button`,className:`zoom-level`,onClick:p,children:`Canvas`}),t[13]=p,t[14]=S);let C=`zoom-level`+(u===`chapters`?` active`:``),w=u===`chapters`,T;t[15]===d?T=t[16]:(T=()=>d(`chapters`),t[15]=d,t[16]=T);let E;t[17]!==T||t[18]!==C||t[19]!==w?(E=(0,l.jsx)(`button`,{type:`button`,className:C,"aria-pressed":w,onClick:T,children:`Chapters`}),t[17]=T,t[18]=C,t[19]=w,t[20]=E):E=t[20];let D=`zoom-level`+(u===`breath`?` active`:``),O=u===`breath`,k;t[21]===d?k=t[22]:(k=()=>d(`breath`),t[21]=d,t[22]=k);let A;t[23]!==D||t[24]!==O||t[25]!==k?(A=(0,l.jsx)(`button`,{type:`button`,className:D,"aria-pressed":O,onClick:k,children:`One breath`}),t[23]=D,t[24]=O,t[25]=k,t[26]=A):A=t[26];let j;t[27]!==E||t[28]!==A||t[29]!==S?(j=(0,l.jsxs)(`div`,{className:`zoom-levelbar`,role:`group`,"aria-label":`Zoom level`,children:[S,E,A]}),t[27]=E,t[28]=A,t[29]=S,t[30]=j):j=t[30];let M;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,l.jsx)(r.x,{}),t[31]=M):M=t[31];let N;t[32]===p?N=t[33]:(N=(0,l.jsx)(`button`,{type:`button`,className:`zoom-close`,onClick:p,"aria-label":`Close zoom`,title:`Close`,children:M}),t[32]=p,t[33]=N);let P;t[34]!==j||t[35]!==N?(P=(0,l.jsxs)(`header`,{className:`zoom-toolbar`,children:[j,N]}),t[34]=j,t[35]=N,t[36]=P):P=t[36];let F;t[37]!==u||t[38]!==n.heading||t[39]!==n.meta||t[40]!==n.rows||t[41]!==f||t[42]!==d?(F=u===`breath`?(0,l.jsxs)(`div`,{className:`zoom-breath`,children:[(0,l.jsxs)(`p`,{className:`zoom-breath-line`,children:[n.heading.replace(/, so far\.$/,``),`: `,n.rows.map((e,t)=>(0,l.jsxs)(`button`,{type:`button`,className:`zoom-breath-topic`,onClick:()=>d(`chapters`),children:[e.title,t<n.rows.length-1?` · `:``]},e.frameIndex))]}),(0,l.jsxs)(`p`,{className:`zoom-meta`,children:[n.meta,` · one breath`]})]}):(0,l.jsxs)(`div`,{className:`zoom-chapters`,children:[(0,l.jsxs)(`header`,{className:`zoom-head`,children:[(0,l.jsx)(`span`,{className:`zoom-title`,children:n.heading}),(0,l.jsx)(`span`,{className:`zoom-meta`,children:n.meta})]}),(0,l.jsx)(`ul`,{className:`zoom-rows`,children:n.rows.map(e=>(0,l.jsx)(`li`,{children:(0,l.jsxs)(`button`,{type:`button`,className:`zoom-row`,onClick:()=>f(e.frameIndex),children:[(0,l.jsxs)(`span`,{className:`zoom-row-title`,children:[e.title,(0,l.jsx)(`span`,{className:`zoom-row-clock`,children:e.clock})]}),(0,l.jsx)(`span`,{className:`zoom-row-line`,children:e.line}),e.corrected&&(0,l.jsx)(`span`,{className:`zoom-row-corrected`,children:e.corrected})]})},e.frameIndex))})]}),t[37]=u,t[38]=n.heading,t[39]=n.meta,t[40]=n.rows,t[41]=f,t[42]=d,t[43]=F):F=t[43];let I;t[44]!==P||t[45]!==F||t[46]!==x?(I=(0,l.jsxs)(`div`,{ref:m,className:x,role:`dialog`,"aria-modal":`true`,"aria-label":`Conversation zoomed out`,tabIndex:-1,children:[P,F]}),t[44]=P,t[45]=F,t[46]=x,t[47]=I):I=t[47];let L;return t[48]!==y||t[49]!==I||t[50]!==b?(L=(0,l.jsx)(a,{children:(0,l.jsx)(`div`,{className:`zoom-scrim`,role:`button`,tabIndex:0,"aria-label":`Close`,onClick:y,onKeyDown:b,children:I})}),t[48]=y,t[49]=I,t[50]=b,t[51]=L):L=t[51],L}export{u as ZoomDeck};
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-DkW27tQK.js";import{F as t}from"./index-Db-FgYxX.js";import{C as n,i as r,m as i}from"./kokoro-yB7iU_JU.js";async function a(e,t,n){let r=Array(e.length),i=0,a=!1,o=async()=>{for(;!a;){let t=i++;if(t>=e.length)return;try{r[t]=await n(e[t],t)}catch(e){throw a=!0,e}}},s=Math.max(1,Math.min(t,e.length));return await Promise.all(Array.from({length:s},o)),r}var o=e({renderReelAudio:()=>h,synthesizeVoiceLine:()=>m}),s=24e3,c=.15,l=.18,u=240,d=.008,f=.89,p=6;async function m(e,t){let a=n(e).trim().slice(0,u);if(!a)return new Float32Array;for(let e=0;e<2;e++)try{let e=await fetch(`/tts/v1/audio/speech`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({model:`kokoro`,input:a,voice:r(`mavea`),response_format:`pcm`,speed:1}),signal:t});if(e.ok)return i(new Uint8Array(await e.arrayBuffer()),null).samples}catch{if(t?.aborted)return new Float32Array}return new Float32Array}async function h(e,n,r){let i=e.slides,o=i.map(e=>Math.max(800,Math.round(e.durationMs))),u=t(),h=i.map(e=>e.voiceover.trim()),g=h.find(Boolean);if(u===null||typeof OfflineAudioContext>`u`)return{buffer:null,timings:o,missing:h.filter(Boolean).length,...g?{firstMissingLine:g}:{}};let _=0,v=await a(i,2,async e=>{let t=await m(e.voiceover,n);return r?.(++_,i.length),t}),y=h.filter(Boolean).length,b=v.filter(e=>e.length>0).length,x=Math.max(0,y-b),S=h.find((e,t)=>e&&v[t].length===0);if(b===0)return{buffer:null,timings:o,missing:x,...S?{firstMissingLine:S}:{}};let C=i.map((e,t)=>{let n=v[t].length/s*1e3;return Math.round(n>0?Math.max(o[t],n+l*1e3):o[t])}),w=0;for(let e of v)for(let t=0;t<e.length;t++)w=Math.max(w,Math.abs(e[t]));let T=w>0?Math.min(p,f/w):1,E=.65+C.reduce((e,t)=>e+t/1e3,0),D=new OfflineAudioContext(1,Math.ceil(E*u),u),O=D.createGain();O.gain.value=T,O.connect(D.destination);let k=c;return C.forEach((e,t)=>{let n=v[t];if(n.length){let e=D.createBuffer(1,n.length,s);e.getChannelData(0).set(n);let t=D.createBufferSource();t.buffer=e;let r=D.createGain(),i=n.length/s,a=Math.min(d,i/2);r.gain.setValueAtTime(0,k),r.gain.linearRampToValueAtTime(1,k+a),r.gain.setValueAtTime(1,k+i-a),r.gain.linearRampToValueAtTime(0,k+i),t.connect(r).connect(O),t.start(k)}k+=e/1e3}),{buffer:await D.startRendering(),timings:C,missing:x,...S?{firstMissingLine:S}:{}}}export{m as n,a as r,o as t};
1
+ import{r as e}from"./rolldown-runtime-DkW27tQK.js";import{F as t}from"./index-CKRjGbeR.js";import{C as n,i as r,m as i}from"./kokoro-B-rc224u.js";async function a(e,t,n){let r=Array(e.length),i=0,a=!1,o=async()=>{for(;!a;){let t=i++;if(t>=e.length)return;try{r[t]=await n(e[t],t)}catch(e){throw a=!0,e}}},s=Math.max(1,Math.min(t,e.length));return await Promise.all(Array.from({length:s},o)),r}var o=e({renderReelAudio:()=>h,synthesizeVoiceLine:()=>m}),s=24e3,c=.15,l=.18,u=240,d=.008,f=.89,p=6;async function m(e,t){let a=n(e).trim().slice(0,u);if(!a)return new Float32Array;for(let e=0;e<2;e++)try{let e=await fetch(`/tts/v1/audio/speech`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({model:`kokoro`,input:a,voice:r(`mavea`),response_format:`pcm`,speed:1}),signal:t});if(e.ok)return i(new Uint8Array(await e.arrayBuffer()),null).samples}catch{if(t?.aborted)return new Float32Array}return new Float32Array}async function h(e,n,r){let i=e.slides,o=i.map(e=>Math.max(800,Math.round(e.durationMs))),u=t(),h=i.map(e=>e.voiceover.trim()),g=h.find(Boolean);if(u===null||typeof OfflineAudioContext>`u`)return{buffer:null,timings:o,missing:h.filter(Boolean).length,...g?{firstMissingLine:g}:{}};let _=0,v=await a(i,2,async e=>{let t=await m(e.voiceover,n);return r?.(++_,i.length),t}),y=h.filter(Boolean).length,b=v.filter(e=>e.length>0).length,x=Math.max(0,y-b),S=h.find((e,t)=>e&&v[t].length===0);if(b===0)return{buffer:null,timings:o,missing:x,...S?{firstMissingLine:S}:{}};let C=i.map((e,t)=>{let n=v[t].length/s*1e3;return Math.round(n>0?Math.max(o[t],n+l*1e3):o[t])}),w=0;for(let e of v)for(let t=0;t<e.length;t++)w=Math.max(w,Math.abs(e[t]));let T=w>0?Math.min(p,f/w):1,E=.65+C.reduce((e,t)=>e+t/1e3,0),D=new OfflineAudioContext(1,Math.ceil(E*u),u),O=D.createGain();O.gain.value=T,O.connect(D.destination);let k=c;return C.forEach((e,t)=>{let n=v[t];if(n.length){let e=D.createBuffer(1,n.length,s);e.getChannelData(0).set(n);let t=D.createBufferSource();t.buffer=e;let r=D.createGain(),i=n.length/s,a=Math.min(d,i/2);r.gain.setValueAtTime(0,k),r.gain.linearRampToValueAtTime(1,k+a),r.gain.setValueAtTime(1,k+i-a),r.gain.linearRampToValueAtTime(0,k+i),t.connect(r).connect(O),t.start(k)}k+=e/1e3}),{buffer:await D.startRendering(),timings:C,missing:x,...S?{firstMissingLine:S}:{}}}export{m as n,a as r,o as t};
@@ -1 +1 @@
1
- import{n as e}from"./catalog-CRekRbKO.js";import{t}from"./facts-BUGuVUIc.js";import{t as n}from"./blockTypes-DUDdP3pB.js";import{validateLiveResponse as r}from"./liveSchema-Z_39HuDI.js";import{i,r as a,s as o}from"./store-C9s8Bfz0.js";import{F as s,m as c,x as l}from"./store-D16dGt7I.js";import{i as u,t as d}from"./useLiveConfig-CvOQTr0s.js";import{a as f,l as p,o as m}from"./store-DqOaVRLn.js";import{a as h,c as g,r as _,s as v}from"./store-D2IJF4SA.js";import{r as y,s as b,t as x}from"./store-CgA7mKy1.js";import{c as S,l as C,u as w}from"./store-B2Rpbqgg.js";var T=25e6,E=32,D=5e5,O=256,k=32768,A=24,j={dashboards:{count:24,entryBytes:1e6},memory:{count:50,entryBytes:16e3},flashcards:{count:1e3,entryBytes:32e3},library:{count:12,entryBytes:24e4},atlas:{count:500,entryBytes:16e3},courses:{count:60,entryBytes:3e5}},M=Object.freeze([{id:`provider-api-keys`,reason:`credential`},{id:`search-api-keys`,reason:`credential`},{id:`github-token`,reason:`credential`},{id:`active-session-and-turn-history`,reason:`not-yet-portable`},{id:`turn-bookmarks`,reason:`not-yet-portable`},{id:`dashboard-refresh-ledger`,reason:`not-yet-portable`},{id:`dashboard-morning-briefing`,reason:`not-yet-portable`},{id:`dashboard-budget-open-and-optimizer-state`,reason:`device-preference`},{id:`course-generated-frame-cache`,reason:`ephemeral-cache`},{id:`course-checkpoint-cache`,reason:`ephemeral-cache`},{id:`course-mastery`,reason:`not-yet-portable`},{id:`ripple-course-progress-and-metadata`,reason:`not-yet-portable`},{id:`ripple-tracked-items`,reason:`not-yet-portable`},{id:`appearance-audio-performance-preferences`,reason:`device-preference`},{id:`setup-tour-demo-and-feature-hints`,reason:`device-preference`},{id:`legal-acceptance-record`,reason:`device-preference`},{id:`one-shot-navigation-seeds`,reason:`ephemeral-cache`}]);async function N(){await Promise.all([s(),p(),o(),b()])}async function P(){await N();let e=S();return{app:`mavea`,kind:`backup`,version:1,exportedAt:Date.now(),data:{dashboards:c(),memory:f(),flashcards:_(),study:h(),library:a(),atlas:x(),courses:{courses:e,progress:Object.fromEntries(e.map(e=>[e.id,C(e.id)]))},settings:JSON.parse(d())}}}async function F(){let e=JSON.stringify(await P()),t=new Blob([e],{type:`application/json`}),n=URL.createObjectURL(t);try{let e=document.createElement(`a`);e.href=n,e.download=`mavea-backup-${new Date().toISOString().slice(0,10)}.json`,e.click()}finally{URL.revokeObjectURL(n)}}function I(e){return typeof TextEncoder==`function`?new TextEncoder().encode(e).byteLength:e.length*2}function L(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function R(e){let t=0,n=(e,r)=>{if(t+=1,t>D||r>E)throw Error(`That backup is too complex to import safely.`);if(typeof e==`string`&&e.length>k)throw Error(`That backup contains an oversized text field.`);if(Array.isArray(e)){for(let t of e)n(t,r+1);return}if(L(e)){let t=Object.entries(e);if(t.length>O)throw Error(`That backup contains an oversized object.`);for(let[e,i]of t){if(e.length>256)throw Error(`That backup contains an oversized field name.`);n(i,r+1)}}};n(e,0)}function z(e,t){try{return L(e)&&I(JSON.stringify(e))<=t}catch{return!1}}function B(e,t){let n=Array.isArray(e)?e:[],{count:r,entryBytes:i}=j[t],a=n.slice(0,r).filter(e=>z(e,i));return{incoming:n.length,entries:a,rejected:n.length-a.length}}var V=new Set([...n,...t.map(e=>e.type)]);async function H(t){let n=new Set,r=e=>{if(Array.isArray(e))for(let t of e.slice(0,A))L(t)&&typeof t.type==`string`&&n.add(t.type)};for(let e of t)if(L(e.spec)&&r(e.spec.blocks),Array.isArray(e.widgets))for(let t of e.widgets)L(t)&&r([t.block]);await e(n)}function U(e,t){return!Array.isArray(e)||e.length>A?null:r({title:t||`Imported canvas`,blocks:e},V,A,!0)}function W(e){if(!Array.isArray(e.blocks)||e.blocks.length>A)return null;let t=r({title:e.title,sub:e.sub,narration:e.opener,topic:e.topic,blocks:e.blocks,sources:e.sources,bend:e.bend,blanks:e.blanks,track:e.track},V,A,!0);return t?{id:`live`,workspace:`Live`,title:t.title,sub:t.sub,opener:t.narration,context:[],blocks:t.blocks,proof:null,...t.topic?{topic:t.topic}:{},...t.track?{track:t.track}:{},...t.bend?{bend:t.bend}:{},...t.blanks?.length?{blanks:t.blanks,awaiting:!0}:{},...t.sources?.length?{sources:t.sources}:{},extras:{},group:`home`,suggests:[],keywords:[]}:null}async function G(e){await H(e);let t=[];for(let n of e){if(!L(n.spec))continue;let e=W(n.spec);e&&t.push({...n,spec:e})}return t}async function K(e){return await H(e),e.map(e=>{if(!Array.isArray(e.widgets))return e;let t=[];for(let n of e.widgets.slice(0,12)){if(!L(n))continue;let e=U([n.block],`Imported dashboard widget`)?.blocks[0];e&&t.push({id:typeof n.id==`string`?n.id:``,block:e,span:n.span===2||n.span===3?n.span:1,fromSource:typeof n.fromSource==`string`?n.fromSource:``,...typeof n.metricId==`string`?{metricId:n.metricId}:{},...typeof n.refreshQuery==`string`?{refreshQuery:n.refreshQuery}:{}})}return{...e,widgets:t}})}function q(e){if(!L(e))return[];let t=[],n=e=>typeof e==`string`||Array.isArray(e)?e.length>0:L(e)?Object.keys(e).length>0:e!=null;return Object.prototype.hasOwnProperty.call(e,`keys`)&&n(e.keys)&&t.push(`provider-api-keys`),Object.prototype.hasOwnProperty.call(e,`searchKeys`)&&n(e.searchKeys)&&t.push(`search-api-keys`),[`githubToken`,`github_token`,`ghToken`].some(t=>Object.prototype.hasOwnProperty.call(e,t)&&n(e[t]))&&t.push(`github-token`),t}function J(e,t,n){return{incoming:t,accepted:n,rejected:t-n,limit:j[e].count}}async function Y(e){let t=I(e);if(t>25e6)throw Error(`That file is too large to be a Mavéa backup.`);let n;try{n=JSON.parse(e)}catch{throw Error(`This file isn’t valid JSON — it may be corrupted or not a Mavéa backup.`)}if(R(n),!L(n)||n.app!==`mavea`||n.kind!==`backup`||typeof n.version!=`number`||!Number.isSafeInteger(n.version)||n.version<1||!L(n.data))throw Error(`This file isn’t a Mavéa backup.`);let r=n.data,i=B(r.dashboards,`dashboards`),a=B(r.memory,`memory`),o=B(r.flashcards,`flashcards`),s=B(r.library,`library`),c=B(r.atlas,`atlas`),l=L(r.courses)?r.courses:{},u=B(l.courses,`courses`),[d,f]=await Promise.all([K(i.entries),G(s.entries)]),p={};if(L(l.progress)){let e=new Set(u.entries.flatMap(e=>typeof e.id==`string`&&e.id?[e.id]:[]));for(let[t,n]of Object.entries(l.progress))e.has(t)&&z(n,15e4)&&(p[t]=n)}let m={app:`mavea`,kind:`backup`,version:n.version,exportedAt:typeof n.exportedAt==`number`&&Number.isFinite(n.exportedAt)?n.exportedAt:0,data:{dashboards:d,memory:a.entries,flashcards:o.entries,study:r.study,library:f,atlas:c.entries,courses:{courses:u.entries,progress:p},...L(r.settings)?{settings:r.settings}:{}}},h={dashboards:J(`dashboards`,i.incoming,d.length),memory:J(`memory`,a.incoming,a.entries.length),flashcards:J(`flashcards`,o.incoming,o.entries.length),library:J(`library`,s.incoming,f.length),atlas:J(`atlas`,c.incoming,c.entries.length),courses:J(`courses`,u.incoming,u.entries.length)},g=q(r.settings),_=n.version>1,v=new Set([`durability-unverified`,`import-may-evict-existing`,`stores-excluded`]);return g.length&&v.add(`credentials-ignored`),_&&v.add(`future-version`),Object.values(h).some(e=>e.rejected>0)&&v.add(`entries-rejected`),{bundle:m,preflight:{version:n.version,versionAhead:_,byteLength:t,credentialsPresent:g,warnings:[...v],excludedStores:M,sections:h}}}function X(e){let t=new Set;for(let n of e)L(n)&&typeof n.id==`string`&&n.id&&t.add(n.id);return t}function Z(e,t,n,r,i){let a=X(n),o=X(r),s=X(i),c=0,l=0;for(let e of a)o.has(e)&&(c+=1);for(let e of o)s.has(e)||(l+=1);return{...e,accepted:t,rejected:e.incoming-t,conflicts:c,evictedExisting:l}}async function Q(e){let[{bundle:t,preflight:n}]=await Promise.all([Y(e),N()]),{data:r}=t,o={dashboards:c(),memory:f(),flashcards:_(),library:a(),atlas:x(),courses:S()},s=l(r.dashboards??[]),d=m(r.memory??[]),p=v(r.flashcards??[]),h=g(r.study),b=i(r.library??[]),C=y(r.atlas??[]),T=r.courses?w(r.courses.courses,r.courses.progress):0,E=!1,D=[...n.credentialsPresent];if(r.settings){let e=u(JSON.stringify(r.settings),{mode:`merge`,preserveSecretState:!0});E=e.appliedFields.length>0,D=[...new Set([...D,...e.credentialsIgnored])]}let O={dashboards:c(),memory:f(),flashcards:_(),library:a(),atlas:x(),courses:S()},k={dashboards:Z(n.sections.dashboards,s,r.dashboards??[],o.dashboards,O.dashboards),memory:Z(n.sections.memory,d,r.memory??[],o.memory,O.memory),flashcards:Z(n.sections.flashcards,p,r.flashcards??[],o.flashcards,O.flashcards),library:Z(n.sections.library,b,r.library??[],o.library,O.library),atlas:Z(n.sections.atlas,C,r.atlas??[],o.atlas,O.atlas),courses:Z(n.sections.courses,T,r.courses?.courses??[],o.courses,O.courses)},A=new Set(n.warnings);return D.length&&A.add(`credentials-ignored`),Object.values(k).some(e=>e.rejected>0)&&A.add(`entries-rejected`),Object.values(k).some(e=>e.evictedExisting>0)&&A.add(`import-may-evict-existing`),{dashboards:s,memory:d,flashcards:p,studyStyle:h,library:b,atlas:C,courses:T,settingsApplied:E,versionAhead:n.versionAhead,credentialsIgnored:D,warnings:[...A],excludedStores:M,durability:`best-effort-unverified`,preflight:n,sections:k}}export{T as MAX_BACKUP_BYTES,F as downloadBackup,Q as importBackup};
1
+ import{n as e}from"./catalog-vLsIS_Na.js";import{t}from"./facts-CNQz8OQz.js";import{t as n}from"./blockTypes-DUDdP3pB.js";import{validateLiveResponse as r}from"./liveSchema-eKgFc5D0.js";import{i,r as a,s as o}from"./store-C9s8Bfz0.js";import{F as s,m as c,x as l}from"./store-D16dGt7I.js";import{i as u,t as d}from"./useLiveConfig-CvOQTr0s.js";import{a as f,l as p,o as m}from"./store-DqOaVRLn.js";import{a as h,c as g,r as _,s as v}from"./store-D2IJF4SA.js";import{r as y,s as b,t as x}from"./store-CgA7mKy1.js";import{c as S,l as C,u as w}from"./store-B2Rpbqgg.js";var T=25e6,E=32,D=5e5,O=256,k=32768,A=24,j={dashboards:{count:24,entryBytes:1e6},memory:{count:50,entryBytes:16e3},flashcards:{count:1e3,entryBytes:32e3},library:{count:12,entryBytes:24e4},atlas:{count:500,entryBytes:16e3},courses:{count:60,entryBytes:3e5}},M=Object.freeze([{id:`provider-api-keys`,reason:`credential`},{id:`search-api-keys`,reason:`credential`},{id:`github-token`,reason:`credential`},{id:`active-session-and-turn-history`,reason:`not-yet-portable`},{id:`turn-bookmarks`,reason:`not-yet-portable`},{id:`dashboard-refresh-ledger`,reason:`not-yet-portable`},{id:`dashboard-morning-briefing`,reason:`not-yet-portable`},{id:`dashboard-budget-open-and-optimizer-state`,reason:`device-preference`},{id:`course-generated-frame-cache`,reason:`ephemeral-cache`},{id:`course-checkpoint-cache`,reason:`ephemeral-cache`},{id:`course-mastery`,reason:`not-yet-portable`},{id:`ripple-course-progress-and-metadata`,reason:`not-yet-portable`},{id:`ripple-tracked-items`,reason:`not-yet-portable`},{id:`appearance-audio-performance-preferences`,reason:`device-preference`},{id:`setup-tour-demo-and-feature-hints`,reason:`device-preference`},{id:`legal-acceptance-record`,reason:`device-preference`},{id:`one-shot-navigation-seeds`,reason:`ephemeral-cache`}]);async function N(){await Promise.all([s(),p(),o(),b()])}async function P(){await N();let e=S();return{app:`mavea`,kind:`backup`,version:1,exportedAt:Date.now(),data:{dashboards:c(),memory:f(),flashcards:_(),study:h(),library:a(),atlas:x(),courses:{courses:e,progress:Object.fromEntries(e.map(e=>[e.id,C(e.id)]))},settings:JSON.parse(d())}}}async function F(){let e=JSON.stringify(await P()),t=new Blob([e],{type:`application/json`}),n=URL.createObjectURL(t);try{let e=document.createElement(`a`);e.href=n,e.download=`mavea-backup-${new Date().toISOString().slice(0,10)}.json`,e.click()}finally{URL.revokeObjectURL(n)}}function I(e){return typeof TextEncoder==`function`?new TextEncoder().encode(e).byteLength:e.length*2}function L(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function R(e){let t=0,n=(e,r)=>{if(t+=1,t>D||r>E)throw Error(`That backup is too complex to import safely.`);if(typeof e==`string`&&e.length>k)throw Error(`That backup contains an oversized text field.`);if(Array.isArray(e)){for(let t of e)n(t,r+1);return}if(L(e)){let t=Object.entries(e);if(t.length>O)throw Error(`That backup contains an oversized object.`);for(let[e,i]of t){if(e.length>256)throw Error(`That backup contains an oversized field name.`);n(i,r+1)}}};n(e,0)}function z(e,t){try{return L(e)&&I(JSON.stringify(e))<=t}catch{return!1}}function B(e,t){let n=Array.isArray(e)?e:[],{count:r,entryBytes:i}=j[t],a=n.slice(0,r).filter(e=>z(e,i));return{incoming:n.length,entries:a,rejected:n.length-a.length}}var V=new Set([...n,...t.map(e=>e.type)]);async function H(t){let n=new Set,r=e=>{if(Array.isArray(e))for(let t of e.slice(0,A))L(t)&&typeof t.type==`string`&&n.add(t.type)};for(let e of t)if(L(e.spec)&&r(e.spec.blocks),Array.isArray(e.widgets))for(let t of e.widgets)L(t)&&r([t.block]);await e(n)}function U(e,t){return!Array.isArray(e)||e.length>A?null:r({title:t||`Imported canvas`,blocks:e},V,A,!0)}function W(e){if(!Array.isArray(e.blocks)||e.blocks.length>A)return null;let t=r({title:e.title,sub:e.sub,narration:e.opener,topic:e.topic,blocks:e.blocks,sources:e.sources,bend:e.bend,blanks:e.blanks,track:e.track},V,A,!0);return t?{id:`live`,workspace:`Live`,title:t.title,sub:t.sub,opener:t.narration,context:[],blocks:t.blocks,proof:null,...t.topic?{topic:t.topic}:{},...t.track?{track:t.track}:{},...t.bend?{bend:t.bend}:{},...t.blanks?.length?{blanks:t.blanks,awaiting:!0}:{},...t.sources?.length?{sources:t.sources}:{},extras:{},group:`home`,suggests:[],keywords:[]}:null}async function G(e){await H(e);let t=[];for(let n of e){if(!L(n.spec))continue;let e=W(n.spec);e&&t.push({...n,spec:e})}return t}async function K(e){return await H(e),e.map(e=>{if(!Array.isArray(e.widgets))return e;let t=[];for(let n of e.widgets.slice(0,12)){if(!L(n))continue;let e=U([n.block],`Imported dashboard widget`)?.blocks[0];e&&t.push({id:typeof n.id==`string`?n.id:``,block:e,span:n.span===2||n.span===3?n.span:1,fromSource:typeof n.fromSource==`string`?n.fromSource:``,...typeof n.metricId==`string`?{metricId:n.metricId}:{},...typeof n.refreshQuery==`string`?{refreshQuery:n.refreshQuery}:{}})}return{...e,widgets:t}})}function q(e){if(!L(e))return[];let t=[],n=e=>typeof e==`string`||Array.isArray(e)?e.length>0:L(e)?Object.keys(e).length>0:e!=null;return Object.prototype.hasOwnProperty.call(e,`keys`)&&n(e.keys)&&t.push(`provider-api-keys`),Object.prototype.hasOwnProperty.call(e,`searchKeys`)&&n(e.searchKeys)&&t.push(`search-api-keys`),[`githubToken`,`github_token`,`ghToken`].some(t=>Object.prototype.hasOwnProperty.call(e,t)&&n(e[t]))&&t.push(`github-token`),t}function J(e,t,n){return{incoming:t,accepted:n,rejected:t-n,limit:j[e].count}}async function Y(e){let t=I(e);if(t>25e6)throw Error(`That file is too large to be a Mavéa backup.`);let n;try{n=JSON.parse(e)}catch{throw Error(`This file isn’t valid JSON — it may be corrupted or not a Mavéa backup.`)}if(R(n),!L(n)||n.app!==`mavea`||n.kind!==`backup`||typeof n.version!=`number`||!Number.isSafeInteger(n.version)||n.version<1||!L(n.data))throw Error(`This file isn’t a Mavéa backup.`);let r=n.data,i=B(r.dashboards,`dashboards`),a=B(r.memory,`memory`),o=B(r.flashcards,`flashcards`),s=B(r.library,`library`),c=B(r.atlas,`atlas`),l=L(r.courses)?r.courses:{},u=B(l.courses,`courses`),[d,f]=await Promise.all([K(i.entries),G(s.entries)]),p={};if(L(l.progress)){let e=new Set(u.entries.flatMap(e=>typeof e.id==`string`&&e.id?[e.id]:[]));for(let[t,n]of Object.entries(l.progress))e.has(t)&&z(n,15e4)&&(p[t]=n)}let m={app:`mavea`,kind:`backup`,version:n.version,exportedAt:typeof n.exportedAt==`number`&&Number.isFinite(n.exportedAt)?n.exportedAt:0,data:{dashboards:d,memory:a.entries,flashcards:o.entries,study:r.study,library:f,atlas:c.entries,courses:{courses:u.entries,progress:p},...L(r.settings)?{settings:r.settings}:{}}},h={dashboards:J(`dashboards`,i.incoming,d.length),memory:J(`memory`,a.incoming,a.entries.length),flashcards:J(`flashcards`,o.incoming,o.entries.length),library:J(`library`,s.incoming,f.length),atlas:J(`atlas`,c.incoming,c.entries.length),courses:J(`courses`,u.incoming,u.entries.length)},g=q(r.settings),_=n.version>1,v=new Set([`durability-unverified`,`import-may-evict-existing`,`stores-excluded`]);return g.length&&v.add(`credentials-ignored`),_&&v.add(`future-version`),Object.values(h).some(e=>e.rejected>0)&&v.add(`entries-rejected`),{bundle:m,preflight:{version:n.version,versionAhead:_,byteLength:t,credentialsPresent:g,warnings:[...v],excludedStores:M,sections:h}}}function X(e){let t=new Set;for(let n of e)L(n)&&typeof n.id==`string`&&n.id&&t.add(n.id);return t}function Z(e,t,n,r,i){let a=X(n),o=X(r),s=X(i),c=0,l=0;for(let e of a)o.has(e)&&(c+=1);for(let e of o)s.has(e)||(l+=1);return{...e,accepted:t,rejected:e.incoming-t,conflicts:c,evictedExisting:l}}async function Q(e){let[{bundle:t,preflight:n}]=await Promise.all([Y(e),N()]),{data:r}=t,o={dashboards:c(),memory:f(),flashcards:_(),library:a(),atlas:x(),courses:S()},s=l(r.dashboards??[]),d=m(r.memory??[]),p=v(r.flashcards??[]),h=g(r.study),b=i(r.library??[]),C=y(r.atlas??[]),T=r.courses?w(r.courses.courses,r.courses.progress):0,E=!1,D=[...n.credentialsPresent];if(r.settings){let e=u(JSON.stringify(r.settings),{mode:`merge`,preserveSecretState:!0});E=e.appliedFields.length>0,D=[...new Set([...D,...e.credentialsIgnored])]}let O={dashboards:c(),memory:f(),flashcards:_(),library:a(),atlas:x(),courses:S()},k={dashboards:Z(n.sections.dashboards,s,r.dashboards??[],o.dashboards,O.dashboards),memory:Z(n.sections.memory,d,r.memory??[],o.memory,O.memory),flashcards:Z(n.sections.flashcards,p,r.flashcards??[],o.flashcards,O.flashcards),library:Z(n.sections.library,b,r.library??[],o.library,O.library),atlas:Z(n.sections.atlas,C,r.atlas??[],o.atlas,O.atlas),courses:Z(n.sections.courses,T,r.courses?.courses??[],o.courses,O.courses)},A=new Set(n.warnings);return D.length&&A.add(`credentials-ignored`),Object.values(k).some(e=>e.rejected>0)&&A.add(`entries-rejected`),Object.values(k).some(e=>e.evictedExisting>0)&&A.add(`import-may-evict-existing`),{dashboards:s,memory:d,flashcards:p,studyStyle:h,library:b,atlas:C,courses:T,settingsApplied:E,versionAhead:n.versionAhead,credentialsIgnored:D,warnings:[...A],excludedStores:M,durability:`best-effort-unverified`,preflight:n,sections:k}}export{T as MAX_BACKUP_BYTES,F as downloadBackup,Q as importBackup};
@@ -0,0 +1 @@
1
+ var e={decisionrecord:{title:`Decision record · DR-014`,icon:`check`,iconColor:`var(--insight)`,decision:`Run a two-week pilot with one support queue before changing the full workflow.`,rationale:[`A narrow pilot exposes operational issues without moving every team at once.`,`The queue already has a stable baseline and an accountable owner.`,`Two weeks captures both weekday and weekend demand.`],status:`decided`,owner:`Support operations`,decidedAt:`August 22`,revisitWhen:`Resolution time worsens by more than 10%`},assumptionledger:{title:`Launch assumptions`,icon:`layers`,assumptions:[{assumption:`New users understand the first-run prompt without instruction.`,evidence:`Five of seven moderated participants completed it unaided.`,confidence:`medium`,test:`Run an unmoderated comprehension study.`,status:`active`},{assumption:`The existing support rotation can absorb pilot demand.`,evidence:`Current utilization averages 68%.`,confidence:`low`,status:`pending`},{assumption:`Customers value faster setup over advanced controls.`,test:`Compare activation across simplified and advanced variants.`,confidence:`untested`,status:`unknown`}]},requirementboard:{title:`Release scope`,icon:`table`,groups:[{priority:`must`,items:[{requirement:`Keyboard-complete setup`,acceptance:`All actions work without a pointer.`,owner:`Web`,status:`active`},{requirement:`Recoverable save failures`,acceptance:`Draft remains available after a failed request.`,owner:`Platform`,status:`pending`}]},{priority:`should`,items:[{requirement:`Import saved preferences`,owner:`Platform`,status:`pending`}]},{priority:`could`,items:[{requirement:`Optional compact density`,status:`unknown`}]},{priority:`wont`,items:[{requirement:`Custom themes in this release`}]}]},experimentplan:{title:`Pilot experiment`,icon:`spark`,hypothesis:`Showing one concrete example before setup will improve successful first sessions.`,variables:[{name:`Example preview`,role:`input`,level:`Shown vs hidden`},{name:`Successful first session`,role:`outcome`,level:`Completed within 10 minutes`},{name:`Traffic source`,role:`control`,level:`Balanced by channel`}],steps:[`Randomly assign eligible new sessions.`,`Run until the agreed sample or stop condition.`,`Compare completion and support-contact rates.`],measures:[`Completion rate`,`Time to first result`,`Support contacts`],guardrail:`Stop if error rate rises materially or participants cannot exit the flow.`},negotiationplan:{title:`Renewal negotiation`,icon:`chat`,goal:`Hold the annual price while adding a 60-day cancellation window.`,walkAway:`More than a 7% increase without a shorter commitment.`,levers:[{label:`Contract length`,value:`12–24 months`,priority:`high`},{label:`Payment schedule`,value:`Annual or quarterly`,priority:`medium`},{label:`Reference participation`,value:`Case study after six months`,priority:`low`}],concessions:[`Prepay the first year`,`Name a single administrative owner`],guardrails:[`No automatic renewal`,`Usage data remains exportable`]},stakeholdermap:{title:`Migration stakeholders`,icon:`share`,stakeholders:[{name:`Executive sponsor`,role:`Budget owner`,influence:`high`,interest:`high`,strategy:`Weekly decision brief.`},{name:`Security review`,role:`Control owner`,influence:`high`,interest:`low`,strategy:`Bring evidence before each gate.`},{name:`Support team`,role:`Frontline users`,influence:`low`,interest:`high`,strategy:`Pilot early and publish changes.`},{name:`Adjacent teams`,influence:`low`,interest:`low`,strategy:`Monthly digest.`}]},serviceblueprint:{title:`Repair appointment blueprint`,icon:`layers`,stages:[{stage:`Book`,customer:`Choose a time`,frontstage:`Show availability`,backstage:`Reserve capacity`,support:`Scheduling service`},{stage:`Arrive`,customer:`Check in`,frontstage:`Confirm the request`,backstage:`Open work order`,support:`Customer record`},{stage:`Repair`,customer:`Receive updates`,frontstage:`Explain findings`,backstage:`Complete diagnosis`,support:`Parts inventory`},{stage:`Collect`,customer:`Review and pay`,frontstage:`Handoff`,backstage:`Close work order`,support:`Payments`}],evidence:[`Booking confirmation`,`Status message`,`Receipt`]},approvalflow:{title:`Campaign approval`,icon:`check`,request:`Approve the fall launch campaign for production.`,status:`active`,due:`Friday, 3:00 PM`,approvers:[{name:`Brand lead`,role:`Voice and identity`,status:`done`,decidedAt:`Tue 10:15 AM`},{name:`Legal review`,role:`Claims and usage rights`,status:`active`,note:`Waiting on the final image credits.`},{name:`Marketing director`,role:`Final sign-off`,status:`pending`}]},resourceplan:{title:`Workshop capacity`,icon:`layers`,period:`September sessions`,resources:[{name:`Facilitators`,capacity:`12 shifts`,demand:`14 shifts`,gap:`−2 shifts`,owner:`Program lead`,status:`blocked`},{name:`Training room`,capacity:`8 days`,demand:`8 days`,gap:`Balanced`,owner:`Facilities`,status:`done`},{name:`Loaner laptops`,capacity:`24`,demand:`20`,gap:`+4`,owner:`IT`,status:`active`}]},maintenanceplan:{title:`Home maintenance plan`,icon:`sliders`,assets:[{asset:`Heating and cooling`,tasks:[{task:`Replace air filter`,interval:`3 months`,lastDone:`July 5`,nextDue:`October 5`,owner:`Household`,status:`active`},{task:`Professional service`,interval:`1 year`,nextDue:`March`,owner:`Licensed technician`,status:`pending`}]},{asset:`Safety`,tasks:[{task:`Test smoke alarms`,interval:`1 month`,lastDone:`August 1`,nextDue:`September 1`,status:`active`}]}]},contactdirectory:{title:`Event contacts`,icon:`mail`,entries:[{name:`Jordan Lee`,role:`Venue lead`,organization:`Harbor Hall`,methods:[{label:`Work`,value:`(555) 010-0184`},{label:`Email`,value:`jordan@example.test`}],availability:`Event day · 8 AM–8 PM`},{name:`Sam Rivera`,role:`Catering captain`,methods:[{label:`Work`,value:`(555) 010-0168`}],note:`Call for delivery access.`},{name:`Avery Chen`,role:`Accessibility contact`,methods:[{label:`Email`,value:`avery@example.test`}]}],privacyNote:`Example data only. Share real contact information only with the intended audience.`},tripbudget:{title:`Trip budget`,icon:`globe`,trip:`Four days in Montréal`,currency:`CAD`,lines:[{category:`Rail`,planned:`$240`,actual:`$228`,note:`Round trip`},{category:`Stay`,planned:`$720`,actual:`$704`,note:`Three nights`},{category:`Food`,planned:`$320`,actual:`$346`},{category:`Local transit`,planned:`$60`,actual:`$54`}],plannedTotal:`$1,340`,actualTotal:`$1,332`,footer:`Illustrative amounts; taxes and exchange fees can change the total.`},careinstructions:{title:`After-visit care summary`,icon:`shield`,subject:`Minor ankle sprain · clinician-supplied instructions`,do:[`Follow the provided activity limits.`,`Use the recommended support as directed.`,`Keep the follow-up appointment.`],avoid:[`Do not exceed the clinician’s return-to-activity plan.`,`Do not use medication differently from its label or instructions.`],warningSigns:[`New numbness or weakness`,`Rapidly increasing swelling or pain`,`Any symptom the care team marked urgent`],followUp:`Contact the care team if recovery is not progressing as they described.`,source:`Example after-visit instructions`},clausecompare:{title:`Clause comparison`,icon:`doc`,left:{label:`Current draft`,text:`Either party may terminate with 30 days’ written notice.`},right:{label:`Proposed draft`,text:`The customer may terminate after the initial term with 60 days’ written notice.`},differences:[{topic:`Who may terminate`,change:`The right changes from either party to the customer only.`,risk:`medium`},{topic:`Timing`,change:`Notice grows from 30 to 60 days and applies only after the initial term.`,risk:`high`},{topic:`Form`,change:`Written notice remains required.`,risk:`low`}],jurisdiction:`the relevant jurisdiction`},incidentbrief:{title:`Service incident · INC-27`,icon:`alert`,impact:`Some customers cannot complete checkout.`,severity:`high`,status:`active`,timeline:[{time:`10:02`,event:`Automated error-rate alert fired.`,status:`done`},{time:`10:09`,event:`On-call traced failures to the payment handoff.`,status:`done`},{time:`10:21`,event:`Traffic shifted to the previous stable path.`,status:`active`}],owners:[`Incident lead`,`Payments on-call`],actions:[`Confirm error-rate recovery`,`Reconcile interrupted orders`],nextUpdate:`10:45 AM`},coveragecheck:{title:`Warranty coverage check`,icon:`shield`,policy:`Example appliance protection plan`,asOf:`the supplied policy copy`,rows:[{item:`Mechanical breakdown`,status:`covered`,limit:`Up to the stated service limit`,evidence:`Coverage section 2`},{item:`Accidental damage`,status:`excluded`,evidence:`Exclusions section 4`},{item:`Food loss`,status:`conditional`,limit:`Receipt and outage duration required`,evidence:`Benefit section 6`},{item:`Pre-existing fault`,status:`unknown`,evidence:`Confirm the effective date and inspection terms`}]},offerbreakdown:{title:`Offer breakdown`,icon:`chart`,employer:`Example Studio`,role:`Senior product designer`,parts:[{label:`Base salary`,value:`$165,000`,kind:`base`},{label:`Target bonus`,value:`10%`,kind:`bonus`,note:`Performance-based; not guaranteed.`},{label:`Equity grant`,value:`4,000 units`,kind:`equity`,note:`Value depends on vesting, price, and liquidity.`},{label:`Signing bonus`,value:`$12,000`,kind:`one-time`,note:`Repayment terms may apply.`},{label:`Retirement match`,value:`Up to 4%`,kind:`benefit`}],estimatedTotal:`$193,500 first-year cash at target`,assumptions:[`Target bonus is achieved`,`Equity is excluded from the cash total`,`Verify tax and repayment terms`]}};export{e as default};
@@ -0,0 +1 @@
1
+ import"./TopicCanvas-DSCNWNjv.js";