@mavea/mavea 1.0.13 → 1.0.14

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 (163) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +4 -3
  3. package/dist/.vite/manifest.json +587 -605
  4. package/dist/assets/{AppCommandPalette-D_g8-7C0.js → AppCommandPalette-D5nd3VO_.js} +1 -1
  5. package/dist/assets/{BlockEmpty-Ddhgr5pu.js → BlockEmpty-BZn5ETuL.js} +1 -1
  6. package/dist/assets/{BriefingPlayer-D-QhLgXI.js → BriefingPlayer-JnrrvxYE.js} +1 -1
  7. package/dist/assets/{CanvasSkeleton-BIiOmCMG.js → CanvasSkeleton-D00MzkIV.js} +2 -2
  8. package/dist/assets/{CheckLogRail-ZrDqyjQ7.js → CheckLogRail--9iHharq.js} +1 -1
  9. package/dist/assets/{CodeOutput-D7sVg1Nr.js → CodeOutput-408gGn9V.js} +1 -1
  10. package/dist/assets/{CommandPalette-DNa2q8E_.js → CommandPalette-BIUG6Sn7.js} +1 -1
  11. package/dist/assets/{CourseLessonReader-BIpGjcJk.js → CourseLessonReader-Yp2qEsDx.js} +2 -2
  12. package/dist/assets/{CourseRail-CQaotzN0.js → CourseRail-BVvnoWBR.js} +1 -1
  13. package/dist/assets/{CoursesApp-q3kZJmu1.js → CoursesApp-0N_F1p_u.js} +2 -2
  14. package/dist/assets/{CrossExamPanel-BIJslibV.js → CrossExamPanel-CocJ_GxK.js} +1 -1
  15. package/dist/assets/{DashPresent-DGSE0vYM.js → DashPresent-G8Actzx7.js} +1 -1
  16. package/dist/assets/{DashboardDetail-BpaLNg8R.js → DashboardDetail-BpSe8wBT.js} +2 -2
  17. package/dist/assets/DashboardLoopRuntime-CHPDkO3Y.js +1 -0
  18. package/dist/assets/{DashboardOverview-8x3OxX2i.js → DashboardOverview-Cdhy4x4b.js} +1 -1
  19. package/dist/assets/{DashboardSettings-f_zxcs5j.js → DashboardSettings-ChPkh0t4.js} +1 -1
  20. package/dist/assets/DashboardsApp-mp-V3d1i.js +2 -0
  21. package/dist/assets/{DeepZoomApp-E7bDmzuL.js → DeepZoomApp-mZHk132w.js} +1 -1
  22. package/dist/assets/{DelegatePanel-_9RZiLHM.css → DelegatePanel-Cf85-0qE.css} +1 -1
  23. package/dist/assets/DelegatePanel-Dtl0oHaA.js +33 -0
  24. package/dist/assets/{DemoGallery-DDzX8Z7I.js → DemoGallery-By2LV_U_.js} +1 -1
  25. package/dist/assets/{DropSelect-BMZYAX6q.js → DropSelect-CeCNaut0.js} +1 -1
  26. package/dist/assets/{ExportModal-CTMJaU1l.js → ExportModal-CZ1-Vihb.js} +2 -2
  27. package/dist/assets/{ExtractionPreview-C9wq7CrK.js → ExtractionPreview-CRkYnwCo.js} +1 -1
  28. package/dist/assets/{FlagshipCTA-DPNSflKv.js → FlagshipCTA-DNtUnl0n.js} +1 -1
  29. package/dist/assets/{FlagshipCommandPalette-55zqyPFm.js → FlagshipCommandPalette-DpP8joXb.js} +1 -1
  30. package/dist/assets/{FlagshipShowcase-BWpoPWOn.js → FlagshipShowcase-CoOezhT-.js} +1 -1
  31. package/dist/assets/{FlashcardsApp-apCj3I17.js → FlashcardsApp-REEdMdKG.js} +1 -1
  32. package/dist/assets/{ForecastPanel-CMRD-UKn.js → ForecastPanel-CpR32hwb.js} +1 -1
  33. package/dist/assets/{GalleryApp-CcsbirLT.js → GalleryApp-DJZRHjMH.js} +1 -1
  34. package/dist/assets/{HonestByDesign-DU4qmc61.js → HonestByDesign-CiOj_fA7.js} +1 -1
  35. package/dist/assets/{HowItWorks-CkZXftN-.js → HowItWorks-Ch2CgkVd.js} +1 -1
  36. package/dist/assets/{LegalApp-BmZpqH-6.js → LegalApp-BisEJynn.js} +1 -1
  37. package/dist/assets/{LegalMarkdownDocument-CcbAfubz.js → LegalMarkdownDocument-B7Yj_aRR.js} +1 -1
  38. package/dist/assets/{LegalPageShell-raMATqhx.js → LegalPageShell-k9e22JlP.js} +1 -1
  39. package/dist/assets/{LeverPanel-DVUgGcYW.js → LeverPanel-CXSDqinv.js} +1 -1
  40. package/dist/assets/{Library-D725dNcx.js → Library-CmpF6gOU.js} +1 -1
  41. package/dist/assets/{LibraryOverlay-D7PzQIpH.js → LibraryOverlay-BErgFYxu.js} +1 -1
  42. package/dist/assets/LiveApp-DZ7t3P1O.js +61 -0
  43. package/dist/assets/LiveApp-Dj_6EQuL.css +1 -0
  44. package/dist/assets/LiveSettings-BY5E3Ka8.js +6 -0
  45. package/dist/assets/{MindMapViewerDrawer-CIMuABKE.js → MindMapViewerDrawer-Bc_qHdm9.js} +1 -1
  46. package/dist/assets/MindShape-DGOmKwov.css +1 -0
  47. package/dist/assets/{MindShape-0KPrv0CF.js → MindShape-ULBAjrfD.js} +1 -1
  48. package/dist/assets/{PinToDashboard-ML4NFCAU.js → PinToDashboard-WgEX4YoY.js} +1 -1
  49. package/dist/assets/{PlanReview-CbJ_7Ld1.js → PlanReview-Dd3sxa_o.js} +1 -1
  50. package/dist/assets/{Presence-B_zDfiE7.js → Presence-DgzicbeF.js} +1 -1
  51. package/dist/assets/{PresentationDeck-Tm3PUdh5.js → PresentationDeck-Cx26X-wh.js} +1 -1
  52. package/dist/assets/{PrismApp-Bc-6PO_P.js → PrismApp-FPqASfhZ.js} +2 -2
  53. package/dist/assets/{PrismAskController-OwqFx5Pk.js → PrismAskController-Ds1tSE9S.js} +1 -1
  54. package/dist/assets/{PrismBriefingPlayer-Bu_ZxYdh.js → PrismBriefingPlayer-BzqCK6JP.js} +2 -2
  55. package/dist/assets/{PrismOverlay-UTsJ8R5d.js → PrismOverlay-Cq3DBJ-N.js} +4 -4
  56. package/dist/assets/{PrivacyApp-BLXan6dm.js → PrivacyApp-B8PGc-x5.js} +1 -1
  57. package/dist/assets/{Recap-5rYrcMCC.js → Recap-RwhzouRe.js} +1 -1
  58. package/dist/assets/{ReelJelly-Dg3XGB0c.js → ReelJelly-B2JQsaRI.js} +1 -1
  59. package/dist/assets/{ReplayCard-wMIMlorH.js → ReplayCard-DUBvQLBt.js} +2 -2
  60. package/dist/assets/{ReplayOverlay-BomkTonB.js → ReplayOverlay-CzUFHdjK.js} +1 -1
  61. package/dist/assets/{RewindOverlay-Izf89nG9.js → RewindOverlay-CMx_cVxX.js} +1 -1
  62. package/dist/assets/{RippleApp-8QSIEjTX.js → RippleApp-B186b8KW.js} +2 -2
  63. package/dist/assets/{RippleAskController-Cd86GrKs.js → RippleAskController-BA_kGOmL.js} +1 -1
  64. package/dist/assets/{RippleOverlay-SCrXZTqz.js → RippleOverlay-CkbkIgzC.js} +2 -2
  65. package/dist/assets/{SeeDontRead-Bp8qsF20.js → SeeDontRead-BZ4xFEKE.js} +1 -1
  66. package/dist/assets/{ShareModal-C-sD-aia.js → ShareModal-DNpc-U9U.js} +1 -1
  67. package/dist/assets/{ShipCascade-Cq_I4c_v.js → ShipCascade-BmTE193h.js} +1 -1
  68. package/dist/assets/{ShipCourse-CzsJyMnT.js → ShipCourse-K2vnS3Sw.js} +1 -1
  69. package/dist/assets/{ShipHotspots-OMjPhQWP.js → ShipHotspots-DILwqPxh.js} +1 -1
  70. package/dist/assets/{ShipIncident-Cqn6ZmKz.js → ShipIncident-DXXciEP7.js} +1 -1
  71. package/dist/assets/{ShipMigration-5_ZWn7K9.js → ShipMigration-rhBm0Tre.js} +1 -1
  72. package/dist/assets/{ShipOnboarding-Yr8oKgmQ.js → ShipOnboarding-9KCVVAkX.js} +1 -1
  73. package/dist/assets/{ShipRead-Bnw7mnv3.js → ShipRead-CMe1DNik.js} +1 -1
  74. package/dist/assets/{ShipRollout-ECsDrqAd.js → ShipRollout-BA4x-btU.js} +1 -1
  75. package/dist/assets/{ShipSuggestions-C6oDw2F8.js → ShipSuggestions-Jm45jfFl.js} +1 -1
  76. package/dist/assets/{ShipWorkspace-BT6gZrqd.js → ShipWorkspace--x-q6Ly3.js} +1 -1
  77. package/dist/assets/{SignatureLoop-D7sibSnc.js → SignatureLoop-B_cHyXgU.js} +1 -1
  78. package/dist/assets/{SynthesisApp-B768x2r_.js → SynthesisApp-CvR_8g1C.js} +2 -2
  79. package/dist/assets/{SynthesisOverlay-Ds0MhZLQ.js → SynthesisOverlay-DFFD69hf.js} +1 -1
  80. package/dist/assets/{TermsApp-Da8FeMj3.js → TermsApp-BxLgLSna.js} +1 -1
  81. package/dist/assets/{TopicCanvas-D64O3lvD.js → TopicCanvas-CKvJb_8Y.js} +2 -2
  82. package/dist/assets/{TopicCanvas-D2Nax9II.css → TopicCanvas-uRuHi99s.css} +1 -1
  83. package/dist/assets/{TourPrism-CTf1G-Vv.js → TourPrism-bqOmSZ9T.js} +1 -1
  84. package/dist/assets/{TrackerTile-DeujTCk-.js → TrackerTile-BuAVmOyi.js} +2 -2
  85. package/dist/assets/{TwoSurfaces-kyK2yqm0.js → TwoSurfaces-CjtKXWJr.js} +1 -1
  86. package/dist/assets/{UnderstoodPanel-Dgwk_Cuj.js → UnderstoodPanel-BWFbpk9o.js} +1 -1
  87. package/dist/assets/{WhyMachineOverlay-C4eQC0lg.js → WhyMachineOverlay-D6pGEE78.js} +1 -1
  88. package/dist/assets/{WowFeatures-CaBZ5WPM.js → WowFeatures-CLx5VoKn.js} +1 -1
  89. package/dist/assets/{ZoomDeck-DnCtbhx1.js → ZoomDeck-R6MLUt4Z.js} +1 -1
  90. package/dist/assets/{alternateFinishes-FSV_gA1A.js → alternateFinishes-C8DBTwo_.js} +1 -1
  91. package/dist/assets/{annotationAuto-x_dV8z65.js → annotationAuto-ofVcqRve.js} +1 -1
  92. package/dist/assets/{annotationReel-SeXzv0P-.js → annotationReel-CdAmTPlv.js} +1 -1
  93. package/dist/assets/{backup-0zODkqi-.js → backup-TgoSxdwf.js} +1 -1
  94. package/dist/assets/canvas-BrUiUI9Q.js +1 -0
  95. package/dist/assets/{catalog-Car_1ocN.js → catalog-BrmxA4bP.js} +1 -1
  96. package/dist/assets/{dashboardEvents-BqcPN-K8.js → dashboardEvents-DT6ye9n7.js} +1 -1
  97. package/dist/assets/{dist-BTg4yEWr.js → dist-COAFD72d.js} +1 -1
  98. package/dist/assets/{fit-I3tuibfX.js → fit-BtKObM5Q.js} +1 -1
  99. package/dist/assets/{generateLive-Dk24OxVt.js → generateLive-BvE3kOrf.js} +1 -1
  100. package/dist/assets/gesture-Bouqjr3g.js +2 -0
  101. package/dist/assets/{index-CWqRe4-B.js → index-DOpl5xzv.js} +3 -3
  102. package/dist/assets/{jspdf.es.min-wkD3BzGZ.js → jspdf.es.min-DSMzCXtv.js} +1 -1
  103. package/dist/assets/{kokoro-B-3GqktX.js → kokoro-B-MNB16v.js} +1 -1
  104. package/dist/assets/{lib-CwruVYU_.js → lib-BLt1wpw2.js} +1 -1
  105. package/dist/assets/{liveSchema-CCpVMy0H.js → liveSchema-DbjsSolX.js} +2 -2
  106. package/dist/assets/{motion-CURfDtdH.js → motion-DKmdzFji.js} +1 -1
  107. package/dist/assets/{notes-BG5QP-Dj.js → notes-D_uDKcr5.js} +1 -1
  108. package/dist/assets/{pdf-x4qTBJIZ.js → pdf-uUFiTOYW.js} +1 -1
  109. package/dist/assets/{penStrokes-9Q_l7NTt.js → penStrokes-DlHnO9xE.js} +1 -1
  110. package/dist/assets/{perfProbe-BFwfpxJt.js → perfProbe-DIAQR2bi.js} +1 -1
  111. package/dist/assets/{pin-DRN5H7py.js → pin-DoSzEmTm.js} +1 -1
  112. package/dist/assets/{portal-BYHo9LOD.js → portal-4sKB1Tgc.js} +1 -1
  113. package/dist/assets/{pptxgen.es-DGywGiaX.js → pptxgen.es-BVKKMlmO.js} +1 -1
  114. package/dist/assets/{prewarm-CQNCE4Uq.js → prewarm-D31Si_08.js} +1 -1
  115. package/dist/assets/{quietHours-CKjQ2pGY.js → quietHours-sfkvrkJv.js} +1 -1
  116. package/dist/assets/registry--yZ1HduK.js +1 -0
  117. package/dist/assets/{registry-CfTTYQrE.js → registry-B3RfPAd6.js} +1 -1
  118. package/dist/assets/{registry-DBsjgIxw.js → registry-B3u3--Kv.js} +1 -1
  119. package/dist/assets/{registry-DFmFBfRz.js → registry-BOS6AdnB.js} +1 -1
  120. package/dist/assets/{registry-Dw42uggW.js → registry-BWzoIPXp.js} +1 -1
  121. package/dist/assets/{registry-CNr6L-3z.js → registry-Bj8q4igW.js} +1 -1
  122. package/dist/assets/{registry-_T6pLDPG.js → registry-BnSnMnyk.js} +2 -2
  123. package/dist/assets/{registry-aUZZeh27.js → registry-BpccSYOo.js} +1 -1
  124. package/dist/assets/{registry-BueBIP-N.js → registry-C4KB6Ls0.js} +1 -1
  125. package/dist/assets/{registry-cPmSqaRu.js → registry-CAZ7ubmd.js} +1 -1
  126. package/dist/assets/{registry-1BWL6SXY.js → registry-CYnKlcEy.js} +1 -1
  127. package/dist/assets/{registry-BZQeYzgv.js → registry-Chzw1Udo.js} +1 -1
  128. package/dist/assets/{registry-DrqQbf_n.js → registry-CkXIaQmB.js} +1 -1
  129. package/dist/assets/{registry-BklPTZre.js → registry-CrKVDfq8.js} +1 -1
  130. package/dist/assets/registry-D5oMqeSa.js +1 -0
  131. package/dist/assets/{registry-9S6KiKjR.js → registry-DOsiT4_6.js} +1 -1
  132. package/dist/assets/{registry-Bl3NkU-0.js → registry-DsjrEa0W.js} +1 -1
  133. package/dist/assets/{registry-Bc6_RQ8l.js → registry-DssqYPgu.js} +1 -1
  134. package/dist/assets/{registry-CqfjqOX5.js → registry-DxtkIiAV.js} +2 -2
  135. package/dist/assets/{registry-Bpx4VBWb.js → registry-DzNYBJ_a.js} +1 -1
  136. package/dist/assets/{registry-GLjcQX0n.js → registry-NdA9xh9G.js} +1 -1
  137. package/dist/assets/{registry-D84Bs-bD.js → registry-VRtsyPV7.js} +1 -1
  138. package/dist/assets/{registry-DEgW3zel.js → registry-d3dHoriR.js} +1 -1
  139. package/dist/assets/{registry-BpBiRe-o.js → registry-fLKnCnS5.js} +1 -1
  140. package/dist/assets/{relate-yq30L3hZ.js → relate-BG7aZWOq.js} +1 -1
  141. package/dist/assets/{shikiHighlight-BgZoQAHs.js → shikiHighlight-D9nfk5pW.js} +1 -1
  142. package/dist/assets/{useDashboardLoop-mGmJwv27.js → useDashboardLoop-CJ0M7ZXf.js} +3 -3
  143. package/dist/assets/{useLiveConfig-vMyjo2gV.js → useLiveConfig-DIvKKKpP.js} +1 -1
  144. package/dist/assets/{useSpatialCanvas-CEXy6ZC2.js → useSpatialCanvas-L0r29F7F.js} +1 -1
  145. package/dist/assets/{useSpotlightWalk-B9XJ6OLK.js → useSpotlightWalk-oyvTWe20.js} +1 -1
  146. package/dist/assets/{useSrsCards-Vc6B2_he.js → useSrsCards-BLNBqRe7.js} +1 -1
  147. package/dist/assets/{useStudy-6QnY-Fw_.js → useStudy-hvN-iGz0.js} +1 -1
  148. package/dist/assets/{useZoomGesture-BONUz5cE.js → useZoomGesture-Dl_Cfmxm.js} +1 -1
  149. package/dist/index.html +1 -1
  150. package/package.json +1 -1
  151. package/dist/assets/DashboardLoopRuntime-14yzj-xx.js +0 -1
  152. package/dist/assets/DashboardsApp-mvMbGmp0.js +0 -2
  153. package/dist/assets/DelegatePanel-pwRk9pFf.js +0 -26
  154. package/dist/assets/LiveApp-B8Jw1Q0h.js +0 -61
  155. package/dist/assets/LiveApp-DQhDk2ma.css +0 -1
  156. package/dist/assets/LiveSettings-BQ06gZB7.js +0 -6
  157. package/dist/assets/MindShape-Bel2yDqO.css +0 -1
  158. package/dist/assets/RehearsalPanel-BCU615wg.css +0 -1
  159. package/dist/assets/RehearsalPanel-CM4466Os.js +0 -6
  160. package/dist/assets/canvas-uhcwigAL.js +0 -1
  161. package/dist/assets/gesture-DabMpPcq.js +0 -2
  162. package/dist/assets/registry-BffpZK5w.js +0 -1
  163. package/dist/assets/registry-Z3TIPbYJ.js +0 -1
@@ -1 +1 @@
1
- import{r as e}from"./chunk-BVpWp9h4.js";import{t}from"./react-BQSORdFI.js";import{t as n}from"./jsx-runtime-DaSxXjOY.js";import{ht as r}from"./index-CWqRe4-B.js";import{n as i}from"./icons-CHVz6kv_.js";import{t as a}from"./richText-BkxJhl9N.js";import{r as o}from"./format-DlZTyeMy.js";import{a as s,r as c}from"./scale-Bcgfo6Hp.js";import"./lib-CwruVYU_.js";import{t as l}from"./registry-types-DMuK0vJ6.js";var u=t(),d=n();function f({title:e,icon:t=`sparkle`,iconColor:n=`var(--presence)`,steps:r,conclusion:o,footer:s,delay:c}){let l=i[t]||i.sparkle,[f,p]=(0,u.useState)(0);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`ai-cot`,children:r.map((e,t)=>{let n=f===t;return(0,d.jsxs)(`div`,{className:`ai-cot-step`+(n?` is-open`:``),children:[(0,d.jsxs)(`button`,{className:`ai-cot-head`,onClick:()=>p(n?-1:t),children:[(0,d.jsx)(`span`,{className:`ai-cot-dot`,children:(0,d.jsx)(`span`,{children:t+1})}),(0,d.jsxs)(`span`,{className:`ai-cot-body`,children:[(0,d.jsxs)(`span`,{className:`ai-cot-label`,children:[e.label,e.tag&&(0,d.jsx)(`span`,{className:`ai-tag`,style:{"--c":e.tagColor||`var(--presence)`},children:e.tag})]}),(0,d.jsx)(`span`,{className:`ai-cot-summary`,children:e.summary})]}),(0,d.jsx)(i.chevR,{className:`ai-cot-chev`+(n?` is-open`:``)})]}),n&&e.detail&&(0,d.jsx)(`div`,{className:`ai-cot-detail`,dangerouslySetInnerHTML:a(e.detail)})]},t)})}),o&&(0,d.jsxs)(`div`,{className:`ai-cot-conclusion`,children:[(0,d.jsx)(i.check,{className:`ic`}),(0,d.jsx)(`span`,{dangerouslySetInnerHTML:a(o)})]}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}var p={ok:{c:`var(--insight)`,label:`OK`},error:{c:`var(--danger)`,label:`ERR`},pending:{c:`var(--warning)`,label:`RUNNING`}};function m({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,calls:r,footer:o,delay:s}){let c=i[t]||i.layers,[l,f]=(0,u.useState)(0);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`ai-tc`,children:r.map((e,t)=>{let r=l===t,a=p[e.status||`ok`]||p.ok;return(0,d.jsxs)(`div`,{className:`ai-tc-call`+(r?` is-open`:``),children:[(0,d.jsxs)(`button`,{className:`ai-tc-head`,onClick:()=>f(r?-1:t),children:[(0,d.jsx)(`span`,{className:`ai-tc-conn`,"aria-hidden":!0}),(0,d.jsx)(`span`,{className:`ai-tc-verb mono`,style:{color:n},children:e.verb||`call`}),(0,d.jsx)(`span`,{className:`ai-tc-name mono`,children:e.name}),(0,d.jsx)(`span`,{className:`ai-tc-spacer`}),typeof e.ms==`number`&&(0,d.jsxs)(`span`,{className:`ai-tc-ms tab-num`,children:[e.ms,`ms`]}),(0,d.jsx)(`span`,{className:`ai-tc-status`,style:{"--c":a.c},children:a.label}),(0,d.jsx)(i.chevR,{className:`ai-cot-chev`+(r?` is-open`:``)})]}),r&&(0,d.jsxs)(`div`,{className:`ai-tc-detail`,children:[(0,d.jsxs)(`div`,{className:`ai-tc-pane`,children:[(0,d.jsxs)(`div`,{className:`ai-tc-pane-label`,children:[(0,d.jsx)(i.arrowUp,{className:`ic`}),` Request`]}),(0,d.jsx)(`pre`,{className:`ai-tc-code mono`,children:e.request})]}),(0,d.jsxs)(`div`,{className:`ai-tc-pane`,children:[(0,d.jsxs)(`div`,{className:`ai-tc-pane-label`,children:[(0,d.jsx)(i.arrowDown,{className:`ic`,style:{color:a.c}}),` Response`]}),(0,d.jsx)(`pre`,{className:`ai-tc-code mono`,children:e.response})]})]})]},t)})}),o&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}function h({title:e,icon:t=`share`,iconColor:n=`var(--presence)`,nodes:r,footer:o,delay:s}){let c=i[t]||i.share,[l,f]=(0,u.useState)(!1);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(c,{className:`ic`,style:{color:n}}),` `,e,(0,d.jsxs)(`button`,{className:`ai-at-toggle`+(l?` is-on`:``),onClick:()=>f(e=>!e),children:[(0,d.jsx)(i.layers,{className:`ic`}),` `,l?`Explored`:`Chosen path`]})]}),(0,d.jsx)(`div`,{className:`ai-at`,children:r.map((e,t)=>{let n=l?e.branches:e.branches.filter(e=>e.chosen);return(0,d.jsxs)(`div`,{className:`ai-at-node`,children:[(0,d.jsxs)(`div`,{className:`ai-at-step`,children:[(0,d.jsx)(`span`,{className:`ai-at-rail`,"aria-hidden":!0}),(0,d.jsx)(`span`,{className:`ai-at-stepnum tab-num`,children:t+1}),(0,d.jsxs)(`div`,{className:`ai-at-decision`,children:[(0,d.jsx)(`div`,{className:`ai-at-step-label`,children:e.step}),(0,d.jsx)(`div`,{className:`ai-at-step-q`,children:e.decision})]})]}),(0,d.jsx)(`div`,{className:`ai-at-branches`,children:n.map((e,t)=>{let n=e.chosen?e.color||`var(--insight)`:`var(--text-muted)`;return(0,d.jsxs)(`div`,{className:`ai-at-branch`+(e.chosen?` is-chosen`:` is-alt`),style:{"--c":n},children:[(0,d.jsx)(`span`,{className:`ai-at-branch-mark`,children:e.chosen?(0,d.jsx)(i.check,{className:`ic`}):(0,d.jsx)(i.x,{className:`ic`})}),(0,d.jsx)(`span`,{className:`ai-at-branch-label`,children:e.label}),e.note&&(0,d.jsx)(`span`,{className:`ai-at-branch-note`,children:e.note}),typeof e.score==`number`&&(0,d.jsx)(`span`,{className:`ai-at-branch-score tab-num`,children:Math.round(e.score*100)})]},t)})})]},t)})}),o&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}function g({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,prompt:r,outputs:o,footer:s,delay:c}){let l=i[t]||i.layers,[f,p]=(0,u.useState)(new Set),[m,h]=(0,u.useState)(!0),g=e=>p(t=>{let n=new Set(t);return n.has(e)?n.delete(e):o.length-n.size>1&&n.add(e),n}),_=o.filter((e,t)=>!f.has(t));return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e,(0,d.jsxs)(`button`,{className:`ai-at-toggle`+(m?` is-on`:``),onClick:()=>h(e=>!e),children:[(0,d.jsx)(i.eye,{className:`ic`}),` Diff`]})]}),r&&(0,d.jsxs)(`div`,{className:`ai-mc-prompt`,children:[(0,d.jsx)(`span`,{className:`ai-mc-prompt-tag`,children:`PROMPT`}),` `,r]}),(0,d.jsx)(`div`,{className:`ai-mc-tabs`,children:o.map((e,t)=>{let n=!f.has(t),r=e.color||`var(--presence)`;return(0,d.jsxs)(`button`,{className:`ai-mc-tab`+(n?` is-on`:``),style:{"--c":r},onClick:()=>g(t),children:[(0,d.jsx)(`span`,{className:`ai-mc-dot`}),e.model,e.best&&(0,d.jsx)(i.check,{className:`ai-mc-best`})]},t)})}),(0,d.jsx)(`div`,{className:`ai-mc-grid`+(m?``:` no-diff`),style:{"--cols":String(_.length)},children:o.map((e,t)=>f.has(t)?null:(0,d.jsxs)(`div`,{className:`ai-mc-col`+(e.best?` is-best`:``),style:{"--c":e.color||`var(--presence)`},children:[(0,d.jsxs)(`div`,{className:`ai-mc-col-head`,children:[(0,d.jsx)(`span`,{className:`ai-mc-dot`}),(0,d.jsx)(`span`,{className:`ai-mc-model`,children:e.model}),e.badge&&(0,d.jsx)(`span`,{className:`ai-mc-badge`,children:e.badge})]}),(0,d.jsx)(`div`,{className:`ai-mc-text`,dangerouslySetInnerHTML:a(e.text)}),e.meta&&e.meta.length>0&&(0,d.jsx)(`div`,{className:`ai-mc-meta`,children:e.meta.map((e,t)=>(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:e.k}),` `,(0,d.jsx)(`span`,{className:`tab-num`,children:e.v})]},t))})]},t))}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function _(e){return e>=.85?`var(--insight)`:e>=.6?`var(--presence)`:e>=.4?`var(--warning)`:`var(--danger)`}function v({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,prefix:r,tokens:o,footer:s,delay:c}){let l=i[t]||i.spark,[f,p]=(0,u.useState)(null),m=f==null?null:o[f];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`ai-ts-stream`,children:[r&&(0,d.jsx)(`span`,{className:`ai-ts-prefix`,children:r}),o.map((e,t)=>{let n=_(e.p);return(0,d.jsx)(`span`,{className:`ai-ts-tok`+(f===t?` is-on`:``),style:{"--c":n,"--a":String(.1+e.p*.32)},onMouseEnter:()=>p(t),onMouseLeave:()=>p(null),children:e.text},t)})]}),(0,d.jsx)(`div`,{className:`ai-ts-readout`,children:m?(0,d.jsxs)(`div`,{className:`ai-ts-pop`,children:[(0,d.jsxs)(`div`,{className:`ai-ts-pop-head`,children:[(0,d.jsx)(`span`,{className:`ai-ts-pop-tok mono`,children:m.text.trim()||`␣`}),(0,d.jsxs)(`span`,{className:`ai-ts-pop-p tab-num`,style:{color:_(m.p)},children:[(m.p*100).toFixed(1),`%`]})]}),(0,d.jsx)(`div`,{className:`ai-ts-bar`,children:(0,d.jsx)(`span`,{style:{width:`${m.p*100}%`,background:_(m.p)}})}),m.alts&&m.alts.length>0&&(0,d.jsxs)(`div`,{className:`ai-ts-alts`,children:[(0,d.jsx)(`span`,{className:`faint`,children:`alternatives`}),m.alts.map((e,t)=>(0,d.jsxs)(`span`,{className:`ai-ts-alt`,children:[(0,d.jsx)(`span`,{className:`mono`,children:e.t.trim()||`␣`}),(0,d.jsxs)(`span`,{className:`tab-num faint`,children:[(e.p*100).toFixed(0),`%`]})]},t))]})]}):(0,d.jsxs)(`span`,{className:`faint`,children:[(0,d.jsx)(i.eye,{className:`ic`,style:{verticalAlign:`-2px`,width:14,height:14}}),` `,`Hover a token to see its probability and top alternatives`]})}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function y(e){return e>=.8?`var(--insight)`:e>=.6?`var(--presence)`:e>=.4?`var(--warning)`:`var(--text-muted)`}function b({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,query:r,chunks:o,footer:s,delay:c}){let l=i[t]||i.layers,f=o.map((e,t)=>({c:e,i:t})).sort((e,t)=>t.c.score-e.c.score),[p,m]=(0,u.useState)(f.length?f[0].i:-1);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,d.jsxs)(`div`,{className:`ai-rt-query`,children:[(0,d.jsx)(i.spark,{className:`ic`,style:{color:n}}),` `,(0,d.jsx)(`span`,{children:r})]}),(0,d.jsx)(`div`,{className:`ai-rt`,children:f.map(({c:e,i:t},n)=>{let r=p===t,o=y(e.score);return(0,d.jsxs)(`div`,{className:`ai-rt-chunk`+(r?` is-open`:``),style:{"--c":o},children:[(0,d.jsxs)(`button`,{className:`ai-rt-head`,onClick:()=>m(r?-1:t),children:[(0,d.jsx)(`span`,{className:`ai-rt-rank tab-num`,children:n+1}),(0,d.jsxs)(`span`,{className:`ai-rt-body`,children:[(0,d.jsxs)(`span`,{className:`ai-rt-source`,children:[(0,d.jsx)(i.doc,{className:`ic`}),` `,e.source,e.used&&(0,d.jsx)(`span`,{className:`ai-rt-used`,children:`used`}),e.tag&&(0,d.jsx)(`span`,{className:`ai-tag`,style:{"--c":e.tagColor||`var(--presence)`},children:e.tag})]}),(0,d.jsx)(`span`,{className:`ai-rt-snippet`,children:e.snippet})]}),(0,d.jsxs)(`span`,{className:`ai-rt-score`,children:[(0,d.jsx)(`span`,{className:`ai-rt-meter`,children:(0,d.jsx)(`span`,{style:{width:`${e.score*100}%`,background:o}})}),(0,d.jsx)(`span`,{className:`tab-num`,style:{color:o},children:e.score.toFixed(2)})]}),(0,d.jsx)(i.chevR,{className:`ai-cot-chev`+(r?` is-open`:``)})]}),r&&e.body&&(0,d.jsx)(`div`,{className:`ai-rt-detail`,dangerouslySetInnerHTML:a(e.body)})]},t)})}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function x({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,beforeLabel:r=`Before`,afterLabel:o=`After`,before:s,after:c,diff:l,footer:f,delay:p}){let m=i[t]||i.edit,[h,g]=(0,u.useState)(`diff`),_=l.filter(e=>e.t===`add`).length,v=l.filter(e=>e.t===`del`).length;return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`ai-wc-seg`,children:[(0,d.jsx)(`button`,{className:`ai-wc-seg-btn`+(h===`before`?` is-on`:``),onClick:()=>g(`before`),children:r}),(0,d.jsx)(`button`,{className:`ai-wc-seg-btn`+(h===`after`?` is-on`:``),onClick:()=>g(`after`),children:o}),(0,d.jsxs)(`button`,{className:`ai-wc-seg-btn`+(h===`diff`?` is-on`:``),onClick:()=>g(`diff`),children:[`Diff`,` `,(0,d.jsxs)(`span`,{className:`ai-wc-count`,children:[(0,d.jsxs)(`span`,{className:`ai-wc-add`,children:[`+`,_]}),` `,(0,d.jsxs)(`span`,{className:`ai-wc-del`,children:[`−`,v]})]})]})]}),h===`before`&&(0,d.jsx)(`div`,{className:`ai-wc-prose ai-wc-old`,dangerouslySetInnerHTML:a(s)}),h===`after`&&(0,d.jsx)(`div`,{className:`ai-wc-prose ai-wc-new`,dangerouslySetInnerHTML:a(c)}),h===`diff`&&(0,d.jsx)(`div`,{className:`ai-wc-diff`,children:l.map((e,t)=>(0,d.jsxs)(`div`,{className:`ai-wc-line `+(e.t||`ctx`),children:[(0,d.jsx)(`span`,{className:`ai-wc-gutter`,children:e.t===`add`?`+`:e.t===`del`?`−`:``}),(0,d.jsx)(`span`,{className:`ai-wc-content`,dangerouslySetInnerHTML:a(e.c)})]},t))}),f&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}function S({title:e,icon:t=`share`,iconColor:n=`var(--presence)`,query:r,classifier:o=`router`,choices:s,footer:c,delay:l}){let f=i[t]||i.share,[p,m]=(0,u.useState)(Math.max(0,s.findIndex(e=>e.taken))),h=s[p];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`ai-ro`,children:[(0,d.jsxs)(`div`,{className:`ai-ro-source`,children:[r&&(0,d.jsx)(`div`,{className:`ai-ro-query`,children:r}),(0,d.jsxs)(`div`,{className:`ai-ro-classifier`,children:[(0,d.jsx)(i.sparkle,{className:`ic`,style:{color:n}}),` `,o]})]}),(0,d.jsx)(`svg`,{role:`img`,"aria-label":e,className:`ai-ro-wires`,viewBox:`0 0 40 100`,preserveAspectRatio:`none`,"aria-hidden":!0,children:s.map((e,t)=>{let n=(t+.5)/s.length*100,r=e.taken;return(0,d.jsx)(`path`,{d:`M0 50 C 20 50, 20 ${n}, 40 ${n}`,fill:`none`,stroke:r?e.color||`var(--insight)`:`var(--grid-strong)`,strokeWidth:r?2.4:1.4,strokeDasharray:r?`0`:`3 3`},t)})}),(0,d.jsx)(`div`,{className:`ai-ro-choices`,children:s.map((e,t)=>{let n=e.color||(e.taken?`var(--insight)`:`var(--text-muted)`);return(0,d.jsxs)(`button`,{className:`ai-ro-choice`+(e.taken?` is-taken`:``)+(p===t?` is-sel`:``),style:{"--c":n},onClick:()=>m(t),children:[(0,d.jsxs)(`span`,{className:`ai-ro-choice-top`,children:[(0,d.jsx)(`span`,{className:`ai-ro-choice-label`,children:e.label}),e.taken&&(0,d.jsx)(`span`,{className:`ai-ro-taken`,children:(0,d.jsx)(i.check,{className:`ic`})})]}),e.sub&&(0,d.jsx)(`span`,{className:`ai-ro-choice-sub`,children:e.sub}),typeof e.score==`number`&&(0,d.jsx)(`span`,{className:`ai-ro-choice-meter`,children:(0,d.jsx)(`span`,{style:{width:`${e.score*100}%`,background:n}})})]},t)})})]}),h&&h.reason&&(0,d.jsxs)(`div`,{className:`ai-ro-reason`,style:{"--c":h.color||(h.taken?`var(--insight)`:`var(--presence)`)},children:[(0,d.jsx)(i.quote,{className:`ic`}),(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`strong`,{children:h.label}),` —`,` `,(0,d.jsx)(`span`,{dangerouslySetInnerHTML:a(h.reason)})]})]}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var C=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--presence-soft)`,`var(--danger)`];function w({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,clusters:r,points:o,footer:s,delay:c}){let l=i[t]||i.globe,[f,p]=(0,u.useState)(null),[m,h]=(0,u.useState)(null),g=e=>r[e]?.color||C[e%C.length],_=e=>14+e*512,v=e=>14+(1-e)*272,y=f==null?null:o[f];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`ai-em-legend`,children:r.map((e,t)=>(0,d.jsxs)(`button`,{className:`ai-em-leg`+(m===t?` is-on`:``)+(m!=null&&m!==t?` muted`:``),onClick:()=>h(m===t?null:t),children:[(0,d.jsx)(`span`,{className:`ai-em-swatch`,style:{background:g(t)}}),e.name]},t))}),(0,d.jsx)(`div`,{className:`ai-em-wrap`,children:(0,d.jsxs)(`svg`,{role:`img`,"aria-label":e,viewBox:`0 0 540 300`,width:`100%`,className:`ai-em-svg`,style:{display:`block`},children:[[.25,.5,.75].map(e=>(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`line`,{x1:_(e),y1:14,x2:_(e),y2:286,stroke:`var(--grid-line)`,strokeWidth:`1`}),(0,d.jsx)(`line`,{x1:14,y1:v(e),x2:526,y2:v(e),stroke:`var(--grid-line)`,strokeWidth:`1`})]},e)),o.map((e,t)=>{let n=g(e.cluster),r=m!=null&&m!==e.cluster,a=f===t;return e.query?(0,d.jsxs)(`g`,{onMouseEnter:()=>p(t),onMouseLeave:()=>p(null),style:{cursor:`pointer`},children:[(0,d.jsx)(`circle`,{cx:_(e.x),cy:v(e.y),r:a?11:9,fill:`none`,stroke:`var(--presence)`,strokeWidth:`2`,opacity:r?.3:1}),(0,d.jsx)(i.spark,{x:_(e.x)-6,y:v(e.y)-6,width:`12`,height:`12`,style:{color:`var(--presence)`,opacity:r?.3:1}})]},t):(0,d.jsx)(`circle`,{cx:_(e.x),cy:v(e.y),r:a?7:4.5,fill:n,opacity:r?.18:a?1:.82,stroke:a?`var(--text-primary)`:`transparent`,strokeWidth:a?1.5:0,onMouseEnter:()=>p(t),onMouseLeave:()=>p(null),style:{cursor:`pointer`,transition:`r var(--m-fast) var(--ease-out)`}},t)})]})}),(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:y?(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`ai-em-swatch`,style:{background:g(y.cluster),display:`inline-block`,verticalAlign:`middle`,marginRight:6}}),(0,d.jsx)(`strong`,{style:{color:`var(--text-primary)`},children:y.label}),(0,d.jsxs)(`span`,{className:`faint`,children:[` `,`· `,r[y.cluster]?.name||`cluster ${y.cluster}`]})]}):s?(0,d.jsx)(`span`,{dangerouslySetInnerHTML:a(s)}):(0,d.jsx)(`span`,{className:`faint`,children:`Hover a point for its label · click a legend chip to isolate a cluster`})})]})}function T({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,bins:r,color:o=`var(--presence)`,ece:s,footer:c,delay:l}){let f=i[t]||i.chart,p=[...r].sort((e,t)=>e.predicted-t.predicted),[m,h]=(0,u.useState)(null),g=e=>42+e*236,_=e=>278-e*236,v=Math.max(1,...p.map(e=>e.count)),y=p.map((e,t)=>`${t?`L`:`M`} ${g(e.predicted)} ${_(e.actual)}`).join(` `),b=m==null?null:p[m];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e,s&&(0,d.jsxs)(`span`,{className:`ai-cal-ece tab-num`,children:[`ECE `,s]})]}),(0,d.jsx)(`div`,{className:`ai-cal-wrap`,children:(0,d.jsxs)(`svg`,{role:`img`,"aria-label":e,viewBox:`0 0 320 320`,width:`100%`,className:`ai-cal-svg`,style:{display:`block`},children:[p.map((e,t)=>{let n=236/p.length,r=e.count/v*236*.5;return(0,d.jsx)(`rect`,{x:g(e.predicted)-n*.32,y:278-r,width:n*.64,height:r,fill:`var(--track)`,rx:2,opacity:m===t?.9:.55},`c`+t)}),(0,d.jsx)(`line`,{x1:42,y1:278,x2:278,y2:278,stroke:`var(--grid-strong)`,strokeWidth:`1`}),(0,d.jsx)(`line`,{x1:42,y1:42,x2:42,y2:278,stroke:`var(--grid-strong)`,strokeWidth:`1`}),(0,d.jsx)(`line`,{x1:g(0),y1:_(0),x2:g(1),y2:_(1),stroke:`var(--hover-line)`,strokeWidth:`1.4`,strokeDasharray:`5 5`}),(0,d.jsx)(`path`,{d:y,fill:`none`,stroke:o,strokeWidth:`2.4`,strokeLinejoin:`round`,strokeLinecap:`round`}),p.map((e,t)=>{let n=m===t;return(0,d.jsxs)(`g`,{onMouseEnter:()=>h(t),onMouseLeave:()=>h(null),style:{cursor:`pointer`},children:[(0,d.jsx)(`circle`,{cx:g(e.predicted),cy:_(e.actual),r:14,fill:`transparent`}),n&&(0,d.jsx)(`line`,{x1:g(e.predicted),y1:_(e.predicted),x2:g(e.predicted),y2:_(e.actual),stroke:`var(--warning)`,strokeWidth:`1.4`,strokeDasharray:`2 2`}),(0,d.jsx)(`circle`,{cx:g(e.predicted),cy:_(e.actual),r:n?6:4,fill:o,stroke:`var(--surface-1, var(--bg))`,strokeWidth:`1.5`,style:{transition:`r var(--m-fast)`}})]},`p`+t)}),(0,d.jsx)(`text`,{x:320/2,y:314,textAnchor:`middle`,fontSize:`11`,fill:`var(--text-muted)`,children:`predicted probability`}),(0,d.jsx)(`text`,{x:0,y:0,transform:`translate(14, ${320/2}) rotate(-90)`,textAnchor:`middle`,fontSize:`11`,fill:`var(--text-muted)`,children:`observed accuracy`})]})}),(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:8},children:b?(0,d.jsxs)(`span`,{className:`ai-cal-readout`,children:[(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:`predicted`}),` `,(0,d.jsxs)(`span`,{className:`tab-num`,children:[(b.predicted*100).toFixed(0),`%`]})]}),(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:`actual`}),` `,(0,d.jsxs)(`span`,{className:`tab-num`,style:{color:o},children:[(b.actual*100).toFixed(0),`%`]})]}),(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:`gap`}),` `,(0,d.jsxs)(`span`,{className:`tab-num`,style:{color:`var(--warning)`},children:[((b.actual-b.predicted)*100).toFixed(0),`pt`]})]}),(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:`n`}),` `,(0,d.jsx)(`span`,{className:`tab-num`,children:b.count})]})]}):c?(0,d.jsx)(`span`,{dangerouslySetInnerHTML:a(c)}):(0,d.jsx)(`span`,{className:`faint`,children:`Dashed diagonal = perfect calibration · hover a bin for predicted vs actual`})})]})}var E={GET:`var(--presence)`,POST:`var(--insight)`,PUT:`var(--warning)`,PATCH:`var(--warning)`,DELETE:`var(--danger)`};function D(e){return typeof e==`number`?e>=500?`var(--danger)`:e>=400?`var(--warning)`:e>=300?`var(--presence)`:e>=200?`var(--insight)`:`var(--text-muted)`:`var(--text-muted)`}function O({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,exchanges:r,caption:s,footer:c,delay:l}){let f=i[t]||i.globe,[p,m]=(0,u.useState)(r.findIndex(e=>e.reqBody||e.respPreview));return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[e&&(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`ai-hx`,children:r.map((e,t)=>{let n=D(e.status),r=E[e.method]||`var(--text-secondary)`,a=!!(e.reqBody||e.respPreview),s=p===t;return(0,d.jsxs)(`div`,{className:`ai-hx-row`+(s?` is-open`:``),children:[(0,d.jsxs)(`button`,{className:`ai-hx-head`,onClick:()=>a&&m(s?-1:t),...a?{}:{"aria-disabled":!0,tabIndex:-1},children:[(0,d.jsx)(`span`,{className:`ai-hx-method mono`,style:{"--c":r},children:e.method}),(0,d.jsx)(`span`,{className:`ai-hx-url mono`,children:e.url}),(0,d.jsx)(`span`,{className:`ai-hx-spacer`}),typeof e.durationMs==`number`&&(0,d.jsx)(`span`,{className:`ai-hx-ms tab-num`,children:o(e.durationMs,{unit:`ms`,decimals:0})}),typeof e.status==`number`&&(0,d.jsxs)(`span`,{className:`ai-hx-status tab-num`,style:{"--c":n},title:e.statusText,children:[e.status,e.statusText&&(0,d.jsxs)(`span`,{className:`ai-hx-status-text`,children:[` `,e.statusText]})]}),a&&(0,d.jsx)(i.chevR,{className:`ai-cot-chev`+(s?` is-open`:``)})]}),e.note&&(0,d.jsxs)(`div`,{className:`ai-hx-note`,style:{"--c":n},children:[(0,d.jsx)(i.alert,{className:`ic`}),` `,(0,d.jsx)(`span`,{children:e.note})]}),a&&s&&(0,d.jsxs)(`div`,{className:`ai-hx-detail`,children:[e.reqBody&&(0,d.jsxs)(`div`,{className:`ai-hx-pane`,children:[(0,d.jsxs)(`div`,{className:`ai-hx-pane-label`,children:[(0,d.jsx)(i.arrowUp,{className:`ic`}),` Request`]}),(0,d.jsx)(`pre`,{className:`ai-hx-code mono`,children:e.reqBody})]}),e.respPreview&&(0,d.jsxs)(`div`,{className:`ai-hx-pane`,children:[(0,d.jsxs)(`div`,{className:`ai-hx-pane-label`,children:[(0,d.jsx)(i.arrowDown,{className:`ic`,style:{color:n}}),` Response`]}),(0,d.jsx)(`pre`,{className:`ai-hx-code mono`,children:e.respPreview})]})]})]},t)})}),s&&(0,d.jsx)(`div`,{className:`ai-hx-caption`,children:s}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var k=r(),A=320,j={l:44,r:16,t:16,b:36},M=A-j.l-j.r;function N(e,t,n,r,i,a){let o=[...t??[],...n??[]].filter(Number.isFinite);if(!o.length)return null;let l=Math.max(...o)*1.08||1,u=s(0,l,c(l-0,4)).filter(e=>e<=l),d=r-j.t-j.b,f=e.length,p=(e,t)=>j.l+(t>1?e/(t-1)*M:M/2),m=e=>j.t+d-(e-0)/(l-0)*d,h=e=>e.map((e,t)=>`${t===0?`M`:`L`}${p(t,f).toFixed(1)},${m(e).toFixed(1)}`).join(` `),g=t?h(t):``,_=n?h(n):``,v=``;if(a&&t&&n){let e=Math.min(t.length,n.length),r=[],i=[];for(let a=0;a<e;a++)n[a]>t[a]&&(r.push(`${p(a,f).toFixed(1)},${m(n[a]).toFixed(1)}`),i.push(`${p(a,f).toFixed(1)},${m(t[a]).toFixed(1)}`));r.length>=2&&(v=`M${r.join(` L`)} L${[...i].reverse().join(` L`)} Z`)}let y=i!==null&&i>=0&&i<f?p(i,f):null;return{yMin:0,yMax:l,yTickVals:u,PH:d,toX:e=>p(e,f),toY:m,trainPath:g,valPath:_,overfitPath:v,bestX:y}}function P(e){let t=(0,k.c)(42),{model:n,epochs:r,label:i,offsetY:a}=e,{yTickVals:o,PH:s,toX:c,toY:l,trainPath:u,valPath:f,overfitPath:p,bestX:m}=n,h=r.length,g=`translate(0,${a})`,_;if(t[0]!==l||t[1]!==o){let e;t[3]===l?e=t[4]:(e=e=>(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`line`,{x1:j.l,y1:l(e),x2:j.l+M,y2:l(e),stroke:`var(--grid-line)`,strokeWidth:.8}),(0,d.jsx)(`text`,{x:j.l-5,y:l(e)+4,textAnchor:`end`,fontSize:8,fill:`var(--text-muted)`,fontFamily:`inherit`,children:e<1?e.toFixed(2):e.toFixed(1)})]},e),t[3]=l,t[4]=e),_=o.map(e),t[0]=l,t[1]=o,t[2]=_}else _=t[2];let v=j.t+s,y;t[5]===v?y=t[6]:(y=(0,d.jsx)(`line`,{x1:j.l,y1:j.t,x2:j.l,y2:v,stroke:`var(--grid-strong)`,strokeWidth:1}),t[5]=v,t[6]=y);let b=j.t+s,x=j.t+s,S;t[7]!==b||t[8]!==x?(S=(0,d.jsx)(`line`,{x1:j.l,y1:b,x2:j.l+M,y2:x,stroke:`var(--grid-strong)`,strokeWidth:1}),t[7]=b,t[8]=x,t[9]=S):S=t[9];let C;t[10]===p?C=t[11]:(C=p&&(0,d.jsx)(`path`,{d:p,fill:`var(--danger)`,fillOpacity:.1}),t[10]=p,t[11]=C);let w;t[12]!==s||t[13]!==m?(w=m!==null&&(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`line`,{x1:m,y1:j.t,x2:m,y2:j.t+s,stroke:`var(--warning)`,strokeWidth:1.5,strokeDasharray:`4 3`}),(0,d.jsx)(`text`,{x:m>A-50?m-3:m+3,y:j.t+10,textAnchor:m>A-50?`end`:`start`,fontSize:8,fill:`var(--warning)`,fontFamily:`inherit`,fontWeight:`600`,children:`Best`})]}),t[12]=s,t[13]=m,t[14]=w):w=t[14];let T;t[15]===u?T=t[16]:(T=u&&(0,d.jsx)(`path`,{d:u,fill:`none`,stroke:`var(--insight)`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`}),t[15]=u,t[16]=T);let E;t[17]===f?E=t[18]:(E=f&&(0,d.jsx)(`path`,{d:f,fill:`none`,stroke:`var(--presence)`,strokeWidth:2,strokeDasharray:`5 3`,strokeLinecap:`round`,strokeLinejoin:`round`}),t[17]=f,t[18]=E);let D;if(t[19]!==s||t[20]!==r||t[21]!==h||t[22]!==c){let e;t[24]!==s||t[25]!==h||t[26]!==c?(e=(e,t)=>t%Math.max(1,Math.ceil(h/6))!==0&&t!==h-1?null:(0,d.jsx)(`text`,{x:c(t),y:j.t+s+14,textAnchor:`middle`,fontSize:8,fill:`var(--text-muted)`,fontFamily:`inherit`,children:e},e),t[24]=s,t[25]=h,t[26]=c,t[27]=e):e=t[27],D=r.map(e),t[19]=s,t[20]=r,t[21]=h,t[22]=c,t[23]=D}else D=t[23];let O;t[28]===i?O=t[29]:(O=(0,d.jsx)(`text`,{x:j.l+4,y:j.t+12,fontSize:9,fontWeight:`600`,fill:`var(--text-secondary)`,fontFamily:`inherit`,children:i}),t[28]=i,t[29]=O);let N;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,d.jsxs)(`g`,{transform:`translate(${A-j.r-72},${j.t+2})`,children:[(0,d.jsx)(`line`,{x1:0,y1:5,x2:14,y2:5,stroke:`var(--insight)`,strokeWidth:2}),(0,d.jsx)(`text`,{x:17,y:9,fontSize:8,fill:`var(--text-muted)`,fontFamily:`inherit`,children:`Train`}),(0,d.jsx)(`line`,{x1:0,y1:16,x2:14,y2:16,stroke:`var(--presence)`,strokeWidth:2,strokeDasharray:`4 2`}),(0,d.jsx)(`text`,{x:17,y:20,fontSize:8,fill:`var(--text-muted)`,fontFamily:`inherit`,children:`Val`})]}),t[30]=N):N=t[30];let P;return t[31]!==g||t[32]!==T||t[33]!==E||t[34]!==D||t[35]!==O||t[36]!==_||t[37]!==y||t[38]!==S||t[39]!==C||t[40]!==w?(P=(0,d.jsxs)(`g`,{transform:g,children:[_,y,S,C,w,T,E,D,O,N]}),t[31]=g,t[32]=T,t[33]=E,t[34]=D,t[35]=O,t[36]=_,t[37]=y,t[38]=S,t[39]=C,t[40]=w,t[41]=P):P=t[41],P}function F({title:e=`Training Curves`,icon:t=`sparkle`,iconColor:n=`var(--presence)`,epochs:r,trainLoss:o,valLoss:s,trainAcc:c,valAcc:l,bestEpoch:f,lossLabel:p=`Loss`,accLabel:m=`Accuracy`,footer:h,delay:g}){let _=i[t]??i.sparkle,v=o!==void 0||s!==void 0,y=c!==void 0||l!==void 0,b=+!!v+ +!!y,x=b>1?180:220,S=b*x,C=(0,u.useMemo)(()=>{if(f===void 0)return null;let e=r.indexOf(f);return e>=0?e:null},[f,r]),w=(0,u.useMemo)(()=>v?N(r,o,s,x,C,!0):null,[r,o,s,x,C,v]),T=(0,u.useMemo)(()=>y?N(r,c,l,x,C,!1):null,[r,c,l,x,C,y]);return!r.length||b===0?null:(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(_,{className:`ic`,style:{color:n}}),e]}),(0,d.jsxs)(`svg`,{viewBox:`0 0 ${A} ${S}`,width:`100%`,role:`img`,"aria-label":e,style:{display:`block`,overflow:`visible`},children:[w&&(0,d.jsx)(P,{model:w,epochs:r,label:p,offsetY:0}),T&&(0,d.jsx)(P,{model:T,epochs:r,label:m,offsetY:w?x:0})]}),h&&(0,d.jsx)(`div`,{className:`insight-summary`,dangerouslySetInnerHTML:a(h)})]})}var I=e({aiRegistry:()=>L}),L={reasoning:l(f),toolcalls:l(m),agenttrace:l(h),modelcompare:l(g),tokenstream:l(v),retrieval:l(b),whatchanged:l(x),routing:l(S),embedmap:l(w),calibration:l(T),httpexchange:l(O),trainingcurve:l(F)};export{I as n,L as t};
1
+ import{r as e}from"./chunk-BVpWp9h4.js";import{t}from"./react-BQSORdFI.js";import{t as n}from"./jsx-runtime-DaSxXjOY.js";import{ht as r}from"./index-DOpl5xzv.js";import{n as i}from"./icons-CHVz6kv_.js";import{t as a}from"./richText-BkxJhl9N.js";import{r as o}from"./format-DlZTyeMy.js";import{a as s,r as c}from"./scale-Bcgfo6Hp.js";import"./lib-BLt1wpw2.js";import{t as l}from"./registry-types-DMuK0vJ6.js";var u=t(),d=n();function f({title:e,icon:t=`sparkle`,iconColor:n=`var(--presence)`,steps:r,conclusion:o,footer:s,delay:c}){let l=i[t]||i.sparkle,[f,p]=(0,u.useState)(0);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`ai-cot`,children:r.map((e,t)=>{let n=f===t;return(0,d.jsxs)(`div`,{className:`ai-cot-step`+(n?` is-open`:``),children:[(0,d.jsxs)(`button`,{className:`ai-cot-head`,onClick:()=>p(n?-1:t),children:[(0,d.jsx)(`span`,{className:`ai-cot-dot`,children:(0,d.jsx)(`span`,{children:t+1})}),(0,d.jsxs)(`span`,{className:`ai-cot-body`,children:[(0,d.jsxs)(`span`,{className:`ai-cot-label`,children:[e.label,e.tag&&(0,d.jsx)(`span`,{className:`ai-tag`,style:{"--c":e.tagColor||`var(--presence)`},children:e.tag})]}),(0,d.jsx)(`span`,{className:`ai-cot-summary`,children:e.summary})]}),(0,d.jsx)(i.chevR,{className:`ai-cot-chev`+(n?` is-open`:``)})]}),n&&e.detail&&(0,d.jsx)(`div`,{className:`ai-cot-detail`,dangerouslySetInnerHTML:a(e.detail)})]},t)})}),o&&(0,d.jsxs)(`div`,{className:`ai-cot-conclusion`,children:[(0,d.jsx)(i.check,{className:`ic`}),(0,d.jsx)(`span`,{dangerouslySetInnerHTML:a(o)})]}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}var p={ok:{c:`var(--insight)`,label:`OK`},error:{c:`var(--danger)`,label:`ERR`},pending:{c:`var(--warning)`,label:`RUNNING`}};function m({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,calls:r,footer:o,delay:s}){let c=i[t]||i.layers,[l,f]=(0,u.useState)(0);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`ai-tc`,children:r.map((e,t)=>{let r=l===t,a=p[e.status||`ok`]||p.ok;return(0,d.jsxs)(`div`,{className:`ai-tc-call`+(r?` is-open`:``),children:[(0,d.jsxs)(`button`,{className:`ai-tc-head`,onClick:()=>f(r?-1:t),children:[(0,d.jsx)(`span`,{className:`ai-tc-conn`,"aria-hidden":!0}),(0,d.jsx)(`span`,{className:`ai-tc-verb mono`,style:{color:n},children:e.verb||`call`}),(0,d.jsx)(`span`,{className:`ai-tc-name mono`,children:e.name}),(0,d.jsx)(`span`,{className:`ai-tc-spacer`}),typeof e.ms==`number`&&(0,d.jsxs)(`span`,{className:`ai-tc-ms tab-num`,children:[e.ms,`ms`]}),(0,d.jsx)(`span`,{className:`ai-tc-status`,style:{"--c":a.c},children:a.label}),(0,d.jsx)(i.chevR,{className:`ai-cot-chev`+(r?` is-open`:``)})]}),r&&(0,d.jsxs)(`div`,{className:`ai-tc-detail`,children:[(0,d.jsxs)(`div`,{className:`ai-tc-pane`,children:[(0,d.jsxs)(`div`,{className:`ai-tc-pane-label`,children:[(0,d.jsx)(i.arrowUp,{className:`ic`}),` Request`]}),(0,d.jsx)(`pre`,{className:`ai-tc-code mono`,children:e.request})]}),(0,d.jsxs)(`div`,{className:`ai-tc-pane`,children:[(0,d.jsxs)(`div`,{className:`ai-tc-pane-label`,children:[(0,d.jsx)(i.arrowDown,{className:`ic`,style:{color:a.c}}),` Response`]}),(0,d.jsx)(`pre`,{className:`ai-tc-code mono`,children:e.response})]})]})]},t)})}),o&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}function h({title:e,icon:t=`share`,iconColor:n=`var(--presence)`,nodes:r,footer:o,delay:s}){let c=i[t]||i.share,[l,f]=(0,u.useState)(!1);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(c,{className:`ic`,style:{color:n}}),` `,e,(0,d.jsxs)(`button`,{className:`ai-at-toggle`+(l?` is-on`:``),onClick:()=>f(e=>!e),children:[(0,d.jsx)(i.layers,{className:`ic`}),` `,l?`Explored`:`Chosen path`]})]}),(0,d.jsx)(`div`,{className:`ai-at`,children:r.map((e,t)=>{let n=l?e.branches:e.branches.filter(e=>e.chosen);return(0,d.jsxs)(`div`,{className:`ai-at-node`,children:[(0,d.jsxs)(`div`,{className:`ai-at-step`,children:[(0,d.jsx)(`span`,{className:`ai-at-rail`,"aria-hidden":!0}),(0,d.jsx)(`span`,{className:`ai-at-stepnum tab-num`,children:t+1}),(0,d.jsxs)(`div`,{className:`ai-at-decision`,children:[(0,d.jsx)(`div`,{className:`ai-at-step-label`,children:e.step}),(0,d.jsx)(`div`,{className:`ai-at-step-q`,children:e.decision})]})]}),(0,d.jsx)(`div`,{className:`ai-at-branches`,children:n.map((e,t)=>{let n=e.chosen?e.color||`var(--insight)`:`var(--text-muted)`;return(0,d.jsxs)(`div`,{className:`ai-at-branch`+(e.chosen?` is-chosen`:` is-alt`),style:{"--c":n},children:[(0,d.jsx)(`span`,{className:`ai-at-branch-mark`,children:e.chosen?(0,d.jsx)(i.check,{className:`ic`}):(0,d.jsx)(i.x,{className:`ic`})}),(0,d.jsx)(`span`,{className:`ai-at-branch-label`,children:e.label}),e.note&&(0,d.jsx)(`span`,{className:`ai-at-branch-note`,children:e.note}),typeof e.score==`number`&&(0,d.jsx)(`span`,{className:`ai-at-branch-score tab-num`,children:Math.round(e.score*100)})]},t)})})]},t)})}),o&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}function g({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,prompt:r,outputs:o,footer:s,delay:c}){let l=i[t]||i.layers,[f,p]=(0,u.useState)(new Set),[m,h]=(0,u.useState)(!0),g=e=>p(t=>{let n=new Set(t);return n.has(e)?n.delete(e):o.length-n.size>1&&n.add(e),n}),_=o.filter((e,t)=>!f.has(t));return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e,(0,d.jsxs)(`button`,{className:`ai-at-toggle`+(m?` is-on`:``),onClick:()=>h(e=>!e),children:[(0,d.jsx)(i.eye,{className:`ic`}),` Diff`]})]}),r&&(0,d.jsxs)(`div`,{className:`ai-mc-prompt`,children:[(0,d.jsx)(`span`,{className:`ai-mc-prompt-tag`,children:`PROMPT`}),` `,r]}),(0,d.jsx)(`div`,{className:`ai-mc-tabs`,children:o.map((e,t)=>{let n=!f.has(t),r=e.color||`var(--presence)`;return(0,d.jsxs)(`button`,{className:`ai-mc-tab`+(n?` is-on`:``),style:{"--c":r},onClick:()=>g(t),children:[(0,d.jsx)(`span`,{className:`ai-mc-dot`}),e.model,e.best&&(0,d.jsx)(i.check,{className:`ai-mc-best`})]},t)})}),(0,d.jsx)(`div`,{className:`ai-mc-grid`+(m?``:` no-diff`),style:{"--cols":String(_.length)},children:o.map((e,t)=>f.has(t)?null:(0,d.jsxs)(`div`,{className:`ai-mc-col`+(e.best?` is-best`:``),style:{"--c":e.color||`var(--presence)`},children:[(0,d.jsxs)(`div`,{className:`ai-mc-col-head`,children:[(0,d.jsx)(`span`,{className:`ai-mc-dot`}),(0,d.jsx)(`span`,{className:`ai-mc-model`,children:e.model}),e.badge&&(0,d.jsx)(`span`,{className:`ai-mc-badge`,children:e.badge})]}),(0,d.jsx)(`div`,{className:`ai-mc-text`,dangerouslySetInnerHTML:a(e.text)}),e.meta&&e.meta.length>0&&(0,d.jsx)(`div`,{className:`ai-mc-meta`,children:e.meta.map((e,t)=>(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:e.k}),` `,(0,d.jsx)(`span`,{className:`tab-num`,children:e.v})]},t))})]},t))}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function _(e){return e>=.85?`var(--insight)`:e>=.6?`var(--presence)`:e>=.4?`var(--warning)`:`var(--danger)`}function v({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,prefix:r,tokens:o,footer:s,delay:c}){let l=i[t]||i.spark,[f,p]=(0,u.useState)(null),m=f==null?null:o[f];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`ai-ts-stream`,children:[r&&(0,d.jsx)(`span`,{className:`ai-ts-prefix`,children:r}),o.map((e,t)=>{let n=_(e.p);return(0,d.jsx)(`span`,{className:`ai-ts-tok`+(f===t?` is-on`:``),style:{"--c":n,"--a":String(.1+e.p*.32)},onMouseEnter:()=>p(t),onMouseLeave:()=>p(null),children:e.text},t)})]}),(0,d.jsx)(`div`,{className:`ai-ts-readout`,children:m?(0,d.jsxs)(`div`,{className:`ai-ts-pop`,children:[(0,d.jsxs)(`div`,{className:`ai-ts-pop-head`,children:[(0,d.jsx)(`span`,{className:`ai-ts-pop-tok mono`,children:m.text.trim()||`␣`}),(0,d.jsxs)(`span`,{className:`ai-ts-pop-p tab-num`,style:{color:_(m.p)},children:[(m.p*100).toFixed(1),`%`]})]}),(0,d.jsx)(`div`,{className:`ai-ts-bar`,children:(0,d.jsx)(`span`,{style:{width:`${m.p*100}%`,background:_(m.p)}})}),m.alts&&m.alts.length>0&&(0,d.jsxs)(`div`,{className:`ai-ts-alts`,children:[(0,d.jsx)(`span`,{className:`faint`,children:`alternatives`}),m.alts.map((e,t)=>(0,d.jsxs)(`span`,{className:`ai-ts-alt`,children:[(0,d.jsx)(`span`,{className:`mono`,children:e.t.trim()||`␣`}),(0,d.jsxs)(`span`,{className:`tab-num faint`,children:[(e.p*100).toFixed(0),`%`]})]},t))]})]}):(0,d.jsxs)(`span`,{className:`faint`,children:[(0,d.jsx)(i.eye,{className:`ic`,style:{verticalAlign:`-2px`,width:14,height:14}}),` `,`Hover a token to see its probability and top alternatives`]})}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function y(e){return e>=.8?`var(--insight)`:e>=.6?`var(--presence)`:e>=.4?`var(--warning)`:`var(--text-muted)`}function b({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,query:r,chunks:o,footer:s,delay:c}){let l=i[t]||i.layers,f=o.map((e,t)=>({c:e,i:t})).sort((e,t)=>t.c.score-e.c.score),[p,m]=(0,u.useState)(f.length?f[0].i:-1);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,d.jsxs)(`div`,{className:`ai-rt-query`,children:[(0,d.jsx)(i.spark,{className:`ic`,style:{color:n}}),` `,(0,d.jsx)(`span`,{children:r})]}),(0,d.jsx)(`div`,{className:`ai-rt`,children:f.map(({c:e,i:t},n)=>{let r=p===t,o=y(e.score);return(0,d.jsxs)(`div`,{className:`ai-rt-chunk`+(r?` is-open`:``),style:{"--c":o},children:[(0,d.jsxs)(`button`,{className:`ai-rt-head`,onClick:()=>m(r?-1:t),children:[(0,d.jsx)(`span`,{className:`ai-rt-rank tab-num`,children:n+1}),(0,d.jsxs)(`span`,{className:`ai-rt-body`,children:[(0,d.jsxs)(`span`,{className:`ai-rt-source`,children:[(0,d.jsx)(i.doc,{className:`ic`}),` `,e.source,e.used&&(0,d.jsx)(`span`,{className:`ai-rt-used`,children:`used`}),e.tag&&(0,d.jsx)(`span`,{className:`ai-tag`,style:{"--c":e.tagColor||`var(--presence)`},children:e.tag})]}),(0,d.jsx)(`span`,{className:`ai-rt-snippet`,children:e.snippet})]}),(0,d.jsxs)(`span`,{className:`ai-rt-score`,children:[(0,d.jsx)(`span`,{className:`ai-rt-meter`,children:(0,d.jsx)(`span`,{style:{width:`${e.score*100}%`,background:o}})}),(0,d.jsx)(`span`,{className:`tab-num`,style:{color:o},children:e.score.toFixed(2)})]}),(0,d.jsx)(i.chevR,{className:`ai-cot-chev`+(r?` is-open`:``)})]}),r&&e.body&&(0,d.jsx)(`div`,{className:`ai-rt-detail`,dangerouslySetInnerHTML:a(e.body)})]},t)})}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function x({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,beforeLabel:r=`Before`,afterLabel:o=`After`,before:s,after:c,diff:l,footer:f,delay:p}){let m=i[t]||i.edit,[h,g]=(0,u.useState)(`diff`),_=l.filter(e=>e.t===`add`).length,v=l.filter(e=>e.t===`del`).length;return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`ai-wc-seg`,children:[(0,d.jsx)(`button`,{className:`ai-wc-seg-btn`+(h===`before`?` is-on`:``),onClick:()=>g(`before`),children:r}),(0,d.jsx)(`button`,{className:`ai-wc-seg-btn`+(h===`after`?` is-on`:``),onClick:()=>g(`after`),children:o}),(0,d.jsxs)(`button`,{className:`ai-wc-seg-btn`+(h===`diff`?` is-on`:``),onClick:()=>g(`diff`),children:[`Diff`,` `,(0,d.jsxs)(`span`,{className:`ai-wc-count`,children:[(0,d.jsxs)(`span`,{className:`ai-wc-add`,children:[`+`,_]}),` `,(0,d.jsxs)(`span`,{className:`ai-wc-del`,children:[`−`,v]})]})]})]}),h===`before`&&(0,d.jsx)(`div`,{className:`ai-wc-prose ai-wc-old`,dangerouslySetInnerHTML:a(s)}),h===`after`&&(0,d.jsx)(`div`,{className:`ai-wc-prose ai-wc-new`,dangerouslySetInnerHTML:a(c)}),h===`diff`&&(0,d.jsx)(`div`,{className:`ai-wc-diff`,children:l.map((e,t)=>(0,d.jsxs)(`div`,{className:`ai-wc-line `+(e.t||`ctx`),children:[(0,d.jsx)(`span`,{className:`ai-wc-gutter`,children:e.t===`add`?`+`:e.t===`del`?`−`:``}),(0,d.jsx)(`span`,{className:`ai-wc-content`,dangerouslySetInnerHTML:a(e.c)})]},t))}),f&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}function S({title:e,icon:t=`share`,iconColor:n=`var(--presence)`,query:r,classifier:o=`router`,choices:s,footer:c,delay:l}){let f=i[t]||i.share,[p,m]=(0,u.useState)(Math.max(0,s.findIndex(e=>e.taken))),h=s[p];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`ai-ro`,children:[(0,d.jsxs)(`div`,{className:`ai-ro-source`,children:[r&&(0,d.jsx)(`div`,{className:`ai-ro-query`,children:r}),(0,d.jsxs)(`div`,{className:`ai-ro-classifier`,children:[(0,d.jsx)(i.sparkle,{className:`ic`,style:{color:n}}),` `,o]})]}),(0,d.jsx)(`svg`,{role:`img`,"aria-label":e,className:`ai-ro-wires`,viewBox:`0 0 40 100`,preserveAspectRatio:`none`,"aria-hidden":!0,children:s.map((e,t)=>{let n=(t+.5)/s.length*100,r=e.taken;return(0,d.jsx)(`path`,{d:`M0 50 C 20 50, 20 ${n}, 40 ${n}`,fill:`none`,stroke:r?e.color||`var(--insight)`:`var(--grid-strong)`,strokeWidth:r?2.4:1.4,strokeDasharray:r?`0`:`3 3`},t)})}),(0,d.jsx)(`div`,{className:`ai-ro-choices`,children:s.map((e,t)=>{let n=e.color||(e.taken?`var(--insight)`:`var(--text-muted)`);return(0,d.jsxs)(`button`,{className:`ai-ro-choice`+(e.taken?` is-taken`:``)+(p===t?` is-sel`:``),style:{"--c":n},onClick:()=>m(t),children:[(0,d.jsxs)(`span`,{className:`ai-ro-choice-top`,children:[(0,d.jsx)(`span`,{className:`ai-ro-choice-label`,children:e.label}),e.taken&&(0,d.jsx)(`span`,{className:`ai-ro-taken`,children:(0,d.jsx)(i.check,{className:`ic`})})]}),e.sub&&(0,d.jsx)(`span`,{className:`ai-ro-choice-sub`,children:e.sub}),typeof e.score==`number`&&(0,d.jsx)(`span`,{className:`ai-ro-choice-meter`,children:(0,d.jsx)(`span`,{style:{width:`${e.score*100}%`,background:n}})})]},t)})})]}),h&&h.reason&&(0,d.jsxs)(`div`,{className:`ai-ro-reason`,style:{"--c":h.color||(h.taken?`var(--insight)`:`var(--presence)`)},children:[(0,d.jsx)(i.quote,{className:`ic`}),(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`strong`,{children:h.label}),` —`,` `,(0,d.jsx)(`span`,{dangerouslySetInnerHTML:a(h.reason)})]})]}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var C=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--presence-soft)`,`var(--danger)`];function w({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,clusters:r,points:o,footer:s,delay:c}){let l=i[t]||i.globe,[f,p]=(0,u.useState)(null),[m,h]=(0,u.useState)(null),g=e=>r[e]?.color||C[e%C.length],_=e=>14+e*512,v=e=>14+(1-e)*272,y=f==null?null:o[f];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`ai-em-legend`,children:r.map((e,t)=>(0,d.jsxs)(`button`,{className:`ai-em-leg`+(m===t?` is-on`:``)+(m!=null&&m!==t?` muted`:``),onClick:()=>h(m===t?null:t),children:[(0,d.jsx)(`span`,{className:`ai-em-swatch`,style:{background:g(t)}}),e.name]},t))}),(0,d.jsx)(`div`,{className:`ai-em-wrap`,children:(0,d.jsxs)(`svg`,{role:`img`,"aria-label":e,viewBox:`0 0 540 300`,width:`100%`,className:`ai-em-svg`,style:{display:`block`},children:[[.25,.5,.75].map(e=>(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`line`,{x1:_(e),y1:14,x2:_(e),y2:286,stroke:`var(--grid-line)`,strokeWidth:`1`}),(0,d.jsx)(`line`,{x1:14,y1:v(e),x2:526,y2:v(e),stroke:`var(--grid-line)`,strokeWidth:`1`})]},e)),o.map((e,t)=>{let n=g(e.cluster),r=m!=null&&m!==e.cluster,a=f===t;return e.query?(0,d.jsxs)(`g`,{onMouseEnter:()=>p(t),onMouseLeave:()=>p(null),style:{cursor:`pointer`},children:[(0,d.jsx)(`circle`,{cx:_(e.x),cy:v(e.y),r:a?11:9,fill:`none`,stroke:`var(--presence)`,strokeWidth:`2`,opacity:r?.3:1}),(0,d.jsx)(i.spark,{x:_(e.x)-6,y:v(e.y)-6,width:`12`,height:`12`,style:{color:`var(--presence)`,opacity:r?.3:1}})]},t):(0,d.jsx)(`circle`,{cx:_(e.x),cy:v(e.y),r:a?7:4.5,fill:n,opacity:r?.18:a?1:.82,stroke:a?`var(--text-primary)`:`transparent`,strokeWidth:a?1.5:0,onMouseEnter:()=>p(t),onMouseLeave:()=>p(null),style:{cursor:`pointer`,transition:`r var(--m-fast) var(--ease-out)`}},t)})]})}),(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:y?(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`ai-em-swatch`,style:{background:g(y.cluster),display:`inline-block`,verticalAlign:`middle`,marginRight:6}}),(0,d.jsx)(`strong`,{style:{color:`var(--text-primary)`},children:y.label}),(0,d.jsxs)(`span`,{className:`faint`,children:[` `,`· `,r[y.cluster]?.name||`cluster ${y.cluster}`]})]}):s?(0,d.jsx)(`span`,{dangerouslySetInnerHTML:a(s)}):(0,d.jsx)(`span`,{className:`faint`,children:`Hover a point for its label · click a legend chip to isolate a cluster`})})]})}function T({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,bins:r,color:o=`var(--presence)`,ece:s,footer:c,delay:l}){let f=i[t]||i.chart,p=[...r].sort((e,t)=>e.predicted-t.predicted),[m,h]=(0,u.useState)(null),g=e=>42+e*236,_=e=>278-e*236,v=Math.max(1,...p.map(e=>e.count)),y=p.map((e,t)=>`${t?`L`:`M`} ${g(e.predicted)} ${_(e.actual)}`).join(` `),b=m==null?null:p[m];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e,s&&(0,d.jsxs)(`span`,{className:`ai-cal-ece tab-num`,children:[`ECE `,s]})]}),(0,d.jsx)(`div`,{className:`ai-cal-wrap`,children:(0,d.jsxs)(`svg`,{role:`img`,"aria-label":e,viewBox:`0 0 320 320`,width:`100%`,className:`ai-cal-svg`,style:{display:`block`},children:[p.map((e,t)=>{let n=236/p.length,r=e.count/v*236*.5;return(0,d.jsx)(`rect`,{x:g(e.predicted)-n*.32,y:278-r,width:n*.64,height:r,fill:`var(--track)`,rx:2,opacity:m===t?.9:.55},`c`+t)}),(0,d.jsx)(`line`,{x1:42,y1:278,x2:278,y2:278,stroke:`var(--grid-strong)`,strokeWidth:`1`}),(0,d.jsx)(`line`,{x1:42,y1:42,x2:42,y2:278,stroke:`var(--grid-strong)`,strokeWidth:`1`}),(0,d.jsx)(`line`,{x1:g(0),y1:_(0),x2:g(1),y2:_(1),stroke:`var(--hover-line)`,strokeWidth:`1.4`,strokeDasharray:`5 5`}),(0,d.jsx)(`path`,{d:y,fill:`none`,stroke:o,strokeWidth:`2.4`,strokeLinejoin:`round`,strokeLinecap:`round`}),p.map((e,t)=>{let n=m===t;return(0,d.jsxs)(`g`,{onMouseEnter:()=>h(t),onMouseLeave:()=>h(null),style:{cursor:`pointer`},children:[(0,d.jsx)(`circle`,{cx:g(e.predicted),cy:_(e.actual),r:14,fill:`transparent`}),n&&(0,d.jsx)(`line`,{x1:g(e.predicted),y1:_(e.predicted),x2:g(e.predicted),y2:_(e.actual),stroke:`var(--warning)`,strokeWidth:`1.4`,strokeDasharray:`2 2`}),(0,d.jsx)(`circle`,{cx:g(e.predicted),cy:_(e.actual),r:n?6:4,fill:o,stroke:`var(--surface-1, var(--bg))`,strokeWidth:`1.5`,style:{transition:`r var(--m-fast)`}})]},`p`+t)}),(0,d.jsx)(`text`,{x:320/2,y:314,textAnchor:`middle`,fontSize:`11`,fill:`var(--text-muted)`,children:`predicted probability`}),(0,d.jsx)(`text`,{x:0,y:0,transform:`translate(14, ${320/2}) rotate(-90)`,textAnchor:`middle`,fontSize:`11`,fill:`var(--text-muted)`,children:`observed accuracy`})]})}),(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:8},children:b?(0,d.jsxs)(`span`,{className:`ai-cal-readout`,children:[(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:`predicted`}),` `,(0,d.jsxs)(`span`,{className:`tab-num`,children:[(b.predicted*100).toFixed(0),`%`]})]}),(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:`actual`}),` `,(0,d.jsxs)(`span`,{className:`tab-num`,style:{color:o},children:[(b.actual*100).toFixed(0),`%`]})]}),(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:`gap`}),` `,(0,d.jsxs)(`span`,{className:`tab-num`,style:{color:`var(--warning)`},children:[((b.actual-b.predicted)*100).toFixed(0),`pt`]})]}),(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{className:`faint`,children:`n`}),` `,(0,d.jsx)(`span`,{className:`tab-num`,children:b.count})]})]}):c?(0,d.jsx)(`span`,{dangerouslySetInnerHTML:a(c)}):(0,d.jsx)(`span`,{className:`faint`,children:`Dashed diagonal = perfect calibration · hover a bin for predicted vs actual`})})]})}var E={GET:`var(--presence)`,POST:`var(--insight)`,PUT:`var(--warning)`,PATCH:`var(--warning)`,DELETE:`var(--danger)`};function D(e){return typeof e==`number`?e>=500?`var(--danger)`:e>=400?`var(--warning)`:e>=300?`var(--presence)`:e>=200?`var(--insight)`:`var(--text-muted)`:`var(--text-muted)`}function O({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,exchanges:r,caption:s,footer:c,delay:l}){let f=i[t]||i.globe,[p,m]=(0,u.useState)(r.findIndex(e=>e.reqBody||e.respPreview));return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[e&&(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`ai-hx`,children:r.map((e,t)=>{let n=D(e.status),r=E[e.method]||`var(--text-secondary)`,a=!!(e.reqBody||e.respPreview),s=p===t;return(0,d.jsxs)(`div`,{className:`ai-hx-row`+(s?` is-open`:``),children:[(0,d.jsxs)(`button`,{className:`ai-hx-head`,onClick:()=>a&&m(s?-1:t),...a?{}:{"aria-disabled":!0,tabIndex:-1},children:[(0,d.jsx)(`span`,{className:`ai-hx-method mono`,style:{"--c":r},children:e.method}),(0,d.jsx)(`span`,{className:`ai-hx-url mono`,children:e.url}),(0,d.jsx)(`span`,{className:`ai-hx-spacer`}),typeof e.durationMs==`number`&&(0,d.jsx)(`span`,{className:`ai-hx-ms tab-num`,children:o(e.durationMs,{unit:`ms`,decimals:0})}),typeof e.status==`number`&&(0,d.jsxs)(`span`,{className:`ai-hx-status tab-num`,style:{"--c":n},title:e.statusText,children:[e.status,e.statusText&&(0,d.jsxs)(`span`,{className:`ai-hx-status-text`,children:[` `,e.statusText]})]}),a&&(0,d.jsx)(i.chevR,{className:`ai-cot-chev`+(s?` is-open`:``)})]}),e.note&&(0,d.jsxs)(`div`,{className:`ai-hx-note`,style:{"--c":n},children:[(0,d.jsx)(i.alert,{className:`ic`}),` `,(0,d.jsx)(`span`,{children:e.note})]}),a&&s&&(0,d.jsxs)(`div`,{className:`ai-hx-detail`,children:[e.reqBody&&(0,d.jsxs)(`div`,{className:`ai-hx-pane`,children:[(0,d.jsxs)(`div`,{className:`ai-hx-pane-label`,children:[(0,d.jsx)(i.arrowUp,{className:`ic`}),` Request`]}),(0,d.jsx)(`pre`,{className:`ai-hx-code mono`,children:e.reqBody})]}),e.respPreview&&(0,d.jsxs)(`div`,{className:`ai-hx-pane`,children:[(0,d.jsxs)(`div`,{className:`ai-hx-pane-label`,children:[(0,d.jsx)(i.arrowDown,{className:`ic`,style:{color:n}}),` Response`]}),(0,d.jsx)(`pre`,{className:`ai-hx-code mono`,children:e.respPreview})]})]})]},t)})}),s&&(0,d.jsx)(`div`,{className:`ai-hx-caption`,children:s}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var k=r(),A=320,j={l:44,r:16,t:16,b:36},M=A-j.l-j.r;function N(e,t,n,r,i,a){let o=[...t??[],...n??[]].filter(Number.isFinite);if(!o.length)return null;let l=Math.max(...o)*1.08||1,u=s(0,l,c(l-0,4)).filter(e=>e<=l),d=r-j.t-j.b,f=e.length,p=(e,t)=>j.l+(t>1?e/(t-1)*M:M/2),m=e=>j.t+d-(e-0)/(l-0)*d,h=e=>e.map((e,t)=>`${t===0?`M`:`L`}${p(t,f).toFixed(1)},${m(e).toFixed(1)}`).join(` `),g=t?h(t):``,_=n?h(n):``,v=``;if(a&&t&&n){let e=Math.min(t.length,n.length),r=[],i=[];for(let a=0;a<e;a++)n[a]>t[a]&&(r.push(`${p(a,f).toFixed(1)},${m(n[a]).toFixed(1)}`),i.push(`${p(a,f).toFixed(1)},${m(t[a]).toFixed(1)}`));r.length>=2&&(v=`M${r.join(` L`)} L${[...i].reverse().join(` L`)} Z`)}let y=i!==null&&i>=0&&i<f?p(i,f):null;return{yMin:0,yMax:l,yTickVals:u,PH:d,toX:e=>p(e,f),toY:m,trainPath:g,valPath:_,overfitPath:v,bestX:y}}function P(e){let t=(0,k.c)(42),{model:n,epochs:r,label:i,offsetY:a}=e,{yTickVals:o,PH:s,toX:c,toY:l,trainPath:u,valPath:f,overfitPath:p,bestX:m}=n,h=r.length,g=`translate(0,${a})`,_;if(t[0]!==l||t[1]!==o){let e;t[3]===l?e=t[4]:(e=e=>(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`line`,{x1:j.l,y1:l(e),x2:j.l+M,y2:l(e),stroke:`var(--grid-line)`,strokeWidth:.8}),(0,d.jsx)(`text`,{x:j.l-5,y:l(e)+4,textAnchor:`end`,fontSize:8,fill:`var(--text-muted)`,fontFamily:`inherit`,children:e<1?e.toFixed(2):e.toFixed(1)})]},e),t[3]=l,t[4]=e),_=o.map(e),t[0]=l,t[1]=o,t[2]=_}else _=t[2];let v=j.t+s,y;t[5]===v?y=t[6]:(y=(0,d.jsx)(`line`,{x1:j.l,y1:j.t,x2:j.l,y2:v,stroke:`var(--grid-strong)`,strokeWidth:1}),t[5]=v,t[6]=y);let b=j.t+s,x=j.t+s,S;t[7]!==b||t[8]!==x?(S=(0,d.jsx)(`line`,{x1:j.l,y1:b,x2:j.l+M,y2:x,stroke:`var(--grid-strong)`,strokeWidth:1}),t[7]=b,t[8]=x,t[9]=S):S=t[9];let C;t[10]===p?C=t[11]:(C=p&&(0,d.jsx)(`path`,{d:p,fill:`var(--danger)`,fillOpacity:.1}),t[10]=p,t[11]=C);let w;t[12]!==s||t[13]!==m?(w=m!==null&&(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`line`,{x1:m,y1:j.t,x2:m,y2:j.t+s,stroke:`var(--warning)`,strokeWidth:1.5,strokeDasharray:`4 3`}),(0,d.jsx)(`text`,{x:m>A-50?m-3:m+3,y:j.t+10,textAnchor:m>A-50?`end`:`start`,fontSize:8,fill:`var(--warning)`,fontFamily:`inherit`,fontWeight:`600`,children:`Best`})]}),t[12]=s,t[13]=m,t[14]=w):w=t[14];let T;t[15]===u?T=t[16]:(T=u&&(0,d.jsx)(`path`,{d:u,fill:`none`,stroke:`var(--insight)`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`}),t[15]=u,t[16]=T);let E;t[17]===f?E=t[18]:(E=f&&(0,d.jsx)(`path`,{d:f,fill:`none`,stroke:`var(--presence)`,strokeWidth:2,strokeDasharray:`5 3`,strokeLinecap:`round`,strokeLinejoin:`round`}),t[17]=f,t[18]=E);let D;if(t[19]!==s||t[20]!==r||t[21]!==h||t[22]!==c){let e;t[24]!==s||t[25]!==h||t[26]!==c?(e=(e,t)=>t%Math.max(1,Math.ceil(h/6))!==0&&t!==h-1?null:(0,d.jsx)(`text`,{x:c(t),y:j.t+s+14,textAnchor:`middle`,fontSize:8,fill:`var(--text-muted)`,fontFamily:`inherit`,children:e},e),t[24]=s,t[25]=h,t[26]=c,t[27]=e):e=t[27],D=r.map(e),t[19]=s,t[20]=r,t[21]=h,t[22]=c,t[23]=D}else D=t[23];let O;t[28]===i?O=t[29]:(O=(0,d.jsx)(`text`,{x:j.l+4,y:j.t+12,fontSize:9,fontWeight:`600`,fill:`var(--text-secondary)`,fontFamily:`inherit`,children:i}),t[28]=i,t[29]=O);let N;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,d.jsxs)(`g`,{transform:`translate(${A-j.r-72},${j.t+2})`,children:[(0,d.jsx)(`line`,{x1:0,y1:5,x2:14,y2:5,stroke:`var(--insight)`,strokeWidth:2}),(0,d.jsx)(`text`,{x:17,y:9,fontSize:8,fill:`var(--text-muted)`,fontFamily:`inherit`,children:`Train`}),(0,d.jsx)(`line`,{x1:0,y1:16,x2:14,y2:16,stroke:`var(--presence)`,strokeWidth:2,strokeDasharray:`4 2`}),(0,d.jsx)(`text`,{x:17,y:20,fontSize:8,fill:`var(--text-muted)`,fontFamily:`inherit`,children:`Val`})]}),t[30]=N):N=t[30];let P;return t[31]!==g||t[32]!==T||t[33]!==E||t[34]!==D||t[35]!==O||t[36]!==_||t[37]!==y||t[38]!==S||t[39]!==C||t[40]!==w?(P=(0,d.jsxs)(`g`,{transform:g,children:[_,y,S,C,w,T,E,D,O,N]}),t[31]=g,t[32]=T,t[33]=E,t[34]=D,t[35]=O,t[36]=_,t[37]=y,t[38]=S,t[39]=C,t[40]=w,t[41]=P):P=t[41],P}function F({title:e=`Training Curves`,icon:t=`sparkle`,iconColor:n=`var(--presence)`,epochs:r,trainLoss:o,valLoss:s,trainAcc:c,valAcc:l,bestEpoch:f,lossLabel:p=`Loss`,accLabel:m=`Accuracy`,footer:h,delay:g}){let _=i[t]??i.sparkle,v=o!==void 0||s!==void 0,y=c!==void 0||l!==void 0,b=+!!v+ +!!y,x=b>1?180:220,S=b*x,C=(0,u.useMemo)(()=>{if(f===void 0)return null;let e=r.indexOf(f);return e>=0?e:null},[f,r]),w=(0,u.useMemo)(()=>v?N(r,o,s,x,C,!0):null,[r,o,s,x,C,v]),T=(0,u.useMemo)(()=>y?N(r,c,l,x,C,!1):null,[r,c,l,x,C,y]);return!r.length||b===0?null:(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(_,{className:`ic`,style:{color:n}}),e]}),(0,d.jsxs)(`svg`,{viewBox:`0 0 ${A} ${S}`,width:`100%`,role:`img`,"aria-label":e,style:{display:`block`,overflow:`visible`},children:[w&&(0,d.jsx)(P,{model:w,epochs:r,label:p,offsetY:0}),T&&(0,d.jsx)(P,{model:T,epochs:r,label:m,offsetY:w?x:0})]}),h&&(0,d.jsx)(`div`,{className:`insight-summary`,dangerouslySetInnerHTML:a(h)})]})}var I=e({aiRegistry:()=>L}),L={reasoning:l(f),toolcalls:l(m),agenttrace:l(h),modelcompare:l(g),tokenstream:l(v),retrieval:l(b),whatchanged:l(x),routing:l(S),embedmap:l(w),calibration:l(T),httpexchange:l(O),trainingcurve:l(F)};export{I as n,L as t};
@@ -1 +1 @@
1
- import{r as e}from"./chunk-BVpWp9h4.js";import{t}from"./react-BQSORdFI.js";import{t as n}from"./jsx-runtime-DaSxXjOY.js";import{ht as r}from"./index-CWqRe4-B.js";import{n as i}from"./icons-CHVz6kv_.js";import{t as a}from"./richText-BkxJhl9N.js";import{t as o}from"./safeImageUrl-CUkucDUu.js";import{r as s}from"./lib-CwruVYU_.js";import{t as c}from"./registry-types-DMuK0vJ6.js";import{t as l}from"./safeCssColor-di93BXgG.js";var u=t(),d=n(),f=480,p=16,m=90,h=240,g=390,_=120,v=38,y=14;function b(e){let t=e.toLowerCase();return t.includes(`proto`)||t.includes(`pie`)||t.includes(`indo`)?`var(--text-muted)`:t.includes(`latin`)||t.includes(`greek`)||t.includes(`ancient`)?`var(--presence)`:t.includes(`french`)||t.includes(`romance`)||t.includes(`spanish`)||t.includes(`italian`)?`var(--insight)`:t.includes(`german`)||t.includes(`dutch`)||t.includes(`nordic`)||t.includes(`norse`)?`var(--warning)`:t.includes(`arabic`)||t.includes(`persian`)||t.includes(`sanskrit`)?`var(--danger)`:`var(--text-secondary)`}var x=18,S=22;function C(e,t){return e.length>t?e.slice(0,t-1).trimEnd()+`…`:e}function w({word:e,roots:t,descendants:n,note:r,footer:i,delay:o}){let{vbH:s,wordY:c,wordCY:l,rootBoxes:w,descBoxes:T}=(0,u.useMemo)(()=>{let e=t??[],r=n??[],i=e.length,a=r.length,o=Math.max(i,a,1)*52-y+p*2+12,s=Math.max(o,120),c=s/2,l=c-v/2,u=c-(i*52-(i>0?y:0))/2,d=e.map((e,t)=>({r:e,x:m-_/2,y:u+t*52,cy:u+t*52+v/2,color:b(e.lang)})),f=c-(a*52-(a>0?y:0))/2;return{vbH:s,wordY:l,wordCY:c,rootBoxes:d,descBoxes:r.map((e,t)=>({d:e,x:g-_/2,y:f+t*52,cy:f+t*52+v/2,color:b(e.lang??``)}))}},[t,n]),E=(e,t,n,r)=>{let i=(e+n)/2;return`M ${e.toFixed(1)},${t.toFixed(1)} C ${i.toFixed(1)},${t.toFixed(1)} ${i.toFixed(1)},${r.toFixed(1)} ${n.toFixed(1)},${r.toFixed(1)}`};return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(o??0)+`ms`},children:[(0,d.jsx)(`div`,{className:`et-wrap`,children:(0,d.jsxs)(`svg`,{className:`et-svg`,viewBox:`0 0 ${f} ${s}`,role:`img`,"aria-label":`Etymology of "${e}"`,preserveAspectRatio:`xMidYMid meet`,children:[w.map((e,t)=>(0,d.jsx)(`path`,{d:E(150,e.cy,h-_/2,l),fill:`none`,stroke:e.color,strokeWidth:`1.5`,opacity:`0.75`},`rc${t}`)),T.map((e,t)=>(0,d.jsx)(`path`,{d:E(300,l,g-_/2,e.cy),fill:`none`,stroke:e.color,strokeWidth:`1.5`,opacity:`0.75`},`dc${t}`)),w.map(({r:e,x:t,y:n,cy:r,color:i},a)=>{let o=e.lang+(e.gloss?` · ${e.gloss}`:``);return(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`rect`,{x:t,y:n,width:_,height:v,rx:6,className:`et-box`,style:{stroke:i}}),(0,d.jsxs)(`text`,{x:m,y:r-7,textAnchor:`middle`,className:`et-form`,children:[e.form.length>x&&(0,d.jsx)(`title`,{children:e.form}),C(e.form,x)]}),(0,d.jsxs)(`text`,{x:m,y:r+9,textAnchor:`middle`,className:`et-lang`,style:{fill:i},children:[o.length>S&&(0,d.jsx)(`title`,{children:o}),C(o,S)]})]},`r${a}`)}),(0,d.jsx)(`rect`,{x:h-_/2,y:c,width:_,height:v,rx:8,className:`et-word-box`}),(0,d.jsx)(`text`,{x:h,y:l+5,textAnchor:`middle`,className:`et-word`,children:e}),T.map(({d:e,x:t,y:n,cy:r,color:i},a)=>{let o=e.lang?`${e.lang}${e.gloss?` · ${e.gloss}`:``}`:e.gloss??``;return(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`rect`,{x:t,y:n,width:_,height:v,rx:6,className:`et-box`,style:{stroke:i}}),(0,d.jsxs)(`text`,{x:g,y:r-7,textAnchor:`middle`,className:`et-form`,children:[e.form.length>x&&(0,d.jsx)(`title`,{children:e.form}),C(e.form,x)]}),(0,d.jsxs)(`text`,{x:g,y:r+9,textAnchor:`middle`,className:`et-lang`,style:{fill:i},children:[o.length>S&&(0,d.jsx)(`title`,{children:o}),C(o,S)]})]},`d${a}`)}),(0,d.jsx)(`text`,{x:m,y:p-4,textAnchor:`middle`,className:`et-col-hdr`,children:`Roots`}),T.length>0&&(0,d.jsx)(`text`,{x:g,y:p-4,textAnchor:`middle`,className:`et-col-hdr`,children:`Descendants`})]})}),r&&(0,d.jsx)(`div`,{className:`et-note`,children:r}),i&&(0,d.jsx)(`div`,{className:`insight-summary`,dangerouslySetInnerHTML:a(i),style:{marginTop:12}})]})}function T({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,subject:r,tagline:o,facts:s,body:c,footer:l,delay:u}){let f=i[t]??i.doc,p=s??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`fs-subject`,children:r}),o&&(0,d.jsx)(`div`,{className:`fs-tagline`,children:o}),p.length>0&&(0,d.jsx)(`div`,{className:`fs-facts`,children:p.map((e,t)=>(0,d.jsxs)(`div`,{className:`fs-row`,children:[(0,d.jsx)(`span`,{className:`fs-label`,children:e.label}),(0,d.jsxs)(`span`,{className:`fs-value`,...t===0?{"data-mark":`underline`}:{},children:[e.value,e.note&&(0,d.jsxs)(`span`,{className:`fs-note`,children:[` `,e.note]})]})]},t))}),c&&(0,d.jsx)(`div`,{className:`fs-body`,dangerouslySetInnerHTML:a(c)}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}var E=r(),D={flammable:`Flammable`,corrosive:`Corrosive`,toxic:`Toxic`,irritant:`Irritant`,oxidizer:`Oxidizer`,healthHazard:`Health hazard`,environment:`Environment`,explosive:`Explosive`,compressedGas:`Compressed gas`},ee=`12,1.6 22.4,12 12,22.4 1.6,12`,te={flammable:()=>(0,d.jsx)(`path`,{className:`ghs-symbol-fill`,d:`M12 6c1.9 2.4 2.9 4.2 2.9 6a2.9 2.9 0 0 1-5.8 0c0-.7.15-1.3.45-1.85-.05.5.1.9.5 1.15-.15-1.7.3-3.4 1.95-5.3Z`}),corrosive:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`line`,{x1:`5.6`,y1:`13.4`,x2:`18.4`,y2:`13.4`}),(0,d.jsx)(`path`,{d:`M9 6.6v3.6q0 1.7-1.1 3.2`}),(0,d.jsx)(`path`,{d:`M15 6.6v3.6q0 1.7 1.1 3.2`}),(0,d.jsx)(`path`,{d:`M7.6 15.4q.6 1.2 0 2.4`}),(0,d.jsx)(`path`,{d:`M16.4 15.4q.6 1.4-.2 2.6`})]}),toxic:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`circle`,{cx:`12`,cy:`10.1`,r:`3.15`}),(0,d.jsx)(`circle`,{className:`ghs-symbol-fill`,cx:`10.6`,cy:`9.8`,r:`0.55`}),(0,d.jsx)(`circle`,{className:`ghs-symbol-fill`,cx:`13.4`,cy:`9.8`,r:`0.55`}),(0,d.jsx)(`path`,{d:`M10.6 12.3q1.4 1 2.8 0`}),(0,d.jsx)(`path`,{d:`M8.1 17.1 15.9 13.7`}),(0,d.jsx)(`path`,{d:`M8.1 13.7 15.9 17.1`})]}),irritant:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol-fill`,children:[(0,d.jsx)(`rect`,{x:`11.05`,y:`6.4`,width:`1.9`,height:`6.6`,rx:`0.95`}),(0,d.jsx)(`circle`,{cx:`12`,cy:`15.9`,r:`1.1`})]}),oxidizer:()=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`circle`,{className:`ghs-symbol`,cx:`12`,cy:`15.1`,r:`3.05`}),(0,d.jsx)(`path`,{className:`ghs-symbol-fill`,d:`M12 6c1.5 2 2.3 3.5 2.3 5a2.3 2.3 0 0 1-4.6 0c0-.55.1-1 .3-1.45-.05.4.1.7.4.9-.1-1.35.35-2.7 1.6-4.45Z`})]}),healthHazard:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`circle`,{cx:`12`,cy:`7.5`,r:`1.75`}),(0,d.jsx)(`path`,{d:`M8.3 17c.1-3.15 1.7-5.1 3.7-5.1s3.6 1.95 3.7 5.1`}),(0,d.jsx)(`path`,{d:`M12 12.6v3.4`}),(0,d.jsx)(`path`,{d:`M10.5 14.3h3`}),(0,d.jsx)(`path`,{d:`M10.8 13.15l2.4 2.4`}),(0,d.jsx)(`path`,{d:`M13.2 13.15l-2.4 2.4`})]}),environment:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`path`,{d:`M8.7 7.4v6.2`}),(0,d.jsx)(`path`,{d:`M8.7 9.7 7 8.2`}),(0,d.jsx)(`path`,{d:`M8.7 8.9l1.9-1.6`}),(0,d.jsx)(`path`,{d:`M8.7 11.7 7 13`}),(0,d.jsx)(`path`,{d:`M6 15.9c1.35.85 2.85.85 4.2 0`}),(0,d.jsx)(`path`,{d:`M13.6 15.9c1.35.85 2.85.85 4.2 0`}),(0,d.jsx)(`path`,{className:`ghs-symbol-fill`,d:`M14.9 12.6c1.7-.35 3.05.2 3.7 1.15-.7.95-2.1 1.5-3.7 1.15.35-.5.35-1.8 0-2.3Z`})]}),explosive:()=>(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`circle`,{className:`ghs-symbol-fill`,cx:`12`,cy:`12`,r:`1.55`}),(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`path`,{d:`M12 6.5v2.3`}),(0,d.jsx)(`path`,{d:`M12 15.2v2.3`}),(0,d.jsx)(`path`,{d:`M6.5 12h2.3`}),(0,d.jsx)(`path`,{d:`M15.2 12h2.3`}),(0,d.jsx)(`path`,{d:`M8.3 8.3l1.6 1.6`}),(0,d.jsx)(`path`,{d:`M14.1 14.1l1.6 1.6`}),(0,d.jsx)(`path`,{d:`M15.7 8.3l-1.6 1.6`}),(0,d.jsx)(`path`,{d:`M9.9 14.1l-1.6 1.6`})]})]}),compressedGas:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`rect`,{x:`9.3`,y:`9.1`,width:`5.4`,height:`8.4`,rx:`1.3`}),(0,d.jsx)(`rect`,{x:`10.55`,y:`6.35`,width:`2.9`,height:`2.4`,rx:`0.5`}),(0,d.jsx)(`line`,{x1:`9.6`,y1:`12.6`,x2:`14.4`,y2:`12.6`})]})};function O(e){let t=(0,E.c)(7),{kind:n,className:r}=e,i=te[n],a=D[n],o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,d.jsx)(`polygon`,{className:`ghs-diamond`,points:ee}),t[0]=o):o=t[0];let s;t[1]===i?s=t[2]:(s=(0,d.jsx)(i,{}),t[1]=i,t[2]=s);let c;return t[3]!==r||t[4]!==a||t[5]!==s?(c=(0,d.jsxs)(`svg`,{viewBox:`0 0 24 24`,role:`img`,"aria-label":a,className:r,children:[o,s]}),t[3]=r,t[4]=a,t[5]=s,t[6]=c):c=t[6],c}function k({title:e,icon:t=`alert`,iconColor:n=`var(--danger)`,cas:r,signalWord:o,pictograms:s,hazards:c,precautions:l,footer:u,delay:f}){let p=i[t]??i.alert,m=o===`Warning`,h=m?`var(--warning)`:`var(--danger)`,g=(s??[]).filter(e=>e in D),_=c??[],v=l??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,d.jsxs)(`div`,{className:`hc-cas`,children:[`CAS `,r]}),(0,d.jsxs)(`div`,{className:`hc-signal`,style:{"--hc-c":h},role:`status`,children:[(0,d.jsx)(`span`,{className:`hc-signal-icon`,children:(0,d.jsx)(i.alert,{})}),(0,d.jsx)(`span`,{className:`hc-signal-word`,children:m?`Warning`:`Danger`})]}),g.length>0&&(0,d.jsx)(`div`,{className:`hc-pictograms`,children:g.map((e,t)=>(0,d.jsxs)(`div`,{className:`hc-pic m-stagger-item m-scale-in`,style:{"--i":t},children:[(0,d.jsx)(O,{kind:e,className:`hc-pic-glyph`}),(0,d.jsx)(`span`,{className:`hc-pic-label`,children:D[e]})]},t))}),_.length>0&&(0,d.jsxs)(`div`,{className:`hc-section`,children:[(0,d.jsx)(`div`,{className:`hc-section-label`,children:`Hazards`}),(0,d.jsx)(`div`,{className:`hc-codes`,children:_.map((e,t)=>(0,d.jsxs)(`div`,{className:`hc-code-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,d.jsx)(`span`,{className:`hc-code`,children:e.code}),(0,d.jsx)(`span`,{className:`hc-code-text`,children:e.text})]},t))})]}),v.length>0&&(0,d.jsxs)(`div`,{className:`hc-section`,children:[(0,d.jsx)(`div`,{className:`hc-section-label`,children:`Precautions`}),(0,d.jsx)(`div`,{className:`hc-codes`,children:v.map((e,t)=>(0,d.jsxs)(`div`,{className:`hc-code-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,d.jsx)(`span`,{className:`hc-code`,children:e.code}),(0,d.jsx)(`span`,{className:`hc-code-text`,children:e.text})]},t))})]}),u&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}function A({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,topic:r,asOf:o,items:s,footer:c,delay:l}){let u=i[t]??i.globe,f=s??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`nd-meta`,children:[r&&(0,d.jsx)(`span`,{className:`nd-topic`,children:r}),(0,d.jsx)(`span`,{className:`nd-asof`,children:o})]}),(0,d.jsx)(`div`,{className:`nd-items`,children:f.map((e,t)=>(0,d.jsxs)(`div`,{className:`nd-item`,children:[(0,d.jsx)(`div`,{className:`nd-headline`,...t===0?{"data-mark":`underline`}:{},children:e.headline}),(e.source||e.time||e.category)&&(0,d.jsxs)(`div`,{className:`nd-item-meta`,children:[e.source&&(0,d.jsx)(`span`,{className:`nd-source`,children:e.source}),e.time&&(0,d.jsx)(`span`,{className:`nd-time`,children:e.time}),e.category&&(0,d.jsx)(`span`,{className:`nd-cat`,children:e.category})]}),e.summary&&(0,d.jsx)(`div`,{className:`nd-summary`,children:e.summary})]},t))}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}function ne({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,fromLang:r,toLang:o,text:c,result:l,pairs:u,footer:f,delay:p}){let m=i[t]??i.globe,h=u??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`tl-langs`,children:[(0,d.jsx)(`span`,{className:`tl-from`,children:r}),(0,d.jsx)(`span`,{className:`tl-arrow`,children:`→`}),(0,d.jsx)(`span`,{className:`tl-to`,children:o})]}),(0,d.jsxs)(`div`,{className:`tl-pair`,children:[(0,d.jsx)(`div`,{className:`tl-source`,children:(0,d.jsx)(`div`,{className:`tl-text`,style:{color:`var(--text-secondary)`},children:c})}),(0,d.jsx)(`div`,{className:`tl-result`,children:(0,d.jsx)(`div`,{className:`tl-text`,style:{fontWeight:600},"data-mark":`underline`,children:l})})]}),(0,d.jsx)(`div`,{style:{display:`flex`,justifyContent:`flex-end`,marginTop:6},children:(0,d.jsx)(s,{text:l,label:`Copy ${o} translation`})}),h.length>0&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`div`,{style:{fontSize:`var(--fs-xs, 11px)`,fontWeight:700,color:`var(--text-muted)`,textTransform:`uppercase`,letterSpacing:`0.07em`,marginTop:14,marginBottom:4},children:`Breakdown`}),(0,d.jsx)(`div`,{className:`tl-breakdowns`,children:h.map((e,t)=>(0,d.jsxs)(`div`,{className:`tl-bp`,children:[(0,d.jsx)(`span`,{className:`tl-bp-orig`,children:e.original}),(0,d.jsxs)(`span`,{className:`tl-bp-trans`,children:[e.translated,e.note&&(0,d.jsx)(`span`,{className:`tl-bp-note`,style:{display:`block`,marginTop:2},children:e.note})]})]},t))})]}),f&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}function re({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,word:r,ipa:o,syllables:s,tips:c,footer:l,delay:u}){let f=i[t]??i.doc,p=c??[],m=(()=>{if(!s)return[];let e=s.split(`·`);if(!o)return e.map(e=>({text:e,stressed:!1}));let t=(()=>{let t=o.indexOf(`ˈ`);if(t===-1)return-1;let n=o.replace(/[/[\]]/g,``),r=t/Math.max(n.length,1);return Math.min(Math.round(r*e.length),e.length-1)})();return e.map((e,n)=>({text:e,stressed:n===t}))})();return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`pr-word`,children:r}),o&&(0,d.jsx)(`div`,{className:`pr-ipa`,style:{display:`inline-block`,fontFamily:`var(--font-mono, monospace)`,fontStyle:`normal`,background:`var(--grid-line)`,borderRadius:`var(--r-sm, 4px)`,padding:`2px 8px`,marginTop:6,fontSize:`var(--fs-sm, 14px)`,color:`var(--text-primary)`,letterSpacing:`0.04em`},children:o}),m.length>0&&(0,d.jsx)(`div`,{className:`pr-syllables`,children:m.map((e,t)=>(0,d.jsxs)(`span`,{children:[t>0&&(0,d.jsx)(`span`,{"aria-hidden":`true`,style:{color:`var(--text-muted)`},children:`·`}),(0,d.jsx)(`span`,{style:e.stressed?{fontWeight:800,color:`var(--presence)`}:{fontWeight:400,color:`var(--text-secondary)`},...e.stressed?{"data-mark":`underline`}:{},children:e.text})]},t))}),p.length>0&&(0,d.jsx)(`div`,{className:`pr-tips`,children:p.map((e,t)=>(0,d.jsx)(`div`,{className:`pr-tip`,children:e},t))}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function ie({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,word:r,phonetic:o,senses:s,etymology:c,footer:l,delay:u}){let f=i[t]??i.doc,p=s??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`dc-word`,children:r}),o&&(0,d.jsx)(`div`,{className:`dc-phonetic`,style:{fontFamily:`monospace`,fontStyle:`normal`},children:o}),p.length>0&&(0,d.jsx)(`ol`,{className:`dc-senses`,style:{listStyle:`none`,padding:0,margin:0},children:p.map((e,t)=>(0,d.jsxs)(`li`,{className:`dc-sense`,children:[(0,d.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8,marginBottom:4},children:[(0,d.jsxs)(`span`,{style:{fontSize:`var(--fs-xs, 11px)`,fontWeight:700,color:`var(--text-faint)`,minWidth:`1.4em`},children:[t+1,`.`]}),(0,d.jsx)(`span`,{className:`dc-pos`,children:e.pos})]}),(0,d.jsx)(`div`,{className:`dc-def`,style:{paddingLeft:`calc(1.4em + 8px)`},...t===0?{"data-mark":`underline`}:{},children:e.definition}),e.example&&(0,d.jsx)(`div`,{className:`dc-example`,style:{marginLeft:`calc(1.4em + 8px)`},children:e.example}),(e.synonyms??[]).length>0&&(0,d.jsxs)(`div`,{className:`dc-synonyms`,style:{display:`flex`,flexWrap:`wrap`,alignItems:`center`,gap:4,marginLeft:`calc(1.4em + 8px)`},children:[(0,d.jsx)(`span`,{style:{color:`var(--text-faint)`,marginRight:2},children:`syn.`}),(e.synonyms??[]).map((e,t)=>(0,d.jsx)(`span`,{style:{fontSize:`var(--fs-xs, 11px)`,padding:`1px 7px`,borderRadius:999,background:`var(--track)`,color:`var(--text-secondary)`,lineHeight:1.7},children:e},t))]})]},t))}),c&&(0,d.jsxs)(`div`,{className:`dc-etymology`,children:[(0,d.jsx)(`span`,{style:{fontWeight:600,fontStyle:`normal`,color:`var(--text-muted)`},children:`Etymology `}),c]}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function ae({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,domain:r,entries:o,footer:s,delay:c}){let l=i[t]??i.doc,f=(0,u.useMemo)(()=>[...o??[]].sort((e,t)=>e.term.localeCompare(t.term,void 0,{sensitivity:`base`})),[o]);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,d.jsx)(`div`,{className:`gl-domain`,children:r}),(0,d.jsx)(`div`,{className:`gl-entries`,children:f.map((e,t)=>{let n=e.term.charAt(0).toUpperCase();return(0,d.jsxs)(`div`,{children:[n!==(t===0?null:f[t-1].term.charAt(0).toUpperCase())&&(0,d.jsx)(`div`,{className:`gl-letter-divider`,"aria-hidden":`true`,children:n}),(0,d.jsxs)(`div`,{className:`gl-entry`,children:[(0,d.jsx)(`div`,{className:`gl-term`,children:e.term}),(0,d.jsx)(`div`,{className:`gl-def`,children:e.definition}),e.see&&(0,d.jsxs)(`div`,{className:`gl-see`,children:[`See also: `,(0,d.jsx)(`span`,{style:{fontStyle:`italic`},children:e.see})]})]})]},t)})}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function oe({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,value:r,unit:o,comparisons:s,footer:c,delay:l}){let u=i[t]??i.layers,f=s??[],p=e=>{let t=typeof e.howMany==`number`?e.howMany:Number(String(e.howMany).trim());return Number.isFinite(t)&&t>0?t:null},m=f.reduce((e,t)=>{let n=p(t);return n!==null&&n>e?n:e},0);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`scf-figure`,"data-mark":`underline`,children:[(0,d.jsx)(`span`,{className:`scf-value`,children:r}),o&&(0,d.jsx)(`span`,{className:`scf-unit`,children:o})]}),f.length>0&&(0,d.jsx)(`div`,{className:`scf-rows`,children:f.map((e,t)=>{let n=p(e),r=n!==null&&m>0?Math.max(n/m*100,4):0;return(0,d.jsxs)(`div`,{className:`scf-row`,children:[(0,d.jsxs)(`div`,{className:`scf-line`,children:[(0,d.jsx)(`span`,{className:`scf-count`,children:e.howMany}),(0,d.jsx)(`span`,{className:`scf-to`,children:e.to})]}),r>0&&(0,d.jsx)(`div`,{className:`scf-track`,"aria-hidden":`true`,children:(0,d.jsx)(`div`,{className:`scf-bar`,style:{width:r+`%`}})}),e.note&&(0,d.jsx)(`div`,{className:`scf-note`,children:e.note})]},t)})}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var j=typeof window<`u`&&`speechSynthesis`in window&&typeof window.SpeechSynthesisUtterance==`function`,M=typeof window<`u`?window.AudioContext??window.webkitAudioContext:void 0,se={C:0,"C#":1,DB:1,D:2,"D#":3,EB:3,E:4,FB:4,F:5,"E#":5,"F#":6,GB:6,G:7,"G#":8,AB:8,A:9,"A#":10,BB:10,B:11,CB:11};function ce(e){let t=/^([A-Ga-g])([#b]?)(-?\d{1,2})$/.exec(e.trim());if(!t)return null;let n=se[t[1].toUpperCase()+(t[2]===`#`?`#`:t[2]===`b`?`B`:``)];return n===void 0?null:440*2**((n+(Number(t[3])+1)*12-69)/12)}function N(e){if(typeof e==`number`)return Number.isFinite(e)?e:null;let t=e.trim(),n=Number(t);return t!==``&&Number.isFinite(n)?n:ce(t)}var P={word:`chat`,note:`speaker`,tone:`speaker`};function F({title:e,icon:t=`speaker`,iconColor:n=`var(--presence)`,items:r,footer:o,delay:s}){let c=i[t]??i.speaker,l=r??[],[f,p]=(0,u.useState)(null),m=(0,u.useRef)(null),h=(0,u.useRef)(null),g=(0,u.useCallback)(()=>{if(h.current!==null&&(clearTimeout(h.current),h.current=null),m.current){let e=m.current;m.current=null,e.close().catch(()=>{})}j&&window.speechSynthesis.cancel()},[]);(0,u.useEffect)(()=>g,[g]);let _=(0,u.useCallback)((e,t)=>{if(!j)return;let n=new window.SpeechSynthesisUtterance(e);n.rate=.92;let r=()=>p(e=>e===t?null:e);n.onend=r,n.onerror=r,window.speechSynthesis.speak(n),p(t)},[]),v=(0,u.useCallback)((e,t)=>{if(!M)return;let n=new M;m.current=n;let r=n.currentTime,i=.6,a=n.createOscillator();a.type=`sine`,a.frequency.setValueAtTime(e,r);let o=n.createGain();o.gain.setValueAtTime(1e-4,r),o.gain.exponentialRampToValueAtTime(.22,r+.04),o.gain.exponentialRampToValueAtTime(1e-4,r+i),a.connect(o).connect(n.destination),a.start(r),a.stop(r+i),p(t),a.onended=()=>{p(e=>e===t?null:e),m.current===n&&(m.current=null,n.close().catch(()=>{}))},h.current=setTimeout(()=>{m.current===n&&(m.current=null,n.close().catch(()=>{}),p(e=>e===t?null:e))},.75*1e3)},[]),y=(0,u.useCallback)((e,t)=>{if(g(),e.kind===`word`){_(String(e.value),t);return}let n=N(e.value);n===null||n<=0||v(n,t)},[g,_,v]),b=e=>e.kind===`word`?j:!!M&&N(e.value)!==null;return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`ul`,{className:`hri-rows`,children:l.map((e,t)=>{let n=b(e),r=f===t,a=i[P[e.kind]]??i.speaker,o=e.kind===`word`?`Speech synthesis is unavailable in this browser`:`Audio playback is unavailable in this browser`;return(0,d.jsxs)(`li`,{className:`hri-row`,"data-playing":r||void 0,children:[(0,d.jsx)(`button`,{type:`button`,className:`hri-play`,onClick:()=>y(e,t),disabled:!n,title:n?`Play ${e.label}`:o,"aria-label":n?`Play ${e.label}`:`${e.label} — ${o}`,children:r?(0,d.jsxs)(`span`,{className:`hri-wave`,"aria-hidden":`true`,children:[(0,d.jsx)(`span`,{}),(0,d.jsx)(`span`,{}),(0,d.jsx)(`span`,{})]}):(0,d.jsx)(i.play,{className:`ic hri-play-ic`,style:{width:13,height:13}})}),(0,d.jsxs)(`div`,{className:`hri-body`,children:[(0,d.jsx)(`div`,{className:`hri-label`,children:e.label}),e.sub&&(0,d.jsx)(`div`,{className:`hri-sub`,children:e.sub})]}),(0,d.jsxs)(`span`,{className:`hri-kind`,children:[(0,d.jsx)(a,{className:`ic hri-kind-ic`,style:{width:12,height:12}}),e.kind]})]},t)})}),o&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var I=[{s:`i`,back:0,high:0},{s:`y`,back:0,high:0,rounded:!0},{s:`ɨ`,back:.5,high:0},{s:`u`,back:1,high:0,rounded:!0},{s:`ɪ`,back:.18,high:.18},{s:`ʊ`,back:.82,high:.18,rounded:!0},{s:`e`,back:0,high:.34},{s:`ø`,back:0,high:.34,rounded:!0},{s:`ə`,back:.5,high:.5},{s:`o`,back:1,high:.34,rounded:!0},{s:`ɛ`,back:.08,high:.66},{s:`ɜ`,back:.5,high:.66},{s:`ʌ`,back:.78,high:.66},{s:`ɔ`,back:1,high:.66,rounded:!0},{s:`a`,back:.06,high:1},{s:`æ`,back:.16,high:.84},{s:`ɑ`,back:.9,high:1},{s:`ɒ`,back:1,high:1,rounded:!0}],L=[`Plosive`,`Nasal`,`Fricative`,`Approx.`,`Lateral`],R=[`Bilab.`,`Labiod.`,`Dental`,`Alveolar`,`Postalv.`,`Velar`,`Glottal`],z={"Plosive|Bilab.":[`p`,`b`],"Plosive|Alveolar":[`t`,`d`],"Plosive|Velar":[`k`,`g`],"Plosive|Glottal":[`ʔ`,``],"Nasal|Bilab.":[``,`m`],"Nasal|Alveolar":[``,`n`],"Nasal|Velar":[``,`ŋ`],"Fricative|Labiod.":[`f`,`v`],"Fricative|Dental":[`θ`,`ð`],"Fricative|Alveolar":[`s`,`z`],"Fricative|Postalv.":[`ʃ`,`ʒ`],"Fricative|Glottal":[`h`,``],"Approx.|Postalv.":[``,`ɹ`],"Approx.|Velar":[``,`w`],"Lateral|Alveolar":[``,`l`]};function B(e){return e.replace(/[ː/[\].ˈˌ]/g,``).trim()}function V({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,kind:r=`vowels`,highlight:o,examples:s,caption:c,footer:l,delay:u}){let f=i[t]??i.globe,p=s??[],m=new Set((o??[]).map(B)),h=e=>m.has(B(e));return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),r===`consonants`?(0,d.jsx)(W,{isHot:h}):(0,d.jsx)(H,{isHot:h}),c&&(0,d.jsx)(`div`,{className:`ipa-caption`,children:c}),p.length>0&&(0,d.jsx)(`ul`,{className:`ipa-examples`,children:p.map((e,t)=>(0,d.jsxs)(`li`,{className:`ipa-ex`,...h(e.symbol)?{"data-hot":``}:{},children:[(0,d.jsx)(`span`,{className:`ipa-ex-sym`,children:e.symbol}),(0,d.jsx)(`span`,{className:`ipa-ex-word`,children:e.word})]},t))}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function H(e){let t=(0,E.c)(31),{isHot:n}=e,r,i,a,o,s,c,l,u,f,p,m,h;if(t[0]!==n){let e={x:12,y:14},g={x:92,y:14},_={x:34,y:86},v={x:80,y:86},y=U,b=(t,n)=>{let r=y(e.x,_.x,n),i=y(g.x,v.x,n),a=y(e.y,_.y,n);return{x:y(r,i,t),y:a}};o=`ipa-quad`,r=`0 0 104 100`,s=`100%`,c=`img`,l=`IPA vowel quadrilateral`;let x=`${e.x},${e.y} ${g.x},${g.y} ${v.x},${v.y} ${_.x},${_.y}`;t[13]===x?u=t[14]:(u=(0,d.jsx)(`polygon`,{points:x,fill:`none`,stroke:`var(--line-strong)`,strokeWidth:.8}),t[13]=x,t[14]=u),f=[.34,.5,.66].map((e,t)=>{let n=b(0,e),r=b(1,e);return(0,d.jsx)(`line`,{x1:n.x,y1:n.y,x2:r.x,y2:r.y,stroke:`var(--grid-line)`,strokeWidth:.5},t)}),p=(0,d.jsx)(`line`,{x1:b(.5,0).x,y1:b(.5,0).y,x2:b(.5,1).x,y2:b(.5,1).y,stroke:`var(--grid-line)`,strokeWidth:.5}),m=(0,d.jsx)(`text`,{x:e.x,y:9,className:`ipa-axis`,textAnchor:`start`,children:`Front`}),h=(0,d.jsx)(`text`,{x:g.x,y:9,className:`ipa-axis`,textAnchor:`end`,children:`Back`}),t[15]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,d.jsx)(`text`,{className:`ipa-axis`,transform:`translate(6, 50) rotate(-90)`,textAnchor:`middle`,children:`Close → Open`}),t[15]=i):i=t[15],a=I.map(e=>{let t=b(e.back,e.high),r=e.rounded?3:0,i=n(e.s);return(0,d.jsxs)(`g`,{transform:`translate(${t.x+r}, ${t.y})`,children:[i&&(0,d.jsx)(`circle`,{r:4.4,className:`ipa-vowel-halo`}),(0,d.jsx)(`text`,{className:`ipa-vowel`,textAnchor:`middle`,dominantBaseline:`central`,...i?{"data-hot":``}:{},children:e.s})]},e.s)}),t[0]=n,t[1]=r,t[2]=i,t[3]=a,t[4]=o,t[5]=s,t[6]=c,t[7]=l,t[8]=u,t[9]=f,t[10]=p,t[11]=m,t[12]=h}else r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],f=t[9],p=t[10],m=t[11],h=t[12];let g;t[16]!==r||t[17]!==i||t[18]!==a||t[19]!==s||t[20]!==c||t[21]!==l||t[22]!==u||t[23]!==f||t[24]!==p||t[25]!==m||t[26]!==h?(g=(0,d.jsxs)(`svg`,{viewBox:r,width:s,role:c,"aria-label":l,children:[u,f,p,m,h,i,a]}),t[16]=r,t[17]=i,t[18]=a,t[19]=s,t[20]=c,t[21]=l,t[22]=u,t[23]=f,t[24]=p,t[25]=m,t[26]=h,t[27]=g):g=t[27];let _;return t[28]!==o||t[29]!==g?(_=(0,d.jsx)(`div`,{className:o,children:g}),t[28]=o,t[29]=g,t[30]=_):_=t[30],_}function U(e,t,n){return e+(t-e)*n}function W(e){let t=(0,E.c)(7),{isHot:n}=e,r;t[0]===n?r=t[1]:(r=e=>{let{s:t}=e;return t?(0,d.jsx)(`span`,{className:`ipa-cgrid-sym`,...n(t)?{"data-hot":``}:{},children:t}):(0,d.jsx)(`span`,{className:`ipa-cgrid-empty`,children:`·`})},t[0]=n,t[1]=r);let i=r,a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{children:[(0,d.jsx)(`th`,{className:`ipa-cgrid-corner`}),R.map(G)]})}),t[2]=a):a=t[2];let o;t[3]===i?o=t[4]:(o=L.map(e=>(0,d.jsxs)(`tr`,{children:[(0,d.jsx)(`th`,{className:`ipa-cgrid-manner`,scope:`row`,children:e}),R.map(t=>{let n=z[`${e}|${t}`];return(0,d.jsx)(`td`,{className:`ipa-cgrid-cell`,children:n?(0,d.jsxs)(`span`,{className:`ipa-cgrid-pair`,children:[(0,d.jsx)(i,{s:n[0]}),(0,d.jsx)(i,{s:n[1]})]}):(0,d.jsx)(`span`,{className:`ipa-cgrid-na`,"aria-hidden":`true`})},t)})]},e)),t[3]=i,t[4]=o);let s;return t[5]===o?s=t[6]:(s=(0,d.jsx)(`div`,{className:`ipa-cgrid-wrap`,children:(0,d.jsxs)(`table`,{className:`ipa-cgrid`,children:[a,(0,d.jsx)(`tbody`,{children:o})]})}),t[5]=o,t[6]=s),s}function G(e){return(0,d.jsx)(`th`,{className:`ipa-cgrid-place`,scope:`col`,children:e},e)}function le(e){let t=e.match(/-?\d*\.?\d+/g);if(!t||t.length<2)return null;let n=Number(t[0]),r=Number(t[1]);return!Number.isFinite(n)||!Number.isFinite(r)?null:{x:n,y:r}}function ue({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,glyph:r,strokes:o,grid:s=`mi`,romanization:c,meaning:l,caption:u,footer:f,delay:p}){let m=i[t]??i.edit,h=[...o??[]].sort((e,t)=>e.order-t.order),g=h.some(e=>e.path&&e.path.trim().length>0);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`ss-stage`,children:[(0,d.jsx)(`div`,{className:`ss-square`,children:(0,d.jsxs)(`svg`,{viewBox:`0 0 100 100`,width:`100%`,role:`img`,"aria-label":`Writing guide for ${r}`,children:[(0,d.jsx)(`rect`,{x:1,y:1,width:98,height:98,rx:2,fill:`none`,stroke:`var(--line-strong)`,strokeWidth:.8}),s!==`none`&&(0,d.jsxs)(`g`,{stroke:`var(--grid-line)`,strokeWidth:.6,strokeDasharray:`3 2.5`,children:[(0,d.jsx)(`line`,{x1:50,y1:1,x2:50,y2:99}),(0,d.jsx)(`line`,{x1:1,y1:50,x2:99,y2:50}),s===`mi`&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`line`,{x1:1,y1:1,x2:99,y2:99}),(0,d.jsx)(`line`,{x1:99,y1:1,x2:1,y2:99})]})]}),g?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`text`,{x:50,y:54,className:`ss-ghost`,textAnchor:`middle`,dominantBaseline:`central`,children:r}),h.map((e,t)=>e.path?(0,d.jsx)(`path`,{d:e.path,className:`ss-stroke`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,style:{"--i":t}},`p${t}`):null),h.map((e,t)=>{let n=e.path?le(e.path):null;return n?(0,d.jsxs)(`g`,{transform:`translate(${n.x}, ${n.y})`,children:[(0,d.jsx)(`circle`,{r:4.6,className:`ss-badge-bg`}),(0,d.jsx)(`text`,{className:`ss-badge-num`,textAnchor:`middle`,dominantBaseline:`central`,children:e.order})]},`b${t}`):null})]}):(0,d.jsx)(`text`,{x:50,y:54,className:`ss-glyph`,textAnchor:`middle`,dominantBaseline:`central`,children:r})]})}),(0,d.jsxs)(`div`,{className:`ss-meta`,children:[(0,d.jsx)(`div`,{className:`ss-glyph-sm`,"aria-hidden":`true`,children:r}),c&&(0,d.jsxs)(`div`,{className:`ss-romanization`,children:[(0,d.jsx)(`span`,{className:`ss-meta-k`,children:`Reading`}),(0,d.jsx)(`span`,{className:`ss-meta-v`,children:c})]}),l&&(0,d.jsxs)(`div`,{className:`ss-meaning`,children:[(0,d.jsx)(`span`,{className:`ss-meta-k`,children:`Meaning`}),(0,d.jsx)(`span`,{className:`ss-meta-v`,children:l})]}),(0,d.jsxs)(`div`,{className:`ss-count`,children:[h.length,` `,h.length===1?`stroke`:`strokes`]})]})]}),h.length>0&&(0,d.jsx)(`ol`,{className:`ss-steps`,children:h.map((e,t)=>(0,d.jsxs)(`li`,{className:`ss-step`,children:[(0,d.jsx)(`span`,{className:`ss-step-num`,children:e.order}),(0,d.jsx)(`span`,{className:`ss-step-hint`,children:e.hint??`Stroke ${e.order}`})]},t))}),u&&(0,d.jsx)(`div`,{className:`ipa-caption`,children:u}),f&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}var K=typeof window<`u`&&`speechSynthesis`in window&&typeof window.SpeechSynthesisUtterance==`function`,de=`silent`;function fe({title:e,icon:t=`captions`,iconColor:n=`var(--presence)`,word:r,chunks:o,rhymes:s,caption:c,footer:l,delay:f}){let p=i[t]??i.captions,m=(o??[]).filter(e=>e&&e.text),h=(s??[]).filter(Boolean),[g,_]=(0,u.useState)(null);(0,u.useEffect)(()=>()=>{K&&window.speechSynthesis.cancel()},[]);let v=(0,u.useCallback)((e,t,n)=>{if(!K)return;window.speechSynthesis.cancel();let r=new window.SpeechSynthesisUtterance(e);r.rate=n;let i=()=>_(e=>e===t?null:e);r.onend=i,r.onerror=i,window.speechSynthesis.speak(r),_(t)},[]);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f??0)+`ms`},children:[e&&(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`pw-word`,role:`group`,"aria-label":`Sound out ${r}`,children:m.map((e,t)=>{let n=e.kind??`grapheme`,r=n===de;return(0,d.jsxs)(`button`,{type:`button`,className:`pw-chunk`,"data-kind":n,"data-playing":g===t||void 0,disabled:r||!K,onClick:()=>v(e.text,t,.62),title:r?`"${e.text}" is silent`:K?`Hear "${e.text}"`:`"${e.text}"`,"aria-label":r?`${e.text}, silent`:`Hear ${e.text}${e.sound?`, ${e.sound}`:``}`,children:[(0,d.jsx)(`span`,{className:`pw-chunk-text`,children:e.text}),e.sound&&(0,d.jsx)(`span`,{className:`pw-chunk-sound`,children:e.sound})]},t)})}),(0,d.jsxs)(`button`,{type:`button`,className:`pw-blend`,"data-playing":g===-1||void 0,disabled:!K,onClick:()=>v(r,-1,.92),title:K?`Hear "${r}"`:r,"aria-label":K?`Hear the whole word, ${r}`:r,children:[K?g===-1?(0,d.jsxs)(`span`,{className:`pw-wave`,"aria-hidden":`true`,children:[(0,d.jsx)(`span`,{}),(0,d.jsx)(`span`,{}),(0,d.jsx)(`span`,{})]}):(0,d.jsx)(i.play,{className:`ic pw-blend-ic`,style:{width:12,height:12}}):null,(0,d.jsx)(`span`,{className:`pw-blend-word`,children:r})]}),c&&(0,d.jsx)(`div`,{className:`ipa-caption`,children:c}),h.length>0&&(0,d.jsxs)(`div`,{className:`pw-rhymes`,children:[(0,d.jsx)(`span`,{className:`pw-rhymes-k`,children:`Rhymes with`}),(0,d.jsx)(`ul`,{className:`pw-rhyme-list`,children:h.map((e,t)=>(0,d.jsx)(`li`,{className:`pw-rhyme`,children:e},t))})]}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}var pe=[`noun`,`verb`,`adjective`,`adverb`,`pronoun`,`preposition`,`conjunction`,`determiner`,`interjection`],q={noun:`n.`,verb:`v.`,adjective:`adj.`,adverb:`adv.`,pronoun:`pron.`,preposition:`prep.`,conjunction:`conj.`,determiner:`det.`,interjection:`interj.`},me=e=>typeof e==`string`&&Object.prototype.hasOwnProperty.call(q,e),he=/^[¿¡([{«‹“‘]+$/;function ge({title:e,icon:t=`captions`,iconColor:n=`var(--presence)`,tokens:r,sentence:o,translation:s,footer:c,delay:l}){let f=i[t]??i.captions,{groups:p,legend:m,notes:h}=(0,u.useMemo)(()=>{let e=Array.isArray(r)?r:[],t=0,n=[];for(let r of e){if(typeof r==`string`){r.trim()&&n.push({word:r});continue}if(!r||typeof r!=`object`)continue;let e=r;if(typeof e.word!=`string`||!e.word.trim())continue;if(e.pos===`punctuation`){n.push({word:e.word,punct:!0});continue}let i=typeof e.note==`string`&&e.note.trim()?e.note:void 0;n.push({word:e.word,pos:me(e.pos)?e.pos:void 0,note:i,noteIdx:i?++t:void 0})}let i=[],a=[];for(let e of n)if(e.punct){let t=i[i.length-1];t&&!he.test(e.word)?t.trail.push(e):a.push(e)}else i.push({lead:a,word:e,trail:[]}),a=[];if(a.length){let e=i[i.length-1];e?e.trail.push(...a):i.push({lead:a,trail:[]})}let o=new Map;for(let e of n)e.pos&&o.set(e.pos,(o.get(e.pos)??0)+1);return{groups:i,legend:pe.filter(e=>o.has(e)).map(e=>({pos:e,count:o.get(e)??0})),notes:n.filter(e=>e.noteIdx!==void 0)}},[r]),[g,_]=(0,u.useState)(null),v=g&&m.some(e=>e.pos===g)?g:null,y=(e,t)=>(0,d.jsx)(`span`,{className:`psb-punct`,"data-dim":!!v||void 0,children:e.word},t);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),p.length>0?(0,d.jsx)(`div`,{className:`psb-flow`,children:p.map((e,t)=>(0,d.jsxs)(`span`,{className:`psb-group`,children:[e.lead.map((e,t)=>y(e,`l${t}`)),e.word&&(0,d.jsxs)(`span`,{className:`psb-token`,"data-pos":e.word.pos,"data-dim":!!v&&e.word.pos!==v||void 0,title:e.word.note?`${e.word.word} — ${e.word.note}`:void 0,children:[(0,d.jsxs)(`span`,{className:`psb-word`,children:[e.word.word,e.word.noteIdx!==void 0&&(0,d.jsx)(`sup`,{className:`psb-note-mark`,"aria-hidden":`true`,children:e.word.noteIdx})]}),e.word.pos&&(0,d.jsx)(`span`,{className:`psb-abbr`,"aria-hidden":`true`,children:q[e.word.pos]})]}),e.trail.map((e,t)=>y(e,`t${t}`))]},t))}):o?(0,d.jsx)(`p`,{className:`psb-plain`,children:o}):(0,d.jsx)(`div`,{className:`psb-empty`,children:`Nothing to break down yet.`}),s&&(0,d.jsx)(`div`,{className:`psb-translation`,children:s}),m.length>0&&(0,d.jsx)(`div`,{className:`psb-legend`,role:`group`,"aria-label":`Word classes in this sentence`,children:m.map(({pos:e,count:t})=>(0,d.jsxs)(`button`,{type:`button`,className:`psb-leg`,"data-pos":e,"aria-pressed":v===e,onClick:()=>_(t=>t===e?null:e),title:v===e?`Show every word`:`Spotlight every ${e}`,children:[(0,d.jsx)(`span`,{className:`psb-leg-dot`,"aria-hidden":`true`}),e,t>1&&(0,d.jsxs)(`span`,{className:`psb-leg-n`,children:[`×`,t]})]},e))}),h.length>0&&(0,d.jsx)(`ul`,{className:`psb-notes`,children:h.map(e=>(0,d.jsxs)(`li`,{className:`psb-note`,children:[(0,d.jsx)(`sup`,{className:`psb-note-num`,children:e.noteIdx}),(0,d.jsxs)(`span`,{className:`psb-note-text`,children:[(0,d.jsx)(`span`,{className:`psb-note-word`,children:e.word}),` — `,e.note]})]},e.noteIdx))}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}function _e({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,commonName:r,scientificName:s,image:c,marks:u,lookalikes:f,status:p,caption:m,footer:h,delay:g}){let _=i[t]??i.globe,v=l(c?.from,`var(--presence-deep)`),y=l(c?.to,`var(--presence-soft)`),b=o(c?.src),x=u??[],S=f??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g??0)+`ms`},children:[e&&(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(_,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`sp-banner`,style:{background:`linear-gradient(150deg, ${v}, ${y})`},children:[b&&(0,d.jsx)(`img`,{className:`me-img-fill`,src:b,alt:``,loading:`lazy`,decoding:`async`,referrerPolicy:`no-referrer`,onError:e=>{e.currentTarget.style.display=`none`}}),p&&(0,d.jsx)(`span`,{className:`sp-status`,children:p})]}),(0,d.jsx)(`div`,{className:`sp-common`,"data-mark":`underline`,children:r}),s&&(0,d.jsx)(`div`,{className:`sp-scientific`,children:s}),m&&(0,d.jsx)(`div`,{className:`sp-caption`,children:m}),x.length>0&&(0,d.jsx)(`div`,{className:`sp-marks`,children:x.map((e,t)=>(0,d.jsxs)(`div`,{className:`sp-mark`,children:[(0,d.jsx)(`span`,{className:`sp-mark-label`,children:e.label}),(0,d.jsx)(`span`,{className:`sp-mark-value`,children:e.value})]},t))}),S.length>0&&(0,d.jsxs)(`div`,{className:`sp-lookalikes`,children:[(0,d.jsxs)(`span`,{className:`sp-lookalikes-k`,children:[(0,d.jsx)(i.layers,{className:`ic sp-lookalikes-ic`}),` Easily confused with`]}),(0,d.jsx)(`ul`,{className:`sp-lookalike-list`,children:S.map((e,t)=>(0,d.jsx)(`li`,{className:`sp-lookalike`,children:e},t))})]}),h&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(h)})]})}function ve({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,terms:r,footer:o,delay:s}){let c=i[t]??i.table,l=e=>typeof e==`string`&&e.trim()?e.trim():`—`,{rows:f,langs:p}=(0,u.useMemo)(()=>{let e=r??[],t=[],n=new Set;return{rows:e.map(e=>{let r=new Map;for(let i of e.translations??[]){if(!i||typeof i!=`object`)continue;let e=l(i.lang);n.has(e)||(n.add(e),t.push(e)),r.has(e)||r.set(e,i)}return{term:e,cells:r}}),langs:t}},[r]),m=e=>{if(e===`preferred`)return`var(--insight)`;if(e===`deprecated`)return`var(--warning)`;if(e===`avoid`)return`var(--danger)`};return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),f.length===0?(0,d.jsx)(`div`,{className:`tb-empty`,children:`No terms yet.`}):p.length===0?(0,d.jsx)(`ul`,{className:`tb-flat`,children:f.map(({term:e},t)=>(0,d.jsx)(`li`,{className:`tb-flat-term m-stagger-item m-fade-rise`,style:{"--i":t},children:e.term},t))}):(0,d.jsx)(`div`,{className:`tb-wrap`,children:(0,d.jsxs)(`table`,{className:`tb-table`,children:[(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{children:[(0,d.jsx)(`th`,{scope:`col`,children:`Term`}),p.map(e=>(0,d.jsx)(`th`,{scope:`col`,children:e},e))]})}),(0,d.jsx)(`tbody`,{children:f.map(({term:e,cells:t},n)=>(0,d.jsxs)(`tr`,{className:`m-stagger-item m-fade-rise`,style:{"--i":n},children:[(0,d.jsx)(`td`,{className:`tb-term-col`,children:e.term}),p.map(e=>{let n=t.get(e),r=n&&typeof n.text==`string`?n.text:``,i=m(n?.status);return(0,d.jsx)(`td`,{className:`tb-cell`,children:r?(0,d.jsxs)(`span`,{className:`tb-cell-text`,children:[i&&(0,d.jsx)(`span`,{className:`tb-dot`,style:{"--tb-c":i},title:n?.status}),r]}):(0,d.jsx)(`span`,{className:`tb-dash`,children:`—`})},e)})]},n))})]})}),o&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var J={whale:{w:240,h:70,orient:`horizontal`},bus:{w:200,h:90,orient:`horizontal`},generic:{w:90,h:70,orient:`horizontal`},human:{w:40,h:100,orient:`vertical`},building:{w:70,h:160,orient:`vertical`}};function ye(e){return typeof e==`string`&&e in J}function be(e){let t=(0,E.c)(21),n,r;t[0]===e?(n=t[1],r=t[2]):({shape:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i=J[n],a=`0 0 ${i.w} ${i.h}`,o;t[3]===n?o=t[4]:(o=n===`human`&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`circle`,{cx:`20`,cy:`11`,r:`10`}),(0,d.jsx)(`path`,{d:`M8 30 Q20 22 32 30 L34 62 Q27 68 20 68 Q13 68 6 62 Z`}),(0,d.jsx)(`path`,{d:`M11 66 L8 100 L17 100 L19 70 Z`}),(0,d.jsx)(`path`,{d:`M29 66 L32 100 L23 100 L21 70 Z`})]}),t[3]=n,t[4]=o);let s;t[5]===n?s=t[6]:(s=n===`bus`&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`path`,{d:`M6 20 Q6 8 18 8 H172 Q188 8 188 24 V58 Q188 66 180 66 H16 Q6 66 6 56 Z`}),(0,d.jsx)(`rect`,{x:`18`,y:`17`,width:`152`,height:`19`,rx:`3`,className:`szc-glyph-cut`,fill:`var(--surface-elevated)`}),(0,d.jsx)(`circle`,{cx:`46`,cy:`70`,r:`13`}),(0,d.jsx)(`circle`,{cx:`154`,cy:`70`,r:`13`})]}),t[5]=n,t[6]=s);let c;t[7]===n?c=t[8]:(c=n===`whale`&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`path`,{d:`M4 40 C4 20 40 10 100 9 C170 8 210 20 224 32 L236 26 L232 42 L236 56 L224 50 C214 60 170 66 100 65 C40 64 4 56 4 40 Z`}),(0,d.jsx)(`path`,{d:`M60 12 C64 2 76 2 78 12 C72 14 66 14 60 12 Z`}),(0,d.jsx)(`path`,{d:`M18 46 C22 54 34 56 40 50 C34 46 24 44 18 46 Z`})]}),t[7]=n,t[8]=c);let l;t[9]===n?l=t[10]:(l=n===`building`&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`rect`,{x:`10`,y:`6`,width:`50`,height:`154`,rx:`2`}),Array.from({length:8},xe)]}),t[9]=n,t[10]=l);let u;t[11]===n?u=t[12]:(u=n===`generic`&&(0,d.jsx)(`path`,{d:`M8 55 Q2 30 28 18 Q46 4 66 14 Q86 22 82 42 Q90 52 78 58 Q55 68 30 64 Q12 62 8 55 Z`}),t[11]=n,t[12]=u);let f;return t[13]!==r||t[14]!==a||t[15]!==o||t[16]!==s||t[17]!==c||t[18]!==l||t[19]!==u?(f=(0,d.jsxs)(`svg`,{viewBox:a,preserveAspectRatio:`xMidYMax meet`,fill:`currentColor`,"aria-hidden":`true`,...r,children:[o,s,c,l,u]}),t[13]=r,t[14]=a,t[15]=o,t[16]=s,t[17]=c,t[18]=l,t[19]=u,t[20]=f):f=t[20],f}function xe(e,t){return Array.from({length:3},(e,n)=>(0,d.jsx)(`rect`,{x:17+n*13,y:16+t*17,width:`8`,height:`9`,rx:`1`,className:`szc-glyph-cut`,fill:`var(--surface-elevated)`},`${t}-${n}`))}var Se=190,Y=16;function Ce(e,t){if(typeof e!=`number`||!Number.isFinite(e))return`—`;let n=e.toLocaleString(void 0,{maximumFractionDigits:2});return t?`${n} ${t}`:n}function we({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,unit:r,subjects:o,footer:s,delay:c}){let l=i[t]??i.layers,u=o??[],f=u.reduce((e,t)=>{let n=typeof t.length==`number`&&Number.isFinite(t.length)?t.length:-1/0;return n>e?n:e},0),p=f>0?Se/f:0,m=u.map(e=>{let t=ye(e.shape)?e.shape:`generic`,n=J[t],r=typeof e.length==`number`&&Number.isFinite(e.length)&&e.length>0&&p>0?Math.max(e.length*p,Y):Y;return{subject:e,shape:t,width:n.orient===`horizontal`?r:r*(n.w/n.h),height:n.orient===`vertical`?r:r*(n.h/n.w)}}),h=Math.max(...m.map(e=>e.height),Y);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),m.length===0?(0,d.jsx)(`div`,{className:`szc-empty`,children:`No subjects yet.`}):(0,d.jsx)(`div`,{className:`szc-scroll`,children:(0,d.jsx)(`div`,{className:`szc-row`,style:{"--szc-track-h":h+`px`},children:m.map(({subject:e,shape:t,width:i,height:a},o)=>(0,d.jsxs)(`div`,{className:`szc-item m-stagger-item m-scale-in`,style:{"--i":o,color:n},children:[(0,d.jsx)(`div`,{className:`szc-shape-box`,children:(0,d.jsx)(be,{shape:t,style:{width:i,height:a}})}),(0,d.jsx)(`div`,{className:`szc-item-label`,...o===0?{"data-mark":`underline`}:{},children:e.label}),(0,d.jsx)(`div`,{className:`szc-item-value`,children:Ce(e.length,r)})]},o))})}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function Te(e){let t=Array.from(e),n=t.length;return t.map((e,t)=>({ch:e,group:Math.floor((n-1-t)/4)}))}function Ee({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,value:r,bases:o,footer:s,delay:c}){let l=i[t]??i.chart,u=o??[],f=typeof r==`string`||typeof r==`number`?String(r):``;return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),f&&(0,d.jsx)(`div`,{className:`bcv-value`,"data-mark":`underline`,children:f}),u.length>0?(0,d.jsx)(`div`,{className:`bcv-rows`,children:u.map((e,t)=>{let n=typeof e.digits==`string`?e.digits.trim():``,r=typeof e.radix==`number`&&Number.isFinite(e.radix)?e.radix:null;return(0,d.jsxs)(`div`,{className:`bcv-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,d.jsxs)(`div`,{className:`bcv-row-head`,children:[(0,d.jsx)(`span`,{className:`bcv-label`,children:e.label}),r!==null&&(0,d.jsxs)(`span`,{className:`bcv-radix`,children:[`base `,r]})]}),n?(0,d.jsx)(`div`,{className:`bcv-digits`,children:Te(n).map((e,t)=>(0,d.jsx)(`span`,{className:`bcv-digit`,"data-group":e.group%2==0?`a`:`b`,children:e.ch},t))}):(0,d.jsx)(`span`,{className:`bcv-dash`,children:`—`})]},t)})}):(0,d.jsx)(`div`,{className:`bcv-empty`,children:`No bases yet.`}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function De(e){let t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?`?`:t.length===1?t[0][0]?.toUpperCase()??`?`:((t[0][0]??``)+(t[t.length-1][0]??``)).toUpperCase()}function Oe(e){return typeof e==`string`&&e.trim()||typeof e==`number`&&Number.isFinite(e)?String(e):`—`}function ke({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,name:r,era:o,born:s,died:c,knownFor:l,facts:u,lifeEvents:f,legacy:p,footer:m,delay:h}){let g=i[t]??i.doc,_=u??[],v=f??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(h??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`hp-head`,children:[(0,d.jsx)(`div`,{className:`hp-medallion`,"aria-hidden":`true`,children:De(r)}),(0,d.jsxs)(`div`,{className:`hp-headline`,children:[(0,d.jsx)(`div`,{className:`hp-name`,"data-mark":`underline`,children:r}),o&&(0,d.jsx)(`div`,{className:`hp-era`,children:o}),l&&(0,d.jsx)(`div`,{className:`hp-known`,children:l})]})]}),(s||c)&&(0,d.jsxs)(`div`,{className:`hp-dates`,children:[s&&(0,d.jsxs)(`div`,{className:`hp-date`,children:[(0,d.jsx)(`span`,{className:`hp-date-k`,children:`Born`}),(0,d.jsx)(`span`,{className:`hp-date-v`,children:s})]}),c&&(0,d.jsxs)(`div`,{className:`hp-date`,children:[(0,d.jsx)(`span`,{className:`hp-date-k`,children:`Died`}),(0,d.jsx)(`span`,{className:`hp-date-v`,children:c})]})]}),v.length>0&&(0,d.jsx)(`div`,{className:`hp-beats`,children:v.map((e,t)=>(0,d.jsxs)(`div`,{className:`hp-beat m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,d.jsx)(`span`,{className:`hp-beat-year`,children:Oe(e.year)}),(0,d.jsx)(`span`,{className:`hp-beat-label`,children:e.label})]},t))}),_.length>0&&(0,d.jsx)(`div`,{className:`hp-facts`,children:_.map((e,t)=>(0,d.jsxs)(`div`,{className:`hp-fact-row`,children:[(0,d.jsx)(`span`,{className:`hp-fact-label`,children:e.label}),(0,d.jsx)(`span`,{className:`hp-fact-value`,children:e.value})]},t))}),p&&(0,d.jsx)(`div`,{className:`hp-legacy`,children:p}),m&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(m)})]})}function X(e){return typeof e==`string`&&e.trim()||typeof e==`number`&&Number.isFinite(e)?String(e):`—`}function Z({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,date:r,events:o,born:s,died:c,footer:l,delay:u}){let f=i[t]??i.clock,p=o??[],m=s??[],h=c??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`otd-date`,children:r}),p.length>0?(0,d.jsx)(`div`,{className:`otd-events`,children:p.map((e,t)=>(0,d.jsxs)(`div`,{className:`otd-event m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,d.jsx)(`span`,{className:`otd-year-chip`,children:X(e.year)}),(0,d.jsxs)(`div`,{className:`otd-event-body`,children:[(0,d.jsx)(`div`,{className:`otd-label`,...t===0?{"data-mark":`underline`}:{},children:e.label}),e.category&&(0,d.jsx)(`span`,{className:`otd-cat`,children:e.category})]})]},t))}):(0,d.jsx)(`div`,{className:`otd-empty`,children:`No events yet.`}),(m.length>0||h.length>0)&&(0,d.jsxs)(`div`,{className:`otd-people`,children:[m.length>0&&(0,d.jsxs)(`div`,{className:`otd-people-col`,children:[(0,d.jsx)(`span`,{className:`otd-people-k`,children:`Born`}),m.map((e,t)=>(0,d.jsxs)(`div`,{className:`otd-person`,children:[(0,d.jsx)(`span`,{className:`otd-person-year`,children:X(e.year)}),(0,d.jsx)(`span`,{className:`otd-person-name`,children:e.name})]},t))]}),h.length>0&&(0,d.jsxs)(`div`,{className:`otd-people-col`,children:[(0,d.jsx)(`span`,{className:`otd-people-k`,children:`Died`}),h.map((e,t)=>(0,d.jsxs)(`div`,{className:`otd-person`,children:[(0,d.jsx)(`span`,{className:`otd-person-year`,children:X(e.year)}),(0,d.jsx)(`span`,{className:`otd-person-name`,children:e.name})]},t))]})]}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function Ae({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,name:r,flag:o,capital:s,population:c,area:l,officialLanguages:u,currency:f,facts:p,footer:m,delay:h}){let g=i[t]??i.globe,_=Array.isArray(p)?p:[],v=(Array.isArray(u)?u:[]).filter(e=>typeof e==`string`&&e.trim().length>0),y=[{label:`Capital`,value:s},{label:`Population`,value:c},{label:`Area`,value:l},{label:`Currency`,value:f}].filter(e=>typeof e.value==`string`&&!!e.value);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(h??0)+`ms`},children:[e&&(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`cc-banner`,children:(0,d.jsx)(`span`,{className:`cc-flag`,role:`img`,"aria-label":`Flag of ${r}`,children:typeof o==`string`&&o.trim()?o:`🌐`})}),(0,d.jsx)(`div`,{className:`cc-name`,"data-mark":`underline`,children:r}),y.length>0&&(0,d.jsx)(`div`,{className:`cc-marks`,children:y.map((e,t)=>(0,d.jsxs)(`div`,{className:`cc-mark`,children:[(0,d.jsx)(`span`,{className:`cc-mark-label`,children:e.label}),(0,d.jsx)(`span`,{className:`cc-mark-value`,children:e.value})]},t))}),v.length>0&&(0,d.jsx)(`div`,{className:`cc-langs`,children:v.map((e,t)=>(0,d.jsx)(`span`,{className:`cc-lang-chip`,children:e},t))}),_.length>0&&(0,d.jsx)(`div`,{className:`cc-facts`,children:_.map((e,t)=>(0,d.jsxs)(`div`,{className:`cc-fact-row`,children:[(0,d.jsx)(`span`,{className:`cc-fact-label`,children:e.label}),(0,d.jsx)(`span`,{className:`cc-fact-value`,children:e.value})]},t))}),m&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(m)})]})}function je({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,countries:r,footer:o,delay:s}){let c=i[t]??i.globe,l=Array.isArray(r)?r:[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),l.length===0?(0,d.jsx)(`div`,{className:`wg-empty`,children:`No countries yet.`}):(0,d.jsx)(`div`,{className:`wg-grid`,children:l.map((e,t)=>(0,d.jsxs)(`div`,{className:`wg-tile m-stagger-item m-scale-in`,style:{"--i":t},children:[(0,d.jsx)(`span`,{className:`wg-flag`,role:`img`,"aria-label":`Flag of ${e.name}`,children:typeof e.flag==`string`&&e.flag.trim()?e.flag:`🌐`}),(0,d.jsx)(`div`,{className:`wg-name`,children:e.name}),e.capital&&(0,d.jsxs)(`div`,{className:`wg-row`,children:[(0,d.jsx)(`span`,{className:`wg-row-k`,children:`Capital`}),(0,d.jsx)(`span`,{className:`wg-row-v`,children:e.capital})]}),e.currency&&(0,d.jsxs)(`div`,{className:`wg-row`,children:[(0,d.jsx)(`span`,{className:`wg-row-k`,children:`Currency`}),(0,d.jsx)(`span`,{className:`wg-row-v`,children:e.currency})]}),e.language&&(0,d.jsxs)(`div`,{className:`wg-row`,children:[(0,d.jsx)(`span`,{className:`wg-row-k`,children:`Language`}),(0,d.jsx)(`span`,{className:`wg-row-v`,children:e.language})]})]},t))}),o&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var Q=[`var(--presence)`,`var(--danger)`,`var(--warning)`,`var(--text-muted)`],Me=new Set(Q);function Ne(e,t){return typeof e.color==`string`&&Me.has(e.color)?e.color:Q[t%Q.length]}function Pe({title:e,icon:t=`shield`,iconColor:n=`var(--danger)`,dates:r,sides:o,keyBattles:s,casualties:c,outcome:l,footer:u,delay:f}){let p=i[t]??i.shield,m=Array.isArray(o)?o:[],h=Array.isArray(s)?s:[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,d.jsx)(`div`,{className:`wc-dates`,children:r}),m.length>0&&(0,d.jsx)(`div`,{className:`wc-sides`,children:m.map((e,t)=>{let n=Ne(e,t),r=Array.isArray(e.leaders)?e.leaders:[];return(0,d.jsxs)(`div`,{className:`wc-side m-stagger-item m-fade-rise`,style:{"--i":t,"--wc-c":n},children:[(0,d.jsx)(`div`,{className:`wc-side-name`,children:e.name}),r.length>0&&(0,d.jsx)(`ul`,{className:`wc-leaders`,children:r.filter(e=>typeof e==`string`&&e.trim().length>0).map((e,t)=>(0,d.jsx)(`li`,{className:`wc-leader`,children:e},t))})]},t)})}),h.length>0&&(0,d.jsx)(`div`,{className:`wc-battles`,children:h.map((e,t)=>(0,d.jsxs)(`div`,{className:`wc-battle`,children:[(0,d.jsx)(`span`,{className:`wc-battle-dot`,"aria-hidden":`true`}),(0,d.jsx)(`span`,{className:`wc-battle-label`,children:e.label}),e.at&&(0,d.jsx)(`span`,{className:`wc-battle-at`,children:e.at})]},t))}),c&&(0,d.jsxs)(`div`,{className:`wc-stat-row`,children:[(0,d.jsx)(`span`,{className:`wc-stat-k`,children:`Casualties`}),(0,d.jsx)(`span`,{className:`wc-stat-v`,children:c})]}),l&&(0,d.jsx)(`div`,{className:`wc-outcome`,children:l}),u&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}var Fe=e({referenceRegistry:()=>$}),$={factsheet:c(T),newsdigest:c(A),dictionary:c(ie),translation:c(ne),pronunciation:c(re),gloss:c(ae),scalefelt:c(oe),hearit:c(F),ipachart:c(V),scriptstroke:c(ue),phonicsword:c(fe),speciescard:c(_e),etymtree:c(w),hazardcard:c(k),termbase:c(ve),sizecompare:c(we),baseconversion:c(Ee),historicalperson:c(ke),onthisday:c(Z),countrycard:c(Ae),worldgrid:c(je),warconflict:c(Pe),posbreakdown:c(ge)};export{Fe as n,$ as t};
1
+ import{r as e}from"./chunk-BVpWp9h4.js";import{t}from"./react-BQSORdFI.js";import{t as n}from"./jsx-runtime-DaSxXjOY.js";import{ht as r}from"./index-DOpl5xzv.js";import{n as i}from"./icons-CHVz6kv_.js";import{t as a}from"./richText-BkxJhl9N.js";import{t as o}from"./safeImageUrl-CUkucDUu.js";import{r as s}from"./lib-BLt1wpw2.js";import{t as c}from"./registry-types-DMuK0vJ6.js";import{t as l}from"./safeCssColor-di93BXgG.js";var u=t(),d=n(),f=480,p=16,m=90,h=240,g=390,_=120,v=38,y=14;function b(e){let t=e.toLowerCase();return t.includes(`proto`)||t.includes(`pie`)||t.includes(`indo`)?`var(--text-muted)`:t.includes(`latin`)||t.includes(`greek`)||t.includes(`ancient`)?`var(--presence)`:t.includes(`french`)||t.includes(`romance`)||t.includes(`spanish`)||t.includes(`italian`)?`var(--insight)`:t.includes(`german`)||t.includes(`dutch`)||t.includes(`nordic`)||t.includes(`norse`)?`var(--warning)`:t.includes(`arabic`)||t.includes(`persian`)||t.includes(`sanskrit`)?`var(--danger)`:`var(--text-secondary)`}var x=18,S=22;function C(e,t){return e.length>t?e.slice(0,t-1).trimEnd()+`…`:e}function w({word:e,roots:t,descendants:n,note:r,footer:i,delay:o}){let{vbH:s,wordY:c,wordCY:l,rootBoxes:w,descBoxes:T}=(0,u.useMemo)(()=>{let e=t??[],r=n??[],i=e.length,a=r.length,o=Math.max(i,a,1)*52-y+p*2+12,s=Math.max(o,120),c=s/2,l=c-v/2,u=c-(i*52-(i>0?y:0))/2,d=e.map((e,t)=>({r:e,x:m-_/2,y:u+t*52,cy:u+t*52+v/2,color:b(e.lang)})),f=c-(a*52-(a>0?y:0))/2;return{vbH:s,wordY:l,wordCY:c,rootBoxes:d,descBoxes:r.map((e,t)=>({d:e,x:g-_/2,y:f+t*52,cy:f+t*52+v/2,color:b(e.lang??``)}))}},[t,n]),E=(e,t,n,r)=>{let i=(e+n)/2;return`M ${e.toFixed(1)},${t.toFixed(1)} C ${i.toFixed(1)},${t.toFixed(1)} ${i.toFixed(1)},${r.toFixed(1)} ${n.toFixed(1)},${r.toFixed(1)}`};return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(o??0)+`ms`},children:[(0,d.jsx)(`div`,{className:`et-wrap`,children:(0,d.jsxs)(`svg`,{className:`et-svg`,viewBox:`0 0 ${f} ${s}`,role:`img`,"aria-label":`Etymology of "${e}"`,preserveAspectRatio:`xMidYMid meet`,children:[w.map((e,t)=>(0,d.jsx)(`path`,{d:E(150,e.cy,h-_/2,l),fill:`none`,stroke:e.color,strokeWidth:`1.5`,opacity:`0.75`},`rc${t}`)),T.map((e,t)=>(0,d.jsx)(`path`,{d:E(300,l,g-_/2,e.cy),fill:`none`,stroke:e.color,strokeWidth:`1.5`,opacity:`0.75`},`dc${t}`)),w.map(({r:e,x:t,y:n,cy:r,color:i},a)=>{let o=e.lang+(e.gloss?` · ${e.gloss}`:``);return(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`rect`,{x:t,y:n,width:_,height:v,rx:6,className:`et-box`,style:{stroke:i}}),(0,d.jsxs)(`text`,{x:m,y:r-7,textAnchor:`middle`,className:`et-form`,children:[e.form.length>x&&(0,d.jsx)(`title`,{children:e.form}),C(e.form,x)]}),(0,d.jsxs)(`text`,{x:m,y:r+9,textAnchor:`middle`,className:`et-lang`,style:{fill:i},children:[o.length>S&&(0,d.jsx)(`title`,{children:o}),C(o,S)]})]},`r${a}`)}),(0,d.jsx)(`rect`,{x:h-_/2,y:c,width:_,height:v,rx:8,className:`et-word-box`}),(0,d.jsx)(`text`,{x:h,y:l+5,textAnchor:`middle`,className:`et-word`,children:e}),T.map(({d:e,x:t,y:n,cy:r,color:i},a)=>{let o=e.lang?`${e.lang}${e.gloss?` · ${e.gloss}`:``}`:e.gloss??``;return(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`rect`,{x:t,y:n,width:_,height:v,rx:6,className:`et-box`,style:{stroke:i}}),(0,d.jsxs)(`text`,{x:g,y:r-7,textAnchor:`middle`,className:`et-form`,children:[e.form.length>x&&(0,d.jsx)(`title`,{children:e.form}),C(e.form,x)]}),(0,d.jsxs)(`text`,{x:g,y:r+9,textAnchor:`middle`,className:`et-lang`,style:{fill:i},children:[o.length>S&&(0,d.jsx)(`title`,{children:o}),C(o,S)]})]},`d${a}`)}),(0,d.jsx)(`text`,{x:m,y:p-4,textAnchor:`middle`,className:`et-col-hdr`,children:`Roots`}),T.length>0&&(0,d.jsx)(`text`,{x:g,y:p-4,textAnchor:`middle`,className:`et-col-hdr`,children:`Descendants`})]})}),r&&(0,d.jsx)(`div`,{className:`et-note`,children:r}),i&&(0,d.jsx)(`div`,{className:`insight-summary`,dangerouslySetInnerHTML:a(i),style:{marginTop:12}})]})}function T({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,subject:r,tagline:o,facts:s,body:c,footer:l,delay:u}){let f=i[t]??i.doc,p=s??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`fs-subject`,children:r}),o&&(0,d.jsx)(`div`,{className:`fs-tagline`,children:o}),p.length>0&&(0,d.jsx)(`div`,{className:`fs-facts`,children:p.map((e,t)=>(0,d.jsxs)(`div`,{className:`fs-row`,children:[(0,d.jsx)(`span`,{className:`fs-label`,children:e.label}),(0,d.jsxs)(`span`,{className:`fs-value`,...t===0?{"data-mark":`underline`}:{},children:[e.value,e.note&&(0,d.jsxs)(`span`,{className:`fs-note`,children:[` `,e.note]})]})]},t))}),c&&(0,d.jsx)(`div`,{className:`fs-body`,dangerouslySetInnerHTML:a(c)}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}var E=r(),D={flammable:`Flammable`,corrosive:`Corrosive`,toxic:`Toxic`,irritant:`Irritant`,oxidizer:`Oxidizer`,healthHazard:`Health hazard`,environment:`Environment`,explosive:`Explosive`,compressedGas:`Compressed gas`},ee=`12,1.6 22.4,12 12,22.4 1.6,12`,te={flammable:()=>(0,d.jsx)(`path`,{className:`ghs-symbol-fill`,d:`M12 6c1.9 2.4 2.9 4.2 2.9 6a2.9 2.9 0 0 1-5.8 0c0-.7.15-1.3.45-1.85-.05.5.1.9.5 1.15-.15-1.7.3-3.4 1.95-5.3Z`}),corrosive:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`line`,{x1:`5.6`,y1:`13.4`,x2:`18.4`,y2:`13.4`}),(0,d.jsx)(`path`,{d:`M9 6.6v3.6q0 1.7-1.1 3.2`}),(0,d.jsx)(`path`,{d:`M15 6.6v3.6q0 1.7 1.1 3.2`}),(0,d.jsx)(`path`,{d:`M7.6 15.4q.6 1.2 0 2.4`}),(0,d.jsx)(`path`,{d:`M16.4 15.4q.6 1.4-.2 2.6`})]}),toxic:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`circle`,{cx:`12`,cy:`10.1`,r:`3.15`}),(0,d.jsx)(`circle`,{className:`ghs-symbol-fill`,cx:`10.6`,cy:`9.8`,r:`0.55`}),(0,d.jsx)(`circle`,{className:`ghs-symbol-fill`,cx:`13.4`,cy:`9.8`,r:`0.55`}),(0,d.jsx)(`path`,{d:`M10.6 12.3q1.4 1 2.8 0`}),(0,d.jsx)(`path`,{d:`M8.1 17.1 15.9 13.7`}),(0,d.jsx)(`path`,{d:`M8.1 13.7 15.9 17.1`})]}),irritant:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol-fill`,children:[(0,d.jsx)(`rect`,{x:`11.05`,y:`6.4`,width:`1.9`,height:`6.6`,rx:`0.95`}),(0,d.jsx)(`circle`,{cx:`12`,cy:`15.9`,r:`1.1`})]}),oxidizer:()=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`circle`,{className:`ghs-symbol`,cx:`12`,cy:`15.1`,r:`3.05`}),(0,d.jsx)(`path`,{className:`ghs-symbol-fill`,d:`M12 6c1.5 2 2.3 3.5 2.3 5a2.3 2.3 0 0 1-4.6 0c0-.55.1-1 .3-1.45-.05.4.1.7.4.9-.1-1.35.35-2.7 1.6-4.45Z`})]}),healthHazard:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`circle`,{cx:`12`,cy:`7.5`,r:`1.75`}),(0,d.jsx)(`path`,{d:`M8.3 17c.1-3.15 1.7-5.1 3.7-5.1s3.6 1.95 3.7 5.1`}),(0,d.jsx)(`path`,{d:`M12 12.6v3.4`}),(0,d.jsx)(`path`,{d:`M10.5 14.3h3`}),(0,d.jsx)(`path`,{d:`M10.8 13.15l2.4 2.4`}),(0,d.jsx)(`path`,{d:`M13.2 13.15l-2.4 2.4`})]}),environment:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`path`,{d:`M8.7 7.4v6.2`}),(0,d.jsx)(`path`,{d:`M8.7 9.7 7 8.2`}),(0,d.jsx)(`path`,{d:`M8.7 8.9l1.9-1.6`}),(0,d.jsx)(`path`,{d:`M8.7 11.7 7 13`}),(0,d.jsx)(`path`,{d:`M6 15.9c1.35.85 2.85.85 4.2 0`}),(0,d.jsx)(`path`,{d:`M13.6 15.9c1.35.85 2.85.85 4.2 0`}),(0,d.jsx)(`path`,{className:`ghs-symbol-fill`,d:`M14.9 12.6c1.7-.35 3.05.2 3.7 1.15-.7.95-2.1 1.5-3.7 1.15.35-.5.35-1.8 0-2.3Z`})]}),explosive:()=>(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`circle`,{className:`ghs-symbol-fill`,cx:`12`,cy:`12`,r:`1.55`}),(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`path`,{d:`M12 6.5v2.3`}),(0,d.jsx)(`path`,{d:`M12 15.2v2.3`}),(0,d.jsx)(`path`,{d:`M6.5 12h2.3`}),(0,d.jsx)(`path`,{d:`M15.2 12h2.3`}),(0,d.jsx)(`path`,{d:`M8.3 8.3l1.6 1.6`}),(0,d.jsx)(`path`,{d:`M14.1 14.1l1.6 1.6`}),(0,d.jsx)(`path`,{d:`M15.7 8.3l-1.6 1.6`}),(0,d.jsx)(`path`,{d:`M9.9 14.1l-1.6 1.6`})]})]}),compressedGas:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`rect`,{x:`9.3`,y:`9.1`,width:`5.4`,height:`8.4`,rx:`1.3`}),(0,d.jsx)(`rect`,{x:`10.55`,y:`6.35`,width:`2.9`,height:`2.4`,rx:`0.5`}),(0,d.jsx)(`line`,{x1:`9.6`,y1:`12.6`,x2:`14.4`,y2:`12.6`})]})};function O(e){let t=(0,E.c)(7),{kind:n,className:r}=e,i=te[n],a=D[n],o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,d.jsx)(`polygon`,{className:`ghs-diamond`,points:ee}),t[0]=o):o=t[0];let s;t[1]===i?s=t[2]:(s=(0,d.jsx)(i,{}),t[1]=i,t[2]=s);let c;return t[3]!==r||t[4]!==a||t[5]!==s?(c=(0,d.jsxs)(`svg`,{viewBox:`0 0 24 24`,role:`img`,"aria-label":a,className:r,children:[o,s]}),t[3]=r,t[4]=a,t[5]=s,t[6]=c):c=t[6],c}function k({title:e,icon:t=`alert`,iconColor:n=`var(--danger)`,cas:r,signalWord:o,pictograms:s,hazards:c,precautions:l,footer:u,delay:f}){let p=i[t]??i.alert,m=o===`Warning`,h=m?`var(--warning)`:`var(--danger)`,g=(s??[]).filter(e=>e in D),_=c??[],v=l??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,d.jsxs)(`div`,{className:`hc-cas`,children:[`CAS `,r]}),(0,d.jsxs)(`div`,{className:`hc-signal`,style:{"--hc-c":h},role:`status`,children:[(0,d.jsx)(`span`,{className:`hc-signal-icon`,children:(0,d.jsx)(i.alert,{})}),(0,d.jsx)(`span`,{className:`hc-signal-word`,children:m?`Warning`:`Danger`})]}),g.length>0&&(0,d.jsx)(`div`,{className:`hc-pictograms`,children:g.map((e,t)=>(0,d.jsxs)(`div`,{className:`hc-pic m-stagger-item m-scale-in`,style:{"--i":t},children:[(0,d.jsx)(O,{kind:e,className:`hc-pic-glyph`}),(0,d.jsx)(`span`,{className:`hc-pic-label`,children:D[e]})]},t))}),_.length>0&&(0,d.jsxs)(`div`,{className:`hc-section`,children:[(0,d.jsx)(`div`,{className:`hc-section-label`,children:`Hazards`}),(0,d.jsx)(`div`,{className:`hc-codes`,children:_.map((e,t)=>(0,d.jsxs)(`div`,{className:`hc-code-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,d.jsx)(`span`,{className:`hc-code`,children:e.code}),(0,d.jsx)(`span`,{className:`hc-code-text`,children:e.text})]},t))})]}),v.length>0&&(0,d.jsxs)(`div`,{className:`hc-section`,children:[(0,d.jsx)(`div`,{className:`hc-section-label`,children:`Precautions`}),(0,d.jsx)(`div`,{className:`hc-codes`,children:v.map((e,t)=>(0,d.jsxs)(`div`,{className:`hc-code-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,d.jsx)(`span`,{className:`hc-code`,children:e.code}),(0,d.jsx)(`span`,{className:`hc-code-text`,children:e.text})]},t))})]}),u&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}function A({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,topic:r,asOf:o,items:s,footer:c,delay:l}){let u=i[t]??i.globe,f=s??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`nd-meta`,children:[r&&(0,d.jsx)(`span`,{className:`nd-topic`,children:r}),(0,d.jsx)(`span`,{className:`nd-asof`,children:o})]}),(0,d.jsx)(`div`,{className:`nd-items`,children:f.map((e,t)=>(0,d.jsxs)(`div`,{className:`nd-item`,children:[(0,d.jsx)(`div`,{className:`nd-headline`,...t===0?{"data-mark":`underline`}:{},children:e.headline}),(e.source||e.time||e.category)&&(0,d.jsxs)(`div`,{className:`nd-item-meta`,children:[e.source&&(0,d.jsx)(`span`,{className:`nd-source`,children:e.source}),e.time&&(0,d.jsx)(`span`,{className:`nd-time`,children:e.time}),e.category&&(0,d.jsx)(`span`,{className:`nd-cat`,children:e.category})]}),e.summary&&(0,d.jsx)(`div`,{className:`nd-summary`,children:e.summary})]},t))}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}function ne({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,fromLang:r,toLang:o,text:c,result:l,pairs:u,footer:f,delay:p}){let m=i[t]??i.globe,h=u??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`tl-langs`,children:[(0,d.jsx)(`span`,{className:`tl-from`,children:r}),(0,d.jsx)(`span`,{className:`tl-arrow`,children:`→`}),(0,d.jsx)(`span`,{className:`tl-to`,children:o})]}),(0,d.jsxs)(`div`,{className:`tl-pair`,children:[(0,d.jsx)(`div`,{className:`tl-source`,children:(0,d.jsx)(`div`,{className:`tl-text`,style:{color:`var(--text-secondary)`},children:c})}),(0,d.jsx)(`div`,{className:`tl-result`,children:(0,d.jsx)(`div`,{className:`tl-text`,style:{fontWeight:600},"data-mark":`underline`,children:l})})]}),(0,d.jsx)(`div`,{style:{display:`flex`,justifyContent:`flex-end`,marginTop:6},children:(0,d.jsx)(s,{text:l,label:`Copy ${o} translation`})}),h.length>0&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`div`,{style:{fontSize:`var(--fs-xs, 11px)`,fontWeight:700,color:`var(--text-muted)`,textTransform:`uppercase`,letterSpacing:`0.07em`,marginTop:14,marginBottom:4},children:`Breakdown`}),(0,d.jsx)(`div`,{className:`tl-breakdowns`,children:h.map((e,t)=>(0,d.jsxs)(`div`,{className:`tl-bp`,children:[(0,d.jsx)(`span`,{className:`tl-bp-orig`,children:e.original}),(0,d.jsxs)(`span`,{className:`tl-bp-trans`,children:[e.translated,e.note&&(0,d.jsx)(`span`,{className:`tl-bp-note`,style:{display:`block`,marginTop:2},children:e.note})]})]},t))})]}),f&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}function re({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,word:r,ipa:o,syllables:s,tips:c,footer:l,delay:u}){let f=i[t]??i.doc,p=c??[],m=(()=>{if(!s)return[];let e=s.split(`·`);if(!o)return e.map(e=>({text:e,stressed:!1}));let t=(()=>{let t=o.indexOf(`ˈ`);if(t===-1)return-1;let n=o.replace(/[/[\]]/g,``),r=t/Math.max(n.length,1);return Math.min(Math.round(r*e.length),e.length-1)})();return e.map((e,n)=>({text:e,stressed:n===t}))})();return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`pr-word`,children:r}),o&&(0,d.jsx)(`div`,{className:`pr-ipa`,style:{display:`inline-block`,fontFamily:`var(--font-mono, monospace)`,fontStyle:`normal`,background:`var(--grid-line)`,borderRadius:`var(--r-sm, 4px)`,padding:`2px 8px`,marginTop:6,fontSize:`var(--fs-sm, 14px)`,color:`var(--text-primary)`,letterSpacing:`0.04em`},children:o}),m.length>0&&(0,d.jsx)(`div`,{className:`pr-syllables`,children:m.map((e,t)=>(0,d.jsxs)(`span`,{children:[t>0&&(0,d.jsx)(`span`,{"aria-hidden":`true`,style:{color:`var(--text-muted)`},children:`·`}),(0,d.jsx)(`span`,{style:e.stressed?{fontWeight:800,color:`var(--presence)`}:{fontWeight:400,color:`var(--text-secondary)`},...e.stressed?{"data-mark":`underline`}:{},children:e.text})]},t))}),p.length>0&&(0,d.jsx)(`div`,{className:`pr-tips`,children:p.map((e,t)=>(0,d.jsx)(`div`,{className:`pr-tip`,children:e},t))}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function ie({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,word:r,phonetic:o,senses:s,etymology:c,footer:l,delay:u}){let f=i[t]??i.doc,p=s??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`dc-word`,children:r}),o&&(0,d.jsx)(`div`,{className:`dc-phonetic`,style:{fontFamily:`monospace`,fontStyle:`normal`},children:o}),p.length>0&&(0,d.jsx)(`ol`,{className:`dc-senses`,style:{listStyle:`none`,padding:0,margin:0},children:p.map((e,t)=>(0,d.jsxs)(`li`,{className:`dc-sense`,children:[(0,d.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8,marginBottom:4},children:[(0,d.jsxs)(`span`,{style:{fontSize:`var(--fs-xs, 11px)`,fontWeight:700,color:`var(--text-faint)`,minWidth:`1.4em`},children:[t+1,`.`]}),(0,d.jsx)(`span`,{className:`dc-pos`,children:e.pos})]}),(0,d.jsx)(`div`,{className:`dc-def`,style:{paddingLeft:`calc(1.4em + 8px)`},...t===0?{"data-mark":`underline`}:{},children:e.definition}),e.example&&(0,d.jsx)(`div`,{className:`dc-example`,style:{marginLeft:`calc(1.4em + 8px)`},children:e.example}),(e.synonyms??[]).length>0&&(0,d.jsxs)(`div`,{className:`dc-synonyms`,style:{display:`flex`,flexWrap:`wrap`,alignItems:`center`,gap:4,marginLeft:`calc(1.4em + 8px)`},children:[(0,d.jsx)(`span`,{style:{color:`var(--text-faint)`,marginRight:2},children:`syn.`}),(e.synonyms??[]).map((e,t)=>(0,d.jsx)(`span`,{style:{fontSize:`var(--fs-xs, 11px)`,padding:`1px 7px`,borderRadius:999,background:`var(--track)`,color:`var(--text-secondary)`,lineHeight:1.7},children:e},t))]})]},t))}),c&&(0,d.jsxs)(`div`,{className:`dc-etymology`,children:[(0,d.jsx)(`span`,{style:{fontWeight:600,fontStyle:`normal`,color:`var(--text-muted)`},children:`Etymology `}),c]}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function ae({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,domain:r,entries:o,footer:s,delay:c}){let l=i[t]??i.doc,f=(0,u.useMemo)(()=>[...o??[]].sort((e,t)=>e.term.localeCompare(t.term,void 0,{sensitivity:`base`})),[o]);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,d.jsx)(`div`,{className:`gl-domain`,children:r}),(0,d.jsx)(`div`,{className:`gl-entries`,children:f.map((e,t)=>{let n=e.term.charAt(0).toUpperCase();return(0,d.jsxs)(`div`,{children:[n!==(t===0?null:f[t-1].term.charAt(0).toUpperCase())&&(0,d.jsx)(`div`,{className:`gl-letter-divider`,"aria-hidden":`true`,children:n}),(0,d.jsxs)(`div`,{className:`gl-entry`,children:[(0,d.jsx)(`div`,{className:`gl-term`,children:e.term}),(0,d.jsx)(`div`,{className:`gl-def`,children:e.definition}),e.see&&(0,d.jsxs)(`div`,{className:`gl-see`,children:[`See also: `,(0,d.jsx)(`span`,{style:{fontStyle:`italic`},children:e.see})]})]})]},t)})}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function oe({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,value:r,unit:o,comparisons:s,footer:c,delay:l}){let u=i[t]??i.layers,f=s??[],p=e=>{let t=typeof e.howMany==`number`?e.howMany:Number(String(e.howMany).trim());return Number.isFinite(t)&&t>0?t:null},m=f.reduce((e,t)=>{let n=p(t);return n!==null&&n>e?n:e},0);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`scf-figure`,"data-mark":`underline`,children:[(0,d.jsx)(`span`,{className:`scf-value`,children:r}),o&&(0,d.jsx)(`span`,{className:`scf-unit`,children:o})]}),f.length>0&&(0,d.jsx)(`div`,{className:`scf-rows`,children:f.map((e,t)=>{let n=p(e),r=n!==null&&m>0?Math.max(n/m*100,4):0;return(0,d.jsxs)(`div`,{className:`scf-row`,children:[(0,d.jsxs)(`div`,{className:`scf-line`,children:[(0,d.jsx)(`span`,{className:`scf-count`,children:e.howMany}),(0,d.jsx)(`span`,{className:`scf-to`,children:e.to})]}),r>0&&(0,d.jsx)(`div`,{className:`scf-track`,"aria-hidden":`true`,children:(0,d.jsx)(`div`,{className:`scf-bar`,style:{width:r+`%`}})}),e.note&&(0,d.jsx)(`div`,{className:`scf-note`,children:e.note})]},t)})}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var j=typeof window<`u`&&`speechSynthesis`in window&&typeof window.SpeechSynthesisUtterance==`function`,M=typeof window<`u`?window.AudioContext??window.webkitAudioContext:void 0,se={C:0,"C#":1,DB:1,D:2,"D#":3,EB:3,E:4,FB:4,F:5,"E#":5,"F#":6,GB:6,G:7,"G#":8,AB:8,A:9,"A#":10,BB:10,B:11,CB:11};function ce(e){let t=/^([A-Ga-g])([#b]?)(-?\d{1,2})$/.exec(e.trim());if(!t)return null;let n=se[t[1].toUpperCase()+(t[2]===`#`?`#`:t[2]===`b`?`B`:``)];return n===void 0?null:440*2**((n+(Number(t[3])+1)*12-69)/12)}function N(e){if(typeof e==`number`)return Number.isFinite(e)?e:null;let t=e.trim(),n=Number(t);return t!==``&&Number.isFinite(n)?n:ce(t)}var P={word:`chat`,note:`speaker`,tone:`speaker`};function F({title:e,icon:t=`speaker`,iconColor:n=`var(--presence)`,items:r,footer:o,delay:s}){let c=i[t]??i.speaker,l=r??[],[f,p]=(0,u.useState)(null),m=(0,u.useRef)(null),h=(0,u.useRef)(null),g=(0,u.useCallback)(()=>{if(h.current!==null&&(clearTimeout(h.current),h.current=null),m.current){let e=m.current;m.current=null,e.close().catch(()=>{})}j&&window.speechSynthesis.cancel()},[]);(0,u.useEffect)(()=>g,[g]);let _=(0,u.useCallback)((e,t)=>{if(!j)return;let n=new window.SpeechSynthesisUtterance(e);n.rate=.92;let r=()=>p(e=>e===t?null:e);n.onend=r,n.onerror=r,window.speechSynthesis.speak(n),p(t)},[]),v=(0,u.useCallback)((e,t)=>{if(!M)return;let n=new M;m.current=n;let r=n.currentTime,i=.6,a=n.createOscillator();a.type=`sine`,a.frequency.setValueAtTime(e,r);let o=n.createGain();o.gain.setValueAtTime(1e-4,r),o.gain.exponentialRampToValueAtTime(.22,r+.04),o.gain.exponentialRampToValueAtTime(1e-4,r+i),a.connect(o).connect(n.destination),a.start(r),a.stop(r+i),p(t),a.onended=()=>{p(e=>e===t?null:e),m.current===n&&(m.current=null,n.close().catch(()=>{}))},h.current=setTimeout(()=>{m.current===n&&(m.current=null,n.close().catch(()=>{}),p(e=>e===t?null:e))},.75*1e3)},[]),y=(0,u.useCallback)((e,t)=>{if(g(),e.kind===`word`){_(String(e.value),t);return}let n=N(e.value);n===null||n<=0||v(n,t)},[g,_,v]),b=e=>e.kind===`word`?j:!!M&&N(e.value)!==null;return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`ul`,{className:`hri-rows`,children:l.map((e,t)=>{let n=b(e),r=f===t,a=i[P[e.kind]]??i.speaker,o=e.kind===`word`?`Speech synthesis is unavailable in this browser`:`Audio playback is unavailable in this browser`;return(0,d.jsxs)(`li`,{className:`hri-row`,"data-playing":r||void 0,children:[(0,d.jsx)(`button`,{type:`button`,className:`hri-play`,onClick:()=>y(e,t),disabled:!n,title:n?`Play ${e.label}`:o,"aria-label":n?`Play ${e.label}`:`${e.label} — ${o}`,children:r?(0,d.jsxs)(`span`,{className:`hri-wave`,"aria-hidden":`true`,children:[(0,d.jsx)(`span`,{}),(0,d.jsx)(`span`,{}),(0,d.jsx)(`span`,{})]}):(0,d.jsx)(i.play,{className:`ic hri-play-ic`,style:{width:13,height:13}})}),(0,d.jsxs)(`div`,{className:`hri-body`,children:[(0,d.jsx)(`div`,{className:`hri-label`,children:e.label}),e.sub&&(0,d.jsx)(`div`,{className:`hri-sub`,children:e.sub})]}),(0,d.jsxs)(`span`,{className:`hri-kind`,children:[(0,d.jsx)(a,{className:`ic hri-kind-ic`,style:{width:12,height:12}}),e.kind]})]},t)})}),o&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var I=[{s:`i`,back:0,high:0},{s:`y`,back:0,high:0,rounded:!0},{s:`ɨ`,back:.5,high:0},{s:`u`,back:1,high:0,rounded:!0},{s:`ɪ`,back:.18,high:.18},{s:`ʊ`,back:.82,high:.18,rounded:!0},{s:`e`,back:0,high:.34},{s:`ø`,back:0,high:.34,rounded:!0},{s:`ə`,back:.5,high:.5},{s:`o`,back:1,high:.34,rounded:!0},{s:`ɛ`,back:.08,high:.66},{s:`ɜ`,back:.5,high:.66},{s:`ʌ`,back:.78,high:.66},{s:`ɔ`,back:1,high:.66,rounded:!0},{s:`a`,back:.06,high:1},{s:`æ`,back:.16,high:.84},{s:`ɑ`,back:.9,high:1},{s:`ɒ`,back:1,high:1,rounded:!0}],L=[`Plosive`,`Nasal`,`Fricative`,`Approx.`,`Lateral`],R=[`Bilab.`,`Labiod.`,`Dental`,`Alveolar`,`Postalv.`,`Velar`,`Glottal`],z={"Plosive|Bilab.":[`p`,`b`],"Plosive|Alveolar":[`t`,`d`],"Plosive|Velar":[`k`,`g`],"Plosive|Glottal":[`ʔ`,``],"Nasal|Bilab.":[``,`m`],"Nasal|Alveolar":[``,`n`],"Nasal|Velar":[``,`ŋ`],"Fricative|Labiod.":[`f`,`v`],"Fricative|Dental":[`θ`,`ð`],"Fricative|Alveolar":[`s`,`z`],"Fricative|Postalv.":[`ʃ`,`ʒ`],"Fricative|Glottal":[`h`,``],"Approx.|Postalv.":[``,`ɹ`],"Approx.|Velar":[``,`w`],"Lateral|Alveolar":[``,`l`]};function B(e){return e.replace(/[ː/[\].ˈˌ]/g,``).trim()}function V({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,kind:r=`vowels`,highlight:o,examples:s,caption:c,footer:l,delay:u}){let f=i[t]??i.globe,p=s??[],m=new Set((o??[]).map(B)),h=e=>m.has(B(e));return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),r===`consonants`?(0,d.jsx)(W,{isHot:h}):(0,d.jsx)(H,{isHot:h}),c&&(0,d.jsx)(`div`,{className:`ipa-caption`,children:c}),p.length>0&&(0,d.jsx)(`ul`,{className:`ipa-examples`,children:p.map((e,t)=>(0,d.jsxs)(`li`,{className:`ipa-ex`,...h(e.symbol)?{"data-hot":``}:{},children:[(0,d.jsx)(`span`,{className:`ipa-ex-sym`,children:e.symbol}),(0,d.jsx)(`span`,{className:`ipa-ex-word`,children:e.word})]},t))}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function H(e){let t=(0,E.c)(31),{isHot:n}=e,r,i,a,o,s,c,l,u,f,p,m,h;if(t[0]!==n){let e={x:12,y:14},g={x:92,y:14},_={x:34,y:86},v={x:80,y:86},y=U,b=(t,n)=>{let r=y(e.x,_.x,n),i=y(g.x,v.x,n),a=y(e.y,_.y,n);return{x:y(r,i,t),y:a}};o=`ipa-quad`,r=`0 0 104 100`,s=`100%`,c=`img`,l=`IPA vowel quadrilateral`;let x=`${e.x},${e.y} ${g.x},${g.y} ${v.x},${v.y} ${_.x},${_.y}`;t[13]===x?u=t[14]:(u=(0,d.jsx)(`polygon`,{points:x,fill:`none`,stroke:`var(--line-strong)`,strokeWidth:.8}),t[13]=x,t[14]=u),f=[.34,.5,.66].map((e,t)=>{let n=b(0,e),r=b(1,e);return(0,d.jsx)(`line`,{x1:n.x,y1:n.y,x2:r.x,y2:r.y,stroke:`var(--grid-line)`,strokeWidth:.5},t)}),p=(0,d.jsx)(`line`,{x1:b(.5,0).x,y1:b(.5,0).y,x2:b(.5,1).x,y2:b(.5,1).y,stroke:`var(--grid-line)`,strokeWidth:.5}),m=(0,d.jsx)(`text`,{x:e.x,y:9,className:`ipa-axis`,textAnchor:`start`,children:`Front`}),h=(0,d.jsx)(`text`,{x:g.x,y:9,className:`ipa-axis`,textAnchor:`end`,children:`Back`}),t[15]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,d.jsx)(`text`,{className:`ipa-axis`,transform:`translate(6, 50) rotate(-90)`,textAnchor:`middle`,children:`Close → Open`}),t[15]=i):i=t[15],a=I.map(e=>{let t=b(e.back,e.high),r=e.rounded?3:0,i=n(e.s);return(0,d.jsxs)(`g`,{transform:`translate(${t.x+r}, ${t.y})`,children:[i&&(0,d.jsx)(`circle`,{r:4.4,className:`ipa-vowel-halo`}),(0,d.jsx)(`text`,{className:`ipa-vowel`,textAnchor:`middle`,dominantBaseline:`central`,...i?{"data-hot":``}:{},children:e.s})]},e.s)}),t[0]=n,t[1]=r,t[2]=i,t[3]=a,t[4]=o,t[5]=s,t[6]=c,t[7]=l,t[8]=u,t[9]=f,t[10]=p,t[11]=m,t[12]=h}else r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],f=t[9],p=t[10],m=t[11],h=t[12];let g;t[16]!==r||t[17]!==i||t[18]!==a||t[19]!==s||t[20]!==c||t[21]!==l||t[22]!==u||t[23]!==f||t[24]!==p||t[25]!==m||t[26]!==h?(g=(0,d.jsxs)(`svg`,{viewBox:r,width:s,role:c,"aria-label":l,children:[u,f,p,m,h,i,a]}),t[16]=r,t[17]=i,t[18]=a,t[19]=s,t[20]=c,t[21]=l,t[22]=u,t[23]=f,t[24]=p,t[25]=m,t[26]=h,t[27]=g):g=t[27];let _;return t[28]!==o||t[29]!==g?(_=(0,d.jsx)(`div`,{className:o,children:g}),t[28]=o,t[29]=g,t[30]=_):_=t[30],_}function U(e,t,n){return e+(t-e)*n}function W(e){let t=(0,E.c)(7),{isHot:n}=e,r;t[0]===n?r=t[1]:(r=e=>{let{s:t}=e;return t?(0,d.jsx)(`span`,{className:`ipa-cgrid-sym`,...n(t)?{"data-hot":``}:{},children:t}):(0,d.jsx)(`span`,{className:`ipa-cgrid-empty`,children:`·`})},t[0]=n,t[1]=r);let i=r,a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{children:[(0,d.jsx)(`th`,{className:`ipa-cgrid-corner`}),R.map(G)]})}),t[2]=a):a=t[2];let o;t[3]===i?o=t[4]:(o=L.map(e=>(0,d.jsxs)(`tr`,{children:[(0,d.jsx)(`th`,{className:`ipa-cgrid-manner`,scope:`row`,children:e}),R.map(t=>{let n=z[`${e}|${t}`];return(0,d.jsx)(`td`,{className:`ipa-cgrid-cell`,children:n?(0,d.jsxs)(`span`,{className:`ipa-cgrid-pair`,children:[(0,d.jsx)(i,{s:n[0]}),(0,d.jsx)(i,{s:n[1]})]}):(0,d.jsx)(`span`,{className:`ipa-cgrid-na`,"aria-hidden":`true`})},t)})]},e)),t[3]=i,t[4]=o);let s;return t[5]===o?s=t[6]:(s=(0,d.jsx)(`div`,{className:`ipa-cgrid-wrap`,children:(0,d.jsxs)(`table`,{className:`ipa-cgrid`,children:[a,(0,d.jsx)(`tbody`,{children:o})]})}),t[5]=o,t[6]=s),s}function G(e){return(0,d.jsx)(`th`,{className:`ipa-cgrid-place`,scope:`col`,children:e},e)}function le(e){let t=e.match(/-?\d*\.?\d+/g);if(!t||t.length<2)return null;let n=Number(t[0]),r=Number(t[1]);return!Number.isFinite(n)||!Number.isFinite(r)?null:{x:n,y:r}}function ue({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,glyph:r,strokes:o,grid:s=`mi`,romanization:c,meaning:l,caption:u,footer:f,delay:p}){let m=i[t]??i.edit,h=[...o??[]].sort((e,t)=>e.order-t.order),g=h.some(e=>e.path&&e.path.trim().length>0);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`ss-stage`,children:[(0,d.jsx)(`div`,{className:`ss-square`,children:(0,d.jsxs)(`svg`,{viewBox:`0 0 100 100`,width:`100%`,role:`img`,"aria-label":`Writing guide for ${r}`,children:[(0,d.jsx)(`rect`,{x:1,y:1,width:98,height:98,rx:2,fill:`none`,stroke:`var(--line-strong)`,strokeWidth:.8}),s!==`none`&&(0,d.jsxs)(`g`,{stroke:`var(--grid-line)`,strokeWidth:.6,strokeDasharray:`3 2.5`,children:[(0,d.jsx)(`line`,{x1:50,y1:1,x2:50,y2:99}),(0,d.jsx)(`line`,{x1:1,y1:50,x2:99,y2:50}),s===`mi`&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`line`,{x1:1,y1:1,x2:99,y2:99}),(0,d.jsx)(`line`,{x1:99,y1:1,x2:1,y2:99})]})]}),g?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`text`,{x:50,y:54,className:`ss-ghost`,textAnchor:`middle`,dominantBaseline:`central`,children:r}),h.map((e,t)=>e.path?(0,d.jsx)(`path`,{d:e.path,className:`ss-stroke`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,style:{"--i":t}},`p${t}`):null),h.map((e,t)=>{let n=e.path?le(e.path):null;return n?(0,d.jsxs)(`g`,{transform:`translate(${n.x}, ${n.y})`,children:[(0,d.jsx)(`circle`,{r:4.6,className:`ss-badge-bg`}),(0,d.jsx)(`text`,{className:`ss-badge-num`,textAnchor:`middle`,dominantBaseline:`central`,children:e.order})]},`b${t}`):null})]}):(0,d.jsx)(`text`,{x:50,y:54,className:`ss-glyph`,textAnchor:`middle`,dominantBaseline:`central`,children:r})]})}),(0,d.jsxs)(`div`,{className:`ss-meta`,children:[(0,d.jsx)(`div`,{className:`ss-glyph-sm`,"aria-hidden":`true`,children:r}),c&&(0,d.jsxs)(`div`,{className:`ss-romanization`,children:[(0,d.jsx)(`span`,{className:`ss-meta-k`,children:`Reading`}),(0,d.jsx)(`span`,{className:`ss-meta-v`,children:c})]}),l&&(0,d.jsxs)(`div`,{className:`ss-meaning`,children:[(0,d.jsx)(`span`,{className:`ss-meta-k`,children:`Meaning`}),(0,d.jsx)(`span`,{className:`ss-meta-v`,children:l})]}),(0,d.jsxs)(`div`,{className:`ss-count`,children:[h.length,` `,h.length===1?`stroke`:`strokes`]})]})]}),h.length>0&&(0,d.jsx)(`ol`,{className:`ss-steps`,children:h.map((e,t)=>(0,d.jsxs)(`li`,{className:`ss-step`,children:[(0,d.jsx)(`span`,{className:`ss-step-num`,children:e.order}),(0,d.jsx)(`span`,{className:`ss-step-hint`,children:e.hint??`Stroke ${e.order}`})]},t))}),u&&(0,d.jsx)(`div`,{className:`ipa-caption`,children:u}),f&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}var K=typeof window<`u`&&`speechSynthesis`in window&&typeof window.SpeechSynthesisUtterance==`function`,de=`silent`;function fe({title:e,icon:t=`captions`,iconColor:n=`var(--presence)`,word:r,chunks:o,rhymes:s,caption:c,footer:l,delay:f}){let p=i[t]??i.captions,m=(o??[]).filter(e=>e&&e.text),h=(s??[]).filter(Boolean),[g,_]=(0,u.useState)(null);(0,u.useEffect)(()=>()=>{K&&window.speechSynthesis.cancel()},[]);let v=(0,u.useCallback)((e,t,n)=>{if(!K)return;window.speechSynthesis.cancel();let r=new window.SpeechSynthesisUtterance(e);r.rate=n;let i=()=>_(e=>e===t?null:e);r.onend=i,r.onerror=i,window.speechSynthesis.speak(r),_(t)},[]);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f??0)+`ms`},children:[e&&(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`pw-word`,role:`group`,"aria-label":`Sound out ${r}`,children:m.map((e,t)=>{let n=e.kind??`grapheme`,r=n===de;return(0,d.jsxs)(`button`,{type:`button`,className:`pw-chunk`,"data-kind":n,"data-playing":g===t||void 0,disabled:r||!K,onClick:()=>v(e.text,t,.62),title:r?`"${e.text}" is silent`:K?`Hear "${e.text}"`:`"${e.text}"`,"aria-label":r?`${e.text}, silent`:`Hear ${e.text}${e.sound?`, ${e.sound}`:``}`,children:[(0,d.jsx)(`span`,{className:`pw-chunk-text`,children:e.text}),e.sound&&(0,d.jsx)(`span`,{className:`pw-chunk-sound`,children:e.sound})]},t)})}),(0,d.jsxs)(`button`,{type:`button`,className:`pw-blend`,"data-playing":g===-1||void 0,disabled:!K,onClick:()=>v(r,-1,.92),title:K?`Hear "${r}"`:r,"aria-label":K?`Hear the whole word, ${r}`:r,children:[K?g===-1?(0,d.jsxs)(`span`,{className:`pw-wave`,"aria-hidden":`true`,children:[(0,d.jsx)(`span`,{}),(0,d.jsx)(`span`,{}),(0,d.jsx)(`span`,{})]}):(0,d.jsx)(i.play,{className:`ic pw-blend-ic`,style:{width:12,height:12}}):null,(0,d.jsx)(`span`,{className:`pw-blend-word`,children:r})]}),c&&(0,d.jsx)(`div`,{className:`ipa-caption`,children:c}),h.length>0&&(0,d.jsxs)(`div`,{className:`pw-rhymes`,children:[(0,d.jsx)(`span`,{className:`pw-rhymes-k`,children:`Rhymes with`}),(0,d.jsx)(`ul`,{className:`pw-rhyme-list`,children:h.map((e,t)=>(0,d.jsx)(`li`,{className:`pw-rhyme`,children:e},t))})]}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}var pe=[`noun`,`verb`,`adjective`,`adverb`,`pronoun`,`preposition`,`conjunction`,`determiner`,`interjection`],q={noun:`n.`,verb:`v.`,adjective:`adj.`,adverb:`adv.`,pronoun:`pron.`,preposition:`prep.`,conjunction:`conj.`,determiner:`det.`,interjection:`interj.`},me=e=>typeof e==`string`&&Object.prototype.hasOwnProperty.call(q,e),he=/^[¿¡([{«‹“‘]+$/;function ge({title:e,icon:t=`captions`,iconColor:n=`var(--presence)`,tokens:r,sentence:o,translation:s,footer:c,delay:l}){let f=i[t]??i.captions,{groups:p,legend:m,notes:h}=(0,u.useMemo)(()=>{let e=Array.isArray(r)?r:[],t=0,n=[];for(let r of e){if(typeof r==`string`){r.trim()&&n.push({word:r});continue}if(!r||typeof r!=`object`)continue;let e=r;if(typeof e.word!=`string`||!e.word.trim())continue;if(e.pos===`punctuation`){n.push({word:e.word,punct:!0});continue}let i=typeof e.note==`string`&&e.note.trim()?e.note:void 0;n.push({word:e.word,pos:me(e.pos)?e.pos:void 0,note:i,noteIdx:i?++t:void 0})}let i=[],a=[];for(let e of n)if(e.punct){let t=i[i.length-1];t&&!he.test(e.word)?t.trail.push(e):a.push(e)}else i.push({lead:a,word:e,trail:[]}),a=[];if(a.length){let e=i[i.length-1];e?e.trail.push(...a):i.push({lead:a,trail:[]})}let o=new Map;for(let e of n)e.pos&&o.set(e.pos,(o.get(e.pos)??0)+1);return{groups:i,legend:pe.filter(e=>o.has(e)).map(e=>({pos:e,count:o.get(e)??0})),notes:n.filter(e=>e.noteIdx!==void 0)}},[r]),[g,_]=(0,u.useState)(null),v=g&&m.some(e=>e.pos===g)?g:null,y=(e,t)=>(0,d.jsx)(`span`,{className:`psb-punct`,"data-dim":!!v||void 0,children:e.word},t);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),p.length>0?(0,d.jsx)(`div`,{className:`psb-flow`,children:p.map((e,t)=>(0,d.jsxs)(`span`,{className:`psb-group`,children:[e.lead.map((e,t)=>y(e,`l${t}`)),e.word&&(0,d.jsxs)(`span`,{className:`psb-token`,"data-pos":e.word.pos,"data-dim":!!v&&e.word.pos!==v||void 0,title:e.word.note?`${e.word.word} — ${e.word.note}`:void 0,children:[(0,d.jsxs)(`span`,{className:`psb-word`,children:[e.word.word,e.word.noteIdx!==void 0&&(0,d.jsx)(`sup`,{className:`psb-note-mark`,"aria-hidden":`true`,children:e.word.noteIdx})]}),e.word.pos&&(0,d.jsx)(`span`,{className:`psb-abbr`,"aria-hidden":`true`,children:q[e.word.pos]})]}),e.trail.map((e,t)=>y(e,`t${t}`))]},t))}):o?(0,d.jsx)(`p`,{className:`psb-plain`,children:o}):(0,d.jsx)(`div`,{className:`psb-empty`,children:`Nothing to break down yet.`}),s&&(0,d.jsx)(`div`,{className:`psb-translation`,children:s}),m.length>0&&(0,d.jsx)(`div`,{className:`psb-legend`,role:`group`,"aria-label":`Word classes in this sentence`,children:m.map(({pos:e,count:t})=>(0,d.jsxs)(`button`,{type:`button`,className:`psb-leg`,"data-pos":e,"aria-pressed":v===e,onClick:()=>_(t=>t===e?null:e),title:v===e?`Show every word`:`Spotlight every ${e}`,children:[(0,d.jsx)(`span`,{className:`psb-leg-dot`,"aria-hidden":`true`}),e,t>1&&(0,d.jsxs)(`span`,{className:`psb-leg-n`,children:[`×`,t]})]},e))}),h.length>0&&(0,d.jsx)(`ul`,{className:`psb-notes`,children:h.map(e=>(0,d.jsxs)(`li`,{className:`psb-note`,children:[(0,d.jsx)(`sup`,{className:`psb-note-num`,children:e.noteIdx}),(0,d.jsxs)(`span`,{className:`psb-note-text`,children:[(0,d.jsx)(`span`,{className:`psb-note-word`,children:e.word}),` — `,e.note]})]},e.noteIdx))}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}function _e({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,commonName:r,scientificName:s,image:c,marks:u,lookalikes:f,status:p,caption:m,footer:h,delay:g}){let _=i[t]??i.globe,v=l(c?.from,`var(--presence-deep)`),y=l(c?.to,`var(--presence-soft)`),b=o(c?.src),x=u??[],S=f??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g??0)+`ms`},children:[e&&(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(_,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`sp-banner`,style:{background:`linear-gradient(150deg, ${v}, ${y})`},children:[b&&(0,d.jsx)(`img`,{className:`me-img-fill`,src:b,alt:``,loading:`lazy`,decoding:`async`,referrerPolicy:`no-referrer`,onError:e=>{e.currentTarget.style.display=`none`}}),p&&(0,d.jsx)(`span`,{className:`sp-status`,children:p})]}),(0,d.jsx)(`div`,{className:`sp-common`,"data-mark":`underline`,children:r}),s&&(0,d.jsx)(`div`,{className:`sp-scientific`,children:s}),m&&(0,d.jsx)(`div`,{className:`sp-caption`,children:m}),x.length>0&&(0,d.jsx)(`div`,{className:`sp-marks`,children:x.map((e,t)=>(0,d.jsxs)(`div`,{className:`sp-mark`,children:[(0,d.jsx)(`span`,{className:`sp-mark-label`,children:e.label}),(0,d.jsx)(`span`,{className:`sp-mark-value`,children:e.value})]},t))}),S.length>0&&(0,d.jsxs)(`div`,{className:`sp-lookalikes`,children:[(0,d.jsxs)(`span`,{className:`sp-lookalikes-k`,children:[(0,d.jsx)(i.layers,{className:`ic sp-lookalikes-ic`}),` Easily confused with`]}),(0,d.jsx)(`ul`,{className:`sp-lookalike-list`,children:S.map((e,t)=>(0,d.jsx)(`li`,{className:`sp-lookalike`,children:e},t))})]}),h&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(h)})]})}function ve({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,terms:r,footer:o,delay:s}){let c=i[t]??i.table,l=e=>typeof e==`string`&&e.trim()?e.trim():`—`,{rows:f,langs:p}=(0,u.useMemo)(()=>{let e=r??[],t=[],n=new Set;return{rows:e.map(e=>{let r=new Map;for(let i of e.translations??[]){if(!i||typeof i!=`object`)continue;let e=l(i.lang);n.has(e)||(n.add(e),t.push(e)),r.has(e)||r.set(e,i)}return{term:e,cells:r}}),langs:t}},[r]),m=e=>{if(e===`preferred`)return`var(--insight)`;if(e===`deprecated`)return`var(--warning)`;if(e===`avoid`)return`var(--danger)`};return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),f.length===0?(0,d.jsx)(`div`,{className:`tb-empty`,children:`No terms yet.`}):p.length===0?(0,d.jsx)(`ul`,{className:`tb-flat`,children:f.map(({term:e},t)=>(0,d.jsx)(`li`,{className:`tb-flat-term m-stagger-item m-fade-rise`,style:{"--i":t},children:e.term},t))}):(0,d.jsx)(`div`,{className:`tb-wrap`,children:(0,d.jsxs)(`table`,{className:`tb-table`,children:[(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{children:[(0,d.jsx)(`th`,{scope:`col`,children:`Term`}),p.map(e=>(0,d.jsx)(`th`,{scope:`col`,children:e},e))]})}),(0,d.jsx)(`tbody`,{children:f.map(({term:e,cells:t},n)=>(0,d.jsxs)(`tr`,{className:`m-stagger-item m-fade-rise`,style:{"--i":n},children:[(0,d.jsx)(`td`,{className:`tb-term-col`,children:e.term}),p.map(e=>{let n=t.get(e),r=n&&typeof n.text==`string`?n.text:``,i=m(n?.status);return(0,d.jsx)(`td`,{className:`tb-cell`,children:r?(0,d.jsxs)(`span`,{className:`tb-cell-text`,children:[i&&(0,d.jsx)(`span`,{className:`tb-dot`,style:{"--tb-c":i},title:n?.status}),r]}):(0,d.jsx)(`span`,{className:`tb-dash`,children:`—`})},e)})]},n))})]})}),o&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var J={whale:{w:240,h:70,orient:`horizontal`},bus:{w:200,h:90,orient:`horizontal`},generic:{w:90,h:70,orient:`horizontal`},human:{w:40,h:100,orient:`vertical`},building:{w:70,h:160,orient:`vertical`}};function ye(e){return typeof e==`string`&&e in J}function be(e){let t=(0,E.c)(21),n,r;t[0]===e?(n=t[1],r=t[2]):({shape:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i=J[n],a=`0 0 ${i.w} ${i.h}`,o;t[3]===n?o=t[4]:(o=n===`human`&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`circle`,{cx:`20`,cy:`11`,r:`10`}),(0,d.jsx)(`path`,{d:`M8 30 Q20 22 32 30 L34 62 Q27 68 20 68 Q13 68 6 62 Z`}),(0,d.jsx)(`path`,{d:`M11 66 L8 100 L17 100 L19 70 Z`}),(0,d.jsx)(`path`,{d:`M29 66 L32 100 L23 100 L21 70 Z`})]}),t[3]=n,t[4]=o);let s;t[5]===n?s=t[6]:(s=n===`bus`&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`path`,{d:`M6 20 Q6 8 18 8 H172 Q188 8 188 24 V58 Q188 66 180 66 H16 Q6 66 6 56 Z`}),(0,d.jsx)(`rect`,{x:`18`,y:`17`,width:`152`,height:`19`,rx:`3`,className:`szc-glyph-cut`,fill:`var(--surface-elevated)`}),(0,d.jsx)(`circle`,{cx:`46`,cy:`70`,r:`13`}),(0,d.jsx)(`circle`,{cx:`154`,cy:`70`,r:`13`})]}),t[5]=n,t[6]=s);let c;t[7]===n?c=t[8]:(c=n===`whale`&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`path`,{d:`M4 40 C4 20 40 10 100 9 C170 8 210 20 224 32 L236 26 L232 42 L236 56 L224 50 C214 60 170 66 100 65 C40 64 4 56 4 40 Z`}),(0,d.jsx)(`path`,{d:`M60 12 C64 2 76 2 78 12 C72 14 66 14 60 12 Z`}),(0,d.jsx)(`path`,{d:`M18 46 C22 54 34 56 40 50 C34 46 24 44 18 46 Z`})]}),t[7]=n,t[8]=c);let l;t[9]===n?l=t[10]:(l=n===`building`&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`rect`,{x:`10`,y:`6`,width:`50`,height:`154`,rx:`2`}),Array.from({length:8},xe)]}),t[9]=n,t[10]=l);let u;t[11]===n?u=t[12]:(u=n===`generic`&&(0,d.jsx)(`path`,{d:`M8 55 Q2 30 28 18 Q46 4 66 14 Q86 22 82 42 Q90 52 78 58 Q55 68 30 64 Q12 62 8 55 Z`}),t[11]=n,t[12]=u);let f;return t[13]!==r||t[14]!==a||t[15]!==o||t[16]!==s||t[17]!==c||t[18]!==l||t[19]!==u?(f=(0,d.jsxs)(`svg`,{viewBox:a,preserveAspectRatio:`xMidYMax meet`,fill:`currentColor`,"aria-hidden":`true`,...r,children:[o,s,c,l,u]}),t[13]=r,t[14]=a,t[15]=o,t[16]=s,t[17]=c,t[18]=l,t[19]=u,t[20]=f):f=t[20],f}function xe(e,t){return Array.from({length:3},(e,n)=>(0,d.jsx)(`rect`,{x:17+n*13,y:16+t*17,width:`8`,height:`9`,rx:`1`,className:`szc-glyph-cut`,fill:`var(--surface-elevated)`},`${t}-${n}`))}var Se=190,Y=16;function Ce(e,t){if(typeof e!=`number`||!Number.isFinite(e))return`—`;let n=e.toLocaleString(void 0,{maximumFractionDigits:2});return t?`${n} ${t}`:n}function we({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,unit:r,subjects:o,footer:s,delay:c}){let l=i[t]??i.layers,u=o??[],f=u.reduce((e,t)=>{let n=typeof t.length==`number`&&Number.isFinite(t.length)?t.length:-1/0;return n>e?n:e},0),p=f>0?Se/f:0,m=u.map(e=>{let t=ye(e.shape)?e.shape:`generic`,n=J[t],r=typeof e.length==`number`&&Number.isFinite(e.length)&&e.length>0&&p>0?Math.max(e.length*p,Y):Y;return{subject:e,shape:t,width:n.orient===`horizontal`?r:r*(n.w/n.h),height:n.orient===`vertical`?r:r*(n.h/n.w)}}),h=Math.max(...m.map(e=>e.height),Y);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),m.length===0?(0,d.jsx)(`div`,{className:`szc-empty`,children:`No subjects yet.`}):(0,d.jsx)(`div`,{className:`szc-scroll`,children:(0,d.jsx)(`div`,{className:`szc-row`,style:{"--szc-track-h":h+`px`},children:m.map(({subject:e,shape:t,width:i,height:a},o)=>(0,d.jsxs)(`div`,{className:`szc-item m-stagger-item m-scale-in`,style:{"--i":o,color:n},children:[(0,d.jsx)(`div`,{className:`szc-shape-box`,children:(0,d.jsx)(be,{shape:t,style:{width:i,height:a}})}),(0,d.jsx)(`div`,{className:`szc-item-label`,...o===0?{"data-mark":`underline`}:{},children:e.label}),(0,d.jsx)(`div`,{className:`szc-item-value`,children:Ce(e.length,r)})]},o))})}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function Te(e){let t=Array.from(e),n=t.length;return t.map((e,t)=>({ch:e,group:Math.floor((n-1-t)/4)}))}function Ee({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,value:r,bases:o,footer:s,delay:c}){let l=i[t]??i.chart,u=o??[],f=typeof r==`string`||typeof r==`number`?String(r):``;return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),f&&(0,d.jsx)(`div`,{className:`bcv-value`,"data-mark":`underline`,children:f}),u.length>0?(0,d.jsx)(`div`,{className:`bcv-rows`,children:u.map((e,t)=>{let n=typeof e.digits==`string`?e.digits.trim():``,r=typeof e.radix==`number`&&Number.isFinite(e.radix)?e.radix:null;return(0,d.jsxs)(`div`,{className:`bcv-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,d.jsxs)(`div`,{className:`bcv-row-head`,children:[(0,d.jsx)(`span`,{className:`bcv-label`,children:e.label}),r!==null&&(0,d.jsxs)(`span`,{className:`bcv-radix`,children:[`base `,r]})]}),n?(0,d.jsx)(`div`,{className:`bcv-digits`,children:Te(n).map((e,t)=>(0,d.jsx)(`span`,{className:`bcv-digit`,"data-group":e.group%2==0?`a`:`b`,children:e.ch},t))}):(0,d.jsx)(`span`,{className:`bcv-dash`,children:`—`})]},t)})}):(0,d.jsx)(`div`,{className:`bcv-empty`,children:`No bases yet.`}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function De(e){let t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?`?`:t.length===1?t[0][0]?.toUpperCase()??`?`:((t[0][0]??``)+(t[t.length-1][0]??``)).toUpperCase()}function Oe(e){return typeof e==`string`&&e.trim()||typeof e==`number`&&Number.isFinite(e)?String(e):`—`}function ke({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,name:r,era:o,born:s,died:c,knownFor:l,facts:u,lifeEvents:f,legacy:p,footer:m,delay:h}){let g=i[t]??i.doc,_=u??[],v=f??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(h??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`hp-head`,children:[(0,d.jsx)(`div`,{className:`hp-medallion`,"aria-hidden":`true`,children:De(r)}),(0,d.jsxs)(`div`,{className:`hp-headline`,children:[(0,d.jsx)(`div`,{className:`hp-name`,"data-mark":`underline`,children:r}),o&&(0,d.jsx)(`div`,{className:`hp-era`,children:o}),l&&(0,d.jsx)(`div`,{className:`hp-known`,children:l})]})]}),(s||c)&&(0,d.jsxs)(`div`,{className:`hp-dates`,children:[s&&(0,d.jsxs)(`div`,{className:`hp-date`,children:[(0,d.jsx)(`span`,{className:`hp-date-k`,children:`Born`}),(0,d.jsx)(`span`,{className:`hp-date-v`,children:s})]}),c&&(0,d.jsxs)(`div`,{className:`hp-date`,children:[(0,d.jsx)(`span`,{className:`hp-date-k`,children:`Died`}),(0,d.jsx)(`span`,{className:`hp-date-v`,children:c})]})]}),v.length>0&&(0,d.jsx)(`div`,{className:`hp-beats`,children:v.map((e,t)=>(0,d.jsxs)(`div`,{className:`hp-beat m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,d.jsx)(`span`,{className:`hp-beat-year`,children:Oe(e.year)}),(0,d.jsx)(`span`,{className:`hp-beat-label`,children:e.label})]},t))}),_.length>0&&(0,d.jsx)(`div`,{className:`hp-facts`,children:_.map((e,t)=>(0,d.jsxs)(`div`,{className:`hp-fact-row`,children:[(0,d.jsx)(`span`,{className:`hp-fact-label`,children:e.label}),(0,d.jsx)(`span`,{className:`hp-fact-value`,children:e.value})]},t))}),p&&(0,d.jsx)(`div`,{className:`hp-legacy`,children:p}),m&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(m)})]})}function X(e){return typeof e==`string`&&e.trim()||typeof e==`number`&&Number.isFinite(e)?String(e):`—`}function Z({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,date:r,events:o,born:s,died:c,footer:l,delay:u}){let f=i[t]??i.clock,p=o??[],m=s??[],h=c??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`otd-date`,children:r}),p.length>0?(0,d.jsx)(`div`,{className:`otd-events`,children:p.map((e,t)=>(0,d.jsxs)(`div`,{className:`otd-event m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,d.jsx)(`span`,{className:`otd-year-chip`,children:X(e.year)}),(0,d.jsxs)(`div`,{className:`otd-event-body`,children:[(0,d.jsx)(`div`,{className:`otd-label`,...t===0?{"data-mark":`underline`}:{},children:e.label}),e.category&&(0,d.jsx)(`span`,{className:`otd-cat`,children:e.category})]})]},t))}):(0,d.jsx)(`div`,{className:`otd-empty`,children:`No events yet.`}),(m.length>0||h.length>0)&&(0,d.jsxs)(`div`,{className:`otd-people`,children:[m.length>0&&(0,d.jsxs)(`div`,{className:`otd-people-col`,children:[(0,d.jsx)(`span`,{className:`otd-people-k`,children:`Born`}),m.map((e,t)=>(0,d.jsxs)(`div`,{className:`otd-person`,children:[(0,d.jsx)(`span`,{className:`otd-person-year`,children:X(e.year)}),(0,d.jsx)(`span`,{className:`otd-person-name`,children:e.name})]},t))]}),h.length>0&&(0,d.jsxs)(`div`,{className:`otd-people-col`,children:[(0,d.jsx)(`span`,{className:`otd-people-k`,children:`Died`}),h.map((e,t)=>(0,d.jsxs)(`div`,{className:`otd-person`,children:[(0,d.jsx)(`span`,{className:`otd-person-year`,children:X(e.year)}),(0,d.jsx)(`span`,{className:`otd-person-name`,children:e.name})]},t))]})]}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function Ae({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,name:r,flag:o,capital:s,population:c,area:l,officialLanguages:u,currency:f,facts:p,footer:m,delay:h}){let g=i[t]??i.globe,_=Array.isArray(p)?p:[],v=(Array.isArray(u)?u:[]).filter(e=>typeof e==`string`&&e.trim().length>0),y=[{label:`Capital`,value:s},{label:`Population`,value:c},{label:`Area`,value:l},{label:`Currency`,value:f}].filter(e=>typeof e.value==`string`&&!!e.value);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(h??0)+`ms`},children:[e&&(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`cc-banner`,children:(0,d.jsx)(`span`,{className:`cc-flag`,role:`img`,"aria-label":`Flag of ${r}`,children:typeof o==`string`&&o.trim()?o:`🌐`})}),(0,d.jsx)(`div`,{className:`cc-name`,"data-mark":`underline`,children:r}),y.length>0&&(0,d.jsx)(`div`,{className:`cc-marks`,children:y.map((e,t)=>(0,d.jsxs)(`div`,{className:`cc-mark`,children:[(0,d.jsx)(`span`,{className:`cc-mark-label`,children:e.label}),(0,d.jsx)(`span`,{className:`cc-mark-value`,children:e.value})]},t))}),v.length>0&&(0,d.jsx)(`div`,{className:`cc-langs`,children:v.map((e,t)=>(0,d.jsx)(`span`,{className:`cc-lang-chip`,children:e},t))}),_.length>0&&(0,d.jsx)(`div`,{className:`cc-facts`,children:_.map((e,t)=>(0,d.jsxs)(`div`,{className:`cc-fact-row`,children:[(0,d.jsx)(`span`,{className:`cc-fact-label`,children:e.label}),(0,d.jsx)(`span`,{className:`cc-fact-value`,children:e.value})]},t))}),m&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(m)})]})}function je({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,countries:r,footer:o,delay:s}){let c=i[t]??i.globe,l=Array.isArray(r)?r:[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),l.length===0?(0,d.jsx)(`div`,{className:`wg-empty`,children:`No countries yet.`}):(0,d.jsx)(`div`,{className:`wg-grid`,children:l.map((e,t)=>(0,d.jsxs)(`div`,{className:`wg-tile m-stagger-item m-scale-in`,style:{"--i":t},children:[(0,d.jsx)(`span`,{className:`wg-flag`,role:`img`,"aria-label":`Flag of ${e.name}`,children:typeof e.flag==`string`&&e.flag.trim()?e.flag:`🌐`}),(0,d.jsx)(`div`,{className:`wg-name`,children:e.name}),e.capital&&(0,d.jsxs)(`div`,{className:`wg-row`,children:[(0,d.jsx)(`span`,{className:`wg-row-k`,children:`Capital`}),(0,d.jsx)(`span`,{className:`wg-row-v`,children:e.capital})]}),e.currency&&(0,d.jsxs)(`div`,{className:`wg-row`,children:[(0,d.jsx)(`span`,{className:`wg-row-k`,children:`Currency`}),(0,d.jsx)(`span`,{className:`wg-row-v`,children:e.currency})]}),e.language&&(0,d.jsxs)(`div`,{className:`wg-row`,children:[(0,d.jsx)(`span`,{className:`wg-row-k`,children:`Language`}),(0,d.jsx)(`span`,{className:`wg-row-v`,children:e.language})]})]},t))}),o&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var Q=[`var(--presence)`,`var(--danger)`,`var(--warning)`,`var(--text-muted)`],Me=new Set(Q);function Ne(e,t){return typeof e.color==`string`&&Me.has(e.color)?e.color:Q[t%Q.length]}function Pe({title:e,icon:t=`shield`,iconColor:n=`var(--danger)`,dates:r,sides:o,keyBattles:s,casualties:c,outcome:l,footer:u,delay:f}){let p=i[t]??i.shield,m=Array.isArray(o)?o:[],h=Array.isArray(s)?s:[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,d.jsx)(`div`,{className:`wc-dates`,children:r}),m.length>0&&(0,d.jsx)(`div`,{className:`wc-sides`,children:m.map((e,t)=>{let n=Ne(e,t),r=Array.isArray(e.leaders)?e.leaders:[];return(0,d.jsxs)(`div`,{className:`wc-side m-stagger-item m-fade-rise`,style:{"--i":t,"--wc-c":n},children:[(0,d.jsx)(`div`,{className:`wc-side-name`,children:e.name}),r.length>0&&(0,d.jsx)(`ul`,{className:`wc-leaders`,children:r.filter(e=>typeof e==`string`&&e.trim().length>0).map((e,t)=>(0,d.jsx)(`li`,{className:`wc-leader`,children:e},t))})]},t)})}),h.length>0&&(0,d.jsx)(`div`,{className:`wc-battles`,children:h.map((e,t)=>(0,d.jsxs)(`div`,{className:`wc-battle`,children:[(0,d.jsx)(`span`,{className:`wc-battle-dot`,"aria-hidden":`true`}),(0,d.jsx)(`span`,{className:`wc-battle-label`,children:e.label}),e.at&&(0,d.jsx)(`span`,{className:`wc-battle-at`,children:e.at})]},t))}),c&&(0,d.jsxs)(`div`,{className:`wc-stat-row`,children:[(0,d.jsx)(`span`,{className:`wc-stat-k`,children:`Casualties`}),(0,d.jsx)(`span`,{className:`wc-stat-v`,children:c})]}),l&&(0,d.jsx)(`div`,{className:`wc-outcome`,children:l}),u&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}var Fe=e({referenceRegistry:()=>$}),$={factsheet:c(T),newsdigest:c(A),dictionary:c(ie),translation:c(ne),pronunciation:c(re),gloss:c(ae),scalefelt:c(oe),hearit:c(F),ipachart:c(V),scriptstroke:c(ue),phonicsword:c(fe),speciescard:c(_e),etymtree:c(w),hazardcard:c(k),termbase:c(ve),sizecompare:c(we),baseconversion:c(Ee),historicalperson:c(ke),onthisday:c(Z),countrycard:c(Ae),worldgrid:c(je),warconflict:c(Pe),posbreakdown:c(ge)};export{Fe as n,$ as t};
@@ -1 +1 @@
1
- import{r as e}from"./chunk-BVpWp9h4.js";import{t}from"./react-BQSORdFI.js";import{t as n}from"./jsx-runtime-DaSxXjOY.js";import{ht as r}from"./index-CWqRe4-B.js";import{n as i}from"./icons-CHVz6kv_.js";import"./lib-CwruVYU_.js";import{n as a}from"./motion-CURfDtdH.js";import{t as o}from"./registry-types-DMuK0vJ6.js";function s(e){switch(e){case`triggered`:return`var(--danger)`;case`clear`:return`var(--insight)`;case`watching`:return`var(--presence)`;default:return`var(--text-muted)`}}function c(e){switch(e){case`triggered`:return`TRIGGERED`;case`clear`:return`CLEAR`;case`watching`:return`WATCHING`;default:return`AWAITING`}}var l=n();function u({title:e=`Why you’re tracking this`,icon:t=`quote`,iconColor:n=`var(--presence)`,reasoning:r,asOf:a,reconsiderIf:o,tripwireState:u,footer:d,delay:f}){let p=i[t]||i.quote;return(0,l.jsxs)(`div`,{className:`card reveal dash-thesis`,style:{"--delay":(f||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`blockquote`,{className:`dash-thesis-quote`,style:{borderColor:n},children:[r,a&&(0,l.jsx)(`span`,{className:`dash-thesis-date`,children:a})]}),o&&(0,l.jsxs)(`div`,{className:`dash-thesis-tripwire`,children:[(0,l.jsx)(`span`,{className:`dash-thesis-recon`,children:`Reconsider if:`}),(0,l.jsx)(`span`,{className:`dash-chip`,style:{"--chip":s(u??`watching`)},children:o}),u&&(0,l.jsx)(`span`,{className:`dash-chip-state`,style:{"--chip":s(u)},children:c(u)})]}),d&&(0,l.jsx)(`div`,{className:`dash-foot`,children:d})]})}var d=r(),f=t(),p=46,m=60,h=60;function g(e){return{x:m+p*Math.cos(e),y:h+p*Math.sin(e)}}function _(e){if(e<=0)return null;let t=Math.min(e,.9998),n=-Math.PI/2,r=n+t*2*Math.PI,i=g(n),a=g(r),o=+(t>.5);return`M ${i.x.toFixed(2)} ${i.y.toFixed(2)} A ${p} ${p} 0 ${o} 1 ${a.x.toFixed(2)} ${a.y.toFixed(2)}`}function v(e){let t=(0,d.c)(5),{d:n,color:r,delay:i}=e,o=(0,f.useRef)(null),s;t[0]===i?s=t[1]:(s={delay:i},t[0]=i,t[1]=s),a(o,s);let c;return t[2]!==r||t[3]!==n?(c=(0,l.jsx)(`path`,{ref:o,d:n,fill:`none`,stroke:r,strokeWidth:`9`,strokeLinecap:`round`,className:`dash-gauge-arc`}),t[2]=r,t[3]=n,t[4]=c):c=t[4],c}function y({title:e=`Thesis alignment`,icon:t=`shield`,iconColor:n=`var(--insight)`,pct:r,band:a,note:o,color:s=`var(--insight)`,footer:c,delay:u}){let d=i[t]||i.shield,f=r!==null&&Number.isFinite(r),m=_(f?Math.max(0,Math.min(100,r))/100:0);return(0,l.jsxs)(`div`,{className:`card reveal dash-gauge`,style:{"--delay":(u||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`dash-gauge-body`,children:[(0,l.jsxs)(`div`,{className:`dash-gauge-ring`,children:[(0,l.jsxs)(`svg`,{viewBox:`0 0 120 120`,className:`dash-gauge-svg`,"aria-hidden":`true`,children:[(0,l.jsx)(`circle`,{cx:`60`,cy:`60`,r:p,fill:`none`,stroke:`var(--track)`,strokeWidth:`9`}),m&&(0,l.jsx)(v,{d:m,color:s,delay:u},m)]}),(0,l.jsx)(`div`,{className:`dash-gauge-center`,children:(0,l.jsx)(`div`,{className:`dash-gauge-pct tab-num`,style:{color:f?s:`var(--text-muted)`},children:f?`${Math.round(r)}%`:`—`})})]}),(0,l.jsx)(`div`,{className:`dash-gauge-side`,children:f?(0,l.jsxs)(l.Fragment,{children:[a&&(0,l.jsx)(`div`,{className:`dash-gauge-band`,children:a}),o&&(0,l.jsx)(`div`,{className:`dash-gauge-note`,children:o})]}):(0,l.jsx)(`div`,{className:`dash-gauge-note faint`,children:`Awaiting your data`})})]}),c&&(0,l.jsx)(`div`,{className:`dash-foot`,children:c})]})}function b({title:e=`Standing alerts`,icon:t=`bell`,iconColor:n=`var(--warning)`,alerts:r,footer:a,delay:o}){let u=i[t]||i.bell;return(0,l.jsxs)(`div`,{className:`card reveal dash-alerts`,style:{"--delay":(o||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),r.length===0?(0,l.jsx)(`div`,{className:`dash-alerts-empty faint`,children:`No standing alerts.`}):(0,l.jsx)(`div`,{className:`dash-alerts-list`,children:r.map((e,t)=>(0,l.jsxs)(`div`,{className:`dash-alert-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,l.jsx)(`span`,{className:`dash-alert-dot`,style:{background:s(e.state)}}),(0,l.jsx)(`span`,{className:`dash-alert-label`,children:e.label}),(0,l.jsx)(`span`,{className:`dash-alert-state`,style:{color:s(e.state)},children:e.status??c(e.state)})]},t))}),a&&(0,l.jsx)(`div`,{className:`dash-foot`,children:a})]})}var x={origin:`var(--presence)`,added:`var(--insight)`,linked:`var(--warning)`},S={origin:`ORIGIN`,added:`ADDED`,linked:`LINKED`};function C({title:e=`Sources`,icon:t=`layers`,iconColor:n=`var(--text-muted)`,rows:r,footer:a,delay:o}){let s=i[t]||i.layers;return(0,l.jsxs)(`div`,{className:`card reveal dash-sources`,style:{"--delay":(o||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(s,{className:`ic`,style:{color:n}}),` `,e]}),r.length===0?(0,l.jsx)(`div`,{className:`dash-sources-empty faint`,children:`No sources yet.`}):(0,l.jsx)(`div`,{className:`dash-sources-list`,children:r.map((e,t)=>(0,l.jsxs)(`div`,{className:`dash-source-row`,children:[(0,l.jsx)(`span`,{className:`dash-source-rail`,style:{background:x[e.kind]}}),(0,l.jsxs)(`div`,{className:`dash-source-body`,children:[(0,l.jsxs)(`div`,{className:`dash-source-head`,children:[(0,l.jsx)(`span`,{className:`dash-source-label`,children:e.label}),(0,l.jsx)(`span`,{className:`dash-source-kind`,style:{color:x[e.kind]},children:S[e.kind]})]}),e.contributed&&(0,l.jsx)(`div`,{className:`dash-source-contrib`,children:e.contributed})]})]},t))}),a&&(0,l.jsx)(`div`,{className:`dash-foot`,children:a})]})}var w=e({dashboardRegistry:()=>T}),T={thesis:o(u),alignmentgauge:o(y),standingalerts:o(b),sourceslineage:o(C)};export{w as n,T as t};
1
+ import{r as e}from"./chunk-BVpWp9h4.js";import{t}from"./react-BQSORdFI.js";import{t as n}from"./jsx-runtime-DaSxXjOY.js";import{ht as r}from"./index-DOpl5xzv.js";import{n as i}from"./icons-CHVz6kv_.js";import"./lib-BLt1wpw2.js";import{n as a}from"./motion-DKmdzFji.js";import{t as o}from"./registry-types-DMuK0vJ6.js";function s(e){switch(e){case`triggered`:return`var(--danger)`;case`clear`:return`var(--insight)`;case`watching`:return`var(--presence)`;default:return`var(--text-muted)`}}function c(e){switch(e){case`triggered`:return`TRIGGERED`;case`clear`:return`CLEAR`;case`watching`:return`WATCHING`;default:return`AWAITING`}}var l=n();function u({title:e=`Why you’re tracking this`,icon:t=`quote`,iconColor:n=`var(--presence)`,reasoning:r,asOf:a,reconsiderIf:o,tripwireState:u,footer:d,delay:f}){let p=i[t]||i.quote;return(0,l.jsxs)(`div`,{className:`card reveal dash-thesis`,style:{"--delay":(f||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`blockquote`,{className:`dash-thesis-quote`,style:{borderColor:n},children:[r,a&&(0,l.jsx)(`span`,{className:`dash-thesis-date`,children:a})]}),o&&(0,l.jsxs)(`div`,{className:`dash-thesis-tripwire`,children:[(0,l.jsx)(`span`,{className:`dash-thesis-recon`,children:`Reconsider if:`}),(0,l.jsx)(`span`,{className:`dash-chip`,style:{"--chip":s(u??`watching`)},children:o}),u&&(0,l.jsx)(`span`,{className:`dash-chip-state`,style:{"--chip":s(u)},children:c(u)})]}),d&&(0,l.jsx)(`div`,{className:`dash-foot`,children:d})]})}var d=r(),f=t(),p=46,m=60,h=60;function g(e){return{x:m+p*Math.cos(e),y:h+p*Math.sin(e)}}function _(e){if(e<=0)return null;let t=Math.min(e,.9998),n=-Math.PI/2,r=n+t*2*Math.PI,i=g(n),a=g(r),o=+(t>.5);return`M ${i.x.toFixed(2)} ${i.y.toFixed(2)} A ${p} ${p} 0 ${o} 1 ${a.x.toFixed(2)} ${a.y.toFixed(2)}`}function v(e){let t=(0,d.c)(5),{d:n,color:r,delay:i}=e,o=(0,f.useRef)(null),s;t[0]===i?s=t[1]:(s={delay:i},t[0]=i,t[1]=s),a(o,s);let c;return t[2]!==r||t[3]!==n?(c=(0,l.jsx)(`path`,{ref:o,d:n,fill:`none`,stroke:r,strokeWidth:`9`,strokeLinecap:`round`,className:`dash-gauge-arc`}),t[2]=r,t[3]=n,t[4]=c):c=t[4],c}function y({title:e=`Thesis alignment`,icon:t=`shield`,iconColor:n=`var(--insight)`,pct:r,band:a,note:o,color:s=`var(--insight)`,footer:c,delay:u}){let d=i[t]||i.shield,f=r!==null&&Number.isFinite(r),m=_(f?Math.max(0,Math.min(100,r))/100:0);return(0,l.jsxs)(`div`,{className:`card reveal dash-gauge`,style:{"--delay":(u||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`dash-gauge-body`,children:[(0,l.jsxs)(`div`,{className:`dash-gauge-ring`,children:[(0,l.jsxs)(`svg`,{viewBox:`0 0 120 120`,className:`dash-gauge-svg`,"aria-hidden":`true`,children:[(0,l.jsx)(`circle`,{cx:`60`,cy:`60`,r:p,fill:`none`,stroke:`var(--track)`,strokeWidth:`9`}),m&&(0,l.jsx)(v,{d:m,color:s,delay:u},m)]}),(0,l.jsx)(`div`,{className:`dash-gauge-center`,children:(0,l.jsx)(`div`,{className:`dash-gauge-pct tab-num`,style:{color:f?s:`var(--text-muted)`},children:f?`${Math.round(r)}%`:`—`})})]}),(0,l.jsx)(`div`,{className:`dash-gauge-side`,children:f?(0,l.jsxs)(l.Fragment,{children:[a&&(0,l.jsx)(`div`,{className:`dash-gauge-band`,children:a}),o&&(0,l.jsx)(`div`,{className:`dash-gauge-note`,children:o})]}):(0,l.jsx)(`div`,{className:`dash-gauge-note faint`,children:`Awaiting your data`})})]}),c&&(0,l.jsx)(`div`,{className:`dash-foot`,children:c})]})}function b({title:e=`Standing alerts`,icon:t=`bell`,iconColor:n=`var(--warning)`,alerts:r,footer:a,delay:o}){let u=i[t]||i.bell;return(0,l.jsxs)(`div`,{className:`card reveal dash-alerts`,style:{"--delay":(o||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),r.length===0?(0,l.jsx)(`div`,{className:`dash-alerts-empty faint`,children:`No standing alerts.`}):(0,l.jsx)(`div`,{className:`dash-alerts-list`,children:r.map((e,t)=>(0,l.jsxs)(`div`,{className:`dash-alert-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,l.jsx)(`span`,{className:`dash-alert-dot`,style:{background:s(e.state)}}),(0,l.jsx)(`span`,{className:`dash-alert-label`,children:e.label}),(0,l.jsx)(`span`,{className:`dash-alert-state`,style:{color:s(e.state)},children:e.status??c(e.state)})]},t))}),a&&(0,l.jsx)(`div`,{className:`dash-foot`,children:a})]})}var x={origin:`var(--presence)`,added:`var(--insight)`,linked:`var(--warning)`},S={origin:`ORIGIN`,added:`ADDED`,linked:`LINKED`};function C({title:e=`Sources`,icon:t=`layers`,iconColor:n=`var(--text-muted)`,rows:r,footer:a,delay:o}){let s=i[t]||i.layers;return(0,l.jsxs)(`div`,{className:`card reveal dash-sources`,style:{"--delay":(o||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(s,{className:`ic`,style:{color:n}}),` `,e]}),r.length===0?(0,l.jsx)(`div`,{className:`dash-sources-empty faint`,children:`No sources yet.`}):(0,l.jsx)(`div`,{className:`dash-sources-list`,children:r.map((e,t)=>(0,l.jsxs)(`div`,{className:`dash-source-row`,children:[(0,l.jsx)(`span`,{className:`dash-source-rail`,style:{background:x[e.kind]}}),(0,l.jsxs)(`div`,{className:`dash-source-body`,children:[(0,l.jsxs)(`div`,{className:`dash-source-head`,children:[(0,l.jsx)(`span`,{className:`dash-source-label`,children:e.label}),(0,l.jsx)(`span`,{className:`dash-source-kind`,style:{color:x[e.kind]},children:S[e.kind]})]}),e.contributed&&(0,l.jsx)(`div`,{className:`dash-source-contrib`,children:e.contributed})]})]},t))}),a&&(0,l.jsx)(`div`,{className:`dash-foot`,children:a})]})}var w=e({dashboardRegistry:()=>T}),T={thesis:o(u),alignmentgauge:o(y),standingalerts:o(b),sourceslineage:o(C)};export{w as n,T as t};
@@ -0,0 +1 @@
1
+ var e=[`Your world`,`This session`,`While listening`,`Setup`],t=[{id:`atlas`,label:`Atlas`,blurb:`Kept conversations and topics, as a place you can wander`,group:`Your world`,surface:`live`,tourChapter:`atlas`,keywords:[`map`,`history`,`everything`,`concepts`]},{id:`memory`,label:`What Mavéa remembers`,blurb:`See, edit, or forget the facts stored about you on this device`,group:`Your world`,surface:`live`,tourChapter:`memory`,keywords:[`memory`,`remember`,`forget`,`facts`,`about me`,`personal`,`privacy`]},{id:`library`,label:`Past conversations`,blurb:`Reopen a canvas you built before`,group:`Your world`,surface:`live`,tourChapter:`library`,keywords:[`library`,`past`,`history`,`saved`,`resume`,`previous`,`conversations`]},{id:`deepzoom`,label:`Deep Zoom`,blurb:`Telescope any topic from the big picture down to the finest detail`,group:`Your world`,surface:`both`,tourChapter:`deepzoom`,keywords:[`zoom`,`telescope`,`powers of ten`,`scale`,`detail`,`deeper`,`magnify`]},{id:`pdf-world`,label:`Prism`,blurb:`Split a PDF, Office doc, or data file (CSV, text, JSON) into a map of its grounded claims — or compare several`,group:`Your world`,surface:`live`,tourChapter:`prism`,keywords:`prism.pdf.explode.split.document.word.docx.powerpoint.pptx.slides.excel.xlsx.spreadsheet.sheets.google docs.csv.tsv.text.txt.markdown.json.data.code.paper.claims.contradictions.compare.comparison.world`.split(`.`)},{id:`synthesis`,label:`Synthesis`,blurb:`Fuse a pile of documents into one map — agreements, contradictions, gaps`,group:`Your world`,surface:`live`,tourChapter:`synthesis`,keywords:[`synthesis`,`synthesize`,`fuse`,`merge`,`combine`,`many documents`,`multiple documents`,`literature review`,`cross-reference`,`corpus`]},{id:`ripple`,label:`Ripple`,blurb:`Model a code change’s blast radius — likely impact, risks, and a proposed ship order`,group:`Your world`,surface:`both`,tourChapter:`ripple`,keywords:[`ripple`,`pr`,`pull request`,`review`,`diff`,`code review`,`blast radius`,`impact`,`ship`,`merge`,`rollout`,`cascade`,`breaking change`,`migration`,`onboarding`,`codebase`,`repo`]},{id:`delegate`,label:`Rehearse`,blurb:`Practice a hard conversation — take the seat yourself, or send your Mavéa to scout it`,group:`Your world`,surface:`live`,tourChapter:`delegate`,keywords:[`negotiate`,`negotiation`,`deal`,`raise`,`salary`,`haggle`,`bargain`,`offer`,`counteroffer`,`prep`,`scout`,`boundaries`,`delegate`,`table`,`rehearse`,`practice`,`role play`,`interview`,`prepare`]},{id:`review`,label:`Study`,blurb:`Go through your flashcards — on a schedule if you want one`,group:`Your world`,surface:`live`,tourChapter:`review`,keywords:[`srs`,`flashcards`,`study`,`remember`,`spaced`,`due`,`flip`,`pile`,`anki`]},{id:`flashcards`,label:`Manage flashcards`,blurb:`See, organise, and edit your study deck (decks, tags, study)`,group:`Your world`,surface:`live`,tourChapter:`manage-flashcards`,keywords:[`flashcards`,`cards`,`deck`,`tag`,`manage`,`anki`,`study`]},{id:`courses`,label:`Courses`,blurb:`Turn a topic into a structured syllabus — a lesson at a time, at your pace`,group:`Your world`,surface:`live`,tourChapter:`course`,keywords:[`course`,`courses`,`lesson`,`syllabus`,`learn`,`teach`,`curriculum`,`class`]},{id:`dashboards`,label:`Living dashboards`,blurb:`Open dashboards that refresh on schedule while Mavéa is running`,group:`Your world`,surface:`both`,tourChapter:`dashboards`,keywords:[`dashboard`,`dashboards`,`track`,`metrics`,`watch`]},{id:`recap`,label:`Recap`,blurb:`What we've covered so far this session`,group:`This session`,surface:`live`,tourChapter:`recap`,keywords:[`summary`,`so far`,`covered`]},{id:`zoom-deck`,label:`Chapter view`,blurb:`Pull back from the cards to the shape of the whole session`,group:`This session`,surface:`live`,tourChapter:`zoom-deck`,keywords:[`zoom`,`chapters`,`pinch`,`altitude`,`overview`,`pull back`,`whole night`]},{id:`present`,label:`Present`,blurb:`Fill the room — the chrome falls away, the mic stays live`,group:`This session`,surface:`live`,tourChapter:`present`,keywords:[`presentation`,`full screen`,`room`,`talk`]},{id:`track`,label:`Track this`,blurb:`Turn this conversation into a dashboard that refreshes while Mavéa is running`,group:`This session`,surface:`live`,tourChapter:`track`,keywords:[`dashboard`,`watch`,`monitor`,`keep`]},{id:`share`,label:`Share`,blurb:`Turn this conversation into a polished presentation or document`,group:`This session`,surface:`live`,tourChapter:`share`,keywords:[`share`,`presentation`,`slides`,`document`,`export`,`publish`]},{id:`export`,label:`Export`,blurb:`Print this or save it as a PDF`,group:`This session`,surface:`live`,tourChapter:`export`,keywords:[`pdf`,`print`,`save`,`download`]},{id:`board`,label:`Board view`,blurb:`Spread this answer's cards on a spatial board you can wander`,group:`This session`,surface:`live`,tourChapter:`canvas`,keywords:[`board`,`spatial`,`canvas`,`spread`,`arrange`,`wander`,`map`]},{id:`focus`,label:`Focus mode`,blurb:`One card at a time, with a filmstrip of the rest`,group:`This session`,surface:`live`,tourChapter:`focus`,keywords:[`focus`,`one card`,`filmstrip`,`zoom`]},{id:`ink`,label:`Highlight to ask`,blurb:`Mark any part of an answer to ask Mavéa about it`,group:`This session`,surface:`live`,tourChapter:`highlight`,keywords:[`ink`,`draw`,`highlight`,`annotate`,`mark`,`ask`]},{id:`blanks`,label:`The Blank Space`,blurb:`An answer can leave a glowing hole for a value only you know — type it, say it, or drop a card in`,group:`This session`,surface:`live`,tourChapter:`blanks`,keywords:[`blank`,`blanks`,`fill`,`fill in`,`fill in my numbers`,`your numbers`,`hole`,`slot`,`placeholder`]},{id:`watch-me-think`,label:`Watch me think`,blurb:`Talk for a minute — Mavéa draws a live map of your thinking`,group:`While listening`,surface:`live`,tourChapter:`think`,keywords:[`mind map`,`mindshape`,`think`,`ramble`,`map`,`thinking`]},{id:`just-listen`,label:`Just listen`,blurb:`Bank recognized speech without answering — sort it later`,group:`While listening`,surface:`live`,tourChapter:`just-listen`,keywords:[`listen`,`bank`,`think out loud`,`notes`]},{id:`whisper`,label:`Whisper mode`,blurb:`Ultra-quiet voice for when you can't make a sound — opens its Quiet-hours setting`,group:`While listening`,surface:`live`,tourChapter:`whisper`,keywords:[`quiet`,`whisper`,`night`,`silent`]},{id:`ghost`,label:`Ghost answers`,blurb:`Mavéa quietly drafts what it would say — starts Just listen, where the drafts appear`,group:`While listening`,surface:`live`,tourChapter:`ghost`,keywords:[`ghost`,`draft`,`preview`,`alternative`]},{id:`settings`,label:`Model settings`,blurb:`Connect a provider and tune how Mavéa answers`,group:`Setup`,surface:`live`,tourChapter:`settings`,keywords:[`settings`,`model`,`provider`,`api key`,`config`]},{id:`morning-brief`,label:`Morning brief`,blurb:`Open the day with what's changed — off by default; opens the switch that turns it on`,group:`Setup`,surface:`live`,tourChapter:`morning-brief`,keywords:[`brief`,`briefing`,`morning`,`daily`,`catch up`,`start of day`]},{id:`how`,label:`How Mavéa works`,blurb:`A quick tour of the basics`,group:`Setup`,surface:`both`,keywords:[`help`,`tour`,`how`,`guide`,`onboarding`]}];function n(e){return[e.label,e.blurb,e.group,...e.keywords??[]].join(` `).toLowerCase()}export{e as n,n as r,t};