@mavea/mavea 1.0.8 → 1.0.9

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 (172) hide show
  1. package/dist/.vite/manifest.json +675 -670
  2. package/dist/assets/{AppCommandPalette-DUMSp3rd.js → AppCommandPalette-D5E8xhEf.js} +1 -1
  3. package/dist/assets/{AtlasView-Dl2fssaG.js → AtlasView-Q4dqhS4v.js} +1 -1
  4. package/dist/assets/{BlockEmpty-CLtVQf6c.js → BlockEmpty-JoKwTRb0.js} +1 -1
  5. package/dist/assets/{BriefingPlayer-DO205Qkh.js → BriefingPlayer-BaC5XjsP.js} +1 -1
  6. package/dist/assets/{CanvasSkeleton-BZZPCuRZ.js → CanvasSkeleton-DgF1b-bW.js} +2 -2
  7. package/dist/assets/{CheckLogRail-wUfby67Z.js → CheckLogRail-DldWYeVr.js} +1 -1
  8. package/dist/assets/{CodeOutput-Kh6ldxQz.js → CodeOutput-B9_a0vjD.js} +1 -1
  9. package/dist/assets/{CommandPalette-Kl00mMZm.js → CommandPalette-C1eiRrMP.js} +1 -1
  10. package/dist/assets/{CourseLessonReader-MBHoknUz.js → CourseLessonReader-DA3t9SUe.js} +2 -2
  11. package/dist/assets/{CourseRail-q6x5cCpW.js → CourseRail-BaP1uB0B.js} +1 -1
  12. package/dist/assets/{CoursesApp-v89OVJvg.js → CoursesApp-MSK1JzqU.js} +2 -2
  13. package/dist/assets/{CrossExamPanel-DH04p6VS.js → CrossExamPanel-jJu-Mqvs.js} +1 -1
  14. package/dist/assets/{DashPresent-BYXbPuGj.js → DashPresent-Coj1b9Bp.js} +1 -1
  15. package/dist/assets/{DashboardDetail-B50ZkeVK.js → DashboardDetail-CHw4HfHp.js} +2 -2
  16. package/dist/assets/DashboardLoopRuntime-bSH-LDQM.js +1 -0
  17. package/dist/assets/{DashboardOverview-C-FdGWM5.js → DashboardOverview-CfsSZAgN.js} +1 -1
  18. package/dist/assets/{DashboardSettings-Dmw6JTbI.js → DashboardSettings-BkSQvDt6.js} +1 -1
  19. package/dist/assets/{DashboardsApp-JSY_bVfi.js → DashboardsApp-BmcjQZqP.js} +2 -2
  20. package/dist/assets/{DeepZoomApp-BFNwli7l.js → DeepZoomApp-BKhVz2w1.js} +1 -1
  21. package/dist/assets/{DelegatePanel-BK7rEhIc.js → DelegatePanel-BFKvKzB-.js} +1 -1
  22. package/dist/assets/{DemoGallery-BPtVG7_y.js → DemoGallery-0cgMcGir.js} +1 -1
  23. package/dist/assets/{DropSelect-DUhdQSta.js → DropSelect-CJnpoHtR.js} +1 -1
  24. package/dist/assets/{ExportModal-D65cGyj_.js → ExportModal-DbWt9b6v.js} +2 -2
  25. package/dist/assets/{ExtractionPreview-Iwfg2Ogl.js → ExtractionPreview-DTAyeKIx.js} +1 -1
  26. package/dist/assets/{FeatureUseNotice-DPtQ0OGb.js → FeatureUseNotice-CoK5HkbR.js} +1 -1
  27. package/dist/assets/FeatureUseNotice-CsCxxfOl.css +1 -0
  28. package/dist/assets/{FlagshipCTA-BXntKhxb.js → FlagshipCTA-EfqXfhO2.js} +1 -1
  29. package/dist/assets/{FlagshipCommandPalette-BDJfasI-.js → FlagshipCommandPalette-CUgzggi1.js} +1 -1
  30. package/dist/assets/{FlagshipShowcase-DJ8Gxk_G.js → FlagshipShowcase-BHe-31yE.js} +1 -1
  31. package/dist/assets/{FlashcardsApp-CLNo4WX7.js → FlashcardsApp-Cs7PORkH.js} +1 -1
  32. package/dist/assets/{ForecastPanel-PBO2-dgS.js → ForecastPanel-BrfHS_Dm.js} +1 -1
  33. package/dist/assets/{GalleryApp-DM03CMRy.js → GalleryApp-VEc5loz4.js} +1 -1
  34. package/dist/assets/{HonestByDesign-Dqyth6nW.js → HonestByDesign-DsAzveYU.js} +1 -1
  35. package/dist/assets/{HowItWorks-C0zosIvq.js → HowItWorks-_ek4B7ia.js} +1 -1
  36. package/dist/assets/{LegalApp-DZBdExTy.js → LegalApp-jexr9Ljt.js} +1 -1
  37. package/dist/assets/{LegalMarkdownDocument-CSZhRG5r.js → LegalMarkdownDocument-01Tz7Pp4.js} +1 -1
  38. package/dist/assets/{LegalPageShell-DTeXqWyc.js → LegalPageShell-DsgBihfP.js} +1 -1
  39. package/dist/assets/{LeverPanel-aZfhtVJX.js → LeverPanel-IONjaat2.js} +1 -1
  40. package/dist/assets/{Library-D2XGNXz7.js → Library-gY4a_JKb.js} +1 -1
  41. package/dist/assets/{LibraryOverlay-B2WQSgwr.js → LibraryOverlay-DdOW7ypW.js} +1 -1
  42. package/dist/assets/LiveApp-CvgisDd0.js +61 -0
  43. package/dist/assets/{LiveApp-BVZGpJ1S.css → LiveApp-D2QFBykD.css} +1 -1
  44. package/dist/assets/LiveSettings-sWIu-zl5.js +6 -0
  45. package/dist/assets/{MindMapViewerDrawer-YYyZqmAd.js → MindMapViewerDrawer--AOShADD.js} +1 -1
  46. package/dist/assets/{MindShape-mTlN5mPZ.js → MindShape-DDL4X-e5.js} +1 -1
  47. package/dist/assets/{PinToDashboard-_kIOHs0k.js → PinToDashboard-DBZjKpiA.js} +1 -1
  48. package/dist/assets/{PlanReview-33V8GTNB.js → PlanReview-D0KjJqji.js} +1 -1
  49. package/dist/assets/{Presence-CzLJIeSD.js → Presence-DZC81_y4.js} +1 -1
  50. package/dist/assets/{PresentationDeck-BDoGecxr.js → PresentationDeck-DHtbOg0G.js} +1 -1
  51. package/dist/assets/{PrismApp-PfBTFhMF.js → PrismApp-DQ5p9pDb.js} +2 -2
  52. package/dist/assets/{PrismAskController-DbQDrlU9.js → PrismAskController-KVoYxV_d.js} +1 -1
  53. package/dist/assets/{PrismBriefingPlayer-1fvlfLR8.js → PrismBriefingPlayer-X4nTg2tZ.js} +2 -2
  54. package/dist/assets/{PrismOverlay-B7lEspdu.js → PrismOverlay-DJ-JBI6j.js} +4 -4
  55. package/dist/assets/{PrivacyApp-CR4lRs0L.js → PrivacyApp-Df8FcjKa.js} +1 -1
  56. package/dist/assets/{Recap-H5fhj5Tc.js → Recap-D3nAqmLK.js} +1 -1
  57. package/dist/assets/{ReelJelly-3jSVsJsy.js → ReelJelly-BCMS6a1u.js} +1 -1
  58. package/dist/assets/{RehearsalPanel-BVgjrOPg.js → RehearsalPanel-CThmKYOO.js} +1 -1
  59. package/dist/assets/ReplayCard-B5njgafT.js +2 -0
  60. package/dist/assets/{ReplayOverlay-DXmVdeIr.js → ReplayOverlay-CKTMSGuA.js} +1 -1
  61. package/dist/assets/{RewindOverlay-BusfWeFq.js → RewindOverlay-D6TQvplO.js} +1 -1
  62. package/dist/assets/{RippleApp-9KrJPYgN.js → RippleApp-DCAveryn.js} +2 -2
  63. package/dist/assets/{RippleAskController-CO9wE7hU.js → RippleAskController-DQVRFV30.js} +1 -1
  64. package/dist/assets/{RippleOverlay-DMHLbfh8.js → RippleOverlay-DmC4C72P.js} +2 -2
  65. package/dist/assets/{SeeDontRead-C389viue.js → SeeDontRead-CzIEW_Y7.js} +1 -1
  66. package/dist/assets/ShareModal-DtXKAwWu.js +32 -0
  67. package/dist/assets/{ShipCascade-BUtwvQoW.js → ShipCascade-B71VnE85.js} +1 -1
  68. package/dist/assets/{ShipCourse-B7lG6DYW.js → ShipCourse-BS4lT6xe.js} +1 -1
  69. package/dist/assets/{ShipHotspots-Bj2CovtT.js → ShipHotspots-CGQN_uoM.js} +1 -1
  70. package/dist/assets/{ShipIncident-DcmindmE.js → ShipIncident-C--FrQ1N.js} +1 -1
  71. package/dist/assets/{ShipMigration-s0hVjDQl.js → ShipMigration-C4fE3pL7.js} +1 -1
  72. package/dist/assets/{ShipOnboarding-ekbHL7OH.js → ShipOnboarding-BR3iwj8v.js} +1 -1
  73. package/dist/assets/{ShipRead-BVNgQT6L.js → ShipRead-DYHgvWuI.js} +1 -1
  74. package/dist/assets/{ShipRollout-BdUQzMyP.js → ShipRollout-D-vQsNmF.js} +1 -1
  75. package/dist/assets/{ShipSuggestions-B6fKYh8L.js → ShipSuggestions-BICGN1lD.js} +1 -1
  76. package/dist/assets/{ShipWorkspace-3D3Rrs1p.js → ShipWorkspace-CVkhvrlm.js} +1 -1
  77. package/dist/assets/{SignatureLoop-C60r8Wm5.js → SignatureLoop-BwCgKOcz.js} +1 -1
  78. package/dist/assets/{SynthesisApp-vJ2Jq0Qe.js → SynthesisApp-DHKlVoSg.js} +2 -2
  79. package/dist/assets/{SynthesisOverlay-CkERphvG.js → SynthesisOverlay-ezT4gd3q.js} +1 -1
  80. package/dist/assets/{TermsApp-C70tW6m6.js → TermsApp-uGgQFz8d.js} +1 -1
  81. package/dist/assets/{TopicCanvas-CT0eSj2M.js → TopicCanvas-CTTBp5sg.js} +2 -2
  82. package/dist/assets/{TourPrism-BvucSkcs.js → TourPrism-dXsE-USz.js} +1 -1
  83. package/dist/assets/{TrackerTile-CasZNmt4.js → TrackerTile-bEni07HA.js} +2 -2
  84. package/dist/assets/{TwoSurfaces-C90X7Aj5.js → TwoSurfaces-CjFg-pUQ.js} +1 -1
  85. package/dist/assets/{UnderstoodPanel-CHPD2Ttj.js → UnderstoodPanel-DFKf9Y3r.js} +1 -1
  86. package/dist/assets/{WhyMachineOverlay-CB0_n6Sy.js → WhyMachineOverlay-DYG-WIjA.js} +1 -1
  87. package/dist/assets/{WowFeatures-Ci_H5QYX.js → WowFeatures-lLtU2gPc.js} +1 -1
  88. package/dist/assets/{ZoomDeck-BQHO79ZU.js → ZoomDeck-D_PnwGAY.js} +1 -1
  89. package/dist/assets/{alternateFinishes-DZ-rkpkX.js → alternateFinishes-CPbjDTTL.js} +1 -1
  90. package/dist/assets/{annotationAuto-B0nihA4F.js → annotationAuto-Dq2Ae6Co.js} +1 -1
  91. package/dist/assets/{annotationReel-BcU9Q0Sw.js → annotationReel-5OHglRgk.js} +1 -1
  92. package/dist/assets/backup-DnPfX6cD.js +1 -0
  93. package/dist/assets/canvas-DBaJcTKZ.js +1 -0
  94. package/dist/assets/{catalog-Dqaq2YFd.js → catalog-C_g3qPPQ.js} +1 -1
  95. package/dist/assets/chapters-BX_F_H3C.js +1 -0
  96. package/dist/assets/{dashboardEvents-DR9d_c74.js → dashboardEvents-DCQLIdy6.js} +2 -2
  97. package/dist/assets/{dist-BFx3nZg4.js → dist-DrPlQeYR.js} +1 -1
  98. package/dist/assets/{fit-0HxU-rtB.js → fit-DqcemO7k.js} +1 -1
  99. package/dist/assets/{generateLive-D4B30fnF.js → generateLive-CflgZ7Wt.js} +18 -18
  100. package/dist/assets/homeTarget-BcZYH3DY.js +1 -0
  101. package/dist/assets/{index-y8GL67bB.js → index-BlCH2LG4.js} +3 -3
  102. package/dist/assets/{jspdf.es.min-C-Pf79px.js → jspdf.es.min-C9encxHf.js} +1 -1
  103. package/dist/assets/kokoro-BCXTWbLb.js +1 -0
  104. package/dist/assets/{lib-VFqp6Y3w.js → lib-3J_9keOc.js} +1 -1
  105. package/dist/assets/{liveSchema-CJ49PX5R.js → liveSchema-DNg9x7Wk.js} +3 -2
  106. package/dist/assets/{mastery-BPjxP0fN.js → mastery-D7xYf5D7.js} +1 -1
  107. package/dist/assets/{motion-S0NRruNj.js → motion-BYK1NIl0.js} +1 -1
  108. package/dist/assets/{neighborhoods-C-1Tjr1r.js → neighborhoods-B0woY8Ah.js} +1 -1
  109. package/dist/assets/{notes-lROPCorS.js → notes-0ZgJ597y.js} +1 -1
  110. package/dist/assets/{pdf-Df7PCH7q.js → pdf-DuD2LFXS.js} +1 -1
  111. package/dist/assets/{perfProbe-COAp9PAa.js → perfProbe-CTSVS7u0.js} +1 -1
  112. package/dist/assets/{pin-CXSuPJYL.js → pin-zUYIWzGr.js} +1 -1
  113. package/dist/assets/{portal-DMw7C32j.js → portal-deBu1VaC.js} +1 -1
  114. package/dist/assets/{pptxgen.es-CvTILmV9.js → pptxgen.es-JvVtQi0_.js} +1 -1
  115. package/dist/assets/{prewarm--whjQhWJ.js → prewarm-DSFwU9lQ.js} +1 -1
  116. package/dist/assets/{quietHours-BvcsBKKK.js → quietHours-BJAGhffA.js} +1 -1
  117. package/dist/assets/{registry-BPvIPLke.js → registry-45IskpHI.js} +1 -1
  118. package/dist/assets/{registry-2v0jlh5Q.js → registry-BGptAE_J.js} +2 -2
  119. package/dist/assets/{registry-D_URPoL4.js → registry-BJ_F0mH5.js} +1 -1
  120. package/dist/assets/{registry-B8DStMJk.js → registry-BSewKzG5.js} +1 -1
  121. package/dist/assets/{registry-DUvXX_d0.js → registry-Bo9A1rtO.js} +1 -1
  122. package/dist/assets/{registry-CKjKq6ct.js → registry-BpXS6B5V.js} +1 -1
  123. package/dist/assets/{registry-aazwkBJp.js → registry-BvJYizNq.js} +1 -1
  124. package/dist/assets/{registry-DCI_BeFJ.js → registry-C1y9zCwl.js} +1 -1
  125. package/dist/assets/{registry-Buq5uuCv.js → registry-CS0QdcT2.js} +1 -1
  126. package/dist/assets/{registry-B940W2j5.js → registry-Caz06xkK.js} +1 -1
  127. package/dist/assets/{registry-Cg7qUZPS.js → registry-CmEE2X59.js} +1 -1
  128. package/dist/assets/{registry-DujBAgn_.js → registry-D5sMUiCn.js} +1 -1
  129. package/dist/assets/{registry-Cix-yqch.js → registry-DLnp7IOd.js} +1 -1
  130. package/dist/assets/{registry-DDLSYDVA.js → registry-DOsi_pfu.js} +1 -1
  131. package/dist/assets/{registry-BgGeRiDA.js → registry-DWpOzObR.js} +1 -1
  132. package/dist/assets/{registry-Dpb8EXHn.js → registry-DilxWEq7.js} +1 -1
  133. package/dist/assets/{registry-DJinB5ye.js → registry-Dn10bL9p.js} +1 -1
  134. package/dist/assets/{registry-zRPjWNl5.js → registry-DtJTiMeL.js} +1 -1
  135. package/dist/assets/{registry-CEVrY72Z.js → registry-FPqHPyMt.js} +1 -1
  136. package/dist/assets/{registry-DI1wSG1Y.js → registry-PAcF90vq.js} +1 -1
  137. package/dist/assets/{registry-CAusoyBh.js → registry-eoPQWB7M.js} +1 -1
  138. package/dist/assets/{registry-1GuPBfQK.js → registry-k5Lqb0OP.js} +1 -1
  139. package/dist/assets/{registry-QcULZpdE.js → registry-yQqBxBwc.js} +2 -2
  140. package/dist/assets/{relate-A9ZeaaAI.js → relate-B23jli7z.js} +1 -1
  141. package/dist/assets/{run-C_0B_41W.js → run-Dc2ZJz6n.js} +1 -1
  142. package/dist/assets/search-Be63DJkp.js +1 -0
  143. package/dist/assets/shapes-Cw7tCHIp.js +1 -0
  144. package/dist/assets/{shikiHighlight-DUCYbsJ2.js → shikiHighlight-ZFDUBGQi.js} +1 -1
  145. package/dist/assets/{store-DgG0C1Qx.js → store-BMRQiV1z.js} +1 -1
  146. package/dist/assets/{store-BFC7DZcg.js → store-Dn23_Ymr.js} +1 -1
  147. package/dist/assets/{store-BFrJaSxJ.js → store-DoJn3lBF.js} +1 -1
  148. package/dist/assets/{store-4JNNn732.js → store-DrBDvqXF.js} +1 -1
  149. package/dist/assets/threads-DxSb3F0U.js +1 -0
  150. package/dist/assets/{useDashboardLoop-B6ByHWoE.js → useDashboardLoop-8emjL6b-.js} +3 -3
  151. package/dist/assets/useLiveConfig-BhFHwoy3.js +1 -0
  152. package/dist/assets/{useSpatialCanvas-DogK9457.js → useSpatialCanvas-DZhSpnC6.js} +1 -1
  153. package/dist/assets/{useSpotlightWalk-rMbmNBKK.js → useSpotlightWalk-sP3ePKv0.js} +1 -1
  154. package/dist/assets/{useSrsCards-CagZefwX.js → useSrsCards-BHQHQ7hm.js} +1 -1
  155. package/dist/assets/{useStudy-Bflreq2a.js → useStudy-Dh598Dw8.js} +1 -1
  156. package/dist/assets/{useZoomGesture-CYc3tf2z.js → useZoomGesture-CQdTOGD2.js} +1 -1
  157. package/dist/index.html +1 -1
  158. package/package.json +1 -1
  159. package/dist/assets/DashboardLoopRuntime-CFXPx3v_.js +0 -1
  160. package/dist/assets/FeatureUseNotice-CWt7gOwS.css +0 -1
  161. package/dist/assets/LiveApp-B9zwXlGC.js +0 -61
  162. package/dist/assets/LiveSettings-D9OcWlm6.js +0 -6
  163. package/dist/assets/ReplayCard-BpYO5vX-.js +0 -2
  164. package/dist/assets/ShareModal-ClnEkudw.js +0 -32
  165. package/dist/assets/backup-c-Btapzp.js +0 -1
  166. package/dist/assets/canvas-QTEIiK23.js +0 -1
  167. package/dist/assets/chapters-BiUsDClQ.js +0 -1
  168. package/dist/assets/homeTarget-BgWKI_E1.js +0 -1
  169. package/dist/assets/kokoro-D4GKpSL0.js +0 -1
  170. package/dist/assets/search-DnjHupRf.js +0 -1
  171. package/dist/assets/shapes-RqjqC0ay.js +0 -1
  172. package/dist/assets/useLiveConfig-X9Wxh90k.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-y8GL67bB.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-VFqp6Y3w.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-BlCH2LG4.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-3J_9keOc.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};