@mavea/mavea 1.2.1 → 2.0.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 (389) hide show
  1. package/CHANGELOG.md +81 -0
  2. package/PRIVACY.md +1 -0
  3. package/README.md +8 -4
  4. package/TERMS.md +1 -1
  5. package/THIRD-PARTY.txt +13 -5
  6. package/bin/mavea.mjs +143 -2
  7. package/dist/.vite/manifest.json +1469 -857
  8. package/dist/assets/AnnotationLayer-Cccb12ps.js +0 -0
  9. package/dist/assets/{AppCommandPalette-CgDUWU08.js → AppCommandPalette-DdOPNZ0e.js} +1 -1
  10. package/dist/assets/AtlasView-B7yObdf8.css +1 -0
  11. package/dist/assets/{AtlasView-B82UfrEX.js → AtlasView-DO_p0TdZ.js} +1 -1
  12. package/dist/assets/BriefingPlayer-DHV4vMga.css +1 -0
  13. package/dist/assets/{CadenceCard-P4teI7Se.js → CadenceCard-DxceyiPA.js} +1 -1
  14. package/dist/assets/{CanvasSkeleton-CRGWlafo.js → CanvasSkeleton-BmGjJHUQ.js} +1 -1
  15. package/dist/assets/CanvasSkeleton-DYASkTjW.css +1 -0
  16. package/dist/assets/CardEditor-CiAfT78z.css +1 -0
  17. package/dist/assets/{CardEditor-DABIhGdQ.js → CardEditor-D4slxmIM.js} +1 -1
  18. package/dist/assets/{CheckLogRail-DO7sbZwC.js → CheckLogRail-BibJTid0.js} +1 -1
  19. package/dist/assets/ConversationVideoStudio-CSO3jHXD.css +1 -0
  20. package/dist/assets/ConversationVideoStudio-DMIPUCcq.js +1 -0
  21. package/dist/assets/CourseLessonReader-D29Kix4f.js +2 -0
  22. package/dist/assets/{CourseRail-DXt3bzjU.js → CourseRail-BQmUsG6v.js} +1 -1
  23. package/dist/assets/CoursesApp-DcDsS_ZS.js +2 -0
  24. package/dist/assets/CrossExamPanel-BafTqkbf.css +1 -0
  25. package/dist/assets/{DashPresent-B6MP1i_4.js → DashPresent-BDWgO9am.js} +1 -1
  26. package/dist/assets/DashboardDetail-BrnAdWfy.js +2 -0
  27. package/dist/assets/DashboardLoopGate-NxMcQ4rD.js +2 -0
  28. package/dist/assets/DashboardLoopRuntime-Dsy9u1wa.js +1 -0
  29. package/dist/assets/{DashboardSettings-CE0B2y2y.js → DashboardSettings-DJon1Q4o.js} +1 -1
  30. package/dist/assets/DashboardsApp-DxyMn3x_.js +2 -0
  31. package/dist/assets/DeepZoomApp-CVwmnRGN.css +1 -0
  32. package/dist/assets/{DeepZoomApp-UEPtylG7.js → DeepZoomApp-nNjqoyYE.js} +1 -1
  33. package/dist/assets/DelegatePanel-D17XvWYd.css +1 -0
  34. package/dist/assets/DelegatePanel-DN_ZL0j7.js +33 -0
  35. package/dist/assets/DemoGallery-DrSlMsnu.js +1 -0
  36. package/dist/assets/{DropSelect-DilESAgA.css → DropSelect-B4lqCEjw.css} +1 -1
  37. package/dist/assets/{DropSelect-QcBm3N4D.js → DropSelect-GwIXHA5o.js} +1 -1
  38. package/dist/assets/{ExportModal-Ya0VBbxa.js → ExportModal-DBUjC71U.js} +1 -1
  39. package/dist/assets/{ExtractionPreview-BFrmqKDo.js → ExtractionPreview-D4M6eXqb.js} +1 -1
  40. package/dist/assets/{FeatureUseNotice-Dc3GNBvy.js → FeatureUseNotice-Bda9jr3W.js} +1 -1
  41. package/dist/assets/{FlagshipCommandPalette-B1yHwI6V.js → FlagshipCommandPalette-DAO849RC.js} +1 -1
  42. package/dist/assets/FlagshipShowcase-g2x-1c70.js +1 -0
  43. package/dist/assets/{FlashcardsApp-DteNeHpz.js → FlashcardsApp-BUKzCr65.js} +1 -1
  44. package/dist/assets/ForecastPanel-Cq_yDhNQ.css +1 -0
  45. package/dist/assets/GalleryApp-ot_A7ZF-.js +1 -0
  46. package/dist/assets/{HonestByDesign-DZltb3Ss.js → HonestByDesign-DgZFEpEx.js} +1 -1
  47. package/dist/assets/{HowItWorks-D-hgfN6a.js → HowItWorks-DPFpdeGE.js} +1 -1
  48. package/dist/assets/{LegalApp-ChzcKiY0.js → LegalApp-C56kWdmK.js} +1 -1
  49. package/dist/assets/{LegalMarkdownDocument-j6UHhPnp.js → LegalMarkdownDocument-BBTHuW_M.js} +1 -1
  50. package/dist/assets/{LegalPageShell-Wcsviye1.js → LegalPageShell-hMA-7JLf.js} +1 -1
  51. package/dist/assets/LeverPanel-HOEwIr8k.css +1 -0
  52. package/dist/assets/{Library-DmdzY2se.js → Library-CVj7R6F4.js} +1 -1
  53. package/dist/assets/LibraryOverlay-BkPYm0Bs.css +1 -0
  54. package/dist/assets/{LibraryOverlay-YHBrdVKo.js → LibraryOverlay-DSUWcUe4.js} +1 -1
  55. package/dist/assets/LiveApp-B62EMybC.js +79 -0
  56. package/dist/assets/LiveApp-CziqEsOb.css +1 -0
  57. package/dist/assets/LiveSettings-BITIaMoT.js +6 -0
  58. package/dist/assets/LiveSettings-Dho0OxlM.css +1 -0
  59. package/dist/assets/{MindMapViewerDrawer-DI_S7fRZ.js → MindMapViewerDrawer-CKdJtHno.js} +1 -1
  60. package/dist/assets/MindShape-B3lg_z4X.js +1 -0
  61. package/dist/assets/MindShape-CozR9W8M.css +1 -0
  62. package/dist/assets/{PinToDashboard-BCiWaSg8.js → PinToDashboard-DpQjBLPa.js} +1 -1
  63. package/dist/assets/{PlanReview-BIERfK1t.js → PlanReview-CrTbmMAd.js} +1 -1
  64. package/dist/assets/PresentationDeck-CfYadu9V.js +1 -0
  65. package/dist/assets/PrismApp-bRKK_3JA.js +2 -0
  66. package/dist/assets/PrismAskController-68gbUO5u.css +1 -0
  67. package/dist/assets/{PrismAskController-Bt0k9hAA.js → PrismAskController-C4MuB8om.js} +1 -1
  68. package/dist/assets/{PrismBriefingPlayer-DLAPs6eZ.js → PrismBriefingPlayer-ChJj6hSS.js} +2 -2
  69. package/dist/assets/PrismOverlay-BwnF4BEn.css +1 -0
  70. package/dist/assets/{PrismOverlay-DJDGPGxo.js → PrismOverlay-Pp6ZKmTc.js} +4 -4
  71. package/dist/assets/{PrismWorkbench-DHLvpguj.js → PrismWorkbench-BCV7r4Oa.js} +1 -1
  72. package/dist/assets/{PrivacyApp-uMjq2z14.js → PrivacyApp-A2Bu6LVd.js} +2 -1
  73. package/dist/assets/{Recap-T9DtFaEk.js → Recap-BOl3SUh0.js} +1 -1
  74. package/dist/assets/Recap-D3NlzM1p.css +1 -0
  75. package/dist/assets/{ReplayCard-F7U3LYAg.js → ReplayCard-B6NYiYzQ.js} +2 -2
  76. package/dist/assets/{ReplayOverlay-BTldvkU7.js → ReplayOverlay-BJKtJ-vc.js} +1 -1
  77. package/dist/assets/{RewindOverlay-CousnxXo.js → RewindOverlay-BO7YgDsW.js} +1 -1
  78. package/dist/assets/RippleApp-BXt7tenS.js +2 -0
  79. package/dist/assets/{RippleAskController-9SxpZnHX.js → RippleAskController-BzdwYcYY.js} +1 -1
  80. package/dist/assets/RippleOverlay-B3hg2KMN.css +1 -0
  81. package/dist/assets/RippleOverlay-BSxubBwj.js +6 -0
  82. package/dist/assets/SeeDontRead-0He5hS2C.js +1 -0
  83. package/dist/assets/ShareModal-I_sxHKLv.css +1 -0
  84. package/dist/assets/ShareModal-xYdZWJxy.js +2 -0
  85. package/dist/assets/{ShipCourse-Up9gRR07.js → ShipCourse-Dg6kCWyH.js} +1 -1
  86. package/dist/assets/{SignatureLoop-Cq790dMw.js → SignatureLoop-QPwB2oNN.js} +1 -1
  87. package/dist/assets/SrsReview-DmBcJCMa.css +1 -0
  88. package/dist/assets/{SrsReview-DhWNYYv7.js → SrsReview-Gr6Y0QTQ.js} +1 -1
  89. package/dist/assets/{SynthesisApp-4ZPLZgmJ.js → SynthesisApp-DrCq6NDa.js} +2 -2
  90. package/dist/assets/{SynthesisOverlay-iesJ0hEt.js → SynthesisOverlay-DCa-2Pz_.js} +1 -1
  91. package/dist/assets/{TermsApp-DL2hFKsv.js → TermsApp-zcPDYfuh.js} +2 -2
  92. package/dist/assets/TopicCanvas-Bw4bMFpe.js +2 -0
  93. package/dist/assets/TopicCanvas-DWTm611H.css +1 -0
  94. package/dist/assets/{TourPrism-kInUOv-M.js → TourPrism-DbinDupp.js} +1 -1
  95. package/dist/assets/{TrackerTile-BryDo0sm.js → TrackerTile-CrT9u1I4.js} +2 -2
  96. package/dist/assets/{TwoSurfaces-Cmj95ofx.js → TwoSurfaces-L0CDuyOZ.js} +1 -1
  97. package/dist/assets/WhyMachineOverlay-Rav-cuMm.css +1 -0
  98. package/dist/assets/WorldOverlay-BcjqG1BR.js +2 -0
  99. package/dist/assets/{WowFeatures-DDICbxl_.js → WowFeatures-CwBk4ZMO.js} +1 -1
  100. package/dist/assets/ZoomDeck-DdLNsrHV.css +1 -0
  101. package/dist/assets/{ZoomDeck-CKOjYS9z.js → ZoomDeck-DlnesweX.js} +1 -1
  102. package/dist/assets/{annotationAuto-CDv6Es44.js → annotationAuto-B2UdfJNj.js} +1 -1
  103. package/dist/assets/{backup-ZrlVatXc.js → backup-685QrAjt.js} +1 -1
  104. package/dist/assets/canvas-C3O7MEA3.js +1 -0
  105. package/dist/assets/capture-DgJLQ_0-.js +2 -0
  106. package/dist/assets/{chapters-Dqm4iLDa.js → chapters-CIvdCeBC.js} +1 -1
  107. package/dist/assets/{confirmAdd-DkmbWaSk.js → confirmAdd-CZ829Mbx.js} +1 -1
  108. package/dist/assets/{dashboardEvents-D-XVj666.js → dashboardEvents-CiayRLrH.js} +1 -1
  109. package/dist/assets/dashboards-Cvs28p3Z.css +1 -0
  110. package/dist/assets/deepen-DAeHHFiI.js +11 -0
  111. package/dist/assets/deepenStore-BWLLzLCY.js +1 -0
  112. package/dist/assets/effort-jJe4iMIq.js +39 -0
  113. package/dist/assets/{explode-BgZIWY9m.js → explode-CPnvJiTg.js} +1 -1
  114. package/dist/assets/{fitText-DQ2omSN0.js → fitText-DHbmSS-q.js} +1 -1
  115. package/dist/assets/{generate-Dl2EJ_SR.js → generate-COfYQFmT.js} +4 -4
  116. package/dist/assets/{generateBeats-DtptFLlG.js → generateBeats-COflu5Zi.js} +1 -1
  117. package/dist/assets/{generateCourse-C9qvaJRo.js → generateCourse-BldPpgdh.js} +1 -1
  118. package/dist/assets/generateLive-DGwnpIip.js +24 -0
  119. package/dist/assets/homeTarget-CwFsJYwb.js +1 -0
  120. package/dist/assets/index-BIUYTk1W.css +1 -0
  121. package/dist/assets/index-LiHcEJt_.js +22 -0
  122. package/dist/assets/kokoro-DXRj0KQX.js +1 -0
  123. package/dist/assets/ledger-BssK9Pv2.js +1 -0
  124. package/dist/assets/{lib-DMAxsZKm.css → lib-DP9Kuxqk.css} +1 -1
  125. package/dist/assets/{liveSchema-B4bQtO88.js → liveSchema-DyfND6P2.js} +2 -2
  126. package/dist/assets/{loader-DCA6Njbf.js → loader-DgMLGfAC.js} +2 -2
  127. package/dist/assets/localBudget-CxLP6bjE.js +1 -0
  128. package/dist/assets/{mastery-CUfDeuqO.js → mastery-DB5qpRAy.js} +1 -1
  129. package/dist/assets/{media-BvwzACIX.js → media-VLRh6CX2.js} +2 -2
  130. package/dist/assets/{model-BFRTN9Eh.js → model-CAewjw45.js} +1 -1
  131. package/dist/assets/{neighborhoods-D7QjURnE.js → neighborhoods-CqECCmo8.js} +1 -1
  132. package/dist/assets/{notes-B6eX5XWk.js → notes-DzIAEESd.js} +1 -1
  133. package/dist/assets/pen-DtEW1xf4.js +24 -0
  134. package/dist/assets/{perfProbe-CE7hsUEo.js → perfProbe-ezVn1mOu.js} +1 -1
  135. package/dist/assets/{pin-BZuh1acO.js → pin-BPGVDgnq.js} +1 -1
  136. package/dist/assets/pin-BXyyKnci.css +1 -0
  137. package/dist/assets/{planTracker-KKAtTBWs.js → planTracker-BwoKEftp.js} +1 -1
  138. package/dist/assets/portal-B9DmFo6J.js +1 -0
  139. package/dist/assets/{prewarm-uKxmzjjd.js → prewarm-BgUqAJbF.js} +1 -1
  140. package/dist/assets/providers-0DthJW_I.js +1 -0
  141. package/dist/assets/quietHours-DyynzDyC.js +1 -0
  142. package/dist/assets/{ready-jtAUOb62.js → ready-yBSGJubb.js} +1 -1
  143. package/dist/assets/{registry-B2QzCuWH.js → registry-7tKTrzeZ.js} +1 -1
  144. package/dist/assets/{registry-BFrgx1tE.js → registry-B53EEn8S.js} +1 -1
  145. package/dist/assets/{registry-CPiwQhAm.js → registry-BDXwUn3i.js} +1 -1
  146. package/dist/assets/{registry-DtV2UjBx.js → registry-BJEvFgoL.js} +1 -1
  147. package/dist/assets/{registry-B0GIHERt.js → registry-BQzvA61G.js} +1 -1
  148. package/dist/assets/{registry-6DGRAB1m.js → registry-BT6ydF33.js} +1 -1
  149. package/dist/assets/{registry-D8O0apUT.js → registry-BdHj_oIs.js} +1 -1
  150. package/dist/assets/{registry-Dru0JcTa.css → registry-BgWzEkxc.css} +1 -1
  151. package/dist/assets/{registry-Vp8VuMV0.js → registry-Bl2qfp5V.js} +1 -1
  152. package/dist/assets/registry-Bl7zAWKt.js +2 -0
  153. package/dist/assets/{registry-Dwbh-GWu.js → registry-BlujNlQJ.js} +1 -1
  154. package/dist/assets/{registry-C28gYnVq.js → registry-CE1T0z9x.js} +1 -1
  155. package/dist/assets/{registry-4mMEt1Xy.css → registry-CEV5h2cu.css} +1 -1
  156. package/dist/assets/{registry-ZOWzhOHk.css → registry-CGB0jkFI.css} +1 -1
  157. package/dist/assets/{registry-BFbfXK-W.js → registry-Cgo4C0ux.js} +1 -1
  158. package/dist/assets/registry-CwRTUk0R.js +1 -0
  159. package/dist/assets/{registry-1wlTAh5b.js → registry-D06LKiUk.js} +1 -1
  160. package/dist/assets/registry-Dbe9TQPw.css +1 -0
  161. package/dist/assets/registry-Diyud3DF.js +1 -0
  162. package/dist/assets/registry-DjvftnY2.css +1 -0
  163. package/dist/assets/{registry-w4R6c89s.js → registry-KRYoVMCh.js} +1 -1
  164. package/dist/assets/registry-QbArAJKB.js +1 -0
  165. package/dist/assets/registry-dmR14XnY.css +1 -0
  166. package/dist/assets/registry-g2sBcIrf.css +1 -0
  167. package/dist/assets/{registry-CcOO8UZr.js → registry-qRfnKTt4.js} +1 -1
  168. package/dist/assets/{relate-UW-sUlJH.js → relate-aQFFr11O.js} +1 -1
  169. package/dist/assets/{replay-B5TkHPri.js → replay-CalqEgdW.js} +1 -1
  170. package/dist/assets/route-CMdTFx0P.js +1 -0
  171. package/dist/assets/{run-Df10YPyB.js → run-CuHaB8wF.js} +1 -1
  172. package/dist/assets/{run-gmqUaxcL.js → run-CwMSPOps.js} +1 -1
  173. package/dist/assets/{run-DlvA3l28.js → run-DCQrxgHA.js} +1 -1
  174. package/dist/assets/select-wEtBn9U6.js +3 -0
  175. package/dist/assets/shapes-BwoDrn09.js +1 -0
  176. package/dist/assets/shard000-Bx6Nmt0m.js +1 -0
  177. package/dist/assets/shard001-CL6O9SLr.js +1 -0
  178. package/dist/assets/shard002-vLQ0Ss-O.js +1 -0
  179. package/dist/assets/shard003-kKZdpzuh.js +1 -0
  180. package/dist/assets/shard004-CdVohAu1.js +1 -0
  181. package/dist/assets/shard005-CMzF_uJB.js +1 -0
  182. package/dist/assets/shard006-DQoDWuoN.js +1 -0
  183. package/dist/assets/shard007-Ck0N0IUk.js +1 -0
  184. package/dist/assets/shard008-Dt395x0Q.js +1 -0
  185. package/dist/assets/shard009-D_z8Lhqh.js +1 -0
  186. package/dist/assets/shard010-CQfR6lnk.js +1 -0
  187. package/dist/assets/shard011-l-w2t2Ie.js +1 -0
  188. package/dist/assets/shard012-BTw_UO1C.js +1 -0
  189. package/dist/assets/shard013-D8ZjKKYb.js +1 -0
  190. package/dist/assets/shard014-Cth_76It.js +1 -0
  191. package/dist/assets/shard015-DdYJVsHx.js +1 -0
  192. package/dist/assets/shard016-BdlBf9uZ.js +1 -0
  193. package/dist/assets/shard017-C3HTxh6t.js +1 -0
  194. package/dist/assets/shard018-Mf4wvqVk.js +1 -0
  195. package/dist/assets/shard019-Dpcy1Arx.js +1 -0
  196. package/dist/assets/shard020-BNvKfQld.js +1 -0
  197. package/dist/assets/shard021-D0kpI_PQ.js +1 -0
  198. package/dist/assets/shard022-Cjms7kAe.js +1 -0
  199. package/dist/assets/shard023-Bdwci7fy.js +1 -0
  200. package/dist/assets/shard024-BBoyPtpP.js +1 -0
  201. package/dist/assets/shard025-lMGpgN_0.js +3 -0
  202. package/dist/assets/shard026-Bp3UVI4_.js +1 -0
  203. package/dist/assets/shard027-C4HTpdeT.js +1 -0
  204. package/dist/assets/shard028-BsFTH3Sf.js +1 -0
  205. package/dist/assets/shard029-B3dEcXPy.js +1 -0
  206. package/dist/assets/shard030-DWwA-fNs.js +5 -0
  207. package/dist/assets/shard031-RhqA_0nH.js +1 -0
  208. package/dist/assets/shard032-BlZdG1Yi.js +1 -0
  209. package/dist/assets/shard033-Dmx2lOjI.js +1 -0
  210. package/dist/assets/shard034-BLOFKJT4.js +1 -0
  211. package/dist/assets/shard035-DMXdH733.js +1 -0
  212. package/dist/assets/shard036-DzOiEn23.js +1 -0
  213. package/dist/assets/shard037-BcHfVaYM.js +1 -0
  214. package/dist/assets/shard038-KozOx-Jh.js +1 -0
  215. package/dist/assets/shard039-apdILQwC.js +1 -0
  216. package/dist/assets/shard040-BrNXGaBi.js +1 -0
  217. package/dist/assets/shard041-D6eq9h1u.js +4 -0
  218. package/dist/assets/shard042-M-L34DbY.js +1 -0
  219. package/dist/assets/shard043-Ct6_C2pN.js +1 -0
  220. package/dist/assets/shard044-Bo0iaVHx.js +1 -0
  221. package/dist/assets/shard045-9ccZ4Y_N.js +1 -0
  222. package/dist/assets/shard046-eXoP478L.js +1 -0
  223. package/dist/assets/shard047-N56r6Lsz.js +1 -0
  224. package/dist/assets/shard048-BeKX7cI8.js +1 -0
  225. package/dist/assets/shard049-hPaNN2sL.js +1 -0
  226. package/dist/assets/shard050-B-YpP0B6.js +1 -0
  227. package/dist/assets/shard051-Bww5_KB2.js +1 -0
  228. package/dist/assets/shard052-DErwF8Df.js +1 -0
  229. package/dist/assets/shard053-C-qGH4jz.js +1 -0
  230. package/dist/assets/shard054-kcSxZrSj.js +1 -0
  231. package/dist/assets/shard055-CsETBTqa.js +1 -0
  232. package/dist/assets/shard056-CdBR4qTC.js +1 -0
  233. package/dist/assets/shard057-yRUG8B9e.js +1 -0
  234. package/dist/assets/shard058-DeDAnECG.js +1 -0
  235. package/dist/assets/shard059-Dh6jbDnW.js +1 -0
  236. package/dist/assets/shard060-B5kpWrhW.js +1 -0
  237. package/dist/assets/shard061-BTnj5LZA.js +1 -0
  238. package/dist/assets/shard062-DC7LTaNc.js +1 -0
  239. package/dist/assets/shard063-C8SIGCfd.js +1 -0
  240. package/dist/assets/shard064-DLyASocW.js +1 -0
  241. package/dist/assets/shard065-Cy_yV4ry.js +1 -0
  242. package/dist/assets/shard066-BmjVQqFX.js +1 -0
  243. package/dist/assets/shard067-uZUJsqtF.js +1 -0
  244. package/dist/assets/shard068-CXVjyJU4.js +1 -0
  245. package/dist/assets/shard069-CyfmjAm-.js +4 -0
  246. package/dist/assets/shard070-CxN3xiuY.js +12 -0
  247. package/dist/assets/shard071-CP1WrYC-.js +1 -0
  248. package/dist/assets/shard072-D6L5Yr05.js +1 -0
  249. package/dist/assets/shard073-DFEzkwg2.js +1 -0
  250. package/dist/assets/shard074-BSv3rvRL.js +1 -0
  251. package/dist/assets/shard075-Bt0OjGVd.js +1 -0
  252. package/dist/assets/shard076-DZHs0uzd.js +1 -0
  253. package/dist/assets/{share-kW3pZ027.js → share--tpc1nLE.js} +1 -1
  254. package/dist/assets/speed-BOytg6bC.js +1 -0
  255. package/dist/assets/store-B2Rpbqgg.js +1 -0
  256. package/dist/assets/store-Ba9vzL4H.js +1 -0
  257. package/dist/assets/store-BwyOArJl.js +1 -0
  258. package/dist/assets/store-ruEsXJjU.js +1 -0
  259. package/dist/assets/streamParse-BX0bAppQ.js +2 -0
  260. package/dist/assets/{templates-DHeyJ32F.css → templates-BIkAr4YH.css} +1 -1
  261. package/dist/assets/{theme-7IrMJ70_.js → theme-D5D55hZi.js} +1 -1
  262. package/dist/assets/{threads-Cu2t3070.js → threads-DNfxMTwx.js} +1 -1
  263. package/dist/assets/{useDashboardLoop-BoVNM-pT.js → useDashboardLoop-ifcuVRo-.js} +3 -3
  264. package/dist/assets/{useDashboards-SRk8LqHe.js → useDashboards-lgQnk2Al.js} +1 -1
  265. package/dist/assets/useFocusTrap-CJmpNZv2.js +1 -0
  266. package/dist/assets/useInView-DsTvv7L_.js +1 -0
  267. package/dist/assets/useInterval-DDgFrel2.js +1 -0
  268. package/dist/assets/{useLiveConfig-Cpy0_E_-.js → useLiveConfig-B4CmBiAK.js} +1 -1
  269. package/dist/assets/useStudy-CySgE3Cx.js +1 -0
  270. package/dist/assets/{walkSync-CT8kmbzY.js → walkSync-DBne70gg.js} +1 -1
  271. package/dist/demo-assets/CREDITS.md +94 -50
  272. package/dist/demo-assets/images/arnel-lighthouse.avif +0 -0
  273. package/dist/demo-assets/images/cliff-fields.avif +0 -0
  274. package/dist/demo-assets/images/crater-panorama.avif +0 -0
  275. package/dist/demo-assets/images/furnas-lake.avif +0 -0
  276. package/dist/demo-assets/images/green-coast-raw.avif +0 -0
  277. package/dist/demo-assets/images/green-coast.avif +0 -0
  278. package/dist/demo-assets/images/island-coast-poster.avif +0 -0
  279. package/dist/demo-assets/images/nordeste-town.avif +0 -0
  280. package/dist/demo-assets/images/sea-cliffs.avif +0 -0
  281. package/dist/demo-assets/images/sete-cidades.avif +0 -0
  282. package/dist/demo-assets/images/tea-terraces.avif +0 -0
  283. package/dist/demo-assets/pdf/cfd-primer.pdf +0 -0
  284. package/dist/demo-assets/video/island-coast.webm +0 -0
  285. package/dist/fonts/fonts.css +18 -0
  286. package/dist/index.html +38 -10
  287. package/dist/legal/PRIVACY.md +1 -0
  288. package/dist/legal/TERMS.md +1 -1
  289. package/dist/legal/THIRD-PARTY.txt +13 -5
  290. package/package.json +3 -2
  291. package/dist/assets/AnnotationLayer-8JABh1Dm.js +0 -0
  292. package/dist/assets/AtlasView-B5fkQhO6.css +0 -1
  293. package/dist/assets/BriefingPlayer-TpFZB77N.css +0 -1
  294. package/dist/assets/CanvasSkeleton-iy6DBvde.css +0 -1
  295. package/dist/assets/CardEditor-BY1bZiV6.css +0 -1
  296. package/dist/assets/ConversationVideoStudio-CIAMxElj.css +0 -1
  297. package/dist/assets/ConversationVideoStudio-tpqQQnOs.js +0 -1
  298. package/dist/assets/CourseLessonReader-PFJn-4tj.js +0 -2
  299. package/dist/assets/CoursesApp-5pnHYJR8.js +0 -2
  300. package/dist/assets/CrossExamPanel-CZ0ShGma.css +0 -1
  301. package/dist/assets/DashboardDetail-DYFghZ4p.js +0 -2
  302. package/dist/assets/DashboardLoopGate-C0blM1w9.js +0 -2
  303. package/dist/assets/DashboardLoopRuntime-C9R-z9-o.js +0 -1
  304. package/dist/assets/DashboardsApp-Dh_jh1dF.js +0 -2
  305. package/dist/assets/DeepZoomApp-fRXCJHHZ.css +0 -1
  306. package/dist/assets/DelegatePanel-Cf85-0qE.css +0 -1
  307. package/dist/assets/DelegatePanel-DKWsRY9I.js +0 -33
  308. package/dist/assets/DemoGallery-CkuqAXje.js +0 -1
  309. package/dist/assets/FlagshipShowcase-BHAlRDAE.js +0 -1
  310. package/dist/assets/ForecastPanel-Da2ZBUrE.css +0 -1
  311. package/dist/assets/GalleryApp-DziLKFJZ.js +0 -1
  312. package/dist/assets/LeverPanel-DhpJY76O.css +0 -1
  313. package/dist/assets/LibraryOverlay-CnKWDMG_.css +0 -1
  314. package/dist/assets/LiveApp-C-OPBybd.css +0 -1
  315. package/dist/assets/LiveApp-D6vkyhZb.js +0 -79
  316. package/dist/assets/LiveSettings-C9cKOrSb.js +0 -6
  317. package/dist/assets/LiveSettings-CmgrMqvK.css +0 -1
  318. package/dist/assets/MindShape-C_Bo9hW9.js +0 -1
  319. package/dist/assets/MindShape-CaPeUo-a.css +0 -1
  320. package/dist/assets/PresentationDeck-BW_7qecK.js +0 -1
  321. package/dist/assets/PrismApp-BY71jJvW.js +0 -2
  322. package/dist/assets/PrismAskController-DBoxQSJR.css +0 -1
  323. package/dist/assets/PrismOverlay-BTfAicBt.css +0 -1
  324. package/dist/assets/Recap-DCiiWNiV.css +0 -1
  325. package/dist/assets/RippleApp-DZw8op-E.js +0 -2
  326. package/dist/assets/RippleOverlay-D7ItTvS-.js +0 -6
  327. package/dist/assets/RippleOverlay-_iiZsQVZ.css +0 -1
  328. package/dist/assets/SeeDontRead-DmmtWAzn.js +0 -1
  329. package/dist/assets/ShareModal-9jSn52Mw.js +0 -2
  330. package/dist/assets/ShareModal-D1QuQEko.css +0 -1
  331. package/dist/assets/SrsReview-B1B2VekR.css +0 -1
  332. package/dist/assets/TopicCanvas-DozfZFto.js +0 -2
  333. package/dist/assets/TopicCanvas-uRuHi99s.css +0 -1
  334. package/dist/assets/WhyMachineOverlay-BZk3PVTl.css +0 -1
  335. package/dist/assets/WorldOverlay-yhxq328s.js +0 -2
  336. package/dist/assets/ZoomDeck-B2SjNwY7.css +0 -1
  337. package/dist/assets/canvas-vqIFVmtP.js +0 -1
  338. package/dist/assets/capture-9OrAc1p2.js +0 -2
  339. package/dist/assets/dashboards-C1u2ks-d.css +0 -1
  340. package/dist/assets/generateLive-B6purd69.js +0 -51
  341. package/dist/assets/homeTarget-CsO8nY7z.js +0 -1
  342. package/dist/assets/index-DrzNHwlO.css +0 -1
  343. package/dist/assets/index-zIa6h_8b.js +0 -22
  344. package/dist/assets/kokoro-B3oG_8sd.js +0 -1
  345. package/dist/assets/layout-CEoNLr-w.js +0 -1
  346. package/dist/assets/pageVisibility-BxUVsw7Z.js +0 -1
  347. package/dist/assets/pen-DNMslo3e.js +0 -24
  348. package/dist/assets/pin-D-4Zjiik.css +0 -1
  349. package/dist/assets/portal-k_BMgWND.js +0 -1
  350. package/dist/assets/providers-BovElgRL.js +0 -1
  351. package/dist/assets/quietHours-DI1ayIIq.js +0 -1
  352. package/dist/assets/registry-BSX3aFUw.js +0 -1
  353. package/dist/assets/registry-Bv1f5UU4.js +0 -2
  354. package/dist/assets/registry-Cse2wF7x.css +0 -1
  355. package/dist/assets/registry-Dye5m3qt.css +0 -1
  356. package/dist/assets/registry-GeSy4i7R.css +0 -1
  357. package/dist/assets/registry-WHd1PwU3.js +0 -1
  358. package/dist/assets/registry-Xl8mAnKq.js +0 -1
  359. package/dist/assets/registry-tkd3UhWn.css +0 -1
  360. package/dist/assets/shapes-Cx5SCKgj.js +0 -39
  361. package/dist/assets/speed-K5_Ebj-8.js +0 -1
  362. package/dist/assets/store-BfHRbVKz.js +0 -1
  363. package/dist/assets/store-CsjDEADX.js +0 -1
  364. package/dist/assets/store-DpObYU1u.js +0 -1
  365. package/dist/assets/store-gohr8YVT.js +0 -1
  366. package/dist/assets/streamParse-B-Gjwa9T.js +0 -2
  367. package/dist/assets/useFocusTrap-DBtkeyRy.js +0 -1
  368. package/dist/assets/useInView-CXTOAEV3.js +0 -1
  369. package/dist/assets/useStudy-5CsF_L-s.js +0 -1
  370. package/dist/demo-assets/images/basalt-cliffs.jpg +0 -0
  371. package/dist/demo-assets/images/capelinhos.jpg +0 -0
  372. package/dist/demo-assets/images/cliff-fields.jpg +0 -0
  373. package/dist/demo-assets/images/crater-panorama.jpg +0 -0
  374. package/dist/demo-assets/images/furnas-lake.jpg +0 -0
  375. package/dist/demo-assets/images/green-coast.jpg +0 -0
  376. package/dist/demo-assets/images/overcast-coast.jpg +0 -0
  377. package/dist/demo-assets/images/patchwork-fields.jpg +0 -0
  378. package/dist/demo-assets/images/ponta-delgada.jpg +0 -0
  379. package/dist/demo-assets/images/sete-cidades.jpg +0 -0
  380. package/dist/demo-assets/images/village-street.jpg +0 -0
  381. package/dist/demo-assets/video/azores-film.webm +0 -0
  382. /package/dist/assets/{BriefingPlayer-C0D_2ILa.js → BriefingPlayer-74mRKyjl.js} +0 -0
  383. /package/dist/assets/{CrossExamPanel-CdIYUu-B.js → CrossExamPanel-BfeGr5iw.js} +0 -0
  384. /package/dist/assets/{ForecastPanel-zPUh2ClQ.js → ForecastPanel-OfW39WGS.js} +0 -0
  385. /package/dist/assets/{LeverPanel-D1SNRGdm.js → LeverPanel-vco5UK2U.js} +0 -0
  386. /package/dist/assets/{WhyMachineOverlay-ks9-rRiL.js → WhyMachineOverlay-D2K7y8SA.js} +0 -0
  387. /package/dist/assets/{lib-B7OE1ZQQ.js → lib-u95BsX_B.js} +0 -0
  388. /package/dist/assets/{registry-7poQfBaM.js → registry-C4Yh05pk.js} +0 -0
  389. /package/dist/assets/{registry-Daypk4uR.js → registry-S3j4OpCH.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{r as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{t as n}from"./compiler-runtime-qQQXpJgv.js";import{t as r}from"./jsx-runtime-DeHZSEgm.js";import{n as i,t as a}from"./preload-helper-CiWYd9n-.js";import{n as o}from"./icons-gLFQTv74.js";import{t as s}from"./richText-BkxJhl9N.js";import{n as c,r as l}from"./format-q0LwBjID.js";import{r as u,t as d}from"./safeImageUrl-BINWXOTz.js";import{t as f}from"./useValidatedImage-BQi2c66o.js";import{r as p,t as m}from"./scale-Bcgfo6Hp.js";import{t as h}from"./BlockEmpty-B82uCse8.js";import"./lib-B7OE1ZQQ.js";import{t as g}from"./registry-types-D3q_LrlV.js";import{n as _,t as v}from"./fitText-DQ2omSN0.js";import{t as y}from"./useTimeout-Cm4yzted.js";import{t as b}from"./safeCssColor-di93BXgG.js";var x=t(),S=r(),C={chess:8,checkers:8,go:19,hex:8,grid:8},w=100,T=6;function E({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,board:r=`chess`,size:i,pieces:a,highlights:c,moves:l,caption:u,footer:d,delay:f}){let p=o[t]||o.layers,m=(0,x.useId)().replace(/:/g,``),h=C[r]?r:`chess`,g=Math.max(2,Math.min(25,Math.round(i??C[h]))),_=h===`go`,v=88/(_?g-1||1:g),y=e=>T+(_?e*v:(e+.5)*v),b=e=>T+(_?e*v:(e+.5)*v),E=v*(_?.4:.38),D=Math.max(.18,v*.03);return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`gb-wrap`,children:(0,S.jsxs)(`svg`,{viewBox:`0 0 ${w} ${w}`,className:`gb-svg`,role:`img`,"aria-label":e,children:[(0,S.jsx)(`rect`,{x:T,y:T,width:88,height:88,className:`gb-frame`}),(h===`chess`||h===`checkers`)&&Array.from({length:g*g},(e,t)=>{let n=Math.floor(t/g),r=t%g;return(n+r)%2==0?null:(0,S.jsx)(`rect`,{x:T+r*v,y:T+n*v,width:v,height:v,className:`gb-dark`},`sq-${t}`)}),(h===`go`||h===`grid`||h===`hex`)&&Array.from({length:_?g:g+1},(e,t)=>{let n=T+t*v;return(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`line`,{x1:n,y1:T,x2:n,y2:94,className:`gb-grid`}),(0,S.jsx)(`line`,{x1:T,y1:n,x2:94,y2:n,className:`gb-grid`})]},`ln-${t}`)}),h===`hex`&&Array.from({length:g*g},(e,t)=>{let n=Math.floor(t/g),r=t%g,i=n%2*v*.5,a=T+(r+.5)*v+i;return a>94?null:(0,S.jsx)(`circle`,{cx:a,cy:T+(n+.5)*v,r:v*.06,className:`gb-hexdot`},`hx-${t}`)}),h===`go`&&g===19&&[3,9,15].flatMap(e=>[3,9,15].map(t=>(0,S.jsx)(`circle`,{cx:y(t),cy:b(e),r:v*.09,className:`gb-star`},`star-${e}-${t}`))),c?.map((e,t)=>_?(0,S.jsx)(`circle`,{cx:y(e.col),cy:b(e.row),r:E*1.25,className:`gb-hl-dot`},`hl-${t}`):(0,S.jsx)(`rect`,{x:T+e.col*v,y:T+e.row*v,width:v,height:v,className:`gb-hl`},`hl-${t}`)),a.map((e,t)=>{let n=y(e.col),r=b(e.row),i=e.glyph||e.label||``;return(0,S.jsxs)(`g`,{className:`gb-piece side-${e.side===`b`?`b`:`a`}`,children:[(0,S.jsx)(`circle`,{cx:n,cy:r,r:E,className:`gb-disc`,strokeWidth:D}),i&&(0,S.jsx)(`text`,{x:n,y:r,textAnchor:`middle`,dominantBaseline:`central`,className:`gb-glyph`,style:{fontSize:E*1.15},children:i})]},`pc-${t}`)}),(0,S.jsx)(`defs`,{children:(0,S.jsx)(`marker`,{id:`gb-arr-${m}`,markerWidth:`5`,markerHeight:`5`,refX:`3.5`,refY:`2.5`,orient:`auto`,children:(0,S.jsx)(`path`,{d:`M0,0 L0,5 L5,2.5 Z`,className:`gb-arrhead`})})}),l?.map((e,t)=>(0,S.jsx)(`line`,{x1:y(e.from[1]),y1:b(e.from[0]),x2:y(e.to[1]),y2:b(e.to[0]),className:`gb-move`,strokeWidth:Math.max(.6,v*.08),markerEnd:`url(#gb-arr-${m})`},`mv-${t}`))]})}),u&&(0,S.jsx)(`div`,{className:`gb-caption`,children:u}),d&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}var D=.6;function O(e,t,n){let r=Math.max(3,Math.floor(t/(n*D)));return e.length>r?e.slice(0,r-1).trimEnd()+`…`:e}var k=[`color-mix(in oklab, var(--presence) 13%, transparent)`,`color-mix(in oklab, var(--insight) 13%, transparent)`,`color-mix(in oklab, var(--warning) 15%, transparent)`,`color-mix(in oklab, var(--presence) 7%, transparent)`,`color-mix(in oklab, var(--insight) 7%, transparent)`],A=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--presence-soft)`,`var(--insight-soft)`];function j({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,fabric:r,pieces:i,unit:a=`cm`,caption:c,footer:u,delay:d}){let f=o[t]||o.edit,p=(0,x.useId)().replace(/:/g,``),m=Math.max(1,r.w),h=Math.max(1,r.h),g=Math.max(m,h)*.04,_=m+g*2,v=h+g*2,y=i.reduce((e,t)=>e+Math.max(0,Math.min(t.w,m-t.x))*Math.max(0,Math.min(t.h,h-t.y))*Math.max(1,t.qty??1),0),b=Math.min(100,Math.round(y/(m*h)*100));return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`pat-figwrap`,children:(0,S.jsxs)(`svg`,{viewBox:`0 0 ${_} ${v}`,className:`pat-svg`,role:`img`,"aria-label":e,children:[(0,S.jsx)(`defs`,{children:(0,S.jsx)(`marker`,{id:`pat-grain-${p}`,markerWidth:`6`,markerHeight:`6`,refX:`3`,refY:`3`,orient:`auto`,children:(0,S.jsx)(`path`,{d:`M0,3 L5,0.5 L4,3 L5,5.5 Z`,className:`pat-grain-head`})})}),(0,S.jsx)(`rect`,{x:g,y:g,width:m,height:h,className:`pat-fabric`}),(0,S.jsx)(`line`,{x1:g,y1:g,x2:g,y2:g+h,className:`pat-foldedge`,strokeWidth:Math.max(.4,m*.006)}),(0,S.jsx)(`text`,{className:`pat-foldlabel`,transform:`translate(${g+m*.022},${g+h/2}) rotate(-90)`,children:(0,S.jsx)(`tspan`,{x:0,y:0,children:`FOLD`})}),r.label&&(0,S.jsx)(`text`,{x:g+m-1,y:g-g*.35,textAnchor:`end`,className:`pat-fabriclabel`,children:r.label}),i.map((e,t)=>{let n=A[t%A.length],r=k[t%k.length],i=g+e.x,a=g+e.y,o=i+e.w/2,s=a+e.h/2,c=e.h*.14,l=Math.min(e.w,e.h)<Math.max(m,h)*.1,u=Math.max(1,e.qty??1);return(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`rect`,{x:i,y:a,width:e.w,height:e.h,rx:Math.min(1.5,m*.005),fill:r,stroke:n,strokeWidth:m*.004,strokeDasharray:e.fold?void 0:`${m*.012} ${m*.008}`}),e.fold&&(0,S.jsx)(`line`,{x1:i,y1:a,x2:i,y2:a+e.h,className:`pat-onfold`,strokeWidth:m*.006}),(0,S.jsx)(`line`,{x1:o,y1:a+c,x2:o,y2:a+e.h-c,className:`pat-grain`,strokeWidth:Math.max(.3,m*.0035),markerStart:`url(#pat-grain-${p})`,markerEnd:`url(#pat-grain-${p})`}),!l&&(()=>{let t=Math.max(m*.026,2.4),n=O(e.label,e.w-t,t),r=n!==e.label;return(0,S.jsxs)(`text`,{x:o,y:s,textAnchor:`middle`,dominantBaseline:`middle`,className:`pat-piece-lbl`,style:{fontSize:t},children:[r&&(0,S.jsx)(`title`,{children:e.label}),(0,S.jsx)(`tspan`,{x:o,dy:`-0.5em`,children:n}),(u>1||e.fold)&&(0,S.jsx)(`tspan`,{x:o,dy:`1.4em`,className:`pat-piece-sub`,children:e.fold?`cut 1 on fold`:`cut ${u}`})]})})()]},t)})]})}),(0,S.jsxs)(`div`,{className:`pat-stats`,children:[(0,S.jsxs)(`div`,{className:`pat-stat`,children:[(0,S.jsx)(`span`,{className:`pat-stat-k`,children:`Fabric`}),(0,S.jsxs)(`span`,{className:`pat-stat-v`,children:[l(m),` × `,l(h),` `,a]})]}),(0,S.jsxs)(`div`,{className:`pat-stat`,children:[(0,S.jsx)(`span`,{className:`pat-stat-k`,children:`Yield`}),(0,S.jsxs)(`span`,{className:`pat-stat-v pat-yield`,"data-low":b<55?``:void 0,children:[b,`%`]})]})]}),c&&(0,S.jsx)(`div`,{className:`pat-caption`,children:c}),u&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}function M({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,src:r,candidates:i,alt:a,caption:s,footer:c,delay:l,blockId:u,onUnrenderable:d}){let p=o[t]||o.image,m=f([r,...i??[]]),h=m.state===`checking`?`loading`:m.state===`ready`?`ready`:`error`,g=a||s||e||`Photograph`,_=c||s,v=h===`error`,y=!!(e||_||a);if((0,x.useEffect)(()=>{v&&!y&&u&&d?.(u)},[v,y,u,d]),v&&!y)return null;let b={"--delay":(l||0)+`ms`};return v?(0,S.jsxs)(`div`,{className:`card reveal me-photo-card`,style:b,children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`insight-summary`,children:_||g})]}):(0,S.jsxs)(`div`,{className:`card reveal`,style:b,children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`me-photo`+(h===`ready`?` ready`:``),children:[m.src?(0,S.jsx)(`img`,{className:`me-photo-img`,src:m.src,alt:g,loading:`lazy`,decoding:`async`,referrerPolicy:`no-referrer`}):null,h===`loading`&&(0,S.jsx)(`div`,{className:`me-photo-shimmer`,"aria-hidden":`true`})]}),_&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:_})]})}var N=n();function P({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,shapes:r,labels:i,ratio:a=1.6,footer:c,delay:l}){let u=o[t]||o.image,d=`med-diag-arrow-${(0,x.useId)().replace(/:/g,``)}`,f=Math.round(100/Math.max(.4,a)*10)/10,p=e=>e>20?2.1:e>10?2:1.9,m=i.reduce((e,t)=>{let n=t.side??`right`,r=t.text.length*p(t.text.length);return n===`top`?(e.top=Math.max(e.top,7-t.y+2.5),e.x0=Math.min(e.x0,t.x-r/2),e.x1=Math.max(e.x1,t.x+r/2)):n===`bottom`?(e.bottom=Math.max(e.bottom,t.y+7+2.5-f),e.x0=Math.min(e.x0,t.x-r/2),e.x1=Math.max(e.x1,t.x+r/2)):n===`left`?e.x0=Math.min(e.x0,t.x-7-r-1):e.x1=Math.max(e.x1,t.x+7+r+1),e},{x0:0,x1:100,top:0,bottom:0}),h=Math.min(0,Math.round(m.x0*10)/10),g=Math.round(-Math.max(0,m.top)*10)/10,_=Math.round((Math.max(100,m.x1)-h)*10)/10,v=Math.round((f+Math.max(0,m.bottom)-g)*10)/10;return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`med-diag`,children:(0,S.jsxs)(`svg`,{viewBox:`${h} ${g} ${_} ${v}`,className:`med-diag-svg`,role:`img`,children:[(0,S.jsx)(`defs`,{children:(0,S.jsx)(`marker`,{id:d,viewBox:`0 0 10 10`,refX:`8`,refY:`5`,markerWidth:`6`,markerHeight:`6`,orient:`auto-start-reverse`,children:(0,S.jsx)(`path`,{d:`M0,0 L10,5 L0,10 z`,fill:`context-stroke`})})}),r.map((e,t)=>(0,S.jsx)(F,{s:e,arrowId:d},t)),i.map((e,t)=>{let n=e.side??`right`,r=n===`left`?e.x-7:n===`right`?e.x+7:e.x,i=n===`top`?e.y-7:n===`bottom`?e.y+7:e.y,a=n===`left`?`end`:n===`right`?`start`:`middle`,o=e.color||`var(--text-secondary)`;return(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`line`,{x1:e.x,y1:e.y,x2:r,y2:i,className:`med-diag-lead`}),(0,S.jsx)(`circle`,{cx:e.x,cy:e.y,r:1.1,fill:o,...t===0?{"data-mark":`point`}:{}}),(0,S.jsx)(`text`,{x:r+(n===`right`?1:n===`left`?-1:0),y:i+1.1,textAnchor:a,className:`med-diag-lbl`,fill:o,children:e.text})]},`l${t}`)})]})}),c&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}function F(e){let t=(0,N.c)(28),{s:n,arrowId:r}=e,i=n.color||`var(--text-muted)`,a=n.fill||`none`;switch(n.kind){case`circle`:{let e;return t[0]!==a||t[1]!==n.cx||t[2]!==n.cy||t[3]!==n.r||t[4]!==i?(e=(0,S.jsx)(`circle`,{cx:n.cx,cy:n.cy,r:n.r,stroke:i,strokeWidth:.7,fill:a}),t[0]=a,t[1]=n.cx,t[2]=n.cy,t[3]=n.r,t[4]=i,t[5]=e):e=t[5],e}case`rect`:{let e;return t[6]!==a||t[7]!==n.h||t[8]!==n.w||t[9]!==n.x||t[10]!==n.y||t[11]!==i?(e=(0,S.jsx)(`rect`,{x:n.x,y:n.y,width:n.w,height:n.h,rx:1.5,stroke:i,strokeWidth:.7,fill:a}),t[6]=a,t[7]=n.h,t[8]=n.w,t[9]=n.x,t[10]=n.y,t[11]=i,t[12]=e):e=t[12],e}case`line`:{let e=n.arrow?`url(#${r})`:void 0,a;return t[13]!==n.x1||t[14]!==n.x2||t[15]!==n.y1||t[16]!==n.y2||t[17]!==i||t[18]!==e?(a=(0,S.jsx)(`line`,{x1:n.x1,y1:n.y1,x2:n.x2,y2:n.y2,stroke:i,strokeWidth:.7,strokeLinecap:`round`,markerEnd:e}),t[13]=n.x1,t[14]=n.x2,t[15]=n.y1,t[16]=n.y2,t[17]=i,t[18]=e,t[19]=a):a=t[19],a}case`polygon`:{let e;return t[20]!==a||t[21]!==n.points||t[22]!==i?(e=(0,S.jsx)(`polygon`,{points:n.points,stroke:i,strokeWidth:.7,fill:a}),t[20]=a,t[21]=n.points,t[22]=i,t[23]=e):e=t[23],e}case`path`:{let e;return t[24]!==a||t[25]!==n.d||t[26]!==i?(e=(0,S.jsx)(`path`,{d:n.d,stroke:i,strokeWidth:.7,fill:a}),t[24]=a,t[25]=n.d,t[26]=i,t[27]=e):e=t[27],e}default:return null}}var I={header:{col:12,rows:1},hero:{col:12,rows:3},nav:{col:12,rows:1},image:{col:6,rows:2},text:{col:6,rows:2},button:{col:3,rows:1},card:{col:4,rows:2},list:{col:6,rows:2},footer:{col:12,rows:1},input:{col:6,rows:1}};function L(e,t){return Math.min(t,Math.max(1,Math.round(e)))||1}function ee(e){switch(e){case`header`:case`nav`:return(0,S.jsxs)(`div`,{className:`wf-bar`,children:[(0,S.jsx)(`span`,{className:`wf-dot`}),(0,S.jsx)(`span`,{className:`wf-spacer`}),(0,S.jsx)(`span`,{className:`wf-link`}),(0,S.jsx)(`span`,{className:`wf-link`}),(0,S.jsx)(`span`,{className:`wf-link`})]});case`hero`:return(0,S.jsxs)(`div`,{className:`wf-hero`,children:[(0,S.jsx)(`span`,{className:`wf-line wf-w70 wf-tall`}),(0,S.jsx)(`span`,{className:`wf-line wf-w50`}),(0,S.jsx)(`span`,{className:`wf-pill`})]});case`image`:return(0,S.jsxs)(`div`,{className:`wf-image`,"aria-hidden":!0,children:[(0,S.jsxs)(`svg`,{viewBox:`0 0 100 100`,preserveAspectRatio:`none`,className:`wf-image-x`,children:[(0,S.jsx)(`line`,{x1:`0`,y1:`0`,x2:`100`,y2:`100`}),(0,S.jsx)(`line`,{x1:`100`,y1:`0`,x2:`0`,y2:`100`})]}),(0,S.jsx)(o.image,{className:`wf-image-ic`})]});case`text`:return(0,S.jsxs)(`div`,{className:`wf-text`,children:[(0,S.jsx)(`span`,{className:`wf-line wf-w90`}),(0,S.jsx)(`span`,{className:`wf-line wf-w100`}),(0,S.jsx)(`span`,{className:`wf-line wf-w80`}),(0,S.jsx)(`span`,{className:`wf-line wf-w60`})]});case`button`:return(0,S.jsx)(`span`,{className:`wf-pill wf-pill-solid`});case`card`:return(0,S.jsxs)(`div`,{className:`wf-card`,children:[(0,S.jsx)(`span`,{className:`wf-thumb`}),(0,S.jsx)(`span`,{className:`wf-line wf-w70 wf-strong`}),(0,S.jsx)(`span`,{className:`wf-line wf-w90`}),(0,S.jsx)(`span`,{className:`wf-line wf-w50`})]});case`list`:return(0,S.jsx)(`div`,{className:`wf-list`,children:[0,1,2].map(e=>(0,S.jsxs)(`span`,{className:`wf-row`,children:[(0,S.jsx)(`span`,{className:`wf-row-dot`}),(0,S.jsx)(`span`,{className:`wf-line wf-w80`})]},e))});case`footer`:return(0,S.jsx)(`div`,{className:`wf-foot`,children:[0,1,2].map(e=>(0,S.jsxs)(`span`,{className:`wf-foot-col`,children:[(0,S.jsx)(`span`,{className:`wf-line wf-w60 wf-strong`}),(0,S.jsx)(`span`,{className:`wf-line wf-w90`}),(0,S.jsx)(`span`,{className:`wf-line wf-w70`})]},e))});case`input`:return(0,S.jsxs)(`div`,{className:`wf-input`,children:[(0,S.jsx)(`span`,{className:`wf-line wf-w40`}),(0,S.jsx)(`span`,{className:`wf-input-cta`})]})}}function te({title:e,icon:t,iconColor:n=`var(--presence-soft)`,regions:r,cols:i=12,caption:a,footer:c,delay:l}){let u=L(i,12),d=t&&o[t]||o.screen,f=Array.isArray(r)?r:[];return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l??0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`wireframe`,style:{"--wf-cols":u},role:`img`,"aria-label":e?e+` wireframe`:`page wireframe`,children:f.map((e,t)=>{let n=I[e.kind]??I.card,r=L(e.col??n.col,u),i=Math.min(6,Math.max(1,Math.round(e.rows??n.rows)))||1;return(0,S.jsxs)(`div`,{className:`wf-region wf-`+e.kind,style:{gridColumn:`span `+r,"--wf-rows":i},children:[(0,S.jsx)(`div`,{className:`wf-fill`,children:ee(e.kind)}),e.label&&(0,S.jsx)(`span`,{className:`wf-label`,children:e.label})]},t)})}),a&&(0,S.jsx)(`div`,{className:`wf-caption`,dangerouslySetInnerHTML:s(a)}),c&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}var ne=e=>Math.max(3,Math.min(97,e)),re={heart:{outline:(0,S.jsx)(`path`,{d:`M50 88 C26 70 12 54 12 37 C12 24 22 15 33 15 C42 15 48 21 50 27 C52 21 58 15 67 15 C78 15 88 24 88 37 C88 54 74 70 50 88 Z`}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{className:`an-vessel`,d:`M42 18 C40 9 36 6 31 6`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M52 18 C53 8 58 5 63 6`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M59 20 C64 12 70 11 73 14`}),(0,S.jsx)(`path`,{className:`an-septum`,d:`M50 27 L50 84`}),(0,S.jsx)(`path`,{className:`an-septum`,d:`M50 50 C62 48 70 54 72 62`}),(0,S.jsx)(`path`,{className:`an-septum`,d:`M50 50 C38 48 30 54 28 62`})]})},kidney:{outline:(0,S.jsx)(`path`,{d:`M62 14 C78 14 86 30 86 50 C86 72 76 88 60 88 C50 88 46 80 44 70 C42 62 38 60 34 60 C24 60 18 70 18 50 C18 28 30 14 50 14 C55 14 58 14 62 14 Z`}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{className:`an-cavity`,d:`M40 50 C46 46 52 46 56 50 C60 54 60 60 56 64 C52 68 46 68 40 64`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M40 50 C32 50 26 54 22 58`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M48 66 C48 76 50 84 52 90`})]})},nephron:{outline:(0,S.jsx)(`path`,{d:`M22 18 C12 18 8 28 16 34 C8 40 12 50 22 48`}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`circle`,{className:`an-cavity`,cx:`20`,cy:`32`,r:`9`}),(0,S.jsx)(`circle`,{className:`an-node`,cx:`20`,cy:`32`,r:`5`}),(0,S.jsx)(`path`,{className:`an-tube`,d:`M28 30 C40 26 44 36 38 42 C32 48 44 52 50 46 C58 38 62 52 56 60 C50 68 60 72 66 64 C74 54 80 64 78 74 L78 92`}),(0,S.jsx)(`path`,{className:`an-tube an-tube-dn`,d:`M78 74 C72 78 66 76 64 70`})]})},brain:{outline:(0,S.jsx)(`path`,{d:`M30 22 C22 18 12 24 14 34 C8 38 8 48 14 52 C12 60 18 68 26 66 C30 74 42 76 48 70 C54 76 66 74 70 66 C80 68 86 58 82 50 C90 44 88 32 80 30 C82 20 70 14 62 20 C56 14 42 14 38 22 C36 21 33 21 30 22 Z`}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{className:`an-fold`,d:`M48 18 L48 70`}),(0,S.jsx)(`path`,{className:`an-fold`,d:`M26 34 C34 32 36 40 30 44 C36 46 34 54 28 54`}),(0,S.jsx)(`path`,{className:`an-fold`,d:`M68 34 C60 32 58 40 64 44 C58 46 60 54 66 54`}),(0,S.jsx)(`path`,{className:`an-fold`,d:`M40 30 C44 36 44 44 40 50`}),(0,S.jsx)(`path`,{className:`an-fold`,d:`M56 30 C52 36 52 44 56 50`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M44 70 C44 82 44 88 42 92`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M52 70 C52 82 52 88 54 92`})]})},lung:{outline:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{d:`M44 22 C44 40 42 58 36 74 C30 88 18 86 14 74 C10 60 14 40 26 26 C32 19 40 18 44 22 Z`}),(0,S.jsx)(`path`,{d:`M56 22 C56 40 58 58 64 74 C70 88 82 86 86 74 C90 60 86 40 74 26 C68 19 60 18 56 22 Z`})]}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{className:`an-tube`,d:`M50 8 L50 30`}),(0,S.jsx)(`path`,{className:`an-tube`,d:`M50 30 C44 32 40 38 36 46`}),(0,S.jsx)(`path`,{className:`an-tube`,d:`M50 30 C56 32 60 38 64 46`}),(0,S.jsx)(`path`,{className:`an-tube an-tube-dn`,d:`M36 46 C32 52 30 58 28 64`}),(0,S.jsx)(`path`,{className:`an-tube an-tube-dn`,d:`M64 46 C68 52 70 58 72 64`})]})},eye:{outline:(0,S.jsx)(`path`,{d:`M8 50 C24 28 76 28 92 50 C76 72 24 72 8 50 Z`}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`circle`,{className:`an-cavity`,cx:`50`,cy:`50`,r:`20`}),(0,S.jsx)(`circle`,{className:`an-node`,cx:`50`,cy:`50`,r:`9`}),(0,S.jsx)(`circle`,{className:`an-glint`,cx:`44`,cy:`44`,r:`3`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M14 50 C20 46 26 45 30 45`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M86 50 C80 54 74 55 70 55`})]})},ear:{outline:(0,S.jsx)(`path`,{d:`M62 12 C40 8 24 24 24 46 C24 64 32 78 30 88 C28 94 34 96 40 92 C46 88 44 78 50 74 C58 68 60 58 54 54 C48 50 52 42 58 44 C66 46 72 38 70 28 C69 20 67 14 62 12 Z`}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{className:`an-fold`,d:`M58 20 C46 18 36 28 36 42 C36 52 40 58 40 64`}),(0,S.jsx)(`path`,{className:`an-cavity`,d:`M50 40 C44 40 42 48 48 50 C54 52 56 44 50 40 Z`}),(0,S.jsx)(`path`,{className:`an-tube`,d:`M48 50 C40 54 36 60 34 66`})]})},neuron:{outline:(0,S.jsx)(`circle`,{cx:`42`,cy:`50`,r:`14`}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`circle`,{className:`an-node`,cx:`42`,cy:`50`,r:`5`}),(0,S.jsx)(`path`,{className:`an-tube`,d:`M30 42 C20 34 14 32 8 30`}),(0,S.jsx)(`path`,{className:`an-tube`,d:`M30 50 C20 50 14 52 8 54`}),(0,S.jsx)(`path`,{className:`an-tube`,d:`M32 60 C24 66 18 70 12 74`}),(0,S.jsx)(`path`,{className:`an-axon`,d:`M56 50 L82 50`}),(0,S.jsx)(`path`,{className:`an-tube an-tube-dn`,d:`M82 50 C88 44 92 44 96 42`}),(0,S.jsx)(`path`,{className:`an-tube an-tube-dn`,d:`M82 50 C88 56 92 56 96 58`}),(0,S.jsx)(`path`,{className:`an-tube an-tube-dn`,d:`M82 50 L96 50`})]})},skeleton:{outline:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{d:`M50 8 C58 8 62 16 62 22 C62 28 58 32 50 32 C42 32 38 28 38 22 C38 16 42 8 50 8 Z`}),(0,S.jsx)(`path`,{d:`M50 32 L50 66`}),(0,S.jsx)(`path`,{d:`M46 70 C46 66 54 66 54 70 L58 88 C58 92 42 92 42 88 Z`})]}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{className:`an-bone`,d:`M50 38 C40 40 30 44 26 50`}),(0,S.jsx)(`path`,{className:`an-bone`,d:`M50 38 C60 40 70 44 74 50`}),(0,S.jsx)(`path`,{className:`an-bone`,d:`M50 46 C40 48 32 52 28 58`}),(0,S.jsx)(`path`,{className:`an-bone`,d:`M50 46 C60 48 68 52 72 58`}),(0,S.jsx)(`path`,{className:`an-bone`,d:`M50 54 C42 56 36 60 32 66`}),(0,S.jsx)(`path`,{className:`an-bone`,d:`M50 54 C58 56 64 60 68 66`}),(0,S.jsx)(`path`,{className:`an-bone`,d:`M44 36 L56 36 M44 44 L56 44 M44 52 L56 52`})]})},stomach:{outline:(0,S.jsx)(`path`,{d:`M30 14 C30 22 32 28 36 34 C42 42 44 54 44 64 C44 78 54 88 66 88 C80 88 86 76 84 64 C82 52 74 46 66 44 C58 42 54 36 54 28 C54 22 52 18 48 16 C42 13 34 12 30 14 Z`}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{className:`an-tube`,d:`M40 6 C36 6 32 9 30 14`}),(0,S.jsx)(`path`,{className:`an-tube an-tube-dn`,d:`M82 70 C90 70 94 78 94 86`}),(0,S.jsx)(`path`,{className:`an-fold`,d:`M48 40 C56 44 60 52 60 62`}),(0,S.jsx)(`path`,{className:`an-fold`,d:`M44 50 C52 54 56 62 56 70`}),(0,S.jsx)(`path`,{className:`an-fold`,d:`M52 62 C60 66 64 72 64 78`})]})},liver:{outline:(0,S.jsx)(`path`,{d:`M10 38 C10 30 18 26 30 26 C50 26 70 28 86 34 C92 36 92 44 88 50 C80 62 62 70 42 70 C24 70 12 60 10 48 C10 45 10 41 10 38 Z`}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{className:`an-septum`,d:`M52 28 L52 66`}),(0,S.jsx)(`path`,{className:`an-cavity`,d:`M40 62 C40 70 36 76 32 76 C28 76 26 70 30 64`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M52 50 C44 52 38 56 34 60`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M52 50 C62 52 70 54 76 56`})]})}};function ie({title:e,icon:t=`spark`,iconColor:n=`var(--danger)`,organ:r,pins:i,view:a,caption:c,footer:l,delay:u}){let d=o[t]||o.spark,[f,p]=(0,x.useState)(0),m=re[r]??re.heart;return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`an-wrap`,children:[(0,S.jsxs)(`div`,{className:`an-figbox`,children:[a&&(0,S.jsx)(`span`,{className:`an-view`,children:a}),(0,S.jsxs)(`svg`,{viewBox:`0 0 100 100`,className:`an-svg`,role:`img`,"aria-label":e||r,children:[(0,S.jsx)(`g`,{className:`an-organ`,children:m.outline}),m.detail&&(0,S.jsx)(`g`,{className:`an-organ-detail`,children:m.detail}),i.map((e,t)=>{let n=t===f,r=ne(e.x),i=ne(e.y);return(0,S.jsxs)(`g`,{className:`an-pin`+(n?` on`:``),onMouseEnter:()=>p(t),onClick:()=>p(t),children:[n&&(0,S.jsx)(`circle`,{cx:r,cy:i,r:5.4,className:`an-pin-halo`}),(0,S.jsx)(`circle`,{cx:r,cy:i,r:3.4,className:`an-pin-dot`,...t===0?{"data-mark":`point`}:{}}),(0,S.jsx)(`text`,{x:r,y:i,className:`an-pin-num`,children:t+1})]},t)})]})]}),(0,S.jsx)(`div`,{className:`an-list`,children:i.map((e,t)=>(0,S.jsxs)(`button`,{className:`an-row`+(t===f?` on`:``),onMouseEnter:()=>p(t),onClick:()=>p(t),children:[(0,S.jsx)(`span`,{className:`an-rownum`,children:t+1}),(0,S.jsxs)(`span`,{className:`an-rowbody`,children:[(0,S.jsx)(`span`,{className:`an-rowtitle`,children:e.label}),e.note&&(0,S.jsx)(`span`,{className:`an-rownote`,children:e.note})]})]},t))})]}),c&&(0,S.jsx)(`div`,{className:`an-caption`,children:c}),l&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(l)})]})}var ae=[{axis:`aperture`,label:`Aperture`,x:50,y:16,trade:`depth of field`,accent:`var(--presence)`},{axis:`shutter`,label:`Shutter`,x:16,y:78,trade:`motion`,accent:`var(--insight)`},{axis:`iso`,label:`ISO`,x:84,y:78,trade:`noise`,accent:`var(--warning)`}];function oe({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,aperture:r,shutter:i,iso:a,ev:c,effects:l,caption:u,footer:d,delay:f}){let p=o[t]||o.image,m={aperture:r,shutter:i,iso:`ISO ${a}`},h=e=>l?.find(t=>t.axis===e)?.note;return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`ex-figwrap`,children:(0,S.jsxs)(`svg`,{viewBox:`0 0 100 96`,className:`ex-svg`,role:`img`,"aria-label":e,children:[(0,S.jsx)(`polygon`,{points:ae.map(e=>`${e.x},${e.y}`).join(` `),className:`ex-tri`}),ae.map((e,t)=>{let n=ae[(t+1)%ae.length],r=(e.x+n.x)/2,i=(e.y+n.y)/2;return(0,S.jsx)(`line`,{x1:e.x,y1:e.y,x2:r,y2:i,className:`ex-edge`,markerEnd:`url(#ex-arrow)`},`e${t}`)}),(0,S.jsx)(`defs`,{children:(0,S.jsx)(`marker`,{id:`ex-arrow`,viewBox:`0 0 10 10`,refX:`8`,refY:`5`,markerWidth:`5`,markerHeight:`5`,orient:`auto`,children:(0,S.jsx)(`path`,{d:`M0,0 L10,5 L0,10 z`,fill:`context-stroke`})})}),(0,S.jsx)(`circle`,{cx:50,cy:57,r:13,className:`ex-ev`}),(0,S.jsx)(`text`,{x:50,y:54,className:`ex-ev-k`,children:`EXPOSURE`}),(0,S.jsx)(`text`,{x:50,y:62,className:`ex-ev-v`,children:c||`balanced`}),ae.map((e,t)=>(0,S.jsxs)(`g`,{style:{"--cc":e.accent},children:[(0,S.jsx)(`circle`,{cx:e.x,cy:e.y,r:4,className:`ex-node`,...t===0?{"data-mark":`point`}:{}}),(0,S.jsx)(`text`,{x:e.x,y:e.y-7,className:`ex-node-k`,children:e.label.toUpperCase()}),(0,S.jsx)(`text`,{x:e.x,y:e.y+(e.y<40?-14:11),className:`ex-node-v`,children:m[e.axis]})]},e.axis))]})}),(0,S.jsx)(`div`,{className:`ex-cues`,children:ae.map(e=>{let t=h(e.axis);return(0,S.jsxs)(`div`,{className:`ex-cue`,style:{"--cc":e.accent},children:[(0,S.jsx)(`span`,{className:`ex-cue-dot`}),(0,S.jsxs)(`span`,{className:`ex-cue-body`,children:[(0,S.jsx)(`span`,{className:`ex-cue-k`,children:e.trade}),(0,S.jsx)(`span`,{className:`ex-cue-v`,children:t||m[e.axis]})]})]},e.axis)})}),u&&(0,S.jsx)(`div`,{className:`ex-caption`,children:u}),d&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}var se=50,ce=50,le=44,R=30,ue={complementary:[0,180],analogous:[0,30,-30],triad:[0,120,240],split:[0,150,210],tetrad:[0,90,180,270]},de=e=>(e%360+360)%360;function fe(e,t){let n=(de(e)-90)*(Math.PI/180);return[se+t*Math.cos(n),ce+t*Math.sin(n)]}function pe(e,t){let[n,r]=fe(e,le),[i,a]=fe(t,le),[o,s]=fe(t,R),[c,l]=fe(e,R),u=+(t-e>180);return`M${n} ${r} A${le} ${le} 0 ${u} 1 ${i} ${a} L${o} ${s} A${R} ${R} 0 ${u} 0 ${c} ${l} Z`}function me(e){let t=de(e)/360,n=.6479999999999999,r=n*(1-Math.abs(t*6%2-1)),i=Math.floor(t*6)%6,[a,o,s]=[[n,r,0],[r,n,0],[0,n,r],[0,r,n],[r,0,n],[n,0,r]][i],c=e=>Math.round((e+.2260000000000001)*255).toString(16).padStart(2,`0`);return`#${c(a)}${c(o)}${c(s)}`}function he({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,baseHue:r,harmony:i=`complementary`,swatches:a,caption:c,footer:l,delay:u}){let d=o[t]||o.spark,f=ue[i]??ue.complementary,p=a&&a.length>0?a:f.map((e,t)=>({hue:de(r+e),hex:me(r+e),role:t===0?`base`:`accent`})),m=p.map(e=>de(e.hue));return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`cw-wrap`,children:[(0,S.jsx)(`div`,{className:`cw-figbox`,children:(0,S.jsxs)(`svg`,{viewBox:`0 0 100 100`,className:`cw-svg`,role:`img`,"aria-label":e,children:[Array.from({length:60},(e,t)=>(0,S.jsx)(`path`,{d:pe(t*6,(t+1)*6),fill:me(t*6)},t)),(0,S.jsx)(`circle`,{cx:se,cy:ce,r:R,className:`cw-hub`}),m.map((e,t)=>{let[n,r]=fe(e,R),[i,a]=fe(e,48),o=p[t]?.hex??me(e),s=t===0;return(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`line`,{x1:se,y1:ce,x2:n,y2:r,className:`cw-spoke`}),(0,S.jsx)(`circle`,{cx:i,cy:a,r:s?4:3,className:`cw-marker`+(s?` base`:``),fill:o,...s?{"data-mark":`point`}:{}})]},`m${t}`)}),(0,S.jsx)(`circle`,{cx:se,cy:ce,r:2.4,className:`cw-center`})]})}),(0,S.jsxs)(`div`,{className:`cw-list`,children:[(0,S.jsx)(`div`,{className:`cw-harmony`,children:i}),p.map((e,t)=>(0,S.jsxs)(`div`,{className:`cw-chip`,children:[(0,S.jsx)(`span`,{className:`cw-chip-sw`,style:{background:e.hex}}),(0,S.jsxs)(`span`,{className:`cw-chip-body`,children:[(0,S.jsx)(`span`,{className:`cw-chip-hex tab-num`,children:e.hex}),e.role&&(0,S.jsx)(`span`,{className:`cw-chip-role`,children:e.role})]})]},t))]})]}),c&&(0,S.jsx)(`div`,{className:`cw-caption`,children:c}),l&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(l)})]})}var z=160,B=100,ge=e=>e/100*z,_e=e=>e/100*B,ve=(e,t,n)=>Math.max(t,Math.min(n,e)),ye=2.6;function be(e,t){let n=Math.max(3,Math.floor((t-5)/ye));return e.length>n?e.slice(0,n-1).trimEnd()+`…`:e}function xe(e){switch(e){case`leadinglines`:{let e=2/3*z,t=1/3*B;return(0,S.jsxs)(`g`,{className:`art-guide`,children:[(0,S.jsx)(`line`,{x1:0,y1:B,x2:e,y2:t}),(0,S.jsx)(`line`,{x1:z,y1:B,x2:e,y2:t}),(0,S.jsx)(`line`,{x1:0,y1:0,x2:e,y2:t}),(0,S.jsx)(`circle`,{cx:e,cy:t,r:3.2,className:`art-guide-node`})]})}case`goldenratio`:{let e=1.618,t=z/e,n=B/e,r=61.11248454882572,i=t-61.11248454882572/e;return(0,S.jsxs)(`g`,{className:`art-guide`,children:[(0,S.jsx)(`line`,{x1:t,y1:0,x2:t,y2:B}),(0,S.jsx)(`line`,{x1:0,y1:n,x2:z,y2:n}),(0,S.jsx)(`path`,{d:`M${z} ${n} A${r} ${r} 0 0 1 ${t} ${B} A${t} ${t} 0 0 1 0 ${n} A${i} ${i} 0 0 1 37.77038600051033 ${B-i*e}`,className:`art-guide-arc`}),(0,S.jsx)(`circle`,{cx:t,cy:n,r:3.2,className:`art-guide-node`})]})}case`symmetry`:{let e=z/2;return(0,S.jsxs)(`g`,{className:`art-guide`,children:[(0,S.jsx)(`line`,{x1:e,y1:0,x2:e,y2:B,className:`art-guide-axis`}),[.3,.5,.7].map((e,t)=>(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`line`,{x1:58,y1:B*e,x2:68,y2:B*e}),(0,S.jsx)(`line`,{x1:92,y1:B*e,x2:102,y2:B*e})]},t))]})}default:{let e=[z/3,320/3],t=[B/3,200/3];return(0,S.jsxs)(`g`,{className:`art-guide`,children:[e.map((e,t)=>(0,S.jsx)(`line`,{x1:e,y1:0,x2:e,y2:B},`c${t}`)),t.map((e,t)=>(0,S.jsx)(`line`,{x1:0,y1:e,x2:z,y2:e},`r${t}`)),e.flatMap(e=>t.map(t=>[e,t])).map(([e,t],n)=>(0,S.jsx)(`circle`,{cx:e,cy:t,r:2.4,className:`art-guide-node`},`p${n}`))]})}}}function Se({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,overlay:r=`thirds`,regions:i,palette:a,notes:c,caption:l,footer:u,delay:d}){let f=o[t]||o.image;return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`art-figwrap`,children:(0,S.jsxs)(`svg`,{viewBox:`0 0 ${z} ${B}`,className:`art-svg`,role:`img`,"aria-label":e,children:[(0,S.jsx)(`defs`,{children:(0,S.jsxs)(`linearGradient`,{id:`art-field`,x1:`0`,y1:`0`,x2:`1`,y2:`1`,children:[(0,S.jsx)(`stop`,{offset:`0%`,stopColor:`color-mix(in oklab, var(--presence) 22%, var(--surface-elevated))`}),(0,S.jsx)(`stop`,{offset:`55%`,stopColor:`var(--surface-elevated)`}),(0,S.jsx)(`stop`,{offset:`100%`,stopColor:`color-mix(in oklab, var(--insight) 20%, var(--surface-elevated))`})]})}),(0,S.jsx)(`rect`,{x:0,y:0,width:z,height:B,fill:`url(#art-field)`}),xe(r),(i??[]).map((e,t)=>{let n=ge(ve(e.x,0,100)),r=_e(ve(e.y,0,100)),i=Math.min(ge(e.w),z-n),a=Math.min(_e(e.h),B-r);return(0,S.jsxs)(`g`,{className:`art-region`,children:[(0,S.jsx)(`rect`,{x:n,y:r,width:i,height:a,rx:2,className:`art-region-box`,...t===0?{"data-mark":`box`}:{}}),(0,S.jsxs)(`text`,{x:n+2.5,y:r+6.5,className:`art-region-lbl`,children:[be(e.label,i)!==e.label&&(0,S.jsx)(`title`,{children:e.label}),be(e.label,i)]})]},t)})]})}),a&&a.length>0&&(0,S.jsx)(`div`,{className:`art-palette`,children:a.map((e,t)=>(0,S.jsxs)(`div`,{className:`art-pal-chip`,title:e.hex,children:[(0,S.jsx)(`span`,{className:`art-pal-sw`,style:{background:e.hex}}),(0,S.jsxs)(`span`,{className:`art-pal-meta`,children:[(0,S.jsx)(`span`,{className:`art-pal-hex tab-num`,children:e.hex}),e.role&&(0,S.jsx)(`span`,{className:`art-pal-role`,children:e.role})]})]},t))}),c&&c.length>0&&(0,S.jsx)(`div`,{className:`art-notes`,children:c.map((e,t)=>(0,S.jsxs)(`div`,{className:`art-note`,children:[(0,S.jsx)(`span`,{className:`art-note-k`,children:e.label}),(0,S.jsx)(`span`,{className:`art-note-v`,children:e.text})]},t))}),l&&(0,S.jsx)(`div`,{className:`art-caption`,children:l}),u&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}var Ce=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--presence-soft)`,`var(--insight-soft)`];function we(e){return(e.clips??[]).reduce((e,t)=>Math.max(e,t.start+Math.max(0,t.len)),0)}function Te({title:e,icon:t=`sliders`,iconColor:n=`var(--presence)`,tracks:r,bars:i,caption:a,footer:c,delay:l}){let u=o[t]||o.sliders,d=Math.max(4,i??(r.reduce((e,t)=>Math.max(e,we(t)),0)||4)),f=d<=16?1:Math.ceil(d/12),p=[];for(let e=0;e<=d;e+=f)p.push(e);return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`mx-board`,children:[(0,S.jsxs)(`div`,{className:`mx-ruler`,children:[(0,S.jsx)(`span`,{className:`mx-ruler-head`}),(0,S.jsx)(`div`,{className:`mx-ruler-track`,children:p.map(e=>(0,S.jsx)(`span`,{className:`mx-ruler-tick`,style:{left:e/d*100+`%`},children:e+1},e))})]}),r.map((e,t)=>{let n=e.color||Ce[t%Ce.length],r=Math.max(0,Math.min(100,e.volume??80)),i=Math.max(-100,Math.min(100,e.pan??0)),a=(i+100)/2,o=i===0?`C`:(i<0?`L`:`R`)+Math.round(Math.abs(i));return(0,S.jsxs)(`div`,{className:`mx-lane`+(e.mute?` muted`:``)+(e.solo?` soloed`:``),style:{"--cc":n},children:[(0,S.jsxs)(`div`,{className:`mx-head`,children:[(0,S.jsxs)(`div`,{className:`mx-head-top`,children:[(0,S.jsx)(`span`,{className:`mx-name`,children:e.name}),(0,S.jsxs)(`span`,{className:`mx-flags`,children:[(0,S.jsx)(`span`,{className:`mx-flag m`+(e.mute?` on`:``),children:`M`}),(0,S.jsx)(`span`,{className:`mx-flag s`+(e.solo?` on`:``),children:`S`})]})]}),(0,S.jsxs)(`div`,{className:`mx-controls`,children:[(0,S.jsx)(`span`,{className:`mx-vol`,title:`Volume ${r}`,children:(0,S.jsx)(`span`,{className:`mx-vol-fill`,style:{width:r+`%`}})}),(0,S.jsxs)(`span`,{className:`mx-pan`,title:`Pan ${o}`,children:[(0,S.jsx)(`span`,{className:`mx-pan-mid`}),(0,S.jsx)(`span`,{className:`mx-pan-thumb`,style:{left:a+`%`}})]}),(0,S.jsx)(`span`,{className:`mx-pan-lbl tab-num`,children:o})]})]}),(0,S.jsxs)(`div`,{className:`mx-timeline`,children:[p.map(e=>(0,S.jsx)(`span`,{className:`mx-grid`,style:{left:e/d*100+`%`},"aria-hidden":!0},e)),(e.clips??[]).map((e,n)=>{let r=Math.max(0,e.start)/d*100,i=Math.max(0,Math.min(e.len,d-e.start))/d*100;return(0,S.jsx)(`span`,{className:`mx-clip`,style:{left:r+`%`,width:i+`%`},title:e.label,...t===0&&n===0?{"data-mark":`box`}:{},children:e.label&&(0,S.jsx)(`span`,{className:`mx-clip-lbl`,children:e.label})},n)})]})]},t)})]}),a&&(0,S.jsx)(`div`,{className:`mx-caption`,children:a}),c&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}function Ee({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,before:r,after:i,position:a=50,footer:s,delay:c}){let l=o[t]||o.image,[u,f]=(0,x.useState)(Math.max(2,Math.min(98,a))),[p,m]=(0,x.useState)(!1),h=(0,x.useRef)(null),g=d(r.src),_=d(i.src),v=e=>{let t=h.current;if(!t)return;let n=t.getBoundingClientRect(),r=(e-n.left)/n.width*100;f(Math.max(2,Math.min(98,r)))},y=e=>{m(!0),e.target.setPointerCapture?.(e.pointerId),v(e.clientX)},C=e=>{p&&v(e.clientX)},w=()=>m(!1);return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`me-ba`+(p?` dragging`:``),ref:h,onPointerMove:C,onPointerUp:w,onPointerLeave:w,children:[(0,S.jsxs)(`div`,{className:`me-ba-plate`,style:{background:`linear-gradient(135deg, ${b(i.from,`var(--presence-deep)`)}, ${b(i.to,`var(--presence-soft)`)})`},children:[_&&(0,S.jsx)(`img`,{className:`me-img-fill`,src:_,alt:``,decoding:`async`,onError:e=>{e.currentTarget.style.display=`none`}}),(0,S.jsx)(`span`,{className:`me-ba-tag right`,children:i.label})]}),(0,S.jsxs)(`div`,{className:`me-ba-plate me-ba-before`,style:{background:`linear-gradient(135deg, ${b(r.from,`var(--presence-deep)`)}, ${b(r.to,`var(--presence-soft)`)})`,clipPath:`inset(0 ${100-u}% 0 0)`},children:[g&&(0,S.jsx)(`img`,{className:`me-img-fill`,src:g,alt:``,decoding:`async`,onError:e=>{e.currentTarget.style.display=`none`}}),(0,S.jsx)(`span`,{className:`me-ba-tag left`,children:r.label})]}),(0,S.jsx)(`div`,{className:`me-ba-divider`,style:{left:u+`%`},"data-interactive":!0,onPointerDown:y,children:(0,S.jsxs)(`span`,{className:`me-ba-handle`,children:[(0,S.jsx)(o.chevR,{className:`me-ba-arrow flip`}),(0,S.jsx)(o.chevR,{className:`me-ba-arrow`})]})})]}),(0,S.jsxs)(`div`,{className:`me-ba-caps`,children:[(0,S.jsx)(`span`,{className:`faint`,children:r.caption||`Before`}),(0,S.jsxs)(`span`,{className:`tab-num me-ba-pct`,children:[Math.round(u),`%`]}),(0,S.jsx)(`span`,{className:`faint`,children:i.caption||`After`})]}),(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:s||(0,S.jsx)(`span`,{className:`faint`,children:`Drag the divider to wipe between the two versions`})})]})}function De({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,slides:r,start:i=0,footer:a,delay:s}){let c=o[t]||o.image,l=r.length,[u,f]=(0,x.useState)(Math.max(0,Math.min(l-1,i))),[p,m]=(0,x.useState)(0),h=(0,x.useRef)(null),g=e=>f(l>0?(e+l)%l:0),_=e=>{h.current=e.clientX,e.target.setPointerCapture?.(e.pointerId)},v=e=>{h.current!=null&&m(e.clientX-h.current)},y=()=>{Math.abs(p)>48&&g(u+(p<0?1:-1)),h.current=null,m(0)};return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`me-carousel`,children:[(0,S.jsx)(`div`,{className:`me-car-track`,style:{transform:`translateX(calc(${-u*100}% + ${p}px))`},"data-interactive":!0,onPointerDown:_,onPointerMove:v,onPointerUp:y,onPointerLeave:y,children:r.map((e,t)=>{let n=d(e.src);return(0,S.jsxs)(`div`,{className:`me-car-slide`,children:[(0,S.jsxs)(`div`,{className:`me-car-img`,style:{background:`linear-gradient(135deg, ${b(e.from,`var(--presence-deep)`)}, ${b(e.to,`var(--presence-soft)`)})`},...t===0?{"data-mark":`circle`}:{},children:[n&&(0,S.jsx)(`img`,{className:`me-img-fill`,src:n,alt:``,loading:`lazy`,decoding:`async`,onError:e=>{e.currentTarget.style.display=`none`}}),e.tag&&(0,S.jsx)(`span`,{className:`me-car-tag`,children:e.tag}),(0,S.jsx)(`span`,{className:`me-car-label`,children:e.label})]}),e.caption&&(0,S.jsx)(`div`,{className:`me-car-cap`,children:e.caption})]},t)})}),(0,S.jsx)(`button`,{className:`me-car-arrow left`,onClick:()=>g(u-1),"aria-label":`Previous`,children:(0,S.jsx)(o.chevR,{className:`flip`})}),(0,S.jsx)(`button`,{className:`me-car-arrow right`,onClick:()=>g(u+1),"aria-label":`Next`,children:(0,S.jsx)(o.chevR,{})})]}),(0,S.jsxs)(`div`,{className:`me-car-dots`,children:[r.map((e,t)=>(0,S.jsx)(`button`,{className:`me-dot`+(t===u?` on`:``),onClick:()=>f(t),"aria-label":`Slide ${t+1}`},t)),(0,S.jsxs)(`span`,{className:`tab-num me-car-count`,children:[u+1,`/`,l]})]}),a&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:a})]})}var Oe=e=>Math.max(2,Math.min(98,e));function ke({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,image:r,callouts:i,footer:a,delay:s}){let c=o[t]||o.image,[l,u]=(0,x.useState)(0),f=d(r.src);return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`me-ico-wrap`,children:[(0,S.jsxs)(`div`,{className:`me-ico-img`,style:{background:`linear-gradient(135deg, ${b(r.from,`var(--presence-deep)`)}, ${b(r.to,`var(--presence-soft)`)})`},children:[f&&(0,S.jsx)(`img`,{className:`me-img-fill`,src:f,alt:``,loading:`lazy`,decoding:`async`,onError:e=>{e.currentTarget.style.display=`none`}}),r.label&&(0,S.jsx)(`span`,{className:`me-ico-imglabel`,children:r.label}),i.map((e,t)=>{let n=e.color||`var(--presence)`;return(0,S.jsx)(`button`,{className:`me-ico-pin`+(t===l?` on`:``),style:{left:Oe(e.x)+`%`,top:Oe(e.y)+`%`,"--cc":n},onMouseEnter:()=>u(t),onClick:()=>u(t),"aria-label":e.label,...t===0?{"data-mark":`circle`}:{},children:(0,S.jsx)(`span`,{className:`me-ico-num`,children:t+1})},t)})]}),(0,S.jsx)(`div`,{className:`me-ico-list`,children:i.map((e,t)=>{let n=e.color||`var(--presence)`;return(0,S.jsxs)(`button`,{className:`me-ico-row`+(t===l?` on`:``),style:{"--cc":n},onMouseEnter:()=>u(t),onClick:()=>u(t),children:[(0,S.jsx)(`span`,{className:`me-ico-rownum`,children:t+1}),(0,S.jsxs)(`span`,{className:`me-ico-rowbody`,children:[(0,S.jsx)(`span`,{className:`me-ico-rowtitle`,children:e.label}),e.detail&&(0,S.jsx)(`span`,{className:`me-ico-rowdetail`,children:e.detail})]})]},t)})})]}),a&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:a})]})}function Ae(e,t){let n=(t||`0:00`).split(`:`).map(e=>parseInt(e,10)||0),r=n.length===2?n[0]*60+n[1]:n[0],i=Math.round(r*e/100);return`${Math.floor(i/60)}:${String(i%60).padStart(2,`0`)}`}function je({title:e,icon:t=`speaker`,iconColor:n=`var(--presence)`,bars:r,durationLabel:i=`3:24`,color:a=`var(--presence)`,position:s=32,markers:c=[],footer:l,delay:u}){let d=o[t]||o.speaker,[f,p]=(0,x.useState)(Math.max(0,Math.min(100,s))),[m,h]=(0,x.useState)(!0),[g,_]=(0,x.useState)(!1),v=(0,x.useRef)(null),y=e=>{let t=v.current;if(!t)return;let n=t.getBoundingClientRect();p(Math.max(0,Math.min(100,(e-n.left)/n.width*100)))};return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`me-wave-row`,children:[(0,S.jsx)(`button`,{className:`me-wave-play`+(m?` on`:``),style:{"--cc":a},onClick:()=>h(e=>!e),"aria-label":m?`Pause`:`Play`,children:m?(0,S.jsxs)(`span`,{className:`me-wave-pause`,children:[(0,S.jsx)(`i`,{}),(0,S.jsx)(`i`,{})]}):(0,S.jsx)(o.play,{})}),(0,S.jsxs)(`div`,{className:`me-wave`+(g?` dragging`:``),ref:v,"data-interactive":!0,onPointerDown:e=>{_(!0),e.target.setPointerCapture?.(e.pointerId),y(e.clientX)},onPointerMove:e=>g&&y(e.clientX),onPointerUp:()=>_(!1),onPointerLeave:()=>_(!1),children:[r.map((e,t)=>{let n=(r.length>1?t/(r.length-1)*100:0)<=f;return(0,S.jsx)(`span`,{className:`me-wave-bar`,style:{height:Math.max(8,e*100)+`%`,background:n?a:`var(--track)`}},t)}),c.map((e,t)=>(0,S.jsx)(`span`,{className:`me-wave-marker`,style:{left:e.at+`%`},title:e.label,...t===0?{"data-mark":`point`}:{}},t)),(0,S.jsx)(`span`,{className:`me-wave-head`,style:{left:f+`%`,"--cc":a}})]}),(0,S.jsxs)(`span`,{className:`tab-num me-wave-time`,children:[Ae(f,i),` `,(0,S.jsxs)(`span`,{className:`faint`,children:[`/ `,i]})]})]}),(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:l||(0,S.jsx)(`span`,{className:`faint`,children:`Click or drag the waveform to scrub`})})]})}function Me({title:e,icon:t=`play`,iconColor:n=`var(--presence)`,thumb:r,video:i,poster:a,durationLabel:s=`12:40`,chapters:c,active:l=0,footer:f,delay:p}){let m=o[t]||o.play,h=d(a),g=u(i),[_,v]=(0,x.useState)(Math.max(0,Math.min(c.length-1,l))),[y,C]=(0,x.useState)(!1),w=(0,x.useRef)(null),T=e=>Math.max(0,Math.min(100,c[e]?.at??0)),E=T(_),D=e=>{v(e);let t=w.current;t&&t.duration&&(t.currentTime=T(e)/100*t.duration)};return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`me-vid`,children:[g?(0,S.jsx)(`video`,{ref:w,className:`me-vid-real`,src:g,poster:h,controls:!0,preload:`metadata`,playsInline:!0,children:(0,S.jsx)(`track`,{kind:`captions`,srcLang:`en`,label:`English`,src:`data:text/vtt,WEBVTT`})}):(0,S.jsxs)(`div`,{className:`me-vid-thumb`,style:{background:`linear-gradient(135deg, ${b(r.from,`var(--presence-deep)`)}, ${b(r.to,`var(--presence-soft)`)})`},children:[r.label&&(0,S.jsx)(`span`,{className:`me-vid-overlaylabel`,children:r.label}),(0,S.jsx)(`span`,{className:`me-vid-dur tab-num`,children:s}),(0,S.jsx)(`button`,{className:`me-vid-playbtn`+(y?` playing`:``),onClick:()=>C(e=>!e),"aria-label":y?`Pause`:`Play`,children:y?(0,S.jsxs)(`span`,{className:`me-vid-pause`,children:[(0,S.jsx)(`i`,{}),(0,S.jsx)(`i`,{})]}):(0,S.jsx)(o.play,{})}),(0,S.jsxs)(`div`,{className:`me-vid-scrub`,children:[(0,S.jsx)(`span`,{className:`me-vid-scrub-fill`,style:{width:E+`%`}}),c.map((e,t)=>(0,S.jsx)(`span`,{className:`me-vid-tick`+(t===_?` on`:``),style:{left:T(t)+`%`}},t))]})]}),c.length>0&&(0,S.jsx)(`div`,{className:`me-vid-chapters`,role:`listbox`,"aria-label":`Chapters`,tabIndex:0,onKeyDown:e=>{e.key===`ArrowDown`||e.key===`ArrowRight`?(e.preventDefault(),D(Math.min(c.length-1,_+1))):(e.key===`ArrowUp`||e.key===`ArrowLeft`)&&(e.preventDefault(),D(Math.max(0,_-1)))},children:c.map((e,t)=>(0,S.jsxs)(`button`,{className:`me-vid-chap`+(t===_?` on`:``),onClick:()=>D(t),role:`option`,"aria-selected":t===_,children:[(0,S.jsx)(`span`,{className:`me-vid-chaptime tab-num`,children:e.time}),(0,S.jsx)(`span`,{className:`me-vid-chaptitle`,...t===_?{"data-mark":`underline`}:{},children:e.title}),t===_&&(0,S.jsx)(o.play,{className:`me-vid-chapnow`})]},t))})]}),(f||c.length>0)&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:f||(0,S.jsxs)(`span`,{children:[`Now at`,` `,(0,S.jsx)(`strong`,{style:{color:`var(--text-primary)`},children:c[_]?.title})]})})]})}var Ne=`/assets/maplibre-gl-worker-DZ7nj4vd.js`;i();async function Pe(){let e=await a(()=>import(`./maplibre-gl-CrDadnl3.js`),[]).catch(()=>null);return e?.Map?(e.setWorkerUrl(Ne),e.getWorkerCount()!==1&&e.setWorkerCount(1),e):null}var Fe=`https://www.openstreetmap.org/copyright`;function Ie(){let e=(0,N.c)(3),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,S.jsx)(`a`,{href:`https://openfreemap.org/`,target:`_blank`,rel:`noopener noreferrer`,children:`OpenFreeMap`}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,S.jsx)(`a`,{href:`https://openmaptiles.org/`,target:`_blank`,rel:`noopener noreferrer`,children:`OpenMapTiles`}),e[1]=n):n=e[1];let r;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,S.jsxs)(`p`,{className:`geo-map-credit`,"aria-label":`Map attribution`,children:[`Map:`,` `,t,` `,`· ©`,` `,n,` `,`· Data © OpenStreetMap contributors (ODbL) ·`,` `,(0,S.jsx)(`a`,{href:Fe,target:`_blank`,rel:`noopener noreferrer`,children:Fe})]}),e[2]=r):r=e[2],r}var Le=e=>`https://tiles.openfreemap.org/styles/${e?`positron`:`dark`}`,Re=e=>{let t=e?.closest(`.figure-embed`);return t?t.getAttribute(`data-theme-mode`)!==`dark`:typeof document<`u`&&document.documentElement.getAttribute(`data-theme`)===`light`},ze=new Set([`residential`,`commercial`,`industrial`,`mixed`,`open-space`]),Be={residential:`var(--presence)`,commercial:`var(--warning)`,industrial:`var(--danger)`,mixed:`var(--presence-soft)`,"open-space":`var(--insight)`},Ve={residential:`Residential`,commercial:`Commercial`,industrial:`Industrial`,mixed:`Mixed use`,"open-space":`Open space`};function He(e){return Array.isArray(e)?e.map(e=>{let t=(Array.isArray(e?.coords)?e.coords:[]).filter(e=>Array.isArray(e)&&e.length===2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Math.abs(e[0])<=90&&Math.abs(e[1])<=180);if(t.length<3)return null;let n=ze.has(e?.category)?e.category:`mixed`;return{coords:t,category:n,label:typeof e?.label==`string`&&e.label.trim()?e.label.trim():Ve[n]}}).filter(e=>e!==null):[]}function Ue(e,t){let n=/^var\((--[^)]+)\)$/.exec(t)?.[1];return n?getComputedStyle(e).getPropertyValue(n).trim()||`transparent`:t}function We(e,t){let n=document.createElement(`div`);n.className=`geo-pop`;let r=document.createElement(`b`);if(r.textContent=e,n.append(r),t){let e=document.createElement(`div`);e.className=`geo-pop-d`,e.textContent=t,n.append(e)}return n}function Ge({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,markers:r,zoom:i,zones:a,footer:s,delay:c}){let l=o[t]||o.globe,u=(0,x.useRef)(null),[d,f]=(0,x.useState)(!1),[p,m]=(0,x.useState)(!1),h=(0,x.useMemo)(()=>(r||[]).filter(e=>Number.isFinite(e.lat)&&Number.isFinite(e.lng)&&Math.abs(e.lat)<=90&&Math.abs(e.lng)<=180),[r]),g=(0,x.useMemo)(()=>He(a),[a]),_=g.reduce((e,t)=>(e.includes(t.category)||e.push(t.category),e),[]);(0,x.useEffect)(()=>{if(!u.current||!h.length)return;let e=!1,t=null,n=[],r=null;f(!1);let a=0,o=()=>{window.clearTimeout(a),a=0,e||f(!0)};return a=window.setTimeout(o,8e3),(async()=>{let s=await Pe();if(e||!u.current)return;if(!s){window.clearTimeout(a),m(!0);return}t=new s.Map({container:u.current,style:Le(Re(u.current)),center:[h[0].lng,h[0].lat],zoom:i??13,attributionControl:{compact:!1},scrollZoom:!1,dragRotate:!1,pitchWithRotate:!1,fadeDuration:0,maxTileCacheSize:48,canvasContextAttributes:{preserveDrawingBuffer:!0,powerPreference:`low-power`}}),t.on(`styledata`,()=>{if(!t||!u.current||!t.isStyleLoaded()||t.getSource(`mavea-zones`))return;let e=g.map((e,t)=>({type:`Feature`,id:t,properties:{label:e.label,category:Ve[e.category],color:Ue(u.current,Be[e.category])},geometry:{type:`Polygon`,coordinates:[[...e.coords.map(([e,t])=>[t,e]),[e.coords[0][1],e.coords[0][0]]]]}}));t.addSource(`mavea-zones`,{type:`geojson`,data:{type:`FeatureCollection`,features:e}}),t.addLayer({id:`mavea-zones-fill`,type:`fill`,source:`mavea-zones`,paint:{"fill-color":[`get`,`color`],"fill-opacity":.22}}),t.addLayer({id:`mavea-zones-line`,type:`line`,source:`mavea-zones`,paint:{"line-color":[`get`,`color`],"line-width":1.5}})}),t.on(`idle`,o),n=h.map((e,n)=>{let r=document.createElement(`span`);r.className=`geo-pin`,r.style.setProperty(`--geo-c`,b(e.color)),r.textContent=String(n+1),r.setAttribute(`role`,`button`),r.setAttribute(`aria-label`,e.name);let i=We(e.name,e.detail),a=document.createElement(`a`);return a.className=`geo-pop-a`,a.href=`https://www.google.com/maps/search/?api=1&query=${e.lat},${e.lng}`,a.target=`_blank`,a.rel=`noopener noreferrer`,a.textContent=`Open in Google Maps ↗`,i.append(a),new s.Marker({element:r}).setLngLat([e.lng,e.lat]).setPopup(new s.Popup({offset:18}).setDOMContent(i)).addTo(t)});let c=new s.LngLatBounds;for(let e of h)c.extend([e.lng,e.lat]);for(let e of g)for(let[t,n]of e.coords)c.extend([n,t]);h.length+g.flatMap(e=>e.coords).length>1&&t.fitBounds(c,{padding:34,duration:0});let l=Le(Re(u.current));r=new MutationObserver(()=>{let e=Le(Re(u.current));!t||e===l||(l=e,f(!1),window.clearTimeout(a),a=window.setTimeout(o,8e3),t.setStyle(e))}),r.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-theme`]})})(),()=>{e=!0,window.clearTimeout(a),r?.disconnect();for(let e of n)e.remove();n=[],t?.remove()}},[h,g,i]);let v=h.length>0&&!p;return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),p?(0,S.jsx)(`div`,{className:`geo-map geo-map-empty faint`,children:`Map couldn’t load.`}):h.length?(0,S.jsx)(`div`,{ref:u,className:`geo-map`,"data-tiles":d?`ready`:`loading`,"aria-busy":!d}):(0,S.jsx)(`div`,{className:`geo-map geo-map-empty faint`,children:`No locations to map.`}),v&&(0,S.jsx)(Ie,{}),v&&_.length>0&&(0,S.jsx)(`div`,{className:`geo-zone-legend`,children:_.map(e=>(0,S.jsxs)(`span`,{className:`geo-zone-chip`,children:[(0,S.jsx)(`span`,{className:`geo-zone-swatch`,style:{background:Be[e]}}),Ve[e]]},e))}),(s||v)&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:s||(0,S.jsxs)(`span`,{className:`faint`,children:[`Real map · `,h.length,` location`,h.length===1?``:`s`,` · drag to explore`]})})]})}function Ke({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,items:r,footer:i,delay:a}){let s=o[t]||o.image,[c,l]=(0,x.useState)(null),u=r.length,f=e=>l(u>0?(e%u+u)%u:null),p=c==null?null:r[c],m=p?d(p.src):void 0;return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(s,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`me-lb-grid`,children:r.map((e,t)=>{let n=d(e.src);return(0,S.jsxs)(`button`,{className:`me-lb-thumb`,style:{background:`linear-gradient(135deg, ${b(e.from,`var(--presence-deep)`)}, ${b(e.to,`var(--presence-soft)`)})`},onClick:()=>l(t),"aria-label":e.label,children:[n&&(0,S.jsx)(`img`,{className:`me-img-fill`,src:n,alt:``,loading:`lazy`,decoding:`async`,onError:e=>{e.currentTarget.style.display=`none`}}),(0,S.jsx)(`span`,{className:`me-lb-thumblabel`,children:e.label}),(0,S.jsx)(`span`,{className:`me-lb-expand`,children:(0,S.jsx)(o.external,{})})]},t)})}),p&&c!=null&&(0,S.jsx)(`div`,{className:`me-lb-modal`,onClick:()=>l(null),role:`button`,tabIndex:0,"aria-label":`Close`,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),l(null))},children:(0,S.jsxs)(`div`,{className:`me-lb-stage`,role:`presentation`,onClick:e=>e.stopPropagation(),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&e.stopPropagation()},children:[(0,S.jsxs)(`div`,{className:`me-lb-hero`,style:{background:`linear-gradient(135deg, ${b(p.from,`var(--presence-deep)`)}, ${b(p.to,`var(--presence-soft)`)})`},children:[m&&(0,S.jsx)(`img`,{className:`me-img-fill`,src:m,alt:``,loading:`lazy`,decoding:`async`,onError:e=>{e.currentTarget.style.display=`none`}}),(0,S.jsx)(`span`,{className:`me-lb-herolabel`,children:p.label})]}),(0,S.jsxs)(`div`,{className:`me-lb-bar`,children:[(0,S.jsxs)(`div`,{className:`me-lb-meta`,children:[(0,S.jsx)(`span`,{className:`me-lb-metatitle`,children:p.label}),p.caption&&(0,S.jsx)(`span`,{className:`me-lb-metacap faint`,children:p.caption})]}),(0,S.jsxs)(`span`,{className:`tab-num faint`,children:[c+1,` / `,u]})]}),(0,S.jsx)(`button`,{className:`me-lb-nav left`,onClick:()=>f(c-1),"aria-label":`Previous`,children:(0,S.jsx)(o.chevR,{className:`flip`})}),(0,S.jsx)(`button`,{className:`me-lb-nav right`,onClick:()=>f(c+1),"aria-label":`Next`,children:(0,S.jsx)(o.chevR,{})}),(0,S.jsx)(`button`,{className:`me-lb-close`,onClick:()=>l(null),"aria-label":`Close`,children:(0,S.jsx)(o.x,{})})]})}),(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:i||(0,S.jsxs)(`span`,{className:`faint`,children:[`Click any thumbnail to open the lightbox · `,u,` images`]})})]})}function qe(e){let t={gridColumn:`span ${e.span===2?2:1}`,gridRow:`span ${e.rows===2?2:1}`};return e.kind===`image`?t.background=`linear-gradient(135deg, ${b(e.from)}, ${b(e.to,`var(--presence-soft)`)})`:e.kind===`color`&&(t.background=b(e.swatch)),t}function Je({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,tiles:r,footer:i,delay:a}){let s=o[t]||o.layers,[c,l]=(0,x.useState)(null);return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(s,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`me-mood`,children:r.map((e,t)=>{let n=d(e.src);return(0,S.jsxs)(`div`,{className:`me-mood-tile k-`+e.kind+(c===t?` lift`:``)+(c!=null&&c!==t?` fade`:``),style:qe(e),onMouseEnter:()=>l(t),onMouseLeave:()=>l(null),children:[e.kind===`image`&&n&&(0,S.jsx)(`img`,{className:`me-img-fill`,src:n,alt:``,loading:`lazy`,decoding:`async`,onError:e=>{e.currentTarget.style.display=`none`}}),e.kind===`text`&&(0,S.jsx)(`span`,{className:`me-mood-text`,children:e.text||e.label}),e.kind===`color`&&(0,S.jsx)(`span`,{className:`me-mood-hex tab-num`,children:e.hex||``}),e.kind===`image`&&e.label&&(0,S.jsx)(`span`,{className:`me-mood-imglabel`,children:e.label})]},t)})}),i&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:i})]})}function Ye({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,swatches:r,footer:i,delay:a}){let s=o[t]||o.image,[c,l]=(0,x.useState)(null),[u,d]=(0,x.useState)(null);y(()=>l(null),c===null?null:900),y(()=>d(null),u?1400:null);let f=(e,t)=>{l(e);let n=window;typeof n.toast==`function`?n.toast(`Copied ${t}`):(navigator.clipboard?.writeText(t).catch(()=>{}),d(`Copied ${t}`))};return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(s,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`me-pal`,children:r.map((e,t)=>(0,S.jsxs)(`button`,{className:`me-pal-swatch`+(e.light?` light`:``)+(c===t?` copied`:``),style:{background:e.hex},onClick:()=>f(t,e.hex),title:`Copy ${e.hex}`,children:[(0,S.jsxs)(`span`,{className:`me-pal-top`,children:[e.contrast&&(0,S.jsx)(`span`,{className:`me-pal-contrast`,children:e.contrast}),(0,S.jsx)(`span`,{className:`me-pal-copyicon`,children:c===t?(0,S.jsx)(o.check,{}):(0,S.jsx)(o.layers,{})})]}),(0,S.jsxs)(`span`,{className:`me-pal-meta`,children:[(0,S.jsx)(`span`,{className:`me-pal-name`,children:e.name}),(0,S.jsx)(`span`,{className:`me-pal-hex tab-num`,children:c===t?`Copied`:e.hex})]})]},t))}),u&&(0,S.jsxs)(`div`,{className:`me-pal-toast`,children:[(0,S.jsx)(o.check,{}),` `,u]}),(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:i||(0,S.jsx)(`span`,{className:`faint`,children:`Click a swatch to copy its hex`})})]})}var Xe=6e3,Ze=80,Qe=20,$e=new Set(`svg.g.defs.title.desc.path.rect.circle.ellipse.line.polyline.polygon.text.tspan.textpath.lineargradient.radialgradient.stop.clippath.mask.pattern.marker.symbol.use.filter.fegaussianblur.feoffset.feblend.fecolormatrix.fecomposite.feflood.femerge.femergenode.femorphology.fedropshadow.fecomponenttransfer.fefuncr.fefuncg.fefuncb.fefunca.fedisplacementmap.feturbulence.fetile.fespecularlighting.fediffuselighting.fepointlight.fespotlight.fedistantlight`.split(`.`)),et=new Set([`href`,`xlink:href`,`src`]),tt=/url\(\s*['"]?\s*(?!#)/i,nt=/javascript:/i,rt=/expression\s*\(|@import|behavior\s*:|-moz-binding/i,it=new Set([`fill`,`stroke`,`stop-color`,`flood-color`,`lighting-color`]),at=new Set([`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--danger)`,`var(--text-primary)`,`var(--text-secondary)`,`var(--text-muted)`,`var(--surface-card)`]),ot=new Set([`none`,`currentcolor`,`transparent`,`context-fill`,`context-stroke`]),st=/^url\(#[\w-]+\)$/,ct=/\b(?:fill|stroke|color|stop-color)\s*:\s*(?!var\(--)[^;]+/i,lt=9.5,ut=640,dt=440,ft=16,pt=/^\s*([\d.]+)(?:px)?\s*$/,mt=/^\s*font-size\s*:/i;function ht(e){let t=e.trim();return at.has(t)||ot.has(t.toLowerCase())||st.test(t)}function gt(e,t){if(e===`fill`){let e=t.localName.toLowerCase();return e===`text`||e===`tspan`?`var(--text-primary)`:`var(--surface-card)`}return`var(--text-secondary)`}function _t(e){let t=e?.split(`;`).find(e=>mt.test(e));return t?t.slice(t.indexOf(`:`)+1):null}function vt(e){for(let t=e;t;t=t.parentElement){let e=_t(t.getAttribute(`style`))??t.getAttribute(`font-size`);if(e==null)continue;let n=pt.exec(e);return n?Number(n[1]):null}return ft}function yt(e,t,n){let r=lt*Math.max(t/ut,n/dt);for(let t of Array.from(e.querySelectorAll(`text, tspan`))){let e=vt(t);if(e===null||e>=r)continue;t.setAttribute(`font-size`,String(Math.round(r*100)/100));let n=t.getAttribute(`style`);if(n===null)continue;let i=n.split(`;`).filter(e=>e.trim()&&!mt.test(e));i.length?t.setAttribute(`style`,i.join(`;`)):t.removeAttribute(`style`)}}function bt(e){if(typeof e!=`string`)return null;let t=e.trim();if(!t||t.length>Xe||/<!doctype|<!entity/i.test(t)||typeof DOMParser>`u`||typeof XMLSerializer>`u`)return null;let n;try{n=new DOMParser().parseFromString(t,`image/svg+xml`)}catch{return null}if(n.getElementsByTagName(`parsererror`).length>0)return null;let r=n.documentElement;if(!r||r.localName.toLowerCase()!==`svg`||(xt(r),r.getElementsByTagName(`*`).length>Ze)||r.getElementsByTagName(`text`).length>Qe)return null;let i=r.getAttribute(`viewBox`);if(!i)return null;let a=i.trim().split(/[\s,]+/).map(Number);if(a.length!==4||a.some(e=>!Number.isFinite(e))||a[2]<=0||a[3]<=0)return null;yt(r,a[2],a[3]),r.removeAttribute(`width`),r.removeAttribute(`height`),r.setAttribute(`width`,`100%`),r.getAttribute(`xmlns`)||r.setAttribute(`xmlns`,`http://www.w3.org/2000/svg`);try{return new XMLSerializer().serializeToString(r)}catch{return null}}function xt(e){for(let t of Array.from(e.attributes)){let n=t.name.toLowerCase(),r=t.value;if(n.startsWith(`on`)){e.removeAttribute(t.name);continue}if(et.has(n)||n.endsWith(`:href`)){r.trim().startsWith(`#`)||e.removeAttribute(t.name);continue}if(it.has(n)){ht(r)||e.setAttribute(t.name,gt(n,e));continue}if(n===`style`){(tt.test(r)||nt.test(r)||rt.test(r)||ct.test(r))&&e.removeAttribute(t.name);continue}(nt.test(r)||tt.test(r))&&e.removeAttribute(t.name)}for(let t of Array.from(e.childNodes)){let n=t.nodeType;if(n===1){let e=t;$e.has(e.localName.toLowerCase())?xt(e):e.remove()}else(n===7||n===8)&&e.removeChild(t)}}function St({title:e,icon:t=`sparkle`,iconColor:n=`var(--presence)`,svg:r,caption:i,footer:a,delay:c}){let l=o[t]||o.sparkle,u=(0,x.useMemo)(()=>bt(r),[r]);return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(l,{className:`ic`,style:{color:n}}),(0,S.jsx)(`span`,{className:`svgb-title`,children:e}),(0,S.jsxs)(`span`,{className:`svgb-badge`,children:[(0,S.jsx)(o.sparkle,{}),` Generated`]})]}),u===null?(0,S.jsx)(`p`,{className:`svgb-err`,children:`Couldn’t render this illustration.`}):(0,S.jsx)(`div`,{className:`svgb-wrap`,children:(0,S.jsx)(`div`,{className:`svgb-inner`,role:`img`,"aria-label":e,dangerouslySetInnerHTML:{__html:u}})}),i&&(0,S.jsx)(`p`,{className:`svgb-caption`,children:i}),u!==null&&(0,S.jsxs)(`p`,{className:`svgb-disclaimer`,role:`note`,children:[(0,S.jsx)(o.alert,{"aria-hidden":`true`}),(0,S.jsxs)(`span`,{children:[(0,S.jsx)(`strong`,{children:`AI-generated visual.`}),` It may be inaccurate or entirely wrong, including its labels, scale, relationships, or depictions. Verify important details with authoritative sources; do not treat it as evidence.`]})]}),a&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:8},dangerouslySetInnerHTML:s(a)})]})}var Ct={soccer:{viewBox:`0 0 100 65`,bg:`#2d7a3a`,aspectRatio:65/100,markings:`
1
+ import{r as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{t as n}from"./compiler-runtime-qQQXpJgv.js";import{t as r}from"./jsx-runtime-DeHZSEgm.js";import{n as i,t as a}from"./preload-helper-CiWYd9n-.js";import{n as o}from"./icons-gLFQTv74.js";import{t as s}from"./richText-BkxJhl9N.js";import{n as c,r as l}from"./format-q0LwBjID.js";import{r as u,t as d}from"./safeImageUrl-BINWXOTz.js";import{t as f}from"./useValidatedImage-BQi2c66o.js";import{r as p,t as m}from"./scale-Bcgfo6Hp.js";import{t as h}from"./BlockEmpty-B82uCse8.js";import"./lib-u95BsX_B.js";import{t as g}from"./registry-types-D3q_LrlV.js";import{n as _,t as v}from"./fitText-DHbmSS-q.js";import{t as y}from"./useTimeout-Cm4yzted.js";import{t as b}from"./safeCssColor-di93BXgG.js";var x=t(),S=r(),C={chess:8,checkers:8,go:19,hex:8,grid:8},w=100,T=6;function E({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,board:r=`chess`,size:i,pieces:a,highlights:c,moves:l,caption:u,footer:d,delay:f}){let p=o[t]||o.layers,m=(0,x.useId)().replace(/:/g,``),h=C[r]?r:`chess`,g=Math.max(2,Math.min(25,Math.round(i??C[h]))),_=h===`go`,v=88/(_?g-1||1:g),y=e=>T+(_?e*v:(e+.5)*v),b=e=>T+(_?e*v:(e+.5)*v),E=v*(_?.4:.38),D=Math.max(.18,v*.03);return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`gb-wrap`,children:(0,S.jsxs)(`svg`,{viewBox:`0 0 ${w} ${w}`,className:`gb-svg`,role:`img`,"aria-label":e,children:[(0,S.jsx)(`rect`,{x:T,y:T,width:88,height:88,className:`gb-frame`}),(h===`chess`||h===`checkers`)&&Array.from({length:g*g},(e,t)=>{let n=Math.floor(t/g),r=t%g;return(n+r)%2==0?null:(0,S.jsx)(`rect`,{x:T+r*v,y:T+n*v,width:v,height:v,className:`gb-dark`},`sq-${t}`)}),(h===`go`||h===`grid`||h===`hex`)&&Array.from({length:_?g:g+1},(e,t)=>{let n=T+t*v;return(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`line`,{x1:n,y1:T,x2:n,y2:94,className:`gb-grid`}),(0,S.jsx)(`line`,{x1:T,y1:n,x2:94,y2:n,className:`gb-grid`})]},`ln-${t}`)}),h===`hex`&&Array.from({length:g*g},(e,t)=>{let n=Math.floor(t/g),r=t%g,i=n%2*v*.5,a=T+(r+.5)*v+i;return a>94?null:(0,S.jsx)(`circle`,{cx:a,cy:T+(n+.5)*v,r:v*.06,className:`gb-hexdot`},`hx-${t}`)}),h===`go`&&g===19&&[3,9,15].flatMap(e=>[3,9,15].map(t=>(0,S.jsx)(`circle`,{cx:y(t),cy:b(e),r:v*.09,className:`gb-star`},`star-${e}-${t}`))),c?.map((e,t)=>_?(0,S.jsx)(`circle`,{cx:y(e.col),cy:b(e.row),r:E*1.25,className:`gb-hl-dot`},`hl-${t}`):(0,S.jsx)(`rect`,{x:T+e.col*v,y:T+e.row*v,width:v,height:v,className:`gb-hl`},`hl-${t}`)),a.map((e,t)=>{let n=y(e.col),r=b(e.row),i=e.glyph||e.label||``;return(0,S.jsxs)(`g`,{className:`gb-piece side-${e.side===`b`?`b`:`a`}`,children:[(0,S.jsx)(`circle`,{cx:n,cy:r,r:E,className:`gb-disc`,strokeWidth:D}),i&&(0,S.jsx)(`text`,{x:n,y:r,textAnchor:`middle`,dominantBaseline:`central`,className:`gb-glyph`,style:{fontSize:E*1.15},children:i})]},`pc-${t}`)}),(0,S.jsx)(`defs`,{children:(0,S.jsx)(`marker`,{id:`gb-arr-${m}`,markerWidth:`5`,markerHeight:`5`,refX:`3.5`,refY:`2.5`,orient:`auto`,children:(0,S.jsx)(`path`,{d:`M0,0 L0,5 L5,2.5 Z`,className:`gb-arrhead`})})}),l?.map((e,t)=>(0,S.jsx)(`line`,{x1:y(e.from[1]),y1:b(e.from[0]),x2:y(e.to[1]),y2:b(e.to[0]),className:`gb-move`,strokeWidth:Math.max(.6,v*.08),markerEnd:`url(#gb-arr-${m})`},`mv-${t}`))]})}),u&&(0,S.jsx)(`div`,{className:`gb-caption`,children:u}),d&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}var D=.6;function O(e,t,n){let r=Math.max(3,Math.floor(t/(n*D)));return e.length>r?e.slice(0,r-1).trimEnd()+`…`:e}var k=[`color-mix(in oklab, var(--presence) 13%, transparent)`,`color-mix(in oklab, var(--insight) 13%, transparent)`,`color-mix(in oklab, var(--warning) 15%, transparent)`,`color-mix(in oklab, var(--presence) 7%, transparent)`,`color-mix(in oklab, var(--insight) 7%, transparent)`],A=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--presence-soft)`,`var(--insight-soft)`];function j({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,fabric:r,pieces:i,unit:a=`cm`,caption:c,footer:u,delay:d}){let f=o[t]||o.edit,p=(0,x.useId)().replace(/:/g,``),m=Math.max(1,r.w),h=Math.max(1,r.h),g=Math.max(m,h)*.04,_=m+g*2,v=h+g*2,y=i.reduce((e,t)=>e+Math.max(0,Math.min(t.w,m-t.x))*Math.max(0,Math.min(t.h,h-t.y))*Math.max(1,t.qty??1),0),b=Math.min(100,Math.round(y/(m*h)*100));return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`pat-figwrap`,children:(0,S.jsxs)(`svg`,{viewBox:`0 0 ${_} ${v}`,className:`pat-svg`,role:`img`,"aria-label":e,children:[(0,S.jsx)(`defs`,{children:(0,S.jsx)(`marker`,{id:`pat-grain-${p}`,markerWidth:`6`,markerHeight:`6`,refX:`3`,refY:`3`,orient:`auto`,children:(0,S.jsx)(`path`,{d:`M0,3 L5,0.5 L4,3 L5,5.5 Z`,className:`pat-grain-head`})})}),(0,S.jsx)(`rect`,{x:g,y:g,width:m,height:h,className:`pat-fabric`}),(0,S.jsx)(`line`,{x1:g,y1:g,x2:g,y2:g+h,className:`pat-foldedge`,strokeWidth:Math.max(.4,m*.006)}),(0,S.jsx)(`text`,{className:`pat-foldlabel`,transform:`translate(${g+m*.022},${g+h/2}) rotate(-90)`,children:(0,S.jsx)(`tspan`,{x:0,y:0,children:`FOLD`})}),r.label&&(0,S.jsx)(`text`,{x:g+m-1,y:g-g*.35,textAnchor:`end`,className:`pat-fabriclabel`,children:r.label}),i.map((e,t)=>{let n=A[t%A.length],r=k[t%k.length],i=g+e.x,a=g+e.y,o=i+e.w/2,s=a+e.h/2,c=e.h*.14,l=Math.min(e.w,e.h)<Math.max(m,h)*.1,u=Math.max(1,e.qty??1);return(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`rect`,{x:i,y:a,width:e.w,height:e.h,rx:Math.min(1.5,m*.005),fill:r,stroke:n,strokeWidth:m*.004,strokeDasharray:e.fold?void 0:`${m*.012} ${m*.008}`}),e.fold&&(0,S.jsx)(`line`,{x1:i,y1:a,x2:i,y2:a+e.h,className:`pat-onfold`,strokeWidth:m*.006}),(0,S.jsx)(`line`,{x1:o,y1:a+c,x2:o,y2:a+e.h-c,className:`pat-grain`,strokeWidth:Math.max(.3,m*.0035),markerStart:`url(#pat-grain-${p})`,markerEnd:`url(#pat-grain-${p})`}),!l&&(()=>{let t=Math.max(m*.026,2.4),n=O(e.label,e.w-t,t),r=n!==e.label;return(0,S.jsxs)(`text`,{x:o,y:s,textAnchor:`middle`,dominantBaseline:`middle`,className:`pat-piece-lbl`,style:{fontSize:t},children:[r&&(0,S.jsx)(`title`,{children:e.label}),(0,S.jsx)(`tspan`,{x:o,dy:`-0.5em`,children:n}),(u>1||e.fold)&&(0,S.jsx)(`tspan`,{x:o,dy:`1.4em`,className:`pat-piece-sub`,children:e.fold?`cut 1 on fold`:`cut ${u}`})]})})()]},t)})]})}),(0,S.jsxs)(`div`,{className:`pat-stats`,children:[(0,S.jsxs)(`div`,{className:`pat-stat`,children:[(0,S.jsx)(`span`,{className:`pat-stat-k`,children:`Fabric`}),(0,S.jsxs)(`span`,{className:`pat-stat-v`,children:[l(m),` × `,l(h),` `,a]})]}),(0,S.jsxs)(`div`,{className:`pat-stat`,children:[(0,S.jsx)(`span`,{className:`pat-stat-k`,children:`Yield`}),(0,S.jsxs)(`span`,{className:`pat-stat-v pat-yield`,"data-low":b<55?``:void 0,children:[b,`%`]})]})]}),c&&(0,S.jsx)(`div`,{className:`pat-caption`,children:c}),u&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}function M({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,src:r,candidates:i,alt:a,caption:s,footer:c,delay:l,blockId:u,onUnrenderable:d}){let p=o[t]||o.image,m=f([r,...i??[]]),h=m.state===`checking`?`loading`:m.state===`ready`?`ready`:`error`,g=a||s||e||`Photograph`,_=c||s,v=h===`error`,y=!!(e||_||a);if((0,x.useEffect)(()=>{v&&!y&&u&&d?.(u)},[v,y,u,d]),v&&!y)return null;let b={"--delay":(l||0)+`ms`};return v?(0,S.jsxs)(`div`,{className:`card reveal me-photo-card`,style:b,children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`insight-summary`,children:_||g})]}):(0,S.jsxs)(`div`,{className:`card reveal`,style:b,children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`me-photo`+(h===`ready`?` ready`:``),children:[m.src?(0,S.jsx)(`img`,{className:`me-photo-img`,src:m.src,alt:g,loading:`lazy`,decoding:`async`,referrerPolicy:`no-referrer`}):null,h===`loading`&&(0,S.jsx)(`div`,{className:`me-photo-shimmer`,"aria-hidden":`true`})]}),_&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:_})]})}var N=n();function P({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,shapes:r,labels:i,ratio:a=1.6,footer:c,delay:l}){let u=o[t]||o.image,d=`med-diag-arrow-${(0,x.useId)().replace(/:/g,``)}`,f=Math.round(100/Math.max(.4,a)*10)/10,p=e=>e>20?2.1:e>10?2:1.9,m=i.reduce((e,t)=>{let n=t.side??`right`,r=t.text.length*p(t.text.length);return n===`top`?(e.top=Math.max(e.top,7-t.y+2.5),e.x0=Math.min(e.x0,t.x-r/2),e.x1=Math.max(e.x1,t.x+r/2)):n===`bottom`?(e.bottom=Math.max(e.bottom,t.y+7+2.5-f),e.x0=Math.min(e.x0,t.x-r/2),e.x1=Math.max(e.x1,t.x+r/2)):n===`left`?e.x0=Math.min(e.x0,t.x-7-r-1):e.x1=Math.max(e.x1,t.x+7+r+1),e},{x0:0,x1:100,top:0,bottom:0}),h=Math.min(0,Math.round(m.x0*10)/10),g=Math.round(-Math.max(0,m.top)*10)/10,_=Math.round((Math.max(100,m.x1)-h)*10)/10,v=Math.round((f+Math.max(0,m.bottom)-g)*10)/10;return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`med-diag`,children:(0,S.jsxs)(`svg`,{viewBox:`${h} ${g} ${_} ${v}`,className:`med-diag-svg`,role:`img`,children:[(0,S.jsx)(`defs`,{children:(0,S.jsx)(`marker`,{id:d,viewBox:`0 0 10 10`,refX:`8`,refY:`5`,markerWidth:`6`,markerHeight:`6`,orient:`auto-start-reverse`,children:(0,S.jsx)(`path`,{d:`M0,0 L10,5 L0,10 z`,fill:`context-stroke`})})}),r.map((e,t)=>(0,S.jsx)(F,{s:e,arrowId:d},t)),i.map((e,t)=>{let n=e.side??`right`,r=n===`left`?e.x-7:n===`right`?e.x+7:e.x,i=n===`top`?e.y-7:n===`bottom`?e.y+7:e.y,a=n===`left`?`end`:n===`right`?`start`:`middle`,o=e.color||`var(--text-secondary)`;return(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`line`,{x1:e.x,y1:e.y,x2:r,y2:i,className:`med-diag-lead`}),(0,S.jsx)(`circle`,{cx:e.x,cy:e.y,r:1.1,fill:o,...t===0?{"data-mark":`point`}:{}}),(0,S.jsx)(`text`,{x:r+(n===`right`?1:n===`left`?-1:0),y:i+1.1,textAnchor:a,className:`med-diag-lbl`,fill:o,children:e.text})]},`l${t}`)})]})}),c&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}function F(e){let t=(0,N.c)(28),{s:n,arrowId:r}=e,i=n.color||`var(--text-muted)`,a=n.fill||`none`;switch(n.kind){case`circle`:{let e;return t[0]!==a||t[1]!==n.cx||t[2]!==n.cy||t[3]!==n.r||t[4]!==i?(e=(0,S.jsx)(`circle`,{cx:n.cx,cy:n.cy,r:n.r,stroke:i,strokeWidth:.7,fill:a}),t[0]=a,t[1]=n.cx,t[2]=n.cy,t[3]=n.r,t[4]=i,t[5]=e):e=t[5],e}case`rect`:{let e;return t[6]!==a||t[7]!==n.h||t[8]!==n.w||t[9]!==n.x||t[10]!==n.y||t[11]!==i?(e=(0,S.jsx)(`rect`,{x:n.x,y:n.y,width:n.w,height:n.h,rx:1.5,stroke:i,strokeWidth:.7,fill:a}),t[6]=a,t[7]=n.h,t[8]=n.w,t[9]=n.x,t[10]=n.y,t[11]=i,t[12]=e):e=t[12],e}case`line`:{let e=n.arrow?`url(#${r})`:void 0,a;return t[13]!==n.x1||t[14]!==n.x2||t[15]!==n.y1||t[16]!==n.y2||t[17]!==i||t[18]!==e?(a=(0,S.jsx)(`line`,{x1:n.x1,y1:n.y1,x2:n.x2,y2:n.y2,stroke:i,strokeWidth:.7,strokeLinecap:`round`,markerEnd:e}),t[13]=n.x1,t[14]=n.x2,t[15]=n.y1,t[16]=n.y2,t[17]=i,t[18]=e,t[19]=a):a=t[19],a}case`polygon`:{let e;return t[20]!==a||t[21]!==n.points||t[22]!==i?(e=(0,S.jsx)(`polygon`,{points:n.points,stroke:i,strokeWidth:.7,fill:a}),t[20]=a,t[21]=n.points,t[22]=i,t[23]=e):e=t[23],e}case`path`:{let e;return t[24]!==a||t[25]!==n.d||t[26]!==i?(e=(0,S.jsx)(`path`,{d:n.d,stroke:i,strokeWidth:.7,fill:a}),t[24]=a,t[25]=n.d,t[26]=i,t[27]=e):e=t[27],e}default:return null}}var I={header:{col:12,rows:1},hero:{col:12,rows:3},nav:{col:12,rows:1},image:{col:6,rows:2},text:{col:6,rows:2},button:{col:3,rows:1},card:{col:4,rows:2},list:{col:6,rows:2},footer:{col:12,rows:1},input:{col:6,rows:1}};function L(e,t){return Math.min(t,Math.max(1,Math.round(e)))||1}function ee(e){switch(e){case`header`:case`nav`:return(0,S.jsxs)(`div`,{className:`wf-bar`,children:[(0,S.jsx)(`span`,{className:`wf-dot`}),(0,S.jsx)(`span`,{className:`wf-spacer`}),(0,S.jsx)(`span`,{className:`wf-link`}),(0,S.jsx)(`span`,{className:`wf-link`}),(0,S.jsx)(`span`,{className:`wf-link`})]});case`hero`:return(0,S.jsxs)(`div`,{className:`wf-hero`,children:[(0,S.jsx)(`span`,{className:`wf-line wf-w70 wf-tall`}),(0,S.jsx)(`span`,{className:`wf-line wf-w50`}),(0,S.jsx)(`span`,{className:`wf-pill`})]});case`image`:return(0,S.jsxs)(`div`,{className:`wf-image`,"aria-hidden":!0,children:[(0,S.jsxs)(`svg`,{viewBox:`0 0 100 100`,preserveAspectRatio:`none`,className:`wf-image-x`,children:[(0,S.jsx)(`line`,{x1:`0`,y1:`0`,x2:`100`,y2:`100`}),(0,S.jsx)(`line`,{x1:`100`,y1:`0`,x2:`0`,y2:`100`})]}),(0,S.jsx)(o.image,{className:`wf-image-ic`})]});case`text`:return(0,S.jsxs)(`div`,{className:`wf-text`,children:[(0,S.jsx)(`span`,{className:`wf-line wf-w90`}),(0,S.jsx)(`span`,{className:`wf-line wf-w100`}),(0,S.jsx)(`span`,{className:`wf-line wf-w80`}),(0,S.jsx)(`span`,{className:`wf-line wf-w60`})]});case`button`:return(0,S.jsx)(`span`,{className:`wf-pill wf-pill-solid`});case`card`:return(0,S.jsxs)(`div`,{className:`wf-card`,children:[(0,S.jsx)(`span`,{className:`wf-thumb`}),(0,S.jsx)(`span`,{className:`wf-line wf-w70 wf-strong`}),(0,S.jsx)(`span`,{className:`wf-line wf-w90`}),(0,S.jsx)(`span`,{className:`wf-line wf-w50`})]});case`list`:return(0,S.jsx)(`div`,{className:`wf-list`,children:[0,1,2].map(e=>(0,S.jsxs)(`span`,{className:`wf-row`,children:[(0,S.jsx)(`span`,{className:`wf-row-dot`}),(0,S.jsx)(`span`,{className:`wf-line wf-w80`})]},e))});case`footer`:return(0,S.jsx)(`div`,{className:`wf-foot`,children:[0,1,2].map(e=>(0,S.jsxs)(`span`,{className:`wf-foot-col`,children:[(0,S.jsx)(`span`,{className:`wf-line wf-w60 wf-strong`}),(0,S.jsx)(`span`,{className:`wf-line wf-w90`}),(0,S.jsx)(`span`,{className:`wf-line wf-w70`})]},e))});case`input`:return(0,S.jsxs)(`div`,{className:`wf-input`,children:[(0,S.jsx)(`span`,{className:`wf-line wf-w40`}),(0,S.jsx)(`span`,{className:`wf-input-cta`})]})}}function te({title:e,icon:t,iconColor:n=`var(--presence-soft)`,regions:r,cols:i=12,caption:a,footer:c,delay:l}){let u=L(i,12),d=t&&o[t]||o.screen,f=Array.isArray(r)?r:[];return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l??0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`wireframe`,style:{"--wf-cols":u},role:`img`,"aria-label":e?e+` wireframe`:`page wireframe`,children:f.map((e,t)=>{let n=I[e.kind]??I.card,r=L(e.col??n.col,u),i=Math.min(6,Math.max(1,Math.round(e.rows??n.rows)))||1;return(0,S.jsxs)(`div`,{className:`wf-region wf-`+e.kind,style:{gridColumn:`span `+r,"--wf-rows":i},children:[(0,S.jsx)(`div`,{className:`wf-fill`,children:ee(e.kind)}),e.label&&(0,S.jsx)(`span`,{className:`wf-label`,children:e.label})]},t)})}),a&&(0,S.jsx)(`div`,{className:`wf-caption`,dangerouslySetInnerHTML:s(a)}),c&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}var ne=e=>Math.max(3,Math.min(97,e)),re={heart:{outline:(0,S.jsx)(`path`,{d:`M50 88 C26 70 12 54 12 37 C12 24 22 15 33 15 C42 15 48 21 50 27 C52 21 58 15 67 15 C78 15 88 24 88 37 C88 54 74 70 50 88 Z`}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{className:`an-vessel`,d:`M42 18 C40 9 36 6 31 6`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M52 18 C53 8 58 5 63 6`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M59 20 C64 12 70 11 73 14`}),(0,S.jsx)(`path`,{className:`an-septum`,d:`M50 27 L50 84`}),(0,S.jsx)(`path`,{className:`an-septum`,d:`M50 50 C62 48 70 54 72 62`}),(0,S.jsx)(`path`,{className:`an-septum`,d:`M50 50 C38 48 30 54 28 62`})]})},kidney:{outline:(0,S.jsx)(`path`,{d:`M62 14 C78 14 86 30 86 50 C86 72 76 88 60 88 C50 88 46 80 44 70 C42 62 38 60 34 60 C24 60 18 70 18 50 C18 28 30 14 50 14 C55 14 58 14 62 14 Z`}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{className:`an-cavity`,d:`M40 50 C46 46 52 46 56 50 C60 54 60 60 56 64 C52 68 46 68 40 64`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M40 50 C32 50 26 54 22 58`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M48 66 C48 76 50 84 52 90`})]})},nephron:{outline:(0,S.jsx)(`path`,{d:`M22 18 C12 18 8 28 16 34 C8 40 12 50 22 48`}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`circle`,{className:`an-cavity`,cx:`20`,cy:`32`,r:`9`}),(0,S.jsx)(`circle`,{className:`an-node`,cx:`20`,cy:`32`,r:`5`}),(0,S.jsx)(`path`,{className:`an-tube`,d:`M28 30 C40 26 44 36 38 42 C32 48 44 52 50 46 C58 38 62 52 56 60 C50 68 60 72 66 64 C74 54 80 64 78 74 L78 92`}),(0,S.jsx)(`path`,{className:`an-tube an-tube-dn`,d:`M78 74 C72 78 66 76 64 70`})]})},brain:{outline:(0,S.jsx)(`path`,{d:`M30 22 C22 18 12 24 14 34 C8 38 8 48 14 52 C12 60 18 68 26 66 C30 74 42 76 48 70 C54 76 66 74 70 66 C80 68 86 58 82 50 C90 44 88 32 80 30 C82 20 70 14 62 20 C56 14 42 14 38 22 C36 21 33 21 30 22 Z`}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{className:`an-fold`,d:`M48 18 L48 70`}),(0,S.jsx)(`path`,{className:`an-fold`,d:`M26 34 C34 32 36 40 30 44 C36 46 34 54 28 54`}),(0,S.jsx)(`path`,{className:`an-fold`,d:`M68 34 C60 32 58 40 64 44 C58 46 60 54 66 54`}),(0,S.jsx)(`path`,{className:`an-fold`,d:`M40 30 C44 36 44 44 40 50`}),(0,S.jsx)(`path`,{className:`an-fold`,d:`M56 30 C52 36 52 44 56 50`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M44 70 C44 82 44 88 42 92`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M52 70 C52 82 52 88 54 92`})]})},lung:{outline:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{d:`M44 22 C44 40 42 58 36 74 C30 88 18 86 14 74 C10 60 14 40 26 26 C32 19 40 18 44 22 Z`}),(0,S.jsx)(`path`,{d:`M56 22 C56 40 58 58 64 74 C70 88 82 86 86 74 C90 60 86 40 74 26 C68 19 60 18 56 22 Z`})]}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{className:`an-tube`,d:`M50 8 L50 30`}),(0,S.jsx)(`path`,{className:`an-tube`,d:`M50 30 C44 32 40 38 36 46`}),(0,S.jsx)(`path`,{className:`an-tube`,d:`M50 30 C56 32 60 38 64 46`}),(0,S.jsx)(`path`,{className:`an-tube an-tube-dn`,d:`M36 46 C32 52 30 58 28 64`}),(0,S.jsx)(`path`,{className:`an-tube an-tube-dn`,d:`M64 46 C68 52 70 58 72 64`})]})},eye:{outline:(0,S.jsx)(`path`,{d:`M8 50 C24 28 76 28 92 50 C76 72 24 72 8 50 Z`}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`circle`,{className:`an-cavity`,cx:`50`,cy:`50`,r:`20`}),(0,S.jsx)(`circle`,{className:`an-node`,cx:`50`,cy:`50`,r:`9`}),(0,S.jsx)(`circle`,{className:`an-glint`,cx:`44`,cy:`44`,r:`3`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M14 50 C20 46 26 45 30 45`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M86 50 C80 54 74 55 70 55`})]})},ear:{outline:(0,S.jsx)(`path`,{d:`M62 12 C40 8 24 24 24 46 C24 64 32 78 30 88 C28 94 34 96 40 92 C46 88 44 78 50 74 C58 68 60 58 54 54 C48 50 52 42 58 44 C66 46 72 38 70 28 C69 20 67 14 62 12 Z`}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{className:`an-fold`,d:`M58 20 C46 18 36 28 36 42 C36 52 40 58 40 64`}),(0,S.jsx)(`path`,{className:`an-cavity`,d:`M50 40 C44 40 42 48 48 50 C54 52 56 44 50 40 Z`}),(0,S.jsx)(`path`,{className:`an-tube`,d:`M48 50 C40 54 36 60 34 66`})]})},neuron:{outline:(0,S.jsx)(`circle`,{cx:`42`,cy:`50`,r:`14`}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`circle`,{className:`an-node`,cx:`42`,cy:`50`,r:`5`}),(0,S.jsx)(`path`,{className:`an-tube`,d:`M30 42 C20 34 14 32 8 30`}),(0,S.jsx)(`path`,{className:`an-tube`,d:`M30 50 C20 50 14 52 8 54`}),(0,S.jsx)(`path`,{className:`an-tube`,d:`M32 60 C24 66 18 70 12 74`}),(0,S.jsx)(`path`,{className:`an-axon`,d:`M56 50 L82 50`}),(0,S.jsx)(`path`,{className:`an-tube an-tube-dn`,d:`M82 50 C88 44 92 44 96 42`}),(0,S.jsx)(`path`,{className:`an-tube an-tube-dn`,d:`M82 50 C88 56 92 56 96 58`}),(0,S.jsx)(`path`,{className:`an-tube an-tube-dn`,d:`M82 50 L96 50`})]})},skeleton:{outline:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{d:`M50 8 C58 8 62 16 62 22 C62 28 58 32 50 32 C42 32 38 28 38 22 C38 16 42 8 50 8 Z`}),(0,S.jsx)(`path`,{d:`M50 32 L50 66`}),(0,S.jsx)(`path`,{d:`M46 70 C46 66 54 66 54 70 L58 88 C58 92 42 92 42 88 Z`})]}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{className:`an-bone`,d:`M50 38 C40 40 30 44 26 50`}),(0,S.jsx)(`path`,{className:`an-bone`,d:`M50 38 C60 40 70 44 74 50`}),(0,S.jsx)(`path`,{className:`an-bone`,d:`M50 46 C40 48 32 52 28 58`}),(0,S.jsx)(`path`,{className:`an-bone`,d:`M50 46 C60 48 68 52 72 58`}),(0,S.jsx)(`path`,{className:`an-bone`,d:`M50 54 C42 56 36 60 32 66`}),(0,S.jsx)(`path`,{className:`an-bone`,d:`M50 54 C58 56 64 60 68 66`}),(0,S.jsx)(`path`,{className:`an-bone`,d:`M44 36 L56 36 M44 44 L56 44 M44 52 L56 52`})]})},stomach:{outline:(0,S.jsx)(`path`,{d:`M30 14 C30 22 32 28 36 34 C42 42 44 54 44 64 C44 78 54 88 66 88 C80 88 86 76 84 64 C82 52 74 46 66 44 C58 42 54 36 54 28 C54 22 52 18 48 16 C42 13 34 12 30 14 Z`}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{className:`an-tube`,d:`M40 6 C36 6 32 9 30 14`}),(0,S.jsx)(`path`,{className:`an-tube an-tube-dn`,d:`M82 70 C90 70 94 78 94 86`}),(0,S.jsx)(`path`,{className:`an-fold`,d:`M48 40 C56 44 60 52 60 62`}),(0,S.jsx)(`path`,{className:`an-fold`,d:`M44 50 C52 54 56 62 56 70`}),(0,S.jsx)(`path`,{className:`an-fold`,d:`M52 62 C60 66 64 72 64 78`})]})},liver:{outline:(0,S.jsx)(`path`,{d:`M10 38 C10 30 18 26 30 26 C50 26 70 28 86 34 C92 36 92 44 88 50 C80 62 62 70 42 70 C24 70 12 60 10 48 C10 45 10 41 10 38 Z`}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{className:`an-septum`,d:`M52 28 L52 66`}),(0,S.jsx)(`path`,{className:`an-cavity`,d:`M40 62 C40 70 36 76 32 76 C28 76 26 70 30 64`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M52 50 C44 52 38 56 34 60`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M52 50 C62 52 70 54 76 56`})]})}};function ie({title:e,icon:t=`spark`,iconColor:n=`var(--danger)`,organ:r,pins:i,view:a,caption:c,footer:l,delay:u}){let d=o[t]||o.spark,[f,p]=(0,x.useState)(0),m=re[r]??re.heart;return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`an-wrap`,children:[(0,S.jsxs)(`div`,{className:`an-figbox`,children:[a&&(0,S.jsx)(`span`,{className:`an-view`,children:a}),(0,S.jsxs)(`svg`,{viewBox:`0 0 100 100`,className:`an-svg`,role:`img`,"aria-label":e||r,children:[(0,S.jsx)(`g`,{className:`an-organ`,children:m.outline}),m.detail&&(0,S.jsx)(`g`,{className:`an-organ-detail`,children:m.detail}),i.map((e,t)=>{let n=t===f,r=ne(e.x),i=ne(e.y);return(0,S.jsxs)(`g`,{className:`an-pin`+(n?` on`:``),onMouseEnter:()=>p(t),onClick:()=>p(t),children:[n&&(0,S.jsx)(`circle`,{cx:r,cy:i,r:5.4,className:`an-pin-halo`}),(0,S.jsx)(`circle`,{cx:r,cy:i,r:3.4,className:`an-pin-dot`,...t===0?{"data-mark":`point`}:{}}),(0,S.jsx)(`text`,{x:r,y:i,className:`an-pin-num`,children:t+1})]},t)})]})]}),(0,S.jsx)(`div`,{className:`an-list`,children:i.map((e,t)=>(0,S.jsxs)(`button`,{className:`an-row`+(t===f?` on`:``),onMouseEnter:()=>p(t),onClick:()=>p(t),children:[(0,S.jsx)(`span`,{className:`an-rownum`,children:t+1}),(0,S.jsxs)(`span`,{className:`an-rowbody`,children:[(0,S.jsx)(`span`,{className:`an-rowtitle`,children:e.label}),e.note&&(0,S.jsx)(`span`,{className:`an-rownote`,children:e.note})]})]},t))})]}),c&&(0,S.jsx)(`div`,{className:`an-caption`,children:c}),l&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(l)})]})}var ae=[{axis:`aperture`,label:`Aperture`,x:50,y:16,trade:`depth of field`,accent:`var(--presence)`},{axis:`shutter`,label:`Shutter`,x:16,y:78,trade:`motion`,accent:`var(--insight)`},{axis:`iso`,label:`ISO`,x:84,y:78,trade:`noise`,accent:`var(--warning)`}];function oe({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,aperture:r,shutter:i,iso:a,ev:c,effects:l,caption:u,footer:d,delay:f}){let p=o[t]||o.image,m={aperture:r,shutter:i,iso:`ISO ${a}`},h=e=>l?.find(t=>t.axis===e)?.note;return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`ex-figwrap`,children:(0,S.jsxs)(`svg`,{viewBox:`0 0 100 96`,className:`ex-svg`,role:`img`,"aria-label":e,children:[(0,S.jsx)(`polygon`,{points:ae.map(e=>`${e.x},${e.y}`).join(` `),className:`ex-tri`}),ae.map((e,t)=>{let n=ae[(t+1)%ae.length],r=(e.x+n.x)/2,i=(e.y+n.y)/2;return(0,S.jsx)(`line`,{x1:e.x,y1:e.y,x2:r,y2:i,className:`ex-edge`,markerEnd:`url(#ex-arrow)`},`e${t}`)}),(0,S.jsx)(`defs`,{children:(0,S.jsx)(`marker`,{id:`ex-arrow`,viewBox:`0 0 10 10`,refX:`8`,refY:`5`,markerWidth:`5`,markerHeight:`5`,orient:`auto`,children:(0,S.jsx)(`path`,{d:`M0,0 L10,5 L0,10 z`,fill:`context-stroke`})})}),(0,S.jsx)(`circle`,{cx:50,cy:57,r:13,className:`ex-ev`}),(0,S.jsx)(`text`,{x:50,y:54,className:`ex-ev-k`,children:`EXPOSURE`}),(0,S.jsx)(`text`,{x:50,y:62,className:`ex-ev-v`,children:c||`balanced`}),ae.map((e,t)=>(0,S.jsxs)(`g`,{style:{"--cc":e.accent},children:[(0,S.jsx)(`circle`,{cx:e.x,cy:e.y,r:4,className:`ex-node`,...t===0?{"data-mark":`point`}:{}}),(0,S.jsx)(`text`,{x:e.x,y:e.y-7,className:`ex-node-k`,children:e.label.toUpperCase()}),(0,S.jsx)(`text`,{x:e.x,y:e.y+(e.y<40?-14:11),className:`ex-node-v`,children:m[e.axis]})]},e.axis))]})}),(0,S.jsx)(`div`,{className:`ex-cues`,children:ae.map(e=>{let t=h(e.axis);return(0,S.jsxs)(`div`,{className:`ex-cue`,style:{"--cc":e.accent},children:[(0,S.jsx)(`span`,{className:`ex-cue-dot`}),(0,S.jsxs)(`span`,{className:`ex-cue-body`,children:[(0,S.jsx)(`span`,{className:`ex-cue-k`,children:e.trade}),(0,S.jsx)(`span`,{className:`ex-cue-v`,children:t||m[e.axis]})]})]},e.axis)})}),u&&(0,S.jsx)(`div`,{className:`ex-caption`,children:u}),d&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}var se=50,ce=50,le=44,R=30,ue={complementary:[0,180],analogous:[0,30,-30],triad:[0,120,240],split:[0,150,210],tetrad:[0,90,180,270]},de=e=>(e%360+360)%360;function fe(e,t){let n=(de(e)-90)*(Math.PI/180);return[se+t*Math.cos(n),ce+t*Math.sin(n)]}function pe(e,t){let[n,r]=fe(e,le),[i,a]=fe(t,le),[o,s]=fe(t,R),[c,l]=fe(e,R),u=+(t-e>180);return`M${n} ${r} A${le} ${le} 0 ${u} 1 ${i} ${a} L${o} ${s} A${R} ${R} 0 ${u} 0 ${c} ${l} Z`}function me(e){let t=de(e)/360,n=.6479999999999999,r=n*(1-Math.abs(t*6%2-1)),i=Math.floor(t*6)%6,[a,o,s]=[[n,r,0],[r,n,0],[0,n,r],[0,r,n],[r,0,n],[n,0,r]][i],c=e=>Math.round((e+.2260000000000001)*255).toString(16).padStart(2,`0`);return`#${c(a)}${c(o)}${c(s)}`}function he({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,baseHue:r,harmony:i=`complementary`,swatches:a,caption:c,footer:l,delay:u}){let d=o[t]||o.spark,f=ue[i]??ue.complementary,p=a&&a.length>0?a:f.map((e,t)=>({hue:de(r+e),hex:me(r+e),role:t===0?`base`:`accent`})),m=p.map(e=>de(e.hue));return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`cw-wrap`,children:[(0,S.jsx)(`div`,{className:`cw-figbox`,children:(0,S.jsxs)(`svg`,{viewBox:`0 0 100 100`,className:`cw-svg`,role:`img`,"aria-label":e,children:[Array.from({length:60},(e,t)=>(0,S.jsx)(`path`,{d:pe(t*6,(t+1)*6),fill:me(t*6)},t)),(0,S.jsx)(`circle`,{cx:se,cy:ce,r:R,className:`cw-hub`}),m.map((e,t)=>{let[n,r]=fe(e,R),[i,a]=fe(e,48),o=p[t]?.hex??me(e),s=t===0;return(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`line`,{x1:se,y1:ce,x2:n,y2:r,className:`cw-spoke`}),(0,S.jsx)(`circle`,{cx:i,cy:a,r:s?4:3,className:`cw-marker`+(s?` base`:``),fill:o,...s?{"data-mark":`point`}:{}})]},`m${t}`)}),(0,S.jsx)(`circle`,{cx:se,cy:ce,r:2.4,className:`cw-center`})]})}),(0,S.jsxs)(`div`,{className:`cw-list`,children:[(0,S.jsx)(`div`,{className:`cw-harmony`,children:i}),p.map((e,t)=>(0,S.jsxs)(`div`,{className:`cw-chip`,children:[(0,S.jsx)(`span`,{className:`cw-chip-sw`,style:{background:e.hex}}),(0,S.jsxs)(`span`,{className:`cw-chip-body`,children:[(0,S.jsx)(`span`,{className:`cw-chip-hex tab-num`,children:e.hex}),e.role&&(0,S.jsx)(`span`,{className:`cw-chip-role`,children:e.role})]})]},t))]})]}),c&&(0,S.jsx)(`div`,{className:`cw-caption`,children:c}),l&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(l)})]})}var z=160,B=100,ge=e=>e/100*z,_e=e=>e/100*B,ve=(e,t,n)=>Math.max(t,Math.min(n,e)),ye=2.6;function be(e,t){let n=Math.max(3,Math.floor((t-5)/ye));return e.length>n?e.slice(0,n-1).trimEnd()+`…`:e}function xe(e){switch(e){case`leadinglines`:{let e=2/3*z,t=1/3*B;return(0,S.jsxs)(`g`,{className:`art-guide`,children:[(0,S.jsx)(`line`,{x1:0,y1:B,x2:e,y2:t}),(0,S.jsx)(`line`,{x1:z,y1:B,x2:e,y2:t}),(0,S.jsx)(`line`,{x1:0,y1:0,x2:e,y2:t}),(0,S.jsx)(`circle`,{cx:e,cy:t,r:3.2,className:`art-guide-node`})]})}case`goldenratio`:{let e=1.618,t=z/e,n=B/e,r=61.11248454882572,i=t-61.11248454882572/e;return(0,S.jsxs)(`g`,{className:`art-guide`,children:[(0,S.jsx)(`line`,{x1:t,y1:0,x2:t,y2:B}),(0,S.jsx)(`line`,{x1:0,y1:n,x2:z,y2:n}),(0,S.jsx)(`path`,{d:`M${z} ${n} A${r} ${r} 0 0 1 ${t} ${B} A${t} ${t} 0 0 1 0 ${n} A${i} ${i} 0 0 1 37.77038600051033 ${B-i*e}`,className:`art-guide-arc`}),(0,S.jsx)(`circle`,{cx:t,cy:n,r:3.2,className:`art-guide-node`})]})}case`symmetry`:{let e=z/2;return(0,S.jsxs)(`g`,{className:`art-guide`,children:[(0,S.jsx)(`line`,{x1:e,y1:0,x2:e,y2:B,className:`art-guide-axis`}),[.3,.5,.7].map((e,t)=>(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`line`,{x1:58,y1:B*e,x2:68,y2:B*e}),(0,S.jsx)(`line`,{x1:92,y1:B*e,x2:102,y2:B*e})]},t))]})}default:{let e=[z/3,320/3],t=[B/3,200/3];return(0,S.jsxs)(`g`,{className:`art-guide`,children:[e.map((e,t)=>(0,S.jsx)(`line`,{x1:e,y1:0,x2:e,y2:B},`c${t}`)),t.map((e,t)=>(0,S.jsx)(`line`,{x1:0,y1:e,x2:z,y2:e},`r${t}`)),e.flatMap(e=>t.map(t=>[e,t])).map(([e,t],n)=>(0,S.jsx)(`circle`,{cx:e,cy:t,r:2.4,className:`art-guide-node`},`p${n}`))]})}}}function Se({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,overlay:r=`thirds`,regions:i,palette:a,notes:c,caption:l,footer:u,delay:d}){let f=o[t]||o.image;return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`art-figwrap`,children:(0,S.jsxs)(`svg`,{viewBox:`0 0 ${z} ${B}`,className:`art-svg`,role:`img`,"aria-label":e,children:[(0,S.jsx)(`defs`,{children:(0,S.jsxs)(`linearGradient`,{id:`art-field`,x1:`0`,y1:`0`,x2:`1`,y2:`1`,children:[(0,S.jsx)(`stop`,{offset:`0%`,stopColor:`color-mix(in oklab, var(--presence) 22%, var(--surface-elevated))`}),(0,S.jsx)(`stop`,{offset:`55%`,stopColor:`var(--surface-elevated)`}),(0,S.jsx)(`stop`,{offset:`100%`,stopColor:`color-mix(in oklab, var(--insight) 20%, var(--surface-elevated))`})]})}),(0,S.jsx)(`rect`,{x:0,y:0,width:z,height:B,fill:`url(#art-field)`}),xe(r),(i??[]).map((e,t)=>{let n=ge(ve(e.x,0,100)),r=_e(ve(e.y,0,100)),i=Math.min(ge(e.w),z-n),a=Math.min(_e(e.h),B-r);return(0,S.jsxs)(`g`,{className:`art-region`,children:[(0,S.jsx)(`rect`,{x:n,y:r,width:i,height:a,rx:2,className:`art-region-box`,...t===0?{"data-mark":`box`}:{}}),(0,S.jsxs)(`text`,{x:n+2.5,y:r+6.5,className:`art-region-lbl`,children:[be(e.label,i)!==e.label&&(0,S.jsx)(`title`,{children:e.label}),be(e.label,i)]})]},t)})]})}),a&&a.length>0&&(0,S.jsx)(`div`,{className:`art-palette`,children:a.map((e,t)=>(0,S.jsxs)(`div`,{className:`art-pal-chip`,title:e.hex,children:[(0,S.jsx)(`span`,{className:`art-pal-sw`,style:{background:e.hex}}),(0,S.jsxs)(`span`,{className:`art-pal-meta`,children:[(0,S.jsx)(`span`,{className:`art-pal-hex tab-num`,children:e.hex}),e.role&&(0,S.jsx)(`span`,{className:`art-pal-role`,children:e.role})]})]},t))}),c&&c.length>0&&(0,S.jsx)(`div`,{className:`art-notes`,children:c.map((e,t)=>(0,S.jsxs)(`div`,{className:`art-note`,children:[(0,S.jsx)(`span`,{className:`art-note-k`,children:e.label}),(0,S.jsx)(`span`,{className:`art-note-v`,children:e.text})]},t))}),l&&(0,S.jsx)(`div`,{className:`art-caption`,children:l}),u&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}var Ce=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--presence-soft)`,`var(--insight-soft)`];function we(e){return(e.clips??[]).reduce((e,t)=>Math.max(e,t.start+Math.max(0,t.len)),0)}function Te({title:e,icon:t=`sliders`,iconColor:n=`var(--presence)`,tracks:r,bars:i,caption:a,footer:c,delay:l}){let u=o[t]||o.sliders,d=Math.max(4,i??(r.reduce((e,t)=>Math.max(e,we(t)),0)||4)),f=d<=16?1:Math.ceil(d/12),p=[];for(let e=0;e<=d;e+=f)p.push(e);return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`mx-board`,children:[(0,S.jsxs)(`div`,{className:`mx-ruler`,children:[(0,S.jsx)(`span`,{className:`mx-ruler-head`}),(0,S.jsx)(`div`,{className:`mx-ruler-track`,children:p.map(e=>(0,S.jsx)(`span`,{className:`mx-ruler-tick`,style:{left:e/d*100+`%`},children:e+1},e))})]}),r.map((e,t)=>{let n=e.color||Ce[t%Ce.length],r=Math.max(0,Math.min(100,e.volume??80)),i=Math.max(-100,Math.min(100,e.pan??0)),a=(i+100)/2,o=i===0?`C`:(i<0?`L`:`R`)+Math.round(Math.abs(i));return(0,S.jsxs)(`div`,{className:`mx-lane`+(e.mute?` muted`:``)+(e.solo?` soloed`:``),style:{"--cc":n},children:[(0,S.jsxs)(`div`,{className:`mx-head`,children:[(0,S.jsxs)(`div`,{className:`mx-head-top`,children:[(0,S.jsx)(`span`,{className:`mx-name`,children:e.name}),(0,S.jsxs)(`span`,{className:`mx-flags`,children:[(0,S.jsx)(`span`,{className:`mx-flag m`+(e.mute?` on`:``),children:`M`}),(0,S.jsx)(`span`,{className:`mx-flag s`+(e.solo?` on`:``),children:`S`})]})]}),(0,S.jsxs)(`div`,{className:`mx-controls`,children:[(0,S.jsx)(`span`,{className:`mx-vol`,title:`Volume ${r}`,children:(0,S.jsx)(`span`,{className:`mx-vol-fill`,style:{width:r+`%`}})}),(0,S.jsxs)(`span`,{className:`mx-pan`,title:`Pan ${o}`,children:[(0,S.jsx)(`span`,{className:`mx-pan-mid`}),(0,S.jsx)(`span`,{className:`mx-pan-thumb`,style:{left:a+`%`}})]}),(0,S.jsx)(`span`,{className:`mx-pan-lbl tab-num`,children:o})]})]}),(0,S.jsxs)(`div`,{className:`mx-timeline`,children:[p.map(e=>(0,S.jsx)(`span`,{className:`mx-grid`,style:{left:e/d*100+`%`},"aria-hidden":!0},e)),(e.clips??[]).map((e,n)=>{let r=Math.max(0,e.start)/d*100,i=Math.max(0,Math.min(e.len,d-e.start))/d*100;return(0,S.jsx)(`span`,{className:`mx-clip`,style:{left:r+`%`,width:i+`%`},title:e.label,...t===0&&n===0?{"data-mark":`box`}:{},children:e.label&&(0,S.jsx)(`span`,{className:`mx-clip-lbl`,children:e.label})},n)})]})]},t)})]}),a&&(0,S.jsx)(`div`,{className:`mx-caption`,children:a}),c&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}function Ee({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,before:r,after:i,position:a=50,footer:s,delay:c}){let l=o[t]||o.image,[u,f]=(0,x.useState)(Math.max(2,Math.min(98,a))),[p,m]=(0,x.useState)(!1),h=(0,x.useRef)(null),g=d(r.src),_=d(i.src),v=e=>{let t=h.current;if(!t)return;let n=t.getBoundingClientRect(),r=(e-n.left)/n.width*100;f(Math.max(2,Math.min(98,r)))},y=e=>{m(!0),e.target.setPointerCapture?.(e.pointerId),v(e.clientX)},C=e=>{p&&v(e.clientX)},w=()=>m(!1);return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`me-ba`+(p?` dragging`:``),ref:h,onPointerMove:C,onPointerUp:w,onPointerLeave:w,children:[(0,S.jsxs)(`div`,{className:`me-ba-plate`,style:{background:`linear-gradient(135deg, ${b(i.from,`var(--presence-deep)`)}, ${b(i.to,`var(--presence-soft)`)})`},children:[_&&(0,S.jsx)(`img`,{className:`me-img-fill`,src:_,alt:``,decoding:`async`,onError:e=>{e.currentTarget.style.display=`none`}}),(0,S.jsx)(`span`,{className:`me-ba-tag right`,children:i.label})]}),(0,S.jsxs)(`div`,{className:`me-ba-plate me-ba-before`,style:{background:`linear-gradient(135deg, ${b(r.from,`var(--presence-deep)`)}, ${b(r.to,`var(--presence-soft)`)})`,clipPath:`inset(0 ${100-u}% 0 0)`},children:[g&&(0,S.jsx)(`img`,{className:`me-img-fill`,src:g,alt:``,decoding:`async`,onError:e=>{e.currentTarget.style.display=`none`}}),(0,S.jsx)(`span`,{className:`me-ba-tag left`,children:r.label})]}),(0,S.jsx)(`div`,{className:`me-ba-divider`,style:{left:u+`%`},"data-interactive":!0,onPointerDown:y,children:(0,S.jsxs)(`span`,{className:`me-ba-handle`,children:[(0,S.jsx)(o.chevR,{className:`me-ba-arrow flip`}),(0,S.jsx)(o.chevR,{className:`me-ba-arrow`})]})})]}),(0,S.jsxs)(`div`,{className:`me-ba-caps`,children:[(0,S.jsx)(`span`,{className:`faint`,children:r.caption||`Before`}),(0,S.jsxs)(`span`,{className:`tab-num me-ba-pct`,children:[Math.round(u),`%`]}),(0,S.jsx)(`span`,{className:`faint`,children:i.caption||`After`})]}),(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:s||(0,S.jsx)(`span`,{className:`faint`,children:`Drag the divider to wipe between the two versions`})})]})}function De({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,slides:r,start:i=0,footer:a,delay:s}){let c=o[t]||o.image,l=r.length,[u,f]=(0,x.useState)(Math.max(0,Math.min(l-1,i))),[p,m]=(0,x.useState)(0),h=(0,x.useRef)(null),g=e=>f(l>0?(e+l)%l:0),_=e=>{h.current=e.clientX,e.target.setPointerCapture?.(e.pointerId)},v=e=>{h.current!=null&&m(e.clientX-h.current)},y=()=>{Math.abs(p)>48&&g(u+(p<0?1:-1)),h.current=null,m(0)};return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`me-carousel`,children:[(0,S.jsx)(`div`,{className:`me-car-track`,style:{transform:`translateX(calc(${-u*100}% + ${p}px))`},"data-interactive":!0,onPointerDown:_,onPointerMove:v,onPointerUp:y,onPointerLeave:y,children:r.map((e,t)=>{let n=d(e.src);return(0,S.jsxs)(`div`,{className:`me-car-slide`,children:[(0,S.jsxs)(`div`,{className:`me-car-img`,style:{background:`linear-gradient(135deg, ${b(e.from,`var(--presence-deep)`)}, ${b(e.to,`var(--presence-soft)`)})`},...t===0?{"data-mark":`circle`}:{},children:[n&&(0,S.jsx)(`img`,{className:`me-img-fill`,src:n,alt:``,loading:`lazy`,decoding:`async`,onError:e=>{e.currentTarget.style.display=`none`}}),e.tag&&(0,S.jsx)(`span`,{className:`me-car-tag`,children:e.tag}),(0,S.jsx)(`span`,{className:`me-car-label`,children:e.label})]}),e.caption&&(0,S.jsx)(`div`,{className:`me-car-cap`,children:e.caption})]},t)})}),(0,S.jsx)(`button`,{className:`me-car-arrow left`,onClick:()=>g(u-1),"aria-label":`Previous`,children:(0,S.jsx)(o.chevR,{className:`flip`})}),(0,S.jsx)(`button`,{className:`me-car-arrow right`,onClick:()=>g(u+1),"aria-label":`Next`,children:(0,S.jsx)(o.chevR,{})})]}),(0,S.jsxs)(`div`,{className:`me-car-dots`,children:[r.map((e,t)=>(0,S.jsx)(`button`,{className:`me-dot`+(t===u?` on`:``),onClick:()=>f(t),"aria-label":`Slide ${t+1}`},t)),(0,S.jsxs)(`span`,{className:`tab-num me-car-count`,children:[u+1,`/`,l]})]}),a&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:a})]})}var Oe=e=>Math.max(2,Math.min(98,e));function ke({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,image:r,callouts:i,footer:a,delay:s}){let c=o[t]||o.image,[l,u]=(0,x.useState)(0),f=d(r.src);return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`me-ico-wrap`,children:[(0,S.jsxs)(`div`,{className:`me-ico-img`,style:{background:`linear-gradient(135deg, ${b(r.from,`var(--presence-deep)`)}, ${b(r.to,`var(--presence-soft)`)})`},children:[f&&(0,S.jsx)(`img`,{className:`me-img-fill`,src:f,alt:``,loading:`lazy`,decoding:`async`,onError:e=>{e.currentTarget.style.display=`none`}}),r.label&&(0,S.jsx)(`span`,{className:`me-ico-imglabel`,children:r.label}),i.map((e,t)=>{let n=e.color||`var(--presence)`;return(0,S.jsx)(`button`,{className:`me-ico-pin`+(t===l?` on`:``),style:{left:Oe(e.x)+`%`,top:Oe(e.y)+`%`,"--cc":n},onMouseEnter:()=>u(t),onClick:()=>u(t),"aria-label":e.label,...t===0?{"data-mark":`circle`}:{},children:(0,S.jsx)(`span`,{className:`me-ico-num`,children:t+1})},t)})]}),(0,S.jsx)(`div`,{className:`me-ico-list`,children:i.map((e,t)=>{let n=e.color||`var(--presence)`;return(0,S.jsxs)(`button`,{className:`me-ico-row`+(t===l?` on`:``),style:{"--cc":n},onMouseEnter:()=>u(t),onClick:()=>u(t),children:[(0,S.jsx)(`span`,{className:`me-ico-rownum`,children:t+1}),(0,S.jsxs)(`span`,{className:`me-ico-rowbody`,children:[(0,S.jsx)(`span`,{className:`me-ico-rowtitle`,children:e.label}),e.detail&&(0,S.jsx)(`span`,{className:`me-ico-rowdetail`,children:e.detail})]})]},t)})})]}),a&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:a})]})}function Ae(e,t){let n=(t||`0:00`).split(`:`).map(e=>parseInt(e,10)||0),r=n.length===2?n[0]*60+n[1]:n[0],i=Math.round(r*e/100);return`${Math.floor(i/60)}:${String(i%60).padStart(2,`0`)}`}function je({title:e,icon:t=`speaker`,iconColor:n=`var(--presence)`,bars:r,durationLabel:i=`3:24`,color:a=`var(--presence)`,position:s=32,markers:c=[],footer:l,delay:u}){let d=o[t]||o.speaker,[f,p]=(0,x.useState)(Math.max(0,Math.min(100,s))),[m,h]=(0,x.useState)(!0),[g,_]=(0,x.useState)(!1),v=(0,x.useRef)(null),y=e=>{let t=v.current;if(!t)return;let n=t.getBoundingClientRect();p(Math.max(0,Math.min(100,(e-n.left)/n.width*100)))};return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`me-wave-row`,children:[(0,S.jsx)(`button`,{className:`me-wave-play`+(m?` on`:``),style:{"--cc":a},onClick:()=>h(e=>!e),"aria-label":m?`Pause`:`Play`,children:m?(0,S.jsxs)(`span`,{className:`me-wave-pause`,children:[(0,S.jsx)(`i`,{}),(0,S.jsx)(`i`,{})]}):(0,S.jsx)(o.play,{})}),(0,S.jsxs)(`div`,{className:`me-wave`+(g?` dragging`:``),ref:v,"data-interactive":!0,onPointerDown:e=>{_(!0),e.target.setPointerCapture?.(e.pointerId),y(e.clientX)},onPointerMove:e=>g&&y(e.clientX),onPointerUp:()=>_(!1),onPointerLeave:()=>_(!1),children:[r.map((e,t)=>{let n=(r.length>1?t/(r.length-1)*100:0)<=f;return(0,S.jsx)(`span`,{className:`me-wave-bar`,style:{height:Math.max(8,e*100)+`%`,background:n?a:`var(--track)`}},t)}),c.map((e,t)=>(0,S.jsx)(`span`,{className:`me-wave-marker`,style:{left:e.at+`%`},title:e.label,...t===0?{"data-mark":`point`}:{}},t)),(0,S.jsx)(`span`,{className:`me-wave-head`,style:{left:f+`%`,"--cc":a}})]}),(0,S.jsxs)(`span`,{className:`tab-num me-wave-time`,children:[Ae(f,i),` `,(0,S.jsxs)(`span`,{className:`faint`,children:[`/ `,i]})]})]}),(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:l||(0,S.jsx)(`span`,{className:`faint`,children:`Click or drag the waveform to scrub`})})]})}function Me({title:e,icon:t=`play`,iconColor:n=`var(--presence)`,thumb:r,video:i,poster:a,durationLabel:s=`12:40`,chapters:c,active:l=0,footer:f,delay:p}){let m=o[t]||o.play,h=d(a),g=u(i),[_,v]=(0,x.useState)(Math.max(0,Math.min(c.length-1,l))),[y,C]=(0,x.useState)(!1),w=(0,x.useRef)(null),T=e=>Math.max(0,Math.min(100,c[e]?.at??0)),E=T(_),D=e=>{v(e);let t=w.current;t&&t.duration&&(t.currentTime=T(e)/100*t.duration)};return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`me-vid`,children:[g?(0,S.jsx)(`video`,{ref:w,className:`me-vid-real`,src:g,poster:h,controls:!0,preload:`metadata`,playsInline:!0,children:(0,S.jsx)(`track`,{kind:`captions`,srcLang:`en`,label:`English`,src:`data:text/vtt,WEBVTT`})}):(0,S.jsxs)(`div`,{className:`me-vid-thumb`,style:{background:`linear-gradient(135deg, ${b(r.from,`var(--presence-deep)`)}, ${b(r.to,`var(--presence-soft)`)})`},children:[r.label&&(0,S.jsx)(`span`,{className:`me-vid-overlaylabel`,children:r.label}),(0,S.jsx)(`span`,{className:`me-vid-dur tab-num`,children:s}),(0,S.jsx)(`button`,{className:`me-vid-playbtn`+(y?` playing`:``),onClick:()=>C(e=>!e),"aria-label":y?`Pause`:`Play`,children:y?(0,S.jsxs)(`span`,{className:`me-vid-pause`,children:[(0,S.jsx)(`i`,{}),(0,S.jsx)(`i`,{})]}):(0,S.jsx)(o.play,{})}),(0,S.jsxs)(`div`,{className:`me-vid-scrub`,children:[(0,S.jsx)(`span`,{className:`me-vid-scrub-fill`,style:{width:E+`%`}}),c.map((e,t)=>(0,S.jsx)(`span`,{className:`me-vid-tick`+(t===_?` on`:``),style:{left:T(t)+`%`}},t))]})]}),c.length>0&&(0,S.jsx)(`div`,{className:`me-vid-chapters`,role:`listbox`,"aria-label":`Chapters`,tabIndex:0,onKeyDown:e=>{e.key===`ArrowDown`||e.key===`ArrowRight`?(e.preventDefault(),D(Math.min(c.length-1,_+1))):(e.key===`ArrowUp`||e.key===`ArrowLeft`)&&(e.preventDefault(),D(Math.max(0,_-1)))},children:c.map((e,t)=>(0,S.jsxs)(`button`,{className:`me-vid-chap`+(t===_?` on`:``),onClick:()=>D(t),role:`option`,"aria-selected":t===_,children:[(0,S.jsx)(`span`,{className:`me-vid-chaptime tab-num`,children:e.time}),(0,S.jsx)(`span`,{className:`me-vid-chaptitle`,...t===_?{"data-mark":`underline`}:{},children:e.title}),t===_&&(0,S.jsx)(o.play,{className:`me-vid-chapnow`})]},t))})]}),(f||c.length>0)&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:f||(0,S.jsxs)(`span`,{children:[`Now at`,` `,(0,S.jsx)(`strong`,{style:{color:`var(--text-primary)`},children:c[_]?.title})]})})]})}var Ne=`/assets/maplibre-gl-worker-DZ7nj4vd.js`;i();async function Pe(){let e=await a(()=>import(`./maplibre-gl-CrDadnl3.js`),[]).catch(()=>null);return e?.Map?(e.setWorkerUrl(Ne),e.getWorkerCount()!==1&&e.setWorkerCount(1),e):null}var Fe=`https://www.openstreetmap.org/copyright`;function Ie(){let e=(0,N.c)(3),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,S.jsx)(`a`,{href:`https://openfreemap.org/`,target:`_blank`,rel:`noopener noreferrer`,children:`OpenFreeMap`}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,S.jsx)(`a`,{href:`https://openmaptiles.org/`,target:`_blank`,rel:`noopener noreferrer`,children:`OpenMapTiles`}),e[1]=n):n=e[1];let r;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,S.jsxs)(`p`,{className:`geo-map-credit`,"aria-label":`Map attribution`,children:[`Map:`,` `,t,` `,`· ©`,` `,n,` `,`· Data © OpenStreetMap contributors (ODbL) ·`,` `,(0,S.jsx)(`a`,{href:Fe,target:`_blank`,rel:`noopener noreferrer`,children:Fe})]}),e[2]=r):r=e[2],r}var Le=e=>`https://tiles.openfreemap.org/styles/${e?`positron`:`dark`}`,Re=e=>{let t=e?.closest(`.figure-embed`);return t?t.getAttribute(`data-theme-mode`)!==`dark`:typeof document<`u`&&document.documentElement.getAttribute(`data-theme`)===`light`},ze=new Set([`residential`,`commercial`,`industrial`,`mixed`,`open-space`]),Be={residential:`var(--presence)`,commercial:`var(--warning)`,industrial:`var(--danger)`,mixed:`var(--presence-soft)`,"open-space":`var(--insight)`},Ve={residential:`Residential`,commercial:`Commercial`,industrial:`Industrial`,mixed:`Mixed use`,"open-space":`Open space`};function He(e){return Array.isArray(e)?e.map(e=>{let t=(Array.isArray(e?.coords)?e.coords:[]).filter(e=>Array.isArray(e)&&e.length===2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Math.abs(e[0])<=90&&Math.abs(e[1])<=180);if(t.length<3)return null;let n=ze.has(e?.category)?e.category:`mixed`;return{coords:t,category:n,label:typeof e?.label==`string`&&e.label.trim()?e.label.trim():Ve[n]}}).filter(e=>e!==null):[]}function Ue(e,t){let n=/^var\((--[^)]+)\)$/.exec(t)?.[1];return n?getComputedStyle(e).getPropertyValue(n).trim()||`transparent`:t}function We(e,t){let n=document.createElement(`div`);n.className=`geo-pop`;let r=document.createElement(`b`);if(r.textContent=e,n.append(r),t){let e=document.createElement(`div`);e.className=`geo-pop-d`,e.textContent=t,n.append(e)}return n}function Ge({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,markers:r,zoom:i,zones:a,footer:s,delay:c}){let l=o[t]||o.globe,u=(0,x.useRef)(null),[d,f]=(0,x.useState)(!1),[p,m]=(0,x.useState)(!1),h=(0,x.useMemo)(()=>(r||[]).filter(e=>Number.isFinite(e.lat)&&Number.isFinite(e.lng)&&Math.abs(e.lat)<=90&&Math.abs(e.lng)<=180),[r]),g=(0,x.useMemo)(()=>He(a),[a]),_=g.reduce((e,t)=>(e.includes(t.category)||e.push(t.category),e),[]);(0,x.useEffect)(()=>{if(!u.current||!h.length)return;let e=!1,t=null,n=[],r=null;f(!1);let a=0,o=()=>{window.clearTimeout(a),a=0,e||f(!0)};return a=window.setTimeout(o,8e3),(async()=>{let s=await Pe();if(e||!u.current)return;if(!s){window.clearTimeout(a),m(!0);return}t=new s.Map({container:u.current,style:Le(Re(u.current)),center:[h[0].lng,h[0].lat],zoom:i??13,attributionControl:{compact:!1},scrollZoom:!1,dragRotate:!1,pitchWithRotate:!1,fadeDuration:0,maxTileCacheSize:48,canvasContextAttributes:{preserveDrawingBuffer:!0,powerPreference:`low-power`}}),t.on(`styledata`,()=>{if(!t||!u.current||!t.isStyleLoaded()||t.getSource(`mavea-zones`))return;let e=g.map((e,t)=>({type:`Feature`,id:t,properties:{label:e.label,category:Ve[e.category],color:Ue(u.current,Be[e.category])},geometry:{type:`Polygon`,coordinates:[[...e.coords.map(([e,t])=>[t,e]),[e.coords[0][1],e.coords[0][0]]]]}}));t.addSource(`mavea-zones`,{type:`geojson`,data:{type:`FeatureCollection`,features:e}}),t.addLayer({id:`mavea-zones-fill`,type:`fill`,source:`mavea-zones`,paint:{"fill-color":[`get`,`color`],"fill-opacity":.22}}),t.addLayer({id:`mavea-zones-line`,type:`line`,source:`mavea-zones`,paint:{"line-color":[`get`,`color`],"line-width":1.5}})}),t.on(`idle`,o),n=h.map((e,n)=>{let r=document.createElement(`span`);r.className=`geo-pin`,r.style.setProperty(`--geo-c`,b(e.color)),r.textContent=String(n+1),r.setAttribute(`role`,`button`),r.setAttribute(`aria-label`,e.name);let i=We(e.name,e.detail),a=document.createElement(`a`);return a.className=`geo-pop-a`,a.href=`https://www.google.com/maps/search/?api=1&query=${e.lat},${e.lng}`,a.target=`_blank`,a.rel=`noopener noreferrer`,a.textContent=`Open in Google Maps ↗`,i.append(a),new s.Marker({element:r}).setLngLat([e.lng,e.lat]).setPopup(new s.Popup({offset:18}).setDOMContent(i)).addTo(t)});let c=new s.LngLatBounds;for(let e of h)c.extend([e.lng,e.lat]);for(let e of g)for(let[t,n]of e.coords)c.extend([n,t]);h.length+g.flatMap(e=>e.coords).length>1&&t.fitBounds(c,{padding:34,duration:0});let l=Le(Re(u.current));r=new MutationObserver(()=>{let e=Le(Re(u.current));!t||e===l||(l=e,f(!1),window.clearTimeout(a),a=window.setTimeout(o,8e3),t.setStyle(e))}),r.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-theme`]})})(),()=>{e=!0,window.clearTimeout(a),r?.disconnect();for(let e of n)e.remove();n=[],t?.remove()}},[h,g,i]);let v=h.length>0&&!p;return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),p?(0,S.jsx)(`div`,{className:`geo-map geo-map-empty faint`,children:`Map couldn’t load.`}):h.length?(0,S.jsx)(`div`,{ref:u,className:`geo-map`,"data-tiles":d?`ready`:`loading`,"aria-busy":!d}):(0,S.jsx)(`div`,{className:`geo-map geo-map-empty faint`,children:`No locations to map.`}),v&&(0,S.jsx)(Ie,{}),v&&_.length>0&&(0,S.jsx)(`div`,{className:`geo-zone-legend`,children:_.map(e=>(0,S.jsxs)(`span`,{className:`geo-zone-chip`,children:[(0,S.jsx)(`span`,{className:`geo-zone-swatch`,style:{background:Be[e]}}),Ve[e]]},e))}),(s||v)&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:s||(0,S.jsxs)(`span`,{className:`faint`,children:[`Real map · `,h.length,` location`,h.length===1?``:`s`,` · drag to explore`]})})]})}function Ke({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,items:r,footer:i,delay:a}){let s=o[t]||o.image,[c,l]=(0,x.useState)(null),u=r.length,f=e=>l(u>0?(e%u+u)%u:null),p=c==null?null:r[c],m=p?d(p.src):void 0;return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(s,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`me-lb-grid`,children:r.map((e,t)=>{let n=d(e.src);return(0,S.jsxs)(`button`,{className:`me-lb-thumb`,style:{background:`linear-gradient(135deg, ${b(e.from,`var(--presence-deep)`)}, ${b(e.to,`var(--presence-soft)`)})`},onClick:()=>l(t),"aria-label":e.label,children:[n&&(0,S.jsx)(`img`,{className:`me-img-fill`,src:n,alt:``,loading:`lazy`,decoding:`async`,onError:e=>{e.currentTarget.style.display=`none`}}),(0,S.jsx)(`span`,{className:`me-lb-thumblabel`,children:e.label}),(0,S.jsx)(`span`,{className:`me-lb-expand`,children:(0,S.jsx)(o.external,{})})]},t)})}),p&&c!=null&&(0,S.jsx)(`div`,{className:`me-lb-modal`,onClick:()=>l(null),role:`button`,tabIndex:0,"aria-label":`Close`,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),l(null))},children:(0,S.jsxs)(`div`,{className:`me-lb-stage`,role:`presentation`,onClick:e=>e.stopPropagation(),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&e.stopPropagation()},children:[(0,S.jsxs)(`div`,{className:`me-lb-hero`,style:{background:`linear-gradient(135deg, ${b(p.from,`var(--presence-deep)`)}, ${b(p.to,`var(--presence-soft)`)})`},children:[m&&(0,S.jsx)(`img`,{className:`me-img-fill`,src:m,alt:``,loading:`lazy`,decoding:`async`,onError:e=>{e.currentTarget.style.display=`none`}}),(0,S.jsx)(`span`,{className:`me-lb-herolabel`,children:p.label})]}),(0,S.jsxs)(`div`,{className:`me-lb-bar`,children:[(0,S.jsxs)(`div`,{className:`me-lb-meta`,children:[(0,S.jsx)(`span`,{className:`me-lb-metatitle`,children:p.label}),p.caption&&(0,S.jsx)(`span`,{className:`me-lb-metacap faint`,children:p.caption})]}),(0,S.jsxs)(`span`,{className:`tab-num faint`,children:[c+1,` / `,u]})]}),(0,S.jsx)(`button`,{className:`me-lb-nav left`,onClick:()=>f(c-1),"aria-label":`Previous`,children:(0,S.jsx)(o.chevR,{className:`flip`})}),(0,S.jsx)(`button`,{className:`me-lb-nav right`,onClick:()=>f(c+1),"aria-label":`Next`,children:(0,S.jsx)(o.chevR,{})}),(0,S.jsx)(`button`,{className:`me-lb-close`,onClick:()=>l(null),"aria-label":`Close`,children:(0,S.jsx)(o.x,{})})]})}),(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:i||(0,S.jsxs)(`span`,{className:`faint`,children:[`Click any thumbnail to open the lightbox · `,u,` images`]})})]})}function qe(e){let t={gridColumn:`span ${e.span===2?2:1}`,gridRow:`span ${e.rows===2?2:1}`};return e.kind===`image`?t.background=`linear-gradient(135deg, ${b(e.from)}, ${b(e.to,`var(--presence-soft)`)})`:e.kind===`color`&&(t.background=b(e.swatch)),t}function Je({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,tiles:r,footer:i,delay:a}){let s=o[t]||o.layers,[c,l]=(0,x.useState)(null);return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(s,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`me-mood`,children:r.map((e,t)=>{let n=d(e.src);return(0,S.jsxs)(`div`,{className:`me-mood-tile k-`+e.kind+(c===t?` lift`:``)+(c!=null&&c!==t?` fade`:``),style:qe(e),onMouseEnter:()=>l(t),onMouseLeave:()=>l(null),children:[e.kind===`image`&&n&&(0,S.jsx)(`img`,{className:`me-img-fill`,src:n,alt:``,loading:`lazy`,decoding:`async`,onError:e=>{e.currentTarget.style.display=`none`}}),e.kind===`text`&&(0,S.jsx)(`span`,{className:`me-mood-text`,children:e.text||e.label}),e.kind===`color`&&(0,S.jsx)(`span`,{className:`me-mood-hex tab-num`,children:e.hex||``}),e.kind===`image`&&e.label&&(0,S.jsx)(`span`,{className:`me-mood-imglabel`,children:e.label})]},t)})}),i&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:i})]})}function Ye({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,swatches:r,footer:i,delay:a}){let s=o[t]||o.image,[c,l]=(0,x.useState)(null),[u,d]=(0,x.useState)(null);y(()=>l(null),c===null?null:900),y(()=>d(null),u?1400:null);let f=(e,t)=>{l(e);let n=window;typeof n.toast==`function`?n.toast(`Copied ${t}`):(navigator.clipboard?.writeText(t).catch(()=>{}),d(`Copied ${t}`))};return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(s,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`me-pal`,children:r.map((e,t)=>(0,S.jsxs)(`button`,{className:`me-pal-swatch`+(e.light?` light`:``)+(c===t?` copied`:``),style:{background:e.hex},onClick:()=>f(t,e.hex),title:`Copy ${e.hex}`,children:[(0,S.jsxs)(`span`,{className:`me-pal-top`,children:[e.contrast&&(0,S.jsx)(`span`,{className:`me-pal-contrast`,children:e.contrast}),(0,S.jsx)(`span`,{className:`me-pal-copyicon`,children:c===t?(0,S.jsx)(o.check,{}):(0,S.jsx)(o.layers,{})})]}),(0,S.jsxs)(`span`,{className:`me-pal-meta`,children:[(0,S.jsx)(`span`,{className:`me-pal-name`,children:e.name}),(0,S.jsx)(`span`,{className:`me-pal-hex tab-num`,children:c===t?`Copied`:e.hex})]})]},t))}),u&&(0,S.jsxs)(`div`,{className:`me-pal-toast`,children:[(0,S.jsx)(o.check,{}),` `,u]}),(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:i||(0,S.jsx)(`span`,{className:`faint`,children:`Click a swatch to copy its hex`})})]})}var Xe=6e3,Ze=80,Qe=20,$e=new Set(`svg.g.defs.title.desc.path.rect.circle.ellipse.line.polyline.polygon.text.tspan.textpath.lineargradient.radialgradient.stop.clippath.mask.pattern.marker.symbol.use.filter.fegaussianblur.feoffset.feblend.fecolormatrix.fecomposite.feflood.femerge.femergenode.femorphology.fedropshadow.fecomponenttransfer.fefuncr.fefuncg.fefuncb.fefunca.fedisplacementmap.feturbulence.fetile.fespecularlighting.fediffuselighting.fepointlight.fespotlight.fedistantlight`.split(`.`)),et=new Set([`href`,`xlink:href`,`src`]),tt=/url\(\s*['"]?\s*(?!#)/i,nt=/javascript:/i,rt=/expression\s*\(|@import|behavior\s*:|-moz-binding/i,it=new Set([`fill`,`stroke`,`stop-color`,`flood-color`,`lighting-color`]),at=new Set([`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--danger)`,`var(--text-primary)`,`var(--text-secondary)`,`var(--text-muted)`,`var(--surface-card)`]),ot=new Set([`none`,`currentcolor`,`transparent`,`context-fill`,`context-stroke`]),st=/^url\(#[\w-]+\)$/,ct=/\b(?:fill|stroke|color|stop-color)\s*:\s*(?!var\(--)[^;]+/i,lt=9.5,ut=640,dt=440,ft=16,pt=/^\s*([\d.]+)(?:px)?\s*$/,mt=/^\s*font-size\s*:/i;function ht(e){let t=e.trim();return at.has(t)||ot.has(t.toLowerCase())||st.test(t)}function gt(e,t){if(e===`fill`){let e=t.localName.toLowerCase();return e===`text`||e===`tspan`?`var(--text-primary)`:`var(--surface-card)`}return`var(--text-secondary)`}function _t(e){let t=e?.split(`;`).find(e=>mt.test(e));return t?t.slice(t.indexOf(`:`)+1):null}function vt(e){for(let t=e;t;t=t.parentElement){let e=_t(t.getAttribute(`style`))??t.getAttribute(`font-size`);if(e==null)continue;let n=pt.exec(e);return n?Number(n[1]):null}return ft}function yt(e,t,n){let r=lt*Math.max(t/ut,n/dt);for(let t of Array.from(e.querySelectorAll(`text, tspan`))){let e=vt(t);if(e===null||e>=r)continue;t.setAttribute(`font-size`,String(Math.round(r*100)/100));let n=t.getAttribute(`style`);if(n===null)continue;let i=n.split(`;`).filter(e=>e.trim()&&!mt.test(e));i.length?t.setAttribute(`style`,i.join(`;`)):t.removeAttribute(`style`)}}function bt(e){if(typeof e!=`string`)return null;let t=e.trim();if(!t||t.length>Xe||/<!doctype|<!entity/i.test(t)||typeof DOMParser>`u`||typeof XMLSerializer>`u`)return null;let n;try{n=new DOMParser().parseFromString(t,`image/svg+xml`)}catch{return null}if(n.getElementsByTagName(`parsererror`).length>0)return null;let r=n.documentElement;if(!r||r.localName.toLowerCase()!==`svg`||(xt(r),r.getElementsByTagName(`*`).length>Ze)||r.getElementsByTagName(`text`).length>Qe)return null;let i=r.getAttribute(`viewBox`);if(!i)return null;let a=i.trim().split(/[\s,]+/).map(Number);if(a.length!==4||a.some(e=>!Number.isFinite(e))||a[2]<=0||a[3]<=0)return null;yt(r,a[2],a[3]),r.removeAttribute(`width`),r.removeAttribute(`height`),r.setAttribute(`width`,`100%`),r.getAttribute(`xmlns`)||r.setAttribute(`xmlns`,`http://www.w3.org/2000/svg`);try{return new XMLSerializer().serializeToString(r)}catch{return null}}function xt(e){for(let t of Array.from(e.attributes)){let n=t.name.toLowerCase(),r=t.value;if(n.startsWith(`on`)){e.removeAttribute(t.name);continue}if(et.has(n)||n.endsWith(`:href`)){r.trim().startsWith(`#`)||e.removeAttribute(t.name);continue}if(it.has(n)){ht(r)||e.setAttribute(t.name,gt(n,e));continue}if(n===`style`){(tt.test(r)||nt.test(r)||rt.test(r)||ct.test(r))&&e.removeAttribute(t.name);continue}(nt.test(r)||tt.test(r))&&e.removeAttribute(t.name)}for(let t of Array.from(e.childNodes)){let n=t.nodeType;if(n===1){let e=t;$e.has(e.localName.toLowerCase())?xt(e):e.remove()}else(n===7||n===8)&&e.removeChild(t)}}function St({title:e,icon:t=`sparkle`,iconColor:n=`var(--presence)`,svg:r,caption:i,footer:a,delay:c}){let l=o[t]||o.sparkle,u=(0,x.useMemo)(()=>bt(r),[r]);return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(l,{className:`ic`,style:{color:n}}),(0,S.jsx)(`span`,{className:`svgb-title`,children:e}),(0,S.jsxs)(`span`,{className:`svgb-badge`,children:[(0,S.jsx)(o.sparkle,{}),` Generated`]})]}),u===null?(0,S.jsx)(`p`,{className:`svgb-err`,children:`Couldn’t render this illustration.`}):(0,S.jsx)(`div`,{className:`svgb-wrap`,children:(0,S.jsx)(`div`,{className:`svgb-inner`,role:`img`,"aria-label":e,dangerouslySetInnerHTML:{__html:u}})}),i&&(0,S.jsx)(`p`,{className:`svgb-caption`,children:i}),u!==null&&(0,S.jsxs)(`p`,{className:`svgb-disclaimer`,role:`note`,children:[(0,S.jsx)(o.alert,{"aria-hidden":`true`}),(0,S.jsxs)(`span`,{children:[(0,S.jsx)(`strong`,{children:`AI-generated visual.`}),` It may be inaccurate or entirely wrong, including its labels, scale, relationships, or depictions. Verify important details with authoritative sources; do not treat it as evidence.`]})]}),a&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:8},dangerouslySetInnerHTML:s(a)})]})}var Ct={soccer:{viewBox:`0 0 100 65`,bg:`#2d7a3a`,aspectRatio:65/100,markings:`
2
2
  <rect x="0" y="0" width="100" height="65" fill="#2d7a3a"/>
3
3
  <rect x="1" y="1" width="98" height="63" fill="none" stroke="rgba(255,255,255,0.7)" stroke-width="0.6"/>
4
4
  <line x1="50" y1="1" x2="50" y2="64" stroke="rgba(255,255,255,0.5)" stroke-width="0.5"/>
@@ -0,0 +1 @@
1
+ import{r as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{t as n}from"./compiler-runtime-qQQXpJgv.js";import{t as r}from"./jsx-runtime-DeHZSEgm.js";import{n as i}from"./icons-gLFQTv74.js";import{t as a}from"./richText-BkxJhl9N.js";import{i as o,r as s}from"./format-q0LwBjID.js";import{t as c}from"./scale-Bcgfo6Hp.js";import{t as l}from"./BlockEmpty-B82uCse8.js";import"./lib-u95BsX_B.js";import{n as u,t as d}from"./motion-DxHSlPN6.js";import{t as f}from"./registry-types-D3q_LrlV.js";import{t as p}from"./annotations-CftUUB13.js";var m=t();function h(e){let t=parseFloat(String(e??``).replace(/[^0-9.-]/g,``));return Number.isNaN(t)?0:t}var g=e=>e.trim().toLowerCase(),_={formatCell:(e,t)=>t,cellTone:()=>void 0,cellBar:()=>void 0,rowTone:()=>void 0,dimUnmatched:!1,summaryRows:[],active:!1};function v(e,t,n){if(!e||e.length===0)return _;let r=t[0]?.key??``,i=new Set(t.filter(e=>e.numeric).map(e=>e.key)),a=new Map,c=new Map,l=new Map,u=new Map,d=!1,f=[];for(let p of e)switch(p.op){case`format`:{let e=p.target.kind===`column`?[p.target.key]:t.map(e=>e.key);for(let t of e)a.set(t,e=>{let t=h(e);return p.as===`currency`?s(t,{currency:`USD`}):p.as===`percent`?s(t,{percent:!0}):p.as===`unit`?o(t,p.unit):p.as===`duration`?o(t,p.unit??`min`):e});break}case`status`:c.set(p.target.key,p.rules);break;case`bar`:{let e=p.target.key,t=Math.max(1,...n.map(t=>Math.abs(h(t[e]))));l.set(e,t);break}case`emphasize`:p.target.kind===`row`&&(u.set(g(p.target.match),p.tone??`presence`),p.dimOthers&&(d=!0));break;case`summary`:{let e=(p.columns??t.map(e=>e.key)).filter(e=>i.has(e)||p.columns?.includes(e)),o={};for(let t of e){let e=n.map(e=>h(e[t]));if(e.length===0)continue;let r;switch(p.stat){case`total`:r=e.reduce((e,t)=>e+t,0);break;case`mean`:r=e.reduce((e,t)=>e+t,0)/e.length;break;case`max`:r=Math.max(...e);break;case`min`:r=Math.min(...e);break;case`count`:r=e.length;break;default:r=0}let i=a.get(t);o[t]=i?i(String(r)):s(r,{})}let c=p.label??{total:`Total`,mean:`Average`,max:`Max`,min:`Min`,count:`Count`}[p.stat];r&&o[r]===void 0&&(o[r]=c),f.push({label:c,cells:o});break}}let m=e=>e?p[e]:void 0;return{active:!0,dimUnmatched:d,summaryRows:f,formatCell:(e,t)=>{let n=a.get(e);return n?n(t):t},cellTone:(e,t)=>{let n=c.get(e);if(!n)return;let r=n.find(e=>g(t).includes(g(e.match)));return r?p[r.tone]:void 0},cellBar:(e,t)=>{let n=l.get(e);if(n)return Math.max(0,Math.min(1,Math.abs(h(t))/n))},rowTone:e=>m(u.get(g(e)))}}var y=r(),b=e=>{let t=parseFloat(String(e).replace(/[^0-9.-]/g,``));return Number.isNaN(t)?0:t};function x({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,columns:r,rows:a,sortKey:o,sortDir:s=`desc`,searchable:c=!0,searchPlaceholder:l=`Filter rows…`,footer:u,annotations:d,delay:f}){let p=i[t]||i.table,[h,g]=(0,m.useState)(o||r[0]?.key),[_,x]=(0,m.useState)(s),[S,C]=(0,m.useState)(``),w=e=>r.find(t=>t.key===e),T=r[0]?.key??``,E=(0,m.useMemo)(()=>v(d,r,a),[d,r,a]),D=(0,m.useMemo)(()=>{let e=S.trim().toLowerCase(),t=a;e&&(t=a.filter(t=>Object.values(t).some(t=>String(t).toLowerCase().includes(e))));let n=w(h);return[...t].sort((e,t)=>{let r=e[h]??``,i=t[h]??``,a=n?.numeric?b(r)-b(i):String(r).localeCompare(String(i));return _===`asc`?a:-a})},[a,S,h,_]),O=e=>{e===h?x(e=>e===`asc`?`desc`:`asc`):(g(e),x(w(e)?.numeric?`desc`:`asc`))};return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(f||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`tbl-head`,children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,style:{marginBottom:0},children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),c&&(0,y.jsxs)(`label`,{className:`tbl-search`,children:[(0,y.jsx)(i.eye,{className:`tbl-search-ic`}),(0,y.jsx)(`input`,{value:S,onChange:e=>C(e.target.value),placeholder:l}),S&&(0,y.jsx)(`button`,{className:`tbl-search-x`,onClick:()=>C(``),"aria-label":`clear`,children:(0,y.jsx)(i.x,{})})]})]}),(0,y.jsx)(`div`,{className:`dt-scroll`,children:(0,y.jsxs)(`table`,{className:`dt`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsx)(`tr`,{children:r.map(e=>(0,y.jsx)(`th`,{className:`dt-th ${e.align===`right`?`r`:``} ${h===e.key?`on`:``}`,onClick:()=>O(e.key),children:(0,y.jsxs)(`span`,{className:`dt-th-in`,children:[e.label,(0,y.jsx)(`span`,{className:`dt-sort ${h===e.key?_:``}`,children:h===e.key&&_===`asc`?(0,y.jsx)(i.arrowUp,{}):(0,y.jsx)(i.arrowDown,{})})]})},e.key))})}),(0,y.jsxs)(`tbody`,{children:[D.map((e,t)=>{let n=E.active?E.rowTone(e[T]??``):void 0,i=E.dimUnmatched&&!n;return(0,y.jsx)(`tr`,{className:`dt-row${n?` dt-row-emph`:``}${i?` dt-row-dim`:``}`,style:n?{"--emph":n}:void 0,children:r.map(t=>{let n=e[t.key]??``,r=E.active?E.formatCell(t.key,n):n,i=E.active?E.cellTone(t.key,n):void 0,a=E.active?E.cellBar(t.key,n):void 0;return(0,y.jsxs)(`td`,{className:`dt-td ${t.align===`right`?`r tab-num`:``} ${h===t.key?`on`:``}`,style:{...t.color?{color:t.color}:{},...i?{color:i}:{}},children:[a!==void 0&&(0,y.jsx)(`span`,{className:`dt-bar`,style:{width:`${Math.round(a*100)}%`}}),(0,y.jsx)(`span`,{className:`dt-cell-v`,children:r})]},t.key)})},t)}),D.length===0&&(0,y.jsx)(`tr`,{children:(0,y.jsxs)(`td`,{className:`dt-empty`,colSpan:r.length,children:[`No rows match “`,S,`”.`]})})]}),E.summaryRows.length>0&&D.length>0&&(0,y.jsx)(`tfoot`,{children:E.summaryRows.map((e,t)=>(0,y.jsx)(`tr`,{className:`dt-summary`,children:r.map((t,n)=>(0,y.jsx)(`td`,{className:`dt-td dt-summary-td ${t.align===`right`?`r tab-num`:``}`,children:e.cells[t.key]??(n===0?e.label:``)},t.key))},t))})]})}),(0,y.jsxs)(`div`,{className:`tbl-foot-meta faint`,children:[D.length,` of `,a.length,` rows · sorted by `,w(h)?.label,` `,_===`asc`?`↑`:`↓`]}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:u})]})}function S({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,rowGroup:r,colHeaders:a,measures:o,rows:s,measure:c=0,accent:l=`var(--presence)`,footer:u,delay:d}){let f=i[t]||i.table,[p,h]=(0,m.useState)(Math.max(0,Math.min(c,o.length-1))),[g,_]=(0,m.useState)(null),v=o[p],b=v?.key??``,x=e=>typeof e==`number`&&Number.isFinite(e)?e:null,S=(e,t)=>s[e]?.cells[t]?.values[b],C=s.flatMap(e=>e.cells.map(e=>x(e.values[b]))).filter(e=>e!==null),w=C.length>0,T=Math.max(1,...C),E=e=>`${v?.prefix||``}${e.toLocaleString()}${v?.unit||``}`,D=a.map((e,t)=>s.reduce((e,n)=>e+(x(n.cells[t]?.values[b])??0),0)),O=D.reduce((e,t)=>e+t,0),k=e=>/^(totals?|grand\s*total|sum|all)$/i.test(e.trim()),A=s.length>0&&k(s[s.length-1]?.label??``),j=a.some(e=>k(String(e))),M=a.map((e,t)=>s.some(e=>x(e.cells[t]?.values[b])!==null)),ee=w&&!A,N=w&&!j;return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`tbl-head`,children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,style:{marginBottom:0},children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),o.length>1&&(0,y.jsx)(`div`,{className:`seg`,role:`tablist`,children:o.map((e,t)=>(0,y.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":t===p,className:`seg-btn ${t===p?`on`:``}`,onClick:()=>h(t),children:e.label},`${e.key}-${t}`))})]}),(0,y.jsx)(`div`,{className:`dt-scroll`,children:(0,y.jsxs)(`table`,{className:`pv`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`pv-corner`,children:r}),a.map((e,t)=>(0,y.jsx)(`th`,{className:`pv-colh ${g?.c===t?`on`:``}`,children:e},t)),N&&(0,y.jsx)(`th`,{className:`pv-colh tot`,children:`Total`})]})}),(0,y.jsxs)(`tbody`,{children:[s.map((e,t)=>{let n=e.cells.reduce((e,t)=>e+(x(t.values[b])??0),0);return(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`pv-rowh ${g?.r===t?`on`:``}`,children:e.label}),e.cells.map((e,n)=>{let r=S(t,n),i=x(r),a=i===null?0:i/T*.82+.04,o=g?.r===t&&g?.c===n;return(0,y.jsxs)(`td`,{className:`pv-cell ${o?`hot`:``}`,style:{background:i===null?void 0:`color-mix(in oklab, ${l} ${a*100}%, transparent)`},onMouseEnter:()=>_({r:t,c:n}),onMouseLeave:()=>_(null),children:[(0,y.jsx)(`span`,{className:i===null?`pv-v`:`pv-v tab-num`,children:i===null?String(r??``):E(i)}),o&&i!==null&&O>0&&(0,y.jsxs)(`span`,{className:`pv-tip`,children:[(i/O*100).toFixed(1),`% of total`]})]},n)}),N&&(0,y.jsx)(`td`,{className:`pv-cell tot tab-num`,children:E(n)})]},t)}),ee&&(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`pv-rowh tot`,children:`Total`}),D.map((e,t)=>(0,y.jsx)(`td`,{className:`pv-cell tot tab-num`,children:M[t]?E(e):`—`},t)),N&&(0,y.jsx)(`td`,{className:`pv-cell tot grand tab-num`,children:E(O)})]})]})]})}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:u})]})}var C=[`var(--warning)`,`var(--text-secondary)`,`var(--presence-soft)`];function w({r:e,rank:t,value:n,width:r,unit:a,color:o,hot:s,onEnter:c,onLeave:l}){let u=d(n,{duration:900,decimals:0}),f=e.move??0;return(0,y.jsxs)(`div`,{className:`lb-row m-stagger-item m-fade-rise ${s?`hot`:``} ${t<3?`podium`:``}`,style:{"--i":t},onMouseEnter:c,onMouseLeave:l,children:[(0,y.jsxs)(`div`,{className:`lb-rank`,style:t<3?{color:C[t]}:void 0,children:[t<3?(0,y.jsx)(`span`,{className:`lb-medal`,children:`●`}):null,t+1]}),(0,y.jsxs)(`div`,{className:`lb-body`,children:[(0,y.jsxs)(`div`,{className:`lb-top`,children:[(0,y.jsx)(`span`,{className:`lb-name`,children:e.name}),e.sub&&(0,y.jsx)(`span`,{className:`lb-sub faint`,children:e.sub}),(0,y.jsx)(`span`,{className:`lb-spacer`}),(0,y.jsxs)(`span`,{className:`lb-val tab-num`,"data-mark":t===0?`underline`:void 0,children:[u,a]})]}),(0,y.jsx)(`div`,{className:`lb-track`,children:(0,y.jsx)(`div`,{className:`lb-fill`,style:{width:`${r}%`,background:o}})})]}),(0,y.jsxs)(`div`,{className:`lb-move ${f>0?`up`:f<0?`down`:`flat`}`,children:[f>0?(0,y.jsx)(i.arrowUp,{}):f<0?(0,y.jsx)(i.arrowDown,{}):(0,y.jsx)(`span`,{className:`lb-dash`,children:`–`}),f!==0&&(0,y.jsx)(`span`,{className:`tab-num`,children:Math.abs(f)})]})]})}function T({title:e,icon:t=`chart`,iconColor:n=`var(--insight)`,metrics:r,rows:a,metric:o=0,accent:s=`var(--insight)`,footer:c,delay:l}){let u=i[t]||i.chart,[d,f]=(0,m.useState)(Math.max(0,Math.min(o,r.length-1))),[p,h]=(0,m.useState)(null),g=r[d],_=g?.key??``,v=(0,m.useMemo)(()=>[...a].map((e,t)=>({r:e,i:t})).sort((e,t)=>(t.r.values[_]??0)-(e.r.values[_]??0)),[a,_]),b=Math.max(1,...v.map(e=>e.r.values[_]??0));return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`tbl-head`,children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,style:{marginBottom:0},children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),r.length>1&&(0,y.jsx)(`div`,{className:`seg`,children:r.map((e,t)=>(0,y.jsx)(`button`,{className:`seg-btn ${t===d?`on`:``}`,onClick:()=>f(t),children:e.label},`${e.key}-${t}`))})]}),(0,y.jsx)(`div`,{className:`lb`,children:v.map(({r:e,i:t},n)=>{let r=e.values[_]??0,i=r/b*100;return(0,y.jsx)(w,{r:e,rank:n,value:r,width:i,unit:g?.unit||``,color:n<3?C[n]:s,hot:p===n,onEnter:()=>h(n),onLeave:()=>h(null)},`${e.name}-${t}`)})}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:c})]})}function E(e){return e.join(`.`)}function D(e){if(e==null)return 0;let t=parseFloat(e.replace(/[^0-9.-]/g,``));return Number.isFinite(t)?t:0}function O(e){let t=new Map,n=e=>{let r=e.children?.map(n)??[],i=D(e.value),a=i>0||!r.length?i:r.reduce((e,t)=>e+t.value,0),o=r.reduce((e,t)=>e+(t.pct??0),0),s={value:a,pct:e.pct!=null&&e.pct>0?e.pct:o>0?o:e.pct};return t.set(e,s),s};return e.forEach(n),t}function k({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,valueLabel:r=`Value`,nodes:a,accent:o=`var(--presence)`,footer:s,delay:c}){let l=i[t]||i.layers,[u,d]=(0,m.useState)(()=>{let e=new Set,t=(n,r)=>n.forEach((n,i)=>{let a=[...r,i];n.open&&n.children?.length&&e.add(E(a)),n.children&&t(n.children,a)});return t(a,[]),e}),f=(0,m.useMemo)(()=>O(a),[a]),p=e=>d(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}),h=(e,t,n)=>e.flatMap((e,r)=>{let a=[...t,r],s=E(a),c=u.has(s),l=!!e.children?.length,d=e.color||o,m=f.get(e),g=m?.pct,_=m?.value??0,v=D(e.value)>0?e.value:_>0?String(_):e.value,b=[(0,y.jsxs)(`div`,{className:`tt-row ${l?`parent`:`leaf`} ${n===0?`top`:``}`,style:{paddingLeft:8+n*18},onClick:l?()=>p(s):void 0,onKeyDown:l?e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),p(s))}:void 0,role:l?`button`:void 0,tabIndex:l?0:void 0,children:[(0,y.jsx)(`span`,{className:`tt-caret ${l?``:`hidden`} ${c?`open`:``}`,children:(0,y.jsx)(i.chevR,{})}),(0,y.jsx)(`span`,{className:`tt-label`,children:e.label}),e.tag&&(0,y.jsx)(`span`,{className:`tt-tag`,style:{color:d,borderColor:`color-mix(in oklab, ${d} 40%, transparent)`},children:e.tag}),(0,y.jsx)(`span`,{className:`tt-spacer`}),g!=null&&(0,y.jsx)(`span`,{className:`tt-bar`,children:(0,y.jsx)(`span`,{className:`tt-bar-fill`,style:{width:`${Math.round(g*100)}%`,background:d}})}),v!=null&&(0,y.jsx)(`span`,{className:`tt-val tab-num`,children:v})]},s)];return l&&c&&b.push(...h(e.children,a,n+1)),b});return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`tt-header`,children:[(0,y.jsx)(`span`,{className:`tt-h-label`,children:`Item`}),(0,y.jsx)(`span`,{className:`tt-h-val`,children:r})]}),(0,y.jsx)(`div`,{className:`tt`,children:h(a,[],0)}),s&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:s})]})}function A({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,ticks:r,lanes:a,footer:o,delay:s}){let c=i[t]||i.clock,[l,u]=(0,m.useState)(null);return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(s||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`sw`,children:[a.map((e,t)=>(0,y.jsxs)(`div`,{className:`sw-lane`,children:[(0,y.jsxs)(`div`,{className:`sw-actor`,children:[(0,y.jsx)(`span`,{className:`sw-actor-name`,children:e.actor}),e.sub&&(0,y.jsx)(`span`,{className:`sw-actor-sub faint`,children:e.sub})]}),(0,y.jsxs)(`div`,{className:`sw-track`,children:[(0,y.jsx)(`span`,{className:`sw-baseline`}),e.events.map((e,n)=>{let r=e.color||`var(--presence)`,i=l?.l===t&&l?.e===n,a=`${Math.max(0,Math.min(1,e.at))*100}%`;if(e.span&&e.span>0){let o=`${Math.max(.02,Math.min(1-e.at,e.span))*100}%`;return(0,y.jsxs)(`div`,{className:`sw-bar ${i?`hot`:``}`,style:{left:a,width:o,background:`color-mix(in oklab, ${r} 26%, transparent)`,borderColor:r},onMouseEnter:()=>u({l:t,e:n}),onMouseLeave:()=>u(null),children:[(0,y.jsx)(`span`,{className:`sw-bar-label`,style:{color:r},children:e.label}),i&&e.detail&&(0,y.jsx)(`span`,{className:`sw-tip`,children:e.detail})]},n)}return(0,y.jsxs)(`div`,{className:`sw-evt ${i?`hot`:``}`,style:{left:a},onMouseEnter:()=>u({l:t,e:n}),onMouseLeave:()=>u(null),children:[(0,y.jsx)(`span`,{className:`sw-dot`,style:{background:r,boxShadow:`0 0 0 4px color-mix(in oklab, ${r} 22%, transparent)`}}),(0,y.jsx)(`span`,{className:`sw-evt-label`,children:e.label}),i&&e.detail&&(0,y.jsx)(`span`,{className:`sw-tip`,children:e.detail})]},n)})]})]},t)),r&&r.length>0&&(0,y.jsxs)(`div`,{className:`sw-axis`,children:[(0,y.jsx)(`span`,{className:`sw-actor`}),(0,y.jsx)(`div`,{className:`sw-axis-ticks`,children:r.map((e,t)=>(0,y.jsx)(`span`,{className:`sw-tick faint`,children:e},t))})]})]}),o&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:o})]})}function j({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,columns:r,rows:o,notes:s,footer:c,delay:l}){let u=i[t]||i.doc,[d,f]=(0,m.useState)(null),[p,h]=(0,m.useState)(null),g=p??d;return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`dt-scroll`,children:(0,y.jsxs)(`table`,{className:`dt ft`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsx)(`tr`,{children:r.map((e,t)=>(0,y.jsx)(`th`,{className:`dt-th ${t===0?``:`r`}`,children:e},t))})}),(0,y.jsx)(`tbody`,{children:o.map((e,t)=>(0,y.jsx)(`tr`,{className:`dt-row`,children:e.cells.map((e,t)=>(0,y.jsxs)(`td`,{className:`dt-td ${t===0?``:`r tab-num`}`,style:e.color?{color:e.color}:void 0,children:[e.v,e.note!=null&&(0,y.jsx)(`button`,{className:`ft-anchor ${g===e.note?`on`:``} ${d===e.note?`pin`:``}`,onMouseEnter:()=>h(e.note),onMouseLeave:()=>h(null),onClick:()=>f(t=>t===e.note?null:e.note),"aria-label":`footnote ${e.note}`,children:e.note})]},t))},t))})]})}),(0,y.jsx)(`div`,{className:`ft-notes`,children:s.map((e,t)=>{let n=t+1;return(0,y.jsxs)(`div`,{className:`ft-note ${g===n?`on`:``}`,children:[(0,y.jsx)(`span`,{className:`ft-note-i`,children:n}),(0,y.jsx)(`span`,{className:`ft-note-t`,dangerouslySetInnerHTML:a(e)})]},t)})}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:c})]})}var M=n(),ee=116,N=34;function P(e){let t=(0,M.c)(48),{row:n,hoverI:r,onHover:i,delay:a}=e,o=(0,m.useRef)(null),s;t[0]===a?s=t[1]:(s={delay:a},t[0]=a,t[1]=s),u(o,s);let c=n.series;if(c.length===0){let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,y.jsx)(`svg`,{className:`sk-svg`,viewBox:`0 0 ${ee} ${N}`,preserveAspectRatio:`none`,"aria-hidden":`true`}),t[2]=e):e=t[2],e}let l=Math.min(...c),d=Math.max(...c)-l||1,f=n.color||(n.deltaDir===`down`?`var(--danger)`:`var(--insight)`),p,h,g,_,v,b;if(t[3]!==l||t[4]!==d||t[5]!==c){let e;t[12]!==l||t[13]!==d||t[14]!==c.length?(e=(e,t)=>[t/(c.length-1||1)*112+2,31-(e-l)/d*28],t[12]=l,t[13]=d,t[14]=c.length,t[15]=e):e=t[15],h=c.map(e),p=h.map(te).join(` `),g=p,_=h[h.length-1][0].toFixed(1),v=N,b=h[0][0].toFixed(1),t[3]=l,t[4]=d,t[5]=c,t[6]=p,t[7]=h,t[8]=g,t[9]=_,t[10]=v,t[11]=b}else p=t[6],h=t[7],g=t[8],_=t[9],v=t[10],b=t[11];let x=`${g} L${_} ${v} L${b} ${N} Z`,S;if(t[16]!==n.name){let e;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(e=/\W/g,t[18]=e):e=t[18],S=n.name.replace(e,``),t[16]=n.name,t[17]=S}else S=t[17];let C=`sg-${S}`,w;t[19]===i?w=t[20]:(w=()=>i(null),t[19]=i,t[20]=w);let T;t[21]!==i||t[22]!==c.length?(T=e=>{let t=e.currentTarget.getBoundingClientRect(),n=(e.clientX-t.left)/t.width;i(Math.max(0,Math.min(c.length-1,Math.round(n*(c.length-1)))))},t[21]=i,t[22]=c.length,t[23]=T):T=t[23];let E,D;t[24]===f?(E=t[25],D=t[26]):(D=(0,y.jsx)(`stop`,{offset:`0%`,stopColor:f,stopOpacity:`0.28`}),E=(0,y.jsx)(`stop`,{offset:`100%`,stopColor:f,stopOpacity:`0`}),t[24]=f,t[25]=E,t[26]=D);let O;t[27]!==C||t[28]!==E||t[29]!==D?(O=(0,y.jsx)(`defs`,{children:(0,y.jsxs)(`linearGradient`,{id:C,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[D,E]})}),t[27]=C,t[28]=E,t[29]=D,t[30]=O):O=t[30];let k=`url(#${C})`,A;t[31]!==x||t[32]!==k?(A=(0,y.jsx)(`path`,{d:x,fill:k,stroke:`none`}),t[31]=x,t[32]=k,t[33]=A):A=t[33];let j;t[34]!==f||t[35]!==p?(j=(0,y.jsx)(`path`,{ref:o,d:p,fill:`none`,stroke:f,strokeWidth:`1.6`,strokeLinejoin:`round`,strokeLinecap:`round`}),t[34]=f,t[35]=p,t[36]=j):j=t[36];let P;t[37]!==f||t[38]!==r||t[39]!==h?(P=r!=null&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`line`,{x1:h[r][0],y1:`0`,x2:h[r][0],y2:N,stroke:`var(--hover-line)`,strokeWidth:`1`}),(0,y.jsx)(`circle`,{cx:h[r][0],cy:h[r][1],r:`2.6`,fill:f,stroke:`var(--surface-elevated)`,strokeWidth:`1.4`})]}),t[37]=f,t[38]=r,t[39]=h,t[40]=P):P=t[40];let F;return t[41]!==O||t[42]!==A||t[43]!==j||t[44]!==P||t[45]!==w||t[46]!==T?(F=(0,y.jsxs)(`svg`,{className:`sk-svg`,viewBox:`0 0 ${ee} ${N}`,preserveAspectRatio:`none`,"aria-hidden":`true`,onMouseLeave:w,onMouseMove:T,children:[O,A,j,P]}),t[41]=O,t[42]=A,t[43]=j,t[44]=P,t[45]=w,t[46]=T,t[47]=F):F=t[47],F}function te(e,t){return`${t?`L`:`M`}${e[0].toFixed(1)} ${e[1].toFixed(1)}`}function F({title:e,icon:t=`chart`,iconColor:n=`var(--insight)`,valueLabel:r=`Current`,trendLabel:a=`Trend`,rows:o,footer:s,delay:c}){let l=i[t]||i.chart,[u,d]=(0,m.useState)(null);return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`sk-header`,children:[(0,y.jsx)(`span`,{className:`sk-h-name`,children:`Series`}),(0,y.jsx)(`span`,{className:`sk-h-trend`,children:a}),(0,y.jsx)(`span`,{className:`sk-h-val`,children:r})]}),(0,y.jsx)(`div`,{className:`sk`,children:o.map((e,t)=>{let n=e.deltaDir,r=u?.row===t?u.i:null;return(0,y.jsxs)(`div`,{className:`sk-row`,children:[(0,y.jsx)(`span`,{className:`sk-name`,children:e.name}),(0,y.jsxs)(`div`,{className:`sk-trend`,children:[(0,y.jsx)(P,{row:e,hoverI:r,onHover:e=>d(e==null?null:{row:t,i:e}),delay:Math.min(t*60,480)}),r!=null&&(0,y.jsx)(`span`,{className:`sk-point tab-num`,children:e.series[r].toLocaleString()})]}),(0,y.jsxs)(`span`,{className:`sk-val tab-num`,children:[e.value,e.delta&&(0,y.jsxs)(`span`,{className:`sk-delta ${n===`down`?`down`:n===`flat`?`flat`:`up`}`,children:[n===`down`?(0,y.jsx)(i.arrowDown,{}):n===`flat`?null:(0,y.jsx)(i.arrowUp,{}),e.delta]})]})]},t)})}),s&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:s})]})}var I=100,L=40;function ne(e){let t=(0,M.c)(33),{panel:n,gmin:r,gmax:i,kind:a,accent:o}=e,s=n.series,c=i-r||1,l=n.color||o;if(s.length===0){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,y.jsx)(`svg`,{className:`sm-svg`,viewBox:`0 0 ${I} ${L}`,preserveAspectRatio:`none`,"aria-hidden":`true`}),t[0]=e):e=t[0],e}if(a===`bars`){let e=98/s.length,n;if(t[1]!==e||t[2]!==l||t[3]!==r||t[4]!==c||t[5]!==s){let i;t[7]!==e||t[8]!==l||t[9]!==r||t[10]!==c?(i=(t,n)=>{let i=(t-r)/c*36+2;return(0,y.jsx)(`rect`,{x:n*e+e*.16,y:L-i,width:e*.68,height:i,rx:`1`,fill:l,opacity:.55+.45*((t-r)/c)},n)},t[7]=e,t[8]=l,t[9]=r,t[10]=c,t[11]=i):i=t[11],n=s.map(i),t[1]=e,t[2]=l,t[3]=r,t[4]=c,t[5]=s,t[6]=n}else n=t[6];let i;return t[12]===n?i=t[13]:(i=(0,y.jsx)(`svg`,{className:`sm-svg`,viewBox:`0 0 ${I} ${L}`,preserveAspectRatio:`none`,"aria-hidden":`true`,children:n}),t[12]=n,t[13]=i),i}let u,d;if(t[14]!==r||t[15]!==c||t[16]!==s){let e;t[19]!==r||t[20]!==c||t[21]!==s.length?(e=(e,t)=>[t/(s.length-1||1)*96+2,37-(e-r)/c*34],t[19]=r,t[20]=c,t[21]=s.length,t[22]=e):e=t[22],u=s.map(e),d=u.map(re).join(` `),t[14]=r,t[15]=c,t[16]=s,t[17]=u,t[18]=d}else u=t[17],d=t[18];let f=d,p;t[23]!==l||t[24]!==f?(p=(0,y.jsx)(`path`,{d:f,fill:`none`,stroke:l,strokeWidth:`1.7`,strokeLinejoin:`round`,strokeLinecap:`round`}),t[23]=l,t[24]=f,t[25]=p):p=t[25];let m=u[u.length-1],h=u[u.length-1],g;t[26]!==l||t[27]!==m[0]||t[28]!==h[1]?(g=(0,y.jsx)(`circle`,{cx:m[0],cy:h[1],r:`2`,fill:l}),t[26]=l,t[27]=m[0],t[28]=h[1],t[29]=g):g=t[29];let _;return t[30]!==p||t[31]!==g?(_=(0,y.jsxs)(`svg`,{className:`sm-svg`,viewBox:`0 0 ${I} ${L}`,preserveAspectRatio:`none`,"aria-hidden":`true`,children:[p,g]}),t[30]=p,t[31]=g,t[32]=_):_=t[32],_}function re(e,t){return`${t?`L`:`M`}${e[0].toFixed(1)} ${e[1].toFixed(1)}`}function ie({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,panels:r,cols:a=3,kind:o=`bars`,footer:s,delay:c}){let l=i[t]||i.layers,[u,d]=(0,m.useState)(null),f=r.flatMap(e=>e.series),p=f.length?Math.min(...f):0,h=f.length?Math.max(...f):1;return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`sm-grid`,style:{gridTemplateColumns:`repeat(${a}, minmax(0, 1fr))`},onMouseLeave:()=>d(null),children:r.map((e,t)=>{let n=u!=null&&u!==t,r=e.deltaDir;return(0,y.jsxs)(`div`,{className:`sm-cell ${u===t?`hot`:``} ${n?`dimd`:``}`,onMouseEnter:()=>d(t),children:[(0,y.jsx)(`div`,{className:`sm-label`,children:e.label}),(0,y.jsx)(ne,{panel:e,gmin:p,gmax:h,kind:o,accent:`var(--presence)`}),(0,y.jsxs)(`div`,{className:`sm-foot`,children:[e.stat&&(0,y.jsx)(`span`,{className:`sm-stat tab-num`,children:e.stat}),e.delta&&(0,y.jsxs)(`span`,{className:`sm-delta ${r===`down`?`down`:r===`flat`?`flat`:`up`}`,children:[r===`down`?(0,y.jsx)(i.arrowDown,{}):r===`flat`?null:(0,y.jsx)(i.arrowUp,{}),e.delta]})]})]},t)})}),s&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:s})]})}function ae({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,series:r,rows:a,highlight:o=0,footer:s,delay:c}){let l=i[t]||i.chart,[u,d]=(0,m.useState)(o),[f,p]=(0,m.useState)(null),h=a[0],g=h&&h.values.length>0?h.higherBetter===!1?h.values.indexOf(Math.min(...h.values)):h.values.indexOf(Math.max(...h.values)):-1;return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`cb-legend`,children:r.map((e,t)=>(0,y.jsxs)(`button`,{className:`cb-leg ${u===t?`on`:``} ${u!==-1&&u!==t?`off`:``}`,onClick:()=>d(e=>e===t?-1:t),children:[(0,y.jsx)(`span`,{className:`cb-swatch`,style:{background:e.color}}),e.name]},t))}),(0,y.jsx)(`div`,{className:`cb`,children:a.map((e,t)=>{let n=Math.max(1,...e.values),i=e.values.length===0?-1:e.higherBetter===!1?e.values.indexOf(Math.min(...e.values)):e.values.indexOf(Math.max(...e.values));return(0,y.jsxs)(`div`,{className:`cb-row`,children:[(0,y.jsx)(`div`,{className:`cb-row-label`,children:e.label}),(0,y.jsx)(`div`,{className:`cb-bars`,children:r.map((a,o)=>{let s=e.values[o]??0,c=s/n*100,l=u!==-1&&u!==o,d=f?.r===t&&f?.s===o;return(0,y.jsxs)(`div`,{className:`cb-bar-wrap ${l?`dimd`:``} ${d?`hot`:``}`,onMouseEnter:()=>p({r:t,s:o}),onMouseLeave:()=>p(null),children:[(0,y.jsx)(`div`,{className:`cb-track`,children:(0,y.jsx)(`div`,{className:`cb-fill m-stagger-item m-scale-in`,"data-mark":t===0&&o===g?`circle`:void 0,style:{width:`${c}%`,background:a.color,"--i":t*r.length+o,"--scale-from":0}})}),(0,y.jsxs)(`span`,{className:`cb-num tab-num`,children:[s.toLocaleString(),e.unit||``,o===i&&(0,y.jsx)(`span`,{className:`cb-best`,style:{color:a.color},children:`★`})]}),d&&(0,y.jsxs)(`span`,{className:`cb-tip`,children:[a.name,`:`,` `,(0,y.jsxs)(`b`,{className:`tab-num`,children:[s.toLocaleString(),e.unit||``]})]})]},o)})})]},t)})}),s&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:s})]})}var R=5,oe=96,se=120;function ce(e){let t=typeof e==`number`?e:parseFloat(String(e??``));return Number.isFinite(t)?Math.max(0,Math.min(R,Math.round(t))):0}function le(e){let t=(0,M.c)(5),{score:n}=e,r=`${n} out of ${R}`,i;t[0]===n?i=t[1]:(i=Array.from({length:R},(e,t)=>(0,y.jsx)(`span`,{className:`tbl-cmx-dot`+(t<n?` on`:``)},t)),t[0]=n,t[1]=i);let a;return t[2]!==r||t[3]!==i?(a=(0,y.jsx)(`span`,{className:`tbl-cmx-rating`,"aria-label":r,children:i}),t[2]=r,t[3]=i,t[4]=a):a=t[4],a}function ue(){let e=(0,M.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,y.jsxs)(`svg`,{className:`tbl-cmx-glyph partial`,viewBox:`0 0 16 16`,"aria-hidden":`true`,children:[(0,y.jsx)(`circle`,{cx:`8`,cy:`8`,r:`6.25`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,y.jsx)(`path`,{d:`M8 1.75a6.25 6.25 0 0 1 0 12.5z`,fill:`currentColor`})]}),e[0]=t):t=e[0],t}function de(e){let t=(0,M.c)(9),{cell:n}=e;switch(n.kind??`text`){case`yes`:{let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,y.jsx)(i.check,{className:`tbl-cmx-glyph yes`,"aria-label":`yes`}),t[0]=e):e=t[0],e}case`no`:{let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,y.jsx)(i.x,{className:`tbl-cmx-glyph no`,"aria-label":`no`}),t[1]=e):e=t[1],e}case`partial`:{let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,y.jsx)(ue,{}),t[2]=e):e=t[2],e}case`rating`:{let e;t[3]===n.value?e=t[4]:(e=ce(n.value),t[3]=n.value,t[4]=e);let r;return t[5]===e?r=t[6]:(r=(0,y.jsx)(le,{score:e}),t[5]=e,t[6]=r),r}default:{let e=n.value==null?`—`:String(n.value),r;return t[7]===e?r=t[8]:(r=(0,y.jsx)(`span`,{className:`tbl-cmx-text`,children:e}),t[7]=e,t[8]=r),r}}}function fe(e){let t=new Set;for(let n of e)for(let e of n.cells)t.add(e.kind??`text`);return[`yes`,`no`,`partial`,`rating`].filter(e=>t.has(e))}var pe={yes:`yes`,no:`no`,partial:`partial`,rating:`out of ${R}`};function me({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,cols:r,rows:o,caption:s,footer:c,delay:l}){let u=i[t]||i.table,d=`minmax(${se}px, 1.3fr) repeat(${r.length}, minmax(${oe}px, 1fr))`,f=fe(o);return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),s&&(0,y.jsx)(`div`,{className:`tbl-cmx-cap`,children:s}),(0,y.jsx)(`div`,{className:`tbl-cmx-scroll`,children:(0,y.jsxs)(`div`,{className:`tbl-cmx-grid`,style:{gridTemplateColumns:d},children:[(0,y.jsx)(`div`,{className:`tbl-cmx-corner`}),r.map((e,t)=>(0,y.jsx)(`div`,{className:`tbl-cmx-colh`,children:e},`h${t}`)),o.map((e,t)=>(0,y.jsxs)(m.Fragment,{children:[(0,y.jsx)(`div`,{className:`tbl-cmx-rowh`,children:e.label}),r.map((t,n)=>{let r=e.cells[n],i=e.best===n;return(0,y.jsxs)(`div`,{className:`tbl-cmx-cell`+(i?` best`:``),children:[r?(0,y.jsx)(de,{cell:r}):(0,y.jsx)(`span`,{className:`tbl-cmx-text`,children:`—`}),r?.note&&(0,y.jsx)(`div`,{className:`tbl-cmx-note`,children:r.note})]},n)})]},t))]})}),f.length>0&&(0,y.jsx)(`div`,{className:`tbl-cmx-legend`,children:f.map(e=>(0,y.jsxs)(`span`,{className:`tbl-cmx-legend-item`,children:[(0,y.jsx)(de,{cell:{kind:e,value:e===`rating`?R:void 0}}),pe[e]]},e))}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}function he({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,rowLabels:r,colLabels:a,cells:o,min:s,max:c,accent:l=`var(--presence)`,diagonal:u=!1,unit:d=``,legend:f,footer:p,delay:h}){let g=i[t]||i.table,[_,v]=(0,m.useState)(null),b=o.flat(),x=s??(b.length?Math.min(...b):0),S=(c??(b.length?Math.max(...b):1))-x||1,C=e=>(e-x)/S;return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(h||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`mg-wrap`,children:[(0,y.jsxs)(`div`,{className:`mg-grid`,style:{gridTemplateColumns:`minmax(0, auto) repeat(${a.length}, minmax(0, var(--mg-cell)))`},children:[(0,y.jsx)(`span`,{className:`mg-corner`}),a.map((e,t)=>(0,y.jsx)(`span`,{className:`mg-colh ${_?.c===t?`on`:``}`,children:e},t)),r.map((e,t)=>(0,y.jsx)(ge,{ri:t,label:e,vals:o[t]||[],colCount:a.length,norm:C,accent:l,diagonal:u,unit:d,hover:_,setHover:v},t))]}),f&&(0,y.jsxs)(`div`,{className:`mg-legend`,children:[(0,y.jsx)(`span`,{className:`faint`,children:f[0]}),(0,y.jsx)(`span`,{className:`mg-ramp`,style:{background:`linear-gradient(90deg, color-mix(in oklab, ${l} 6%, transparent), ${l})`}}),(0,y.jsx)(`span`,{className:`faint`,children:f[1]})]})]}),p&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:p})]})}function ge(e){let t=(0,M.c)(18),{ri:n,label:r,vals:i,colCount:a,norm:o,accent:s,diagonal:c,unit:l,hover:u,setHover:d}=e,f=`mg-rowh ${u?.r===n?`on`:``}`,p;t[0]!==r||t[1]!==f?(p=(0,y.jsx)(`span`,{className:f,children:r}),t[0]=r,t[1]=f,t[2]=p):p=t[2];let m;t[3]===a?m=t[4]:(m=Array.from({length:a}),t[3]=a,t[4]=m);let h;t[5]!==s||t[6]!==c||t[7]!==u||t[8]!==o||t[9]!==n||t[10]!==d||t[11]!==m||t[12]!==l||t[13]!==i?(h=m.map((e,t)=>{let r=i[t]??0,a=Math.max(0,Math.min(1,o(r))),f=c&&n===t,p=u?.r===n&&u?.c===t,m=u&&(u.r===n||u.c===t);return(0,y.jsxs)(`div`,{className:`mg-cell ${p?`hot`:``} ${m&&!p?`cross`:``} ${f?`diag`:``}`,style:{background:`color-mix(in oklab, ${s} ${(a*.9+.04)*100}%, transparent)`},onMouseEnter:()=>d({r:n,c:t}),onMouseLeave:()=>d(null),children:[(0,y.jsxs)(`span`,{className:`mg-v tab-num`,style:{color:a>.55?`var(--surface-deep)`:`var(--text-secondary)`},children:[r,l]}),p&&(0,y.jsxs)(`span`,{className:`mg-tip tab-num`,children:[r,l]})]},t)}),t[5]=s,t[6]=c,t[7]=u,t[8]=o,t[9]=n,t[10]=d,t[11]=m,t[12]=l,t[13]=i,t[14]=h):h=t[14];let g;return t[15]!==p||t[16]!==h?(g=(0,y.jsxs)(y.Fragment,{children:[p,h]}),t[15]=p,t[16]=h,t[17]=g):g=t[17],g}var z={overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,maxWidth:`100%`};function _e({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,caption:r,corner:o,cols:s,rows:c,bracket:l=!1,footer:u,delay:d}){let f=i[t]||i.table,p=!!s&&s.length>0,m=c.some(e=>e.label!==void 0),h=Math.max(s?.length??0,...c.map(e=>e.cells.length)),g=`${m?`minmax(0, auto) `:``}repeat(${h}, minmax(60px, auto))`,_=(()=>{for(let e=0;e<c.length;e++){let t=c[e].cells.findIndex(e=>e.hot);if(t>=0)return`${e}-${t}`}return null})();return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`tbl-mtx-cap`,children:r}),(0,y.jsxs)(`div`,{className:`tbl-mtx-frame`,children:[l&&(0,y.jsx)(`div`,{className:`tbl-mtx-brk l`}),(0,y.jsxs)(`div`,{className:`tbl-mtx-grid`,style:{gridTemplateColumns:g},children:[p&&(0,y.jsxs)(y.Fragment,{children:[m&&(0,y.jsx)(`div`,{className:`tbl-mtx-corner`,style:z,title:o,children:o??``}),s.map((e,t)=>(0,y.jsx)(`div`,{className:`tbl-mtx-colh`,style:z,title:e,children:e},`h${t}`))]}),c.map((e,t)=>(0,y.jsx)(ve,{ri:t,hasRowLabels:m,label:e.label,cells:e.cells,salientKey:_},t))]}),l&&(0,y.jsx)(`div`,{className:`tbl-mtx-brk r`})]}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}function ve(e){let t=(0,M.c)(13),{ri:n,hasRowLabels:r,label:i,cells:a,salientKey:o}=e,s;t[0]!==r||t[1]!==i?(s=r&&(0,y.jsx)(`div`,{className:`tbl-mtx-rowh`,style:z,title:i,children:i??``}),t[0]=r,t[1]=i,t[2]=s):s=t[2];let c;if(t[3]!==a||t[4]!==n||t[5]!==o){let e;t[7]!==n||t[8]!==o?(e=(e,t)=>(0,y.jsx)(`div`,{className:`tbl-mtx-cell`+(e.hot?` hot`:``),"data-mark":`${n}-${t}`===o?`circle`:void 0,style:e.color?{...z,background:e.color}:z,title:typeof e.v==`string`?e.v:void 0,children:e.v},t),t[7]=n,t[8]=o,t[9]=e):e=t[9],c=a.map(e),t[3]=a,t[4]=n,t[5]=o,t[6]=c}else c=t[6];let l;return t[10]!==s||t[11]!==c?(l=(0,y.jsxs)(y.Fragment,{children:[s,c]}),t[10]=s,t[11]=c,t[12]=l):l=t[12],l}function ye({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,rowVar:r,rows:o,colVar:l,cols:u,cells:d,unit:f,currency:p,higherBetter:h=!0,baseCell:g,footer:_,delay:v}){let b=i[t]||i.table,[x,S]=(0,m.useState)(null),C=(0,m.useMemo)(()=>c(d.flat()),[d]),w=e=>{if(!C||C[0]===C[1])return`transparent`;let t=(e-C[0])/(C[1]-C[0]);return h||(t=1-t),`color-mix(in oklab, ${t>=.5?`var(--insight)`:`var(--danger)`} ${(Math.abs(t-.5)*2*26).toFixed(0)}%, transparent)`},T=e=>s(e,{unit:p?void 0:f,currency:p});return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(v||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(b,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`tb-sens`,onMouseLeave:()=>S(null),children:(0,y.jsxs)(`table`,{className:`tb-sens-tbl`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsxs)(`th`,{className:`tb-sens-corner`,children:[(0,y.jsx)(`span`,{className:`tb-sens-rowvar`,children:r}),(0,y.jsx)(`span`,{className:`tb-sens-colvar`,children:l})]}),u.map((e,t)=>(0,y.jsx)(`th`,{className:`tb-sens-colh tab-num`,children:e},t))]})}),(0,y.jsx)(`tbody`,{children:o.map((e,t)=>(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`tb-sens-rowh tab-num`,children:e}),u.map((e,n)=>{let r=d[t]?.[n],i=g&&g[0]===t&&g[1]===n,a=x&&x[0]===t&&x[1]===n;return(0,y.jsx)(`td`,{className:`tb-sens-cell tab-num`+(i?` is-base`:``)+(a?` is-hot`:``),style:{background:r==null?void 0:w(r)},onMouseEnter:()=>S([t,n]),children:r==null?`—`:T(r)},n)})]},t))})]})}),_&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:a(_)})]})}function be(e){return e.value<e.low?`low`:e.value>e.high?`high`:`ok`}function xe({title:e,icon:t=`shield`,iconColor:n=`var(--presence)`,results:r,caption:o,footer:c,delay:l}){let u=i[t]||i.shield,d=r.findIndex(e=>be(e)!==`ok`);return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),o&&(0,y.jsx)(`div`,{className:`tb-lab-cap`,children:o}),(0,y.jsx)(`div`,{className:`tb-lab`,children:r.map((e,t)=>{let n=be(e),r=(e.high-e.low||1)*.4,a=e.low-r,o=e.high+r,c=e=>Math.max(0,Math.min(100,(e-a)/(o-a)*100)),l=e.prior==null?0:Math.sign(e.value-e.prior);return(0,y.jsxs)(`div`,{className:`tb-lab-row flag-`+n,children:[(0,y.jsx)(`div`,{className:`tb-lab-name`,children:e.name}),(0,y.jsxs)(`div`,{className:`tb-lab-val tab-num`,"data-mark":t===d?`underline`:void 0,children:[s(e.value,{unit:e.unit}),l!==0&&(0,y.jsx)(i.arrowUp,{className:`tb-lab-trend`,style:{transform:l<0?`rotate(180deg)`:`none`}})]}),(0,y.jsxs)(`div`,{className:`tb-lab-track`,children:[(0,y.jsx)(`span`,{className:`tb-lab-band`,style:{left:`${c(e.low)}%`,width:`${c(e.high)-c(e.low)}%`}}),(0,y.jsx)(`span`,{className:`tb-lab-mark`,style:{left:`${c(e.value)}%`}})]}),(0,y.jsxs)(`div`,{className:`tb-lab-ref tab-num`,children:[s(e.low),`–`,s(e.high)]}),(0,y.jsx)(`div`,{className:`tb-lab-flag`,children:n===`high`?`High`:n===`low`?`Low`:``})]},t)})}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:a(c)})]})}function Se({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,recipes:r,ingredients:o,matrix:s,quantities:c,highlight:l,footer:u,delay:d}){let f=i[t]||i.table;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`im-scroll`,children:(0,y.jsxs)(`table`,{className:`im-table`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`im-th im-th--label`,children:`Ingredient`}),r.map((e,t)=>(0,y.jsx)(`th`,{className:`im-th`,children:e},t))]})}),(0,y.jsx)(`tbody`,{children:o.map((e,t)=>{let n=l&&e.toLowerCase()===l.toLowerCase();return(0,y.jsxs)(`tr`,{className:`im-row${n?` highlighted`:``}`,children:[(0,y.jsx)(`td`,{className:`im-td-label`,children:e}),r.map((e,n)=>{let r=s[t]?.[n]??!1,a=c?.[t]?.[n];return(0,y.jsx)(`td`,{className:`im-td${r?` used`:``}`,children:r?a?(0,y.jsx)(`span`,{className:`im-qty`,children:a}):(0,y.jsx)(i.check,{className:`ic`,style:{width:13,height:13,color:`var(--insight)`}}):(0,y.jsx)(`span`,{className:`im-empty`})},n)})]},t)})})]})}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}function Ce({title:e,verb:t,language:n,tenses:r,note:i,delay:a}){let o=r[0]?.forms.map(e=>e.pronoun)??[];return(0,y.jsxs)(`div`,{className:`card reveal tbl tbl-cj`,style:{"--delay":(a||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`tbl-cj-header`,children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,style:{marginBottom:0},children:[n&&(0,y.jsx)(`span`,{className:`tbl-cj-lang`,children:n}),e]}),(0,y.jsx)(`div`,{className:`tbl-cj-verb`,children:t})]}),(0,y.jsx)(`div`,{className:`tbl-cj-scroll`,children:(0,y.jsxs)(`table`,{className:`tbl-cj-table`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`tbl-cj-corner`,scope:`col`}),r.map(e=>(0,y.jsx)(`th`,{className:`tbl-cj-tense-head`,scope:`col`,children:e.name},e.name))]})}),(0,y.jsx)(`tbody`,{children:o.map((e,t)=>(0,y.jsxs)(`tr`,{className:`tbl-cj-row`,children:[(0,y.jsx)(`th`,{className:`tbl-cj-pronoun`,scope:`row`,children:e}),r.map(e=>{let n=e.forms[t];return(0,y.jsx)(`td`,{className:`tbl-cj-form${n?.irregular?` tbl-cj-irregular`:``}`,children:n?.form??`—`},e.name)})]},e))})]})}),r.some(e=>e.forms.some(e=>e.irregular))&&(0,y.jsxs)(`div`,{className:`tbl-cj-legend faint`,children:[(0,y.jsx)(`span`,{className:`tbl-cj-legend-swatch`}),` irregular form`]}),i&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:i})]})}var B={safe:{color:`var(--insight)`,icon:`check`,label:`Safe`},caution:{color:`var(--warning)`,icon:`alert`,label:`Caution`},avoid:{color:`var(--danger)`,icon:`x`,label:`Avoid`},unknown:{color:`var(--text-faint)`,icon:`eye`,label:`Check a pro`}},we=[`safe`,`caution`,`avoid`,`unknown`];function Te({title:e,icon:t=`shield`,iconColor:n=`var(--presence)`,rows:r,columns:o,cells:s,legend:c=!0,footer:l,delay:u}){let d=i[t]||i.shield,f=r??[],p=o??[],m=(e,t)=>`${e.trim().toLowerCase()}${t.trim().toLowerCase()}`,h=new Map;for(let e of s??[]){if(!e?.row||!e?.col)continue;let t=B[e.level]?e.level:`unknown`;h.set(m(e.row,e.col),{level:t,reason:e.reason})}let g=we.filter(e=>[...h.values()].some(t=>t.level===e)),_=`minmax(116px, 1.1fr) repeat(${Math.max(p.length,1)}, minmax(132px, 1fr))`;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`clm-scroll`,children:(0,y.jsxs)(`div`,{className:`clm-grid`,style:{gridTemplateColumns:_},role:`grid`,children:[(0,y.jsx)(`div`,{className:`clm-corner`,role:`columnheader`}),p.map((e,t)=>(0,y.jsx)(`div`,{className:`clm-colh`,role:`columnheader`,title:e,children:e},t)),f.map((e,t)=>(0,y.jsxs)(`div`,{className:`clm-row`,role:`row`,children:[(0,y.jsx)(`div`,{className:`clm-rowh`,role:`rowheader`,title:e,children:e}),p.map((t,n)=>{let r=h.get(m(e,t))??{level:`unknown`},a=B[r.level],o=i[a.icon]||i.eye;return(0,y.jsxs)(`div`,{className:`clm-cell clm-${r.level}`,style:{"--clm-c":a.color},role:`gridcell`,children:[(0,y.jsxs)(`span`,{className:`clm-tag`,children:[(0,y.jsx)(o,{className:`ic clm-tag-ic`}),(0,y.jsx)(`span`,{className:`clm-tag-lbl`,children:a.label})]}),(0,y.jsx)(`span`,{className:`clm-reason`,children:r.reason||a.label})]},n)})]},t))]})}),c&&g.length>0&&(0,y.jsx)(`div`,{className:`clm-legend`,children:g.map(e=>{let t=B[e],n=i[t.icon]||i.eye;return(0,y.jsxs)(`span`,{className:`clm-leg-item`,style:{"--clm-c":t.color},children:[(0,y.jsx)(n,{className:`ic clm-leg-ic`}),t.label]},e)})}),l&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function Ee(e,t){let n=s(Math.abs(e),{currency:t,decimals:0});return e<0?`(${n})`:n}function De({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,periods:r,rows:o,currency:s=`USD`,caption:c,footer:l,delay:u}){let d=i[t]||i.chart;return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(u||0)+`ms`},children:[e&&(0,y.jsxs)(`div`,{className:`card-eyebrow`,style:{marginBottom:c?4:14},children:[(0,y.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),c&&(0,y.jsx)(`div`,{className:`fs-cap`,children:c}),(0,y.jsx)(`div`,{className:`fs-scroll`,children:(0,y.jsxs)(`table`,{className:`fs-tbl`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`fs-h-label`,children:`\xA0`}),r.map((e,t)=>(0,y.jsx)(`th`,{className:`fs-h-period`,children:e},t))]})}),(0,y.jsx)(`tbody`,{children:o.map((e,t)=>{let n=e.kind||`line`,i=Math.max(0,e.indent||0);return(0,y.jsxs)(`tr`,{className:`fs-row fs-${n}`,children:[(0,y.jsx)(`td`,{className:`fs-label`,style:{paddingLeft:2+i*14},children:e.label}),r.map((t,n)=>{let r=e.values[n];return(0,y.jsx)(`td`,{className:`fs-val tab-num ${r!=null&&r<0?`neg`:``}`,children:r==null?`—`:Ee(r,s)},n)})]},t)})})]})}),l&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function Oe({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,cohorts:r,periods:o,unit:c=`%`,caption:l,footer:u,delay:d}){let f=i[t]||i.layers,[p,h]=(0,m.useState)(null),g=Math.max(0,...r.map(e=>e.values.length)),_=o&&o.length?o:Array.from({length:g},(e,t)=>`M${t}`),v=r.flatMap(e=>e.values).filter(e=>e!=null),b=v.length?Math.min(...v):0,x=(v.length?Math.max(...v):1)-b||1,S=e=>(e-b)/x,C=Array.from({length:g},(e,t)=>{let n=r.map(e=>e.values[t]).filter(e=>e!=null);return n.length?n.reduce((e,t)=>e+t,0)/n.length:null}),w=e=>s(e,{decimals:e%1==0?0:1})+c;return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(d||0)+`ms`},children:[e&&(0,y.jsxs)(`div`,{className:`card-eyebrow`,style:{marginBottom:l?4:14},children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),l&&(0,y.jsx)(`div`,{className:`fs-cap`,children:l}),(0,y.jsx)(`div`,{className:`cg-scroll`,children:(0,y.jsxs)(`table`,{className:`cg-tbl`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`cg-h-cohort`,children:`Cohort`}),_.map((e,t)=>(0,y.jsx)(`th`,{className:`cg-h-period ${p?.c===t?`on`:``}`,children:e},t))]})}),(0,y.jsx)(`tbody`,{children:r.map((e,t)=>(0,y.jsxs)(`tr`,{children:[(0,y.jsxs)(`th`,{className:`cg-cohort`,scope:`row`,children:[(0,y.jsx)(`span`,{className:`cg-cohort-name`,children:e.label}),e.size!=null&&(0,y.jsx)(`span`,{className:`cg-cohort-size`,children:s(e.size,{compact:e.size>=1e4})})]}),Array.from({length:g},(n,r)=>{let i=e.values[r];if(i==null)return(0,y.jsx)(`td`,{className:`cg-cell cg-empty`},r);let a=Math.max(0,Math.min(1,S(i))),o=p?.r===t&&p?.c===r;return(0,y.jsx)(`td`,{className:`cg-cell tab-num ${o?`hot`:``}`,style:{background:`color-mix(in oklab, var(--insight) ${(a*.82+.06)*100}%, transparent)`,color:a>.5?`var(--surface-deep)`:`var(--text-secondary)`},onMouseEnter:()=>h({r:t,c:r}),onMouseLeave:()=>h(null),children:w(i)},r)})]},t))}),(0,y.jsx)(`tfoot`,{children:(0,y.jsxs)(`tr`,{className:`cg-foot`,children:[(0,y.jsx)(`th`,{className:`cg-cohort cg-foot-label`,scope:`row`,children:`Average`}),C.map((e,t)=>(0,y.jsx)(`td`,{className:`cg-cell cg-avg tab-num`,children:e==null?``:w(e)},t))]})})]})}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}var ke=(e,t)=>Math.max(1,Math.min(t,Math.round(e)));function Ae(e,t,n){let r=e*t/(n*n);return r>=.55?`high`:r>=.28?`med`:`low`}var je={low:`var(--insight)`,med:`var(--warning)`,high:`var(--danger)`};function Me({title:e,icon:t=`shield`,iconColor:n=`var(--presence)`,risks:r,size:o=5,caption:s,footer:c,delay:l}){let u=i[t]||i.shield,d=o,[f,p]=(0,m.useState)(null),h=r.map(e=>({...e,likelihood:ke(e.likelihood,d),impact:ke(e.impact,d)})),g=(e,t)=>h.map((e,t)=>({r:e,idx:t})).filter(({r:n})=>n.likelihood===e&&n.impact===t),_=Array.from({length:d},(e,t)=>d-t),v=Array.from({length:d},(e,t)=>t+1);return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(l||0)+`ms`},children:[e&&(0,y.jsxs)(`div`,{className:`card-eyebrow`,style:{marginBottom:s?4:14},children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),s&&(0,y.jsx)(`div`,{className:`fs-cap`,children:s}),(0,y.jsxs)(`div`,{className:`rm-plot`,children:[(0,y.jsx)(`div`,{className:`rm-ylabel`,children:`Likelihood`}),(0,y.jsxs)(`div`,{className:`rm-grid-wrap`,children:[(0,y.jsx)(`div`,{className:`rm-grid`,style:{gridTemplateColumns:`repeat(${d}, minmax(0, 1fr))`},children:_.map(e=>v.map(t=>{let n=Ae(e,t,d),r=je[n],i=g(e,t);return(0,y.jsx)(`div`,{className:`rm-cell rm-${n}`,style:{background:`color-mix(in oklab, ${r} 16%, transparent)`,borderColor:`color-mix(in oklab, ${r} 30%, transparent)`},children:i.map(({r:e,idx:t})=>(0,y.jsx)(`span`,{className:`rm-chip ${f===t?`hot`:``}`,style:{background:`color-mix(in oklab, ${r} 26%, var(--surface-elevated))`,borderColor:r},onMouseEnter:()=>p(t),onMouseLeave:()=>p(null),children:e.label},t))},`${e}-${t}`)}))}),(0,y.jsx)(`div`,{className:`rm-xlabel`,children:`Impact →`})]})]}),(0,y.jsx)(`ol`,{className:`rm-register`,children:h.map((e,t)=>{let n=je[Ae(e.likelihood,e.impact,d)];return(0,y.jsxs)(`li`,{className:`rm-reg-row ${f===t?`hot`:``}`,onMouseEnter:()=>p(t),onMouseLeave:()=>p(null),children:[(0,y.jsx)(`span`,{className:`rm-reg-dot`,style:{background:n}}),(0,y.jsxs)(`div`,{className:`rm-reg-body`,children:[(0,y.jsxs)(`div`,{className:`rm-reg-top`,children:[(0,y.jsx)(`span`,{className:`rm-reg-label`,children:e.label}),e.owner&&(0,y.jsx)(`span`,{className:`rm-reg-owner`,children:e.owner})]}),e.mitigation&&(0,y.jsx)(`div`,{className:`rm-reg-mit`,children:e.mitigation})]})]},t)})}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var Ne={met:{color:`var(--insight)`,label:`Met`},partial:{color:`var(--warning)`,label:`Partial`},ongoing:{color:`var(--presence)`,label:`Ongoing`}};function Pe({title:e,icon:t=`shield`,iconColor:n=`var(--presence)`,entries:r,caption:o,footer:s,delay:c}){let l=i[t]||i.shield,u=r??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[e&&(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),o&&(0,y.jsx)(`div`,{className:`fs-cap`,children:o}),(0,y.jsx)(`div`,{className:`cp-scroll`,children:(0,y.jsxs)(`div`,{className:`cp-grid`,role:`table`,children:[(0,y.jsxs)(`div`,{className:`cp-head`,role:`row`,children:[(0,y.jsx)(`span`,{className:`cp-colh`,role:`columnheader`,children:`Assessment / Dx`}),(0,y.jsx)(`span`,{className:`cp-colh`,role:`columnheader`,children:`Goal`}),(0,y.jsx)(`span`,{className:`cp-colh`,role:`columnheader`,children:`Interventions`}),(0,y.jsx)(`span`,{className:`cp-colh`,role:`columnheader`,children:`Rationale`})]}),u.map((e,t)=>{let n=Ne[e.status??`ongoing`];return(0,y.jsxs)(`div`,{className:`cp-row`,role:`row`,style:{"--cp-c":n.color},children:[(0,y.jsxs)(`div`,{className:`cp-cell cp-assess`,role:`cell`,children:[(0,y.jsx)(`span`,{className:`cp-assess-text`,children:e.assessment}),e.diagnosis&&(0,y.jsx)(`span`,{className:`cp-dx`,children:e.diagnosis})]}),(0,y.jsxs)(`div`,{className:`cp-cell cp-goal`,role:`cell`,children:[(0,y.jsx)(`span`,{className:`cp-goal-text`,children:e.goal}),(0,y.jsxs)(`span`,{className:`cp-status`,children:[(0,y.jsx)(`span`,{className:`cp-status-dot`}),n.label]})]}),(0,y.jsx)(`div`,{className:`cp-cell`,role:`cell`,children:(0,y.jsx)(`ul`,{className:`cp-intervs`,children:(e.interventions??[]).map((e,t)=>(0,y.jsx)(`li`,{className:`cp-interv`,children:e},t))})}),(0,y.jsx)(`div`,{className:`cp-cell cp-rationale`,role:`cell`,children:e.rationale||(0,y.jsx)(`span`,{className:`cp-dash`,children:`—`})})]},t)})]})}),s&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function Fe({title:e,icon:t=`shield`,iconColor:n=`var(--presence)`,drug:r,route:o,computed:s,ladder:c,adjustments:l,caption:u,footer:d,delay:f}){let p=i[t]||i.shield,m=c??[],h=e=>m.length>1?38+e/(m.length-1)*62:100;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[e&&(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`dl-head`,children:[(0,y.jsx)(`span`,{className:`dl-drug`,children:r}),o&&(0,y.jsx)(`span`,{className:`dl-route`,children:o}),u&&(0,y.jsx)(`span`,{className:`dl-cap`,children:u})]}),s&&(0,y.jsxs)(`div`,{className:`dl-calc`,children:[(0,y.jsxs)(`div`,{className:`dl-calc-side`,children:[(0,y.jsx)(`span`,{className:`dl-calc-tag`,children:`Input`}),(0,y.jsx)(`span`,{className:`dl-calc-val`,children:s.input})]}),(0,y.jsxs)(`div`,{className:`dl-calc-op`,children:[(0,y.jsx)(i.chevR,{className:`ic`}),(0,y.jsx)(`span`,{className:`dl-calc-formula`,title:s.formula,children:s.formula}),(0,y.jsx)(i.chevR,{className:`ic`})]}),(0,y.jsxs)(`div`,{className:`dl-calc-side dl-calc-out`,children:[(0,y.jsx)(`span`,{className:`dl-calc-tag`,children:`Starting dose`}),(0,y.jsx)(`span`,{className:`dl-calc-val`,children:s.result})]})]}),(0,y.jsx)(`div`,{className:`dl-ladder`,children:m.map((e,t)=>(0,y.jsxs)(`div`,{className:`dl-rung ${e.ceiling?`ceiling`:``}`,style:{"--dl-h":`${h(t)}%`},children:[(0,y.jsx)(`span`,{className:`dl-bar`}),(0,y.jsxs)(`div`,{className:`dl-rung-body`,children:[(0,y.jsxs)(`div`,{className:`dl-rung-top`,children:[(0,y.jsx)(`span`,{className:`dl-step`,children:e.step}),(0,y.jsx)(`span`,{className:`dl-dose`,children:e.dose}),e.ceiling&&(0,y.jsxs)(`span`,{className:`dl-ceiling-tag`,children:[(0,y.jsx)(i.alert,{className:`ic`}),` Max`]})]}),e.note&&(0,y.jsx)(`span`,{className:`dl-note`,children:e.note})]})]},t))}),l&&l.length>0&&(0,y.jsxs)(`div`,{className:`dl-adjust`,children:[(0,y.jsx)(`div`,{className:`dl-adjust-h`,children:`Dose adjustments`}),(0,y.jsx)(`ul`,{className:`dl-adjust-list`,children:l.map((e,t)=>(0,y.jsxs)(`li`,{className:`dl-adjust-row`,children:[(0,y.jsx)(`span`,{className:`dl-adjust-cond`,children:e.condition}),(0,y.jsx)(`span`,{className:`dl-adjust-change`,children:e.change})]},t))})]}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(d)})]})}function Ie({title:e,icon:t=`cart`,iconColor:n=`var(--presence)`,columns:r,rows:o,unit:s,highlight:c,guide:l,caption:u,footer:d,delay:f}){let p=i[t]||i.cart,m=e=>e.trim().toLowerCase(),h=c?m(c):null;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[e&&(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),u&&(0,y.jsx)(`div`,{className:`sz-cap`,children:u}),(0,y.jsx)(`div`,{className:`sz-scroll`,children:(0,y.jsxs)(`table`,{className:`sz-table`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`sz-th sz-th--size`,children:`Size`}),r.map((e,t)=>(0,y.jsx)(`th`,{className:`sz-th`,children:e},t))]})}),(0,y.jsx)(`tbody`,{children:o.map((e,t)=>{let n=h!==null&&m(e.size)===h;return(0,y.jsxs)(`tr`,{className:`sz-row${n?` on`:``}`,children:[(0,y.jsxs)(`th`,{className:`sz-size`,scope:`row`,children:[e.size,n&&(0,y.jsx)(`span`,{className:`sz-pick`,children:`Your size`})]}),r.map((t,n)=>(0,y.jsx)(`td`,{className:`sz-td`,children:e.values[n]??(0,y.jsx)(`span`,{className:`sz-dash`,children:`—`})},n))]},t)})})]})}),(l||s)&&(0,y.jsxs)(`div`,{className:`sz-guide`,children:[(0,y.jsx)(i.sliders,{className:`sz-guide-ic`}),(0,y.jsxs)(`span`,{className:`sz-guide-t`,children:[s&&(0,y.jsxs)(`b`,{className:`sz-guide-unit`,children:[s,`.`]}),` `,l]})]}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(d)})]})}function Le(e){let t=(0,M.c)(4),{value:n}=e;if(n===!0){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,y.jsx)(`span`,{className:`pt-yes`,children:(0,y.jsx)(i.check,{className:`ic`,"aria-label":`included`})}),t[0]=e):e=t[0],e}if(typeof n==`string`&&n.length>0){let e;return t[1]===n?e=t[2]:(e=(0,y.jsx)(`span`,{className:`pt-text`,children:n}),t[1]=n,t[2]=e),e}let r;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,y.jsx)(`span`,{className:`pt-no`,"aria-label":`not included`,children:`—`}),t[3]=r):r=t[3],r}function Re({plan:e,i:t}){return(0,y.jsxs)(`div`,{className:`pt-plan m-stagger-item m-scale-in`+(e.highlighted?` hot`:``),style:{"--i":t},children:[e.highlighted&&(0,y.jsx)(`span`,{className:`pt-ribbon`,children:`Most popular`}),(0,y.jsx)(`div`,{className:`pt-name`,children:e.name||`Plan ${t+1}`}),(0,y.jsxs)(`div`,{className:`pt-price-row`,children:[(0,y.jsx)(`span`,{className:`pt-price`,children:e.price}),e.period&&(0,y.jsx)(`span`,{className:`pt-period`,children:e.period})]}),e.tagline&&(0,y.jsx)(`div`,{className:`pt-tagline`,children:e.tagline}),e.ctaLabel&&(0,y.jsx)(`span`,{className:`pt-cta`,children:e.ctaLabel})]})}function ze({title:e,icon:t=`cart`,iconColor:n=`var(--presence)`,plans:r,features:o,caption:s,footer:c,delay:u}){let d=i[t]||i.cart,f=r?.length??0;if(f===0)return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(l,{message:`No plans to compare`})]});let p=`minmax(128px, 1.1fr) repeat(${f}, minmax(148px, 1fr))`,m=o??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),s&&(0,y.jsx)(`div`,{className:`pt-cap`,children:s}),(0,y.jsx)(`div`,{className:`pt-scroll`,children:(0,y.jsxs)(`div`,{className:`pt-grid`,style:{gridTemplateColumns:p,"--pt-cols":p},role:`grid`,children:[(0,y.jsx)(`div`,{className:`pt-corner`,role:`columnheader`}),r.map((e,t)=>(0,y.jsx)(`div`,{role:`columnheader`,children:(0,y.jsx)(Re,{plan:e,i:t})},t)),m.map((e,t)=>(0,y.jsxs)(`div`,{className:`pt-row m-stagger-item m-fade-rise`,style:{"--i":t},role:`row`,children:[(0,y.jsx)(`div`,{className:`pt-feat`,role:`rowheader`,title:e.label,children:e.label}),r.map((t,n)=>(0,y.jsx)(`div`,{className:`pt-cell`+(t.highlighted?` hot`:``),role:`gridcell`,children:(0,y.jsx)(Le,{value:e.values?.[n]})},n))]},t))]})}),m.length>0&&(0,y.jsxs)(`div`,{className:`pt-legend`,children:[(0,y.jsxs)(`span`,{className:`pt-leg-item`,children:[(0,y.jsx)(i.check,{className:`ic pt-leg-ic`}),` included`]}),(0,y.jsxs)(`span`,{className:`pt-leg-item`,children:[(0,y.jsx)(`span`,{className:`pt-leg-dash`,children:`—`}),` not included`]})]}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var V={R:{color:`var(--presence)`,label:`Responsible`},A:{color:`var(--warning)`,label:`Accountable`},C:{color:`var(--insight)`,label:`Consulted`},I:{color:`var(--text-muted)`,label:`Informed`}},Be=[`R`,`A`,`C`,`I`];function Ve({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,tasks:r,roles:o,cells:s,legend:c=!0,footer:u,delay:d}){let f=i[t]||i.table,p=r??[],m=o??[];if(p.length===0||m.length===0)return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(l,{message:`No tasks or roles to map`})]});let h=(e,t)=>`${e.trim().toLowerCase()} ${t.trim().toLowerCase()}`,g=new Map;for(let e of s??[])!e?.task||!e?.role||!V[e.rating]||g.set(h(e.task,e.role),e.rating);let _=Be.filter(e=>[...g.values()].includes(e)),v=`minmax(120px, 1.2fr) repeat(${m.length}, minmax(88px, 1fr))`;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`raci-scroll`,children:(0,y.jsxs)(`div`,{className:`raci-grid`,style:{gridTemplateColumns:v},role:`grid`,children:[(0,y.jsx)(`div`,{className:`raci-corner`,role:`columnheader`}),m.map((e,t)=>(0,y.jsx)(`div`,{className:`raci-colh`,role:`columnheader`,title:e,children:e},t)),p.map((e,t)=>(0,y.jsxs)(`div`,{className:`raci-row m-stagger-item m-fade-rise`,style:{"--i":t},role:`row`,children:[(0,y.jsx)(`div`,{className:`raci-rowh`,role:`rowheader`,title:e,children:e}),m.map((t,n)=>{let r=g.get(h(e,t));if(!r)return(0,y.jsx)(`div`,{className:`raci-cell raci-empty`,role:`gridcell`,children:(0,y.jsx)(`span`,{className:`raci-dash`,children:`–`})},n);let i=V[r];return(0,y.jsx)(`div`,{className:`raci-cell`,style:{"--raci-c":i.color},role:`gridcell`,title:i.label,children:(0,y.jsx)(`span`,{className:`raci-badge`,children:r})},n)})]},t))]})}),c&&_.length>0&&(0,y.jsx)(`div`,{className:`raci-legend`,children:_.map(e=>(0,y.jsxs)(`span`,{className:`raci-leg-item`,style:{"--raci-c":V[e].color},children:[(0,y.jsx)(`span`,{className:`raci-leg-badge`,children:e}),V[e].label]},e))}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}var H=e=>typeof e==`string`?e:e==null?``:String(e);function He({title:e,icon:t=`check`,iconColor:n=`var(--presence)`,criteria:r,levels:o,cells:s,scores:c,maxScore:u,footer:f,delay:p}){let h=i[t]||i.check,g=Array.isArray(r)?r:r?[String(r)]:[],_=Array.isArray(o)?o:o?[String(o)]:[],v=(0,m.useMemo)(()=>{let e=(e,t)=>`${H(e).trim().toLowerCase()} ${H(t).trim().toLowerCase()}`,t=new Map;for(let n of s??[])!n?.criterion||!n?.level||t.set(e(n.criterion,n.level),{descriptor:n.descriptor,achieved:n.achieved});return t},[s]),b=(0,m.useMemo)(()=>Array.isArray(c)?c:[],[c]),x=(0,m.useMemo)(()=>{let e=new Map;for(let t of b)t?.criterion&&e.set(H(t.criterion).trim().toLowerCase(),t.score);return e},[b]),S=b.length>0,C=(0,m.useMemo)(()=>b.reduce((e,t)=>e+(Number.isFinite(t.score)?t.score:0),0),[b]),w=u==null?void 0:u*g.length,T=d(C,{duration:900,decimals:C%1==0?0:1});if(g.length===0||_.length===0)return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(h,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(l,{message:`No criteria or levels to score`})]});let E=`minmax(130px, 1.1fr) repeat(${_.length}, minmax(150px, 1fr))${S?` minmax(64px, 0.5fr)`:``}`;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(h,{className:`ic`,style:{color:n}}),` `,e,S&&(0,y.jsxs)(`span`,{className:`rub-total`,children:[T,w==null?``:` / ${w}`,` pts`]})]}),(0,y.jsx)(`div`,{className:`rub-scroll`,children:(0,y.jsxs)(`div`,{className:`rub-grid`,style:{gridTemplateColumns:E},role:`grid`,children:[(0,y.jsx)(`div`,{className:`rub-corner`,role:`columnheader`}),_.map((e,t)=>(0,y.jsx)(`div`,{className:`rub-colh`,role:`columnheader`,title:H(e),children:H(e)},t)),S&&(0,y.jsx)(`div`,{className:`rub-colh rub-score-h`,children:`Score`}),g.map((e,t)=>{let n=H(e).trim().toLowerCase(),r=x.get(n);return(0,y.jsxs)(`div`,{className:`rub-row m-stagger-item m-fade-rise`,style:{"--i":t},role:`row`,children:[(0,y.jsx)(`div`,{className:`rub-rowh`,role:`rowheader`,title:H(e),children:H(e)}),_.map((e,t)=>{let r=v.get(`${n} ${H(e).trim().toLowerCase()}`);return(0,y.jsxs)(`div`,{className:`rub-cell`+(r?.achieved?` achieved`:``),role:`gridcell`,children:[r?.achieved&&(0,y.jsx)(i.check,{className:`ic rub-check`}),(0,y.jsx)(`span`,{className:`rub-desc`,children:r?.descriptor||`—`})]},t)}),S&&(0,y.jsx)(`div`,{className:`rub-cell rub-score-cell`,role:`gridcell`,children:r==null?`—`:(0,y.jsxs)(`span`,{className:`tab-num`,children:[r,u==null?``:`/${u}`]})})]},t)})]})}),f&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}var U=e=>typeof e==`string`?e:e==null?``:String(e);function Ue(e,t,n){let r=n-t||1,i=Math.max(0,Math.min(1,(e-t)/r));return i>=.66?`var(--insight)`:i>=.33?`var(--warning)`:`var(--danger)`}function We({title:e,icon:t=`chat`,iconColor:n=`var(--presence)`,candidates:r,criteria:o,cells:s,scale:c,footer:u,delay:d}){let f=i[t]||i.chat,p=(0,m.useMemo)(()=>Array.isArray(r)?r:r?[String(r)]:[],[r]),h=(0,m.useMemo)(()=>Array.isArray(o)?o:o?[String(o)]:[],[o]),g=c?.min??1,_=c?.max??5,v=(0,m.useMemo)(()=>{let e=(e,t)=>`${U(e).trim().toLowerCase()} ${U(t).trim().toLowerCase()}`,t=new Map;for(let n of s??[])!n?.candidate||!n?.criterion||!Number.isFinite(n.rating)||t.set(e(n.candidate,n.criterion),{rating:n.rating,note:n.note});return t},[s]),b=(0,m.useMemo)(()=>{let e=new Map;for(let t of p){let n=U(t).trim().toLowerCase(),r=h.map(e=>v.get(`${n} ${U(e).trim().toLowerCase()}`)?.rating).filter(e=>e!=null);r.length>0&&e.set(t,r.reduce((e,t)=>e+t,0)/r.length)}return e},[p,h,v]);if(p.length===0||h.length===0)return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(l,{message:`No candidates or criteria to score`})]});let x=`minmax(128px, 1.1fr) repeat(${h.length}, minmax(130px, 1fr))`;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`isc-scroll`,children:(0,y.jsxs)(`div`,{className:`isc-grid`,style:{gridTemplateColumns:x},role:`grid`,children:[(0,y.jsx)(`div`,{className:`isc-corner`,role:`columnheader`}),h.map((e,t)=>(0,y.jsx)(`div`,{className:`isc-colh`,role:`columnheader`,title:U(e),children:U(e)},t)),p.map((e,t)=>{let n=b.get(e);return(0,y.jsxs)(`div`,{className:`isc-row m-stagger-item m-fade-rise`,style:{"--i":t},role:`row`,children:[(0,y.jsxs)(`div`,{className:`isc-rowh`,role:`rowheader`,title:U(e),children:[(0,y.jsx)(`span`,{className:`isc-name`,children:U(e)}),n!=null&&(0,y.jsx)(`span`,{className:`isc-avg`,style:{"--isc-c":Ue(n,g,_)},children:n.toFixed(1)})]}),h.map((t,n)=>{let r=v.get(`${U(e).trim().toLowerCase()} ${U(t).trim().toLowerCase()}`);if(!r)return(0,y.jsx)(`div`,{className:`isc-cell isc-empty`,role:`gridcell`,children:(0,y.jsx)(`span`,{className:`isc-dash`,children:`—`})},n);let i=Ue(r.rating,g,_);return(0,y.jsxs)(`div`,{className:`isc-cell`,style:{"--isc-c":i},role:`gridcell`,children:[(0,y.jsxs)(`span`,{className:`isc-badge tab-num`,children:[r.rating,(0,y.jsxs)(`span`,{className:`isc-scale`,children:[`/`,_]})]}),r.note&&(0,y.jsx)(`span`,{className:`isc-note`,children:r.note})]},n)})]},t)})]})}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}function W(e){return e>=97?`A+`:e>=93?`A`:e>=90?`A-`:e>=87?`B+`:e>=83?`B`:e>=80?`B-`:e>=77?`C+`:e>=73?`C`:e>=70?`C-`:e>=67?`D+`:e>=63?`D`:e>=60?`D-`:`F`}function G(e){let t=e[0];return t===`A`?`var(--insight)`:t===`B`?`var(--presence)`:t===`C`?`var(--warning)`:`var(--danger)`}function Ge({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,students:r,assignments:o,cells:s,showClassAverage:c=!0,footer:u,delay:f}){let p=i[t]||i.table,h=(0,m.useMemo)(()=>r??[],[r]),g=(0,m.useMemo)(()=>o??[],[o]),_=(0,m.useMemo)(()=>{let e=(e,t)=>`${e.trim().toLowerCase()} ${t.trim().toLowerCase()}`,t=new Map;for(let n of s??[])!n?.student||!n?.assignment||!Number.isFinite(n.score)||t.set(e(n.student,n.assignment),{score:n.score,maxScore:n.maxScore??100});return t},[s]),{avgByStudent:v,classAvg:b}=(0,m.useMemo)(()=>{let e=new Map,t=[];for(let n of h){let r=n.trim().toLowerCase(),i=g.map(e=>_.get(`${r} ${e.trim().toLowerCase()}`)).filter(e=>e!=null).map(e=>e.score/(e.maxScore||1)*100);i.length>0&&(e.set(n,i.reduce((e,t)=>e+t,0)/i.length),t.push(...i))}return{avgByStudent:e,classAvg:t.length>0?t.reduce((e,t)=>e+t,0)/t.length:0}},[h,g,_]),x=d(b,{duration:900,decimals:0});if(h.length===0||g.length===0)return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(l,{message:`No students or assignments to grade`})]});let S=c,C=`minmax(128px, 1.1fr) repeat(${g.length}, minmax(104px, 1fr))${S?` minmax(84px, 0.6fr)`:``}`;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e,c&&(0,y.jsxs)(`span`,{className:`gb-total`,style:{"--gb-c":G(W(b))},children:[`class avg `,x,`%`]})]}),(0,y.jsx)(`div`,{className:`gb-scroll`,children:(0,y.jsxs)(`div`,{className:`gb-grid`,style:{gridTemplateColumns:C},role:`grid`,children:[(0,y.jsx)(`div`,{className:`gb-corner`,role:`columnheader`}),g.map((e,t)=>(0,y.jsx)(`div`,{className:`gb-colh`,role:`columnheader`,title:e,children:e},t)),S&&(0,y.jsx)(`div`,{className:`gb-colh gb-avg-h`,children:`Average`}),h.map((e,t)=>{let n=v.get(e);return(0,y.jsxs)(`div`,{className:`gb-row m-stagger-item m-fade-rise`,style:{"--i":t},role:`row`,children:[(0,y.jsx)(`div`,{className:`gb-rowh`,role:`rowheader`,title:e,children:e}),g.map((t,n)=>{let r=_.get(`${e.trim().toLowerCase()} ${t.trim().toLowerCase()}`);if(!r)return(0,y.jsx)(`div`,{className:`gb-cell gb-empty`,role:`gridcell`,children:(0,y.jsx)(`span`,{className:`gb-dash`,children:`—`})},n);let i=W(r.score/(r.maxScore||1)*100);return(0,y.jsxs)(`div`,{className:`gb-cell`,style:{"--gb-c":G(i)},role:`gridcell`,children:[(0,y.jsxs)(`span`,{className:`gb-score tab-num`,children:[r.score,`/`,r.maxScore]}),(0,y.jsx)(`span`,{className:`gb-letter`,children:i})]},n)}),S&&(0,y.jsx)(`div`,{className:`gb-cell gb-avg-cell`,role:`gridcell`,children:n==null?`—`:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(`span`,{className:`gb-score tab-num`,children:[n.toFixed(0),`%`]}),(0,y.jsx)(`span`,{className:`gb-letter`,style:{"--gb-c":G(W(n))},children:W(n)})]})})]},t)})]})}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}var Ke={int:`var(--presence)`,float:`var(--presence-deep)`,str:`var(--insight-soft)`,bool:`var(--warning)`,category:`var(--insight)`,datetime:`var(--presence-soft)`},qe=new Set([`int`,`float`,`str`,`bool`,`category`,`datetime`]);function Je(e){return typeof e==`string`&&qe.has(e)?e:`str`}function Ye(e){let t=typeof e==`number`?e:parseFloat(String(e??``));return Number.isFinite(t)?Math.max(0,Math.min(100,t)):null}function Xe(e){return e>=40?`var(--danger)`:e>=15?`var(--warning)`:`var(--insight)`}function Ze(e){return typeof e==`number`&&Number.isFinite(e)?Math.max(0,Math.round(e)):null}function Qe({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,source:r,nRows:o,nCols:c,variables:u,footer:d,delay:f}){let p=i[t]||i.table,m=(Array.isArray(u)?u:[]).filter(e=>typeof e?.name==`string`&&e.name.trim().length>0),h=Ze(o),g=Ze(c)??(m.length||null),_=[];return r&&_.push(r),h!=null&&_.push(`${s(h,{compact:h>=1e5})} rows`),g!=null&&_.push(`${s(g)} cols`),(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(f||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),_.length>0&&(0,y.jsx)(`div`,{className:`dd-cap`,children:_.join(` · `)}),m.length===0?(0,y.jsx)(l,{message:`No variables documented`}):(0,y.jsx)(`div`,{className:`dd-scroll`,children:(0,y.jsxs)(`div`,{className:`dd-grid`,role:`grid`,children:[(0,y.jsx)(`div`,{className:`dd-colh`,role:`columnheader`,children:`Variable`}),(0,y.jsx)(`div`,{className:`dd-colh`,role:`columnheader`,children:`Type`}),(0,y.jsx)(`div`,{className:`dd-colh`,role:`columnheader`,children:`Unit`}),(0,y.jsx)(`div`,{className:`dd-colh dd-colh-desc`,role:`columnheader`,children:`Description`}),(0,y.jsx)(`div`,{className:`dd-colh dd-colh-miss`,role:`columnheader`,children:`Missing`}),m.map((e,t)=>{let n=Je(e.dtype),r=Ye(e.missingPct);return(0,y.jsxs)(`div`,{className:`dd-row m-stagger-item m-fade-rise`,style:{"--i":t},role:`row`,children:[(0,y.jsx)(`div`,{className:`dd-name`,role:`gridcell`,title:e.name,children:e.name}),(0,y.jsx)(`div`,{role:`gridcell`,children:(0,y.jsx)(`span`,{className:`dd-pill`,style:{"--dd-c":Ke[n]},children:n})}),(0,y.jsx)(`div`,{className:`dd-unit`,role:`gridcell`,children:e.unit||`—`}),(0,y.jsx)(`div`,{className:`dd-desc`,role:`gridcell`,children:e.description||`—`}),(0,y.jsx)(`div`,{className:`dd-miss`,role:`gridcell`,children:r==null?(0,y.jsx)(`span`,{className:`dd-miss-dash`,children:`—`}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`div`,{className:`dd-miss-track`,children:(0,y.jsx)(`div`,{className:`dd-miss-fill`,style:{width:`${r}%`,background:Xe(r)}})}),(0,y.jsxs)(`span`,{className:`dd-miss-pct tab-num`,children:[r%1==0?r:r.toFixed(1),`%`]})]})})]},`${e.name}-${t}`)})]})}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(d)})]})}function $e(e,t,n){return t===`better`||t===`worse`?t:e==null||e===0?`flat`:e>0===n?`better`:`worse`}function et(e){return Number.isFinite(e)?e.toLocaleString(void 0,{maximumFractionDigits:3}):`—`}function tt(e){return e==null||!Number.isFinite(e)||e===0?`±0`:`${e>0?`+`:`−`}${Math.abs(e).toLocaleString(void 0,{maximumFractionDigits:3})}`}function nt({title:e,icon:t=`sliders`,iconColor:n=`var(--presence)`,baseline:r,baselineValue:o,metric:s,rows:c,higherBetter:u=!0,footer:d,delay:f}){let p=i[t]||i.sliders,m=(Array.isArray(c)?c:[]).filter(e=>e&&typeof e.removed==`string`&&e.removed.trim().length>0&&Number.isFinite(e.value)),h=typeof r==`string`&&r.trim().length>0,g=Number.isFinite(o)?o:null;return!h&&m.length===0?(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(f||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(l,{message:`No ablation results to compare`})]}):(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(f||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),s&&(0,y.jsx)(`div`,{className:`abl-cap`,children:s}),(0,y.jsxs)(`div`,{className:`abl-list`,children:[h&&(0,y.jsxs)(`div`,{className:`abl-row abl-baseline`,children:[(0,y.jsx)(`span`,{className:`abl-name`,children:r}),(0,y.jsx)(`span`,{className:`abl-val tab-num`,children:g==null?`—`:et(g)}),(0,y.jsx)(`span`,{className:`abl-delta flat`,children:`baseline`})]}),m.map((e,t)=>{let n=Number.isFinite(e.delta)?e.delta:g==null?null:e.value-g,r=$e(n,e.deltaDirection,u);return(0,y.jsxs)(`div`,{className:`abl-row m-stagger-item m-fade-rise`,style:{"--i":t+1},children:[(0,y.jsxs)(`span`,{className:`abl-name`,children:[`w/o `,e.removed]}),(0,y.jsx)(`span`,{className:`abl-val tab-num`,children:et(e.value)}),(0,y.jsx)(`span`,{className:`abl-delta ${r}`,children:tt(n)})]},t)})]}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(d)})]})}var rt={"nmr-1h":{name:`¹H NMR`,xHeader:`δ (ppm)`,xDecimals:2,showMultInteg:!0,intensityLabel:`Intensity`,assignLabel:`Assignment`,domain:[0,12],descending:!0},"nmr-13c":{name:`¹³C NMR`,xHeader:`δ (ppm)`,xDecimals:1,showMultInteg:!0,intensityLabel:`Intensity`,assignLabel:`Assignment`,domain:[0,220],descending:!0},ir:{name:`IR`,xHeader:`cm⁻¹`,xDecimals:0,showMultInteg:!1,intensityLabel:`Intensity`,assignLabel:`Functional group`,domain:[400,4e3],descending:!0},ms:{name:`MS`,xHeader:`m/z`,xDecimals:0,showMultInteg:!1,intensityLabel:`Rel. abundance`,assignLabel:`Fragment`,domain:[0,100],descending:!1}};function it(e){return e===`nmr-1h`||e===`nmr-13c`||e===`ir`||e===`ms`?e:`nmr-1h`}function K(e){return typeof e==`number`&&Number.isFinite(e)?e:null}function q(e,t){return Number.isFinite(e)?e.toFixed(t):`—`}function J(e){return Math.max(0,Math.min(100,e))}function at({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,technique:r,compound:o,solvent:s,peaks:c,footer:u,delay:d}){let f=i[t]||i.chart,p=rt[it(r)],m=(Array.isArray(c)?c:[]).filter(e=>K(e?.x)!=null),h=[...m].sort((e,t)=>p.descending?t.x-e.x:e.x-t.x),g=m.map(e=>e.x),_=g.length?Math.min(p.domain[0],...g):p.domain[0],v=g.length?Math.max(p.domain[1],...g):p.domain[1],b=v-_||1,x=[p.name,o,s].filter(e=>typeof e==`string`&&e.length>0),S=p.showMultInteg?`minmax(64px, 0.7fr) minmax(56px, 0.55fr) minmax(56px, 0.55fr) minmax(120px, 2fr)`:`minmax(72px, 0.7fr) minmax(110px, 1.1fr) minmax(120px, 2fr)`;return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`spt-cap`,children:x.join(` · `)}),h.length===0?(0,y.jsx)(l,{message:`No peaks to show`}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(`div`,{className:`spt-axis`,role:`img`,"aria-label":`${p.name} axis from ${q(p.descending?v:_,0)} to ${q(p.descending?_:v,0)} ${p.xHeader}`,children:[(0,y.jsx)(`div`,{className:`spt-axis-line`}),h.map((e,t)=>{let n=(e.x-_)/b,r=J((p.descending?1-n:n)*100);return(0,y.jsx)(`div`,{className:`spt-tick`,style:{left:`${r}%`}},t)}),(0,y.jsx)(`span`,{className:`spt-axis-end spt-axis-lo`,children:q(p.descending?v:_,0)}),(0,y.jsx)(`span`,{className:`spt-axis-end spt-axis-hi`,children:q(p.descending?_:v,0)})]}),(0,y.jsx)(`div`,{className:`spt-scroll`,children:(0,y.jsxs)(`div`,{className:`spt-grid`,style:{gridTemplateColumns:S},role:`grid`,children:[(0,y.jsx)(`div`,{className:`spt-colh`,role:`columnheader`,children:p.xHeader}),p.showMultInteg?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`div`,{className:`spt-colh`,role:`columnheader`,children:`Mult.`}),(0,y.jsx)(`div`,{className:`spt-colh`,role:`columnheader`,children:`Integ.`})]}):(0,y.jsx)(`div`,{className:`spt-colh`,role:`columnheader`,children:p.intensityLabel}),(0,y.jsx)(`div`,{className:`spt-colh spt-colh-assign`,role:`columnheader`,children:p.assignLabel}),h.map((e,t)=>{let n=K(e.integration),i=K(e.intensity);return(0,y.jsxs)(`div`,{className:`spt-row m-stagger-item m-fade-rise`,style:{"--i":t},role:`row`,children:[(0,y.jsx)(`div`,{className:`spt-x tab-num`,role:`gridcell`,children:q(e.x,p.xDecimals)}),p.showMultInteg?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`div`,{className:`spt-mult`,role:`gridcell`,children:e.multiplicity||`—`}),(0,y.jsx)(`div`,{className:`spt-integ tab-num`,role:`gridcell`,children:n==null?`—`:`${n}${it(r)===`nmr-1h`?`H`:``}`})]}):(0,y.jsx)(`div`,{className:`spt-intensity`,role:`gridcell`,children:i==null?(0,y.jsx)(`span`,{className:`spt-dash`,children:`—`}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`div`,{className:`spt-int-track`,children:(0,y.jsx)(`div`,{className:`spt-int-fill`,style:{width:`${J(i)}%`}})}),(0,y.jsxs)(`span`,{className:`spt-int-pct tab-num`,children:[Math.round(J(i)),`%`]})]})}),(0,y.jsx)(`div`,{className:`spt-assign`,role:`gridcell`,children:e.assignment||`—`})]},t)})]})})]}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}function Y(e){let t=typeof e==`number`?e:parseFloat(String(e??``));return Number.isFinite(t)?Math.max(1,Math.min(10,Math.round(t))):1}function ot(e){return e>=7?`var(--danger)`:e>=4?`var(--warning)`:`var(--insight)`}function st(e){return e>=200?`var(--danger)`:e>=80?`var(--warning)`:`var(--insight)`}function ct(e){let t=(0,M.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,y.jsx)(`div`,{className:`fma-meta`,children:n}),t[0]=n,t[1]=r),r}function lt({title:e,icon:t=`alert`,iconColor:n=`var(--warning)`,items:r,footer:o,delay:s}){let c=i[t]||i.alert,u=(Array.isArray(r)?r:[]).filter(e=>e&&typeof e.failureMode==`string`&&e.failureMode.trim().length>0).map(e=>{let t=Y(e.severity),n=Y(e.occurrence),r=Y(e.detection);return{item:e,severity:t,occurrence:n,detection:r,rpn:t*n*r}}).sort((e,t)=>t.rpn-e.rpn),d=Math.min(3,u.length);return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(s||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),u.length===0?(0,y.jsx)(l,{message:`No failure modes to analyze`}):(0,y.jsx)(`div`,{className:`fma-list`,children:u.flatMap((e,t)=>{let n=Math.max(0,Math.min(100,e.rpn/1e3*100)),r=(0,y.jsxs)(`div`,{className:`fma-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,y.jsxs)(`div`,{className:`fma-top`,children:[(0,y.jsxs)(`div`,{className:`fma-name`,children:[(0,y.jsx)(`span`,{className:`fma-mode`,children:e.item.failureMode}),e.item.owner&&(0,y.jsx)(`span`,{className:`fma-owner`,children:e.item.owner})]}),(0,y.jsxs)(`div`,{className:`fma-sod`,children:[(0,y.jsxs)(`span`,{className:`fma-badge`,style:{"--fma-c":ot(e.severity)},title:`Severity`,children:[`S `,e.severity]}),(0,y.jsxs)(`span`,{className:`fma-badge`,style:{"--fma-c":ot(e.occurrence)},title:`Occurrence`,children:[`O `,e.occurrence]}),(0,y.jsxs)(`span`,{className:`fma-badge`,style:{"--fma-c":ot(e.detection)},title:`Detection`,children:[`D `,e.detection]})]}),(0,y.jsxs)(`div`,{className:`fma-rpn-wrap`,children:[(0,y.jsx)(`span`,{className:`fma-rpn tab-num`,style:{"--fma-rc":st(e.rpn)},children:e.rpn}),(0,y.jsx)(`span`,{className:`fma-rpn-label`,children:`RPN`})]})]}),(e.item.cause||e.item.effect)&&(0,y.jsxs)(ct,{children:[e.item.cause&&(0,y.jsxs)(`span`,{children:[(0,y.jsx)(`b`,{children:`Cause`}),` `,e.item.cause]}),e.item.effect&&(0,y.jsxs)(`span`,{children:[(0,y.jsx)(`b`,{children:`Effect`}),` `,e.item.effect]})]}),(0,y.jsx)(`div`,{className:`fma-track`,children:(0,y.jsx)(`div`,{className:`fma-fill`,style:{width:`${n}%`,background:st(e.rpn)}})}),(e.item.currentControl||e.item.action)&&(0,y.jsxs)(ct,{children:[e.item.currentControl&&(0,y.jsxs)(`span`,{children:[(0,y.jsx)(`b`,{children:`Control`}),` `,e.item.currentControl]}),e.item.action&&(0,y.jsxs)(`span`,{className:`fma-action`,children:[(0,y.jsx)(`b`,{children:`Action`}),` `,e.item.action]})]})]},t);return t===d-1&&d<u.length?[r,(0,y.jsx)(`div`,{className:`fma-priority-rule`},`rule-${t}`)]:[r]})}),o&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}function ut(e,t){return s(e,{currency:t,decimals:2})}function dt(e){return typeof e==`number`&&Number.isFinite(e)?e:null}function ft({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,rows:r,currency:o=`USD`,footer:s,delay:c}){let u=i[t]||i.layers,d=(Array.isArray(r)?r:[]).filter(e=>e&&typeof e.label==`string`&&e.label.trim().length>0).map(e=>{let t=Math.max(0,Math.round(e.indent||0)),n=e.kind===`subassembly`||e.kind===`total`?e.kind:`part`,r=dt(e.qty),i=dt(e.unitCost);return{row:e,indent:t,kind:n,qty:r,unitCost:i,extended:n===`part`&&i!=null?(r??1)*i:null}}),f=Array(d.length).fill(0),p=[];for(let e=d.length-1;e>=0;e--){let t=d[e],n=0;for(;p.length>0&&p[p.length-1].indent>t.indent;)n+=p.pop().subtotal;f[e]=n,t.kind===`part`&&t.extended!=null&&(n+=t.extended),p.push({indent:t.indent,subtotal:n})}let m=d.filter(e=>e.kind===`part`&&e.extended!=null).reduce((e,t)=>e+t.extended,0);return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),d.length===0?(0,y.jsx)(l,{message:`No parts to list`}):(0,y.jsx)(`div`,{className:`bom-scroll`,children:(0,y.jsxs)(`table`,{className:`bom-tbl`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`bom-h-label`,children:`Item`}),(0,y.jsx)(`th`,{className:`bom-h-part`,children:`Part #`}),(0,y.jsx)(`th`,{className:`bom-h-num`,children:`Qty`}),(0,y.jsx)(`th`,{className:`bom-h-num`,children:`Unit cost`}),(0,y.jsx)(`th`,{className:`bom-h-num`,children:`Ext. cost`})]})}),(0,y.jsx)(`tbody`,{children:d.map((e,t)=>{let n=e.kind===`part`?e.extended:e.kind===`subassembly`?f[t]:m;return(0,y.jsxs)(`tr`,{className:`bom-row bom-${e.kind}`,children:[(0,y.jsx)(`td`,{className:`bom-label`,style:{paddingLeft:2+e.indent*14},children:e.row.label}),(0,y.jsx)(`td`,{className:`bom-part tab-num`,children:e.kind===`part`&&e.row.partNo?e.row.partNo:`—`}),(0,y.jsx)(`td`,{className:`bom-num tab-num`,children:e.kind===`part`&&e.qty!=null?e.qty:`—`}),(0,y.jsx)(`td`,{className:`bom-num tab-num`,children:e.kind===`part`&&e.unitCost!=null?ut(e.unitCost,o):`—`}),(0,y.jsx)(`td`,{className:`bom-num bom-ext tab-num`,children:n==null?`—`:ut(n,o)})]},t)})})]})}),s&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function pt({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,approaches:r,footer:o,delay:s}){let c=i[t]||i.clock,u=(Array.isArray(r)?r:[]).filter(e=>e&&typeof e.name==`string`&&e.name.trim().length>0);return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(s||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),u.length===0?(0,y.jsx)(l,{message:`No approaches to compare`}):(0,y.jsx)(`div`,{className:`cxs-scroll`,children:(0,y.jsxs)(`div`,{className:`cxs-grid`,role:`grid`,"aria-label":e,children:[(0,y.jsx)(`div`,{className:`cxs-colh`,role:`columnheader`,children:`Approach`}),(0,y.jsx)(`div`,{className:`cxs-colh`,role:`columnheader`,children:`Time`}),(0,y.jsx)(`div`,{className:`cxs-colh`,role:`columnheader`,children:`Space`}),(0,y.jsx)(`div`,{className:`cxs-colh cxs-colh-notes`,role:`columnheader`,children:`Notes`}),u.map((e,t)=>(0,y.jsxs)(`div`,{className:`cxs-row m-stagger-item m-fade-rise`,style:{"--i":t},role:`row`,children:[(0,y.jsx)(`div`,{className:`cxs-name`,role:`gridcell`,title:e.name,children:e.name}),(0,y.jsx)(`div`,{className:`cxs-complexity tab-num`,role:`gridcell`,children:e.timeComplexity||`—`}),(0,y.jsx)(`div`,{className:`cxs-complexity tab-num`,role:`gridcell`,children:e.spaceComplexity||`—`}),(0,y.jsx)(`div`,{className:`cxs-notes`,role:`gridcell`,children:e.notes||`—`})]},`${e.name}-${t}`))]})}),o&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var mt=[-1,-.5,0,.5,1];function X(e){if(!Number.isFinite(e))return`0.0`;let t=Math.round(e*10)/10;return t===0?`0.0`:`${t>0?`+`:`−`}${Math.abs(t).toFixed(1)}`}function ht(e){return e===0?`transparent`:`color-mix(in oklab, ${e>0?`var(--danger)`:`var(--presence)`} ${(Math.abs(e)*88).toFixed(1)}%, transparent)`}function gt({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,genes:r,samples:o,values:s,scaleLabel:c=`log2 fold-change`,footer:u,delay:d}){let f=i[t]||i.table,[p,h]=(0,m.useState)(null),g=Array.isArray(r)?r:[],_=Array.isArray(o)?o:[],v=g.map((e,t)=>{let n=Array.isArray(s)?s[t]:void 0;return _.map((e,t)=>{let r=Array.isArray(n)?n[t]:void 0;return typeof r==`number`&&Number.isFinite(r)?r:0})}),b=Math.max(1e-9,...v.flat().map(e=>Math.abs(e))),x=e=>Math.max(-1,Math.min(1,e/b));return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),g.length===0||_.length===0?(0,y.jsx)(l,{message:`Needs at least one gene and one sample to plot`}):(0,y.jsxs)(`div`,{className:`eh-wrap`,children:[(0,y.jsxs)(`div`,{className:`eh-grid`,style:{gridTemplateColumns:`minmax(0, auto) repeat(${_.length}, minmax(0, var(--eh-cell)))`},children:[(0,y.jsx)(`span`,{className:`eh-corner`}),_.map((e,t)=>(0,y.jsx)(`span`,{className:`eh-colh ${p?.c===t?`on`:``}`,title:e,children:e},t)),g.map((e,t)=>(0,y.jsx)(_t,{ri:t,label:e,vals:v[t],colCount:_.length,norm:x,hover:p,setHover:h},t))]}),(0,y.jsxs)(`div`,{className:`eh-legend`,children:[(0,y.jsx)(`span`,{className:`faint tab-num`,children:X(-b)}),mt.map(e=>(0,y.jsx)(`span`,{className:`eh-swatch`,style:{background:ht(e)}},e)),(0,y.jsx)(`span`,{className:`faint tab-num`,children:X(b)}),(0,y.jsx)(`span`,{className:`eh-scale-label faint`,children:c})]})]}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}function _t(e){let t=(0,M.c)(15),{ri:n,label:r,vals:i,colCount:a,norm:o,hover:s,setHover:c}=e,l=`eh-rowh ${s?.r===n?`on`:``}`,u;t[0]!==r||t[1]!==l?(u=(0,y.jsx)(`span`,{className:l,title:r,children:r}),t[0]=r,t[1]=l,t[2]=u):u=t[2];let d;t[3]===a?d=t[4]:(d=Array.from({length:a}),t[3]=a,t[4]=d);let f;t[5]!==s||t[6]!==o||t[7]!==n||t[8]!==c||t[9]!==d||t[10]!==i?(f=d.map((e,t)=>{let r=i[t]??0,a=o(r),l=s?.r===n&&s?.c===t,u=s&&(s.r===n||s.c===t);return(0,y.jsxs)(`div`,{className:`eh-cell ${l?`hot`:``} ${u&&!l?`cross`:``}`,style:{background:ht(a),color:Math.abs(a)>.55?`var(--surface-deep)`:`var(--text-secondary)`},onMouseEnter:()=>c({r:n,c:t}),onMouseLeave:()=>c(null),children:[(0,y.jsx)(`span`,{className:`eh-v tab-num`,children:X(r)}),l&&(0,y.jsx)(`span`,{className:`eh-tip tab-num`,children:X(r)})]},t)}),t[5]=s,t[6]=o,t[7]=n,t[8]=c,t[9]=d,t[10]=i,t[11]=f):f=t[11];let p;return t[12]!==u||t[13]!==f?(p=(0,y.jsxs)(y.Fragment,{children:[u,f]}),t[12]=u,t[13]=f,t[14]=p):p=t[14],p}var vt=new Set([`outstanding`,`produced`,`objected`,`privileged`]),yt={outstanding:`var(--warning)`,produced:`var(--insight)`,objected:`var(--danger)`,privileged:`var(--presence)`},bt={outstanding:`Outstanding`,produced:`Produced`,objected:`Objected`,privileged:`Privileged`},xt=[`outstanding`,`produced`,`objected`,`privileged`];function St(e){return typeof e==`string`&&vt.has(e)?e:`outstanding`}function Ct(e,t){let n=Date.parse(e),r=Date.parse(t);return Number.isFinite(n)&&Number.isFinite(r)?n-r:Number.isFinite(n)?-1:Number.isFinite(r)?1:e.localeCompare(t)}function wt({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,requests:r,footer:o,delay:s}){let c=i[t]||i.doc,[u,d]=(0,m.useState)(`all`),[f,p]=(0,m.useState)(`num`),[h,g]=(0,m.useState)(`asc`),_=(Array.isArray(r)?r:[]).filter(e=>typeof e?.description==`string`&&e.description.trim().length>0).map((e,t)=>({req:e,num:typeof e.num==`number`&&Number.isFinite(e.num)?e.num:t+1,party:typeof e.requestingParty==`string`&&e.requestingParty.trim()?e.requestingParty:`Unspecified`,status:St(e.status)})),v=(0,m.useMemo)(()=>{let e={outstanding:0,produced:0,objected:0,privileged:0};for(let t of _)e[t.status]++;return e},[_]),b=u===`all`?_:_.filter(e=>e.status===u),x=(0,m.useMemo)(()=>{let e=h===`asc`?1:-1;return[...b].sort((t,n)=>{switch(f){case`num`:return(t.num-n.num)*e;case`party`:return t.party.localeCompare(n.party)*e;case`status`:return(xt.indexOf(t.status)-xt.indexOf(n.status))*e;case`due`:return Ct(t.req.dueDate||``,n.req.dueDate||``)*e}})},[b,f,h]),S=e=>{e===f?g(e=>e===`asc`?`desc`:`asc`):(p(e),g(`asc`))},C=({label:e,sk:t})=>(0,y.jsx)(`th`,{className:`dtr-th`,children:(0,y.jsxs)(`button`,{type:`button`,className:`dtr-th-btn`,onClick:()=>S(t),children:[e,f===t&&(0,y.jsx)(`span`,{className:`dtr-th-arrow`,children:h===`asc`?`↑`:`↓`})]})});return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(s||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),_.length===0?(0,y.jsx)(l,{message:`No discovery requests logged`}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(`div`,{className:`dtr-chips`,role:`tablist`,children:[(0,y.jsxs)(`button`,{type:`button`,className:`dtr-chip ${u===`all`?`on`:``}`,onClick:()=>d(`all`),children:[`All `,(0,y.jsx)(`span`,{className:`dtr-count`,children:_.length})]}),xt.map(e=>(0,y.jsxs)(`button`,{type:`button`,className:`dtr-chip ${u===e?`on`:``}`,style:{"--dtr-c":yt[e]},onClick:()=>d(e),children:[bt[e],` `,(0,y.jsx)(`span`,{className:`dtr-count`,children:v[e]})]},e))]}),(0,y.jsx)(`div`,{className:`dtr-scroll`,children:(0,y.jsxs)(`table`,{className:`dtr-table`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(C,{label:`#`,sk:`num`}),(0,y.jsx)(`th`,{className:`dtr-th dtr-th-desc`,children:`Description`}),(0,y.jsx)(C,{label:`Requesting party`,sk:`party`}),(0,y.jsx)(C,{label:`Status`,sk:`status`}),(0,y.jsx)(`th`,{className:`dtr-th`,children:`Bates`}),(0,y.jsx)(C,{label:`Due`,sk:`due`})]})}),(0,y.jsx)(`tbody`,{children:x.map((e,t)=>(0,y.jsxs)(`tr`,{className:`dtr-row m-stagger-item m-fade-rise`,children:[(0,y.jsx)(`td`,{className:`dtr-num tab-num`,children:e.num}),(0,y.jsx)(`td`,{className:`dtr-desc`,children:e.req.description}),(0,y.jsx)(`td`,{className:`dtr-party`,children:e.party}),(0,y.jsxs)(`td`,{children:[(0,y.jsx)(`span`,{className:`dtr-status`,style:{"--dtr-c":yt[e.status]},children:bt[e.status]}),e.status===`privileged`&&e.req.privilegeBasis&&(0,y.jsx)(`div`,{className:`dtr-priv-note`,children:e.req.privilegeBasis})]}),(0,y.jsx)(`td`,{className:`dtr-bates`,children:e.req.batesRange||`—`}),(0,y.jsx)(`td`,{className:`dtr-due`,children:e.req.dueDate||`—`})]},`${e.num}-${t}`))})]})})]}),o&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var Tt=new Set([`urgent`,`recommended`,`elective`]),Et={urgent:`var(--danger)`,recommended:`var(--warning)`,elective:`var(--insight)`};function Dt(e){return typeof e==`string`&&Tt.has(e)?e:`recommended`}function Ot(e){return typeof e==`number`&&Number.isFinite(e)?e:null}function kt(e){return e?/complet|done/i.test(e)?`var(--insight)`:/progress|underway|started/i.test(e)?`var(--warning)`:`var(--text-muted)`:`var(--text-muted)`}var At=`Unscheduled`;function jt({title:e,icon:t=`shield`,iconColor:n=`var(--presence)`,entries:r,footer:o,delay:c}){let u=i[t]||i.shield,d=(Array.isArray(r)?r:[]).filter(e=>typeof e?.procedure==`string`&&e.procedure.trim().length>0).map(e=>({entry:e,priority:Dt(e.priority),cost:Ot(e.cost),visit:typeof e.visit==`string`&&e.visit.trim()?e.visit:At})),f=(0,m.useMemo)(()=>{let e=[],t=new Map;for(let n of d)t.has(n.visit)||(t.set(n.visit,[]),e.push(n.visit)),t.get(n.visit).push(n);return e.map(e=>({visit:e,rows:t.get(e),subtotal:t.get(e).reduce((e,t)=>e+(t.cost??0),0)}))},[d]),p=d.reduce((e,t)=>e+(t.cost??0),0),h=0;return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),d.length===0?(0,y.jsx)(l,{message:`No treatment entries planned`}):(0,y.jsx)(`div`,{className:`dtp-scroll`,children:(0,y.jsxs)(`table`,{className:`dtp-table`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`dtp-th`,children:`Tooth`}),(0,y.jsx)(`th`,{className:`dtp-th dtp-th-proc`,children:`Procedure`}),(0,y.jsx)(`th`,{className:`dtp-th`,children:`Priority`}),(0,y.jsx)(`th`,{className:`dtp-th`,children:`Status`}),(0,y.jsx)(`th`,{className:`dtp-th dtp-th-num`,children:`Cost`})]})}),(0,y.jsx)(`tbody`,{children:f.map(e=>(0,y.jsxs)(m.Fragment,{children:[(0,y.jsxs)(`tr`,{className:`dtp-visit-row`,children:[(0,y.jsx)(`td`,{className:`dtp-visit-head`,colSpan:4,children:e.visit}),(0,y.jsx)(`td`,{className:`dtp-visit-subtotal tab-num`,children:s(e.subtotal,{currency:`USD`,decimals:0})})]}),e.rows.map(t=>{let n=h++;return(0,y.jsxs)(`tr`,{className:`dtp-row m-stagger-item m-fade-rise`,style:{"--i":n},children:[(0,y.jsx)(`td`,{className:`dtp-tooth`,children:t.entry.tooth||`—`}),(0,y.jsxs)(`td`,{className:`dtp-proc`,children:[t.entry.procedure,t.entry.surface&&(0,y.jsxs)(`span`,{className:`dtp-surface`,children:[` · `,t.entry.surface]})]}),(0,y.jsx)(`td`,{children:(0,y.jsx)(`span`,{className:`dtp-priority`,style:{"--dtp-c":Et[t.priority]},children:t.priority})}),(0,y.jsx)(`td`,{children:(0,y.jsx)(`span`,{className:`dtp-status`,style:{"--dtp-c":kt(t.entry.status)},children:t.entry.status||`—`})}),(0,y.jsx)(`td`,{className:`dtp-num tab-num`,children:t.cost==null?`—`:s(t.cost,{currency:`USD`,decimals:0})})]},`${e.visit}-${n}`)})]},e.visit))}),(0,y.jsx)(`tfoot`,{children:(0,y.jsxs)(`tr`,{className:`dtp-total-row`,children:[(0,y.jsx)(`td`,{className:`dtp-total-label`,colSpan:4,children:`Total plan cost`}),(0,y.jsx)(`td`,{className:`dtp-total-val tab-num`,children:s(p,{currency:`USD`,decimals:0})})]})})]})}),o&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var Mt=new Set([`yea`,`nay`,`present`,`absent`]),Nt={yea:`var(--insight)`,nay:`var(--danger)`,present:`var(--warning)`,absent:`var(--text-muted)`},Pt={yea:`✓`,nay:`✕`,present:`•`,absent:`–`},Z={yea:`Yea`,nay:`Nay`,present:`Present`,absent:`Absent`},Ft=[`yea`,`nay`,`present`,`absent`];function It(e){return typeof e==`string`&&Mt.has(e)?e:`absent`}var Lt=[`var(--presence)`,`var(--presence-deep)`,`var(--insight-soft)`,`var(--warning-soft)`,`var(--presence-soft)`];function Rt(e){if(!e)return`var(--text-muted)`;let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)>>>0;return Lt[t%Lt.length]}function zt({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,bill:r,legislators:o,footer:s,delay:c}){let u=i[t]||i.chart,d=(Array.isArray(o)?o:[]).filter(e=>typeof e?.name==`string`&&e.name.trim().length>0).map(e=>({leg:e,name:e.name,party:typeof e.party==`string`?e.party.trim():``,vote:It(e.vote)})),f=(0,m.useMemo)(()=>{let e={yea:0,nay:0,present:0,absent:0};for(let t of d)e[t.vote]++;return e},[d]),p=Math.max(1,d.length);return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`rc-bill`,children:r}),d.length===0?(0,y.jsx)(l,{message:`No votes recorded`}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(`div`,{className:`rc-tally`,children:[(0,y.jsx)(`div`,{className:`rc-tally-bar`,children:Ft.filter(e=>f[e]>0).map(e=>(0,y.jsx)(`div`,{className:`rc-tally-seg`,style:{width:`${f[e]/p*100}%`,background:Nt[e]},title:`${Z[e]}: ${f[e]}`},e))}),(0,y.jsx)(`div`,{className:`rc-tally-labels`,children:Ft.map(e=>(0,y.jsxs)(`span`,{className:`rc-tally-label`,style:{"--rc-c":Nt[e]},children:[(0,y.jsx)(`span`,{className:`rc-tally-dot`}),` `,f[e],` `,Z[e]]},e))})]}),(0,y.jsx)(`div`,{className:`rc-scroll`,children:(0,y.jsxs)(`table`,{className:`rc-table`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`rc-th`,children:`Legislator`}),(0,y.jsx)(`th`,{className:`rc-th`,children:`Party`}),(0,y.jsx)(`th`,{className:`rc-th rc-th-vote`,children:`Vote`})]})}),(0,y.jsx)(`tbody`,{children:d.map((e,t)=>(0,y.jsxs)(`tr`,{className:`rc-row m-stagger-item m-fade-rise`,style:{"--i":t,"--rc-party":Rt(e.party)},children:[(0,y.jsx)(`td`,{className:`rc-name`,children:e.name}),(0,y.jsx)(`td`,{className:`rc-party`,children:e.party||`—`}),(0,y.jsx)(`td`,{className:`rc-vote-cell`,children:(0,y.jsxs)(`span`,{className:`rc-vote`,style:{"--rc-c":Nt[e.vote]},children:[(0,y.jsx)(`span`,{className:`rc-vote-glyph`,children:Pt[e.vote]}),Z[e.vote]]})})]},`${e.name}-${t}`))})]})})]}),s&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}var Bt=new Set([`mint`,`good`,`fair`]),Vt={mint:`var(--insight)`,good:`var(--presence)`,fair:`var(--warning)`};function Ht(e){return typeof e==`string`&&Bt.has(e)?e:null}function Ut(e){return typeof e==`number`&&Number.isFinite(e)?e:null}function Wt({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,items:r,footer:o,delay:c}){let u=i[t]||i.layers,d=(Array.isArray(r)?r:[]).filter(e=>typeof e?.name==`string`&&e.name.trim().length>0),f=d.reduce((e,t)=>e+(Ut(t.value)??0),0),p=d.filter(e=>Ut(e.value)!=null).length;return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),d.length===0?(0,y.jsx)(l,{message:`No items in this collection yet`}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(`div`,{className:`ctk-summary`,children:[(0,y.jsxs)(`div`,{className:`ctk-summary-stat`,children:[(0,y.jsx)(`span`,{className:`ctk-summary-val tab-num`,children:d.length}),(0,y.jsx)(`span`,{className:`ctk-summary-label`,children:d.length===1?`item`:`items`})]}),p>0&&(0,y.jsxs)(`div`,{className:`ctk-summary-stat`,children:[(0,y.jsx)(`span`,{className:`ctk-summary-val ctk-summary-total tab-num`,children:s(f,{currency:`USD`,decimals:0})}),(0,y.jsx)(`span`,{className:`ctk-summary-label`,children:`estimated value`})]})]}),(0,y.jsx)(`div`,{className:`ctk-grid`,children:d.map((e,t)=>{let n=Ht(e.condition),r=Ut(e.value);return(0,y.jsxs)(`div`,{className:`ctk-card m-stagger-item m-scale-in`,style:{"--i":t},children:[(0,y.jsxs)(`div`,{className:`ctk-card-top`,children:[(0,y.jsx)(`span`,{className:`ctk-name`,title:e.name,children:e.name}),n&&(0,y.jsx)(`span`,{className:`ctk-condition`,style:{"--ctk-c":Vt[n]},children:n})]}),e.acquiredDate&&(0,y.jsx)(`div`,{className:`ctk-date`,children:e.acquiredDate}),r!=null&&(0,y.jsx)(`div`,{className:`ctk-value tab-num`,children:s(r,{currency:`USD`,decimals:0})}),e.notes&&(0,y.jsx)(`div`,{className:`ctk-notes`,children:e.notes})]},`${e.name}-${t}`)})})]}),o&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}function Q(e){return typeof e==`number`&&Number.isFinite(e)?e:null}function Gt(e){let t=s(Math.abs(e),{currency:`USD`,decimals:0});return e<0?`(${t})`:e>0?`+${t}`:t}function Kt({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,subject:r,comps:o,suggestedListPrice:c,footer:u,delay:d}){let f=i[t]||i.chart,p=r&&typeof r==`object`?r:{},m=Q(p.beds),h=Q(p.baths),g=Q(p.sqft),_=Q(p.yearBuilt),v=(Array.isArray(o)?o:[]).filter(e=>typeof e?.address==`string`&&e.address.trim().length>0).map(e=>{let t=Q(e.soldPrice),n=(Array.isArray(e.adjustments)?e.adjustments:[]).filter(e=>typeof e?.label==`string`&&e.label.trim().length>0).map(e=>({adj:e,amount:Q(e.amount)})),r=n.reduce((e,t)=>e+(t.amount??0),0);return{comp:e,soldPrice:t,sqft:Q(e.sqft),distance:Q(e.distance),adjustments:n,adjustedPrice:t==null?null:t+r}}),b=c&&typeof c==`object`?c:{},x=Q(b.low),S=Q(b.high),C=Q(b.point),w=[{label:`Beds`,value:m==null?`—`:String(m)},{label:`Baths`,value:h==null?`—`:String(h)},{label:`Sqft`,value:g==null?`—`:s(g)},{label:`Year built`,value:_==null?`—`:String(_)}];return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),typeof p.address==`string`&&p.address&&(0,y.jsx)(`div`,{className:`cma-subject-addr`,children:p.address}),(0,y.jsx)(`div`,{className:`cma-summary`,children:w.map(e=>(0,y.jsxs)(`div`,{className:`cma-field`,children:[(0,y.jsx)(`span`,{className:`cma-field-label`,children:e.label}),(0,y.jsx)(`span`,{className:`cma-field-value`,children:e.value})]},e.label))}),v.length===0?(0,y.jsx)(l,{message:`No comparable sales to show`}):(0,y.jsx)(`div`,{className:`cma-scroll`,children:(0,y.jsxs)(`table`,{className:`cma-table`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`cma-th cma-th-addr`,children:`Comparable`}),(0,y.jsx)(`th`,{className:`cma-th cma-th-num`,children:`Sold price`}),(0,y.jsx)(`th`,{className:`cma-th`,children:`Sold date`}),(0,y.jsx)(`th`,{className:`cma-th cma-th-num`,children:`Sqft`}),(0,y.jsx)(`th`,{className:`cma-th cma-th-num`,children:`Dist.`}),(0,y.jsx)(`th`,{className:`cma-th`,children:`Adjustments`}),(0,y.jsx)(`th`,{className:`cma-th cma-th-num`,children:`Adjusted price`})]})}),(0,y.jsx)(`tbody`,{children:v.map((e,t)=>(0,y.jsxs)(`tr`,{className:`cma-row m-stagger-item m-fade-rise`,children:[(0,y.jsx)(`td`,{className:`cma-addr`,children:e.comp.address}),(0,y.jsx)(`td`,{className:`cma-num tab-num`,children:e.soldPrice==null?`—`:s(e.soldPrice,{currency:`USD`,decimals:0})}),(0,y.jsx)(`td`,{className:`cma-date`,children:e.comp.soldDate||`—`}),(0,y.jsx)(`td`,{className:`cma-num tab-num`,children:e.sqft==null?`—`:s(e.sqft)}),(0,y.jsx)(`td`,{className:`cma-num tab-num`,children:e.distance==null?`—`:`${s(e.distance,{decimals:1})} mi`}),(0,y.jsx)(`td`,{className:`cma-adj`,children:e.adjustments.length===0?(0,y.jsx)(`span`,{className:`cma-adj-none`,children:`—`}):(0,y.jsx)(`ul`,{className:`cma-adj-list`,children:e.adjustments.map((e,t)=>(0,y.jsxs)(`li`,{className:`cma-adj-item`,children:[(0,y.jsx)(`span`,{className:`cma-adj-label`,children:e.adj.label}),e.amount!=null&&e.amount!==0&&(0,y.jsx)(`span`,{className:`cma-adj-amt tab-num ${e.amount<0?`neg`:`pos`}`,children:Gt(e.amount)})]},t))})}),(0,y.jsx)(`td`,{className:`cma-num cma-adjusted tab-num`,children:e.adjustedPrice==null?`—`:s(e.adjustedPrice,{currency:`USD`,decimals:0})})]},`${e.comp.address}-${t}`))})]})}),(0,y.jsxs)(`div`,{className:`cma-banner`,children:[(0,y.jsx)(`span`,{className:`cma-banner-label`,children:`Suggested list price`}),x!=null&&S!=null?(0,y.jsxs)(`span`,{className:`cma-banner-value tab-num`,children:[s(x,{currency:`USD`,decimals:0}),` – `,s(S,{currency:`USD`,decimals:0}),C!=null&&(0,y.jsxs)(`span`,{className:`cma-banner-point`,children:[` `,`· point `,s(C,{currency:`USD`,decimals:0})]})]}):(0,y.jsx)(`span`,{className:`cma-banner-value cma-banner-empty`,children:`Not yet estimated`})]}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}function qt(e){let t=s(Math.abs(e),{currency:`USD`,decimals:0});return e<0?`(${t})`:t}function Jt(e){return typeof e==`number`&&Number.isFinite(e)?e:0}function Yt(e){return e===`subtotal`||e===`total`?e:`line`}var Xt=new Set([`refund`,`owed`]);function Zt(e){return typeof e==`string`&&Xt.has(e)?e:`owed`}function Qt({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,filingStatus:r,taxYear:o,rows:c,refundOrOwed:u,footer:d,delay:f}){let p=i[t]||i.doc,m=(Array.isArray(c)?c:[]).filter(e=>typeof e?.label==`string`&&e.label.trim().length>0),h=u&&typeof u==`object`?u:{},g=Jt(h.amount),_=Zt(h.direction),v=[r,o!=null&&o!==``?`Tax year ${o}`:``].filter(Boolean).join(` · `);return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(f||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,style:{marginBottom:v?4:14},children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),v&&(0,y.jsx)(`div`,{className:`trs-cap`,children:v}),m.length===0?(0,y.jsx)(l,{message:`No return lines to show`}):(0,y.jsx)(`div`,{className:`trs-scroll`,children:(0,y.jsx)(`table`,{className:`trs-tbl`,children:(0,y.jsx)(`tbody`,{children:m.map((e,t)=>{let n=Yt(e.kind),r=Math.max(0,e.indent||0),i=Jt(e.amount);return(0,y.jsxs)(`tr`,{className:`trs-row trs-${n}`,children:[(0,y.jsx)(`td`,{className:`trs-label`,style:{paddingLeft:2+r*14},children:e.label}),(0,y.jsx)(`td`,{className:`trs-val tab-num ${i<0?`neg`:``}`,children:qt(i)})]},t)})})})}),(0,y.jsxs)(`div`,{className:`trs-banner trs-banner-${_}`,children:[(0,y.jsx)(`span`,{className:`trs-banner-label`,children:_===`refund`?`Refund`:`Amount owed`}),(0,y.jsx)(`span`,{className:`trs-banner-val tab-num`,children:s(g,{currency:`USD`,decimals:0})})]}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(d)})]})}function $(e){return typeof e==`number`&&Number.isFinite(e)?s(e,{currency:`USD`,decimals:0}):`—`}function $t({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,assetDescription:r,cost:o,method:s,usefulLife:c,annualDepreciation:u,rows:d,footer:f,delay:p}){let m=i[t]||i.table,h=(Array.isArray(d)?d:[]).filter(e=>typeof e?.period==`string`&&e.period.trim().length>0),g=h.length-1,_=[{label:`Cost basis`,value:$(o)},{label:`Method`,value:typeof s==`string`&&s?s:`—`},{label:`Useful life`,value:c!=null&&c!==``?String(c):`—`},{label:`Annual depreciation`,value:$(u),highlight:!0}];return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(p||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,style:{marginBottom:r?4:14},children:[(0,y.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`dep-cap`,children:r}),(0,y.jsx)(`div`,{className:`dep-summary`,children:_.map(e=>(0,y.jsxs)(`div`,{className:`dep-field${e.highlight?` highlight`:``}`,children:[(0,y.jsx)(`span`,{className:`dep-field-label`,children:e.label}),(0,y.jsx)(`span`,{className:`dep-field-value`,...e.highlight?{"data-mark":`underline`}:{},children:e.value})]},e.label))}),h.length===0?(0,y.jsx)(l,{message:`No schedule rows to show`}):(0,y.jsx)(`div`,{className:`dep-scroll`,children:(0,y.jsxs)(`table`,{className:`dep-table`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`dep-th`,children:`Period`}),(0,y.jsx)(`th`,{className:`dep-th dep-th-num`,children:`Beginning basis`}),(0,y.jsx)(`th`,{className:`dep-th dep-th-num`,children:`Depreciation`}),(0,y.jsx)(`th`,{className:`dep-th dep-th-num`,children:`Accumulated`}),(0,y.jsx)(`th`,{className:`dep-th dep-th-num`,children:`Ending basis`})]})}),(0,y.jsx)(`tbody`,{children:h.map((e,t)=>(0,y.jsxs)(`tr`,{className:`dep-row ${t===0||t===g?`edge`:``}`,children:[(0,y.jsx)(`td`,{className:`dep-period`,children:e.period}),(0,y.jsx)(`td`,{className:`dep-num tab-num`,children:$(e.beginningBasis)}),(0,y.jsx)(`td`,{className:`dep-num tab-num`,children:$(e.depreciationExpense)}),(0,y.jsx)(`td`,{className:`dep-num tab-num`,children:$(e.accumulatedDepreciation)}),(0,y.jsx)(`td`,{className:`dep-num dep-ending tab-num`,children:$(e.endingBasis)})]},t))})]})}),f&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}var en=new Set([`catering`,`venue`,`photo`,`av`,`decor`,`other`]),tn={catering:`cart`,venue:`layers`,photo:`image`,av:`speaker`,decor:`sparkle`,other:`doc`},nn={catering:`Catering`,venue:`Venue`,photo:`Photo/Video`,av:`AV`,decor:`Decor`,other:`Other`};function rn(e){return typeof e==`string`&&en.has(e)?e:`other`}var an=new Set([`inquired`,`booked`,`confirmed`]),on={inquired:`var(--text-muted)`,booked:`var(--warning)`,confirmed:`var(--insight)`};function sn(e){return typeof e==`string`&&an.has(e)?e:`inquired`}function cn(e){return typeof e==`number`&&Number.isFinite(e)?e:null}function ln({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,vendors:r,footer:o,delay:c}){let u=i[t]||i.layers,d=(Array.isArray(r)?r:[]).filter(e=>typeof e?.name==`string`&&e.name.trim().length>0);return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),d.length===0?(0,y.jsx)(l,{message:`No vendors tracked yet`}):(0,y.jsx)(`div`,{className:`vnd-list`,children:d.map((e,t)=>{let n=rn(e.category),r=sn(e.status),a=i[tn[n]]||i.doc,o=cn(e.depositAmount),c=cn(e.balanceDue),l=e.depositPaid?o??0:0,u=(o??0)+(c??0),d=u>0?l/u*100:0,f=u>0?100-d:0;return(0,y.jsxs)(`div`,{className:`vnd-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,y.jsx)(`div`,{className:`vnd-cat`,title:nn[n],children:(0,y.jsx)(a,{className:`ic`})}),(0,y.jsxs)(`div`,{className:`vnd-body`,children:[(0,y.jsxs)(`div`,{className:`vnd-top`,children:[(0,y.jsx)(`span`,{className:`vnd-name`,children:e.name}),(0,y.jsx)(`span`,{className:`vnd-catlabel`,children:nn[n]}),(0,y.jsx)(`span`,{className:`vnd-spacer`}),(0,y.jsx)(`span`,{className:`vnd-status`,style:{"--vnd-c":on[r]},children:r})]}),u>0&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(`div`,{className:`vnd-track`,children:[(0,y.jsx)(`div`,{className:`vnd-fill-paid`,style:{width:`${d}%`}}),(0,y.jsx)(`div`,{className:`vnd-fill-due`,style:{width:`${f}%`}})]}),(0,y.jsxs)(`div`,{className:`vnd-money`,children:[o!=null&&(0,y.jsxs)(`span`,{className:`vnd-deposit`,children:[`Deposit `,s(o,{currency:`USD`,decimals:0}),e.depositPaid?` · paid`:` · unpaid`]}),c!=null&&(0,y.jsxs)(`span`,{className:`vnd-balance`,children:[`Balance `,s(c,{currency:`USD`,decimals:0}),e.dueDate?` due ${e.dueDate}`:``]}),e.contractSigned&&(0,y.jsx)(`span`,{className:`vnd-contract`,children:`Contract signed`})]})]})]})]},`${e.name}-${t}`)})}),o&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var un=new Set([`pitched`,`negotiating`,`contracted`,`delivered`,`paid`]),dn={pitched:`var(--text-muted)`,negotiating:`var(--warning)`,contracted:`var(--presence)`,delivered:`var(--presence-soft)`,paid:`var(--insight)`};function fn(e){return typeof e==`string`&&un.has(e)?e:`pitched`}function pn(e){return typeof e==`number`&&Number.isFinite(e)?e:null}function mn({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,deals:r,footer:o,delay:c}){let u=i[t]||i.spark,d=(Array.isArray(r)?r:[]).filter(e=>typeof e?.brand==`string`&&e.brand.trim().length>0);return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),d.length===0?(0,y.jsx)(l,{message:`No sponsorship deals tracked yet`}):(0,y.jsx)(`div`,{className:`spn-scroll`,children:(0,y.jsxs)(`table`,{className:`spn-table`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`spn-th`,children:`Brand`}),(0,y.jsx)(`th`,{className:`spn-th`,children:`Deliverable`}),(0,y.jsx)(`th`,{className:`spn-th spn-th-num`,children:`Rate`}),(0,y.jsx)(`th`,{className:`spn-th`,children:`Status`}),(0,y.jsx)(`th`,{className:`spn-th`,children:`Date`})]})}),(0,y.jsx)(`tbody`,{children:d.map((e,t)=>{let n=fn(e.status),r=pn(e.rate),i=n===`paid`,a=typeof e.currency==`string`&&e.currency.trim()?e.currency:`USD`;return(0,y.jsxs)(`tr`,{className:`spn-row m-stagger-item m-fade-rise ${i?`paid`:`unpaid`}`,style:{"--i":t},children:[(0,y.jsx)(`td`,{className:`spn-brand`,children:e.brand}),(0,y.jsx)(`td`,{className:`spn-deliverable`,children:e.deliverable||`—`}),(0,y.jsx)(`td`,{className:`spn-rate tab-num`,children:r==null?`—`:s(r,{currency:a,decimals:0})}),(0,y.jsx)(`td`,{children:(0,y.jsx)(`span`,{className:`spn-status`,style:{"--spn-c":dn[n]},children:n})}),(0,y.jsx)(`td`,{className:`spn-date`,children:n===`paid`&&e.paidDate?`Paid ${e.paidDate}`:e.dueDate?`Due ${e.dueDate}`:`—`})]},`${e.brand}-${t}`)})})]})}),o&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var hn=new Set([`low`,`medium`,`high`]),gn={low:`var(--insight)`,medium:`var(--warning)`,high:`var(--danger)`};function _n(e){return typeof e==`string`&&hn.has(e)?e:null}function vn({title:e,icon:t=`shield`,iconColor:n=`var(--presence)`,cases:r,footer:o,delay:s}){let c=i[t]||i.shield,u=(Array.isArray(r)?r:[]).filter(e=>typeof e?.clientRef==`string`&&e.clientRef.trim().length>0);return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(s||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),u.length===0?(0,y.jsx)(l,{message:`No cases on this list`}):(0,y.jsx)(`div`,{className:`csl-list`,children:u.map((e,t)=>{let n=_n(e.riskLevel);return(0,y.jsxs)(`div`,{className:`csl-row m-stagger-item m-fade-rise`,style:{"--i":t,"--csl-c":n?gn[n]:`var(--line-strong)`},children:[(0,y.jsx)(`div`,{className:`csl-risk-bar`}),(0,y.jsxs)(`div`,{className:`csl-body`,children:[(0,y.jsxs)(`div`,{className:`csl-top`,children:[(0,y.jsx)(`span`,{className:`csl-ref`,children:e.clientRef}),(0,y.jsx)(`span`,{className:`csl-status`,children:e.status||`—`}),(0,y.jsx)(`span`,{className:`csl-spacer`}),n?(0,y.jsxs)(`span`,{className:`csl-riskbadge`,children:[n,` risk`]}):(0,y.jsx)(`span`,{className:`csl-riskbadge csl-unscored`,children:`unscored`})]}),(0,y.jsxs)(`div`,{className:`csl-meta`,children:[e.nextContact&&(0,y.jsxs)(`span`,{className:`csl-contact`,children:[`Next contact `,e.nextContact]}),e.note&&(0,y.jsx)(`span`,{className:`csl-note`,children:e.note})]})]})]},`${e.clientRef}-${t}`)})}),o&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var yn=e({tablesRegistry:()=>bn}),bn={matrix:f(_e),datatable:f(x),pivot:f(S),leaderboard:f(T),treetable:f(k),swimlane:f(A),footnotetable:f(j),sparktable:f(F),smallmultiples:f(ie),comparebars:f(ae),comparematrix:f(me),matrixgrid:f(he),sensitivitytable:f(ye),labpanel:f(xe),ingredientmatrix:f(Se),conjugation:f(Ce),clearancematrix:f(Te),financialstatement:f(De),cohortgrid:f(Oe),riskmatrix:f(Me),careplan:f(Pe),doseladder:f(Fe),sizechart:f(Ie),pricingtable:f(ze),raci:f(Ve),rubric:f(He),interviewscorecard:f(We),gradebook:f(Ge),datadictionary:f(Qe),ablationtable:f(nt),spectrumtable:f(at),fmeatable:f(lt),billofmaterials:f(ft),complexitysummary:f(pt),expressionheatmap:f(gt),discoverytracker:f(wt),dentaltreatmentplan:f(jt),rollcall:f(zt),collectiontracker:f(Wt),cma:f(Kt),taxreturnsummary:f(Qt),depreciationschedule:f($t),vendortracker:f(ln),sponsorshiptracker:f(mn),caseload:f(vn)};export{bn as n,yn as t};