@mavea/mavea 1.0.14 → 1.0.16

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 (145) hide show
  1. package/dist/.vite/manifest.json +537 -537
  2. package/dist/assets/{AppCommandPalette-D5nd3VO_.js → AppCommandPalette-Dzl_DbDd.js} +1 -1
  3. package/dist/assets/{BlockEmpty-BZn5ETuL.js → BlockEmpty-B5Q0hgDJ.js} +1 -1
  4. package/dist/assets/{BriefingPlayer-JnrrvxYE.js → BriefingPlayer-Dy7JCGm-.js} +1 -1
  5. package/dist/assets/{CanvasSkeleton-D00MzkIV.js → CanvasSkeleton-CJwPWnFG.js} +2 -2
  6. package/dist/assets/{CheckLogRail--9iHharq.js → CheckLogRail-DNtXlkcR.js} +1 -1
  7. package/dist/assets/{CodeOutput-408gGn9V.js → CodeOutput-Bg64AyKu.js} +1 -1
  8. package/dist/assets/{CommandPalette-BIUG6Sn7.js → CommandPalette-mO1FEvlx.js} +1 -1
  9. package/dist/assets/{CourseLessonReader-Yp2qEsDx.js → CourseLessonReader-CKfvBMtL.js} +2 -2
  10. package/dist/assets/{CourseRail-BVvnoWBR.js → CourseRail-CRcB319H.js} +1 -1
  11. package/dist/assets/{CoursesApp-0N_F1p_u.js → CoursesApp-BbCGxAav.js} +2 -2
  12. package/dist/assets/{CrossExamPanel-CocJ_GxK.js → CrossExamPanel-Deywo95y.js} +1 -1
  13. package/dist/assets/{DashPresent-G8Actzx7.js → DashPresent-BEm1tGse.js} +1 -1
  14. package/dist/assets/{DashboardDetail-BpSe8wBT.js → DashboardDetail-tK6FpgtH.js} +2 -2
  15. package/dist/assets/DashboardLoopRuntime-Cis4WMqk.js +1 -0
  16. package/dist/assets/{DashboardOverview-Cdhy4x4b.js → DashboardOverview-DrdqBgds.js} +1 -1
  17. package/dist/assets/{DashboardSettings-ChPkh0t4.js → DashboardSettings-CBhzLW0P.js} +1 -1
  18. package/dist/assets/{DashboardsApp-mp-V3d1i.js → DashboardsApp-Dc43FBIi.js} +2 -2
  19. package/dist/assets/{DeepZoomApp-mZHk132w.js → DeepZoomApp-Chz6laKc.js} +1 -1
  20. package/dist/assets/{DelegatePanel-Dtl0oHaA.js → DelegatePanel-DmtTY_lE.js} +1 -1
  21. package/dist/assets/{DemoGallery-By2LV_U_.js → DemoGallery-zw3d7ap9.js} +1 -1
  22. package/dist/assets/{DropSelect-CeCNaut0.js → DropSelect-Bo2Oyi-2.js} +1 -1
  23. package/dist/assets/{ExportModal-CZ1-Vihb.js → ExportModal-DICXavg9.js} +2 -2
  24. package/dist/assets/{ExtractionPreview-CRkYnwCo.js → ExtractionPreview-C636AVw-.js} +1 -1
  25. package/dist/assets/{FlagshipCTA-DNtUnl0n.js → FlagshipCTA-B-7nH43r.js} +1 -1
  26. package/dist/assets/{FlagshipCommandPalette-DpP8joXb.js → FlagshipCommandPalette-DgTL_Kjj.js} +1 -1
  27. package/dist/assets/{FlagshipShowcase-CoOezhT-.js → FlagshipShowcase-CbAC2s4X.js} +1 -1
  28. package/dist/assets/{FlashcardsApp-REEdMdKG.js → FlashcardsApp-CatYcaJJ.js} +1 -1
  29. package/dist/assets/{ForecastPanel-CpR32hwb.js → ForecastPanel-BOG361kr.js} +1 -1
  30. package/dist/assets/{GalleryApp-DJZRHjMH.js → GalleryApp-uW6b1Y0d.js} +1 -1
  31. package/dist/assets/{HonestByDesign-CiOj_fA7.js → HonestByDesign-hCxc0A7b.js} +1 -1
  32. package/dist/assets/{HowItWorks-Ch2CgkVd.js → HowItWorks-BlbQcUxx.js} +1 -1
  33. package/dist/assets/{LegalApp-BisEJynn.js → LegalApp-sCZjJYWx.js} +1 -1
  34. package/dist/assets/{LegalMarkdownDocument-B7Yj_aRR.js → LegalMarkdownDocument-Bk3U7ChN.js} +1 -1
  35. package/dist/assets/{LegalPageShell-k9e22JlP.js → LegalPageShell-BsgRV7aL.js} +1 -1
  36. package/dist/assets/{LeverPanel-CXSDqinv.js → LeverPanel-CP32QcIf.js} +1 -1
  37. package/dist/assets/{Library-CmpF6gOU.js → Library-CJTnp1pC.js} +1 -1
  38. package/dist/assets/{LibraryOverlay-BErgFYxu.js → LibraryOverlay-geQRGAzG.js} +1 -1
  39. package/dist/assets/{LiveApp-DZ7t3P1O.js → LiveApp-C0BN0o3_.js} +4 -4
  40. package/dist/assets/{LiveSettings-BY5E3Ka8.js → LiveSettings-CzSXXMoo.js} +3 -3
  41. package/dist/assets/{MindMapViewerDrawer-Bc_qHdm9.js → MindMapViewerDrawer-7HLErRQF.js} +1 -1
  42. package/dist/assets/{MindShape-ULBAjrfD.js → MindShape-Bhu4yoIj.js} +1 -1
  43. package/dist/assets/MindShape-DjHtMW_5.css +1 -0
  44. package/dist/assets/{PinToDashboard-WgEX4YoY.js → PinToDashboard-Cj8S9XKC.js} +1 -1
  45. package/dist/assets/{PlanReview-Dd3sxa_o.js → PlanReview-3NxZD9wt.js} +1 -1
  46. package/dist/assets/{Presence-DgzicbeF.js → Presence-DDxb6yE5.js} +1 -1
  47. package/dist/assets/{PresentationDeck-Cx26X-wh.js → PresentationDeck-B6AHRYEA.js} +1 -1
  48. package/dist/assets/{PrismApp-FPqASfhZ.js → PrismApp-BlPpWxao.js} +2 -2
  49. package/dist/assets/{PrismAskController-Ds1tSE9S.js → PrismAskController-DUvOTeW9.js} +1 -1
  50. package/dist/assets/{PrismBriefingPlayer-BzqCK6JP.js → PrismBriefingPlayer-Bmo9tOGX.js} +2 -2
  51. package/dist/assets/{PrismOverlay-Cq3DBJ-N.js → PrismOverlay-9Q_14eEO.js} +4 -4
  52. package/dist/assets/{PrivacyApp-B8PGc-x5.js → PrivacyApp-CatB3OpJ.js} +1 -1
  53. package/dist/assets/{Recap-RwhzouRe.js → Recap-DkKrrqi5.js} +1 -1
  54. package/dist/assets/{ReelJelly-B2JQsaRI.js → ReelJelly-DCD4bG10.js} +1 -1
  55. package/dist/assets/{ReplayCard-DUBvQLBt.js → ReplayCard-Bz69tOST.js} +2 -2
  56. package/dist/assets/{ReplayOverlay-CzUFHdjK.js → ReplayOverlay-DbJX08Kr.js} +1 -1
  57. package/dist/assets/{RewindOverlay-CMx_cVxX.js → RewindOverlay-Bop4a63b.js} +1 -1
  58. package/dist/assets/{RippleApp-B186b8KW.js → RippleApp-u3hCfb5b.js} +2 -2
  59. package/dist/assets/{RippleAskController-BA_kGOmL.js → RippleAskController-CK4iSwT0.js} +1 -1
  60. package/dist/assets/{RippleOverlay-CkbkIgzC.js → RippleOverlay-BM_B9JEc.js} +2 -2
  61. package/dist/assets/{SeeDontRead-BZ4xFEKE.js → SeeDontRead-CGGKmvBV.js} +1 -1
  62. package/dist/assets/{ShareModal-DNpc-U9U.js → ShareModal-D4En6Y3L.js} +1 -1
  63. package/dist/assets/{ShipCascade-BmTE193h.js → ShipCascade-k_GWrcau.js} +1 -1
  64. package/dist/assets/{ShipCourse-K2vnS3Sw.js → ShipCourse-BQOY4MyI.js} +1 -1
  65. package/dist/assets/{ShipHotspots-DILwqPxh.js → ShipHotspots-vLRK0w_b.js} +1 -1
  66. package/dist/assets/{ShipIncident-DXXciEP7.js → ShipIncident-BWxerYtX.js} +1 -1
  67. package/dist/assets/{ShipMigration-rhBm0Tre.js → ShipMigration-OgAGEbjm.js} +1 -1
  68. package/dist/assets/{ShipOnboarding-9KCVVAkX.js → ShipOnboarding-B_2IEq3N.js} +1 -1
  69. package/dist/assets/{ShipRead-CMe1DNik.js → ShipRead--gGqg2SE.js} +1 -1
  70. package/dist/assets/{ShipRollout-BA4x-btU.js → ShipRollout-B_U2P8Yw.js} +1 -1
  71. package/dist/assets/{ShipSuggestions-Jm45jfFl.js → ShipSuggestions-D9coTmgw.js} +1 -1
  72. package/dist/assets/{ShipWorkspace--x-q6Ly3.js → ShipWorkspace-BmdcHZXa.js} +1 -1
  73. package/dist/assets/{SignatureLoop-B_cHyXgU.js → SignatureLoop-KA6Cf93g.js} +1 -1
  74. package/dist/assets/{SynthesisApp-CvR_8g1C.js → SynthesisApp-BCBhCJhx.js} +2 -2
  75. package/dist/assets/{SynthesisOverlay-DFFD69hf.js → SynthesisOverlay-BuGIeaKq.js} +1 -1
  76. package/dist/assets/{TermsApp-BxLgLSna.js → TermsApp-CleIlDtR.js} +1 -1
  77. package/dist/assets/{TopicCanvas-CKvJb_8Y.js → TopicCanvas-BRu3xVL8.js} +2 -2
  78. package/dist/assets/{TourPrism-bqOmSZ9T.js → TourPrism-zbVLe2ag.js} +1 -1
  79. package/dist/assets/{TrackerTile-BuAVmOyi.js → TrackerTile-D9Wa3CSq.js} +2 -2
  80. package/dist/assets/{TwoSurfaces-CjtKXWJr.js → TwoSurfaces-TyWXgAdq.js} +1 -1
  81. package/dist/assets/{UnderstoodPanel-BWFbpk9o.js → UnderstoodPanel-BS9OhgLJ.js} +1 -1
  82. package/dist/assets/{WhyMachineOverlay-D6pGEE78.js → WhyMachineOverlay-B-KJhCjr.js} +1 -1
  83. package/dist/assets/{WowFeatures-CLx5VoKn.js → WowFeatures-Bv1-PmXF.js} +1 -1
  84. package/dist/assets/{ZoomDeck-R6MLUt4Z.js → ZoomDeck-C2Q6xbgX.js} +1 -1
  85. package/dist/assets/{alternateFinishes-C8DBTwo_.js → alternateFinishes-BG6svkXG.js} +1 -1
  86. package/dist/assets/{annotationAuto-ofVcqRve.js → annotationAuto-BpBsjbDQ.js} +1 -1
  87. package/dist/assets/{annotationReel-CdAmTPlv.js → annotationReel-yzysA-Gr.js} +1 -1
  88. package/dist/assets/{backup-TgoSxdwf.js → backup-BdeBr3wq.js} +1 -1
  89. package/dist/assets/canvas-Ep2Kfupo.js +1 -0
  90. package/dist/assets/{catalog-BrmxA4bP.js → catalog-DF7YTNju.js} +1 -1
  91. package/dist/assets/{dashboardEvents-DT6ye9n7.js → dashboardEvents-C_XvGVLJ.js} +1 -1
  92. package/dist/assets/{dist-COAFD72d.js → dist-CBEt6Q8V.js} +1 -1
  93. package/dist/assets/{fit-BtKObM5Q.js → fit-B1LJWvMO.js} +1 -1
  94. package/dist/assets/{generateLive-BvE3kOrf.js → generateLive-ChhSWKbq.js} +1 -1
  95. package/dist/assets/{index-DOpl5xzv.js → index-C7H7A1rW.js} +3 -3
  96. package/dist/assets/{jspdf.es.min-DSMzCXtv.js → jspdf.es.min-DutJi91O.js} +1 -1
  97. package/dist/assets/{kokoro-B-MNB16v.js → kokoro-kGWf7M0e.js} +1 -1
  98. package/dist/assets/{lib-BLt1wpw2.js → lib-C7zXL8h0.js} +1 -1
  99. package/dist/assets/{liveSchema-DbjsSolX.js → liveSchema-DCL21WdS.js} +1 -1
  100. package/dist/assets/{motion-DKmdzFji.js → motion-dfA87zbb.js} +1 -1
  101. package/dist/assets/{notes-D_uDKcr5.js → notes-DblI4Ko_.js} +1 -1
  102. package/dist/assets/{pdf-uUFiTOYW.js → pdf-DFYCstCC.js} +1 -1
  103. package/dist/assets/{perfProbe-DIAQR2bi.js → perfProbe-CCSPF3EA.js} +1 -1
  104. package/dist/assets/{pin-DoSzEmTm.js → pin-D5_Ebl_s.js} +1 -1
  105. package/dist/assets/{portal-4sKB1Tgc.js → portal-BndazODr.js} +1 -1
  106. package/dist/assets/{pptxgen.es-BVKKMlmO.js → pptxgen.es-CwCkoJdp.js} +1 -1
  107. package/dist/assets/{prewarm-D31Si_08.js → prewarm--KODwuMi.js} +1 -1
  108. package/dist/assets/{quietHours-sfkvrkJv.js → quietHours-DVPplPtM.js} +1 -1
  109. package/dist/assets/{registry-B3RfPAd6.js → registry-0E1uKPCI.js} +1 -1
  110. package/dist/assets/{registry-DzNYBJ_a.js → registry-B3V5-8v0.js} +1 -1
  111. package/dist/assets/{registry-BnSnMnyk.js → registry-B51MhOLx.js} +2 -2
  112. package/dist/assets/{registry-CkXIaQmB.js → registry-BH6FfyZk.js} +1 -1
  113. package/dist/assets/{registry-DxtkIiAV.js → registry-Ba9xMFO4.js} +2 -2
  114. package/dist/assets/{registry-Bj8q4igW.js → registry-BlB0FYf0.js} +1 -1
  115. package/dist/assets/{registry-BOS6AdnB.js → registry-C30HGS2G.js} +1 -1
  116. package/dist/assets/{registry-CYnKlcEy.js → registry-CIa1EU-G.js} +1 -1
  117. package/dist/assets/{registry-d3dHoriR.js → registry-COxprhRN.js} +1 -1
  118. package/dist/assets/{registry-BWzoIPXp.js → registry-CWkBxxsI.js} +1 -1
  119. package/dist/assets/{registry-DOsiT4_6.js → registry-D-qEhm1d.js} +1 -1
  120. package/dist/assets/{registry-Chzw1Udo.js → registry-D7rspCZr.js} +1 -1
  121. package/dist/assets/{registry-DsjrEa0W.js → registry-DNzF-nvu.js} +1 -1
  122. package/dist/assets/{registry-BpccSYOo.js → registry-DQIm_hbI.js} +1 -1
  123. package/dist/assets/{registry-CAZ7ubmd.js → registry-Dphh5ADP.js} +1 -1
  124. package/dist/assets/{registry-NdA9xh9G.js → registry-DrNMbrA_.js} +1 -1
  125. package/dist/assets/{registry-B3u3--Kv.js → registry-Dvv84L9K.js} +1 -1
  126. package/dist/assets/{registry-VRtsyPV7.js → registry-M3VgAiQv.js} +1 -1
  127. package/dist/assets/{registry-C4KB6Ls0.js → registry-Pr5IKqro.js} +1 -1
  128. package/dist/assets/{registry-fLKnCnS5.js → registry-WJE8Z0T1.js} +1 -1
  129. package/dist/assets/{registry--yZ1HduK.js → registry-hsSlT6pi.js} +1 -1
  130. package/dist/assets/{registry-DssqYPgu.js → registry-nG70-amx.js} +1 -1
  131. package/dist/assets/{registry-CrKVDfq8.js → registry-wJhGGVuP.js} +1 -1
  132. package/dist/assets/{relate-BG7aZWOq.js → relate-DxAi8xpo.js} +1 -1
  133. package/dist/assets/{shikiHighlight-D9nfk5pW.js → shikiHighlight-B_TEagaE.js} +1 -1
  134. package/dist/assets/{useDashboardLoop-CJ0M7ZXf.js → useDashboardLoop-DzbRz-V9.js} +3 -3
  135. package/dist/assets/{useLiveConfig-DIvKKKpP.js → useLiveConfig-Lm0cYTcu.js} +1 -1
  136. package/dist/assets/{useSpatialCanvas-L0r29F7F.js → useSpatialCanvas-D_C8VoCy.js} +1 -1
  137. package/dist/assets/{useSpotlightWalk-oyvTWe20.js → useSpotlightWalk-CCQT0-_g.js} +1 -1
  138. package/dist/assets/{useSrsCards-BLNBqRe7.js → useSrsCards-BKCPBPYw.js} +1 -1
  139. package/dist/assets/{useStudy-hvN-iGz0.js → useStudy-Diy4ITBm.js} +1 -1
  140. package/dist/assets/{useZoomGesture-Dl_Cfmxm.js → useZoomGesture-B82XnSfi.js} +1 -1
  141. package/dist/index.html +1 -1
  142. package/package.json +17 -1
  143. package/dist/assets/DashboardLoopRuntime-CHPDkO3Y.js +0 -1
  144. package/dist/assets/MindShape-DGOmKwov.css +0 -1
  145. package/dist/assets/canvas-BrUiUI9Q.js +0 -1
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/alternateFinishes-C8DBTwo_.js","assets/index-DOpl5xzv.js","assets/chunk-BVpWp9h4.js","assets/jsx-runtime-DaSxXjOY.js","assets/react-BQSORdFI.js","assets/lazyRetry-D50B1UMY.js","assets/index-CepQEz75.css","assets/ReelJelly-B2JQsaRI.js","assets/geometry-DXAbnb0J.js","assets/penStrokes-DlHnO9xE.js","assets/gesture-Bouqjr3g.js"])))=>i.map(i=>d[i]);
2
- import{t as e}from"./react-BQSORdFI.js";import{t}from"./jsx-runtime-DaSxXjOY.js";import{J as n,ht as r,q as i}from"./index-DOpl5xzv.js";import{g as a,x as o}from"./fit-BtKObM5Q.js";var s=e(),c=[`stat`,`metrics`,`ranked`,`quote`,`list`,`concept`,`conceptmap`,`qa`,`chat`,`diagram`,`steps`,`recap`],l={voiceover:150,heading:32,title:140,quote:140,answer:150,takeaway:64,label:24,message:110,subtitle:120},u={stat:{value:9,unit:6,label:24,prior:56},metrics:{items:4,label:22,next:80},ranked:{items:5,title:24,label:20,score:10},quote:{quote:130,highlight:24,attribution:24},list:{items:4,item:64},concept:{title:64,subtitle:110,tag:22},conceptmap:{center:16,nodes:5,node:18},qa:{question:84,answer:150},chat:{messages:4,message:110},diagram:{label:24,equation:36,note:80},steps:{stops:5,label:24},recap:{topic:24,metrics:4,label:20,value:12}},d={min:2600,default:3400,intro:3e3,outro:3200};function f(e,t){let n=(e??``).trim().replace(/\s+/g,` `);if(n.length<=t)return n;let r=n.slice(0,t),i=r.lastIndexOf(` `);return`${(i>t*.6?r.slice(0,i):r).trimEnd()}…`}function p(e,t=24){return e.replace(/\S+/g,e=>{if(e.length<=t)return e;let n=Math.max(0,Math.floor(t/2)-1),r=Math.max(0,t-n-1);return`${e.slice(0,n)}…${e.slice(e.length-r)}`})}var m=r();function h(e){let t=0;for(let n of e.split(/\s+/))n.length>t&&(t=n.length);return Math.max(1,t)}function g(e,t,n=78){let r=o(Math.ceil(e.length*(78/n)),t),i=n/h(e);for(;r<t.length-1&&t[r].size>i;)r+=1;let s=t[r];return{tier:r,style:{fontSize:`calc(var(--ru) * ${s.size})`,lineHeight:s.line,...a(s.maxLines)}}}function _(e,t){let n=o(e.length,t),r=t[n];return{tier:n,style:{fontSize:`calc(var(--ru) * ${r.size})`,lineHeight:r.line,whiteSpace:`nowrap`,display:`inline-block`}}}function ee(...e){return{minHeight:`calc(${e.map(({ladder:e,tier:t,padRu:n=0})=>{let r=e[t];return`(var(--ru) * ${r.size} * ${r.line} * ${r.maxLines} + var(--ru) * ${n})`}).join(` + `)})`}}var v=[{upTo:12,size:9.6,line:.98,maxLines:2},{upTo:26,size:7.4,line:1.02,maxLines:3},{upTo:48,size:6,line:1.06,maxLines:5},{upTo:80,size:5,line:1.1,maxLines:6},{upTo:112,size:4.3,line:1.12,maxLines:7},{upTo:1/0,size:3.6,line:1.16,maxLines:8}],y=[{upTo:24,size:5.4,line:1.05,maxLines:2},{upTo:48,size:4.5,line:1.08,maxLines:3},{upTo:84,size:3.8,line:1.12,maxLines:5},{upTo:116,size:3.3,line:1.16,maxLines:6},{upTo:1/0,size:3,line:1.18,maxLines:8}],b=[{upTo:60,size:5.5,line:1.2,maxLines:5},{upTo:95,size:4.6,line:1.24,maxLines:6},{upTo:1/0,size:3.8,line:1.3,maxLines:7}],x=[{upTo:90,size:3.1,line:1.4,maxLines:5},{upTo:130,size:2.8,line:1.42,maxLines:6},{upTo:180,size:2.6,line:1.45,maxLines:7},{upTo:1/0,size:2.4,line:1.45,maxLines:9}],te=[{upTo:7,size:8.4,line:.92,maxLines:1},{upTo:10,size:6.6,line:.94,maxLines:1},{upTo:14,size:5.2,line:.96,maxLines:1},{upTo:1/0,size:4,line:1,maxLines:1}],S=[{upTo:4,size:16,line:.9,maxLines:1},{upTo:6,size:11.5,line:.9,maxLines:1},{upTo:9,size:7.6,line:.92,maxLines:1},{upTo:12,size:5.8,line:.94,maxLines:1},{upTo:1/0,size:4.6,line:.94,maxLines:1}],ne=[{upTo:48,size:7.2,line:1.06,maxLines:5},{upTo:84,size:5.2,line:1.1,maxLines:6},{upTo:116,size:4.6,line:1.12,maxLines:7},{upTo:1/0,size:4.2,line:1.14,maxLines:8}],C=t();function re(e){let t=(0,m.c)(20),{slots:n}=e,r;t[0]===n.question?r=t[1]:(r=g(n.question,ne),t[0]=n.question,t[1]=r);let i=r,a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a={justifyContent:`center`},t[2]=a):a=t[2];let o=n.kicker||`Prompt`,s;t[3]===n.part?s=t[4]:(s=n.part&&(0,C.jsx)(`span`,{className:`reel-part-chip`,children:`Part ${n.part.index} of ${n.part.count}`}),t[3]=n.part,t[4]=s);let c;t[5]!==o||t[6]!==s?(c=(0,C.jsxs)(`div`,{className:`reel-eyebrow`,style:a,children:[o,s]}),t[5]=o,t[6]=s,t[7]=c):c=t[7];let l;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,C.jsx)(`span`,{"aria-hidden":`true`,children:`“`}),t[8]=l):l=t[8];let u;t[9]===n.question?u=t[10]:(u=(0,C.jsx)(`span`,{className:`q`,children:n.question}),t[9]=n.question,t[10]=u);let d;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,C.jsx)(`span`,{"aria-hidden":`true`,children:`”`}),t[11]=d):d=t[11];let f;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,C.jsx)(`span`,{className:`reel-caret`,"aria-hidden":`true`,style:{height:`0.81em`}}),t[12]=f):f=t[12];let p;t[13]!==i.style||t[14]!==i.tier||t[15]!==u?(p=(0,C.jsxs)(`div`,{className:`reel-prompt`,"data-fit-tier":i.tier,style:i.style,children:[l,u,d,f]}),t[13]=i.style,t[14]=i.tier,t[15]=u,t[16]=p):p=t[16];let h;return t[17]!==p||t[18]!==c?(h=(0,C.jsxs)(`div`,{className:`reel-frame-slide reel-fade`,children:[c,p]}),t[17]=p,t[18]=c,t[19]=h):h=t[19],h}function ie(e){let t=(0,m.c)(17),{slots:n}=e,r=n.tagline||`Talk to AI. See what it means.`,i;t[0]===r?i=t[1]:(i=g(r,y),t[0]=r,t[1]=i);let a=i,o;t[2]===n.statline?o=t[3]:(o=n.statline?g(n.statline,x):void 0,t[2]=n.statline,t[3]=o);let s=o,c;t[4]!==n.statline||t[5]!==s?(c=n.statline&&s&&(0,C.jsx)(`div`,{className:`reel-eyebrow`,"data-fit-tier":s.tier,style:s.style,children:n.statline}),t[4]=n.statline,t[5]=s,t[6]=c):c=t[6];let l=n.wordmark||`Mavéa`,u;t[7]===l?u=t[8]:(u=(0,C.jsx)(`div`,{className:`reel-wordmark-xl`,children:l}),t[7]=l,t[8]=u);let d;t[9]!==a.style||t[10]!==a.tier||t[11]!==r?(d=(0,C.jsx)(`div`,{className:`reel-tagline`,"data-fit-tier":a.tier,style:a.style,children:r}),t[9]=a.style,t[10]=a.tier,t[11]=r,t[12]=d):d=t[12];let f;return t[13]!==c||t[14]!==u||t[15]!==d?(f=(0,C.jsxs)(`div`,{className:`reel-frame-slide reel-fade`,children:[c,u,d]}),t[13]=c,t[14]=u,t[15]=d,t[16]=f):f=t[16],f}function w(e){let t=(0,m.c)(5),{kicker:n,children:r}=e,i;t[0]===n?i=t[1]:(i=(0,C.jsx)(`div`,{className:`reel-eyebrow`,children:(0,C.jsx)(`span`,{children:n})}),t[0]=n,t[1]=i);let a;return t[2]!==r||t[3]!==i?(a=(0,C.jsxs)(`div`,{className:`reel-card reel-fade`,children:[i,r]}),t[2]=r,t[3]=i,t[4]=a):a=t[4],a}function T({pct:e,color:t,delay:n=0}){let r=2*Math.PI*26,i=r*(1-Math.max(0,Math.min(100,e))/100);return(0,C.jsxs)(`svg`,{viewBox:`0 0 64 64`,style:{width:`calc(var(--ru) * 11)`,height:`calc(var(--ru) * 11)`,flexShrink:0},children:[(0,C.jsx)(`circle`,{cx:`32`,cy:`32`,r:26,fill:`none`,stroke:`rgba(0,0,0,0.08)`,strokeWidth:`6`}),(0,C.jsx)(`circle`,{cx:`32`,cy:`32`,r:26,fill:`none`,stroke:t,strokeWidth:`6`,strokeLinecap:`round`,transform:`rotate(-90 32 32)`,strokeDasharray:r,style:{"--len":r,"--to":i,strokeDashoffset:i,animation:`reel-ring 1.1s cubic-bezier(0.3,0.7,0.3,1) ${n}s both`}})]})}function ae({label:e,value:t,pct:n,color:r,delay:i=0}){return(0,C.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`calc(var(--ru) * 0.9)`},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,font:`600 calc(var(--ru) * 2.7)/1 var(--reel-sans)`,color:`var(--reel-ink)`},children:[(0,C.jsx)(`span`,{style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:e}),(0,C.jsx)(`span`,{style:{color:r},children:t})]}),(0,C.jsx)(`div`,{style:{height:`calc(var(--ru) * 1.6)`,borderRadius:999,background:`color-mix(in oklab, var(--reel-ink) 8%, transparent)`,overflow:`hidden`},children:(0,C.jsx)(`i`,{style:{display:`block`,height:`100%`,width:`${Math.max(2,Math.min(100,n))}%`,background:r,borderRadius:`inherit`,transformOrigin:`left`,animation:`reel-grow-x 0.9s cubic-bezier(0.3,0.7,0.3,1) ${i}s both`}})})]})}function oe({points:e,color:t}){let n=e.length>=2?e:[.2,.5,.4,.8,1],r=Math.max(...n,1),i=Math.min(...n,0),a=r-i||1,o=n.map((e,t)=>{let r=t/(n.length-1)*100,o=36-(e-i)/a*36;return`${t===0?`M`:`L`}${r.toFixed(1)},${o.toFixed(1)}`}).join(` `);return(0,C.jsx)(`svg`,{viewBox:`0 0 100 36`,style:{width:`100%`,height:`calc(var(--ru) * 8)`},preserveAspectRatio:`none`,children:(0,C.jsx)(`path`,{d:o,fill:`none`,stroke:t,strokeWidth:`3`,strokeLinecap:`round`,strokeLinejoin:`round`,pathLength:1,strokeDasharray:1,style:{"--len":1,animation:`reel-draw 1.2s ease-out both`}})})}var E=[`var(--reel-accent)`,`var(--reel-orb-1)`,`var(--reel-accent-2)`,`var(--reel-orb-2)`],D={color:`color-mix(in oklab, var(--reel-ink) 64%, transparent)`},O=S.map(e=>({...e,size:e.size*(7/16)})),se=S.map(e=>({...e,size:e.size*(5/16)}));function ce(e){let t=(0,m.c)(24),{slots:n}=e,r=n.value+(n.unit??``),i;t[0]===r?i=t[1]:(i=_(r,S),t[0]=r,t[1]=i);let a=i,o;t[2]===n.unit?o=t[3]:(o=n.unit?_(n.unit,O):void 0,t[2]=n.unit,t[3]=o);let s=o,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c={display:`flex`,alignItems:`baseline`,gap:`calc(var(--rw) * 1.2)`,marginTop:`calc(var(--ru) * 2)`},t[4]=c):c=t[4];let l;t[5]!==n.value||t[6]!==a.style||t[7]!==a.tier?(l=(0,C.jsx)(`span`,{className:`reel-bignum`,"data-fit-tier":a.tier,style:a.style,children:n.value}),t[5]=n.value,t[6]=a.style,t[7]=a.tier,t[8]=l):l=t[8];let u;t[9]!==n.unit||t[10]!==s?(u=n.unit&&s&&(0,C.jsx)(`span`,{"data-fit-tier":s.tier,style:{fontWeight:700,fontFamily:`var(--reel-sans)`,color:`var(--reel-accent)`,...s.style},children:n.unit}),t[9]=n.unit,t[10]=s,t[11]=u):u=t[11];let d;t[12]!==l||t[13]!==u?(d=(0,C.jsxs)(`div`,{style:c,children:[l,u]}),t[12]=l,t[13]=u,t[14]=d):d=t[14];let f;t[15]===n.prior?f=t[16]:(f=n.prior&&(0,C.jsx)(`div`,{style:{font:`500 calc(var(--ru) * 2.9)/1.4 var(--reel-sans)`,marginTop:`calc(var(--ru) * 1.6)`,...D},children:n.prior}),t[15]=n.prior,t[16]=f);let p;t[17]===n.spark?p=t[18]:(p=n.spark&&n.spark.length>=2&&(0,C.jsx)(`div`,{style:{marginTop:`calc(var(--ru) * 3)`},children:(0,C.jsx)(oe,{points:n.spark,color:`var(--reel-accent)`})}),t[17]=n.spark,t[18]=p);let h;return t[19]!==n.label||t[20]!==d||t[21]!==f||t[22]!==p?(h=(0,C.jsxs)(w,{kicker:n.label,children:[d,f,p]}),t[19]=n.label,t[20]=d,t[21]=f,t[22]=p,t[23]=h):h=t[23],h}function le(e){let t=(0,m.c)(10),{slots:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={display:`flex`,flexDirection:`column`,gap:`calc(var(--ru) * 2.4)`,marginTop:`calc(var(--ru) * 2.4)`},t[0]=r):r=t[0];let i;t[1]===n.items?i=t[2]:(i=n.items.map(ue),t[1]=n.items,t[2]=i);let a;t[3]===i?a=t[4]:(a=(0,C.jsx)(`div`,{style:r,children:i}),t[3]=i,t[4]=a);let o;t[5]===n.next?o=t[6]:(o=n.next&&(0,C.jsx)(`div`,{style:{font:`500 calc(var(--ru) * 2.7)/1.4 var(--reel-sans)`,marginTop:`calc(var(--ru) * 2.4)`,...D},children:n.next}),t[5]=n.next,t[6]=o);let s;return t[7]!==a||t[8]!==o?(s=(0,C.jsxs)(w,{kicker:`Where you stand`,children:[a,o]}),t[7]=a,t[8]=o,t[9]=s):s=t[9],s}function ue(e,t){return(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`calc(var(--rw) * 3)`},children:[(0,C.jsx)(T,{pct:e.pct,color:E[t%E.length],delay:t*.12}),(0,C.jsxs)(`div`,{style:{minWidth:0},children:[(0,C.jsx)(`div`,{style:{font:`600 calc(var(--ru) * 3)/1.1 var(--reel-sans)`,color:`var(--reel-ink)`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:e.label}),(0,C.jsxs)(`div`,{style:{font:`700 calc(var(--ru) * 3.6)/1 var(--reel-sans)`,color:E[t%E.length]},children:[e.pct,`%`]})]})]},t)}function de(e){let t=(0,m.c)(8),{slots:n}=e,r=n.title||`Scoreboard`,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={display:`flex`,flexDirection:`column`,gap:`calc(var(--ru) * 2.6)`,marginTop:`calc(var(--ru) * 2.6)`},t[0]=i):i=t[0];let a;t[1]===n.items?a=t[2]:(a=n.items.map(fe),t[1]=n.items,t[2]=a);let o;t[3]===a?o=t[4]:(o=(0,C.jsx)(`div`,{style:i,children:a}),t[3]=a,t[4]=o);let s;return t[5]!==r||t[6]!==o?(s=(0,C.jsx)(w,{kicker:r,children:o}),t[5]=r,t[6]=o,t[7]=s):s=t[7],s}function fe(e,t){return(0,C.jsx)(ae,{label:e.label,value:e.score,pct:e.pct,color:E[t%E.length],delay:t*.12},t)}function pe(e){let t=(0,m.c)(10),{slots:n}=e,r;t[0]===n.topic?r=t[1]:(r=(0,C.jsx)(`h3`,{children:n.topic}),t[0]=n.topic,t[1]=r);let i;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i={display:`grid`,gridTemplateColumns:`1fr 1fr`,gap:`calc(var(--ru) * 2)`,marginTop:`calc(var(--ru) * 3)`},t[2]=i):i=t[2];let a;t[3]===n.metrics?a=t[4]:(a=n.metrics.map(me),t[3]=n.metrics,t[4]=a);let o;t[5]===a?o=t[6]:(o=(0,C.jsx)(`div`,{style:i,children:a}),t[5]=a,t[6]=o);let s;return t[7]!==r||t[8]!==o?(s=(0,C.jsxs)(w,{kicker:`Session recap`,children:[r,o]}),t[7]=r,t[8]=o,t[9]=s):s=t[9],s}function me(e,t){let n=_(e.value,se);return(0,C.jsxs)(`div`,{style:{padding:`calc(var(--ru) * 2.6) calc(var(--rw) * 3)`,borderRadius:`calc(var(--ru) * 2.4)`,background:`color-mix(in oklab, var(--reel-accent) 12%, transparent)`,animation:`reel-pop 0.5s cubic-bezier(0.2,0.7,0.3,1) ${t*.1}s both`},children:[(0,C.jsx)(`div`,{"data-fit-tier":n.tier,style:{fontWeight:700,fontFamily:`var(--reel-sans)`,color:`var(--reel-accent)`,...n.style},children:e.value}),(0,C.jsx)(`div`,{style:{font:`500 calc(var(--ru) * 2.3)/1.2 var(--reel-mono)`,marginTop:`calc(var(--ru) * 0.8)`,...D},children:e.label})]},t)}var k=.58;function A(e,t){return e.length*t*k}var he=10;function ge(e){if(e.length<=he)return[e];let t=e.length/2,n=-1,r=1/0;for(let i=0;i<e.length;i+=1){if(e[i]!==` `)continue;let a=Math.abs(i-t);a<r&&(r=a,n=i)}if(n===-1){let n=Math.round(t);return[e.slice(0,n),e.slice(n)]}return[e.slice(0,n),e.slice(n+1)]}var j=[12,10.5,9];function _e(e,t){if(e.length<=t)return e;let n=Math.max(0,Math.floor(t/2)-1),r=Math.max(0,t-n-1);return`${e.slice(0,n)}…${e.slice(e.length-r)}`}function M(e,t){let n=ge(e);for(let e of j)if(n.every(n=>A(n,e)<=t))return{lines:n,size:e};let r=j[j.length-1],i=Math.max(1,Math.floor(t/(r*k)));return{lines:n.map(e=>_e(e,i)),size:r}}function N(e,t,n,r=12){return 2*Math.min(e-t,n-e)-r}function ve(e,t,n,r,i=6){return(r===`start`?n-e:e-t)-i}var P=[`var(--reel-orb-1)`,`var(--reel-accent-2)`,`var(--reel-accent)`,`var(--reel-orb-2)`],F={color:`color-mix(in oklab, var(--reel-ink) 64%, transparent)`},I=-46,L=346,ye=10;function be(e){let t=(0,m.c)(17),{slots:n}=e,r;t[0]===n.title?r=t[1]:(r=g(n.title,v),t[0]=n.title,t[1]=r);let i=r,a;t[2]===n.subtitle?a=t[3]:(a=n.subtitle?g(n.subtitle,x):void 0,t[2]=n.subtitle,t[3]=a);let o=a,s=n.tag||`Concept`,c;t[4]===i.style?c=t[5]:(c={fontWeight:700,fontFamily:`var(--reel-sans)`,letterSpacing:`-0.02em`,color:`var(--reel-ink)`,marginTop:`calc(var(--ru) * 2)`,...i.style},t[4]=i.style,t[5]=c);let l;t[6]!==i.tier||t[7]!==n.title||t[8]!==c?(l=(0,C.jsx)(`div`,{"data-fit-tier":i.tier,style:c,children:n.title}),t[6]=i.tier,t[7]=n.title,t[8]=c,t[9]=l):l=t[9];let u;t[10]!==n.subtitle||t[11]!==o?(u=n.subtitle&&o&&(0,C.jsx)(`div`,{"data-fit-tier":o.tier,style:{fontWeight:500,fontFamily:`var(--reel-sans)`,marginTop:`calc(var(--ru) * 2)`,...F,...o.style},children:n.subtitle}),t[10]=n.subtitle,t[11]=o,t[12]=u):u=t[12];let d;return t[13]!==s||t[14]!==l||t[15]!==u?(d=(0,C.jsxs)(w,{kicker:s,children:[l,u]}),t[13]=s,t[14]=l,t[15]=u,t[16]=d):d=t[16],d}function xe({slots:e}){let t=e.nodes.slice(0,5),n=t.map((e,n)=>{let r=-Math.PI/2+n*2*Math.PI/Math.max(1,t.length);return{...e,x:150+108*Math.cos(r),y:150+108*Math.sin(r)}}),r=M(e.center,N(150,I,L)),i=r.size*1.15,a=r.lines.reduce((e,t)=>t.length>e.length?t:e,``),o=Math.max(30,A(a,r.size)/2+ye),s=Math.max(30,i*r.lines.length/2+8);return(0,C.jsx)(w,{kicker:`How it connects`,children:(0,C.jsx)(`div`,{style:{height:`calc(var(--ru) * 46)`,marginTop:`calc(var(--ru) * 1.6)`},children:(0,C.jsxs)(`svg`,{viewBox:`-46 0 392 300`,style:{width:`100%`,height:`100%`,overflow:`hidden`},children:[n.map((e,t)=>(0,C.jsx)(`line`,{x1:150,y1:150,x2:e.x,y2:e.y,stroke:`var(--reel-accent)`,strokeWidth:`2`,strokeOpacity:`0.5`,pathLength:1,strokeDasharray:1,style:{"--len":1,animation:`reel-draw 0.7s ease-out ${t*.12}s both`}},`e${t}`)),n.map((e,t)=>{let n=e.y<150,{lines:r,size:i}=M(e.label,N(e.x,I,L)),a=i*1.15,o=n?e.y-12:e.y+20,s=n?o-(r.length-1)*a:o;return(0,C.jsxs)(`g`,{style:{animation:`reel-pop 0.5s ease-out ${.3+t*.12}s both`},children:[(0,C.jsx)(`circle`,{cx:e.x,cy:e.y,r:`7`,fill:P[t%P.length]}),(0,C.jsx)(`text`,{x:e.x,textAnchor:`middle`,style:{font:`600 ${i}px var(--reel-sans)`,fill:`var(--reel-ink)`},children:r.map((t,n)=>(0,C.jsx)(`tspan`,{x:e.x,y:s+n*a,children:t},n))})]},`n${t}`)}),(0,C.jsx)(`ellipse`,{cx:150,cy:150,rx:o,ry:s,fill:`var(--reel-accent)`}),(0,C.jsx)(`text`,{x:150,textAnchor:`middle`,style:{font:`700 ${r.size}px var(--reel-sans)`,fill:`#fff`},children:r.lines.map((e,t)=>(0,C.jsx)(`tspan`,{x:150,y:154+(t-(r.lines.length-1)/2)*i,children:e},t))})]})})})}function Se({slots:e}){let t=e.vectors?.slice(0,2)??[],n=e.note?g(e.note,x):void 0;return(0,C.jsxs)(w,{kicker:e.label,children:[(0,C.jsx)(`div`,{style:{position:`relative`,height:`calc(var(--ru) * 36)`,marginTop:`calc(var(--ru) * 2)`,borderRadius:`calc(var(--ru) * 2)`,backgroundImage:`linear-gradient(color-mix(in oklab, var(--reel-accent) 14%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in oklab, var(--reel-accent) 14%, transparent) 1px, transparent 1px)`,backgroundSize:`8% 14%`},children:(0,C.jsxs)(`svg`,{viewBox:`0 0 200 150`,style:{width:`100%`,height:`100%`,overflow:`visible`},children:[(0,C.jsx)(`defs`,{children:(0,C.jsx)(`marker`,{id:`reel-arrow`,markerWidth:`8`,markerHeight:`8`,refX:`6`,refY:`4`,orient:`auto`,children:(0,C.jsx)(`path`,{d:`M0,0 L8,4 L0,8 Z`,fill:`var(--reel-accent)`})})}),(0,C.jsx)(`line`,{x1:`30`,y1:`120`,x2:`120`,y2:`60`,stroke:`var(--reel-accent)`,strokeWidth:`3`,markerEnd:`url(#reel-arrow)`,pathLength:1,strokeDasharray:1,style:{"--len":1,animation:`reel-draw 0.8s ease-out 0.2s both`}}),(0,C.jsx)(`line`,{x1:`30`,y1:`120`,x2:`170`,y2:`35`,stroke:`var(--reel-accent-2)`,strokeWidth:`3`,markerEnd:`url(#reel-arrow)`,pathLength:1,strokeDasharray:1,style:{"--len":1,animation:`reel-draw 0.8s ease-out 0.7s both`}}),t[0]&&(0,C.jsx)(`text`,{x:`118`,y:`56`,style:{font:`700 12px var(--reel-mono)`,fill:`var(--reel-ink)`},children:t[0].label}),t[1]&&(0,C.jsx)(`text`,{x:`168`,y:`30`,style:{font:`700 12px var(--reel-mono)`,fill:`var(--reel-ink)`},children:t[1].label})]})}),e.equation&&(0,C.jsx)(`div`,{style:{font:`600 calc(var(--ru) * 4.4)/1.2 var(--reel-mono)`,color:`var(--reel-ink)`,marginTop:`calc(var(--ru) * 2.4)`,textAlign:`center`},children:e.equation}),e.note&&n&&(0,C.jsx)(`div`,{"data-fit-tier":n.tier,style:{fontWeight:500,fontFamily:`var(--reel-sans)`,marginTop:`calc(var(--ru) * 1.6)`,...F,...n.style},children:e.note})]})}function Ce(e){let t=(0,m.c)(21),{slots:n}=e,r,i,a,o,s,c;if(t[0]!==n.stops){let e=n.stops.slice(0,5);r=w,c=`The path`,t[7]===Symbol.for(`react.memo_cache_sentinel`)?(o={position:`relative`,marginTop:`calc(var(--ru) * 2.4)`},s=(0,C.jsx)(`span`,{style:{position:`absolute`,left:`calc(var(--ru) * 1.35)`,top:`calc(var(--ru) * 2)`,bottom:`calc(var(--ru) * 2)`,width:`calc(var(--ru) * 0.7)`,borderRadius:999,background:`linear-gradient(var(--reel-accent), var(--reel-accent-2))`}}),i={display:`flex`,flexDirection:`column`,gap:`calc(var(--ru) * 3)`},t[7]=i,t[8]=o,t[9]=s):(i=t[7],o=t[8],s=t[9]),a=e.map(we),t[0]=n.stops,t[1]=r,t[2]=i,t[3]=a,t[4]=o,t[5]=s,t[6]=c}else r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6];let l;t[10]!==i||t[11]!==a?(l=(0,C.jsx)(`div`,{style:i,children:a}),t[10]=i,t[11]=a,t[12]=l):l=t[12];let u;t[13]!==o||t[14]!==s||t[15]!==l?(u=(0,C.jsxs)(`div`,{style:o,children:[s,l]}),t[13]=o,t[14]=s,t[15]=l,t[16]=u):u=t[16];let d;return t[17]!==r||t[18]!==c||t[19]!==u?(d=(0,C.jsx)(r,{kicker:c,children:u}),t[17]=r,t[18]=c,t[19]=u,t[20]=d):d=t[20],d}function we(e,t){let n=e.state===`done`,r=e.state===`active`;return(0,C.jsxs)(`div`,{style:{position:`relative`,display:`flex`,alignItems:`center`,gap:`calc(var(--rw) * 3.4)`,animation:`reel-rise 0.5s ease-out ${t*.12}s both`},children:[(0,C.jsx)(`span`,{style:{flexShrink:0,width:`calc(var(--ru) * 3.4)`,height:`calc(var(--ru) * 3.4)`,borderRadius:`50%`,background:n||r?`var(--reel-accent)`:`var(--reel-bg)`,border:`calc(var(--ru) * 0.6) solid ${r?`var(--reel-accent-2)`:`var(--reel-accent)`}`,boxSizing:`border-box`}}),(0,C.jsx)(`span`,{style:{minWidth:0,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,font:`600 calc(var(--ru) * 3.2)/1.2 var(--reel-sans)`,color:n?F.color:`var(--reel-ink)`,textDecoration:n?`line-through`:`none`},children:e.label})]},t)}var Te={color:`color-mix(in oklab, var(--reel-ink) 64%, transparent)`};function Ee(e){let t=(0,m.c)(8),{slots:n}=e,r=`${n.items.length} ${n.items.length===1?`takeaway`:`takeaways`}`,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={display:`flex`,flexDirection:`column`,gap:`calc(var(--ru) * 2.6)`,marginTop:`calc(var(--ru) * 2.4)`},t[0]=i):i=t[0];let a;t[1]===n.items?a=t[2]:(a=n.items.map(De),t[1]=n.items,t[2]=a);let o;t[3]===a?o=t[4]:(o=(0,C.jsx)(`div`,{style:i,children:a}),t[3]=a,t[4]=o);let s;return t[5]!==r||t[6]!==o?(s=(0,C.jsx)(w,{kicker:r,children:o}),t[5]=r,t[6]=o,t[7]=s):s=t[7],s}function De(e,t){let n=g(e,x);return(0,C.jsxs)(`div`,{style:{display:`flex`,gap:`calc(var(--rw) * 3)`,alignItems:`baseline`,animation:`reel-rise 0.6s cubic-bezier(0.2,0.7,0.3,1) ${t*.12}s both`},children:[(0,C.jsx)(`span`,{style:{font:`700 calc(var(--ru) * 6)/0.9 var(--reel-sans)`,color:`var(--reel-accent)`},children:t+1}),(0,C.jsx)(`span`,{"data-fit-tier":n.tier,style:{fontWeight:600,fontFamily:`var(--reel-sans)`,color:`var(--reel-ink)`,minWidth:0,...n.style},children:e})]},t)}function Oe(e){let t=(0,m.c)(18),{slots:n}=e,r;t[0]===n.question?r=t[1]:(r=g(n.question,y),t[0]=n.question,t[1]=r);let i=r,a;t[2]===n.answer?a=t[3]:(a=g(n.answer,x),t[2]=n.answer,t[3]=a);let o=a,s;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s={perspective:`1100px`,marginTop:`calc(var(--ru) * 2.4)`},t[4]=s):s=t[4];let c;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,C.jsx)(`span`,{className:`reel-flipkick`,children:`Question`}),t[5]=c):c=t[5];let l;t[6]!==i.style||t[7]!==i.tier||t[8]!==n.question?(l=(0,C.jsxs)(`div`,{className:`reel-flipface`,children:[c,(0,C.jsx)(`span`,{"data-fit-tier":i.tier,style:i.style,children:n.question})]}),t[6]=i.style,t[7]=i.tier,t[8]=n.question,t[9]=l):l=t[9];let u;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,C.jsx)(`span`,{className:`reel-flipkick`,children:`Answer`}),t[10]=u):u=t[10];let d;t[11]!==o.style||t[12]!==o.tier||t[13]!==n.answer?(d=(0,C.jsxs)(`div`,{className:`reel-flipface reel-flipback`,children:[u,(0,C.jsx)(`span`,{"data-fit-tier":o.tier,style:o.style,children:n.answer})]}),t[11]=o.style,t[12]=o.tier,t[13]=n.answer,t[14]=d):d=t[14];let f;return t[15]!==l||t[16]!==d?(f=(0,C.jsx)(w,{kicker:`Q → A`,children:(0,C.jsx)(`div`,{style:s,children:(0,C.jsxs)(`div`,{className:`reel-flipcard`,children:[l,d]})})}),t[15]=l,t[16]=d,t[17]=f):f=t[17],f}function ke(e){let t=(0,m.c)(5),{slots:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={display:`flex`,flexDirection:`column`,gap:`calc(var(--ru) * 1.8)`,marginTop:`calc(var(--ru) * 2.4)`},t[0]=r):r=t[0];let i;t[1]===n.messages?i=t[2]:(i=n.messages.map(Ae),t[1]=n.messages,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,C.jsx)(w,{kicker:`Conversation`,children:(0,C.jsx)(`div`,{style:r,children:i})}),t[3]=i,t[4]=a),a}function Ae(e,t){let n=e.role===`user`,r=g(e.text,x,66);return(0,C.jsx)(`div`,{"data-fit-tier":r.tier,style:{alignSelf:n?`flex-end`:`flex-start`,maxWidth:`82%`,padding:`calc(var(--ru) * 2) calc(var(--rw) * 3.2)`,borderRadius:`calc(var(--ru) * 3)`,borderBottomRightRadius:n?`calc(var(--ru) * 0.6)`:`calc(var(--ru) * 3)`,borderBottomLeftRadius:n?`calc(var(--ru) * 3)`:`calc(var(--ru) * 0.6)`,background:n?`var(--reel-accent)`:`color-mix(in oklab, var(--reel-ink) 9%, transparent)`,color:n?`#fff`:`var(--reel-ink)`,fontWeight:500,fontFamily:`var(--reel-sans)`,animation:`reel-rise 0.5s cubic-bezier(0.2,0.7,0.3,1) ${t*.18}s both`,...r.style},children:e.text},t)}function je(e){let t=(0,m.c)(21),{slots:n}=e,{quote:r,highlight:i}=n,a;t[0]!==i||t[1]!==r?(a=i&&r.includes(i)?r.split(i):[r],t[0]=i,t[1]=r,t[2]=a):a=t[2];let o=a,s;t[3]===r?s=t[4]:(s=g(r,b),t[3]=r,t[4]=s);let c=s,l;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,C.jsx)(`div`,{className:`reel-quote-mark`,"aria-hidden":`true`,children:`“`}),t[5]=l):l=t[5];let u;t[6]!==i||t[7]!==o[0]||t[8]!==o[1]||t[9]!==o.length||t[10]!==r?(u=o.length===2?(0,C.jsxs)(C.Fragment,{children:[o[0],(0,C.jsx)(`mark`,{children:i}),o[1]]}):r,t[6]=i,t[7]=o[0],t[8]=o[1],t[9]=o.length,t[10]=r,t[11]=u):u=t[11];let d;t[12]!==c.style||t[13]!==c.tier||t[14]!==u?(d=(0,C.jsx)(`p`,{className:`reel-quote-body`,"data-fit-tier":c.tier,style:c.style,children:u}),t[12]=c.style,t[13]=c.tier,t[14]=u,t[15]=d):d=t[15];let f;t[16]===n.attribution?f=t[17]:(f=n.attribution&&(0,C.jsx)(`div`,{style:{font:`500 calc(var(--ru) * 2.6)/1.3 var(--reel-mono)`,letterSpacing:`0.06em`,...Te},children:n.attribution}),t[16]=n.attribution,t[17]=f);let p;return t[18]!==d||t[19]!==f?(p=(0,C.jsxs)(`div`,{className:`reel-quote reel-fade`,children:[l,d,f]}),t[18]=d,t[19]=f,t[20]=p):p=t[20],p}n();var R;function z(){return R??=i(()=>import(`./alternateFinishes-C8DBTwo_.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])),R}function B(e){let t=(0,s.lazy)(()=>z().then(t=>({default:t[e]})));return function(e){return(0,C.jsx)(s.Suspense,{fallback:(0,C.jsx)(`div`,{className:`reel-finish-loading`,"aria-label":`Loading visual`}),children:(0,C.jsx)(t,{slots:e.slots})})}}var V=(e,t,n=``)=>p(f(typeof e==`string`?e:e==null?``:String(e),t))||n,H=e=>{let t=typeof e==`number`?e:parseFloat(String(e));return Number.isFinite(t)?t:0},U=e=>Math.max(0,Math.min(100,Math.round(H(e)))),W=e=>Array.isArray(e)?e:[],G=e=>e&&typeof e==`object`?e:{},Me={title:(e,t)=>{let n=G(e.part),r=Number.isFinite(H(n.count))&&H(n.count)>0;return{question:V(e.question,l.title,t.question),kicker:e.kicker?V(e.kicker,l.heading):void 0,part:r?{index:Math.max(1,Math.round(H(n.index))),count:Math.max(1,Math.round(H(n.count)))}:void 0}},outro:e=>({wordmark:e.wordmark?V(e.wordmark,16):`Mavéa`,tagline:e.tagline?V(e.tagline,48):void 0,statline:e.statline?V(e.statline,40):void 0}),stat:e=>{let t=W(e.spark).map(H);return{value:V(e.value,12,`—`),unit:e.unit?V(e.unit,8):void 0,label:V(e.label,l.label,`Stat`),prior:e.prior?V(e.prior,64):void 0,spark:t.length>=2?t.slice(0,16):void 0}},metrics:e=>({items:W(e.items).slice(0,4).map(e=>({label:V(G(e).label,l.label,`—`),pct:U(G(e).pct)})),next:e.next?V(e.next,80):void 0}),ranked:e=>({title:e.title?V(e.title,l.label):void 0,items:W(e.items).slice(0,5).map(e=>({label:V(G(e).label,l.label,`—`),score:V(G(e).score,12,``),pct:U(G(e).pct)}))}),quote:(e,t)=>{let n=V(e.quote,l.quote,t.question),r=e.highlight?V(e.highlight,40):void 0;return{quote:n,highlight:r&&n.includes(r)?r:void 0,attribution:e.attribution?V(e.attribution,32):void 0}},list:e=>({title:e.title?V(e.title,l.label):void 0,items:W(e.items).map(e=>V(e,l.takeaway)).filter(Boolean).slice(0,4)}),concept:(e,t)=>({title:V(e.title,l.title,t.topic),subtitle:e.subtitle?V(e.subtitle,l.subtitle):void 0,tag:e.tag?V(e.tag,l.label):void 0}),conceptmap:(e,t)=>({center:V(e.center,16,t.topic),nodes:W(e.nodes).slice(0,5).map(e=>({label:V(G(e).label,18,`—`),kind:G(e).kind?V(G(e).kind,12):void 0}))}),qa:(e,t)=>({question:V(e.question,96,t.question),answer:V(e.answer,l.answer,`—`)}),chat:e=>({messages:W(e.messages).slice(0,4).map(e=>({role:G(e).role===`user`?`user`:`mavea`,text:V(G(e).text,l.message)})).filter(e=>e.text)}),diagram:e=>({label:V(e.label,l.label,`Diagram`),equation:e.equation?V(e.equation,40):void 0,vectors:W(e.vectors).slice(0,2).map(e=>({label:V(G(e).label,8,`v`)})),note:e.note?V(e.note,80):void 0}),steps:e=>({stops:W(e.stops).slice(0,5).map(e=>{let t=G(e).state;return{label:V(G(e).label,l.label,`—`),state:t===`done`||t===`active`||t===`todo`?t:`todo`}})}),recap:(e,t)=>({topic:V(e.topic,l.label,t.topic),metrics:W(e.metrics).slice(0,4).map(e=>({label:V(G(e).label,l.label,`—`),value:V(G(e).value,12,`—`)}))}),markup:e=>{let t=e=>{let t=G(e);return{x:H(t.x),y:H(t.y),w:H(t.w),h:H(t.h)}},n=e.figure&&G(e.figure).w?t(e.figure):void 0;return{pageImage:typeof e.pageImage==`string`?e.pageImage:``,imgW:Math.max(1,Math.round(H(e.imgW))),imgH:Math.max(1,Math.round(H(e.imgH))),rects:W(e.rects).slice(0,16).map(t).filter(e=>e.w>0&&e.h>0),figure:n,isFigure:e.isFigure===!0,seed:typeof e.seed==`string`?e.seed:``,...G(e.accent).star===!0||G(e.accent).question===!0?{accent:{...G(e.accent).star===!0?{star:!0}:{},...G(e.accent).question===!0?{question:!0}:{}}}:{},color:typeof e.color==`string`?e.color:`var(--reel-accent)`,title:V(e.title,80,``),explanation:V(e.explanation,240,``)}}};function K(e,t,n){return Me[e](t,n)}function q(e,t,n,r){return{content:e,label:t,Slide:n,surface:r?.surface,bleed:r?.bleed,heroCap:r?.heroCap}}function Ne(e,t){let n=G(t),r=e===`quote`?n.quote:e===`title`?n.question:n.title;return typeof r==`string`?r.length:0}function Pe(e){return X[e]?.surface===`dark`?`dark`:`light`}function Fe(e){return X[e]?.bleed===!0}var J={bleed:!0},Y={surface:`dark`,bleed:!0},X={title:q(`title`,`Prompt`,re),outro:q(`outro`,`Outro`,ie),bigStat:q(`stat`,`Big stat`,ce),progressRings:q(`metrics`,`Progress rings`,le),bentoBoard:q(`metrics`,`Bento board`,B(`BentoBoardSlide`),J),equalizer:q(`metrics`,`Equalizer`,B(`EqualizerSlide`),Y),scoreboard:q(`ranked`,`Scoreboard`,de),podium:q(`ranked`,`Podium`,B(`PodiumSlide`),J),departures:q(`ranked`,`Departures`,B(`DeparturesSlide`),Y),spotlightQuote:q(`quote`,`Spotlight quote`,je),takeaways:q(`list`,`Takeaways`,Ee),conceptCard:q(`concept`,`Concept`,be),knowledgeGraph:q(`conceptmap`,`Knowledge graph`,xe),flashcard:q(`qa`,`Flashcard`,Oe),chatTranscript:q(`chat`,`Chat`,ke),blueprint:q(`diagram`,`Blueprint`,Se),steps:q(`steps`,`Steps`,Ce),recapBento:q(`recap`,`Recap`,pe),glowOutline:q(`concept`,`Glow outline`,B(`GlowOutlineSlide`),Y),neon:q(`concept`,`Neon`,B(`NeonSlide`),Y),neonSign:q(`concept`,`Neon sign`,B(`NeonSignSlide`),Y),cosmic:q(`concept`,`Cosmic`,B(`CosmicSlide`),Y),massiveType:q(`concept`,`Massive type`,B(`MassiveTypeSlide`),Y),magazine:q(`concept`,`Magazine`,B(`MagazineSlide`),J),mysticCard:q(`concept`,`Mystic card`,B(`MysticCardSlide`),{...Y,heroCap:96}),periodicTile:q(`concept`,`Periodic tile`,B(`PeriodicTileSlide`),{...Y,heroCap:88}),dictionary:q(`concept`,`Dictionary`,B(`DictionarySlide`),J),swiss:q(`concept`,`Swiss`,B(`SwissSlide`),J),auroraGlass:q(`concept`,`Aurora glass`,B(`AuroraGlassSlide`),J),lockScreen:q(`concept`,`Lock screen`,B(`LockScreenSlide`),Y),spotlightStage:q(`concept`,`Spotlight stage`,B(`SpotlightStageSlide`),Y),polaroid:q(`concept`,`Polaroid`,B(`PolaroidSlide`),{...Y,heroCap:96}),metaball:q(`concept`,`Metaball`,B(`MetaballSlide`),Y),markerDoodle:q(`concept`,`Marker doodle`,B(`MarkerDoodleSlide`),J),chalkboard:q(`concept`,`Chalkboard`,B(`ChalkboardSlide`),{...J,heroCap:88}),whiteboard:q(`concept`,`Whiteboard`,B(`WhiteboardSlide`),J),sunsetTape:q(`concept`,`Sunset tape`,B(`SunsetTapeSlide`),Y),searchBar:q(`concept`,`Search`,B(`SearchBarSlide`),Y),wrapped:q(`stat`,`Wrapped`,B(`WrappedSlide`),Y),levelUp:q(`stat`,`Level up`,B(`LevelUpSlide`)),countdown:q(`stat`,`Countdown`,B(`CountdownSlide`),Y),streak:q(`stat`,`Streak`,B(`StreakSlide`)),ticker:q(`stat`,`Ticker`,B(`TickerSlide`),Y),tradingCard:q(`stat`,`Trading card`,B(`TradingCardSlide`),Y),particleStorm:q(`stat`,`Particle storm`,B(`ParticleStormSlide`),Y),billboard:q(`quote`,`Billboard`,B(`BillboardSlide`),Y),comicPanel:q(`quote`,`Comic panel`,B(`ComicPanelSlide`),J),captionMeme:q(`quote`,`Caption meme`,B(`CaptionMemeSlide`),J),kineticStack:q(`quote`,`Kinetic stack`,B(`KineticStackSlide`),Y),stickyNotes:q(`list`,`Sticky notes`,B(`StickyNotesSlide`),Y),marquee:q(`list`,`Marquee`,B(`MarqueeSlide`),Y),notebook:q(`list`,`Notebook`,B(`NotebookSlide`),J),graphPlot:q(`diagram`,`Graph plot`,B(`GraphPlotSlide`)),codeEditor:q(`diagram`,`Code editor`,B(`CodeEditorSlide`),Y),constellation:q(`conceptmap`,`Constellation`,B(`ConstellationSlide`),Y),chipCloud:q(`conceptmap`,`Chip cloud`,B(`ChipCloudSlide`),J),branchTree:q(`conceptmap`,`Branch tree`,B(`BranchTreeSlide`),J),orbitMap:q(`conceptmap`,`Orbit map`,B(`OrbitMapSlide`),Y),quizCard:q(`qa`,`Quiz card`,B(`QuizCardSlide`),J),revealCard:q(`qa`,`Reveal`,B(`RevealCardSlide`),Y),faqRow:q(`qa`,`FAQ`,B(`FaqRowSlide`),J),textThread:q(`chat`,`Text thread`,B(`TextThreadSlide`),J),terminalChat:q(`chat`,`Terminal`,B(`TerminalChatSlide`),Y),captionStack:q(`chat`,`Captions`,B(`CaptionStackSlide`),Y),voiceMemo:q(`chat`,`Voice memo`,B(`VoiceMemoSlide`),J),checklist:q(`steps`,`Checklist`,B(`ChecklistSlide`),J),progressTrack:q(`steps`,`Progress track`,B(`ProgressTrackSlide`),Y),stepStack:q(`steps`,`Step stack`,B(`StepStackSlide`),J),widgets:q(`recap`,`Widgets`,B(`WidgetsSlide`),Y),sessionPass:q(`recap`,`Session pass`,B(`SessionPassSlide`),Y),finder:q(`recap`,`Finder`,B(`FinderSlide`),Y),receiptTape:q(`recap`,`Receipt tape`,B(`ReceiptTapeSlide`),J),documentMarkup:q(`markup`,`Document markup`,B(`DocumentMarkupSlide`),J)},Z=(()=>{let e={};for(let t of Object.keys(X)){let n=X[t];(e[n.content]??=[]).push(t)}return e})(),Ie={quote:[{to:`concept`,finishes:[`spotlightStage`,`magazine`,`sunsetTape`,`lockScreen`,`auroraGlass`,`whiteboard`,`chalkboard`,`markerDoodle`],adapt:e=>({title:e.quote,subtitle:e.attribution,tag:`Quote`})}],concept:[{to:`quote`,finishes:[`spotlightQuote`,`billboard`,`comicPanel`,`captionMeme`],adapt:e=>({quote:e.subtitle??e.title,attribution:e.tag})}],list:[{to:`steps`,finishes:[`steps`],adapt:e=>({stops:W(e.items).map(e=>({label:e,state:`todo`}))})}],steps:[{to:`list`,finishes:[`takeaways`,`stickyNotes`,`notebook`,`marquee`],adapt:e=>({items:W(e.stops).map(e=>G(e).label)})}]},Q=e=>Ie[e]??[];function $(e,t,n,r=0,i){let a=Z[e];if(!a||!a.length)return`conceptCard`;if(t<=0)return a[0];let o=[...a,...Q(e).flatMap(e=>e.finishes)],s=o.filter(e=>(X[e]?.heroCap??1/0)>=r),c=s.length?s:o;if(i!==void 0){let e=c.filter(e=>e!==i);e.length&&(c=e)}return c[(t*7+n*3)%c.length]}function Le(e,t){if(t===e.content)return e.slots;let n=Q(e.content).find(e=>e.to===t);return n?K(t,n.adapt(e.slots),{topic:``,question:``}):e.slots}function Re(e){let t=X[e.template];t&&(t.content===e.content||Q(e.content).some(e=>e.to===t.content))||(t=X[(Z[e.content]??[])[0]]);let n=t??X.conceptCard;return{Slide:n.Slide,slots:Le(e,n.content)}}export{u as C,f as D,l as E,ee as S,d as T,y as _,Ne as a,_ as b,N as c,M as d,w as f,b as g,v as h,Pe as i,ve as l,x as m,K as n,Re as o,T as p,Fe as r,z as s,$ as t,A as u,S as v,c as w,g as x,te as y};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/alternateFinishes-BG6svkXG.js","assets/index-C7H7A1rW.js","assets/chunk-BVpWp9h4.js","assets/jsx-runtime-DaSxXjOY.js","assets/react-BQSORdFI.js","assets/lazyRetry-D50B1UMY.js","assets/index-CepQEz75.css","assets/ReelJelly-DCD4bG10.js","assets/geometry-DXAbnb0J.js","assets/penStrokes-DlHnO9xE.js","assets/gesture-Bouqjr3g.js"])))=>i.map(i=>d[i]);
2
+ import{t as e}from"./react-BQSORdFI.js";import{t}from"./jsx-runtime-DaSxXjOY.js";import{J as n,ht as r,q as i}from"./index-C7H7A1rW.js";import{g as a,x as o}from"./fit-B1LJWvMO.js";var s=e(),c=[`stat`,`metrics`,`ranked`,`quote`,`list`,`concept`,`conceptmap`,`qa`,`chat`,`diagram`,`steps`,`recap`],l={voiceover:150,heading:32,title:140,quote:140,answer:150,takeaway:64,label:24,message:110,subtitle:120},u={stat:{value:9,unit:6,label:24,prior:56},metrics:{items:4,label:22,next:80},ranked:{items:5,title:24,label:20,score:10},quote:{quote:130,highlight:24,attribution:24},list:{items:4,item:64},concept:{title:64,subtitle:110,tag:22},conceptmap:{center:16,nodes:5,node:18},qa:{question:84,answer:150},chat:{messages:4,message:110},diagram:{label:24,equation:36,note:80},steps:{stops:5,label:24},recap:{topic:24,metrics:4,label:20,value:12}},d={min:2600,default:3400,intro:3e3,outro:3200};function f(e,t){let n=(e??``).trim().replace(/\s+/g,` `);if(n.length<=t)return n;let r=n.slice(0,t),i=r.lastIndexOf(` `);return`${(i>t*.6?r.slice(0,i):r).trimEnd()}…`}function p(e,t=24){return e.replace(/\S+/g,e=>{if(e.length<=t)return e;let n=Math.max(0,Math.floor(t/2)-1),r=Math.max(0,t-n-1);return`${e.slice(0,n)}…${e.slice(e.length-r)}`})}var m=r();function h(e){let t=0;for(let n of e.split(/\s+/))n.length>t&&(t=n.length);return Math.max(1,t)}function g(e,t,n=78){let r=o(Math.ceil(e.length*(78/n)),t),i=n/h(e);for(;r<t.length-1&&t[r].size>i;)r+=1;let s=t[r];return{tier:r,style:{fontSize:`calc(var(--ru) * ${s.size})`,lineHeight:s.line,...a(s.maxLines)}}}function _(e,t){let n=o(e.length,t),r=t[n];return{tier:n,style:{fontSize:`calc(var(--ru) * ${r.size})`,lineHeight:r.line,whiteSpace:`nowrap`,display:`inline-block`}}}function ee(...e){return{minHeight:`calc(${e.map(({ladder:e,tier:t,padRu:n=0})=>{let r=e[t];return`(var(--ru) * ${r.size} * ${r.line} * ${r.maxLines} + var(--ru) * ${n})`}).join(` + `)})`}}var v=[{upTo:12,size:9.6,line:.98,maxLines:2},{upTo:26,size:7.4,line:1.02,maxLines:3},{upTo:48,size:6,line:1.06,maxLines:5},{upTo:80,size:5,line:1.1,maxLines:6},{upTo:112,size:4.3,line:1.12,maxLines:7},{upTo:1/0,size:3.6,line:1.16,maxLines:8}],y=[{upTo:24,size:5.4,line:1.05,maxLines:2},{upTo:48,size:4.5,line:1.08,maxLines:3},{upTo:84,size:3.8,line:1.12,maxLines:5},{upTo:116,size:3.3,line:1.16,maxLines:6},{upTo:1/0,size:3,line:1.18,maxLines:8}],b=[{upTo:60,size:5.5,line:1.2,maxLines:5},{upTo:95,size:4.6,line:1.24,maxLines:6},{upTo:1/0,size:3.8,line:1.3,maxLines:7}],x=[{upTo:90,size:3.1,line:1.4,maxLines:5},{upTo:130,size:2.8,line:1.42,maxLines:6},{upTo:180,size:2.6,line:1.45,maxLines:7},{upTo:1/0,size:2.4,line:1.45,maxLines:9}],te=[{upTo:7,size:8.4,line:.92,maxLines:1},{upTo:10,size:6.6,line:.94,maxLines:1},{upTo:14,size:5.2,line:.96,maxLines:1},{upTo:1/0,size:4,line:1,maxLines:1}],S=[{upTo:4,size:16,line:.9,maxLines:1},{upTo:6,size:11.5,line:.9,maxLines:1},{upTo:9,size:7.6,line:.92,maxLines:1},{upTo:12,size:5.8,line:.94,maxLines:1},{upTo:1/0,size:4.6,line:.94,maxLines:1}],ne=[{upTo:48,size:7.2,line:1.06,maxLines:5},{upTo:84,size:5.2,line:1.1,maxLines:6},{upTo:116,size:4.6,line:1.12,maxLines:7},{upTo:1/0,size:4.2,line:1.14,maxLines:8}],C=t();function re(e){let t=(0,m.c)(20),{slots:n}=e,r;t[0]===n.question?r=t[1]:(r=g(n.question,ne),t[0]=n.question,t[1]=r);let i=r,a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a={justifyContent:`center`},t[2]=a):a=t[2];let o=n.kicker||`Prompt`,s;t[3]===n.part?s=t[4]:(s=n.part&&(0,C.jsx)(`span`,{className:`reel-part-chip`,children:`Part ${n.part.index} of ${n.part.count}`}),t[3]=n.part,t[4]=s);let c;t[5]!==o||t[6]!==s?(c=(0,C.jsxs)(`div`,{className:`reel-eyebrow`,style:a,children:[o,s]}),t[5]=o,t[6]=s,t[7]=c):c=t[7];let l;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,C.jsx)(`span`,{"aria-hidden":`true`,children:`“`}),t[8]=l):l=t[8];let u;t[9]===n.question?u=t[10]:(u=(0,C.jsx)(`span`,{className:`q`,children:n.question}),t[9]=n.question,t[10]=u);let d;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,C.jsx)(`span`,{"aria-hidden":`true`,children:`”`}),t[11]=d):d=t[11];let f;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,C.jsx)(`span`,{className:`reel-caret`,"aria-hidden":`true`,style:{height:`0.81em`}}),t[12]=f):f=t[12];let p;t[13]!==i.style||t[14]!==i.tier||t[15]!==u?(p=(0,C.jsxs)(`div`,{className:`reel-prompt`,"data-fit-tier":i.tier,style:i.style,children:[l,u,d,f]}),t[13]=i.style,t[14]=i.tier,t[15]=u,t[16]=p):p=t[16];let h;return t[17]!==p||t[18]!==c?(h=(0,C.jsxs)(`div`,{className:`reel-frame-slide reel-fade`,children:[c,p]}),t[17]=p,t[18]=c,t[19]=h):h=t[19],h}function ie(e){let t=(0,m.c)(17),{slots:n}=e,r=n.tagline||`Talk to AI. See what it means.`,i;t[0]===r?i=t[1]:(i=g(r,y),t[0]=r,t[1]=i);let a=i,o;t[2]===n.statline?o=t[3]:(o=n.statline?g(n.statline,x):void 0,t[2]=n.statline,t[3]=o);let s=o,c;t[4]!==n.statline||t[5]!==s?(c=n.statline&&s&&(0,C.jsx)(`div`,{className:`reel-eyebrow`,"data-fit-tier":s.tier,style:s.style,children:n.statline}),t[4]=n.statline,t[5]=s,t[6]=c):c=t[6];let l=n.wordmark||`Mavéa`,u;t[7]===l?u=t[8]:(u=(0,C.jsx)(`div`,{className:`reel-wordmark-xl`,children:l}),t[7]=l,t[8]=u);let d;t[9]!==a.style||t[10]!==a.tier||t[11]!==r?(d=(0,C.jsx)(`div`,{className:`reel-tagline`,"data-fit-tier":a.tier,style:a.style,children:r}),t[9]=a.style,t[10]=a.tier,t[11]=r,t[12]=d):d=t[12];let f;return t[13]!==c||t[14]!==u||t[15]!==d?(f=(0,C.jsxs)(`div`,{className:`reel-frame-slide reel-fade`,children:[c,u,d]}),t[13]=c,t[14]=u,t[15]=d,t[16]=f):f=t[16],f}function w(e){let t=(0,m.c)(5),{kicker:n,children:r}=e,i;t[0]===n?i=t[1]:(i=(0,C.jsx)(`div`,{className:`reel-eyebrow`,children:(0,C.jsx)(`span`,{children:n})}),t[0]=n,t[1]=i);let a;return t[2]!==r||t[3]!==i?(a=(0,C.jsxs)(`div`,{className:`reel-card reel-fade`,children:[i,r]}),t[2]=r,t[3]=i,t[4]=a):a=t[4],a}function T({pct:e,color:t,delay:n=0}){let r=2*Math.PI*26,i=r*(1-Math.max(0,Math.min(100,e))/100);return(0,C.jsxs)(`svg`,{viewBox:`0 0 64 64`,style:{width:`calc(var(--ru) * 11)`,height:`calc(var(--ru) * 11)`,flexShrink:0},children:[(0,C.jsx)(`circle`,{cx:`32`,cy:`32`,r:26,fill:`none`,stroke:`rgba(0,0,0,0.08)`,strokeWidth:`6`}),(0,C.jsx)(`circle`,{cx:`32`,cy:`32`,r:26,fill:`none`,stroke:t,strokeWidth:`6`,strokeLinecap:`round`,transform:`rotate(-90 32 32)`,strokeDasharray:r,style:{"--len":r,"--to":i,strokeDashoffset:i,animation:`reel-ring 1.1s cubic-bezier(0.3,0.7,0.3,1) ${n}s both`}})]})}function ae({label:e,value:t,pct:n,color:r,delay:i=0}){return(0,C.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`calc(var(--ru) * 0.9)`},children:[(0,C.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,font:`600 calc(var(--ru) * 2.7)/1 var(--reel-sans)`,color:`var(--reel-ink)`},children:[(0,C.jsx)(`span`,{style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:e}),(0,C.jsx)(`span`,{style:{color:r},children:t})]}),(0,C.jsx)(`div`,{style:{height:`calc(var(--ru) * 1.6)`,borderRadius:999,background:`color-mix(in oklab, var(--reel-ink) 8%, transparent)`,overflow:`hidden`},children:(0,C.jsx)(`i`,{style:{display:`block`,height:`100%`,width:`${Math.max(2,Math.min(100,n))}%`,background:r,borderRadius:`inherit`,transformOrigin:`left`,animation:`reel-grow-x 0.9s cubic-bezier(0.3,0.7,0.3,1) ${i}s both`}})})]})}function oe({points:e,color:t}){let n=e.length>=2?e:[.2,.5,.4,.8,1],r=Math.max(...n,1),i=Math.min(...n,0),a=r-i||1,o=n.map((e,t)=>{let r=t/(n.length-1)*100,o=36-(e-i)/a*36;return`${t===0?`M`:`L`}${r.toFixed(1)},${o.toFixed(1)}`}).join(` `);return(0,C.jsx)(`svg`,{viewBox:`0 0 100 36`,style:{width:`100%`,height:`calc(var(--ru) * 8)`},preserveAspectRatio:`none`,children:(0,C.jsx)(`path`,{d:o,fill:`none`,stroke:t,strokeWidth:`3`,strokeLinecap:`round`,strokeLinejoin:`round`,pathLength:1,strokeDasharray:1,style:{"--len":1,animation:`reel-draw 1.2s ease-out both`}})})}var E=[`var(--reel-accent)`,`var(--reel-orb-1)`,`var(--reel-accent-2)`,`var(--reel-orb-2)`],D={color:`color-mix(in oklab, var(--reel-ink) 64%, transparent)`},O=S.map(e=>({...e,size:e.size*(7/16)})),se=S.map(e=>({...e,size:e.size*(5/16)}));function ce(e){let t=(0,m.c)(24),{slots:n}=e,r=n.value+(n.unit??``),i;t[0]===r?i=t[1]:(i=_(r,S),t[0]=r,t[1]=i);let a=i,o;t[2]===n.unit?o=t[3]:(o=n.unit?_(n.unit,O):void 0,t[2]=n.unit,t[3]=o);let s=o,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c={display:`flex`,alignItems:`baseline`,gap:`calc(var(--rw) * 1.2)`,marginTop:`calc(var(--ru) * 2)`},t[4]=c):c=t[4];let l;t[5]!==n.value||t[6]!==a.style||t[7]!==a.tier?(l=(0,C.jsx)(`span`,{className:`reel-bignum`,"data-fit-tier":a.tier,style:a.style,children:n.value}),t[5]=n.value,t[6]=a.style,t[7]=a.tier,t[8]=l):l=t[8];let u;t[9]!==n.unit||t[10]!==s?(u=n.unit&&s&&(0,C.jsx)(`span`,{"data-fit-tier":s.tier,style:{fontWeight:700,fontFamily:`var(--reel-sans)`,color:`var(--reel-accent)`,...s.style},children:n.unit}),t[9]=n.unit,t[10]=s,t[11]=u):u=t[11];let d;t[12]!==l||t[13]!==u?(d=(0,C.jsxs)(`div`,{style:c,children:[l,u]}),t[12]=l,t[13]=u,t[14]=d):d=t[14];let f;t[15]===n.prior?f=t[16]:(f=n.prior&&(0,C.jsx)(`div`,{style:{font:`500 calc(var(--ru) * 2.9)/1.4 var(--reel-sans)`,marginTop:`calc(var(--ru) * 1.6)`,...D},children:n.prior}),t[15]=n.prior,t[16]=f);let p;t[17]===n.spark?p=t[18]:(p=n.spark&&n.spark.length>=2&&(0,C.jsx)(`div`,{style:{marginTop:`calc(var(--ru) * 3)`},children:(0,C.jsx)(oe,{points:n.spark,color:`var(--reel-accent)`})}),t[17]=n.spark,t[18]=p);let h;return t[19]!==n.label||t[20]!==d||t[21]!==f||t[22]!==p?(h=(0,C.jsxs)(w,{kicker:n.label,children:[d,f,p]}),t[19]=n.label,t[20]=d,t[21]=f,t[22]=p,t[23]=h):h=t[23],h}function le(e){let t=(0,m.c)(10),{slots:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={display:`flex`,flexDirection:`column`,gap:`calc(var(--ru) * 2.4)`,marginTop:`calc(var(--ru) * 2.4)`},t[0]=r):r=t[0];let i;t[1]===n.items?i=t[2]:(i=n.items.map(ue),t[1]=n.items,t[2]=i);let a;t[3]===i?a=t[4]:(a=(0,C.jsx)(`div`,{style:r,children:i}),t[3]=i,t[4]=a);let o;t[5]===n.next?o=t[6]:(o=n.next&&(0,C.jsx)(`div`,{style:{font:`500 calc(var(--ru) * 2.7)/1.4 var(--reel-sans)`,marginTop:`calc(var(--ru) * 2.4)`,...D},children:n.next}),t[5]=n.next,t[6]=o);let s;return t[7]!==a||t[8]!==o?(s=(0,C.jsxs)(w,{kicker:`Where you stand`,children:[a,o]}),t[7]=a,t[8]=o,t[9]=s):s=t[9],s}function ue(e,t){return(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`calc(var(--rw) * 3)`},children:[(0,C.jsx)(T,{pct:e.pct,color:E[t%E.length],delay:t*.12}),(0,C.jsxs)(`div`,{style:{minWidth:0},children:[(0,C.jsx)(`div`,{style:{font:`600 calc(var(--ru) * 3)/1.1 var(--reel-sans)`,color:`var(--reel-ink)`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:e.label}),(0,C.jsxs)(`div`,{style:{font:`700 calc(var(--ru) * 3.6)/1 var(--reel-sans)`,color:E[t%E.length]},children:[e.pct,`%`]})]})]},t)}function de(e){let t=(0,m.c)(8),{slots:n}=e,r=n.title||`Scoreboard`,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={display:`flex`,flexDirection:`column`,gap:`calc(var(--ru) * 2.6)`,marginTop:`calc(var(--ru) * 2.6)`},t[0]=i):i=t[0];let a;t[1]===n.items?a=t[2]:(a=n.items.map(fe),t[1]=n.items,t[2]=a);let o;t[3]===a?o=t[4]:(o=(0,C.jsx)(`div`,{style:i,children:a}),t[3]=a,t[4]=o);let s;return t[5]!==r||t[6]!==o?(s=(0,C.jsx)(w,{kicker:r,children:o}),t[5]=r,t[6]=o,t[7]=s):s=t[7],s}function fe(e,t){return(0,C.jsx)(ae,{label:e.label,value:e.score,pct:e.pct,color:E[t%E.length],delay:t*.12},t)}function pe(e){let t=(0,m.c)(10),{slots:n}=e,r;t[0]===n.topic?r=t[1]:(r=(0,C.jsx)(`h3`,{children:n.topic}),t[0]=n.topic,t[1]=r);let i;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i={display:`grid`,gridTemplateColumns:`1fr 1fr`,gap:`calc(var(--ru) * 2)`,marginTop:`calc(var(--ru) * 3)`},t[2]=i):i=t[2];let a;t[3]===n.metrics?a=t[4]:(a=n.metrics.map(me),t[3]=n.metrics,t[4]=a);let o;t[5]===a?o=t[6]:(o=(0,C.jsx)(`div`,{style:i,children:a}),t[5]=a,t[6]=o);let s;return t[7]!==r||t[8]!==o?(s=(0,C.jsxs)(w,{kicker:`Session recap`,children:[r,o]}),t[7]=r,t[8]=o,t[9]=s):s=t[9],s}function me(e,t){let n=_(e.value,se);return(0,C.jsxs)(`div`,{style:{padding:`calc(var(--ru) * 2.6) calc(var(--rw) * 3)`,borderRadius:`calc(var(--ru) * 2.4)`,background:`color-mix(in oklab, var(--reel-accent) 12%, transparent)`,animation:`reel-pop 0.5s cubic-bezier(0.2,0.7,0.3,1) ${t*.1}s both`},children:[(0,C.jsx)(`div`,{"data-fit-tier":n.tier,style:{fontWeight:700,fontFamily:`var(--reel-sans)`,color:`var(--reel-accent)`,...n.style},children:e.value}),(0,C.jsx)(`div`,{style:{font:`500 calc(var(--ru) * 2.3)/1.2 var(--reel-mono)`,marginTop:`calc(var(--ru) * 0.8)`,...D},children:e.label})]},t)}var k=.58;function A(e,t){return e.length*t*k}var he=10;function ge(e){if(e.length<=he)return[e];let t=e.length/2,n=-1,r=1/0;for(let i=0;i<e.length;i+=1){if(e[i]!==` `)continue;let a=Math.abs(i-t);a<r&&(r=a,n=i)}if(n===-1){let n=Math.round(t);return[e.slice(0,n),e.slice(n)]}return[e.slice(0,n),e.slice(n+1)]}var j=[12,10.5,9];function _e(e,t){if(e.length<=t)return e;let n=Math.max(0,Math.floor(t/2)-1),r=Math.max(0,t-n-1);return`${e.slice(0,n)}…${e.slice(e.length-r)}`}function M(e,t){let n=ge(e);for(let e of j)if(n.every(n=>A(n,e)<=t))return{lines:n,size:e};let r=j[j.length-1],i=Math.max(1,Math.floor(t/(r*k)));return{lines:n.map(e=>_e(e,i)),size:r}}function N(e,t,n,r=12){return 2*Math.min(e-t,n-e)-r}function ve(e,t,n,r,i=6){return(r===`start`?n-e:e-t)-i}var P=[`var(--reel-orb-1)`,`var(--reel-accent-2)`,`var(--reel-accent)`,`var(--reel-orb-2)`],F={color:`color-mix(in oklab, var(--reel-ink) 64%, transparent)`},I=-46,L=346,ye=10;function be(e){let t=(0,m.c)(17),{slots:n}=e,r;t[0]===n.title?r=t[1]:(r=g(n.title,v),t[0]=n.title,t[1]=r);let i=r,a;t[2]===n.subtitle?a=t[3]:(a=n.subtitle?g(n.subtitle,x):void 0,t[2]=n.subtitle,t[3]=a);let o=a,s=n.tag||`Concept`,c;t[4]===i.style?c=t[5]:(c={fontWeight:700,fontFamily:`var(--reel-sans)`,letterSpacing:`-0.02em`,color:`var(--reel-ink)`,marginTop:`calc(var(--ru) * 2)`,...i.style},t[4]=i.style,t[5]=c);let l;t[6]!==i.tier||t[7]!==n.title||t[8]!==c?(l=(0,C.jsx)(`div`,{"data-fit-tier":i.tier,style:c,children:n.title}),t[6]=i.tier,t[7]=n.title,t[8]=c,t[9]=l):l=t[9];let u;t[10]!==n.subtitle||t[11]!==o?(u=n.subtitle&&o&&(0,C.jsx)(`div`,{"data-fit-tier":o.tier,style:{fontWeight:500,fontFamily:`var(--reel-sans)`,marginTop:`calc(var(--ru) * 2)`,...F,...o.style},children:n.subtitle}),t[10]=n.subtitle,t[11]=o,t[12]=u):u=t[12];let d;return t[13]!==s||t[14]!==l||t[15]!==u?(d=(0,C.jsxs)(w,{kicker:s,children:[l,u]}),t[13]=s,t[14]=l,t[15]=u,t[16]=d):d=t[16],d}function xe({slots:e}){let t=e.nodes.slice(0,5),n=t.map((e,n)=>{let r=-Math.PI/2+n*2*Math.PI/Math.max(1,t.length);return{...e,x:150+108*Math.cos(r),y:150+108*Math.sin(r)}}),r=M(e.center,N(150,I,L)),i=r.size*1.15,a=r.lines.reduce((e,t)=>t.length>e.length?t:e,``),o=Math.max(30,A(a,r.size)/2+ye),s=Math.max(30,i*r.lines.length/2+8);return(0,C.jsx)(w,{kicker:`How it connects`,children:(0,C.jsx)(`div`,{style:{height:`calc(var(--ru) * 46)`,marginTop:`calc(var(--ru) * 1.6)`},children:(0,C.jsxs)(`svg`,{viewBox:`-46 0 392 300`,style:{width:`100%`,height:`100%`,overflow:`hidden`},children:[n.map((e,t)=>(0,C.jsx)(`line`,{x1:150,y1:150,x2:e.x,y2:e.y,stroke:`var(--reel-accent)`,strokeWidth:`2`,strokeOpacity:`0.5`,pathLength:1,strokeDasharray:1,style:{"--len":1,animation:`reel-draw 0.7s ease-out ${t*.12}s both`}},`e${t}`)),n.map((e,t)=>{let n=e.y<150,{lines:r,size:i}=M(e.label,N(e.x,I,L)),a=i*1.15,o=n?e.y-12:e.y+20,s=n?o-(r.length-1)*a:o;return(0,C.jsxs)(`g`,{style:{animation:`reel-pop 0.5s ease-out ${.3+t*.12}s both`},children:[(0,C.jsx)(`circle`,{cx:e.x,cy:e.y,r:`7`,fill:P[t%P.length]}),(0,C.jsx)(`text`,{x:e.x,textAnchor:`middle`,style:{font:`600 ${i}px var(--reel-sans)`,fill:`var(--reel-ink)`},children:r.map((t,n)=>(0,C.jsx)(`tspan`,{x:e.x,y:s+n*a,children:t},n))})]},`n${t}`)}),(0,C.jsx)(`ellipse`,{cx:150,cy:150,rx:o,ry:s,fill:`var(--reel-accent)`}),(0,C.jsx)(`text`,{x:150,textAnchor:`middle`,style:{font:`700 ${r.size}px var(--reel-sans)`,fill:`#fff`},children:r.lines.map((e,t)=>(0,C.jsx)(`tspan`,{x:150,y:154+(t-(r.lines.length-1)/2)*i,children:e},t))})]})})})}function Se({slots:e}){let t=e.vectors?.slice(0,2)??[],n=e.note?g(e.note,x):void 0;return(0,C.jsxs)(w,{kicker:e.label,children:[(0,C.jsx)(`div`,{style:{position:`relative`,height:`calc(var(--ru) * 36)`,marginTop:`calc(var(--ru) * 2)`,borderRadius:`calc(var(--ru) * 2)`,backgroundImage:`linear-gradient(color-mix(in oklab, var(--reel-accent) 14%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in oklab, var(--reel-accent) 14%, transparent) 1px, transparent 1px)`,backgroundSize:`8% 14%`},children:(0,C.jsxs)(`svg`,{viewBox:`0 0 200 150`,style:{width:`100%`,height:`100%`,overflow:`visible`},children:[(0,C.jsx)(`defs`,{children:(0,C.jsx)(`marker`,{id:`reel-arrow`,markerWidth:`8`,markerHeight:`8`,refX:`6`,refY:`4`,orient:`auto`,children:(0,C.jsx)(`path`,{d:`M0,0 L8,4 L0,8 Z`,fill:`var(--reel-accent)`})})}),(0,C.jsx)(`line`,{x1:`30`,y1:`120`,x2:`120`,y2:`60`,stroke:`var(--reel-accent)`,strokeWidth:`3`,markerEnd:`url(#reel-arrow)`,pathLength:1,strokeDasharray:1,style:{"--len":1,animation:`reel-draw 0.8s ease-out 0.2s both`}}),(0,C.jsx)(`line`,{x1:`30`,y1:`120`,x2:`170`,y2:`35`,stroke:`var(--reel-accent-2)`,strokeWidth:`3`,markerEnd:`url(#reel-arrow)`,pathLength:1,strokeDasharray:1,style:{"--len":1,animation:`reel-draw 0.8s ease-out 0.7s both`}}),t[0]&&(0,C.jsx)(`text`,{x:`118`,y:`56`,style:{font:`700 12px var(--reel-mono)`,fill:`var(--reel-ink)`},children:t[0].label}),t[1]&&(0,C.jsx)(`text`,{x:`168`,y:`30`,style:{font:`700 12px var(--reel-mono)`,fill:`var(--reel-ink)`},children:t[1].label})]})}),e.equation&&(0,C.jsx)(`div`,{style:{font:`600 calc(var(--ru) * 4.4)/1.2 var(--reel-mono)`,color:`var(--reel-ink)`,marginTop:`calc(var(--ru) * 2.4)`,textAlign:`center`},children:e.equation}),e.note&&n&&(0,C.jsx)(`div`,{"data-fit-tier":n.tier,style:{fontWeight:500,fontFamily:`var(--reel-sans)`,marginTop:`calc(var(--ru) * 1.6)`,...F,...n.style},children:e.note})]})}function Ce(e){let t=(0,m.c)(21),{slots:n}=e,r,i,a,o,s,c;if(t[0]!==n.stops){let e=n.stops.slice(0,5);r=w,c=`The path`,t[7]===Symbol.for(`react.memo_cache_sentinel`)?(o={position:`relative`,marginTop:`calc(var(--ru) * 2.4)`},s=(0,C.jsx)(`span`,{style:{position:`absolute`,left:`calc(var(--ru) * 1.35)`,top:`calc(var(--ru) * 2)`,bottom:`calc(var(--ru) * 2)`,width:`calc(var(--ru) * 0.7)`,borderRadius:999,background:`linear-gradient(var(--reel-accent), var(--reel-accent-2))`}}),i={display:`flex`,flexDirection:`column`,gap:`calc(var(--ru) * 3)`},t[7]=i,t[8]=o,t[9]=s):(i=t[7],o=t[8],s=t[9]),a=e.map(we),t[0]=n.stops,t[1]=r,t[2]=i,t[3]=a,t[4]=o,t[5]=s,t[6]=c}else r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6];let l;t[10]!==i||t[11]!==a?(l=(0,C.jsx)(`div`,{style:i,children:a}),t[10]=i,t[11]=a,t[12]=l):l=t[12];let u;t[13]!==o||t[14]!==s||t[15]!==l?(u=(0,C.jsxs)(`div`,{style:o,children:[s,l]}),t[13]=o,t[14]=s,t[15]=l,t[16]=u):u=t[16];let d;return t[17]!==r||t[18]!==c||t[19]!==u?(d=(0,C.jsx)(r,{kicker:c,children:u}),t[17]=r,t[18]=c,t[19]=u,t[20]=d):d=t[20],d}function we(e,t){let n=e.state===`done`,r=e.state===`active`;return(0,C.jsxs)(`div`,{style:{position:`relative`,display:`flex`,alignItems:`center`,gap:`calc(var(--rw) * 3.4)`,animation:`reel-rise 0.5s ease-out ${t*.12}s both`},children:[(0,C.jsx)(`span`,{style:{flexShrink:0,width:`calc(var(--ru) * 3.4)`,height:`calc(var(--ru) * 3.4)`,borderRadius:`50%`,background:n||r?`var(--reel-accent)`:`var(--reel-bg)`,border:`calc(var(--ru) * 0.6) solid ${r?`var(--reel-accent-2)`:`var(--reel-accent)`}`,boxSizing:`border-box`}}),(0,C.jsx)(`span`,{style:{minWidth:0,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,font:`600 calc(var(--ru) * 3.2)/1.2 var(--reel-sans)`,color:n?F.color:`var(--reel-ink)`,textDecoration:n?`line-through`:`none`},children:e.label})]},t)}var Te={color:`color-mix(in oklab, var(--reel-ink) 64%, transparent)`};function Ee(e){let t=(0,m.c)(8),{slots:n}=e,r=`${n.items.length} ${n.items.length===1?`takeaway`:`takeaways`}`,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={display:`flex`,flexDirection:`column`,gap:`calc(var(--ru) * 2.6)`,marginTop:`calc(var(--ru) * 2.4)`},t[0]=i):i=t[0];let a;t[1]===n.items?a=t[2]:(a=n.items.map(De),t[1]=n.items,t[2]=a);let o;t[3]===a?o=t[4]:(o=(0,C.jsx)(`div`,{style:i,children:a}),t[3]=a,t[4]=o);let s;return t[5]!==r||t[6]!==o?(s=(0,C.jsx)(w,{kicker:r,children:o}),t[5]=r,t[6]=o,t[7]=s):s=t[7],s}function De(e,t){let n=g(e,x);return(0,C.jsxs)(`div`,{style:{display:`flex`,gap:`calc(var(--rw) * 3)`,alignItems:`baseline`,animation:`reel-rise 0.6s cubic-bezier(0.2,0.7,0.3,1) ${t*.12}s both`},children:[(0,C.jsx)(`span`,{style:{font:`700 calc(var(--ru) * 6)/0.9 var(--reel-sans)`,color:`var(--reel-accent)`},children:t+1}),(0,C.jsx)(`span`,{"data-fit-tier":n.tier,style:{fontWeight:600,fontFamily:`var(--reel-sans)`,color:`var(--reel-ink)`,minWidth:0,...n.style},children:e})]},t)}function Oe(e){let t=(0,m.c)(18),{slots:n}=e,r;t[0]===n.question?r=t[1]:(r=g(n.question,y),t[0]=n.question,t[1]=r);let i=r,a;t[2]===n.answer?a=t[3]:(a=g(n.answer,x),t[2]=n.answer,t[3]=a);let o=a,s;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s={perspective:`1100px`,marginTop:`calc(var(--ru) * 2.4)`},t[4]=s):s=t[4];let c;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,C.jsx)(`span`,{className:`reel-flipkick`,children:`Question`}),t[5]=c):c=t[5];let l;t[6]!==i.style||t[7]!==i.tier||t[8]!==n.question?(l=(0,C.jsxs)(`div`,{className:`reel-flipface`,children:[c,(0,C.jsx)(`span`,{"data-fit-tier":i.tier,style:i.style,children:n.question})]}),t[6]=i.style,t[7]=i.tier,t[8]=n.question,t[9]=l):l=t[9];let u;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,C.jsx)(`span`,{className:`reel-flipkick`,children:`Answer`}),t[10]=u):u=t[10];let d;t[11]!==o.style||t[12]!==o.tier||t[13]!==n.answer?(d=(0,C.jsxs)(`div`,{className:`reel-flipface reel-flipback`,children:[u,(0,C.jsx)(`span`,{"data-fit-tier":o.tier,style:o.style,children:n.answer})]}),t[11]=o.style,t[12]=o.tier,t[13]=n.answer,t[14]=d):d=t[14];let f;return t[15]!==l||t[16]!==d?(f=(0,C.jsx)(w,{kicker:`Q → A`,children:(0,C.jsx)(`div`,{style:s,children:(0,C.jsxs)(`div`,{className:`reel-flipcard`,children:[l,d]})})}),t[15]=l,t[16]=d,t[17]=f):f=t[17],f}function ke(e){let t=(0,m.c)(5),{slots:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={display:`flex`,flexDirection:`column`,gap:`calc(var(--ru) * 1.8)`,marginTop:`calc(var(--ru) * 2.4)`},t[0]=r):r=t[0];let i;t[1]===n.messages?i=t[2]:(i=n.messages.map(Ae),t[1]=n.messages,t[2]=i);let a;return t[3]===i?a=t[4]:(a=(0,C.jsx)(w,{kicker:`Conversation`,children:(0,C.jsx)(`div`,{style:r,children:i})}),t[3]=i,t[4]=a),a}function Ae(e,t){let n=e.role===`user`,r=g(e.text,x,66);return(0,C.jsx)(`div`,{"data-fit-tier":r.tier,style:{alignSelf:n?`flex-end`:`flex-start`,maxWidth:`82%`,padding:`calc(var(--ru) * 2) calc(var(--rw) * 3.2)`,borderRadius:`calc(var(--ru) * 3)`,borderBottomRightRadius:n?`calc(var(--ru) * 0.6)`:`calc(var(--ru) * 3)`,borderBottomLeftRadius:n?`calc(var(--ru) * 3)`:`calc(var(--ru) * 0.6)`,background:n?`var(--reel-accent)`:`color-mix(in oklab, var(--reel-ink) 9%, transparent)`,color:n?`#fff`:`var(--reel-ink)`,fontWeight:500,fontFamily:`var(--reel-sans)`,animation:`reel-rise 0.5s cubic-bezier(0.2,0.7,0.3,1) ${t*.18}s both`,...r.style},children:e.text},t)}function je(e){let t=(0,m.c)(21),{slots:n}=e,{quote:r,highlight:i}=n,a;t[0]!==i||t[1]!==r?(a=i&&r.includes(i)?r.split(i):[r],t[0]=i,t[1]=r,t[2]=a):a=t[2];let o=a,s;t[3]===r?s=t[4]:(s=g(r,b),t[3]=r,t[4]=s);let c=s,l;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,C.jsx)(`div`,{className:`reel-quote-mark`,"aria-hidden":`true`,children:`“`}),t[5]=l):l=t[5];let u;t[6]!==i||t[7]!==o[0]||t[8]!==o[1]||t[9]!==o.length||t[10]!==r?(u=o.length===2?(0,C.jsxs)(C.Fragment,{children:[o[0],(0,C.jsx)(`mark`,{children:i}),o[1]]}):r,t[6]=i,t[7]=o[0],t[8]=o[1],t[9]=o.length,t[10]=r,t[11]=u):u=t[11];let d;t[12]!==c.style||t[13]!==c.tier||t[14]!==u?(d=(0,C.jsx)(`p`,{className:`reel-quote-body`,"data-fit-tier":c.tier,style:c.style,children:u}),t[12]=c.style,t[13]=c.tier,t[14]=u,t[15]=d):d=t[15];let f;t[16]===n.attribution?f=t[17]:(f=n.attribution&&(0,C.jsx)(`div`,{style:{font:`500 calc(var(--ru) * 2.6)/1.3 var(--reel-mono)`,letterSpacing:`0.06em`,...Te},children:n.attribution}),t[16]=n.attribution,t[17]=f);let p;return t[18]!==d||t[19]!==f?(p=(0,C.jsxs)(`div`,{className:`reel-quote reel-fade`,children:[l,d,f]}),t[18]=d,t[19]=f,t[20]=p):p=t[20],p}n();var R;function z(){return R??=i(()=>import(`./alternateFinishes-BG6svkXG.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])),R}function B(e){let t=(0,s.lazy)(()=>z().then(t=>({default:t[e]})));return function(e){return(0,C.jsx)(s.Suspense,{fallback:(0,C.jsx)(`div`,{className:`reel-finish-loading`,"aria-label":`Loading visual`}),children:(0,C.jsx)(t,{slots:e.slots})})}}var V=(e,t,n=``)=>p(f(typeof e==`string`?e:e==null?``:String(e),t))||n,H=e=>{let t=typeof e==`number`?e:parseFloat(String(e));return Number.isFinite(t)?t:0},U=e=>Math.max(0,Math.min(100,Math.round(H(e)))),W=e=>Array.isArray(e)?e:[],G=e=>e&&typeof e==`object`?e:{},Me={title:(e,t)=>{let n=G(e.part),r=Number.isFinite(H(n.count))&&H(n.count)>0;return{question:V(e.question,l.title,t.question),kicker:e.kicker?V(e.kicker,l.heading):void 0,part:r?{index:Math.max(1,Math.round(H(n.index))),count:Math.max(1,Math.round(H(n.count)))}:void 0}},outro:e=>({wordmark:e.wordmark?V(e.wordmark,16):`Mavéa`,tagline:e.tagline?V(e.tagline,48):void 0,statline:e.statline?V(e.statline,40):void 0}),stat:e=>{let t=W(e.spark).map(H);return{value:V(e.value,12,`—`),unit:e.unit?V(e.unit,8):void 0,label:V(e.label,l.label,`Stat`),prior:e.prior?V(e.prior,64):void 0,spark:t.length>=2?t.slice(0,16):void 0}},metrics:e=>({items:W(e.items).slice(0,4).map(e=>({label:V(G(e).label,l.label,`—`),pct:U(G(e).pct)})),next:e.next?V(e.next,80):void 0}),ranked:e=>({title:e.title?V(e.title,l.label):void 0,items:W(e.items).slice(0,5).map(e=>({label:V(G(e).label,l.label,`—`),score:V(G(e).score,12,``),pct:U(G(e).pct)}))}),quote:(e,t)=>{let n=V(e.quote,l.quote,t.question),r=e.highlight?V(e.highlight,40):void 0;return{quote:n,highlight:r&&n.includes(r)?r:void 0,attribution:e.attribution?V(e.attribution,32):void 0}},list:e=>({title:e.title?V(e.title,l.label):void 0,items:W(e.items).map(e=>V(e,l.takeaway)).filter(Boolean).slice(0,4)}),concept:(e,t)=>({title:V(e.title,l.title,t.topic),subtitle:e.subtitle?V(e.subtitle,l.subtitle):void 0,tag:e.tag?V(e.tag,l.label):void 0}),conceptmap:(e,t)=>({center:V(e.center,16,t.topic),nodes:W(e.nodes).slice(0,5).map(e=>({label:V(G(e).label,18,`—`),kind:G(e).kind?V(G(e).kind,12):void 0}))}),qa:(e,t)=>({question:V(e.question,96,t.question),answer:V(e.answer,l.answer,`—`)}),chat:e=>({messages:W(e.messages).slice(0,4).map(e=>({role:G(e).role===`user`?`user`:`mavea`,text:V(G(e).text,l.message)})).filter(e=>e.text)}),diagram:e=>({label:V(e.label,l.label,`Diagram`),equation:e.equation?V(e.equation,40):void 0,vectors:W(e.vectors).slice(0,2).map(e=>({label:V(G(e).label,8,`v`)})),note:e.note?V(e.note,80):void 0}),steps:e=>({stops:W(e.stops).slice(0,5).map(e=>{let t=G(e).state;return{label:V(G(e).label,l.label,`—`),state:t===`done`||t===`active`||t===`todo`?t:`todo`}})}),recap:(e,t)=>({topic:V(e.topic,l.label,t.topic),metrics:W(e.metrics).slice(0,4).map(e=>({label:V(G(e).label,l.label,`—`),value:V(G(e).value,12,`—`)}))}),markup:e=>{let t=e=>{let t=G(e);return{x:H(t.x),y:H(t.y),w:H(t.w),h:H(t.h)}},n=e.figure&&G(e.figure).w?t(e.figure):void 0;return{pageImage:typeof e.pageImage==`string`?e.pageImage:``,imgW:Math.max(1,Math.round(H(e.imgW))),imgH:Math.max(1,Math.round(H(e.imgH))),rects:W(e.rects).slice(0,16).map(t).filter(e=>e.w>0&&e.h>0),figure:n,isFigure:e.isFigure===!0,seed:typeof e.seed==`string`?e.seed:``,...G(e.accent).star===!0||G(e.accent).question===!0?{accent:{...G(e.accent).star===!0?{star:!0}:{},...G(e.accent).question===!0?{question:!0}:{}}}:{},color:typeof e.color==`string`?e.color:`var(--reel-accent)`,title:V(e.title,80,``),explanation:V(e.explanation,240,``)}}};function K(e,t,n){return Me[e](t,n)}function q(e,t,n,r){return{content:e,label:t,Slide:n,surface:r?.surface,bleed:r?.bleed,heroCap:r?.heroCap}}function Ne(e,t){let n=G(t),r=e===`quote`?n.quote:e===`title`?n.question:n.title;return typeof r==`string`?r.length:0}function Pe(e){return X[e]?.surface===`dark`?`dark`:`light`}function Fe(e){return X[e]?.bleed===!0}var J={bleed:!0},Y={surface:`dark`,bleed:!0},X={title:q(`title`,`Prompt`,re),outro:q(`outro`,`Outro`,ie),bigStat:q(`stat`,`Big stat`,ce),progressRings:q(`metrics`,`Progress rings`,le),bentoBoard:q(`metrics`,`Bento board`,B(`BentoBoardSlide`),J),equalizer:q(`metrics`,`Equalizer`,B(`EqualizerSlide`),Y),scoreboard:q(`ranked`,`Scoreboard`,de),podium:q(`ranked`,`Podium`,B(`PodiumSlide`),J),departures:q(`ranked`,`Departures`,B(`DeparturesSlide`),Y),spotlightQuote:q(`quote`,`Spotlight quote`,je),takeaways:q(`list`,`Takeaways`,Ee),conceptCard:q(`concept`,`Concept`,be),knowledgeGraph:q(`conceptmap`,`Knowledge graph`,xe),flashcard:q(`qa`,`Flashcard`,Oe),chatTranscript:q(`chat`,`Chat`,ke),blueprint:q(`diagram`,`Blueprint`,Se),steps:q(`steps`,`Steps`,Ce),recapBento:q(`recap`,`Recap`,pe),glowOutline:q(`concept`,`Glow outline`,B(`GlowOutlineSlide`),Y),neon:q(`concept`,`Neon`,B(`NeonSlide`),Y),neonSign:q(`concept`,`Neon sign`,B(`NeonSignSlide`),Y),cosmic:q(`concept`,`Cosmic`,B(`CosmicSlide`),Y),massiveType:q(`concept`,`Massive type`,B(`MassiveTypeSlide`),Y),magazine:q(`concept`,`Magazine`,B(`MagazineSlide`),J),mysticCard:q(`concept`,`Mystic card`,B(`MysticCardSlide`),{...Y,heroCap:96}),periodicTile:q(`concept`,`Periodic tile`,B(`PeriodicTileSlide`),{...Y,heroCap:88}),dictionary:q(`concept`,`Dictionary`,B(`DictionarySlide`),J),swiss:q(`concept`,`Swiss`,B(`SwissSlide`),J),auroraGlass:q(`concept`,`Aurora glass`,B(`AuroraGlassSlide`),J),lockScreen:q(`concept`,`Lock screen`,B(`LockScreenSlide`),Y),spotlightStage:q(`concept`,`Spotlight stage`,B(`SpotlightStageSlide`),Y),polaroid:q(`concept`,`Polaroid`,B(`PolaroidSlide`),{...Y,heroCap:96}),metaball:q(`concept`,`Metaball`,B(`MetaballSlide`),Y),markerDoodle:q(`concept`,`Marker doodle`,B(`MarkerDoodleSlide`),J),chalkboard:q(`concept`,`Chalkboard`,B(`ChalkboardSlide`),{...J,heroCap:88}),whiteboard:q(`concept`,`Whiteboard`,B(`WhiteboardSlide`),J),sunsetTape:q(`concept`,`Sunset tape`,B(`SunsetTapeSlide`),Y),searchBar:q(`concept`,`Search`,B(`SearchBarSlide`),Y),wrapped:q(`stat`,`Wrapped`,B(`WrappedSlide`),Y),levelUp:q(`stat`,`Level up`,B(`LevelUpSlide`)),countdown:q(`stat`,`Countdown`,B(`CountdownSlide`),Y),streak:q(`stat`,`Streak`,B(`StreakSlide`)),ticker:q(`stat`,`Ticker`,B(`TickerSlide`),Y),tradingCard:q(`stat`,`Trading card`,B(`TradingCardSlide`),Y),particleStorm:q(`stat`,`Particle storm`,B(`ParticleStormSlide`),Y),billboard:q(`quote`,`Billboard`,B(`BillboardSlide`),Y),comicPanel:q(`quote`,`Comic panel`,B(`ComicPanelSlide`),J),captionMeme:q(`quote`,`Caption meme`,B(`CaptionMemeSlide`),J),kineticStack:q(`quote`,`Kinetic stack`,B(`KineticStackSlide`),Y),stickyNotes:q(`list`,`Sticky notes`,B(`StickyNotesSlide`),Y),marquee:q(`list`,`Marquee`,B(`MarqueeSlide`),Y),notebook:q(`list`,`Notebook`,B(`NotebookSlide`),J),graphPlot:q(`diagram`,`Graph plot`,B(`GraphPlotSlide`)),codeEditor:q(`diagram`,`Code editor`,B(`CodeEditorSlide`),Y),constellation:q(`conceptmap`,`Constellation`,B(`ConstellationSlide`),Y),chipCloud:q(`conceptmap`,`Chip cloud`,B(`ChipCloudSlide`),J),branchTree:q(`conceptmap`,`Branch tree`,B(`BranchTreeSlide`),J),orbitMap:q(`conceptmap`,`Orbit map`,B(`OrbitMapSlide`),Y),quizCard:q(`qa`,`Quiz card`,B(`QuizCardSlide`),J),revealCard:q(`qa`,`Reveal`,B(`RevealCardSlide`),Y),faqRow:q(`qa`,`FAQ`,B(`FaqRowSlide`),J),textThread:q(`chat`,`Text thread`,B(`TextThreadSlide`),J),terminalChat:q(`chat`,`Terminal`,B(`TerminalChatSlide`),Y),captionStack:q(`chat`,`Captions`,B(`CaptionStackSlide`),Y),voiceMemo:q(`chat`,`Voice memo`,B(`VoiceMemoSlide`),J),checklist:q(`steps`,`Checklist`,B(`ChecklistSlide`),J),progressTrack:q(`steps`,`Progress track`,B(`ProgressTrackSlide`),Y),stepStack:q(`steps`,`Step stack`,B(`StepStackSlide`),J),widgets:q(`recap`,`Widgets`,B(`WidgetsSlide`),Y),sessionPass:q(`recap`,`Session pass`,B(`SessionPassSlide`),Y),finder:q(`recap`,`Finder`,B(`FinderSlide`),Y),receiptTape:q(`recap`,`Receipt tape`,B(`ReceiptTapeSlide`),J),documentMarkup:q(`markup`,`Document markup`,B(`DocumentMarkupSlide`),J)},Z=(()=>{let e={};for(let t of Object.keys(X)){let n=X[t];(e[n.content]??=[]).push(t)}return e})(),Ie={quote:[{to:`concept`,finishes:[`spotlightStage`,`magazine`,`sunsetTape`,`lockScreen`,`auroraGlass`,`whiteboard`,`chalkboard`,`markerDoodle`],adapt:e=>({title:e.quote,subtitle:e.attribution,tag:`Quote`})}],concept:[{to:`quote`,finishes:[`spotlightQuote`,`billboard`,`comicPanel`,`captionMeme`],adapt:e=>({quote:e.subtitle??e.title,attribution:e.tag})}],list:[{to:`steps`,finishes:[`steps`],adapt:e=>({stops:W(e.items).map(e=>({label:e,state:`todo`}))})}],steps:[{to:`list`,finishes:[`takeaways`,`stickyNotes`,`notebook`,`marquee`],adapt:e=>({items:W(e.stops).map(e=>G(e).label)})}]},Q=e=>Ie[e]??[];function $(e,t,n,r=0,i){let a=Z[e];if(!a||!a.length)return`conceptCard`;if(t<=0)return a[0];let o=[...a,...Q(e).flatMap(e=>e.finishes)],s=o.filter(e=>(X[e]?.heroCap??1/0)>=r),c=s.length?s:o;if(i!==void 0){let e=c.filter(e=>e!==i);e.length&&(c=e)}return c[(t*7+n*3)%c.length]}function Le(e,t){if(t===e.content)return e.slots;let n=Q(e.content).find(e=>e.to===t);return n?K(t,n.adapt(e.slots),{topic:``,question:``}):e.slots}function Re(e){let t=X[e.template];t&&(t.content===e.content||Q(e.content).some(e=>e.to===t.content))||(t=X[(Z[e.content]??[])[0]]);let n=t??X.conceptCard;return{Slide:n.Slide,slots:Le(e,n.content)}}export{u as C,f as D,l as E,ee as S,d as T,y as _,Ne as a,_ as b,N as c,M as d,w as f,b as g,v as h,Pe as i,ve as l,x as m,K as n,Re as o,T as p,Fe as r,z as s,$ as t,A as u,S as v,c as w,g as x,te as y};
@@ -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-DOpl5xzv.js";import{n as i}from"./icons-CHVz6kv_.js";import{t as a}from"./richText-BkxJhl9N.js";import{t as o}from"./safeImageUrl-CUkucDUu.js";import{r as s}from"./lib-BLt1wpw2.js";import{t as c}from"./registry-types-DMuK0vJ6.js";import{t as l}from"./safeCssColor-di93BXgG.js";var u=t(),d=n(),f=480,p=16,m=90,h=240,g=390,_=120,v=38,y=14;function b(e){let t=e.toLowerCase();return t.includes(`proto`)||t.includes(`pie`)||t.includes(`indo`)?`var(--text-muted)`:t.includes(`latin`)||t.includes(`greek`)||t.includes(`ancient`)?`var(--presence)`:t.includes(`french`)||t.includes(`romance`)||t.includes(`spanish`)||t.includes(`italian`)?`var(--insight)`:t.includes(`german`)||t.includes(`dutch`)||t.includes(`nordic`)||t.includes(`norse`)?`var(--warning)`:t.includes(`arabic`)||t.includes(`persian`)||t.includes(`sanskrit`)?`var(--danger)`:`var(--text-secondary)`}var x=18,S=22;function C(e,t){return e.length>t?e.slice(0,t-1).trimEnd()+`…`:e}function w({word:e,roots:t,descendants:n,note:r,footer:i,delay:o}){let{vbH:s,wordY:c,wordCY:l,rootBoxes:w,descBoxes:T}=(0,u.useMemo)(()=>{let e=t??[],r=n??[],i=e.length,a=r.length,o=Math.max(i,a,1)*52-y+p*2+12,s=Math.max(o,120),c=s/2,l=c-v/2,u=c-(i*52-(i>0?y:0))/2,d=e.map((e,t)=>({r:e,x:m-_/2,y:u+t*52,cy:u+t*52+v/2,color:b(e.lang)})),f=c-(a*52-(a>0?y:0))/2;return{vbH:s,wordY:l,wordCY:c,rootBoxes:d,descBoxes:r.map((e,t)=>({d:e,x:g-_/2,y:f+t*52,cy:f+t*52+v/2,color:b(e.lang??``)}))}},[t,n]),E=(e,t,n,r)=>{let i=(e+n)/2;return`M ${e.toFixed(1)},${t.toFixed(1)} C ${i.toFixed(1)},${t.toFixed(1)} ${i.toFixed(1)},${r.toFixed(1)} ${n.toFixed(1)},${r.toFixed(1)}`};return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(o??0)+`ms`},children:[(0,d.jsx)(`div`,{className:`et-wrap`,children:(0,d.jsxs)(`svg`,{className:`et-svg`,viewBox:`0 0 ${f} ${s}`,role:`img`,"aria-label":`Etymology of "${e}"`,preserveAspectRatio:`xMidYMid meet`,children:[w.map((e,t)=>(0,d.jsx)(`path`,{d:E(150,e.cy,h-_/2,l),fill:`none`,stroke:e.color,strokeWidth:`1.5`,opacity:`0.75`},`rc${t}`)),T.map((e,t)=>(0,d.jsx)(`path`,{d:E(300,l,g-_/2,e.cy),fill:`none`,stroke:e.color,strokeWidth:`1.5`,opacity:`0.75`},`dc${t}`)),w.map(({r:e,x:t,y:n,cy:r,color:i},a)=>{let o=e.lang+(e.gloss?` · ${e.gloss}`:``);return(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`rect`,{x:t,y:n,width:_,height:v,rx:6,className:`et-box`,style:{stroke:i}}),(0,d.jsxs)(`text`,{x:m,y:r-7,textAnchor:`middle`,className:`et-form`,children:[e.form.length>x&&(0,d.jsx)(`title`,{children:e.form}),C(e.form,x)]}),(0,d.jsxs)(`text`,{x:m,y:r+9,textAnchor:`middle`,className:`et-lang`,style:{fill:i},children:[o.length>S&&(0,d.jsx)(`title`,{children:o}),C(o,S)]})]},`r${a}`)}),(0,d.jsx)(`rect`,{x:h-_/2,y:c,width:_,height:v,rx:8,className:`et-word-box`}),(0,d.jsx)(`text`,{x:h,y:l+5,textAnchor:`middle`,className:`et-word`,children:e}),T.map(({d:e,x:t,y:n,cy:r,color:i},a)=>{let o=e.lang?`${e.lang}${e.gloss?` · ${e.gloss}`:``}`:e.gloss??``;return(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`rect`,{x:t,y:n,width:_,height:v,rx:6,className:`et-box`,style:{stroke:i}}),(0,d.jsxs)(`text`,{x:g,y:r-7,textAnchor:`middle`,className:`et-form`,children:[e.form.length>x&&(0,d.jsx)(`title`,{children:e.form}),C(e.form,x)]}),(0,d.jsxs)(`text`,{x:g,y:r+9,textAnchor:`middle`,className:`et-lang`,style:{fill:i},children:[o.length>S&&(0,d.jsx)(`title`,{children:o}),C(o,S)]})]},`d${a}`)}),(0,d.jsx)(`text`,{x:m,y:p-4,textAnchor:`middle`,className:`et-col-hdr`,children:`Roots`}),T.length>0&&(0,d.jsx)(`text`,{x:g,y:p-4,textAnchor:`middle`,className:`et-col-hdr`,children:`Descendants`})]})}),r&&(0,d.jsx)(`div`,{className:`et-note`,children:r}),i&&(0,d.jsx)(`div`,{className:`insight-summary`,dangerouslySetInnerHTML:a(i),style:{marginTop:12}})]})}function T({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,subject:r,tagline:o,facts:s,body:c,footer:l,delay:u}){let f=i[t]??i.doc,p=s??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`fs-subject`,children:r}),o&&(0,d.jsx)(`div`,{className:`fs-tagline`,children:o}),p.length>0&&(0,d.jsx)(`div`,{className:`fs-facts`,children:p.map((e,t)=>(0,d.jsxs)(`div`,{className:`fs-row`,children:[(0,d.jsx)(`span`,{className:`fs-label`,children:e.label}),(0,d.jsxs)(`span`,{className:`fs-value`,...t===0?{"data-mark":`underline`}:{},children:[e.value,e.note&&(0,d.jsxs)(`span`,{className:`fs-note`,children:[` `,e.note]})]})]},t))}),c&&(0,d.jsx)(`div`,{className:`fs-body`,dangerouslySetInnerHTML:a(c)}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}var E=r(),D={flammable:`Flammable`,corrosive:`Corrosive`,toxic:`Toxic`,irritant:`Irritant`,oxidizer:`Oxidizer`,healthHazard:`Health hazard`,environment:`Environment`,explosive:`Explosive`,compressedGas:`Compressed gas`},ee=`12,1.6 22.4,12 12,22.4 1.6,12`,te={flammable:()=>(0,d.jsx)(`path`,{className:`ghs-symbol-fill`,d:`M12 6c1.9 2.4 2.9 4.2 2.9 6a2.9 2.9 0 0 1-5.8 0c0-.7.15-1.3.45-1.85-.05.5.1.9.5 1.15-.15-1.7.3-3.4 1.95-5.3Z`}),corrosive:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`line`,{x1:`5.6`,y1:`13.4`,x2:`18.4`,y2:`13.4`}),(0,d.jsx)(`path`,{d:`M9 6.6v3.6q0 1.7-1.1 3.2`}),(0,d.jsx)(`path`,{d:`M15 6.6v3.6q0 1.7 1.1 3.2`}),(0,d.jsx)(`path`,{d:`M7.6 15.4q.6 1.2 0 2.4`}),(0,d.jsx)(`path`,{d:`M16.4 15.4q.6 1.4-.2 2.6`})]}),toxic:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`circle`,{cx:`12`,cy:`10.1`,r:`3.15`}),(0,d.jsx)(`circle`,{className:`ghs-symbol-fill`,cx:`10.6`,cy:`9.8`,r:`0.55`}),(0,d.jsx)(`circle`,{className:`ghs-symbol-fill`,cx:`13.4`,cy:`9.8`,r:`0.55`}),(0,d.jsx)(`path`,{d:`M10.6 12.3q1.4 1 2.8 0`}),(0,d.jsx)(`path`,{d:`M8.1 17.1 15.9 13.7`}),(0,d.jsx)(`path`,{d:`M8.1 13.7 15.9 17.1`})]}),irritant:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol-fill`,children:[(0,d.jsx)(`rect`,{x:`11.05`,y:`6.4`,width:`1.9`,height:`6.6`,rx:`0.95`}),(0,d.jsx)(`circle`,{cx:`12`,cy:`15.9`,r:`1.1`})]}),oxidizer:()=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`circle`,{className:`ghs-symbol`,cx:`12`,cy:`15.1`,r:`3.05`}),(0,d.jsx)(`path`,{className:`ghs-symbol-fill`,d:`M12 6c1.5 2 2.3 3.5 2.3 5a2.3 2.3 0 0 1-4.6 0c0-.55.1-1 .3-1.45-.05.4.1.7.4.9-.1-1.35.35-2.7 1.6-4.45Z`})]}),healthHazard:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`circle`,{cx:`12`,cy:`7.5`,r:`1.75`}),(0,d.jsx)(`path`,{d:`M8.3 17c.1-3.15 1.7-5.1 3.7-5.1s3.6 1.95 3.7 5.1`}),(0,d.jsx)(`path`,{d:`M12 12.6v3.4`}),(0,d.jsx)(`path`,{d:`M10.5 14.3h3`}),(0,d.jsx)(`path`,{d:`M10.8 13.15l2.4 2.4`}),(0,d.jsx)(`path`,{d:`M13.2 13.15l-2.4 2.4`})]}),environment:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`path`,{d:`M8.7 7.4v6.2`}),(0,d.jsx)(`path`,{d:`M8.7 9.7 7 8.2`}),(0,d.jsx)(`path`,{d:`M8.7 8.9l1.9-1.6`}),(0,d.jsx)(`path`,{d:`M8.7 11.7 7 13`}),(0,d.jsx)(`path`,{d:`M6 15.9c1.35.85 2.85.85 4.2 0`}),(0,d.jsx)(`path`,{d:`M13.6 15.9c1.35.85 2.85.85 4.2 0`}),(0,d.jsx)(`path`,{className:`ghs-symbol-fill`,d:`M14.9 12.6c1.7-.35 3.05.2 3.7 1.15-.7.95-2.1 1.5-3.7 1.15.35-.5.35-1.8 0-2.3Z`})]}),explosive:()=>(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`circle`,{className:`ghs-symbol-fill`,cx:`12`,cy:`12`,r:`1.55`}),(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`path`,{d:`M12 6.5v2.3`}),(0,d.jsx)(`path`,{d:`M12 15.2v2.3`}),(0,d.jsx)(`path`,{d:`M6.5 12h2.3`}),(0,d.jsx)(`path`,{d:`M15.2 12h2.3`}),(0,d.jsx)(`path`,{d:`M8.3 8.3l1.6 1.6`}),(0,d.jsx)(`path`,{d:`M14.1 14.1l1.6 1.6`}),(0,d.jsx)(`path`,{d:`M15.7 8.3l-1.6 1.6`}),(0,d.jsx)(`path`,{d:`M9.9 14.1l-1.6 1.6`})]})]}),compressedGas:()=>(0,d.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,d.jsx)(`rect`,{x:`9.3`,y:`9.1`,width:`5.4`,height:`8.4`,rx:`1.3`}),(0,d.jsx)(`rect`,{x:`10.55`,y:`6.35`,width:`2.9`,height:`2.4`,rx:`0.5`}),(0,d.jsx)(`line`,{x1:`9.6`,y1:`12.6`,x2:`14.4`,y2:`12.6`})]})};function O(e){let t=(0,E.c)(7),{kind:n,className:r}=e,i=te[n],a=D[n],o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,d.jsx)(`polygon`,{className:`ghs-diamond`,points:ee}),t[0]=o):o=t[0];let s;t[1]===i?s=t[2]:(s=(0,d.jsx)(i,{}),t[1]=i,t[2]=s);let c;return t[3]!==r||t[4]!==a||t[5]!==s?(c=(0,d.jsxs)(`svg`,{viewBox:`0 0 24 24`,role:`img`,"aria-label":a,className:r,children:[o,s]}),t[3]=r,t[4]=a,t[5]=s,t[6]=c):c=t[6],c}function k({title:e,icon:t=`alert`,iconColor:n=`var(--danger)`,cas:r,signalWord:o,pictograms:s,hazards:c,precautions:l,footer:u,delay:f}){let p=i[t]??i.alert,m=o===`Warning`,h=m?`var(--warning)`:`var(--danger)`,g=(s??[]).filter(e=>e in D),_=c??[],v=l??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,d.jsxs)(`div`,{className:`hc-cas`,children:[`CAS `,r]}),(0,d.jsxs)(`div`,{className:`hc-signal`,style:{"--hc-c":h},role:`status`,children:[(0,d.jsx)(`span`,{className:`hc-signal-icon`,children:(0,d.jsx)(i.alert,{})}),(0,d.jsx)(`span`,{className:`hc-signal-word`,children:m?`Warning`:`Danger`})]}),g.length>0&&(0,d.jsx)(`div`,{className:`hc-pictograms`,children:g.map((e,t)=>(0,d.jsxs)(`div`,{className:`hc-pic m-stagger-item m-scale-in`,style:{"--i":t},children:[(0,d.jsx)(O,{kind:e,className:`hc-pic-glyph`}),(0,d.jsx)(`span`,{className:`hc-pic-label`,children:D[e]})]},t))}),_.length>0&&(0,d.jsxs)(`div`,{className:`hc-section`,children:[(0,d.jsx)(`div`,{className:`hc-section-label`,children:`Hazards`}),(0,d.jsx)(`div`,{className:`hc-codes`,children:_.map((e,t)=>(0,d.jsxs)(`div`,{className:`hc-code-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,d.jsx)(`span`,{className:`hc-code`,children:e.code}),(0,d.jsx)(`span`,{className:`hc-code-text`,children:e.text})]},t))})]}),v.length>0&&(0,d.jsxs)(`div`,{className:`hc-section`,children:[(0,d.jsx)(`div`,{className:`hc-section-label`,children:`Precautions`}),(0,d.jsx)(`div`,{className:`hc-codes`,children:v.map((e,t)=>(0,d.jsxs)(`div`,{className:`hc-code-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,d.jsx)(`span`,{className:`hc-code`,children:e.code}),(0,d.jsx)(`span`,{className:`hc-code-text`,children:e.text})]},t))})]}),u&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}function A({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,topic:r,asOf:o,items:s,footer:c,delay:l}){let u=i[t]??i.globe,f=s??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`nd-meta`,children:[r&&(0,d.jsx)(`span`,{className:`nd-topic`,children:r}),(0,d.jsx)(`span`,{className:`nd-asof`,children:o})]}),(0,d.jsx)(`div`,{className:`nd-items`,children:f.map((e,t)=>(0,d.jsxs)(`div`,{className:`nd-item`,children:[(0,d.jsx)(`div`,{className:`nd-headline`,...t===0?{"data-mark":`underline`}:{},children:e.headline}),(e.source||e.time||e.category)&&(0,d.jsxs)(`div`,{className:`nd-item-meta`,children:[e.source&&(0,d.jsx)(`span`,{className:`nd-source`,children:e.source}),e.time&&(0,d.jsx)(`span`,{className:`nd-time`,children:e.time}),e.category&&(0,d.jsx)(`span`,{className:`nd-cat`,children:e.category})]}),e.summary&&(0,d.jsx)(`div`,{className:`nd-summary`,children:e.summary})]},t))}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}function ne({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,fromLang:r,toLang:o,text:c,result:l,pairs:u,footer:f,delay:p}){let m=i[t]??i.globe,h=u??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`tl-langs`,children:[(0,d.jsx)(`span`,{className:`tl-from`,children:r}),(0,d.jsx)(`span`,{className:`tl-arrow`,children:`→`}),(0,d.jsx)(`span`,{className:`tl-to`,children:o})]}),(0,d.jsxs)(`div`,{className:`tl-pair`,children:[(0,d.jsx)(`div`,{className:`tl-source`,children:(0,d.jsx)(`div`,{className:`tl-text`,style:{color:`var(--text-secondary)`},children:c})}),(0,d.jsx)(`div`,{className:`tl-result`,children:(0,d.jsx)(`div`,{className:`tl-text`,style:{fontWeight:600},"data-mark":`underline`,children:l})})]}),(0,d.jsx)(`div`,{style:{display:`flex`,justifyContent:`flex-end`,marginTop:6},children:(0,d.jsx)(s,{text:l,label:`Copy ${o} translation`})}),h.length>0&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`div`,{style:{fontSize:`var(--fs-xs, 11px)`,fontWeight:700,color:`var(--text-muted)`,textTransform:`uppercase`,letterSpacing:`0.07em`,marginTop:14,marginBottom:4},children:`Breakdown`}),(0,d.jsx)(`div`,{className:`tl-breakdowns`,children:h.map((e,t)=>(0,d.jsxs)(`div`,{className:`tl-bp`,children:[(0,d.jsx)(`span`,{className:`tl-bp-orig`,children:e.original}),(0,d.jsxs)(`span`,{className:`tl-bp-trans`,children:[e.translated,e.note&&(0,d.jsx)(`span`,{className:`tl-bp-note`,style:{display:`block`,marginTop:2},children:e.note})]})]},t))})]}),f&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}function re({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,word:r,ipa:o,syllables:s,tips:c,footer:l,delay:u}){let f=i[t]??i.doc,p=c??[],m=(()=>{if(!s)return[];let e=s.split(`·`);if(!o)return e.map(e=>({text:e,stressed:!1}));let t=(()=>{let t=o.indexOf(`ˈ`);if(t===-1)return-1;let n=o.replace(/[/[\]]/g,``),r=t/Math.max(n.length,1);return Math.min(Math.round(r*e.length),e.length-1)})();return e.map((e,n)=>({text:e,stressed:n===t}))})();return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`pr-word`,children:r}),o&&(0,d.jsx)(`div`,{className:`pr-ipa`,style:{display:`inline-block`,fontFamily:`var(--font-mono, monospace)`,fontStyle:`normal`,background:`var(--grid-line)`,borderRadius:`var(--r-sm, 4px)`,padding:`2px 8px`,marginTop:6,fontSize:`var(--fs-sm, 14px)`,color:`var(--text-primary)`,letterSpacing:`0.04em`},children:o}),m.length>0&&(0,d.jsx)(`div`,{className:`pr-syllables`,children:m.map((e,t)=>(0,d.jsxs)(`span`,{children:[t>0&&(0,d.jsx)(`span`,{"aria-hidden":`true`,style:{color:`var(--text-muted)`},children:`·`}),(0,d.jsx)(`span`,{style:e.stressed?{fontWeight:800,color:`var(--presence)`}:{fontWeight:400,color:`var(--text-secondary)`},...e.stressed?{"data-mark":`underline`}:{},children:e.text})]},t))}),p.length>0&&(0,d.jsx)(`div`,{className:`pr-tips`,children:p.map((e,t)=>(0,d.jsx)(`div`,{className:`pr-tip`,children:e},t))}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function ie({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,word:r,phonetic:o,senses:s,etymology:c,footer:l,delay:u}){let f=i[t]??i.doc,p=s??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`dc-word`,children:r}),o&&(0,d.jsx)(`div`,{className:`dc-phonetic`,style:{fontFamily:`monospace`,fontStyle:`normal`},children:o}),p.length>0&&(0,d.jsx)(`ol`,{className:`dc-senses`,style:{listStyle:`none`,padding:0,margin:0},children:p.map((e,t)=>(0,d.jsxs)(`li`,{className:`dc-sense`,children:[(0,d.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8,marginBottom:4},children:[(0,d.jsxs)(`span`,{style:{fontSize:`var(--fs-xs, 11px)`,fontWeight:700,color:`var(--text-faint)`,minWidth:`1.4em`},children:[t+1,`.`]}),(0,d.jsx)(`span`,{className:`dc-pos`,children:e.pos})]}),(0,d.jsx)(`div`,{className:`dc-def`,style:{paddingLeft:`calc(1.4em + 8px)`},...t===0?{"data-mark":`underline`}:{},children:e.definition}),e.example&&(0,d.jsx)(`div`,{className:`dc-example`,style:{marginLeft:`calc(1.4em + 8px)`},children:e.example}),(e.synonyms??[]).length>0&&(0,d.jsxs)(`div`,{className:`dc-synonyms`,style:{display:`flex`,flexWrap:`wrap`,alignItems:`center`,gap:4,marginLeft:`calc(1.4em + 8px)`},children:[(0,d.jsx)(`span`,{style:{color:`var(--text-faint)`,marginRight:2},children:`syn.`}),(e.synonyms??[]).map((e,t)=>(0,d.jsx)(`span`,{style:{fontSize:`var(--fs-xs, 11px)`,padding:`1px 7px`,borderRadius:999,background:`var(--track)`,color:`var(--text-secondary)`,lineHeight:1.7},children:e},t))]})]},t))}),c&&(0,d.jsxs)(`div`,{className:`dc-etymology`,children:[(0,d.jsx)(`span`,{style:{fontWeight:600,fontStyle:`normal`,color:`var(--text-muted)`},children:`Etymology `}),c]}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function ae({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,domain:r,entries:o,footer:s,delay:c}){let l=i[t]??i.doc,f=(0,u.useMemo)(()=>[...o??[]].sort((e,t)=>e.term.localeCompare(t.term,void 0,{sensitivity:`base`})),[o]);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,d.jsx)(`div`,{className:`gl-domain`,children:r}),(0,d.jsx)(`div`,{className:`gl-entries`,children:f.map((e,t)=>{let n=e.term.charAt(0).toUpperCase();return(0,d.jsxs)(`div`,{children:[n!==(t===0?null:f[t-1].term.charAt(0).toUpperCase())&&(0,d.jsx)(`div`,{className:`gl-letter-divider`,"aria-hidden":`true`,children:n}),(0,d.jsxs)(`div`,{className:`gl-entry`,children:[(0,d.jsx)(`div`,{className:`gl-term`,children:e.term}),(0,d.jsx)(`div`,{className:`gl-def`,children:e.definition}),e.see&&(0,d.jsxs)(`div`,{className:`gl-see`,children:[`See also: `,(0,d.jsx)(`span`,{style:{fontStyle:`italic`},children:e.see})]})]})]},t)})}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function oe({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,value:r,unit:o,comparisons:s,footer:c,delay:l}){let u=i[t]??i.layers,f=s??[],p=e=>{let t=typeof e.howMany==`number`?e.howMany:Number(String(e.howMany).trim());return Number.isFinite(t)&&t>0?t:null},m=f.reduce((e,t)=>{let n=p(t);return n!==null&&n>e?n:e},0);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`scf-figure`,"data-mark":`underline`,children:[(0,d.jsx)(`span`,{className:`scf-value`,children:r}),o&&(0,d.jsx)(`span`,{className:`scf-unit`,children:o})]}),f.length>0&&(0,d.jsx)(`div`,{className:`scf-rows`,children:f.map((e,t)=>{let n=p(e),r=n!==null&&m>0?Math.max(n/m*100,4):0;return(0,d.jsxs)(`div`,{className:`scf-row`,children:[(0,d.jsxs)(`div`,{className:`scf-line`,children:[(0,d.jsx)(`span`,{className:`scf-count`,children:e.howMany}),(0,d.jsx)(`span`,{className:`scf-to`,children:e.to})]}),r>0&&(0,d.jsx)(`div`,{className:`scf-track`,"aria-hidden":`true`,children:(0,d.jsx)(`div`,{className:`scf-bar`,style:{width:r+`%`}})}),e.note&&(0,d.jsx)(`div`,{className:`scf-note`,children:e.note})]},t)})}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var j=typeof window<`u`&&`speechSynthesis`in window&&typeof window.SpeechSynthesisUtterance==`function`,M=typeof window<`u`?window.AudioContext??window.webkitAudioContext:void 0,se={C:0,"C#":1,DB:1,D:2,"D#":3,EB:3,E:4,FB:4,F:5,"E#":5,"F#":6,GB:6,G:7,"G#":8,AB:8,A:9,"A#":10,BB:10,B:11,CB:11};function ce(e){let t=/^([A-Ga-g])([#b]?)(-?\d{1,2})$/.exec(e.trim());if(!t)return null;let n=se[t[1].toUpperCase()+(t[2]===`#`?`#`:t[2]===`b`?`B`:``)];return n===void 0?null:440*2**((n+(Number(t[3])+1)*12-69)/12)}function N(e){if(typeof e==`number`)return Number.isFinite(e)?e:null;let t=e.trim(),n=Number(t);return t!==``&&Number.isFinite(n)?n:ce(t)}var P={word:`chat`,note:`speaker`,tone:`speaker`};function F({title:e,icon:t=`speaker`,iconColor:n=`var(--presence)`,items:r,footer:o,delay:s}){let c=i[t]??i.speaker,l=r??[],[f,p]=(0,u.useState)(null),m=(0,u.useRef)(null),h=(0,u.useRef)(null),g=(0,u.useCallback)(()=>{if(h.current!==null&&(clearTimeout(h.current),h.current=null),m.current){let e=m.current;m.current=null,e.close().catch(()=>{})}j&&window.speechSynthesis.cancel()},[]);(0,u.useEffect)(()=>g,[g]);let _=(0,u.useCallback)((e,t)=>{if(!j)return;let n=new window.SpeechSynthesisUtterance(e);n.rate=.92;let r=()=>p(e=>e===t?null:e);n.onend=r,n.onerror=r,window.speechSynthesis.speak(n),p(t)},[]),v=(0,u.useCallback)((e,t)=>{if(!M)return;let n=new M;m.current=n;let r=n.currentTime,i=.6,a=n.createOscillator();a.type=`sine`,a.frequency.setValueAtTime(e,r);let o=n.createGain();o.gain.setValueAtTime(1e-4,r),o.gain.exponentialRampToValueAtTime(.22,r+.04),o.gain.exponentialRampToValueAtTime(1e-4,r+i),a.connect(o).connect(n.destination),a.start(r),a.stop(r+i),p(t),a.onended=()=>{p(e=>e===t?null:e),m.current===n&&(m.current=null,n.close().catch(()=>{}))},h.current=setTimeout(()=>{m.current===n&&(m.current=null,n.close().catch(()=>{}),p(e=>e===t?null:e))},.75*1e3)},[]),y=(0,u.useCallback)((e,t)=>{if(g(),e.kind===`word`){_(String(e.value),t);return}let n=N(e.value);n===null||n<=0||v(n,t)},[g,_,v]),b=e=>e.kind===`word`?j:!!M&&N(e.value)!==null;return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`ul`,{className:`hri-rows`,children:l.map((e,t)=>{let n=b(e),r=f===t,a=i[P[e.kind]]??i.speaker,o=e.kind===`word`?`Speech synthesis is unavailable in this browser`:`Audio playback is unavailable in this browser`;return(0,d.jsxs)(`li`,{className:`hri-row`,"data-playing":r||void 0,children:[(0,d.jsx)(`button`,{type:`button`,className:`hri-play`,onClick:()=>y(e,t),disabled:!n,title:n?`Play ${e.label}`:o,"aria-label":n?`Play ${e.label}`:`${e.label} — ${o}`,children:r?(0,d.jsxs)(`span`,{className:`hri-wave`,"aria-hidden":`true`,children:[(0,d.jsx)(`span`,{}),(0,d.jsx)(`span`,{}),(0,d.jsx)(`span`,{})]}):(0,d.jsx)(i.play,{className:`ic hri-play-ic`,style:{width:13,height:13}})}),(0,d.jsxs)(`div`,{className:`hri-body`,children:[(0,d.jsx)(`div`,{className:`hri-label`,children:e.label}),e.sub&&(0,d.jsx)(`div`,{className:`hri-sub`,children:e.sub})]}),(0,d.jsxs)(`span`,{className:`hri-kind`,children:[(0,d.jsx)(a,{className:`ic hri-kind-ic`,style:{width:12,height:12}}),e.kind]})]},t)})}),o&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var I=[{s:`i`,back:0,high:0},{s:`y`,back:0,high:0,rounded:!0},{s:`ɨ`,back:.5,high:0},{s:`u`,back:1,high:0,rounded:!0},{s:`ɪ`,back:.18,high:.18},{s:`ʊ`,back:.82,high:.18,rounded:!0},{s:`e`,back:0,high:.34},{s:`ø`,back:0,high:.34,rounded:!0},{s:`ə`,back:.5,high:.5},{s:`o`,back:1,high:.34,rounded:!0},{s:`ɛ`,back:.08,high:.66},{s:`ɜ`,back:.5,high:.66},{s:`ʌ`,back:.78,high:.66},{s:`ɔ`,back:1,high:.66,rounded:!0},{s:`a`,back:.06,high:1},{s:`æ`,back:.16,high:.84},{s:`ɑ`,back:.9,high:1},{s:`ɒ`,back:1,high:1,rounded:!0}],L=[`Plosive`,`Nasal`,`Fricative`,`Approx.`,`Lateral`],R=[`Bilab.`,`Labiod.`,`Dental`,`Alveolar`,`Postalv.`,`Velar`,`Glottal`],z={"Plosive|Bilab.":[`p`,`b`],"Plosive|Alveolar":[`t`,`d`],"Plosive|Velar":[`k`,`g`],"Plosive|Glottal":[`ʔ`,``],"Nasal|Bilab.":[``,`m`],"Nasal|Alveolar":[``,`n`],"Nasal|Velar":[``,`ŋ`],"Fricative|Labiod.":[`f`,`v`],"Fricative|Dental":[`θ`,`ð`],"Fricative|Alveolar":[`s`,`z`],"Fricative|Postalv.":[`ʃ`,`ʒ`],"Fricative|Glottal":[`h`,``],"Approx.|Postalv.":[``,`ɹ`],"Approx.|Velar":[``,`w`],"Lateral|Alveolar":[``,`l`]};function B(e){return e.replace(/[ː/[\].ˈˌ]/g,``).trim()}function V({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,kind:r=`vowels`,highlight:o,examples:s,caption:c,footer:l,delay:u}){let f=i[t]??i.globe,p=s??[],m=new Set((o??[]).map(B)),h=e=>m.has(B(e));return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),r===`consonants`?(0,d.jsx)(W,{isHot:h}):(0,d.jsx)(H,{isHot:h}),c&&(0,d.jsx)(`div`,{className:`ipa-caption`,children:c}),p.length>0&&(0,d.jsx)(`ul`,{className:`ipa-examples`,children:p.map((e,t)=>(0,d.jsxs)(`li`,{className:`ipa-ex`,...h(e.symbol)?{"data-hot":``}:{},children:[(0,d.jsx)(`span`,{className:`ipa-ex-sym`,children:e.symbol}),(0,d.jsx)(`span`,{className:`ipa-ex-word`,children:e.word})]},t))}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function H(e){let t=(0,E.c)(31),{isHot:n}=e,r,i,a,o,s,c,l,u,f,p,m,h;if(t[0]!==n){let e={x:12,y:14},g={x:92,y:14},_={x:34,y:86},v={x:80,y:86},y=U,b=(t,n)=>{let r=y(e.x,_.x,n),i=y(g.x,v.x,n),a=y(e.y,_.y,n);return{x:y(r,i,t),y:a}};o=`ipa-quad`,r=`0 0 104 100`,s=`100%`,c=`img`,l=`IPA vowel quadrilateral`;let x=`${e.x},${e.y} ${g.x},${g.y} ${v.x},${v.y} ${_.x},${_.y}`;t[13]===x?u=t[14]:(u=(0,d.jsx)(`polygon`,{points:x,fill:`none`,stroke:`var(--line-strong)`,strokeWidth:.8}),t[13]=x,t[14]=u),f=[.34,.5,.66].map((e,t)=>{let n=b(0,e),r=b(1,e);return(0,d.jsx)(`line`,{x1:n.x,y1:n.y,x2:r.x,y2:r.y,stroke:`var(--grid-line)`,strokeWidth:.5},t)}),p=(0,d.jsx)(`line`,{x1:b(.5,0).x,y1:b(.5,0).y,x2:b(.5,1).x,y2:b(.5,1).y,stroke:`var(--grid-line)`,strokeWidth:.5}),m=(0,d.jsx)(`text`,{x:e.x,y:9,className:`ipa-axis`,textAnchor:`start`,children:`Front`}),h=(0,d.jsx)(`text`,{x:g.x,y:9,className:`ipa-axis`,textAnchor:`end`,children:`Back`}),t[15]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,d.jsx)(`text`,{className:`ipa-axis`,transform:`translate(6, 50) rotate(-90)`,textAnchor:`middle`,children:`Close → Open`}),t[15]=i):i=t[15],a=I.map(e=>{let t=b(e.back,e.high),r=e.rounded?3:0,i=n(e.s);return(0,d.jsxs)(`g`,{transform:`translate(${t.x+r}, ${t.y})`,children:[i&&(0,d.jsx)(`circle`,{r:4.4,className:`ipa-vowel-halo`}),(0,d.jsx)(`text`,{className:`ipa-vowel`,textAnchor:`middle`,dominantBaseline:`central`,...i?{"data-hot":``}:{},children:e.s})]},e.s)}),t[0]=n,t[1]=r,t[2]=i,t[3]=a,t[4]=o,t[5]=s,t[6]=c,t[7]=l,t[8]=u,t[9]=f,t[10]=p,t[11]=m,t[12]=h}else r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],f=t[9],p=t[10],m=t[11],h=t[12];let g;t[16]!==r||t[17]!==i||t[18]!==a||t[19]!==s||t[20]!==c||t[21]!==l||t[22]!==u||t[23]!==f||t[24]!==p||t[25]!==m||t[26]!==h?(g=(0,d.jsxs)(`svg`,{viewBox:r,width:s,role:c,"aria-label":l,children:[u,f,p,m,h,i,a]}),t[16]=r,t[17]=i,t[18]=a,t[19]=s,t[20]=c,t[21]=l,t[22]=u,t[23]=f,t[24]=p,t[25]=m,t[26]=h,t[27]=g):g=t[27];let _;return t[28]!==o||t[29]!==g?(_=(0,d.jsx)(`div`,{className:o,children:g}),t[28]=o,t[29]=g,t[30]=_):_=t[30],_}function U(e,t,n){return e+(t-e)*n}function W(e){let t=(0,E.c)(7),{isHot:n}=e,r;t[0]===n?r=t[1]:(r=e=>{let{s:t}=e;return t?(0,d.jsx)(`span`,{className:`ipa-cgrid-sym`,...n(t)?{"data-hot":``}:{},children:t}):(0,d.jsx)(`span`,{className:`ipa-cgrid-empty`,children:`·`})},t[0]=n,t[1]=r);let i=r,a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{children:[(0,d.jsx)(`th`,{className:`ipa-cgrid-corner`}),R.map(G)]})}),t[2]=a):a=t[2];let o;t[3]===i?o=t[4]:(o=L.map(e=>(0,d.jsxs)(`tr`,{children:[(0,d.jsx)(`th`,{className:`ipa-cgrid-manner`,scope:`row`,children:e}),R.map(t=>{let n=z[`${e}|${t}`];return(0,d.jsx)(`td`,{className:`ipa-cgrid-cell`,children:n?(0,d.jsxs)(`span`,{className:`ipa-cgrid-pair`,children:[(0,d.jsx)(i,{s:n[0]}),(0,d.jsx)(i,{s:n[1]})]}):(0,d.jsx)(`span`,{className:`ipa-cgrid-na`,"aria-hidden":`true`})},t)})]},e)),t[3]=i,t[4]=o);let s;return t[5]===o?s=t[6]:(s=(0,d.jsx)(`div`,{className:`ipa-cgrid-wrap`,children:(0,d.jsxs)(`table`,{className:`ipa-cgrid`,children:[a,(0,d.jsx)(`tbody`,{children:o})]})}),t[5]=o,t[6]=s),s}function G(e){return(0,d.jsx)(`th`,{className:`ipa-cgrid-place`,scope:`col`,children:e},e)}function le(e){let t=e.match(/-?\d*\.?\d+/g);if(!t||t.length<2)return null;let n=Number(t[0]),r=Number(t[1]);return!Number.isFinite(n)||!Number.isFinite(r)?null:{x:n,y:r}}function ue({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,glyph:r,strokes:o,grid:s=`mi`,romanization:c,meaning:l,caption:u,footer:f,delay:p}){let m=i[t]??i.edit,h=[...o??[]].sort((e,t)=>e.order-t.order),g=h.some(e=>e.path&&e.path.trim().length>0);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`ss-stage`,children:[(0,d.jsx)(`div`,{className:`ss-square`,children:(0,d.jsxs)(`svg`,{viewBox:`0 0 100 100`,width:`100%`,role:`img`,"aria-label":`Writing guide for ${r}`,children:[(0,d.jsx)(`rect`,{x:1,y:1,width:98,height:98,rx:2,fill:`none`,stroke:`var(--line-strong)`,strokeWidth:.8}),s!==`none`&&(0,d.jsxs)(`g`,{stroke:`var(--grid-line)`,strokeWidth:.6,strokeDasharray:`3 2.5`,children:[(0,d.jsx)(`line`,{x1:50,y1:1,x2:50,y2:99}),(0,d.jsx)(`line`,{x1:1,y1:50,x2:99,y2:50}),s===`mi`&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`line`,{x1:1,y1:1,x2:99,y2:99}),(0,d.jsx)(`line`,{x1:99,y1:1,x2:1,y2:99})]})]}),g?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`text`,{x:50,y:54,className:`ss-ghost`,textAnchor:`middle`,dominantBaseline:`central`,children:r}),h.map((e,t)=>e.path?(0,d.jsx)(`path`,{d:e.path,className:`ss-stroke`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,style:{"--i":t}},`p${t}`):null),h.map((e,t)=>{let n=e.path?le(e.path):null;return n?(0,d.jsxs)(`g`,{transform:`translate(${n.x}, ${n.y})`,children:[(0,d.jsx)(`circle`,{r:4.6,className:`ss-badge-bg`}),(0,d.jsx)(`text`,{className:`ss-badge-num`,textAnchor:`middle`,dominantBaseline:`central`,children:e.order})]},`b${t}`):null})]}):(0,d.jsx)(`text`,{x:50,y:54,className:`ss-glyph`,textAnchor:`middle`,dominantBaseline:`central`,children:r})]})}),(0,d.jsxs)(`div`,{className:`ss-meta`,children:[(0,d.jsx)(`div`,{className:`ss-glyph-sm`,"aria-hidden":`true`,children:r}),c&&(0,d.jsxs)(`div`,{className:`ss-romanization`,children:[(0,d.jsx)(`span`,{className:`ss-meta-k`,children:`Reading`}),(0,d.jsx)(`span`,{className:`ss-meta-v`,children:c})]}),l&&(0,d.jsxs)(`div`,{className:`ss-meaning`,children:[(0,d.jsx)(`span`,{className:`ss-meta-k`,children:`Meaning`}),(0,d.jsx)(`span`,{className:`ss-meta-v`,children:l})]}),(0,d.jsxs)(`div`,{className:`ss-count`,children:[h.length,` `,h.length===1?`stroke`:`strokes`]})]})]}),h.length>0&&(0,d.jsx)(`ol`,{className:`ss-steps`,children:h.map((e,t)=>(0,d.jsxs)(`li`,{className:`ss-step`,children:[(0,d.jsx)(`span`,{className:`ss-step-num`,children:e.order}),(0,d.jsx)(`span`,{className:`ss-step-hint`,children:e.hint??`Stroke ${e.order}`})]},t))}),u&&(0,d.jsx)(`div`,{className:`ipa-caption`,children:u}),f&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}var K=typeof window<`u`&&`speechSynthesis`in window&&typeof window.SpeechSynthesisUtterance==`function`,de=`silent`;function fe({title:e,icon:t=`captions`,iconColor:n=`var(--presence)`,word:r,chunks:o,rhymes:s,caption:c,footer:l,delay:f}){let p=i[t]??i.captions,m=(o??[]).filter(e=>e&&e.text),h=(s??[]).filter(Boolean),[g,_]=(0,u.useState)(null);(0,u.useEffect)(()=>()=>{K&&window.speechSynthesis.cancel()},[]);let v=(0,u.useCallback)((e,t,n)=>{if(!K)return;window.speechSynthesis.cancel();let r=new window.SpeechSynthesisUtterance(e);r.rate=n;let i=()=>_(e=>e===t?null:e);r.onend=i,r.onerror=i,window.speechSynthesis.speak(r),_(t)},[]);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f??0)+`ms`},children:[e&&(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`pw-word`,role:`group`,"aria-label":`Sound out ${r}`,children:m.map((e,t)=>{let n=e.kind??`grapheme`,r=n===de;return(0,d.jsxs)(`button`,{type:`button`,className:`pw-chunk`,"data-kind":n,"data-playing":g===t||void 0,disabled:r||!K,onClick:()=>v(e.text,t,.62),title:r?`"${e.text}" is silent`:K?`Hear "${e.text}"`:`"${e.text}"`,"aria-label":r?`${e.text}, silent`:`Hear ${e.text}${e.sound?`, ${e.sound}`:``}`,children:[(0,d.jsx)(`span`,{className:`pw-chunk-text`,children:e.text}),e.sound&&(0,d.jsx)(`span`,{className:`pw-chunk-sound`,children:e.sound})]},t)})}),(0,d.jsxs)(`button`,{type:`button`,className:`pw-blend`,"data-playing":g===-1||void 0,disabled:!K,onClick:()=>v(r,-1,.92),title:K?`Hear "${r}"`:r,"aria-label":K?`Hear the whole word, ${r}`:r,children:[K?g===-1?(0,d.jsxs)(`span`,{className:`pw-wave`,"aria-hidden":`true`,children:[(0,d.jsx)(`span`,{}),(0,d.jsx)(`span`,{}),(0,d.jsx)(`span`,{})]}):(0,d.jsx)(i.play,{className:`ic pw-blend-ic`,style:{width:12,height:12}}):null,(0,d.jsx)(`span`,{className:`pw-blend-word`,children:r})]}),c&&(0,d.jsx)(`div`,{className:`ipa-caption`,children:c}),h.length>0&&(0,d.jsxs)(`div`,{className:`pw-rhymes`,children:[(0,d.jsx)(`span`,{className:`pw-rhymes-k`,children:`Rhymes with`}),(0,d.jsx)(`ul`,{className:`pw-rhyme-list`,children:h.map((e,t)=>(0,d.jsx)(`li`,{className:`pw-rhyme`,children:e},t))})]}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}var pe=[`noun`,`verb`,`adjective`,`adverb`,`pronoun`,`preposition`,`conjunction`,`determiner`,`interjection`],q={noun:`n.`,verb:`v.`,adjective:`adj.`,adverb:`adv.`,pronoun:`pron.`,preposition:`prep.`,conjunction:`conj.`,determiner:`det.`,interjection:`interj.`},me=e=>typeof e==`string`&&Object.prototype.hasOwnProperty.call(q,e),he=/^[¿¡([{«‹“‘]+$/;function ge({title:e,icon:t=`captions`,iconColor:n=`var(--presence)`,tokens:r,sentence:o,translation:s,footer:c,delay:l}){let f=i[t]??i.captions,{groups:p,legend:m,notes:h}=(0,u.useMemo)(()=>{let e=Array.isArray(r)?r:[],t=0,n=[];for(let r of e){if(typeof r==`string`){r.trim()&&n.push({word:r});continue}if(!r||typeof r!=`object`)continue;let e=r;if(typeof e.word!=`string`||!e.word.trim())continue;if(e.pos===`punctuation`){n.push({word:e.word,punct:!0});continue}let i=typeof e.note==`string`&&e.note.trim()?e.note:void 0;n.push({word:e.word,pos:me(e.pos)?e.pos:void 0,note:i,noteIdx:i?++t:void 0})}let i=[],a=[];for(let e of n)if(e.punct){let t=i[i.length-1];t&&!he.test(e.word)?t.trail.push(e):a.push(e)}else i.push({lead:a,word:e,trail:[]}),a=[];if(a.length){let e=i[i.length-1];e?e.trail.push(...a):i.push({lead:a,trail:[]})}let o=new Map;for(let e of n)e.pos&&o.set(e.pos,(o.get(e.pos)??0)+1);return{groups:i,legend:pe.filter(e=>o.has(e)).map(e=>({pos:e,count:o.get(e)??0})),notes:n.filter(e=>e.noteIdx!==void 0)}},[r]),[g,_]=(0,u.useState)(null),v=g&&m.some(e=>e.pos===g)?g:null,y=(e,t)=>(0,d.jsx)(`span`,{className:`psb-punct`,"data-dim":!!v||void 0,children:e.word},t);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),p.length>0?(0,d.jsx)(`div`,{className:`psb-flow`,children:p.map((e,t)=>(0,d.jsxs)(`span`,{className:`psb-group`,children:[e.lead.map((e,t)=>y(e,`l${t}`)),e.word&&(0,d.jsxs)(`span`,{className:`psb-token`,"data-pos":e.word.pos,"data-dim":!!v&&e.word.pos!==v||void 0,title:e.word.note?`${e.word.word} — ${e.word.note}`:void 0,children:[(0,d.jsxs)(`span`,{className:`psb-word`,children:[e.word.word,e.word.noteIdx!==void 0&&(0,d.jsx)(`sup`,{className:`psb-note-mark`,"aria-hidden":`true`,children:e.word.noteIdx})]}),e.word.pos&&(0,d.jsx)(`span`,{className:`psb-abbr`,"aria-hidden":`true`,children:q[e.word.pos]})]}),e.trail.map((e,t)=>y(e,`t${t}`))]},t))}):o?(0,d.jsx)(`p`,{className:`psb-plain`,children:o}):(0,d.jsx)(`div`,{className:`psb-empty`,children:`Nothing to break down yet.`}),s&&(0,d.jsx)(`div`,{className:`psb-translation`,children:s}),m.length>0&&(0,d.jsx)(`div`,{className:`psb-legend`,role:`group`,"aria-label":`Word classes in this sentence`,children:m.map(({pos:e,count:t})=>(0,d.jsxs)(`button`,{type:`button`,className:`psb-leg`,"data-pos":e,"aria-pressed":v===e,onClick:()=>_(t=>t===e?null:e),title:v===e?`Show every word`:`Spotlight every ${e}`,children:[(0,d.jsx)(`span`,{className:`psb-leg-dot`,"aria-hidden":`true`}),e,t>1&&(0,d.jsxs)(`span`,{className:`psb-leg-n`,children:[`×`,t]})]},e))}),h.length>0&&(0,d.jsx)(`ul`,{className:`psb-notes`,children:h.map(e=>(0,d.jsxs)(`li`,{className:`psb-note`,children:[(0,d.jsx)(`sup`,{className:`psb-note-num`,children:e.noteIdx}),(0,d.jsxs)(`span`,{className:`psb-note-text`,children:[(0,d.jsx)(`span`,{className:`psb-note-word`,children:e.word}),` — `,e.note]})]},e.noteIdx))}),c&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}function _e({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,commonName:r,scientificName:s,image:c,marks:u,lookalikes:f,status:p,caption:m,footer:h,delay:g}){let _=i[t]??i.globe,v=l(c?.from,`var(--presence-deep)`),y=l(c?.to,`var(--presence-soft)`),b=o(c?.src),x=u??[],S=f??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g??0)+`ms`},children:[e&&(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(_,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`sp-banner`,style:{background:`linear-gradient(150deg, ${v}, ${y})`},children:[b&&(0,d.jsx)(`img`,{className:`me-img-fill`,src:b,alt:``,loading:`lazy`,decoding:`async`,referrerPolicy:`no-referrer`,onError:e=>{e.currentTarget.style.display=`none`}}),p&&(0,d.jsx)(`span`,{className:`sp-status`,children:p})]}),(0,d.jsx)(`div`,{className:`sp-common`,"data-mark":`underline`,children:r}),s&&(0,d.jsx)(`div`,{className:`sp-scientific`,children:s}),m&&(0,d.jsx)(`div`,{className:`sp-caption`,children:m}),x.length>0&&(0,d.jsx)(`div`,{className:`sp-marks`,children:x.map((e,t)=>(0,d.jsxs)(`div`,{className:`sp-mark`,children:[(0,d.jsx)(`span`,{className:`sp-mark-label`,children:e.label}),(0,d.jsx)(`span`,{className:`sp-mark-value`,children:e.value})]},t))}),S.length>0&&(0,d.jsxs)(`div`,{className:`sp-lookalikes`,children:[(0,d.jsxs)(`span`,{className:`sp-lookalikes-k`,children:[(0,d.jsx)(i.layers,{className:`ic sp-lookalikes-ic`}),` Easily confused with`]}),(0,d.jsx)(`ul`,{className:`sp-lookalike-list`,children:S.map((e,t)=>(0,d.jsx)(`li`,{className:`sp-lookalike`,children:e},t))})]}),h&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(h)})]})}function ve({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,terms:r,footer:o,delay:s}){let c=i[t]??i.table,l=e=>typeof e==`string`&&e.trim()?e.trim():`—`,{rows:f,langs:p}=(0,u.useMemo)(()=>{let e=r??[],t=[],n=new Set;return{rows:e.map(e=>{let r=new Map;for(let i of e.translations??[]){if(!i||typeof i!=`object`)continue;let e=l(i.lang);n.has(e)||(n.add(e),t.push(e)),r.has(e)||r.set(e,i)}return{term:e,cells:r}}),langs:t}},[r]),m=e=>{if(e===`preferred`)return`var(--insight)`;if(e===`deprecated`)return`var(--warning)`;if(e===`avoid`)return`var(--danger)`};return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),f.length===0?(0,d.jsx)(`div`,{className:`tb-empty`,children:`No terms yet.`}):p.length===0?(0,d.jsx)(`ul`,{className:`tb-flat`,children:f.map(({term:e},t)=>(0,d.jsx)(`li`,{className:`tb-flat-term m-stagger-item m-fade-rise`,style:{"--i":t},children:e.term},t))}):(0,d.jsx)(`div`,{className:`tb-wrap`,children:(0,d.jsxs)(`table`,{className:`tb-table`,children:[(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{children:[(0,d.jsx)(`th`,{scope:`col`,children:`Term`}),p.map(e=>(0,d.jsx)(`th`,{scope:`col`,children:e},e))]})}),(0,d.jsx)(`tbody`,{children:f.map(({term:e,cells:t},n)=>(0,d.jsxs)(`tr`,{className:`m-stagger-item m-fade-rise`,style:{"--i":n},children:[(0,d.jsx)(`td`,{className:`tb-term-col`,children:e.term}),p.map(e=>{let n=t.get(e),r=n&&typeof n.text==`string`?n.text:``,i=m(n?.status);return(0,d.jsx)(`td`,{className:`tb-cell`,children:r?(0,d.jsxs)(`span`,{className:`tb-cell-text`,children:[i&&(0,d.jsx)(`span`,{className:`tb-dot`,style:{"--tb-c":i},title:n?.status}),r]}):(0,d.jsx)(`span`,{className:`tb-dash`,children:`—`})},e)})]},n))})]})}),o&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var J={whale:{w:240,h:70,orient:`horizontal`},bus:{w:200,h:90,orient:`horizontal`},generic:{w:90,h:70,orient:`horizontal`},human:{w:40,h:100,orient:`vertical`},building:{w:70,h:160,orient:`vertical`}};function ye(e){return typeof e==`string`&&e in J}function be(e){let t=(0,E.c)(21),n,r;t[0]===e?(n=t[1],r=t[2]):({shape:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i=J[n],a=`0 0 ${i.w} ${i.h}`,o;t[3]===n?o=t[4]:(o=n===`human`&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`circle`,{cx:`20`,cy:`11`,r:`10`}),(0,d.jsx)(`path`,{d:`M8 30 Q20 22 32 30 L34 62 Q27 68 20 68 Q13 68 6 62 Z`}),(0,d.jsx)(`path`,{d:`M11 66 L8 100 L17 100 L19 70 Z`}),(0,d.jsx)(`path`,{d:`M29 66 L32 100 L23 100 L21 70 Z`})]}),t[3]=n,t[4]=o);let s;t[5]===n?s=t[6]:(s=n===`bus`&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`path`,{d:`M6 20 Q6 8 18 8 H172 Q188 8 188 24 V58 Q188 66 180 66 H16 Q6 66 6 56 Z`}),(0,d.jsx)(`rect`,{x:`18`,y:`17`,width:`152`,height:`19`,rx:`3`,className:`szc-glyph-cut`,fill:`var(--surface-elevated)`}),(0,d.jsx)(`circle`,{cx:`46`,cy:`70`,r:`13`}),(0,d.jsx)(`circle`,{cx:`154`,cy:`70`,r:`13`})]}),t[5]=n,t[6]=s);let c;t[7]===n?c=t[8]:(c=n===`whale`&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`path`,{d:`M4 40 C4 20 40 10 100 9 C170 8 210 20 224 32 L236 26 L232 42 L236 56 L224 50 C214 60 170 66 100 65 C40 64 4 56 4 40 Z`}),(0,d.jsx)(`path`,{d:`M60 12 C64 2 76 2 78 12 C72 14 66 14 60 12 Z`}),(0,d.jsx)(`path`,{d:`M18 46 C22 54 34 56 40 50 C34 46 24 44 18 46 Z`})]}),t[7]=n,t[8]=c);let l;t[9]===n?l=t[10]:(l=n===`building`&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`rect`,{x:`10`,y:`6`,width:`50`,height:`154`,rx:`2`}),Array.from({length:8},xe)]}),t[9]=n,t[10]=l);let u;t[11]===n?u=t[12]:(u=n===`generic`&&(0,d.jsx)(`path`,{d:`M8 55 Q2 30 28 18 Q46 4 66 14 Q86 22 82 42 Q90 52 78 58 Q55 68 30 64 Q12 62 8 55 Z`}),t[11]=n,t[12]=u);let f;return t[13]!==r||t[14]!==a||t[15]!==o||t[16]!==s||t[17]!==c||t[18]!==l||t[19]!==u?(f=(0,d.jsxs)(`svg`,{viewBox:a,preserveAspectRatio:`xMidYMax meet`,fill:`currentColor`,"aria-hidden":`true`,...r,children:[o,s,c,l,u]}),t[13]=r,t[14]=a,t[15]=o,t[16]=s,t[17]=c,t[18]=l,t[19]=u,t[20]=f):f=t[20],f}function xe(e,t){return Array.from({length:3},(e,n)=>(0,d.jsx)(`rect`,{x:17+n*13,y:16+t*17,width:`8`,height:`9`,rx:`1`,className:`szc-glyph-cut`,fill:`var(--surface-elevated)`},`${t}-${n}`))}var Se=190,Y=16;function Ce(e,t){if(typeof e!=`number`||!Number.isFinite(e))return`—`;let n=e.toLocaleString(void 0,{maximumFractionDigits:2});return t?`${n} ${t}`:n}function we({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,unit:r,subjects:o,footer:s,delay:c}){let l=i[t]??i.layers,u=o??[],f=u.reduce((e,t)=>{let n=typeof t.length==`number`&&Number.isFinite(t.length)?t.length:-1/0;return n>e?n:e},0),p=f>0?Se/f:0,m=u.map(e=>{let t=ye(e.shape)?e.shape:`generic`,n=J[t],r=typeof e.length==`number`&&Number.isFinite(e.length)&&e.length>0&&p>0?Math.max(e.length*p,Y):Y;return{subject:e,shape:t,width:n.orient===`horizontal`?r:r*(n.w/n.h),height:n.orient===`vertical`?r:r*(n.h/n.w)}}),h=Math.max(...m.map(e=>e.height),Y);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),m.length===0?(0,d.jsx)(`div`,{className:`szc-empty`,children:`No subjects yet.`}):(0,d.jsx)(`div`,{className:`szc-scroll`,children:(0,d.jsx)(`div`,{className:`szc-row`,style:{"--szc-track-h":h+`px`},children:m.map(({subject:e,shape:t,width:i,height:a},o)=>(0,d.jsxs)(`div`,{className:`szc-item m-stagger-item m-scale-in`,style:{"--i":o,color:n},children:[(0,d.jsx)(`div`,{className:`szc-shape-box`,children:(0,d.jsx)(be,{shape:t,style:{width:i,height:a}})}),(0,d.jsx)(`div`,{className:`szc-item-label`,...o===0?{"data-mark":`underline`}:{},children:e.label}),(0,d.jsx)(`div`,{className:`szc-item-value`,children:Ce(e.length,r)})]},o))})}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function Te(e){let t=Array.from(e),n=t.length;return t.map((e,t)=>({ch:e,group:Math.floor((n-1-t)/4)}))}function Ee({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,value:r,bases:o,footer:s,delay:c}){let l=i[t]??i.chart,u=o??[],f=typeof r==`string`||typeof r==`number`?String(r):``;return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),f&&(0,d.jsx)(`div`,{className:`bcv-value`,"data-mark":`underline`,children:f}),u.length>0?(0,d.jsx)(`div`,{className:`bcv-rows`,children:u.map((e,t)=>{let n=typeof e.digits==`string`?e.digits.trim():``,r=typeof e.radix==`number`&&Number.isFinite(e.radix)?e.radix:null;return(0,d.jsxs)(`div`,{className:`bcv-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,d.jsxs)(`div`,{className:`bcv-row-head`,children:[(0,d.jsx)(`span`,{className:`bcv-label`,children:e.label}),r!==null&&(0,d.jsxs)(`span`,{className:`bcv-radix`,children:[`base `,r]})]}),n?(0,d.jsx)(`div`,{className:`bcv-digits`,children:Te(n).map((e,t)=>(0,d.jsx)(`span`,{className:`bcv-digit`,"data-group":e.group%2==0?`a`:`b`,children:e.ch},t))}):(0,d.jsx)(`span`,{className:`bcv-dash`,children:`—`})]},t)})}):(0,d.jsx)(`div`,{className:`bcv-empty`,children:`No bases yet.`}),s&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function De(e){let t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?`?`:t.length===1?t[0][0]?.toUpperCase()??`?`:((t[0][0]??``)+(t[t.length-1][0]??``)).toUpperCase()}function Oe(e){return typeof e==`string`&&e.trim()||typeof e==`number`&&Number.isFinite(e)?String(e):`—`}function ke({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,name:r,era:o,born:s,died:c,knownFor:l,facts:u,lifeEvents:f,legacy:p,footer:m,delay:h}){let g=i[t]??i.doc,_=u??[],v=f??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(h??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsxs)(`div`,{className:`hp-head`,children:[(0,d.jsx)(`div`,{className:`hp-medallion`,"aria-hidden":`true`,children:De(r)}),(0,d.jsxs)(`div`,{className:`hp-headline`,children:[(0,d.jsx)(`div`,{className:`hp-name`,"data-mark":`underline`,children:r}),o&&(0,d.jsx)(`div`,{className:`hp-era`,children:o}),l&&(0,d.jsx)(`div`,{className:`hp-known`,children:l})]})]}),(s||c)&&(0,d.jsxs)(`div`,{className:`hp-dates`,children:[s&&(0,d.jsxs)(`div`,{className:`hp-date`,children:[(0,d.jsx)(`span`,{className:`hp-date-k`,children:`Born`}),(0,d.jsx)(`span`,{className:`hp-date-v`,children:s})]}),c&&(0,d.jsxs)(`div`,{className:`hp-date`,children:[(0,d.jsx)(`span`,{className:`hp-date-k`,children:`Died`}),(0,d.jsx)(`span`,{className:`hp-date-v`,children:c})]})]}),v.length>0&&(0,d.jsx)(`div`,{className:`hp-beats`,children:v.map((e,t)=>(0,d.jsxs)(`div`,{className:`hp-beat m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,d.jsx)(`span`,{className:`hp-beat-year`,children:Oe(e.year)}),(0,d.jsx)(`span`,{className:`hp-beat-label`,children:e.label})]},t))}),_.length>0&&(0,d.jsx)(`div`,{className:`hp-facts`,children:_.map((e,t)=>(0,d.jsxs)(`div`,{className:`hp-fact-row`,children:[(0,d.jsx)(`span`,{className:`hp-fact-label`,children:e.label}),(0,d.jsx)(`span`,{className:`hp-fact-value`,children:e.value})]},t))}),p&&(0,d.jsx)(`div`,{className:`hp-legacy`,children:p}),m&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(m)})]})}function X(e){return typeof e==`string`&&e.trim()||typeof e==`number`&&Number.isFinite(e)?String(e):`—`}function Z({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,date:r,events:o,born:s,died:c,footer:l,delay:u}){let f=i[t]??i.clock,p=o??[],m=s??[],h=c??[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`otd-date`,children:r}),p.length>0?(0,d.jsx)(`div`,{className:`otd-events`,children:p.map((e,t)=>(0,d.jsxs)(`div`,{className:`otd-event m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,d.jsx)(`span`,{className:`otd-year-chip`,children:X(e.year)}),(0,d.jsxs)(`div`,{className:`otd-event-body`,children:[(0,d.jsx)(`div`,{className:`otd-label`,...t===0?{"data-mark":`underline`}:{},children:e.label}),e.category&&(0,d.jsx)(`span`,{className:`otd-cat`,children:e.category})]})]},t))}):(0,d.jsx)(`div`,{className:`otd-empty`,children:`No events yet.`}),(m.length>0||h.length>0)&&(0,d.jsxs)(`div`,{className:`otd-people`,children:[m.length>0&&(0,d.jsxs)(`div`,{className:`otd-people-col`,children:[(0,d.jsx)(`span`,{className:`otd-people-k`,children:`Born`}),m.map((e,t)=>(0,d.jsxs)(`div`,{className:`otd-person`,children:[(0,d.jsx)(`span`,{className:`otd-person-year`,children:X(e.year)}),(0,d.jsx)(`span`,{className:`otd-person-name`,children:e.name})]},t))]}),h.length>0&&(0,d.jsxs)(`div`,{className:`otd-people-col`,children:[(0,d.jsx)(`span`,{className:`otd-people-k`,children:`Died`}),h.map((e,t)=>(0,d.jsxs)(`div`,{className:`otd-person`,children:[(0,d.jsx)(`span`,{className:`otd-person-year`,children:X(e.year)}),(0,d.jsx)(`span`,{className:`otd-person-name`,children:e.name})]},t))]})]}),l&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function Ae({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,name:r,flag:o,capital:s,population:c,area:l,officialLanguages:u,currency:f,facts:p,footer:m,delay:h}){let g=i[t]??i.globe,_=Array.isArray(p)?p:[],v=(Array.isArray(u)?u:[]).filter(e=>typeof e==`string`&&e.trim().length>0),y=[{label:`Capital`,value:s},{label:`Population`,value:c},{label:`Area`,value:l},{label:`Currency`,value:f}].filter(e=>typeof e.value==`string`&&!!e.value);return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(h??0)+`ms`},children:[e&&(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),(0,d.jsx)(`div`,{className:`cc-banner`,children:(0,d.jsx)(`span`,{className:`cc-flag`,role:`img`,"aria-label":`Flag of ${r}`,children:typeof o==`string`&&o.trim()?o:`🌐`})}),(0,d.jsx)(`div`,{className:`cc-name`,"data-mark":`underline`,children:r}),y.length>0&&(0,d.jsx)(`div`,{className:`cc-marks`,children:y.map((e,t)=>(0,d.jsxs)(`div`,{className:`cc-mark`,children:[(0,d.jsx)(`span`,{className:`cc-mark-label`,children:e.label}),(0,d.jsx)(`span`,{className:`cc-mark-value`,children:e.value})]},t))}),v.length>0&&(0,d.jsx)(`div`,{className:`cc-langs`,children:v.map((e,t)=>(0,d.jsx)(`span`,{className:`cc-lang-chip`,children:e},t))}),_.length>0&&(0,d.jsx)(`div`,{className:`cc-facts`,children:_.map((e,t)=>(0,d.jsxs)(`div`,{className:`cc-fact-row`,children:[(0,d.jsx)(`span`,{className:`cc-fact-label`,children:e.label}),(0,d.jsx)(`span`,{className:`cc-fact-value`,children:e.value})]},t))}),m&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(m)})]})}function je({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,countries:r,footer:o,delay:s}){let c=i[t]??i.globe,l=Array.isArray(r)?r:[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),l.length===0?(0,d.jsx)(`div`,{className:`wg-empty`,children:`No countries yet.`}):(0,d.jsx)(`div`,{className:`wg-grid`,children:l.map((e,t)=>(0,d.jsxs)(`div`,{className:`wg-tile m-stagger-item m-scale-in`,style:{"--i":t},children:[(0,d.jsx)(`span`,{className:`wg-flag`,role:`img`,"aria-label":`Flag of ${e.name}`,children:typeof e.flag==`string`&&e.flag.trim()?e.flag:`🌐`}),(0,d.jsx)(`div`,{className:`wg-name`,children:e.name}),e.capital&&(0,d.jsxs)(`div`,{className:`wg-row`,children:[(0,d.jsx)(`span`,{className:`wg-row-k`,children:`Capital`}),(0,d.jsx)(`span`,{className:`wg-row-v`,children:e.capital})]}),e.currency&&(0,d.jsxs)(`div`,{className:`wg-row`,children:[(0,d.jsx)(`span`,{className:`wg-row-k`,children:`Currency`}),(0,d.jsx)(`span`,{className:`wg-row-v`,children:e.currency})]}),e.language&&(0,d.jsxs)(`div`,{className:`wg-row`,children:[(0,d.jsx)(`span`,{className:`wg-row-k`,children:`Language`}),(0,d.jsx)(`span`,{className:`wg-row-v`,children:e.language})]})]},t))}),o&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var Q=[`var(--presence)`,`var(--danger)`,`var(--warning)`,`var(--text-muted)`],Me=new Set(Q);function Ne(e,t){return typeof e.color==`string`&&Me.has(e.color)?e.color:Q[t%Q.length]}function Pe({title:e,icon:t=`shield`,iconColor:n=`var(--danger)`,dates:r,sides:o,keyBattles:s,casualties:c,outcome:l,footer:u,delay:f}){let p=i[t]??i.shield,m=Array.isArray(o)?o:[],h=Array.isArray(s)?s:[];return(0,d.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f??0)+`ms`},children:[(0,d.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,d.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,d.jsx)(`div`,{className:`wc-dates`,children:r}),m.length>0&&(0,d.jsx)(`div`,{className:`wc-sides`,children:m.map((e,t)=>{let n=Ne(e,t),r=Array.isArray(e.leaders)?e.leaders:[];return(0,d.jsxs)(`div`,{className:`wc-side m-stagger-item m-fade-rise`,style:{"--i":t,"--wc-c":n},children:[(0,d.jsx)(`div`,{className:`wc-side-name`,children:e.name}),r.length>0&&(0,d.jsx)(`ul`,{className:`wc-leaders`,children:r.filter(e=>typeof e==`string`&&e.trim().length>0).map((e,t)=>(0,d.jsx)(`li`,{className:`wc-leader`,children:e},t))})]},t)})}),h.length>0&&(0,d.jsx)(`div`,{className:`wc-battles`,children:h.map((e,t)=>(0,d.jsxs)(`div`,{className:`wc-battle`,children:[(0,d.jsx)(`span`,{className:`wc-battle-dot`,"aria-hidden":`true`}),(0,d.jsx)(`span`,{className:`wc-battle-label`,children:e.label}),e.at&&(0,d.jsx)(`span`,{className:`wc-battle-at`,children:e.at})]},t))}),c&&(0,d.jsxs)(`div`,{className:`wc-stat-row`,children:[(0,d.jsx)(`span`,{className:`wc-stat-k`,children:`Casualties`}),(0,d.jsx)(`span`,{className:`wc-stat-v`,children:c})]}),l&&(0,d.jsx)(`div`,{className:`wc-outcome`,children:l}),u&&(0,d.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}var Fe=e({referenceRegistry:()=>$}),$={factsheet:c(T),newsdigest:c(A),dictionary:c(ie),translation:c(ne),pronunciation:c(re),gloss:c(ae),scalefelt:c(oe),hearit:c(F),ipachart:c(V),scriptstroke:c(ue),phonicsword:c(fe),speciescard:c(_e),etymtree:c(w),hazardcard:c(k),termbase:c(ve),sizecompare:c(we),baseconversion:c(Ee),historicalperson:c(ke),onthisday:c(Z),countrycard:c(Ae),worldgrid:c(je),warconflict:c(Pe),posbreakdown:c(ge)};export{Fe as n,$ as t};
1
+ import{r as e}from"./chunk-BVpWp9h4.js";import{t}from"./react-BQSORdFI.js";import{t as n}from"./jsx-runtime-DaSxXjOY.js";import{ht as r}from"./index-C7H7A1rW.js";import{n as i}from"./icons-CHVz6kv_.js";import{t as a}from"./richText-BkxJhl9N.js";import{t as o}from"./safeImageUrl-CUkucDUu.js";import{r as s}from"./lib-C7zXL8h0.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,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/shikiHighlight-D9nfk5pW.js","assets/chunk-BVpWp9h4.js","assets/index-DOpl5xzv.js","assets/jsx-runtime-DaSxXjOY.js","assets/react-BQSORdFI.js","assets/lazyRetry-D50B1UMY.js","assets/index-CepQEz75.css"])))=>i.map(i=>d[i]);
2
- import{r as e}from"./chunk-BVpWp9h4.js";import{t}from"./react-BQSORdFI.js";import{t as n}from"./jsx-runtime-DaSxXjOY.js";import{J as r,q as i}from"./index-DOpl5xzv.js";import{n as a}from"./icons-CHVz6kv_.js";import{t as o}from"./richText-BkxJhl9N.js";import{t as s}from"./safeImageUrl-CUkucDUu.js";import{t as c}from"./registry-types-DMuK0vJ6.js";import{n as l,r as u,t as d}from"./CodeOutput-408gGn9V.js";import{t as f}from"./useTimeout-BRYvu2jQ.js";var p=t(),m=n(),h=[`sm`,`md`,`lg`],g={sm:40,md:56,lg:76},_={online:`var(--insight)`,away:`var(--warning)`,busy:`var(--danger)`,offline:`var(--text-muted)`},v={online:`Online`,away:`Away`,busy:`Busy`,offline:`Offline`};function y(e,t){if(t)return t.slice(0,2).toUpperCase();if(!e)return``;let n=e.trim().split(/\s+/);return((n[0]?.[0]||``)+(n[1]?.[0]||n[0]?.[1]||``)).toUpperCase()}function b({title:e,icon:t=`eye`,iconColor:n=`var(--presence)`,name:r,src:i,glyph:c=`eye`,initials:l,size:u=`md`,status:d,ring:f,color:b=`var(--presence)`,role:x,footer:S,delay:C}){let w=a[t]||a.eye,T=a[c]||a.eye,[E,D]=(0,p.useState)(u),[O,k]=(0,p.useState)(!0),A=g[E],j=y(r,l),M=s(i),N=!!M&&O;return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(C||0)+`ms`,"--av-c":b},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(w,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`av-main`,children:[(0,m.jsxs)(`button`,{type:`button`,className:`av-avatar ${f?`ring`:``}`,style:{width:A,height:A,fontSize:A*.36},onClick:()=>D(h[(h.indexOf(E)+1)%h.length]),title:`Click to resize`,"data-mark":`circle`,children:[N?(0,m.jsx)(`img`,{className:`av-img`,src:M,alt:r||``,onError:()=>k(!1)}):j?(0,m.jsx)(`span`,{className:`av-initials`,children:j}):(0,m.jsx)(T,{className:`av-glyph`}),d&&(0,m.jsx)(`span`,{className:`av-status`,style:{"--st-c":_[d]},title:v[d]})]}),(0,m.jsxs)(`div`,{className:`av-meta`,children:[r&&(0,m.jsx)(`div`,{className:`av-name`,children:r}),x&&(0,m.jsx)(`div`,{className:`av-role faint`,children:x}),(0,m.jsx)(`div`,{className:`av-sizes`,role:`radiogroup`,children:h.map(e=>(0,m.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":E===e,className:`av-size-btn ${E===e?`on`:``}`,onClick:()=>D(e),children:e.toUpperCase()},e))}),d&&(0,m.jsxs)(`div`,{className:`av-status-line`,children:[(0,m.jsx)(`span`,{className:`av-status-dot`,style:{"--st-c":_[d]}}),v[d]]})]})]}),S&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:14},dangerouslySetInnerHTML:o(S)})]})}var x={sm:30,md:38,lg:48},S=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--danger)`,`var(--presence-soft)`],C={online:`var(--insight)`,away:`var(--warning)`,busy:`var(--danger)`,offline:`var(--text-muted)`};function w(e,t){if(t)return t.slice(0,2).toUpperCase();let n=e.trim().split(/\s+/);return((n[0]?.[0]||``)+(n[1]?.[0]||``)).toUpperCase()}function T({title:e,icon:t=`share`,iconColor:n=`var(--presence)`,members:r,max:i=5,size:c=`md`,caption:l,footer:u,delay:d}){let f=a[t]||a.share,[h,g]=(0,p.useState)(null),[_,v]=(0,p.useState)(!1),[y,b]=(0,p.useState)(()=>new Set),T=x[c],E=Math.round(T*.36),D=Math.max(1,Math.min(i,8)),O=r.slice(0,D),k=r.length-O.length,A=h==null?null:r[h];return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`avg-stack ${_?`spread`:``}`,onMouseEnter:()=>v(!0),onMouseLeave:()=>{v(!1),g(null)},style:{"--av-px":T+`px`,"--av-ov":E+`px`},children:[O.map((e,t)=>{let n=e.color||S[t%S.length],r=s(e.src);return(0,m.jsxs)(`button`,{type:`button`,className:`avg-face ${h===t?`on`:``}`,style:{width:T,height:T,fontSize:T*.36,marginLeft:t===0?0:`calc(-1 * var(--av-ov))`,zIndex:h===t?50:t+1,"--face-c":n},onMouseEnter:()=>g(t),onFocus:()=>g(t),...t===0?{"data-mark":`circle`}:{},children:[r&&!y.has(t)?(0,m.jsx)(`img`,{className:`avg-img`,src:r,alt:e.name,onError:()=>b(e=>new Set(e).add(t))}):(0,m.jsx)(`span`,{children:w(e.name,e.initials)}),e.status&&(0,m.jsx)(`span`,{className:`avg-status`,style:{"--st-c":C[e.status]}})]},t)}),k>0&&(0,m.jsxs)(`span`,{className:`avg-face avg-more`,style:{width:T,height:T,fontSize:T*.3,marginLeft:`calc(-1 * var(--av-ov))`,zIndex:0},children:[`+`,k]})]}),(0,m.jsx)(`div`,{className:`avg-readout`,"data-on":A!=null,children:A?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`span`,{className:`avg-readout-name`,children:A.name}),(0,m.jsx)(`span`,{className:`avg-readout-role faint`,children:A.role||`Collaborator`})]}):l&&(0,m.jsx)(`span`,{className:`avg-caption faint`,dangerouslySetInnerHTML:o(l)})}),u&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:o(u)})]})}var E=[{key:`solid`,label:`Solid`},{key:`soft`,label:`Soft`},{key:`outline`,label:`Outline`},{key:`dot`,label:`Dot`}];function D({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,badges:r,countIcon:i=`bell`,count:s=3,countColor:c=`var(--danger)`,footer:l,delay:u}){let d=a[t]||a.spark,f=a[i]||a.bell,[h,g]=(0,p.useState)(null),[_,v]=(0,p.useState)(s);return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`bs-switch`,role:`radiogroup`,children:[(0,m.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":h===null,className:`bs-switch-btn ${h===null?`on`:``}`,onClick:()=>g(null),children:`Mixed`}),E.map(e=>(0,m.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":h===e.key,className:`bs-switch-btn ${h===e.key?`on`:``}`,onClick:()=>g(e.key),children:e.label},e.key))]}),(0,m.jsx)(`div`,{className:`bs-row`,children:r.map((e,t)=>{let n=h||e.variant||`soft`,r=e.color||`var(--presence)`,i=e.icon?a[e.icon]:null;return(0,m.jsxs)(`span`,{className:`bs-badge v-${n}`,style:{"--bg-c":r},children:[n===`dot`&&(0,m.jsx)(`span`,{className:`bs-badge-dot`}),i&&(0,m.jsx)(i,{className:`bs-badge-ic`}),e.label]},t)})}),(0,m.jsxs)(`div`,{className:`bs-count-row`,children:[(0,m.jsxs)(`button`,{type:`button`,className:`bs-count-target`,onClick:()=>v(e=>e>=9?0:e+1),title:`Click to bump the count`,children:[(0,m.jsx)(f,{className:`bs-count-ic`}),_>0&&(0,m.jsx)(`span`,{className:`bs-count-badge`,style:{"--cnt-c":c},"data-mark":`underline`,children:_>9?`9+`:_},_)]}),(0,m.jsx)(`span`,{className:`bs-count-label faint`,children:_===0?`No new alerts`:`${_} unread alert${_===1?``:`s`}`})]}),l&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:14},dangerouslySetInnerHTML:o(l)})]})}function O({title:e,icon:t=`plus`,iconColor:n=`var(--presence)`,chips:r,mode:i=`multi`,summary:s,color:c=`var(--presence)`,footer:l,delay:u}){let d=a[t]||a.plus,[f,h]=(0,p.useState)(()=>r.map(e=>({label:e.label,icon:e.icon,avatar:e.avatar,color:e.color||c,selected:!!e.selected,removable:e.removable!==!1}))),g=e=>h(t=>t.map((t,n)=>i===`single`?{...t,selected:n===e}:n===e?{...t,selected:!t.selected}:t)),_=(e,t)=>{t.stopPropagation(),h(t=>t.filter((t,n)=>n!==e))},v=f.filter(e=>e.selected).length,y=f.filter(e=>e.selected).map(e=>e.label),b=f.findIndex(e=>e.selected);return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`,"--chip-c":c},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`cs-wrap`,children:[f.map((e,t)=>{let n=e.icon?a[e.icon]:null;return(0,m.jsxs)(`span`,{role:`button`,tabIndex:0,className:`cs-chip ${e.selected?`on`:``}`,style:{"--c-c":e.color},onClick:()=>g(t),onKeyDown:e=>(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),g(t)),...t===b&&b!==-1?{"data-mark":`circle`}:{},children:[e.avatar?(0,m.jsx)(`span`,{className:`cs-chip-avatar`,children:e.avatar.slice(0,2).toUpperCase()}):n?(0,m.jsx)(n,{className:`cs-chip-ic`}):null,(0,m.jsx)(`span`,{className:`cs-chip-label`,children:e.label}),e.removable&&(0,m.jsx)(`button`,{type:`button`,className:`cs-chip-x`,onClick:e=>_(t,e),"aria-label":`Remove ${e.label}`,children:(0,m.jsx)(a.x,{})})]},e.label+t)}),f.length===0&&(0,m.jsx)(`span`,{className:`cs-empty faint`,children:`All chips removed`})]}),(0,m.jsx)(`div`,{className:`cs-summary`,children:s?(0,m.jsx)(`span`,{className:`faint`,dangerouslySetInnerHTML:o(s)}):v===0?(0,m.jsx)(`span`,{className:`faint`,children:`Nothing selected`}):(0,m.jsxs)(`span`,{children:[(0,m.jsx)(`strong`,{style:{color:c},children:v}),` selected`,(0,m.jsxs)(`span`,{className:`faint`,children:[` · `,y.join(`, `)]})]})}),l&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:o(l)})]})}function k({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,shortcuts:r,active:i=0,color:s=`var(--presence)`,footer:c,delay:l}){let u=a[t]||a.edit,[d,f]=(0,p.useState)(Math.max(0,Math.min(r.length-1,i))),h=r[d];return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`,"--kbd-c":s},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),h&&(0,m.jsxs)(`div`,{className:`kbd-hero`,children:[(0,m.jsx)(`div`,{className:`kbd-hero-keys`,"data-mark":`underline`,children:h.keys.map((e,t)=>(0,m.jsx)(`kbd`,{className:`kbd-cap big`,children:e},t))}),(0,m.jsx)(`div`,{className:`kbd-hero-label`,children:h.label})]}),(0,m.jsx)(`div`,{className:`kbd-list`,children:r.map((e,t)=>{let n=e.icon?a[e.icon]:null;return(0,m.jsxs)(`button`,{type:`button`,className:`kbd-row ${d===t?`on`:``}`,onMouseEnter:()=>f(t),onFocus:()=>f(t),onClick:()=>f(t),children:[(0,m.jsxs)(`span`,{className:`kbd-row-label`,children:[n&&(0,m.jsx)(n,{className:`kbd-row-ic`}),e.label]}),(0,m.jsx)(`span`,{className:`kbd-row-keys`,children:e.keys.map((e,t)=>(0,m.jsx)(`kbd`,{className:`kbd-cap`,children:e},t))})]},t)})}),c&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:14},dangerouslySetInnerHTML:o(c)})]})}r();var A=new Set([`ts`,`tsx`,`js`,`jsx`,`json`,`html`,`css`,`python`,`rust`,`go`,`java`,`c`,`cpp`,`csharp`,`ruby`,`php`,`swift`,`kotlin`,`sql`,`bash`,`shell`,`yaml`,`toml`,`markdown`,`diff`]),j={typescript:`ts`,javascript:`js`,py:`python`,rb:`ruby`,"c++":`cpp`,cs:`csharp`,sh:`bash`,zsh:`bash`,yml:`yaml`,md:`markdown`};function M(e){let t=(e||``).toLowerCase().trim(),n=j[t]??t;return A.has(n)?n:`txt`}function N(e){return e.map(e=>e.text).join(``)}function P({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,lang:r=`tsx`,filename:s,code:c,lines:h,lineNumbers:g=!0,highlight:_=[],runnable:v=!1,footer:y,delay:b}){let x=a[t]||a.doc,[S,C]=(0,p.useState)(!1),[w,T]=(0,p.useState)(null),[E,D]=(0,p.useState)(null),O=new Set(_);f(()=>C(!1),S?1600:null);let k=typeof c==`string`&&c.length>0,A=M(r);return(0,p.useEffect)(()=>{if(!k){D(null);return}let e=!1;return D(null),(async()=>{try{let{highlightCode:t}=await i(async()=>{let{highlightCode:e}=await import(`./shikiHighlight-D9nfk5pW.js`);return{highlightCode:e}},__vite__mapDeps([0,1,2,3,4,5,6])),n=await t(c,A);e||D(n)}catch{e||D(null)}})(),()=>{e=!0}},[k,c,A]),(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(b||0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(x,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`cb-frame`,children:[(0,m.jsxs)(`div`,{className:`cb-chrome`,children:[(0,m.jsxs)(`span`,{className:`cb-dots`,"aria-hidden":!0,children:[(0,m.jsx)(`i`,{}),` `,(0,m.jsx)(`i`,{}),` `,(0,m.jsx)(`i`,{})]}),s&&(0,m.jsx)(`span`,{className:`cb-file mono`,children:s}),(0,m.jsx)(`span`,{className:`cb-lang`,children:r}),(0,m.jsxs)(`button`,{type:`button`,className:`cb-copy ${S?`done`:``}`,onClick:()=>{let e=k?c:(h??[]).map(N).join(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/shikiHighlight-B_TEagaE.js","assets/chunk-BVpWp9h4.js","assets/index-C7H7A1rW.js","assets/jsx-runtime-DaSxXjOY.js","assets/react-BQSORdFI.js","assets/lazyRetry-D50B1UMY.js","assets/index-CepQEz75.css"])))=>i.map(i=>d[i]);
2
+ import{r as e}from"./chunk-BVpWp9h4.js";import{t}from"./react-BQSORdFI.js";import{t as n}from"./jsx-runtime-DaSxXjOY.js";import{J as r,q as i}from"./index-C7H7A1rW.js";import{n as a}from"./icons-CHVz6kv_.js";import{t as o}from"./richText-BkxJhl9N.js";import{t as s}from"./safeImageUrl-CUkucDUu.js";import{t as c}from"./registry-types-DMuK0vJ6.js";import{n as l,r as u,t as d}from"./CodeOutput-Bg64AyKu.js";import{t as f}from"./useTimeout-BRYvu2jQ.js";var p=t(),m=n(),h=[`sm`,`md`,`lg`],g={sm:40,md:56,lg:76},_={online:`var(--insight)`,away:`var(--warning)`,busy:`var(--danger)`,offline:`var(--text-muted)`},v={online:`Online`,away:`Away`,busy:`Busy`,offline:`Offline`};function y(e,t){if(t)return t.slice(0,2).toUpperCase();if(!e)return``;let n=e.trim().split(/\s+/);return((n[0]?.[0]||``)+(n[1]?.[0]||n[0]?.[1]||``)).toUpperCase()}function b({title:e,icon:t=`eye`,iconColor:n=`var(--presence)`,name:r,src:i,glyph:c=`eye`,initials:l,size:u=`md`,status:d,ring:f,color:b=`var(--presence)`,role:x,footer:S,delay:C}){let w=a[t]||a.eye,T=a[c]||a.eye,[E,D]=(0,p.useState)(u),[O,k]=(0,p.useState)(!0),A=g[E],j=y(r,l),M=s(i),N=!!M&&O;return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(C||0)+`ms`,"--av-c":b},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(w,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`av-main`,children:[(0,m.jsxs)(`button`,{type:`button`,className:`av-avatar ${f?`ring`:``}`,style:{width:A,height:A,fontSize:A*.36},onClick:()=>D(h[(h.indexOf(E)+1)%h.length]),title:`Click to resize`,"data-mark":`circle`,children:[N?(0,m.jsx)(`img`,{className:`av-img`,src:M,alt:r||``,onError:()=>k(!1)}):j?(0,m.jsx)(`span`,{className:`av-initials`,children:j}):(0,m.jsx)(T,{className:`av-glyph`}),d&&(0,m.jsx)(`span`,{className:`av-status`,style:{"--st-c":_[d]},title:v[d]})]}),(0,m.jsxs)(`div`,{className:`av-meta`,children:[r&&(0,m.jsx)(`div`,{className:`av-name`,children:r}),x&&(0,m.jsx)(`div`,{className:`av-role faint`,children:x}),(0,m.jsx)(`div`,{className:`av-sizes`,role:`radiogroup`,children:h.map(e=>(0,m.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":E===e,className:`av-size-btn ${E===e?`on`:``}`,onClick:()=>D(e),children:e.toUpperCase()},e))}),d&&(0,m.jsxs)(`div`,{className:`av-status-line`,children:[(0,m.jsx)(`span`,{className:`av-status-dot`,style:{"--st-c":_[d]}}),v[d]]})]})]}),S&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:14},dangerouslySetInnerHTML:o(S)})]})}var x={sm:30,md:38,lg:48},S=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--danger)`,`var(--presence-soft)`],C={online:`var(--insight)`,away:`var(--warning)`,busy:`var(--danger)`,offline:`var(--text-muted)`};function w(e,t){if(t)return t.slice(0,2).toUpperCase();let n=e.trim().split(/\s+/);return((n[0]?.[0]||``)+(n[1]?.[0]||``)).toUpperCase()}function T({title:e,icon:t=`share`,iconColor:n=`var(--presence)`,members:r,max:i=5,size:c=`md`,caption:l,footer:u,delay:d}){let f=a[t]||a.share,[h,g]=(0,p.useState)(null),[_,v]=(0,p.useState)(!1),[y,b]=(0,p.useState)(()=>new Set),T=x[c],E=Math.round(T*.36),D=Math.max(1,Math.min(i,8)),O=r.slice(0,D),k=r.length-O.length,A=h==null?null:r[h];return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`avg-stack ${_?`spread`:``}`,onMouseEnter:()=>v(!0),onMouseLeave:()=>{v(!1),g(null)},style:{"--av-px":T+`px`,"--av-ov":E+`px`},children:[O.map((e,t)=>{let n=e.color||S[t%S.length],r=s(e.src);return(0,m.jsxs)(`button`,{type:`button`,className:`avg-face ${h===t?`on`:``}`,style:{width:T,height:T,fontSize:T*.36,marginLeft:t===0?0:`calc(-1 * var(--av-ov))`,zIndex:h===t?50:t+1,"--face-c":n},onMouseEnter:()=>g(t),onFocus:()=>g(t),...t===0?{"data-mark":`circle`}:{},children:[r&&!y.has(t)?(0,m.jsx)(`img`,{className:`avg-img`,src:r,alt:e.name,onError:()=>b(e=>new Set(e).add(t))}):(0,m.jsx)(`span`,{children:w(e.name,e.initials)}),e.status&&(0,m.jsx)(`span`,{className:`avg-status`,style:{"--st-c":C[e.status]}})]},t)}),k>0&&(0,m.jsxs)(`span`,{className:`avg-face avg-more`,style:{width:T,height:T,fontSize:T*.3,marginLeft:`calc(-1 * var(--av-ov))`,zIndex:0},children:[`+`,k]})]}),(0,m.jsx)(`div`,{className:`avg-readout`,"data-on":A!=null,children:A?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`span`,{className:`avg-readout-name`,children:A.name}),(0,m.jsx)(`span`,{className:`avg-readout-role faint`,children:A.role||`Collaborator`})]}):l&&(0,m.jsx)(`span`,{className:`avg-caption faint`,dangerouslySetInnerHTML:o(l)})}),u&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:o(u)})]})}var E=[{key:`solid`,label:`Solid`},{key:`soft`,label:`Soft`},{key:`outline`,label:`Outline`},{key:`dot`,label:`Dot`}];function D({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,badges:r,countIcon:i=`bell`,count:s=3,countColor:c=`var(--danger)`,footer:l,delay:u}){let d=a[t]||a.spark,f=a[i]||a.bell,[h,g]=(0,p.useState)(null),[_,v]=(0,p.useState)(s);return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`bs-switch`,role:`radiogroup`,children:[(0,m.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":h===null,className:`bs-switch-btn ${h===null?`on`:``}`,onClick:()=>g(null),children:`Mixed`}),E.map(e=>(0,m.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":h===e.key,className:`bs-switch-btn ${h===e.key?`on`:``}`,onClick:()=>g(e.key),children:e.label},e.key))]}),(0,m.jsx)(`div`,{className:`bs-row`,children:r.map((e,t)=>{let n=h||e.variant||`soft`,r=e.color||`var(--presence)`,i=e.icon?a[e.icon]:null;return(0,m.jsxs)(`span`,{className:`bs-badge v-${n}`,style:{"--bg-c":r},children:[n===`dot`&&(0,m.jsx)(`span`,{className:`bs-badge-dot`}),i&&(0,m.jsx)(i,{className:`bs-badge-ic`}),e.label]},t)})}),(0,m.jsxs)(`div`,{className:`bs-count-row`,children:[(0,m.jsxs)(`button`,{type:`button`,className:`bs-count-target`,onClick:()=>v(e=>e>=9?0:e+1),title:`Click to bump the count`,children:[(0,m.jsx)(f,{className:`bs-count-ic`}),_>0&&(0,m.jsx)(`span`,{className:`bs-count-badge`,style:{"--cnt-c":c},"data-mark":`underline`,children:_>9?`9+`:_},_)]}),(0,m.jsx)(`span`,{className:`bs-count-label faint`,children:_===0?`No new alerts`:`${_} unread alert${_===1?``:`s`}`})]}),l&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:14},dangerouslySetInnerHTML:o(l)})]})}function O({title:e,icon:t=`plus`,iconColor:n=`var(--presence)`,chips:r,mode:i=`multi`,summary:s,color:c=`var(--presence)`,footer:l,delay:u}){let d=a[t]||a.plus,[f,h]=(0,p.useState)(()=>r.map(e=>({label:e.label,icon:e.icon,avatar:e.avatar,color:e.color||c,selected:!!e.selected,removable:e.removable!==!1}))),g=e=>h(t=>t.map((t,n)=>i===`single`?{...t,selected:n===e}:n===e?{...t,selected:!t.selected}:t)),_=(e,t)=>{t.stopPropagation(),h(t=>t.filter((t,n)=>n!==e))},v=f.filter(e=>e.selected).length,y=f.filter(e=>e.selected).map(e=>e.label),b=f.findIndex(e=>e.selected);return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`,"--chip-c":c},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`cs-wrap`,children:[f.map((e,t)=>{let n=e.icon?a[e.icon]:null;return(0,m.jsxs)(`span`,{role:`button`,tabIndex:0,className:`cs-chip ${e.selected?`on`:``}`,style:{"--c-c":e.color},onClick:()=>g(t),onKeyDown:e=>(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),g(t)),...t===b&&b!==-1?{"data-mark":`circle`}:{},children:[e.avatar?(0,m.jsx)(`span`,{className:`cs-chip-avatar`,children:e.avatar.slice(0,2).toUpperCase()}):n?(0,m.jsx)(n,{className:`cs-chip-ic`}):null,(0,m.jsx)(`span`,{className:`cs-chip-label`,children:e.label}),e.removable&&(0,m.jsx)(`button`,{type:`button`,className:`cs-chip-x`,onClick:e=>_(t,e),"aria-label":`Remove ${e.label}`,children:(0,m.jsx)(a.x,{})})]},e.label+t)}),f.length===0&&(0,m.jsx)(`span`,{className:`cs-empty faint`,children:`All chips removed`})]}),(0,m.jsx)(`div`,{className:`cs-summary`,children:s?(0,m.jsx)(`span`,{className:`faint`,dangerouslySetInnerHTML:o(s)}):v===0?(0,m.jsx)(`span`,{className:`faint`,children:`Nothing selected`}):(0,m.jsxs)(`span`,{children:[(0,m.jsx)(`strong`,{style:{color:c},children:v}),` selected`,(0,m.jsxs)(`span`,{className:`faint`,children:[` · `,y.join(`, `)]})]})}),l&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:o(l)})]})}function k({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,shortcuts:r,active:i=0,color:s=`var(--presence)`,footer:c,delay:l}){let u=a[t]||a.edit,[d,f]=(0,p.useState)(Math.max(0,Math.min(r.length-1,i))),h=r[d];return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`,"--kbd-c":s},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),h&&(0,m.jsxs)(`div`,{className:`kbd-hero`,children:[(0,m.jsx)(`div`,{className:`kbd-hero-keys`,"data-mark":`underline`,children:h.keys.map((e,t)=>(0,m.jsx)(`kbd`,{className:`kbd-cap big`,children:e},t))}),(0,m.jsx)(`div`,{className:`kbd-hero-label`,children:h.label})]}),(0,m.jsx)(`div`,{className:`kbd-list`,children:r.map((e,t)=>{let n=e.icon?a[e.icon]:null;return(0,m.jsxs)(`button`,{type:`button`,className:`kbd-row ${d===t?`on`:``}`,onMouseEnter:()=>f(t),onFocus:()=>f(t),onClick:()=>f(t),children:[(0,m.jsxs)(`span`,{className:`kbd-row-label`,children:[n&&(0,m.jsx)(n,{className:`kbd-row-ic`}),e.label]}),(0,m.jsx)(`span`,{className:`kbd-row-keys`,children:e.keys.map((e,t)=>(0,m.jsx)(`kbd`,{className:`kbd-cap`,children:e},t))})]},t)})}),c&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:14},dangerouslySetInnerHTML:o(c)})]})}r();var A=new Set([`ts`,`tsx`,`js`,`jsx`,`json`,`html`,`css`,`python`,`rust`,`go`,`java`,`c`,`cpp`,`csharp`,`ruby`,`php`,`swift`,`kotlin`,`sql`,`bash`,`shell`,`yaml`,`toml`,`markdown`,`diff`]),j={typescript:`ts`,javascript:`js`,py:`python`,rb:`ruby`,"c++":`cpp`,cs:`csharp`,sh:`bash`,zsh:`bash`,yml:`yaml`,md:`markdown`};function M(e){let t=(e||``).toLowerCase().trim(),n=j[t]??t;return A.has(n)?n:`txt`}function N(e){return e.map(e=>e.text).join(``)}function P({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,lang:r=`tsx`,filename:s,code:c,lines:h,lineNumbers:g=!0,highlight:_=[],runnable:v=!1,footer:y,delay:b}){let x=a[t]||a.doc,[S,C]=(0,p.useState)(!1),[w,T]=(0,p.useState)(null),[E,D]=(0,p.useState)(null),O=new Set(_);f(()=>C(!1),S?1600:null);let k=typeof c==`string`&&c.length>0,A=M(r);return(0,p.useEffect)(()=>{if(!k){D(null);return}let e=!1;return D(null),(async()=>{try{let{highlightCode:t}=await i(async()=>{let{highlightCode:e}=await import(`./shikiHighlight-B_TEagaE.js`);return{highlightCode:e}},__vite__mapDeps([0,1,2,3,4,5,6])),n=await t(c,A);e||D(n)}catch{e||D(null)}})(),()=>{e=!0}},[k,c,A]),(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(b||0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(x,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`cb-frame`,children:[(0,m.jsxs)(`div`,{className:`cb-chrome`,children:[(0,m.jsxs)(`span`,{className:`cb-dots`,"aria-hidden":!0,children:[(0,m.jsx)(`i`,{}),` `,(0,m.jsx)(`i`,{}),` `,(0,m.jsx)(`i`,{})]}),s&&(0,m.jsx)(`span`,{className:`cb-file mono`,children:s}),(0,m.jsx)(`span`,{className:`cb-lang`,children:r}),(0,m.jsxs)(`button`,{type:`button`,className:`cb-copy ${S?`done`:``}`,onClick:()=>{let e=k?c:(h??[]).map(N).join(`
3
3
  `);try{navigator.clipboard?.writeText(e)}catch{}C(!0)},children:[S?(0,m.jsx)(a.check,{}):(0,m.jsx)(a.proof,{}),S?`Copied!`:`Copy`]})]}),k?E?(0,m.jsx)(`div`,{className:`cb-shiki ${g?`cb-nums`:``}`,dangerouslySetInnerHTML:{__html:E}}):(0,m.jsx)(`pre`,{className:`cb-pre mono cb-plain`,children:(0,m.jsx)(`code`,{children:c})}):(0,m.jsx)(`pre`,{className:`cb-pre mono`,children:(0,m.jsx)(`code`,{children:(h??[]).map((e,t)=>(0,m.jsxs)(`span`,{className:`cb-line ${O.has(t+1)?`hl`:``}`,children:[g&&(0,m.jsx)(`span`,{className:`cb-ln`,children:t+1}),(0,m.jsx)(`span`,{className:`cb-code`,children:e.length===0?` `:e.map((e,t)=>(0,m.jsx)(`span`,{className:`tok tok-${e.kind||`punct`}`,children:e.text},t))})]},t))})})]}),v&&u(A)&&(0,m.jsx)(l,{code:k?c:(h??[]).map(N).join(`
4
4
  `),lang:A,onResult:T}),w&&(0,m.jsx)(d,{result:w,onDismiss:()=>T(null)}),y&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:14},dangerouslySetInnerHTML:o(y)})]})}var F={info:{c:`var(--presence)`,icon:`bell`},success:{c:`var(--insight)`,icon:`check`},warning:{c:`var(--warning)`,icon:`alert`},promo:{c:`var(--presence-soft)`,icon:`spark`}};function I({title:e,icon:t=`bell`,iconColor:n=`var(--presence)`,tone:r=`info`,bannerIcon:i,message:s,detail:c,action:l,dismissible:u=!0,footer:d,delay:f}){let h=a[t]||a.bell,g=F[r],_=a[i||g.icon]||a[g.icon],[v,y]=(0,p.useState)(!1),[b,x]=(0,p.useState)(!1);return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(h,{className:`ic`,style:{color:n}}),` `,e]}),v?(0,m.jsxs)(`div`,{className:`bn-dismissed`,children:[(0,m.jsx)(`span`,{className:`faint`,children:`Banner dismissed.`}),(0,m.jsxs)(`button`,{type:`button`,className:`bn-restore`,onClick:()=>y(!1),children:[(0,m.jsx)(a.undo,{}),` Restore`]})]}):(0,m.jsxs)(`div`,{className:`bn-banner tone-${r}`,style:{"--bn-c":g.c},role:`status`,children:[(0,m.jsx)(`span`,{className:`bn-icon`,children:(0,m.jsx)(_,{})}),(0,m.jsxs)(`span`,{className:`bn-body`,children:[(0,m.jsx)(`span`,{className:`bn-message`,"data-mark":`underline`,dangerouslySetInnerHTML:o(s)}),c&&(0,m.jsx)(`span`,{className:`bn-detail`,dangerouslySetInnerHTML:o(c)})]}),l&&(0,m.jsx)(`button`,{type:`button`,className:`bn-action ${b?`done`:``}`,onClick:()=>x(!0),children:b?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(a.check,{}),` Done`]}):l}),u&&(0,m.jsx)(`button`,{type:`button`,className:`bn-dismiss`,onClick:()=>y(!0),"aria-label":`Dismiss`,children:(0,m.jsx)(a.x,{})})]}),d&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:14},dangerouslySetInnerHTML:o(d)})]})}var L={success:{c:`var(--insight)`,icon:`check`},error:{c:`var(--danger)`,icon:`alert`},info:{c:`var(--presence)`,icon:`bell`},warning:{c:`var(--warning)`,icon:`alert`}},R=[{kind:`success`,title:`Saved`,desc:`Your changes are live.`},{kind:`info`,title:`Sync started`,desc:`Pulling the latest data…`},{kind:`warning`,title:`Storage at 84%`,desc:`Consider archiving old runs.`},{kind:`error`,title:`Upload failed`,desc:`Connection dropped — retry?`}];function z({title:e,icon:t=`bell`,iconColor:n=`var(--presence)`,toasts:r,pool:i,duration:s=4200,pushLabel:c=`Push toast`,footer:l,delay:u,maxToasts:d=4}){let f=a[t]||a.bell,h=Math.max(1,Math.min(d,8)),g=Number.isFinite(s)?Math.max(0,Math.min(s,6e4)):4200,_=(0,p.useRef)(r.length),v=(0,p.useRef)(i&&i.length?i:r.length?r:R),y=(0,p.useRef)(0),[b,x]=(0,p.useState)(()=>r.slice(0,h).map((e,t)=>({...e,id:t}))),S=Math.max(0,r.length-h),C=e=>x(t=>t.filter(t=>t.id!==e));return(0,p.useEffect)(()=>{if(!g||b.length===0)return;let e=b[b.length-1],t=window.setTimeout(()=>C(e.id),g);return()=>window.clearTimeout(t)},[b,g]),(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`ts-stage`,children:[b.length===0&&(0,m.jsx)(`div`,{className:`ts-empty faint`,children:`No notifications — push one below.`}),b.map((e,t)=>{let n=L[e.kind||`info`],r=a[e.icon||n.icon]||a[n.icon];return(0,m.jsxs)(`div`,{className:`ts-toast`,style:{"--ts-c":n.c},children:[(0,m.jsx)(`span`,{className:`ts-icon`,...t===0?{"data-mark":`circle`}:{},children:(0,m.jsx)(r,{})}),(0,m.jsxs)(`span`,{className:`ts-body`,children:[(0,m.jsx)(`span`,{className:`ts-title`,children:e.title}),e.desc&&(0,m.jsx)(`span`,{className:`ts-desc`,dangerouslySetInnerHTML:o(e.desc)})]}),(0,m.jsx)(`button`,{type:`button`,className:`ts-x`,onClick:()=>C(e.id),"aria-label":`Dismiss`,children:(0,m.jsx)(a.x,{})}),!!g&&(0,m.jsx)(`span`,{className:`ts-progress`,style:{animationDuration:g+`ms`}})]},e.id)})]}),S>0&&(0,m.jsxs)(`div`,{className:`faint`,style:{fontSize:12,marginTop:-6,marginBottom:12},children:[`+`,S,` more queued — dismiss one to surface the next`]}),(0,m.jsxs)(`button`,{type:`button`,className:`ts-push`,onClick:()=>{let e=v.current[y.current%v.current.length];y.current+=1,x(t=>[{...e,id:_.current++},...t].slice(0,h))},children:[(0,m.jsx)(a.plus,{}),` `,c]}),l&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:14},dangerouslySetInnerHTML:o(l)})]})}function B({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,caption:r,buttonLabel:i=`Save changes`,loadingLabel:s=`Saving…`,color:c=`var(--presence)`,footer:l,delay:u}){let d=a[t]||a.clock,[f,h]=(0,p.useState)(!1),[g,_]=(0,p.useState)(!1),v=(0,p.useRef)(void 0);return(0,p.useEffect)(()=>()=>window.clearTimeout(v.current),[]),(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`,"--sp-c":c},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`sp-showcase`,children:[(0,m.jsxs)(`div`,{className:`sp-cell`,children:[(0,m.jsx)(`span`,{className:`sp-ring sp-sm`}),(0,m.jsx)(`span`,{className:`sp-cell-label faint`,children:`Small`})]}),(0,m.jsxs)(`div`,{className:`sp-cell`,children:[(0,m.jsx)(`span`,{className:`sp-ring sp-md`}),(0,m.jsx)(`span`,{className:`sp-cell-label faint`,children:`Ring`})]}),(0,m.jsxs)(`div`,{className:`sp-cell`,children:[(0,m.jsxs)(`span`,{className:`sp-dots`,children:[(0,m.jsx)(`i`,{}),` `,(0,m.jsx)(`i`,{}),` `,(0,m.jsx)(`i`,{})]}),(0,m.jsx)(`span`,{className:`sp-cell-label faint`,children:`Dots`})]}),(0,m.jsxs)(`div`,{className:`sp-cell`,children:[(0,m.jsx)(`span`,{className:`sp-pulse`}),(0,m.jsx)(`span`,{className:`sp-cell-label faint`,children:`Pulse`})]})]}),(0,m.jsxs)(`div`,{className:`sp-bar-wrap`,children:[(0,m.jsx)(`span`,{className:`sp-bar-label faint`,children:`Indeterminate`}),(0,m.jsx)(`span`,{className:`sp-bar`,children:(0,m.jsx)(`span`,{className:`sp-bar-fill`})})]}),(0,m.jsx)(`button`,{type:`button`,className:`sp-btn ${f?`busy`:``} ${g?`done`:``}`,onClick:()=>{f||(h(!0),_(!1),v.current=window.setTimeout(()=>{h(!1),_(!0)},1900))},disabled:f,children:f?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`span`,{className:`sp-btn-spin`}),` `,s]}):g?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(a.check,{}),` Done`]}):i}),r&&(0,m.jsx)(`div`,{className:`sp-caption faint`,dangerouslySetInnerHTML:o(r)}),l&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:14},dangerouslySetInnerHTML:o(l)})]})}function V({title:e,icon:t=`bell`,iconColor:n=`var(--presence)`,items:r,markAllLabel:i=`Mark all read`,footer:s,delay:c}){let l=a[t]||a.bell,[u,d]=(0,p.useState)(()=>r.map(e=>({avatar:e.avatar,icon:e.icon,color:e.color||`var(--presence)`,title:e.title,time:e.time,unread:e.unread!==!1,removed:!1}))),f=u.filter(e=>!e.removed),h=f.filter(e=>e.unread).length,g=u.findIndex(e=>!e.removed&&e.unread),_=e=>d(t=>t.map((t,n)=>n===e?{...t,unread:!t.unread}:t)),v=e=>d(t=>t.map((t,n)=>n===e?{...t,removed:!0}:t));return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(l,{className:`ic`,style:{color:n}}),` `,e,h>0&&(0,m.jsx)(`span`,{className:`nf-badge`,children:h}),(0,m.jsxs)(`button`,{type:`button`,className:`nf-markall`,onClick:()=>d(e=>e.map(e=>({...e,unread:!1}))),disabled:h===0,children:[(0,m.jsx)(a.check,{}),` `,i]})]}),(0,m.jsxs)(`div`,{className:`nf-list`,children:[f.length===0&&(0,m.jsx)(`div`,{className:`nf-empty faint`,children:`You're all caught up.`}),u.map((e,t)=>e.removed?null:(0,m.jsxs)(`div`,{className:`nf-row ${e.unread?`unread`:``}`,style:{"--nf-c":e.color},children:[(0,m.jsx)(`span`,{className:`nf-unread-dot`,...t===g?{"data-mark":`point`,style:{"--nf-c":e.color,boxShadow:`0 0 0 3px color-mix(in oklab, ${e.color} 22%, transparent), 0 0 8px ${e.color}`}}:{}}),(0,m.jsx)(`span`,{className:`nf-avatar`,children:e.avatar?(0,m.jsx)(`span`,{className:`nf-avatar-ini`,children:e.avatar.slice(0,2).toUpperCase()}):(0,m.jsx)(a[e.icon||`bell`]||a.bell,{className:`nf-avatar-ic`})}),(0,m.jsxs)(`span`,{className:`nf-body`,children:[(0,m.jsx)(`span`,{className:`nf-title`,dangerouslySetInnerHTML:o(e.title)}),e.time&&(0,m.jsx)(`span`,{className:`nf-time faint`,children:e.time})]}),(0,m.jsxs)(`span`,{className:`nf-actions`,children:[(0,m.jsx)(`button`,{type:`button`,className:`nf-act`,onClick:()=>_(t),title:e.unread?`Mark read`:`Mark unread`,"aria-label":e.unread?`Mark read`:`Mark unread`,children:e.unread?(0,m.jsx)(a.check,{}):(0,m.jsx)(a.undo,{})}),(0,m.jsx)(`button`,{type:`button`,className:`nf-act`,onClick:()=>v(t),title:`Dismiss`,"aria-label":`Dismiss`,children:(0,m.jsx)(a.x,{})})]})]},t))]}),s&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:o(s)})]})}var H=e({displayRegistry:()=>U}),U={avatar:c(b),avatargroup:c(T),badgeset:c(D),chipset:c(O),kbd:c(k),codeblock:c(P),banner:c(I),toaststack:c(z),spinner:c(B),notification:c(V)};export{H as n,U as t};