@mavea/mavea 2.2.0 → 2.2.1

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 (105) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/.vite/manifest.json +354 -354
  3. package/dist/assets/{AnnotationLayer-HanjTRYY.js → AnnotationLayer-CzXCVZCu.js} +1 -1
  4. package/dist/assets/{AppCommandPalette-DBiuHUNL.js → AppCommandPalette-D6904cc9.js} +1 -1
  5. package/dist/assets/{CheckLogRail-CfoGgTqv.js → CheckLogRail-CeRhbIwa.js} +1 -1
  6. package/dist/assets/{ConversationVideoStudio-CEi_cgBR.js → ConversationVideoStudio-Cyu-M9Us.js} +1 -1
  7. package/dist/assets/{CourseLessonReader-CaLT_Y6N.js → CourseLessonReader-BvTabDPT.js} +2 -2
  8. package/dist/assets/{CoursesApp-IfWCeml5.js → CoursesApp-B8kZ6pFr.js} +2 -2
  9. package/dist/assets/{DashPresent-T7I-lAng.js → DashPresent-Dr0LLNnz.js} +1 -1
  10. package/dist/assets/{DashboardDetail-BhRSDenD.js → DashboardDetail-B5JZ6fRz.js} +2 -2
  11. package/dist/assets/{DashboardLoopGate-DBVAR7IS.js → DashboardLoopGate-UHcbTCXN.js} +2 -2
  12. package/dist/assets/DashboardLoopRuntime-BZutKupS.js +1 -0
  13. package/dist/assets/{DashboardsApp-C_awJ3hM.js → DashboardsApp-DzVa4Nqd.js} +2 -2
  14. package/dist/assets/{DeepZoomApp-C-66OasV.js → DeepZoomApp-CN8ZKeS4.js} +1 -1
  15. package/dist/assets/{DelegatePanel-DaJTDkYu.js → DelegatePanel-DO7J_rk_.js} +1 -1
  16. package/dist/assets/{DemoGallery-B9F7SUzp.js → DemoGallery-DMQP4JAa.js} +1 -1
  17. package/dist/assets/{DropSelect-IBjV5Ol1.js → DropSelect-BVDNR47E.js} +1 -1
  18. package/dist/assets/{ExportModal-gckBiikq.js → ExportModal-BVsirsNU.js} +1 -1
  19. package/dist/assets/{ExtractionPreview-DDOkCH9u.js → ExtractionPreview-872OE2ZI.js} +1 -1
  20. package/dist/assets/{FeatureUseNotice-BfnZH8Vt.js → FeatureUseNotice-BNDajs0p.js} +1 -1
  21. package/dist/assets/{FlagshipCommandPalette-CYQdl3Zu.js → FlagshipCommandPalette-mKkMVsza.js} +1 -1
  22. package/dist/assets/{FlagshipShowcase-CFMmbeff.js → FlagshipShowcase-CL_KWgKn.js} +1 -1
  23. package/dist/assets/{FlashcardsApp-KJ1bmlbp.js → FlashcardsApp-COYviD1h.js} +1 -1
  24. package/dist/assets/GalleryApp-B5z9rsrO.css +1 -0
  25. package/dist/assets/{GalleryApp-Dh8Nc_So.js → GalleryApp-D96R7Hdy.js} +2 -2
  26. package/dist/assets/{HonestByDesign-C3LTj4Bx.js → HonestByDesign-DOg91fEf.js} +1 -1
  27. package/dist/assets/{HowItWorks-C5Dqqvl-.js → HowItWorks-D4lHSwEb.js} +1 -1
  28. package/dist/assets/{LegalApp-DYVJIUyF.js → LegalApp-BSPhYvKz.js} +1 -1
  29. package/dist/assets/{LegalMarkdownDocument-CbuQ-pLN.js → LegalMarkdownDocument-DDUOgn72.js} +1 -1
  30. package/dist/assets/{LegalPageShell-CoEyiZGz.js → LegalPageShell-DSbe8dTr.js} +1 -1
  31. package/dist/assets/{LibraryOverlay-TQnxY9R8.js → LibraryOverlay-CEhVoSyv.js} +1 -1
  32. package/dist/assets/{LiveApp-DRnphsFA.js → LiveApp-DtpM4tO0.js} +4 -4
  33. package/dist/assets/{LiveSettings-Cz3XSqv8.js → LiveSettings-C7luyoWU.js} +1 -1
  34. package/dist/assets/{MindMapViewerDrawer-AUJlLC2R.js → MindMapViewerDrawer-DxcjLJzB.js} +1 -1
  35. package/dist/assets/{MindShape-BbuVOTaR.js → MindShape-DhEmAQeq.js} +1 -1
  36. package/dist/assets/{PinToDashboard-BdXI7oo9.js → PinToDashboard-CQHDENt1.js} +1 -1
  37. package/dist/assets/{PlanReview-CGRvSRAt.js → PlanReview-f7EY7XTc.js} +1 -1
  38. package/dist/assets/{PresentationDeck-CoPmOr2f.js → PresentationDeck-Bo1BVx73.js} +1 -1
  39. package/dist/assets/{PrismApp-DPECS285.js → PrismApp-CBr8XpUt.js} +2 -2
  40. package/dist/assets/{PrismBriefingPlayer-BvpG7oZs.js → PrismBriefingPlayer-qNjVbmUq.js} +2 -2
  41. package/dist/assets/{PrismOverlay-c8rcvt4V.js → PrismOverlay-L_lLIH_1.js} +3 -3
  42. package/dist/assets/{PrismWorkbench-BEaD7Arj.js → PrismWorkbench-DK-1IY4A.js} +1 -1
  43. package/dist/assets/{PrivacyApp-_O_MR088.js → PrivacyApp-DT8wZumn.js} +1 -1
  44. package/dist/assets/{ReplayCard-IN-ilb2E.js → ReplayCard-BQr6DWYi.js} +2 -2
  45. package/dist/assets/{ReplayOverlay-ZRjFP-zf.js → ReplayOverlay-CRVixwg2.js} +1 -1
  46. package/dist/assets/{RippleApp-D_Gd8Lw8.js → RippleApp-CMY2OCRm.js} +2 -2
  47. package/dist/assets/{RippleOverlay-vP2KxTiI.js → RippleOverlay-Dwi8Ir43.js} +2 -2
  48. package/dist/assets/{SeeDontRead-BmUyUai5.js → SeeDontRead-BkeAv1Jd.js} +1 -1
  49. package/dist/assets/{ShareModal-_KYCohqO.js → ShareModal-DVwc57KT.js} +2 -2
  50. package/dist/assets/{ShipCourse--ajDej06.js → ShipCourse-BNEPgsV5.js} +1 -1
  51. package/dist/assets/{SignatureLoop-DDw2gtQ_.js → SignatureLoop-C9GvENvP.js} +1 -1
  52. package/dist/assets/{SynthesisApp-CilzogOF.js → SynthesisApp-BPAT6v7a.js} +2 -2
  53. package/dist/assets/{SynthesisOverlay-CAK5h0hB.js → SynthesisOverlay-u_W105hD.js} +1 -1
  54. package/dist/assets/{TemplatePicker-3w18ViSc.js → TemplatePicker-CAC4ggbJ.js} +1 -1
  55. package/dist/assets/{TermsApp-BfTGOTq6.js → TermsApp-BlyUsTrJ.js} +1 -1
  56. package/dist/assets/{TopicCanvas-DSCNWNjv.js → TopicCanvas-CyBGLgb0.js} +2 -2
  57. package/dist/assets/{TourPrism-Y47m-KGq.js → TourPrism-Cn2YHIwh.js} +1 -1
  58. package/dist/assets/{TrackerTile-LXFQXcvH.js → TrackerTile-Ds3ks6Bh.js} +2 -2
  59. package/dist/assets/{TwoSurfaces-CSpKrgfJ.js → TwoSurfaces-cdP8bAG9.js} +1 -1
  60. package/dist/assets/{WorldOverlay-D5FWgYe3.js → WorldOverlay-DPkQobVE.js} +1 -1
  61. package/dist/assets/{WowFeatures-e6mkftpD.js → WowFeatures-BBtcWAOz.js} +1 -1
  62. package/dist/assets/{ZoomDeck-CC9zXPxF.js → ZoomDeck-Cdvkvo2H.js} +1 -1
  63. package/dist/assets/{audioTrack-w1tZwSoU.js → audioTrack-W_18XwGZ.js} +1 -1
  64. package/dist/assets/canvas-BX595EVB.js +1 -0
  65. package/dist/assets/{capture-Bomj_Egy.js → capture-Dyff_zSz.js} +1 -1
  66. package/dist/assets/{confirmAdd-CUFiPNWz.js → confirmAdd-D_hDIeaD.js} +1 -1
  67. package/dist/assets/{dashboardEvents-PktCbV72.js → dashboardEvents-BV0Ly6No.js} +1 -1
  68. package/dist/assets/{deepen-Dz4yTyJs.js → deepen-D8kPrlU5.js} +1 -1
  69. package/dist/assets/docs-6X4Ki_cV.js +1 -0
  70. package/dist/assets/{effort-BKGxLYoq.js → effort-QeWrMtZt.js} +1 -1
  71. package/dist/assets/{generateBeats-BjWC2fwl.js → generateBeats-Da9RmZke.js} +1 -1
  72. package/dist/assets/{generateLive-BLajGcNK.js → generateLive-CDIkclO4.js} +1 -1
  73. package/dist/assets/{index-CKRjGbeR.js → index-BMeoXWPR.js} +3 -3
  74. package/dist/assets/{kokoro-B-rc224u.js → kokoro-DcP-u0Tl.js} +1 -1
  75. package/dist/assets/{loader-BiYFMeRS.js → loader-BRfSnl9t.js} +2 -2
  76. package/dist/assets/{notes-nfocTnUv.js → notes-BDCTTA87.js} +1 -1
  77. package/dist/assets/{perfProbe-BqMK4N56.js → perfProbe-ssw0AtWX.js} +1 -1
  78. package/dist/assets/{pin-IyE46GaQ.js → pin-Bic4-gim.js} +1 -1
  79. package/dist/assets/{portal-C2b5NoMN.js → portal-Dpb34d3-.js} +1 -1
  80. package/dist/assets/{prewarm-Pvdu5Jt0.js → prewarm-xdXDmF8B.js} +1 -1
  81. package/dist/assets/{quietHours-lWcjQ2Iu.js → quietHours-uFS7n8N6.js} +1 -1
  82. package/dist/assets/{registry-BD1Zyd46.js → registry-BV02ROnH.js} +1 -1
  83. package/dist/assets/{registry-OUL5YJry.js → registry-BWx2f_wi.js} +1 -1
  84. package/dist/assets/{registry-BJFqryP_.js → registry-Bs5HUWIJ.js} +1 -1
  85. package/dist/assets/registry-CdPShFc3.js +1 -0
  86. package/dist/assets/{registry-BiT0eNZb.js → registry-DNIasVGX.js} +1 -1
  87. package/dist/assets/{registry-BTUHr4mQ.js → registry-DueizAoA.js} +1 -1
  88. package/dist/assets/{registry-CnmuVlAA.js → registry-PAcazQzL.js} +1 -1
  89. package/dist/assets/{relate-ZHm-ZvaR.js → relate-BHJl3RaA.js} +1 -1
  90. package/dist/assets/{replay-DBeCo_vn.js → replay-DoRQJHjZ.js} +1 -1
  91. package/dist/assets/{select-CejTsgpx.js → select-StjZ4ZRN.js} +1 -1
  92. package/dist/assets/shard010-Bal9PeRL.js +1 -0
  93. package/dist/assets/shard049-C4_IyApZ.js +1 -0
  94. package/dist/assets/{useDashboardLoop-SPlr1Mrm.js → useDashboardLoop-DEE_sLT0.js} +1 -1
  95. package/dist/assets/{walkSync-BtO3jsqQ.js → walkSync-CRhkAQFu.js} +1 -1
  96. package/dist/demo-assets/CREDITS.md +36 -0
  97. package/dist/index.html +1 -1
  98. package/package.json +1 -1
  99. package/dist/assets/DashboardLoopRuntime-B55z8L4b.js +0 -1
  100. package/dist/assets/GalleryApp-B4KBdNyu.css +0 -1
  101. package/dist/assets/canvas-BRGFkCD-.js +0 -1
  102. package/dist/assets/docs-B2aDtm5K.js +0 -1
  103. package/dist/assets/registry-BmjYillB.js +0 -1
  104. package/dist/assets/shard010-CQfR6lnk.js +0 -1
  105. package/dist/assets/shard049-hPaNN2sL.js +0 -1
@@ -0,0 +1 @@
1
+ import{r as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{t as n}from"./compiler-runtime-qQQXpJgv.js";import{t as r}from"./jsx-runtime-DeHZSEgm.js";import{n as i}from"./icons-gLFQTv74.js";import{t as a}from"./richText-BkxJhl9N.js";import{t as o}from"./BlockEmpty-B-giiUPy.js";import"./lib-Dkb5WBRc.js";import{t as s}from"./registry-types-D3q_LrlV.js";import{r as c}from"./sourceHost-BV3t2XDb.js";var l=r(),u={"two-tailed":`two-tailed`,greater:`one-tailed · greater`,less:`one-tailed · less`};function d({title:e=`Hypothesis Test`,icon:t=`proof`,iconColor:n=`var(--presence)`,h0:r,h1:o,direction:s,alpha:c,variables:d,rejected:f,footer:p,delay:m}){let h=i[t]||i.proof,g=typeof f==`boolean`,_=d?.iv,v=d?.dv,y=typeof c==`number`&&Number.isFinite(c),b=s?u[s]:null;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(m||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(h,{className:`ic`,style:{color:n}}),` `,e]}),(_||v||y)&&(0,l.jsxs)(`div`,{className:`hyp-meta`,children:[_&&(0,l.jsxs)(`span`,{className:`hyp-meta-chip`,children:[`IV · `,_]}),v&&(0,l.jsxs)(`span`,{className:`hyp-meta-chip`,children:[`DV · `,v]}),y&&(0,l.jsxs)(`span`,{className:`hyp-meta-chip hyp-alpha tab-num`,children:[`α = `,c]})]}),(0,l.jsxs)(`div`,{className:`hyp-stmt hyp-h0 m-fade-rise m-stagger-item`+(g?f?` rejected`:` retained`:``),style:{"--i":0},children:[(0,l.jsxs)(`div`,{className:`hyp-stmt-head`,children:[(0,l.jsx)(`span`,{className:`hyp-stmt-tag`,children:`H₀ · Null hypothesis`}),g&&(0,l.jsxs)(`span`,{className:`hyp-verdict`,children:[f?(0,l.jsx)(i.x,{className:`ic hyp-verdict-ic`}):(0,l.jsx)(i.check,{className:`ic hyp-verdict-ic`}),f?`Rejected`:`Retained`]})]}),(0,l.jsx)(`div`,{className:`hyp-stmt-body`,children:r})]}),(0,l.jsxs)(`div`,{className:`hyp-stmt hyp-h1 m-fade-rise m-stagger-item`+(g?f?` supported`:` unsupported`:``),style:{"--i":1},children:[(0,l.jsxs)(`div`,{className:`hyp-stmt-head`,children:[(0,l.jsxs)(`span`,{className:`hyp-stmt-tag`,children:[`H₁ · Alternative hypothesis`,b&&(0,l.jsx)(`span`,{className:`hyp-direction`,children:b})]}),g&&(0,l.jsxs)(`span`,{className:`hyp-verdict`,children:[f?(0,l.jsx)(i.check,{className:`ic hyp-verdict-ic`}):(0,l.jsx)(i.x,{className:`ic hyp-verdict-ic`}),f?`Supported`:`Not supported`]})]}),(0,l.jsx)(`div`,{className:`hyp-stmt-body`,children:o})]}),p&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(p)})]})}var f=n();function p({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,source:r,page:o,blocks:s,note:c,footer:u,delay:d}){let f=i[t]||i.doc,p=s.some(e=>e.spot);return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`doc-view`+(p?` has-spot`:``),children:[(0,l.jsxs)(`div`,{className:`doc-view-bar`,children:[(0,l.jsxs)(`span`,{className:`doc-view-file`,children:[(0,l.jsx)(i.doc,{className:`doc-view-fileic`}),` `,r??`Document`]}),o&&(0,l.jsxs)(`span`,{className:`doc-view-page`,children:[`p. `,o.n,` / `,o.of]})]}),(0,l.jsxs)(`div`,{className:`doc-view-page-surface`,children:[s.map((e,t)=>(0,l.jsx)(m,{b:e,spotlit:p&&!!e.spot,dimmed:p&&!e.spot},t)),p&&c&&(0,l.jsxs)(`div`,{className:`doc-view-note`,children:[(0,l.jsx)(`span`,{className:`doc-view-note-pin`}),(0,l.jsx)(`span`,{dangerouslySetInnerHTML:a(c)})]})]})]}),u&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}function m(e){let t=(0,f.c)(8),{b:n,spotlit:r,dimmed:i}=e,o=`doc-view-${n.kind}`+(r?` spotlit`:``)+(i?` dimmed`:``),s;t[0]===n.text?s=t[1]:(s=a(n.text),t[0]=n.text,t[1]=s);let c;t[2]===r?c=t[3]:(c=r?{"data-mark":`underline`}:{},t[2]=r,t[3]=c);let u;return t[4]!==o||t[5]!==s||t[6]!==c?(u=(0,l.jsx)(`div`,{className:o,dangerouslySetInnerHTML:s,...c}),t[4]=o,t[5]=s,t[6]=c,t[7]=u):u=t[7],u}var h=t();function g(e){if(!e||typeof window>`u`)return null;try{let t=new URL(e,window.location.origin);return t.origin!==window.location.origin||t.protocol!==`http:`&&t.protocol!==`https:`||!t.pathname.toLowerCase().endsWith(`.pdf`)&&t.pathname!==`/pdf`?null:`${t.pathname}${t.search}${t.hash}`}catch{return null}}function _({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,source:r,file:o,embedSrc:s,pages:u=[],footer:d,delay:f}){let p=i[t]||i.doc,[m,_]=(0,h.useState)(1),y=(0,h.useRef)(null),b=(0,h.useRef)([]),x=g(s)??g(o),S=x?null:c(o??``);return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`doc-view`,children:[(0,l.jsxs)(`div`,{className:`doc-view-bar`,children:[(0,l.jsxs)(`span`,{className:`doc-view-file`,children:[(0,l.jsx)(i.doc,{className:`doc-view-fileic`}),` `,r??`Document`]}),(0,l.jsx)(`span`,{className:`doc-view-page`,children:o?`PDF`:`p. ${m} / ${u.length}`})]}),x?(0,l.jsx)(`iframe`,{className:`pr-embed`,src:x,title:r||e,referrerPolicy:`no-referrer`}):o?(0,l.jsx)(`div`,{className:`pr-file-fallback`,children:S?(0,l.jsx)(`a`,{href:S,target:`_blank`,rel:`noopener noreferrer`,children:`Open the PDF in a new tab ↗`}):(0,l.jsx)(`span`,{children:`This PDF link could not be verified.`})}):(0,l.jsx)(`div`,{className:`pr-scroll`,ref:y,onScroll:()=>{let e=y.current;if(!e)return;let t=e.scrollTop+48,n=1;for(let e=0;e<b.current.length;e++){let r=b.current[e];r&&r.offsetTop<=t&&(n=e+1)}n!==m&&_(n)},children:u.map((e,t)=>(0,l.jsxs)(`div`,{className:`pr-sheet`,ref:e=>{b.current[t]=e},children:[(0,l.jsx)(`span`,{className:`pr-sheet-no`,children:t+1}),e.blocks.map((e,t)=>(0,l.jsx)(v,{b:e},t))]},t))})]}),d&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(d)})]})}function v(e){let t=(0,f.c)(5),{b:n}=e,r=`doc-view-${n.kind}`,i;t[0]===n.text?i=t[1]:(i=a(n.text),t[0]=n.text,t[1]=i);let o;return t[2]!==r||t[3]!==i?(o=(0,l.jsx)(`div`,{className:r,dangerouslySetInnerHTML:i}),t[2]=r,t[3]=i,t[4]=o):o=t[4],o}function y({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,docName:r,paragraphs:o,highlights:s,footer:c,delay:u}){let d=i[t]||i.doc,[f,p]=(0,h.useState)(0),m=(0,h.useMemo)(()=>o.map((e,t)=>{let n=[];s.forEach((t,r)=>{let i=e.indexOf(t.phrase);i>=0&&n.push({s:i,e:i+t.phrase.length,h:r})}),n.sort((e,t)=>e.s-t.s);let r=[],i=0;return n.forEach((n,a)=>{n.s<i||(n.s>i&&r.push({key:`t${t}-${a}`,text:e.slice(i,n.s)}),r.push({key:`h${t}-${a}`,text:e.slice(n.s,n.e),h:n.h}),i=n.e)}),i<e.length&&r.push({key:`t${t}-end`,text:e.slice(i)}),r}),[o,s]),g=s[f];return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ad-body`,children:[(0,l.jsxs)(`div`,{className:`ad-doc`,children:[r&&(0,l.jsx)(`div`,{className:`ad-docname mono faint`,children:r}),m.map((e,t)=>(0,l.jsx)(`p`,{className:`ad-para`,children:e.map(e=>{if(e.h===void 0)return(0,l.jsx)(`span`,{children:e.text},e.key);let t=e.h,n=f===t;return(0,l.jsxs)(`span`,{className:`ad-mark ${n?`on`:``}`,style:{"--hl":s[t].color||`var(--presence)`},role:`button`,tabIndex:0,"aria-label":`Show note ${t+1}`,onMouseEnter:()=>p(t),onClick:()=>p(t),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),p(t))},"data-mark":n?`underline`:void 0,children:[e.text,(0,l.jsx)(`sup`,{className:`ad-mark-num tab-num`,children:t+1})]},e.key)})},t))]}),(0,l.jsxs)(`div`,{className:`ad-margin`,children:[g&&(0,l.jsxs)(`div`,{className:`ad-note`,style:{"--hl":g.color||`var(--presence)`},children:[(0,l.jsxs)(`div`,{className:`ad-note-head`,children:[(0,l.jsx)(`span`,{className:`ad-note-num tab-num`,children:f+1}),g.author&&(0,l.jsx)(`span`,{className:`ad-note-author`,children:g.author})]}),(0,l.jsx)(`div`,{className:`ad-note-body`,dangerouslySetInnerHTML:a(g.note)})]},f),(0,l.jsx)(`div`,{className:`ad-dots`,children:s.map((e,t)=>(0,l.jsx)(`button`,{className:`ad-dot ${f===t?`on`:``}`,style:{"--hl":e.color||`var(--presence)`},onClick:()=>p(t),"aria-label":`Note ${t+1}`},t))})]})]}),c&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}function b({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,docName:r,tokens:o,footer:s,delay:c}){let u=i[t]||i.edit,[d,f]=(0,h.useState)(`review`),p=o.filter(e=>e.ins!=null).length,m=o.filter(e=>e.del!=null).length,g=p+m;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`rl-head`,children:[r&&(0,l.jsx)(`span`,{className:`rl-docname mono faint`,children:r}),(0,l.jsxs)(`span`,{className:`rl-count tab-num`,children:[(0,l.jsx)(`span`,{className:`rl-pip ins`}),p,` `,(0,l.jsx)(`span`,{className:`rl-pip del`}),m]})]}),(0,l.jsx)(`div`,{className:`rl-tabs`,children:[{id:`review`,label:`Tracked`,icon:`eye`},{id:`final`,label:`Final`,icon:`check`},{id:`original`,label:`Original`,icon:`undo`}].map(e=>{let t=i[e.icon];return(0,l.jsxs)(`button`,{className:`rl-tab ${d===e.id?`on`:``}`,onClick:()=>f(e.id),children:[(0,l.jsx)(t,{className:`ic`}),` `,e.label]},e.id)})}),(0,l.jsx)(`div`,{className:`rl-doc mode-${d}`,children:o.map((e,t)=>e.text==null?e.ins==null?e.del==null||d===`final`?null:(0,l.jsx)(`span`,{className:`rl-del`,title:e.by?`deleted by ${e.by}`:`deletion`,children:e.del},t):d===`original`?null:(0,l.jsx)(`span`,{className:`rl-ins`,title:e.by?`inserted by ${e.by}`:`insertion`,children:e.ins},t):(0,l.jsx)(`span`,{className:`rl-keep`,children:e.text},t))}),(0,l.jsxs)(`div`,{className:`rl-foot`,children:[d===`review`&&(0,l.jsxs)(`span`,{className:`rl-hint faint`,children:[g,` tracked change`,g===1?``:`s`,` — switch views to accept or reject`]}),d===`final`&&(0,l.jsx)(`span`,{className:`rl-hint`,style:{color:`var(--insight)`},children:`Accepted — showing final copy`}),d===`original`&&(0,l.jsx)(`span`,{className:`rl-hint`,style:{color:`var(--text-muted)`},children:`Rejected — showing original copy`})]}),s&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}var x={strong:{c:`var(--insight)`,t:`strong`},partial:{c:`var(--warning)`,t:`partial`},weak:{c:`var(--danger)`,t:`weak`}};function S({node:e,path:t,depth:n}){let r=!!(e.children&&e.children.length),[o,s]=(0,h.useState)(n<2),c=e.color||(n===0?`var(--presence)`:`var(--insight)`),u=e.strength?x[e.strength]:null;return(0,l.jsxs)(`div`,{className:`cc-node`,style:{"--rail":c},children:[(0,l.jsxs)(`button`,{className:`cc-row ${o?`open`:``} ${r?`has-kids`:`leaf`}`,onClick:()=>r&&s(e=>!e),children:[(0,l.jsx)(`span`,{className:`cc-bullet`,style:{background:c},...n===0?{"data-mark":`circle`}:{}}),r&&(0,l.jsx)(i.chevR,{className:`cc-chev ${o?`open`:``}`}),(0,l.jsx)(`span`,{className:`cc-label`,dangerouslySetInnerHTML:a(e.label)}),e.cite&&(0,l.jsxs)(`span`,{className:`cc-cite mono`,children:[(0,l.jsx)(i.link,{className:`cc-cite-ic`}),e.cite]}),u&&(0,l.jsx)(`span`,{className:`cc-strength`,style:{color:u.c,"--sc":u.c},children:u.t})]}),r&&(0,l.jsx)(`div`,{className:`cc-kids`,"data-open":o,children:o&&e.children.map((e,r)=>(0,l.jsx)(S,{node:e,path:`${t}-${r}`,depth:n+1},`${t}-${r}`))})]})}function ee({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,root:r,footer:o,delay:s}){let c=i[t]||i.layers;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(`div`,{className:`cc-tree`,children:(0,l.jsx)(S,{node:r,path:`r`,depth:0})}),o&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var C={true:{c:`var(--insight)`,label:`Verified`,icon:`check`},partly:{c:`var(--warning)`,label:`Partly true`,icon:`alert`},false:{c:`var(--danger)`,label:`False`,icon:`x`},unverified:{c:`var(--text-muted)`,label:`Unverified`,icon:`eyeOff`}};function te({title:e,icon:t=`proof`,iconColor:n=`var(--insight)`,claims:r,footer:o,delay:s}){let c=i[t]||i.proof,[u,d]=(0,h.useState)(0);return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(`div`,{className:`fc-list`,children:r.map((e,t)=>{let n=C[e.verdict],r=i[n.icon],o=u===t;return(0,l.jsxs)(`div`,{className:`fc-item ${o?`on`:``}`,style:{"--vc":n.c},children:[(0,l.jsxs)(`button`,{className:`fc-head`,onClick:()=>d(o?null:t),children:[(0,l.jsx)(`span`,{className:`fc-verdict`,style:{color:n.c},children:(0,l.jsx)(r,{className:`fc-verdict-ic`})}),(0,l.jsx)(`span`,{className:`fc-claim`,dangerouslySetInnerHTML:a(e.claim)}),(0,l.jsxs)(`span`,{className:`fc-conf tab-num`,style:{color:n.c},children:[Math.round(e.confidence),`%`]}),(0,l.jsx)(i.chevR,{className:`fc-chev ${o?`open`:``}`})]}),(0,l.jsx)(`div`,{className:`fc-bar`,children:(0,l.jsx)(`span`,{className:`fc-bar-fill`,style:{width:e.confidence+`%`,background:n.c}})}),(0,l.jsx)(`div`,{className:`fc-detail`,"data-open":o,children:o&&(0,l.jsxs)(`div`,{className:`fc-detail-in`,children:[(0,l.jsx)(`span`,{className:`fc-tag`,style:{color:n.c,"--vc":n.c},children:n.label}),e.detail&&(0,l.jsx)(`div`,{className:`fc-expl`,dangerouslySetInnerHTML:a(e.detail)}),e.sources&&e.sources.length>0&&(0,l.jsx)(`div`,{className:`fc-sources`,children:e.sources.map((e,t)=>(0,l.jsxs)(`span`,{className:`fc-source mono`,children:[(0,l.jsx)(i.globe,{className:`fc-source-ic`}),` `,e]},t))})]})})]},t)})}),o&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var w={strong:`var(--insight)`,partial:`var(--warning)`,weak:`var(--danger)`,none:`var(--text-muted)`},T={strong:1,partial:.6,weak:.3,none:0};function E({title:e,icon:t=`shield`,iconColor:n=`var(--insight)`,claim:r,overall:o,segments:s,footer:c,delay:u}){let d=i[t]||i.shield,f=s.reduce((e,t,n)=>{let r=(t.weight||0)*T[t.band||`partial`];return r>e.score?{i:n,score:r}:e},{i:0,score:-1}).i,[p,m]=(0,h.useState)(f),g=s.reduce((e,t)=>e+(t.weight||0),0)||1,_=o??Math.round(s.reduce((e,t)=>e+(t.weight||0)*T[t.band||`partial`],0)/g*100),v=_>=75?`var(--insight)`:_>=45?`var(--warning)`:`var(--danger)`,y=s[p];return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,l.jsx)(`div`,{className:`cm-claim`,dangerouslySetInnerHTML:a(r)}),(0,l.jsxs)(`div`,{className:`insight-stat`,style:{margin:`8px 0 10px`},children:[(0,l.jsxs)(`span`,{className:`big tab-num`,"data-mark":`underline`,style:{color:v},children:[_,`%`]}),(0,l.jsx)(`span`,{className:`cm-conf-label faint`,children:`overall confidence`})]}),(0,l.jsx)(`div`,{className:`cm-track`,children:s.map((e,t)=>{let n=w[e.band||`partial`],r=(e.weight||0)/g*100;return(0,l.jsx)(`button`,{className:`cm-seg ${p===t?`on`:``}`,style:{width:r+`%`,"--c":n},onMouseEnter:()=>m(t)},t)})}),(0,l.jsx)(`div`,{className:`cm-legend`,children:s.map((e,t)=>{let n=w[e.band||`partial`];return(0,l.jsxs)(`button`,{className:`cm-leg ${p===t?`on`:``}`,onMouseEnter:()=>m(t),children:[(0,l.jsx)(`span`,{className:`cm-leg-dot`,style:{background:n}}),(0,l.jsx)(`span`,{className:`cm-leg-label`,children:e.label})]},t)})}),y&&(0,l.jsxs)(`div`,{className:`cm-basis`,style:{"--c":w[y.band||`partial`]},children:[(0,l.jsxs)(`div`,{className:`cm-basis-head`,children:[(0,l.jsx)(`span`,{className:`cm-basis-name`,children:y.label}),(0,l.jsxs)(`span`,{className:`cm-basis-band tab-num`,children:[Math.round(y.weight/g*100),`% weight`]})]}),y.basis&&(0,l.jsx)(`div`,{className:`cm-basis-body`,dangerouslySetInnerHTML:a(y.basis)})]},p),c&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}function D({title:e,icon:t=`quote`,iconColor:n=`var(--presence)`,quote:r,phrase:o,source:s,locator:c,color:u=`var(--presence)`,footer:d,delay:f}){let p=i[t]||i.quote,[m,g]=(0,h.useState)(!0),_=o?r.indexOf(o):-1,v;return v=_>=0?(0,l.jsxs)(l.Fragment,{children:[r.slice(0,_),(0,l.jsx)(`mark`,{className:`hs-mark ${m?`on`:``}`,style:{"--hl":u},children:r.slice(_,_+o.length)}),r.slice(_+o.length)]}):r,(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`figure`,{className:`hs-fig`,style:{"--hl":u},children:[(0,l.jsx)(`span`,{className:`hs-quote-glyph`,children:`“`}),(0,l.jsx)(`blockquote`,{className:`hs-quote`,children:v})]}),(0,l.jsxs)(`div`,{className:`hs-foot`,children:[s&&(0,l.jsxs)(`span`,{className:`hs-chip mono`,children:[(0,l.jsx)(i.globe,{className:`hs-chip-ic`}),` `,s,c&&(0,l.jsxs)(`span`,{className:`hs-loc faint`,children:[` · `,c]})]}),(0,l.jsxs)(`button`,{className:`hs-toggle ${m?`on`:``}`,onClick:()=>g(e=>!e),style:{"--hl":u},children:[m?(0,l.jsx)(i.eye,{className:`hs-toggle-ic`}):(0,l.jsx)(i.eyeOff,{className:`hs-toggle-ic`}),m?`Highlighted`:`Plain`]})]}),d&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(d)})]})}function O({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,caption:r,ratio:o=16/9,callouts:s,footer:c,delay:u}){let d=i[t]||i.image,[f,p]=(0,h.useState)(0),m=s[f],g=m?.color||`var(--presence)`;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ac-surface`,style:{aspectRatio:String(o)},children:[(0,l.jsxs)(`svg`,{className:`ac-bg`,viewBox:`0 0 160 90`,preserveAspectRatio:`none`,"aria-hidden":!0,children:[(0,l.jsx)(`defs`,{children:(0,l.jsxs)(`linearGradient`,{id:`acg`,x1:`0`,y1:`0`,x2:`1`,y2:`1`,children:[(0,l.jsx)(`stop`,{offset:`0%`,stopColor:`var(--grid-strong)`}),(0,l.jsx)(`stop`,{offset:`100%`,stopColor:`var(--grid-line)`})]})}),(0,l.jsx)(`rect`,{x:`0`,y:`0`,width:`160`,height:`90`,fill:`url(#acg)`}),[18,36,54,72].map(e=>(0,l.jsx)(`line`,{x1:`10`,y1:e,x2:`150`,y2:e,stroke:`var(--grid-line)`,strokeWidth:`0.6`},e)),[40,80,120].map(e=>(0,l.jsx)(`line`,{x1:e,y1:`8`,x2:e,y2:`82`,stroke:`var(--grid-line)`,strokeWidth:`0.6`},e))]}),s.map((e,t)=>{let n=e.color||`var(--presence)`;return(0,l.jsxs)(`button`,{className:`ac-pin ${f===t?`on`:``}`,style:{left:e.x+`%`,top:e.y+`%`,"--pc":n},onMouseEnter:()=>p(t),onClick:()=>p(t),"aria-label":e.label,"data-mark":t===0?`point`:void 0,children:[(0,l.jsx)(`span`,{className:`ac-pin-ring`}),(0,l.jsx)(`span`,{className:`ac-pin-num tab-num`,children:t+1})]},t)})]}),r&&(0,l.jsx)(`div`,{className:`ac-caption faint`,children:r}),m&&(0,l.jsxs)(`div`,{className:`ac-note`,style:{"--pc":g},children:[(0,l.jsx)(`span`,{className:`ac-note-num tab-num`,children:f+1}),(0,l.jsxs)(`div`,{className:`ac-note-text`,children:[(0,l.jsx)(`span`,{className:`ac-note-label`,children:m.label}),(0,l.jsx)(`span`,{className:`ac-note-body`,dangerouslySetInnerHTML:a(m.note)})]})]},f),(0,l.jsx)(`div`,{className:`ac-thumbs`,children:s.map((e,t)=>(0,l.jsx)(`button`,{className:`ac-thumb tab-num ${f===t?`on`:``}`,style:{"--pc":e.color||`var(--presence)`},onClick:()=>p(t),children:t+1},t))}),c&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}function ne({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,sources:r,footer:o,delay:s}){let c=i[t]||i.globe,[u,d]=(0,h.useState)(`relevance`),[f,p]=(0,h.useState)(0),m=(0,h.useMemo)(()=>{let e=r.map((e,t)=>t);return e.sort((e,t)=>u===`relevance`?r[t].relevance-r[e].relevance:r[e].domain.localeCompare(r[t].domain)),e},[r,u]);return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`sl-tabs`,children:[(0,l.jsxs)(`button`,{className:`sl-tab ${u===`relevance`?`on`:``}`,onClick:()=>d(`relevance`),children:[(0,l.jsx)(i.chart,{className:`ic`}),` Relevance`]}),(0,l.jsxs)(`button`,{className:`sl-tab ${u===`az`?`on`:``}`,onClick:()=>d(`az`),children:[(0,l.jsx)(i.doc,{className:`ic`}),` A–Z`]}),(0,l.jsxs)(`span`,{className:`sl-total faint tab-num`,children:[r.length,` sources`]})]}),(0,l.jsx)(`div`,{className:`sl-list`,children:m.map((e,t)=>{let n=r[e],o=n.color||`var(--presence)`,s=n.glyph||n.domain.replace(/^www\./,``).charAt(0).toUpperCase(),c=f===e;return(0,l.jsxs)(`div`,{className:`sl-row ${c?`on`:``}`,children:[(0,l.jsxs)(`button`,{className:`sl-head`,onClick:()=>p(c?null:e),children:[(0,l.jsx)(`span`,{className:`sl-rank tab-num`,children:t+1}),(0,l.jsx)(`span`,{className:`sl-fav`,style:{"--fc":o,background:`color-mix(in oklab, ${o} 22%, transparent)`,color:o},children:s}),(0,l.jsxs)(`span`,{className:`sl-main`,children:[(0,l.jsx)(`span`,{className:`sl-title`,children:n.titleText}),(0,l.jsxs)(`span`,{className:`sl-domain mono faint`,children:[n.domain,n.date&&(0,l.jsxs)(`span`,{className:`sl-date`,children:[` · `,n.date]})]})]}),(0,l.jsxs)(`span`,{className:`sl-rel`,children:[(0,l.jsx)(`span`,{className:`sl-rel-track`,children:(0,l.jsx)(`span`,{className:`sl-rel-fill`,style:{width:n.relevance+`%`,background:o}})}),(0,l.jsx)(`span`,{className:`sl-rel-num tab-num`,style:{color:o},children:Math.round(n.relevance)})]}),(0,l.jsx)(i.chevR,{className:`sl-chev ${c?`open`:``}`})]}),(0,l.jsxs)(`div`,{className:`sl-detail`,"data-open":c,children:[c&&n.snippet&&(0,l.jsx)(`div`,{className:`sl-snippet`,dangerouslySetInnerHTML:a(n.snippet)}),c&&(0,l.jsxs)(`span`,{className:`sl-open mono`,children:[(0,l.jsx)(i.external,{className:`sl-open-ic`}),` `,n.domain]})]})]},e)})}),o&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var k={yes:{c:`var(--insight)`,icon:`check`,t:`Supported`},no:{c:`var(--danger)`,icon:`x`,t:`Contradicted`},partial:{c:`var(--warning)`,icon:`alert`,t:`Partial`},na:{c:`var(--text-muted)`,icon:null,t:`No data`}};function re({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,columns:r,rows:o,footer:s,delay:c}){let u=i[t]||i.table,[d,f]=(0,h.useState)({r:0,c:0}),p=d&&o[d.r]&&o[d.r].cells[d.c]?o[d.r].cells[d.c]:null,m=p?k[p.state]:null;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(`div`,{className:`cg-scroll`,children:(0,l.jsxs)(`table`,{className:`cg-table`,style:{"--cols":r.length},children:[(0,l.jsx)(`thead`,{children:(0,l.jsxs)(`tr`,{children:[(0,l.jsx)(`th`,{className:`cg-corner`}),r.map((e,t)=>(0,l.jsx)(`th`,{className:`cg-colh`,children:(0,l.jsx)(`span`,{children:e})},t))]})}),(0,l.jsx)(`tbody`,{children:o.map((e,t)=>(0,l.jsxs)(`tr`,{children:[(0,l.jsx)(`th`,{className:`cg-rowh`,scope:`row`,children:e.claim}),r.map((n,r)=>{let a=e.cells[r]?.state??`na`,o=k[a],s=o.icon?i[o.icon]:null,c=d?.r===t&&d?.c===r;return(0,l.jsx)(`td`,{className:`cg-cell ${a} ${c?`on`:``}`,style:{"--cc":o.c},onMouseEnter:()=>f({r:t,c:r}),children:(0,l.jsx)(`span`,{className:`cg-mark`,children:s?(0,l.jsx)(s,{className:`cg-mark-ic`}):(0,l.jsx)(`span`,{className:`cg-dash`,children:`–`})})},r)})]},t))})]})}),p&&m&&(0,l.jsxs)(`div`,{className:`cg-tip`,style:{"--cc":m.c},children:[(0,l.jsx)(`span`,{className:`cg-tip-tag`,style:{color:m.c},children:m.t}),p.note?(0,l.jsx)(`span`,{className:`cg-tip-note`,dangerouslySetInnerHTML:a(p.note)}):(0,l.jsxs)(`span`,{className:`cg-tip-note faint`,children:[o[d.r].claim,` × `,r[d.c]]})]}),s&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function A(e,t,n,r){e.forEach((e,i)=>{let a=`${n}-${i}`,o=!!(e.children&&e.children.length);r.push({node:e,depth:t,path:a,hasKids:o,index:r.length}),o&&A(e.children,t+1,a,r)})}function ie({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,docName:r,sections:o,activeIndex:s=0,footer:c,delay:u}){let d=i[t]||i.doc,f=(0,h.useMemo)(()=>{let e=[];return A(o,0,`o`,e),e},[o]),[p,m]=(0,h.useState)(Math.max(0,Math.min(s,f.length-1))),[g,_]=(0,h.useState)({}),v=Math.max(1,...f.map(e=>e.node.weight||0)),y=e=>Object.keys(g).some(t=>g[t]&&e!==t&&e.startsWith(t+`-`)),b=f.length,x=p+1;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`do-head`,children:[r&&(0,l.jsx)(`span`,{className:`do-docname mono faint`,children:r}),(0,l.jsxs)(`span`,{className:`do-progress tab-num faint`,children:[(0,l.jsx)(`span`,{style:{color:`var(--presence)`},children:x}),`/`,b]})]}),(0,l.jsx)(`div`,{className:`do-list`,children:f.map(e=>{if(y(e.path))return null;let t=p===e.index,n=t?`var(--presence)`:`var(--text-muted)`,r=!!g[e.path],a=(e.node.weight||0)/v*100;return(0,l.jsxs)(`div`,{className:`do-row ${t?`on`:``}`,style:{"--depth":Math.min(e.depth,6)},children:[(0,l.jsx)(`span`,{className:`do-rail`}),e.hasKids?(0,l.jsx)(`button`,{className:`do-twist`,onClick:t=>{t.stopPropagation(),_(t=>({...t,[e.path]:!t[e.path]}))},"aria-label":r?`expand`:`collapse`,children:(0,l.jsx)(i.chevR,{className:`do-twist-ic ${r?``:`open`}`})}):(0,l.jsx)(`span`,{className:`do-dot`,style:{background:n},...t?{"data-mark":`point`}:{}}),(0,l.jsxs)(`button`,{className:`do-jump`,onClick:()=>m(e.index),children:[(0,l.jsx)(`span`,{className:`do-heading`,children:e.node.heading}),(e.node.weight??0)>0&&(0,l.jsx)(`span`,{className:`do-wbar`,children:(0,l.jsx)(`span`,{className:`do-wfill`,style:{width:a+`%`}})}),e.node.loc&&(0,l.jsx)(`span`,{className:`do-loc mono faint`,children:e.node.loc})]})]},e.path)})}),c&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var ae={add:`+`,del:`−`,ctx:` `};function j({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,leftLabel:r=`before`,rightLabel:o=`after`,lines:s,split:c=!1,footer:u,delay:d}){let f=i[t]||i.doc,p=s.filter(e=>e.kind===`add`).length,m=s.filter(e=>e.kind===`del`).length;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`dc-diff-head`,children:[(0,l.jsxs)(`span`,{className:`dc-diff-files`,children:[r,` `,(0,l.jsx)(i.chevR,{className:`dc-diff-arrow`}),` `,o]}),(0,l.jsxs)(`span`,{className:`dc-diff-stat`,children:[(0,l.jsxs)(`span`,{className:`add`,"data-mark":`underline`,children:[`+`,p]}),` `,(0,l.jsxs)(`span`,{className:`del`,children:[`−`,m]})]})]}),(0,l.jsx)(`div`,{className:`dc-diff`,children:c?(0,l.jsxs)(`div`,{className:`dc-diff-split`,children:[(0,l.jsx)(`div`,{className:`dc-diff-body`,children:s.filter(e=>e.kind!==`add`).map((e,t)=>(0,l.jsxs)(`div`,{className:`dc-diff-line `+(e.kind===`del`?`del`:`ctx`),children:[(0,l.jsx)(`span`,{className:`dc-diff-gut`,children:e.oldNo??``}),(0,l.jsx)(`span`,{className:`dc-diff-code`,children:e.text})]},t))}),(0,l.jsx)(`div`,{className:`dc-diff-body`,children:s.filter(e=>e.kind!==`del`).map((e,t)=>(0,l.jsxs)(`div`,{className:`dc-diff-line `+(e.kind===`add`?`add`:`ctx`),children:[(0,l.jsx)(`span`,{className:`dc-diff-gut`,children:e.newNo??``}),(0,l.jsx)(`span`,{className:`dc-diff-code`,children:e.text})]},t))})]}):(0,l.jsx)(`div`,{className:`dc-diff-body`,role:`table`,children:s.map((e,t)=>(0,l.jsxs)(`div`,{className:`dc-diff-line `+e.kind,role:`row`,children:[(0,l.jsx)(`span`,{className:`dc-diff-gut`,children:e.oldNo??``}),(0,l.jsx)(`span`,{className:`dc-diff-gut`,children:e.newNo??``}),(0,l.jsx)(`span`,{className:`dc-diff-sign`,children:ae[e.kind]}),(0,l.jsx)(`span`,{className:`dc-diff-code`,children:e.text})]},t))})}),u&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:a(u)})]})}function M({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,columns:r,rows:o,caption:s,footer:c,delay:u}){let d=i[t]||i.layers,f=r.length||1,p=`repeat(${f}, minmax(0, 1fr))`,m=o.filter(e=>e.diverge).length;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[e&&(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),s&&(0,l.jsx)(`div`,{className:`pt-caption`,children:s}),(0,l.jsx)(`div`,{className:`pt-scroll`,children:(0,l.jsxs)(`div`,{className:`pt-grid`,style:{"--pt-cols":p},children:[(0,l.jsx)(`div`,{className:`pt-headrow`,style:{gridTemplateColumns:p},children:r.map((e,t)=>(0,l.jsxs)(`div`,{className:`pt-colh`+(t===0?` source`:``),children:[(0,l.jsx)(`span`,{className:`pt-colh-label`,children:e.label}),e.lang&&(0,l.jsx)(`span`,{className:`pt-colh-lang mono`,children:e.lang})]},t))}),o.map((e,t)=>(0,l.jsxs)(`div`,{className:`pt-line`+(e.diverge?` diverge`:``),children:[(0,l.jsx)(`div`,{className:`pt-cells`,style:{gridTemplateColumns:p},children:Array.from({length:f},(t,n)=>(0,l.jsx)(`div`,{className:`pt-cell`+(n===0?` source`:``),children:e.cells[n]??``},n))}),e.note&&(0,l.jsxs)(`div`,{className:`pt-note`,children:[(0,l.jsx)(`span`,{className:`pt-note-rail`,"aria-hidden":`true`}),(0,l.jsx)(`span`,{className:`pt-note-text`,children:e.note})]})]},t))]})}),(c||m>0)&&(0,l.jsxs)(`div`,{className:`pt-foot`,children:[m>0&&(0,l.jsxs)(`span`,{className:`pt-foot-tag`,children:[(0,l.jsx)(`span`,{className:`pt-foot-pip`,"aria-hidden":`true`}),m,` divergence`,m===1?``:`s`]}),c&&(0,l.jsx)(`span`,{className:`pt-foot-note`,dangerouslySetInnerHTML:a(c)})]})]})}var N={symptom:`var(--warning)`,diagnosis:`var(--presence)`,treatment:`var(--insight)`,test:`var(--text-secondary)`,result:`var(--text-primary)`,visit:`var(--text-muted)`},P={symptom:`alert`,diagnosis:`proof`,treatment:`sparkle`,test:`chart`,result:`check`,visit:`clock`};function F({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,events:r,footer:o,delay:s}){let c=i[t]||i.doc;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(`div`,{className:`ct-events`,children:r.map((e,t)=>{let n=N[e.type],a=P[e.type],o=i[a]||i.clock;return(0,l.jsxs)(`div`,{className:`ct-event`,children:[(0,l.jsxs)(`div`,{className:`ct-rail`,children:[(0,l.jsx)(`div`,{className:`ct-dot`,style:{background:n,borderColor:n}}),t<r.length-1&&(0,l.jsx)(`div`,{className:`ct-line`})]}),(0,l.jsxs)(`div`,{className:`ct-body`,children:[(0,l.jsxs)(`div`,{className:`ct-header`,children:[(0,l.jsxs)(`span`,{className:`ct-type-chip`,style:{color:n,background:`color-mix(in oklab, ${n} 12%, transparent)`},children:[(0,l.jsx)(o,{className:`ic`,style:{width:10,height:10}}),e.type]}),(0,l.jsx)(`span`,{className:`ct-date`,children:e.date})]}),(0,l.jsx)(`div`,{className:`ct-label`,children:e.label}),e.note&&(0,l.jsx)(`div`,{className:`ct-note`,children:e.note})]})]},t)})}),o&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}function I({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,question:r,method:o,sampleSize:s,findings:c,conclusion:u,limitations:d,source:f,year:p,footer:m,delay:h}){let g=i[t]||i.doc;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(h||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(`div`,{className:`rs-question`,children:r}),(o||s)&&(0,l.jsxs)(`div`,{className:`rs-meta`,children:[o&&(0,l.jsx)(`span`,{className:`rs-meta-chip`,children:o}),s&&(0,l.jsx)(`span`,{className:`rs-meta-chip`,children:s}),p&&(0,l.jsx)(`span`,{className:`rs-meta-chip`,children:p})]}),(0,l.jsxs)(`div`,{className:`rs-findings`,children:[(0,l.jsx)(`div`,{className:`rs-section-label`,children:`Key Findings`}),(0,l.jsx)(`ul`,{className:`rs-findings-list`,children:c.map((e,t)=>(0,l.jsx)(`li`,{className:`rs-finding`,children:e},t))})]}),(0,l.jsxs)(`div`,{className:`rs-conclusion`,children:[(0,l.jsx)(`div`,{className:`rs-section-label`,children:`Conclusion`}),(0,l.jsx)(`div`,{className:`rs-conclusion-body`,children:u})]}),d&&(0,l.jsxs)(`div`,{className:`rs-limitations`,children:[(0,l.jsx)(`div`,{className:`rs-section-label`,children:`Limitations`}),(0,l.jsx)(`div`,{className:`rs-limitations-body`,children:d})]}),f&&(0,l.jsx)(`div`,{className:`rs-source`,children:f}),m&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(m)})]})}var L={pass:{color:`var(--insight)`,label:`Met`,icon:`check`},fail:{color:`var(--danger)`,label:`Not met`,icon:`x`},"needs-info":{color:`var(--warning)`,label:`Needs info`,icon:`alert`}},R={likely:{color:`var(--insight)`,label:`Likely qualify`},"not-yet":{color:`var(--danger)`,label:`Do not qualify yet`},depends:{color:`var(--warning)`,label:`Depends`}};function z({title:e,icon:t=`proof`,iconColor:n=`var(--insight)`,requirements:r,overall:o,caveat:s,footer:c,delay:u}){let d=i[t]||i.proof,f=r??[],p=o?R[o]:void 0;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),p&&(0,l.jsxs)(`div`,{className:`ec-overall`,style:{"--eo":p.color},children:[(0,l.jsx)(`span`,{className:`ec-overall-label`,children:`Overall`}),(0,l.jsx)(`span`,{className:`ec-overall-verdict`,children:p.label})]}),(0,l.jsx)(`ul`,{className:`ec-list`,children:f.map((e,t)=>{let n=L[e.status]??L[`needs-info`],r=i[n.icon]||i.alert;return(0,l.jsxs)(`li`,{className:`ec-row`,style:{"--es":n.color},children:[(0,l.jsx)(`span`,{className:`ec-mark`,children:(0,l.jsx)(r,{className:`ec-mark-ic`})}),(0,l.jsxs)(`div`,{className:`ec-body`,children:[(0,l.jsxs)(`div`,{className:`ec-rule-line`,children:[(0,l.jsx)(`span`,{className:`ec-rule`,children:e.rule}),(0,l.jsx)(`span`,{className:`ec-badge`,children:n.label})]}),e.detail&&(0,l.jsx)(`div`,{className:`ec-detail`,children:e.detail}),e.fix&&(0,l.jsxs)(`div`,{className:`ec-fix`,children:[(0,l.jsx)(`span`,{className:`ec-fix-tag`,children:e.status===`fail`?`To qualify`:`Confirm`}),(0,l.jsx)(`span`,{children:e.fix})]})]})]},t)})}),s&&(0,l.jsxs)(`div`,{className:`ec-caveat`,children:[(0,l.jsx)(i.shield,{className:`ec-caveat-ic`}),(0,l.jsx)(`span`,{children:s})]}),c&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var B=6;function V({title:e,icon:t=`proof`,iconColor:n=`var(--presence)`,claim:r,summary:o,items:s,caveat:c,footer:u,delay:d}){let f=i[t]||i.proof,p=s??[],[m,g]=(0,h.useState)(!1),_=p.length>B,v=m?p:p.slice(0,B),y=p.length-v.length;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,l.jsxs)(`div`,{className:`et-claim`,children:[(0,l.jsx)(`span`,{className:`et-claim-rail`,style:{background:n}}),(0,l.jsxs)(`div`,{className:`et-claim-body`,children:[(0,l.jsx)(`div`,{className:`et-claim-text`,dangerouslySetInnerHTML:a(r)}),o&&(0,l.jsxs)(`span`,{className:`et-summary`,children:[(0,l.jsx)(i.chart,{className:`et-summary-ic`,style:{width:12,height:12}}),` `,o]})]})]}),(0,l.jsxs)(`div`,{className:`et-records-h`,children:[(0,l.jsx)(i.quote,{className:`et-records-h-ic`,style:{width:12,height:12}}),`Underlying records`,(0,l.jsx)(`span`,{className:`et-records-count tab-num`,children:p.length})]}),(0,l.jsx)(`ul`,{className:`et-records`,children:v.map((e,t)=>(0,l.jsxs)(`li`,{className:`et-record`,children:[(0,l.jsx)(`span`,{className:`et-marker`}),(0,l.jsxs)(`div`,{className:`et-record-body`,children:[(0,l.jsx)(`div`,{className:`et-record-text`,children:e.text}),(e.source||e.when)&&(0,l.jsxs)(`div`,{className:`et-record-meta`,children:[e.source&&(0,l.jsxs)(`span`,{className:`et-source mono`,children:[(0,l.jsx)(i.link,{className:`et-source-ic`,style:{width:11,height:11}}),e.source]}),e.when&&(0,l.jsx)(`span`,{className:`et-when`,children:e.when})]})]})]},t))}),_&&(0,l.jsxs)(`button`,{className:`et-more`,onClick:()=>g(e=>!e),children:[m?`Show fewer`:`Show all ${p.length} records`,!m&&(0,l.jsxs)(`span`,{className:`et-more-n tab-num`,children:[`+`,y]})]}),c&&(0,l.jsxs)(`div`,{className:`et-caveat`,children:[(0,l.jsx)(i.alert,{className:`et-caveat-ic`,style:{width:13,height:13}}),(0,l.jsx)(`span`,{children:c})]}),u&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}function H(e){return(Math.round(e*10)/10).toFixed(1)}function U({title:e,icon:t=`quote`,iconColor:n=`var(--presence)`,rating:r,count:o,distribution:s,loves:c,complaints:u,dealbreaker:d,footer:f,delay:p}){let m=i[t]||i.quote,h=c??[],g=u??[],_=s&&s.length===5?s:null,v=_?Math.max(..._,1):1,y=_?_.reduce((e,t)=>e+t,0):0,b=r??(_&&y>0?_.reduce((e,t,n)=>e+t*(5-n),0)/y:void 0),x=o??(y>0?y:void 0);return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(b!==void 0||_)&&(0,l.jsxs)(`div`,{className:`rv-summary`,children:[b!==void 0&&(0,l.jsxs)(`div`,{className:`rv-score`,children:[(0,l.jsx)(`span`,{className:`rv-score-val tab-num`,children:H(b)}),(0,l.jsxs)(`span`,{className:`rv-stars`,"aria-hidden":`true`,children:[(0,l.jsx)(`span`,{className:`rv-stars-fill`,style:{width:Math.min(b,5)/5*100+`%`},children:`★★★★★`}),(0,l.jsx)(`span`,{className:`rv-stars-track`,children:`★★★★★`})]}),x!==void 0&&(0,l.jsxs)(`span`,{className:`rv-count`,children:[x.toLocaleString(),` reviews`]})]}),_&&(0,l.jsx)(`div`,{className:`rv-dist`,children:_.map((e,t)=>{let n=5-t;return(0,l.jsxs)(`div`,{className:`rv-dist-row`,children:[(0,l.jsx)(`span`,{className:`rv-dist-star tab-num`,children:n}),(0,l.jsx)(i.spark,{className:`rv-dist-ic`}),(0,l.jsx)(`span`,{className:`rv-dist-track`,children:(0,l.jsx)(`span`,{className:`rv-dist-fill`,style:{width:e/v*100+`%`}})}),(0,l.jsx)(`span`,{className:`rv-dist-n tab-num`,children:e.toLocaleString()})]},t)})})]}),(h.length>0||g.length>0)&&(0,l.jsxs)(`div`,{className:`rv-split`,children:[h.length>0&&(0,l.jsxs)(`section`,{className:`rv-col rv-col--love`,children:[(0,l.jsxs)(`div`,{className:`rv-col-h`,children:[(0,l.jsx)(i.check,{className:`rv-col-ic`}),` People love`]}),(0,l.jsx)(`ul`,{className:`rv-themes`,children:h.map((e,t)=>(0,l.jsx)(W,{theme:e},t))})]}),g.length>0&&(0,l.jsxs)(`section`,{className:`rv-col rv-col--gripe`,children:[(0,l.jsxs)(`div`,{className:`rv-col-h`,children:[(0,l.jsx)(i.x,{className:`rv-col-ic`}),` Complaints`]}),(0,l.jsx)(`ul`,{className:`rv-themes`,children:g.map((e,t)=>(0,l.jsx)(W,{theme:e},t))})]})]}),d&&(0,l.jsxs)(`div`,{className:`rv-dealbreaker`,children:[(0,l.jsx)(i.alert,{className:`rv-db-ic`}),(0,l.jsxs)(`span`,{children:[(0,l.jsx)(`b`,{children:`Biggest dealbreaker:`}),` `,d]})]}),f&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}function W(e){let t=(0,f.c)(12),{theme:n}=e,r;t[0]===n.theme?r=t[1]:(r=(0,l.jsx)(`span`,{className:`rv-theme-name`,children:n.theme}),t[0]=n.theme,t[1]=r);let i;t[2]===n.freq?i=t[3]:(i=n.freq&&(0,l.jsx)(`span`,{className:`rv-theme-freq`,children:n.freq}),t[2]=n.freq,t[3]=i);let a;t[4]!==r||t[5]!==i?(a=(0,l.jsxs)(`div`,{className:`rv-theme-head`,children:[r,i]}),t[4]=r,t[5]=i,t[6]=a):a=t[6];let o;t[7]===n.quote?o=t[8]:(o=n.quote&&(0,l.jsx)(`blockquote`,{className:`rv-quote`,children:`“`+n.quote+`”`}),t[7]=n.quote,t[8]=o);let s;return t[9]!==a||t[10]!==o?(s=(0,l.jsxs)(`li`,{className:`rv-theme`,children:[a,o]}),t[9]=a,t[10]=o,t[11]=s):s=t[11],s}function G({name:e,title:t,icon:n=`doc`,iconColor:r=`var(--presence)`,contact:o,summary:s,experience:c,education:u,skills:d,footer:f,delay:p}){let m=i[n]||i.doc;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(m,{className:`ic`,style:{color:r}}),` `,e]}),(0,l.jsxs)(`div`,{className:`rz-paper`,children:[(0,l.jsxs)(`div`,{className:`rz-head`,children:[(0,l.jsx)(`div`,{className:`rz-name`,children:e}),t&&(0,l.jsx)(`div`,{className:`rz-title`,children:t}),!!o?.length&&(0,l.jsx)(`div`,{className:`rz-contact`,children:o.map((e,t)=>(0,l.jsx)(`span`,{className:`rz-contact-item`,children:e},t))})]}),s&&(0,l.jsx)(`p`,{className:`rz-summary`,children:s}),c.length>0&&(0,l.jsxs)(`section`,{className:`rz-section`,children:[(0,l.jsx)(`div`,{className:`rz-section-label`,children:`Experience`}),(0,l.jsx)(`div`,{className:`rz-exp-list`,children:c.map((e,t)=>(0,l.jsx)(K,{exp:e,i:t},t))})]}),!!u?.length&&(0,l.jsxs)(`section`,{className:`rz-section`,children:[(0,l.jsx)(`div`,{className:`rz-section-label`,children:`Education`}),(0,l.jsx)(`div`,{className:`rz-edu-list`,children:u.map((e,t)=>(0,l.jsx)(q,{ed:e,i:t},t))})]}),!!d?.length&&(0,l.jsxs)(`section`,{className:`rz-section`,children:[(0,l.jsx)(`div`,{className:`rz-section-label`,children:`Skills`}),(0,l.jsx)(`div`,{className:`rz-skills`,children:d.map((e,t)=>(0,l.jsx)(`span`,{className:`rz-skill m-stagger-item m-fade-rise`,style:{"--i":t},children:e},t))})]})]}),f&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}function K({exp:e,i:t}){let n=[e.start,e.end||`Present`].filter(Boolean).join(` – `);return(0,l.jsxs)(`div`,{className:`rz-exp m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,l.jsxs)(`div`,{className:`rz-exp-top`,children:[(0,l.jsxs)(`div`,{className:`rz-exp-who`,children:[(0,l.jsx)(`span`,{className:`rz-exp-role`,children:e.role}),(0,l.jsx)(`span`,{className:`rz-exp-org`,children:e.org})]}),(0,l.jsxs)(`div`,{className:`rz-exp-when`,children:[(0,l.jsx)(`span`,{className:`rz-exp-range`,children:n}),e.location&&(0,l.jsx)(`span`,{className:`rz-exp-loc`,children:e.location})]})]}),!!e.bullets?.length&&(0,l.jsx)(`ul`,{className:`rz-bullets`,children:e.bullets.map((e,t)=>(0,l.jsx)(`li`,{children:e},t))})]})}function q({ed:e,i:t}){let n=[e.start,e.end].filter(Boolean).join(` – `);return(0,l.jsxs)(`div`,{className:`rz-edu m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,l.jsxs)(`div`,{className:`rz-exp-top`,children:[(0,l.jsxs)(`div`,{className:`rz-exp-who`,children:[(0,l.jsx)(`span`,{className:`rz-exp-role`,children:e.school}),(0,l.jsx)(`span`,{className:`rz-exp-org`,children:e.credential})]}),n&&(0,l.jsx)(`div`,{className:`rz-exp-when`,children:(0,l.jsx)(`span`,{className:`rz-exp-range`,children:n})})]}),e.detail&&(0,l.jsx)(`div`,{className:`rz-edu-detail`,children:e.detail})]})}var J={added:`var(--insight)`,changed:`var(--presence)`,fixed:`var(--presence-soft)`,deprecated:`var(--warning-soft)`,removed:`var(--warning)`,security:`var(--danger)`},oe={added:`plus`,changed:`refresh`,fixed:`check`,deprecated:`clock`,removed:`x`,security:`shield`},Y=[`security`,`removed`,`deprecated`,`fixed`,`changed`,`added`];function se(e){let t=Y.length-1;for(let n of e){let e=Y.indexOf(n.kind);e!==-1&&e<t&&(t=e)}return Y[t]??`changed`}function ce({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,versions:r,footer:o,delay:s}){let c=i[t]||i.doc;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(`div`,{className:`cl-versions`,children:r.map((e,t)=>{let n=t===r.length-1,a=e.entries.length?J[se(e.entries)]:`var(--text-muted)`;return(0,l.jsxs)(`div`,{className:`cl-version m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,l.jsxs)(`div`,{className:`cl-rail`,children:[(0,l.jsx)(`div`,{className:`cl-dot`,style:{borderColor:a,color:a}}),!n&&(0,l.jsx)(`div`,{className:`cl-line`})]}),(0,l.jsxs)(`div`,{className:`cl-body`,children:[(0,l.jsxs)(`div`,{className:`cl-version-head`,children:[(0,l.jsx)(`span`,{className:`cl-version-num`,children:e.version}),e.date&&(0,l.jsx)(`span`,{className:`cl-version-date`,children:e.date})]}),e.entries.length>0&&(0,l.jsx)(`div`,{className:`cl-entries`,children:e.entries.map((e,t)=>{let n=J[e.kind]??`var(--text-muted)`,r=i[oe[e.kind]]||i.doc;return(0,l.jsxs)(`div`,{className:`cl-entry`,children:[(0,l.jsxs)(`span`,{className:`cl-kind`,style:{color:n,background:`color-mix(in oklab, ${n} 14%, transparent)`},children:[(0,l.jsx)(r,{className:`ic`}),e.kind]}),(0,l.jsx)(`span`,{className:`cl-entry-text`,children:e.text})]},t)})})]})]},t)})}),o&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}function le({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,subject:r,gradeLevel:o,duration:s,objectives:c,materials:u,procedure:d,assessment:f,footer:p,delay:m}){let h=i[t]||i.doc,g=d.reduce((e,t)=>e+(t.minutes||0),0),_=s||(g>0?`${g} min`:void 0);return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(m||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(h,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`lp-paper`,children:[(r||o||_)&&(0,l.jsxs)(`div`,{className:`lp-meta`,children:[r&&(0,l.jsx)(`span`,{className:`lp-meta-chip`,children:r}),o&&(0,l.jsx)(`span`,{className:`lp-meta-chip`,children:o}),_&&(0,l.jsx)(`span`,{className:`lp-meta-chip`,children:_})]}),c.length>0&&(0,l.jsxs)(`section`,{className:`lp-section`,children:[(0,l.jsx)(`div`,{className:`lp-section-label`,children:`Objectives`}),(0,l.jsx)(`ul`,{className:`lp-list`,children:c.map((e,t)=>(0,l.jsx)(`li`,{children:e},t))})]}),!!u?.length&&(0,l.jsxs)(`section`,{className:`lp-section`,children:[(0,l.jsx)(`div`,{className:`lp-section-label`,children:`Materials`}),(0,l.jsx)(`div`,{className:`lp-materials`,children:u.map((e,t)=>(0,l.jsx)(`span`,{className:`lp-material`,children:e},t))})]}),d.length>0&&(0,l.jsxs)(`section`,{className:`lp-section`,children:[(0,l.jsx)(`div`,{className:`lp-section-label`,children:`Procedure`}),(0,l.jsx)(`div`,{className:`lp-steps`,children:d.map((e,t)=>(0,l.jsxs)(`div`,{className:`lp-step m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,l.jsx)(`span`,{className:`lp-step-num`,children:t+1}),(0,l.jsxs)(`div`,{className:`lp-step-body`,children:[(0,l.jsxs)(`div`,{className:`lp-step-top`,children:[(0,l.jsx)(`span`,{className:`lp-step-text`,children:e.step}),!!e.minutes&&(0,l.jsxs)(`span`,{className:`lp-step-min`,children:[e.minutes,` min`]})]}),e.detail&&(0,l.jsx)(`div`,{className:`lp-step-detail`,children:e.detail})]})]},t))})]}),f&&(0,l.jsxs)(`section`,{className:`lp-section`,children:[(0,l.jsx)(`div`,{className:`lp-section-label`,children:`Assessment`}),(0,l.jsx)(`div`,{className:`lp-assessment`,children:f})]})]}),p&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(p)})]})}var ue=[{key:`facts`,label:`Facts`},{key:`issue`,label:`Issue`},{key:`holding`,label:`Holding`},{key:`reasoning`,label:`Reasoning`}];function de({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,citation:r,parties:o,facts:s,issue:c,holding:u,reasoning:d,footer:f,delay:p}){let m=i[t]||i.doc,h={facts:s,issue:c,holding:u,reasoning:d};return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,l.jsx)(`div`,{className:`cb-citation`,children:r}),(0,l.jsxs)(`div`,{className:`cb-parties`,children:[(0,l.jsx)(`span`,{className:`cb-party`,children:o.plaintiff}),(0,l.jsx)(`span`,{className:`cb-vs`,children:`v.`}),(0,l.jsx)(`span`,{className:`cb-party`,children:o.defendant})]}),ue.map((e,t)=>(0,l.jsxs)(`section`,{className:`cb-section cb-section--${e.key} m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,l.jsx)(`div`,{className:`cb-section-label`,children:e.label}),(0,l.jsx)(`div`,{className:`cb-section-body`,children:h[e.key]})]},e.key)),f&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}var X={disclosed:{c:`var(--insight)`,icon:`check`,t:`Disclosed`},"not-disclosed":{c:`var(--text-muted)`,icon:null,t:`Not disclosed`},disputed:{c:`var(--warning)`,icon:`alert`,t:`Disputed`}},fe=new Set([`disclosed`,`not-disclosed`,`disputed`]);function Z(e,t,n){let r=Array.isArray(e)?e[t]:void 0,i=Array.isArray(r)?r[n]:void 0;if(!i||typeof i!=`object`||Array.isArray(i))return{state:`not-disclosed`};let a=i,o=typeof a.state==`string`&&fe.has(a.state)?a.state:`not-disclosed`,s=typeof a.quote==`string`&&a.quote.trim()?a.quote:void 0;return s?{state:o,quote:s}:{state:o}}function pe({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,claimElements:r,references:s,cells:c,footer:u,delay:d}){let f=i[t]||i.table,p=Array.isArray(r)?r:[],m=Array.isArray(s)?s.filter(e=>typeof e==`string`):[],[g,_]=(0,h.useState)(p.length&&m.length?{r:0,c:0}:null);if(p.length===0||m.length===0)return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(o,{message:`No claim elements or references to chart`})]});let v=0,y=0;for(let e=0;e<p.length;e++)for(let t=0;t<m.length;t++){let n=Z(c,e,t).state;n===`disclosed`?v++:n===`disputed`&&y++}let b=g?Z(c,g.r,g.c):null,x=b?X[b.state]:null;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`pcc-head`,children:[(0,l.jsxs)(`span`,{className:`pcc-count faint`,children:[p.length,` element`,p.length===1?``:`s`,` × `,m.length,` reference`,m.length===1?``:`s`]}),(0,l.jsxs)(`span`,{className:`pcc-tally tab-num faint`,children:[v,` disclosed`,y>0?` · ${y} disputed`:``]})]}),(0,l.jsx)(`div`,{className:`pcc-scroll`,children:(0,l.jsxs)(`table`,{className:`pcc-table`,children:[(0,l.jsxs)(`colgroup`,{children:[(0,l.jsx)(`col`,{className:`pcc-col-el`}),m.map((e,t)=>(0,l.jsx)(`col`,{className:`pcc-col-ref`},t))]}),(0,l.jsx)(`thead`,{children:(0,l.jsxs)(`tr`,{children:[(0,l.jsx)(`th`,{className:`pcc-corner`}),m.map((e,t)=>(0,l.jsx)(`th`,{className:`pcc-refh`,children:(0,l.jsx)(`span`,{children:e})},t))]})}),(0,l.jsx)(`tbody`,{children:p.map((e,t)=>{let n=typeof e?.id==`string`&&e.id.trim()?e.id:String(t+1),r=typeof e?.text==`string`?e.text:``;return(0,l.jsxs)(`tr`,{children:[(0,l.jsxs)(`th`,{className:`pcc-elh`,scope:`row`,children:[(0,l.jsx)(`span`,{className:`pcc-el-num`,children:n}),r&&(0,l.jsx)(`span`,{className:`pcc-el-text`,children:r})]}),m.map((e,n)=>{let r=Z(c,t,n),a=X[r.state],o=a.icon?i[a.icon]:null,s=g?.r===t&&g?.c===n;return(0,l.jsx)(`td`,{className:`pcc-cell ${r.state} ${s?`on`:``}`,style:{"--cc":a.c},onMouseEnter:()=>_({r:t,c:n}),children:(0,l.jsx)(`span`,{className:`pcc-mark`,children:o?(0,l.jsx)(o,{className:`pcc-mark-ic`}):(0,l.jsx)(`span`,{className:`pcc-dash`,children:`–`})})},n)})]},t)})})]})}),b&&x&&(0,l.jsxs)(`div`,{className:`pcc-tip`,style:{"--cc":x.c},children:[(0,l.jsx)(`span`,{className:`pcc-tip-tag`,style:{color:x.c},children:x.t}),b.quote?(0,l.jsx)(`span`,{className:`pcc-tip-note`,dangerouslySetInnerHTML:a(b.quote)}):(0,l.jsxs)(`span`,{className:`pcc-tip-note faint`,children:[p[g.r]?.id||String(g.r+1),` × `,m[g.c]]})]}),u&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}function me(e){let t=e.trim();return t?t.split(/\s+/).length:0}function Q({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,lede:r,nutGraf:s,body:c,background:u,wordCountBudget:d,wordCount:f,footer:p,delay:m}){let g=i[t]||i.doc,_=Array.isArray(c)?c.filter(e=>typeof e==`string`&&e):[],v=Array.isArray(u)?u.filter(e=>typeof e==`string`&&e):[],[y,b]=(0,h.useState)(!1);if(!r&&!s&&_.length===0)return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(m||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(o,{message:`No draft to show yet`})]});let x=typeof f==`number`&&Number.isFinite(f)?f:me([r,s,..._].filter(Boolean).join(` `)),S=typeof d==`number`&&Number.isFinite(d)&&x>d;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(m||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),x>0&&(0,l.jsxs)(`div`,{className:`ss-wordcount tab-num faint`,children:[x.toLocaleString(),typeof d==`number`&&Number.isFinite(d)?` / ${d.toLocaleString()} words`:` words`,S&&(0,l.jsx)(`span`,{className:`ss-wordcount-over`,children:` · over budget`})]}),(r||s)&&(0,l.jsxs)(`div`,{className:`ss-lede-block`,children:[r&&(0,l.jsx)(`p`,{className:`ss-lede`,children:r}),s&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`div`,{className:`ss-nutgraf-label`,children:`Nut graf`}),(0,l.jsx)(`p`,{className:`ss-nutgraf`,children:s})]})]}),_.length>0&&(0,l.jsx)(`div`,{className:`ss-body`,children:_.map((e,t)=>(0,l.jsx)(`p`,{className:`ss-para m-stagger-item m-fade-rise`,style:{"--i":t},children:e},t))}),v.length>0&&(0,l.jsxs)(`div`,{className:`ss-bg`,children:[(0,l.jsxs)(`button`,{className:`ss-bg-toggle`,onClick:()=>b(e=>!e),"aria-expanded":y,children:[(0,l.jsx)(i.chevR,{className:`ss-bg-toggle-ic${y?` open`:``}`}),y?`Hide background`:`Background (${v.length})`]}),y&&(0,l.jsx)(`div`,{className:`ss-bg-body`,children:v.map((e,t)=>(0,l.jsx)(`p`,{className:`ss-bg-para`,children:e},t))})]}),p&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(p)})]})}function he(e){return typeof e==`number`?Number.isFinite(e)?e.toLocaleString():`—`:typeof e==`string`&&e.trim()?e:`—`}function ge({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,species:r,name:s,breed:c,sex:u,ageYears:d,weightKg:f,vitals:p,problems:m,footer:h,delay:g}){let _=i[t]||i.doc,v=Array.isArray(p)?p:[],y=Array.isArray(m)?m.filter(e=>typeof e==`string`&&e):[];if(!s&&!r)return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(_,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(o,{message:`No patient on file`})]});let b=[r,c,u,Number.isFinite(d)?`${d}y`:void 0,Number.isFinite(f)?`${f} kg`:void 0].filter(e=>!!e);return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(_,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`vpc-signalment`,children:[s&&(0,l.jsx)(`div`,{className:`vpc-name`,children:s}),b.length>0&&(0,l.jsx)(`div`,{className:`vpc-chips`,children:b.map((e,t)=>(0,l.jsx)(`span`,{className:`vpc-chip`,children:e},t))})]}),v.length>0&&(0,l.jsx)(`div`,{className:`vpc-vitals`,children:v.map((e,t)=>(0,l.jsx)(_e,{v:e,i:t},t))}),y.length>0&&(0,l.jsxs)(`div`,{className:`vpc-problems`,children:[(0,l.jsx)(`div`,{className:`vpc-problems-label`,children:`Active problems`}),(0,l.jsx)(`div`,{className:`vpc-problem-list`,children:y.map((e,t)=>(0,l.jsx)(`span`,{className:`vpc-problem-chip m-stagger-item m-fade-rise`,style:{"--i":t},children:e},t))})]}),h&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(h)})]})}function _e({v:e,i:t}){let n=typeof e?.label==`string`&&e.label.trim()?e.label:`Reading`,r=he(e?.value),a=typeof e?.unit==`string`&&e.unit.trim()?e.unit:``,o=!!e?.abnormal;return(0,l.jsxs)(`div`,{className:`vpc-vital m-stagger-item m-fade-rise${o?` abnormal`:``}`,style:{"--i":t},children:[(0,l.jsx)(`span`,{className:`vpc-vital-label`,children:n}),(0,l.jsxs)(`span`,{className:`vpc-vital-value tab-num`,children:[r,a&&(0,l.jsx)(`span`,{className:`vpc-vital-unit`,children:a})]}),o&&(0,l.jsx)(i.alert,{className:`vpc-vital-flag`})]})}function ve({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,opponent:r,tendencies:s,matchupNotes:c,keyPlayers:u,footer:d,delay:f}){let p=i[t]||i.chart,m=Array.isArray(s)?s.filter(e=>typeof e==`string`&&e):[],h=Array.isArray(c)?c:[],g=Array.isArray(u)?u:[];return!r&&m.length===0?(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(o,{message:`No scouting notes yet`})]}):(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,l.jsxs)(`div`,{className:`scr-opponent`,children:[(0,l.jsx)(`span`,{className:`scr-opponent-label`,children:`Opponent`}),(0,l.jsx)(`span`,{className:`scr-opponent-name`,children:r})]}),m.length>0&&(0,l.jsxs)(`div`,{className:`scr-section`,children:[(0,l.jsx)(`div`,{className:`scr-section-label`,children:`Tendencies`}),(0,l.jsx)(`ul`,{className:`scr-tendencies`,children:m.map((e,t)=>(0,l.jsx)(`li`,{className:`scr-tendency m-stagger-item m-fade-rise`,style:{"--i":t},children:e},t))})]}),h.length>0&&(0,l.jsxs)(`div`,{className:`scr-section`,children:[(0,l.jsx)(`div`,{className:`scr-section-label`,children:`Matchup notes`}),(0,l.jsx)(`div`,{className:`scr-notes`,children:h.map((e,t)=>(0,l.jsx)(ye,{n:e,i:t},t))})]}),g.length>0&&(0,l.jsxs)(`div`,{className:`scr-section`,children:[(0,l.jsx)(`div`,{className:`scr-section-label`,children:`Key players`}),(0,l.jsx)(`div`,{className:`scr-players`,children:g.map((e,t)=>(0,l.jsx)(be,{p:e,i:t},t))})]}),d&&(0,l.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(d)})]})}function ye({n:e,i:t}){let n=typeof e?.label==`string`&&e.label.trim()?e.label:`Note`,r=typeof e?.note==`string`?e.note:``;return r?(0,l.jsxs)(`div`,{className:`scr-note m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,l.jsx)(`span`,{className:`scr-note-label`,children:n}),(0,l.jsx)(`span`,{className:`scr-note-text`,children:r})]}):null}function be({p:e,i:t}){let n=typeof e?.name==`string`&&e.name.trim()?e.name:`Player`,r=typeof e?.role==`string`&&e.role.trim()?e.role:``,i=typeof e?.note==`string`?e.note:``;return(0,l.jsxs)(`div`,{className:`scr-player m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,l.jsxs)(`div`,{className:`scr-player-top`,children:[(0,l.jsx)(`span`,{className:`scr-player-name`,children:n}),r&&(0,l.jsx)(`span`,{className:`scr-player-role`,children:r})]}),i&&(0,l.jsx)(`span`,{className:`scr-player-note`,children:i})]})}var xe=e({docsRegistry:()=>$}),$={hypothesiscard:s(d),docview:s(p),pdfreader:s(_),annotateddoc:s(y),redline:s(b),citationchain:s(ee),factcheck:s(te),confidencemeter:s(E),highlightsnippet:(e,t)=>(0,l.jsx)(D,{...e,delay:t.delay}),annotcallouts:s(O),sourcelist:s(ne),claimgrid:s(re),docoutline:s(ie),diffviewer:s(j),paralleltext:s(M),clinicaltimeline:s(F),researchsummary:s(I),eligibilitycheck:s(z),evidencetrace:s(V),reviewsynth:s(U),resume:s(G),changelog:s(ce),lessonplan:s(le),casebrief:s(de),patentclaimchart:s(pe),storystructure:s(Q),vetpatientchart:s(ge),scoutingreport:s(ve)};export{xe as n,$ as t};
@@ -1,2 +1,2 @@
1
- import{r as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{t as n}from"./compiler-runtime-qQQXpJgv.js";import{t as r}from"./jsx-runtime-DeHZSEgm.js";import{l as i,u as a}from"./index-CKRjGbeR.js";import{n as o}from"./icons-gLFQTv74.js";import{t as s}from"./richText-BkxJhl9N.js";import{r as c}from"./format-q0LwBjID.js";import{a as l,n as u}from"./scale-Bcgfo6Hp.js";import"./lib-Dkb5WBRc.js";import{n as d}from"./motion-DxHSlPN6.js";import{t as f}from"./registry-types-D3q_LrlV.js";import{t as p}from"./useInterval-DDgFrel2.js";var m=[[/thunder|lightning|\bstorm/,`storm`],[/snow|sleet|flurr|blizzard|\bice\b|wintry/,`snow`],[/rain|drizzle|shower|precip|pour/,`rain`],[/wind|breez|gust|gale/,`wind`],[/cloud|overcast|fog|mist|haze|smoke/,`cloud`],[/sun|clear|fair|\bhot\b|warm/,`sun`]],h=[[/walk|\bfoot\b|pedestrian|stroll/,`walk`],[/subway|metro|underground|\btube\b/,`subway`],[/train|\brail|tram|streetcar/,`train`],[/bus|coach|shuttle/,`bus`],[/bike|bicycl|cycl|scooter/,`bike`],[/ferry|boat|ship|water taxi/,`ferry`],[/car|driv|taxi|\bcab\b|rideshare|uber|lyft/,`car`]];function g(e,t,n){if(e&&e in o)return o[e];let r=(e??``).toLowerCase();for(let[e,n]of t)if(e.test(r))return o[n];return o[n]}var _=e=>g(e,m,`sun`),v=e=>g(e,h,`walk`),y=r(),b={width:`100%`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`};function x({title:e,icon:t=`sun`,iconColor:n=`var(--warning)`,location:r,unit:i,asOf:a,days:c,summary:l,footer:u,delay:d}){let f=o[t]||o.sun,p=c??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(r||i)&&(0,y.jsxs)(`div`,{className:`fc-meta`,children:[r&&(0,y.jsx)(`span`,{children:r}),i&&(0,y.jsxs)(`span`,{children:[`°`,i]})]}),a&&(0,y.jsx)(`div`,{className:`fc-asof`,children:a}),(0,y.jsx)(`div`,{className:`fc-grid`,children:p.map((e,t)=>{let n=_(e.icon||e.condition);return(0,y.jsxs)(`div`,{className:`fc-day`,children:[(0,y.jsx)(`div`,{className:`fc-label`,children:e.label}),(0,y.jsx)(`div`,{className:`fc-icon`,children:(0,y.jsx)(n,{className:`ic`})}),(0,y.jsx)(`div`,{className:`fc-condition`,style:b,title:e.condition,children:e.condition}),(e.hi!==void 0||e.lo!==void 0)&&(0,y.jsxs)(`div`,{className:`fc-temps`,children:[e.hi!==void 0&&(0,y.jsx)(`span`,{className:`fc-hi`,children:e.hi}),e.lo!==void 0&&(0,y.jsx)(`span`,{className:`fc-lo`,children:e.lo})]}),e.precipitation&&(0,y.jsx)(`div`,{className:`fc-precip`,children:e.precipitation})]},t)})}),l&&(0,y.jsx)(`div`,{className:`fc-summary`,children:l}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}var S=e=>Number.isFinite(e)?Math.round(e):null;function C({title:e,icon:t=`sun`,iconColor:n=`var(--warning)`,location:r,tempF:i,feelsLikeF:a,condition:c,hi:l,lo:u,asOf:d,hourly:f,tiles:p,footer:m,delay:h}){let g=o[t]||o.sun,v=_(c),b=f??[],x=p??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(h||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`wn-location`,children:r}),(0,y.jsxs)(`div`,{className:`wn-hero`,children:[(0,y.jsx)(`div`,{className:`wn-hero-icon`,children:(0,y.jsx)(v,{className:`ic`})}),(0,y.jsxs)(`div`,{className:`wn-hero-main`,children:[(0,y.jsxs)(`span`,{className:`wn-hero-temp tab-num`,"data-mark":`underline`,children:[S(i)??`—`,`°`]}),(0,y.jsxs)(`div`,{className:`wn-hero-meta`,children:[(0,y.jsx)(`span`,{className:`wn-condition`,children:c}),S(a)!==null&&(0,y.jsxs)(`span`,{className:`wn-feels`,children:[`Feels like `,S(a),`°`]}),(S(l)!==null||S(u)!==null)&&(0,y.jsxs)(`span`,{className:`wn-hilo`,children:[S(l)!==null&&(0,y.jsxs)(`span`,{className:`wn-hi`,children:[`H `,S(l),`°`]}),S(u)!==null&&(0,y.jsxs)(`span`,{className:`wn-lo`,children:[`L `,S(u),`°`]})]})]})]})]}),d&&(0,y.jsxs)(`div`,{className:`wn-asof`,children:[`As of `,d]}),b.length>0&&(0,y.jsx)(`div`,{className:`wn-hourly-scroll`,children:(0,y.jsx)(`div`,{className:`wn-hourly`,children:b.map((e,t)=>{let n=_(e.icon||void 0);return(0,y.jsxs)(`div`,{className:`wn-hour m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,y.jsx)(`span`,{className:`wn-hour-time`,children:e.time}),(0,y.jsx)(n,{className:`ic wn-hour-icon`}),(0,y.jsxs)(`span`,{className:`wn-hour-temp tab-num`,children:[S(e.tempF)??`—`,`°`]}),S(e.precipPct)!==null&&S(e.precipPct)>0&&(0,y.jsxs)(`span`,{className:`wn-hour-precip`,children:[S(e.precipPct),`%`]})]},t)})})}),x.length>0&&(0,y.jsx)(`div`,{className:`wn-tiles`,children:x.map((e,t)=>{let n=e.icon?o[e.icon]:void 0;return(0,y.jsxs)(`div`,{className:`wn-tile m-stagger-item m-fade-rise`,style:{"--i":t},children:[n&&(0,y.jsx)(n,{className:`ic wn-tile-icon`}),(0,y.jsx)(`span`,{className:`wn-tile-label`,children:e.label}),(0,y.jsx)(`span`,{className:`wn-tile-value tab-num`,children:e.value})]},t)})}),m&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(m)})]})}var w=[`var(--danger)`,`var(--warning)`,`var(--insight)`,`var(--presence)`,`var(--text-muted)`];function T({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,rows:r,caption:i,footer:a,delay:c}){let l=o[t]||o.layers,u=r??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),i&&(0,y.jsx)(`div`,{className:`tier-caption`,children:i}),(0,y.jsx)(`div`,{className:`tier-rows`,children:u.map((e,t)=>{let n=e.color??w[t%w.length],r=e.items??[];return(0,y.jsxs)(`div`,{className:`tier-row m-stagger-item m-fade-rise`,style:{"--i":t,"--tier-c":n},children:[(0,y.jsx)(`div`,{className:`tier-rail`,title:e.tier,children:e.tier}),(0,y.jsx)(`div`,{className:`tier-items`,children:r.length>0?r.map((e,t)=>(0,y.jsx)(`span`,{className:`tier-chip`,children:e},t)):(0,y.jsx)(`span`,{className:`tier-empty`,children:`—`})})]},t)})}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}var E={fontFamily:`var(--font-mono, ui-monospace, monospace)`,fontVariantNumeric:`tabular-nums`};function D({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,employer:r,payPeriod:i,payDate:a,grossPay:c,earnings:l,deductions:u,netPay:d,ytdNet:f,footer:p,delay:m}){let h=o[t]||o.doc,g=l??[],_=u??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(m||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(h,{className:`ic`,style:{color:n}}),` `,e]}),(r||i||a)&&(0,y.jsxs)(`div`,{className:`ps-header`,children:[r&&(0,y.jsx)(`div`,{className:`ps-employer`,children:r}),(0,y.jsxs)(`div`,{className:`ps-period-row`,children:[i&&(0,y.jsx)(`span`,{className:`ps-period`,children:i}),a&&(0,y.jsxs)(`span`,{className:`ps-paydate`,children:[`Paid `,a]})]})]}),(0,y.jsxs)(`div`,{className:`ps-gross-row`,children:[(0,y.jsx)(`span`,{children:`Gross pay`}),(0,y.jsx)(`span`,{style:E,children:c})]}),g.length>0&&(0,y.jsxs)(`div`,{className:`ps-section`,children:[(0,y.jsx)(`div`,{className:`ps-section-label`,children:`Earnings`}),(0,y.jsx)(`div`,{className:`ps-lines`,children:g.map((e,t)=>(0,y.jsxs)(`div`,{className:`ps-line m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,y.jsx)(`span`,{className:`ps-line-label`,children:e.label}),(0,y.jsx)(`span`,{className:`ps-line-amt`,style:E,children:e.amount})]},t))})]}),_.length>0&&(0,y.jsxs)(`div`,{className:`ps-section`,children:[(0,y.jsx)(`div`,{className:`ps-section-label`,children:`Deductions`}),(0,y.jsx)(`div`,{className:`ps-lines`,children:_.map((e,t)=>(0,y.jsxs)(`div`,{className:`ps-line ps-line--deduction m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,y.jsx)(`span`,{className:`ps-line-label`,children:e.label}),(0,y.jsxs)(`span`,{className:`ps-line-amt ps-deduction-amt`,style:E,children:[`−`,e.amount]})]},t))})]}),(0,y.jsxs)(`div`,{className:`ps-net-row`,children:[(0,y.jsx)(`span`,{children:`Net pay`}),(0,y.jsx)(`span`,{"data-mark":`underline`,style:{...E,color:`var(--presence)`},children:d})]}),f&&(0,y.jsxs)(`div`,{className:`ps-ytd-row`,children:[(0,y.jsx)(`span`,{children:`Year-to-date net`}),(0,y.jsx)(`span`,{style:E,children:f})]}),p&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(p)})]})}var O=t();function k(e,t){if(t<=1)return`var(--presence)`;let n=e/(t-1);return n<=.5?`color-mix(in oklab, var(--warning) ${Math.round(n/.5*100)}%, var(--insight))`:`color-mix(in oklab, var(--danger) ${Math.round((n-.5)/.5*100)}%, var(--warning))`}function A(e,t){return t+Math.round(Math.abs(e)).toLocaleString()}function j(e,t){let n=A(e.min,t);return e.max===void 0?`${n}+`:`${n}–${A(e.max,t)}`}function ee(e,t){for(let n=e.length-1;n>=0;n--)if(t>=e[n].min)return e[n];return e[0]}function te(e,t){let n=0;for(let r of e){if(t<=r.min)break;let e=r.max===void 0?t:Math.min(r.max,t);n+=Math.max(0,e-r.min)*(r.rate/100)}return n}function ne({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,bands:r,income:i,filingStatus:a,effectiveRate:c,marginalRate:l,currency:u=`$`,footer:d,delay:f}){let p=o[t]||o.chart,m=Number.isFinite(i)?Math.max(0,i):0,h=(0,O.useMemo)(()=>{let e=[...(r??[]).filter(e=>Number.isFinite(e?.min)&&Number.isFinite(e?.rate)).map(e=>Number.isFinite(e.max)?e:{...e,max:void 0})].sort((e,t)=>e.min-t.min);if(e.length===0)return null;let t=e.map(e=>e.max).filter(e=>Number.isFinite(e)),n=t.length?Math.max(...t):e[0].min,i=Math.max(m,n,1)*1.08,a=ee(e,m),o=te(e,m);return{sorted:e,scaleMax:i,current:a,effective:c??(m>0?o/m*100:0),marginal:l??a?.rate??e[0].rate,needlePct:Math.min(100,Math.max(0,m/i*100))}},[r,m,c,l]);return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),h?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(`div`,{className:`tb-header`,children:[a&&(0,y.jsx)(`span`,{className:`tb-filing`,children:a}),(0,y.jsxs)(`span`,{className:`tb-income`,children:[`Income `,(0,y.jsx)(`span`,{className:`tab-num`,children:A(m,u)})]})]}),(0,y.jsxs)(`div`,{className:`tb-barwrap`,children:[(0,y.jsx)(`div`,{className:`tb-bracket-bar`,role:`img`,"aria-label":`Income tax brackets up to ${A(h.scaleMax,u)}`,children:h.sorted.map((e,t)=>{let n=e.max??h.scaleMax,r=e.min/h.scaleMax*100,i=Math.max(0,(n-e.min)/h.scaleMax*100),a=e===h.current;return(0,y.jsx)(`span`,{className:`tb-seg${a?` current`:``}`,style:{left:`${r}%`,width:`${i}%`,background:k(t,h.sorted.length)},title:`${e.rate}% · ${j(e,u)}`},t)})}),(0,y.jsxs)(`div`,{className:`tb-needle`,style:{left:`${h.needlePct}%`},children:[(0,y.jsx)(`span`,{className:`tb-needle-line`}),(0,y.jsx)(`span`,{className:`tb-needle-tag`,children:`You`})]})]}),(0,y.jsx)(`div`,{className:`tb-legend`,children:h.sorted.map((e,t)=>(0,y.jsxs)(`span`,{className:`tb-leg-item m-stagger-item m-fade-rise${e===h.current?` current`:``}`,style:{"--i":t},children:[(0,y.jsx)(`span`,{className:`tb-leg-dot`,style:{background:k(t,h.sorted.length)}}),(0,y.jsx)(`span`,{className:`tb-leg-range`,children:j(e,u)}),(0,y.jsxs)(`span`,{className:`tb-leg-rate tab-num`,children:[e.rate,`%`]})]},t))}),(0,y.jsxs)(`div`,{className:`tb-rates`,children:[(0,y.jsxs)(`div`,{className:`tb-rate`,children:[(0,y.jsx)(`span`,{className:`tb-rate-label`,children:`Effective rate`}),(0,y.jsxs)(`span`,{className:`tb-rate-value tab-num`,children:[h.effective.toFixed(1),`%`]})]}),(0,y.jsxs)(`div`,{className:`tb-rate`,children:[(0,y.jsx)(`span`,{className:`tb-rate-label`,children:`Marginal rate`}),(0,y.jsxs)(`span`,{className:`tb-rate-value tab-num`,"data-mark":`underline`,children:[h.marginal,`%`]})]})]})]}):(0,y.jsx)(`div`,{className:`tb-note`,children:`No bracket data was given for this chart.`}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}function re({title:e,icon:t=`sparkle`,iconColor:n=`var(--presence)`,venue:r,subtitle:i,sections:a,footer:c,delay:l}){let u=o[t]||o.sparkle,d=a??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(r||i)&&(0,y.jsxs)(`div`,{className:`mc-header`,children:[r&&(0,y.jsx)(`div`,{className:`mc-venue`,children:r}),i&&(0,y.jsx)(`div`,{className:`mc-subtitle`,children:i})]}),(0,y.jsx)(`div`,{className:`mc-sections`,children:d.map((e,t)=>{let n=e.items??[];return(0,y.jsxs)(`div`,{className:`mc-section`,children:[(0,y.jsx)(`div`,{className:`mc-section-name`,children:e.name}),(0,y.jsx)(`div`,{className:`mc-items`,children:n.map((e,n)=>(0,y.jsxs)(`div`,{className:`mc-item m-stagger-item m-fade-rise`,style:{"--i":t*8+n},children:[(0,y.jsxs)(`div`,{className:`mc-item-row`,children:[(0,y.jsx)(`span`,{className:`mc-item-name`,children:e.name}),e.price&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`span`,{className:`mc-leader`,"aria-hidden":`true`}),(0,y.jsx)(`span`,{className:`mc-price`,children:e.price})]})]}),e.desc&&(0,y.jsx)(`div`,{className:`mc-desc`,children:e.desc}),e.tags&&e.tags.length>0&&(0,y.jsx)(`div`,{className:`mc-tags`,children:e.tags.map((e,t)=>(0,y.jsx)(`span`,{className:`mc-tag`,children:e},t))})]},n))})]},t)})}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}var M=n();function N(e){let t=(0,M.c)(6),{x1:n,y1:r,x2:i,y2:a,className:o}=e,s=(0,O.useRef)(null);d(s);let c;return t[0]!==o||t[1]!==n||t[2]!==i||t[3]!==r||t[4]!==a?(c=(0,y.jsx)(`line`,{ref:s,x1:n,y1:r,x2:i,y2:a,className:o}),t[0]=o,t[1]=n,t[2]=i,t[3]=r,t[4]=a,t[5]=c):c=t[5],c}var P=96,F=36,ie=16,ae=20,oe=108,I=128,se=108,ce=14,le=16,ue=[`I`,`II`,`III`,`IV`,`V`,`VI`,`VII`,`VIII`,`IX`,`X`];function de(e,t){return e.length>t?e.slice(0,t-1).trimEnd()+`…`:e}function fe(e,t){return e&&t?`${e}–${t}`:e?`b. ${e}`:t?`d. ${t}`:``}function pe(e,t){let n=new Map;for(let t of e)n.set(t.id,0);for(let t=0;t<e.length+1;t++){let t=!1;for(let r of e){if(!r.parents)continue;let e=r.parents.map(e=>n.get(e)).filter(e=>e!=null);if(e.length===0)continue;let i=Math.max(...e)+1;i>(n.get(r.id)??0)&&(n.set(r.id,i),t=!0)}if(!t)break}for(let r of e)if(r.partner&&t.has(r.partner)){let e=Math.max(n.get(r.id)??0,n.get(r.partner)??0);n.set(r.id,e),n.set(r.partner,e)}for(let r of e)if(r.parents?.length===2&&t.has(r.parents[0])&&t.has(r.parents[1])){let[e,t]=r.parents,i=Math.max(n.get(e)??0,n.get(t)??0);n.set(e,i),n.set(t,i)}return n}function me(e,t){let n=new Map;for(let r of e){let e=(r.parents??[]).filter(e=>t.has(e)&&e!==r.id);if(e.length===0)continue;let i=[...e].sort().join(`\0`),a=n.get(i)??{parentIds:e,childIds:[]};a.childIds.push(r.id),n.set(i,a)}return[...n.values()]}function he({title:e,icon:t=`share`,iconColor:n=`var(--presence)`,people:r=[],rootId:i,footer:a,delay:c}){let l=o[t]??o.share,u=(0,O.useMemo)(()=>{if(r.length===0)return null;let e=new Map;for(let t of r)e.set(t.id,t);let t=pe(r,e),n=me(r,e),i=new Map;for(let e of n)e.parentIds.length===2&&(i.set(e.parentIds[0],e.parentIds[1]),i.set(e.parentIds[1],e.parentIds[0]));for(let t of r)t.partner&&e.has(t.partner)&&!i.has(t.id)&&(i.set(t.id,t.partner),i.set(t.partner,t.id));let a=new Map;for(let e of n){if(e.parentIds.length!==2)continue;let[t,n]=e.parentIds,r=a.get(t)??new Set;r.add(n),a.set(t,r);let i=a.get(n)??new Set;i.add(t),a.set(n,i)}let o=r.reduce((e,n)=>Math.max(e,t.get(n.id)??0),0),s=Array.from({length:o+1},()=>[]);for(let e of r)s[t.get(e.id)??0].push(e);let c=new Map;s.forEach(n=>{let r=0,a=new Set;for(let o of n){if(a.has(o.id))continue;c.set(o.id,r),a.add(o.id),r+=1;let n=i.get(o.id);n&&e.has(n)&&(t.get(n)??0)===(t.get(o.id)??0)&&!a.has(n)&&(c.set(n,r),a.add(n),r+=1)}});for(let e=o;e>=1;e--){for(let r of n){if(r.childIds.reduce((e,n)=>Math.max(e,t.get(n)??0),-1)!==e)continue;let n=r.childIds.map(e=>c.get(e)??0),i=(Math.min(...n)+Math.max(...n))/2;if(r.parentIds.length===2){let e=se/I/2;c.set(r.parentIds[0],i-e),c.set(r.parentIds[1],i+e)}else c.set(r.parentIds[0],i)}let r=s[e-1].slice().sort((e,t)=>(c.get(e.id)??0)-(c.get(t.id)??0));for(let e=1;e<r.length;e++){let t=c.get(r[e-1].id)??0,n=c.get(r[e].id)??0,a=i.get(r[e-1].id)===r[e].id?se/I:1;n-t<a&&c.set(r[e].id,t+a)}}let l=r.map(e=>c.get(e.id)??0),u=Math.min(...l,0),d=Math.max(...l,0),f=e=>82+(e-u)*I,p=e=>36+e*oe,m=r.map(e=>{let n=t.get(e.id)??0;return{...e,gen:n,cx:f(c.get(e.id)??0),cy:p(n)}}),h=new Map;for(let e of m)h.set(e.id,e);return{placed:m,placedById:h,groups:n,matedInGroup:a,partnerOf:i,rows:s,maxGen:o,W:144+(d-u)*I,H:36+o*oe+F/2+ie,rowY:p}},[r]);if(!u)return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`ft-note`,children:`No family data was given for this tree.`})]});let{placed:d,placedById:f,groups:p,matedInGroup:m,partnerOf:h,rows:g,W:_,H:v,rowY:b}=u;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`ft-wrap`,children:(0,y.jsxs)(`svg`,{viewBox:`0 0 ${_} ${v}`,className:`ft-svg`,role:`img`,"aria-label":e,children:[g.map((e,t)=>e.length?(0,y.jsx)(`text`,{x:ae/2,y:b(t)+4,className:`ft-gen`,textAnchor:`middle`,children:ue[t]??t+1},`gen${t}`):null),p.map((e,t)=>{let n=e.childIds.map(e=>f.get(e)).filter(e=>!!e);if(n.length===0)return null;let r=n[0].cy,i,a;if(e.parentIds.length===2){let t=f.get(e.parentIds[0]),n=f.get(e.parentIds[1]);if(!t||!n)return null;i=(t.cx+n.cx)/2,a=t.cy}else{let t=f.get(e.parentIds[0]);if(!t)return null;i=t.cx,a=t.cy}let o=(a+r)/2,s=n.map(e=>e.cx),c=Math.min(...s),l=Math.max(...s);return(0,y.jsxs)(`g`,{className:`ft-links`,children:[e.parentIds.length===2&&(()=>{let t=f.get(e.parentIds[0]),n=f.get(e.parentIds[1]),[r,i]=t.cx<=n.cx?[t,n]:[n,t];return(0,y.jsx)(N,{x1:r.cx+P/2,y1:r.cy,x2:i.cx-P/2,y2:i.cy,className:`ft-line`})})(),(0,y.jsx)(N,{x1:i,y1:a,x2:i,y2:o,className:`ft-line`}),n.length>1&&(0,y.jsx)(N,{x1:c,y1:o,x2:l,y2:o,className:`ft-line`}),n.map(e=>(0,y.jsx)(N,{x1:e.cx,y1:o,x2:e.cx,y2:e.cy-F/2,className:`ft-line`},e.id))]},`grp${t}`)}),d.map(e=>{let t=h.get(e.id);if(!t||e.id>t||m.get(e.id)?.has(t))return null;let n=f.get(e.id),r=f.get(t);if(!n||!r||n.cy!==r.cy)return null;let[i,a]=n.cx<r.cx?[n,r]:[r,n];return(0,y.jsx)(N,{x1:i.cx+P/2,y1:i.cy,x2:a.cx-P/2,y2:a.cy,className:`ft-line`},`mp${e.id}`)}),d.map((e,t)=>{let n=fe(e.birth,e.death),r=de(e.name,ce),a=n?`${e.name} (${n})`:e.name,o=!!i&&e.id===i;return(0,y.jsxs)(`g`,{className:`ft-card m-stagger-item m-scale-in${o?` ft-card--root`:``}${e.death?` ft-card--deceased`:``}`,style:{"--i":t},children:[(0,y.jsx)(`title`,{children:a}),(0,y.jsx)(`rect`,{x:e.cx-P/2,y:e.cy-F/2,width:P,height:F,rx:8,className:`ft-card-rect`}),(0,y.jsx)(`text`,{x:e.cx,y:e.cy+(n?-4:3),textAnchor:`middle`,className:`ft-card-name`,children:r}),n&&(0,y.jsx)(`text`,{x:e.cx,y:e.cy+11,textAnchor:`middle`,className:`ft-card-dates`,children:de(n,le)})]},e.id)})]})}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:s(a)})]})}var L=20,R=30,z=15;function B(e){return Number.isFinite(e.seats)?Math.max(0,e.seats):0}function ge(e){let t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?`?`:((t[0]?.[0]||``)+(t[1]?.[0]||t[0]?.[1]||``)).toUpperCase()}function _e(e,t){return e.length>t?e.slice(0,t-1).trimEnd()+`…`:e}function V(e){return Math.min(52,24+e*2.2)}function H(e){return{w:Math.min(150,56+e*5),h:46}}function U(e){return Math.max(5,9-Math.max(0,e-12)*.15)}function W(e){if(e.shape===`rect`){let{w:t,h:n}=H(B(e));return Math.max(t,n)/2+z+U(B(e))}return V(B(e))+z+U(B(e))}function ve(e,t,n,r,i){let a=n/2,o=r/2,s=2*(n+r),c=(i%s+s)%s;return c<=n?{x:e-a+c,y:t-o-z}:(c-=n,c<=r?{x:e+a+z,y:t-o+c}:(c-=r,c<=n?{x:e+a-c,y:t+o+z}:(c-=n,{x:e-a-z,y:t+o-c})))}function ye(e,t,n,r){let i=Math.max(1,B(e));if(e.shape===`rect`){let{w:a,h:o}=H(B(e)),s=2*(a+o);return ve(t,n,a,o,r/i*s)}let a=V(B(e))+z,o=r/i*Math.PI*2-Math.PI/2;return{x:t+a*Math.cos(o),y:n+a*Math.sin(o)}}function be({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,venue:r,tables:i=[],assignments:a=[],footer:c,delay:l}){let u=o[t]||o.table,d=(0,O.useMemo)(()=>{if(i.length===0)return null;let e=new Map;for(let t of a)e.set(`${t.tableId}:${t.seatIndex}`,t.guest);let t=i.every(e=>e.x!==void 0&&e.y!==void 0),n=new Map;if(t){let e=i.map(e=>e.x),t=i.map(e=>e.y),r=Math.min(...e),a=Math.max(...e),o=Math.min(...t),s=Math.max(...t),c=a-r||1,l=s-o||1,u=Math.max(...i.map(W))*2+R,d=Math.max(1,Math.ceil(Math.sqrt(i.length))),f=d*u,p=Math.ceil(i.length/d)*u,m=Math.max(...i.map(W));i.forEach(e=>{n.set(e.id,{x:L+m+(e.x-r)/c*f,y:L+m+(e.y-o)/l*p})})}else{let e=Math.max(1,Math.ceil(Math.sqrt(i.length))),t=Math.max(...i.map(W)),r=t*2+R;i.forEach((i,a)=>{let o=a%e,s=Math.floor(a/e);n.set(i.id,{x:L+t+o*r,y:L+t+s*r})})}let r=Math.max(...i.map(W)),o=Math.max(1,Math.ceil(Math.sqrt(i.length))),s=Math.ceil(i.length/o),c=r*2+R;return{pos:n,guestAt:e,W:40+r*2+(o-1)*c,H:40+r*2+(s-1)*c,totalSeats:i.reduce((e,t)=>e+Math.max(0,B(t)),0),assignedSeats:a.length}},[i,a]);if(!d)return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`sc-note`,children:`No seating data was given.`})]});let{pos:f,guestAt:p,W:m,H:h,totalSeats:g,assignedSeats:_}=d;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`sc-summary`,children:[r&&(0,y.jsx)(`span`,{className:`sc-venue`,children:r}),(0,y.jsxs)(`span`,{className:`sc-count tab-num`,children:[_,` of `,g,` seated`]})]}),(0,y.jsx)(`div`,{className:`sc-wrap`,children:(0,y.jsx)(`svg`,{viewBox:`0 0 ${m} ${h}`,className:`sc-svg`,role:`img`,"aria-label":e,children:i.map((e,t)=>{let n=f.get(e.id);if(!n)return null;let r=e.shape===`rect`,i=V(B(e)),{w:a,h:o}=H(B(e)),s=U(B(e)),c=_e(e.label,r?14:9);return(0,y.jsxs)(`g`,{className:`sc-table m-stagger-item m-scale-in`,style:{"--i":t},children:[(0,y.jsx)(`title`,{children:e.label}),r?(0,y.jsx)(`rect`,{x:n.x-a/2,y:n.y-o/2,width:a,height:o,rx:6,className:`sc-table-shape`}):(0,y.jsx)(`circle`,{cx:n.x,cy:n.y,r:i,className:`sc-table-shape`}),(0,y.jsx)(`text`,{x:n.x,y:n.y+3,textAnchor:`middle`,className:`sc-table-label`,children:c}),Array.from({length:Math.max(0,B(e))},(t,r)=>{let i=ye(e,n.x,n.y,r),a=p.get(`${e.id}:${r}`);return(0,y.jsxs)(`g`,{children:[a&&(0,y.jsx)(`title`,{children:a}),(0,y.jsx)(`circle`,{cx:i.x,cy:i.y,r:s,className:a?`sc-seat sc-seat--filled`:`sc-seat sc-seat--empty`}),a&&s>=6.5&&(0,y.jsx)(`text`,{x:i.x,y:i.y+s*.34,textAnchor:`middle`,className:`sc-seat-initials`,style:{fontSize:s*.9},children:ge(a)})]},r)})]},e.id)})})}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:s(c)})]})}var xe=520,Se=320,Ce=260,we=160,Te=16,G={family:{color:`var(--presence)`},ally:{color:`var(--insight)`,dash:`5 3`},rival:{color:`var(--danger)`,dash:`1.5 3`},romance:{color:`var(--presence-soft)`},colleague:{color:`var(--warning)`},other:{color:`var(--text-muted)`,dash:`2 3`}},K={family:`Family`,ally:`Ally`,rival:`Rival`,romance:`Romance`,colleague:`Colleague`,other:`Other`},Ee=`M0 3.4 C0 1.1 -2.3 -0.5 -4 0.3 C-5.7 1.1 -5.7 3.4 -4 5.1 L0 9.1 L4 5.1 C5.7 3.4 5.7 1.1 4 0.3 C2.3 -0.5 0 1.1 0 3.4 Z`;function De(e,t){return e.length>t?e.slice(0,t-1).trimEnd()+`…`:e}function q(e){return typeof e==`string`?e.trim().toLocaleLowerCase():``}function Oe(e){return typeof e==`string`&&e in G?e:`other`}function ke(e,t){let n=new Map;return{people:e.map((e,t)=>{let r=typeof e?.id==`string`?e.id.trim():``,i=typeof e?.name==`string`?e.name.trim():``,a=i||`Person ${t+1}`,o=`${r||q(a).replace(/[^a-z0-9]+/g,`-`)||`person`}:${t}`;for(let e of[r,i]){let t=q(e);t&&!n.has(t)&&n.set(t,o)}return{...e,id:r,name:a,renderId:o}}),ties:t.flatMap(e=>{let t=n.get(q(e?.source)),r=n.get(q(e?.target));return!t||!r||t===r?[]:[{...e,source:t,target:r,kind:Oe(e?.kind)}]})}}function Ae({title:e,icon:t=`share`,iconColor:n=`var(--presence)`,people:r=[],ties:i=[],layout:a=`circle`,footer:c,delay:l}){let u=o[t]||o.share,[d,f]=(0,O.useState)(null),p=(0,O.useMemo)(()=>{let e=ke(r,i),t=new Map;if(a===`grid`){let n=Math.ceil(Math.sqrt(e.people.length)),r=440/Math.max(1,n-1||1),i=Math.ceil(e.people.length/n),a=240/Math.max(1,i-1||1);e.people.forEach((e,i)=>{let o=i%n,s=Math.floor(i/n);t.set(e.renderId,{x:40+o*r,y:40+s*a})})}else e.people.forEach((n,r)=>{let i=r/Math.max(1,e.people.length)*Math.PI*2-Math.PI/2;t.set(n.renderId,{x:Ce+120*Math.cos(i),y:we+120*Math.sin(i)})});let n=new Map;return e.people.forEach(e=>n.set(e.renderId,new Set)),e.ties.forEach(e=>{n.get(e.source)?.add(e.target),n.get(e.target)?.add(e.source)}),{...e,pos:t,adj:n}},[r,i,a]),m=d?p.adj.get(d):null,h=e=>!d||e.source===d||e.target===d,g=e=>!d||e===d||!!m?.has(e),_=(0,O.useMemo)(()=>p.people.length?p.people.reduce((e,t)=>(p.adj.get(t.renderId)?.size??0)>(p.adj.get(e.renderId)?.size??0)?t:e,p.people[0]).renderId:null,[p.people,p.adj]),v=(0,O.useMemo)(()=>[...new Set(p.ties.map(e=>e.kind))],[p.ties]);return r.length===0?(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`rm-note`,children:`No relationship data was given.`})]}):(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`svg`,{role:`img`,"aria-label":e,viewBox:`0 0 ${xe} ${Se}`,width:`100%`,className:`rm-svg`,children:[p.ties.map((e,t)=>{let n=p.pos.get(e.source),r=p.pos.get(e.target);if(!n||!r)return null;let i=G[e.kind]??G.other,a=h(e),o=(n.x+r.x)/2,s=(n.y+r.y)/2;return(0,y.jsxs)(`g`,{children:[(0,y.jsx)(`line`,{className:`rm-edge m-stagger-item m-scale-in`,x1:n.x,y1:n.y,x2:r.x,y2:r.y,stroke:i.color,strokeDasharray:i.dash,opacity:a?.9:.2,style:{"--i":t},children:(0,y.jsx)(`title`,{children:e.label?`${K[e.kind]} · ${e.label}`:K[e.kind]})}),e.kind===`romance`&&(0,y.jsx)(`path`,{d:Ee,fill:i.color,opacity:a?1:.3,transform:`translate(${o} ${s})`})]},t)}),p.people.map((e,t)=>{let n=p.pos.get(e.renderId);if(!n)return null;let r=g(e.renderId),i=d===e.renderId,a=De(e.name,12);return(0,y.jsxs)(`g`,{className:`rm-node m-stagger-item m-scale-in`,style:{"--i":t},onMouseEnter:()=>f(e.renderId),onMouseLeave:()=>f(null),children:[(0,y.jsx)(`title`,{children:e.role?`${e.name} · ${e.role}`:e.name}),i&&(0,y.jsx)(`circle`,{cx:n.x,cy:n.y,r:22,className:`rm-node-halo`}),(0,y.jsx)(`circle`,{cx:n.x,cy:n.y,r:Te,className:`rm-node-dot`,opacity:r?1:.32,"data-mark":e.renderId===_?`circle`:void 0}),(0,y.jsx)(`text`,{x:n.x,y:n.y+Te+13,textAnchor:`middle`,className:`rm-node-label`,opacity:r?1:.32,children:a})]},e.renderId)})]}),v.length>0&&(0,y.jsx)(`ul`,{className:`rm-legend`,"aria-label":`Relationship key`,children:v.map(e=>(0,y.jsxs)(`li`,{className:`rm-leg-item`,children:[e===`romance`?(0,y.jsx)(`svg`,{viewBox:`-6 -1 12 11`,className:`rm-leg-heart`,"aria-hidden":`true`,children:(0,y.jsx)(`path`,{d:Ee,transform:`translate(0 0)`,fill:G[e].color})}):(0,y.jsx)(`svg`,{viewBox:`0 0 20 8`,className:`rm-leg-swatch`,"aria-hidden":`true`,children:(0,y.jsx)(`line`,{x1:1,y1:4,x2:19,y2:4,stroke:G[e].color,strokeDasharray:G[e].dash,strokeWidth:2,strokeLinecap:`round`})}),K[e]]},e))}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:s(c)})]})}function je({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,meetingDate:r,attendees:i,discussionPoints:a,decisions:c,actionItems:l,footer:u,delay:d}){let f=o[t]||o.doc,p=i??[],m=a??[],h=c??[],g=l??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`mn-date`,children:r}),p.length>0&&(0,y.jsx)(`div`,{className:`mn-attendees`,children:p.map((e,t)=>(0,y.jsx)(`span`,{className:`mn-attendee`,children:e},t))}),m.length>0&&(0,y.jsxs)(`div`,{className:`mn-section`,children:[(0,y.jsx)(`div`,{className:`mn-section-label`,children:`Discussion`}),(0,y.jsx)(`ul`,{className:`mn-bullets`,children:m.map((e,t)=>(0,y.jsx)(`li`,{className:`mn-bullet`,children:e},t))})]}),h.length>0&&(0,y.jsxs)(`div`,{className:`mn-section`,children:[(0,y.jsx)(`div`,{className:`mn-section-label`,children:`Decisions`}),(0,y.jsx)(`ul`,{className:`mn-bullets mn-bullets--decided`,children:h.map((e,t)=>(0,y.jsx)(`li`,{className:`mn-bullet mn-bullet--decided`,children:e},t))})]}),g.length>0&&(0,y.jsxs)(`div`,{className:`mn-section`,children:[(0,y.jsx)(`div`,{className:`mn-section-label`,children:`Action items`}),(0,y.jsx)(`ul`,{className:`mn-actions`,children:g.map((e,t)=>(0,y.jsxs)(`li`,{className:`mn-action m-stagger-item m-fade-rise${e.done?` done`:``}`,style:{"--i":t},children:[(0,y.jsx)(`span`,{className:`mn-action-check`,"aria-hidden":`true`,children:e.done?(0,y.jsx)(o.check,{className:`ic`}):null}),(0,y.jsx)(`span`,{className:`mn-action-task`,children:e.task}),(e.owner||e.dueDate)&&(0,y.jsxs)(`span`,{className:`mn-action-badges`,children:[e.owner&&(0,y.jsx)(`span`,{className:`mn-badge mn-badge--owner`,children:e.owner}),e.dueDate&&(0,y.jsx)(`span`,{className:`mn-badge mn-badge--due`,children:e.dueDate})]})]},t))})]}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}var Me=`M0 -5 L1.23 -1.7 L4.76 -1.55 L2 0.65 L2.94 4.05 L0 2.1 L-2.94 4.05 L-2 0.65 L-4.76 -1.55 L-1.23 -1.7 Z`;function Ne(e){let t=(0,M.c)(3),{className:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,y.jsx)(`path`,{d:Me}),t[0]=r):r=t[0];let i;return t[1]===n?i=t[2]:(i=(0,y.jsx)(`svg`,{viewBox:`-5 -5 10 10`,className:n,"aria-hidden":`true`,children:r}),t[1]=n,t[2]=i),i}function Pe({title:e,icon:t=`sparkle`,iconColor:n=`var(--warning)`,behavior:r,people:i,days:a,marks:c,rewardAt:l,footer:u,delay:d}){let f=o[t]||o.sparkle,p=a??[],m=c??[],h=!!i&&i.length>0,g=h?i:[``],_=new Set(m.filter(e=>e.earned).map(e=>`${e.person??``}:${e.day}`)),v=m.filter(e=>e.earned).length,b=l!==void 0&&l>0,x=b?Math.min(100,v/l*100):0;return p.length===0?(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`sk-note`,children:`No days were given for this chart.`})]}):(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`sk-behavior`,children:r}),(0,y.jsx)(`div`,{className:`sk-scroll`,children:(0,y.jsxs)(`div`,{className:`sk-grid${h?` sk-grid--labeled`:``}`,style:{"--sk-cols":p.length},children:[h&&(0,y.jsx)(`span`,{className:`sk-corner`,"aria-hidden":`true`}),p.map((e,t)=>(0,y.jsx)(`span`,{className:`sk-day`,children:e},t)),g.map((t,n)=>(0,y.jsxs)(`div`,{className:`sk-row`,style:{display:`contents`},children:[h&&(0,y.jsx)(`span`,{className:`sk-person`,children:t}),p.map((r,i)=>{let a=_.has(`${t}:${r}`);return(0,y.jsx)(`span`,{className:`sk-cell m-stagger-item m-scale-in${a?` earned`:``}`,style:{"--i":n*p.length+i},title:`${t||e} · ${r}${a?` · earned`:``}`,children:a?(0,y.jsx)(Ne,{className:`sk-star`}):(0,y.jsx)(`span`,{className:`sk-empty`})},i)})]},n))]})}),b&&(0,y.jsxs)(`div`,{className:`sk-reward`,children:[(0,y.jsxs)(`div`,{className:`sk-reward-row`,children:[(0,y.jsx)(`span`,{children:`Toward the reward`}),(0,y.jsxs)(`span`,{className:`tab-num`,children:[Math.min(v,l),` of `,l]})]}),(0,y.jsx)(`div`,{className:`sk-reward-bar`,role:`progressbar`,"aria-valuenow":Math.round(x),children:(0,y.jsx)(`span`,{className:`sk-reward-fill`,style:{width:`${x}%`}})})]}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}function Fe({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,date:r,items:i,footer:a,delay:c}){let l=o[t]||o.clock,u=i??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`ag-date`,children:r}),(0,y.jsx)(`div`,{className:`ag-items`,children:u.map((e,t)=>(0,y.jsxs)(`div`,{className:`ag-item${e.done?` done`:``}`,...t===0?{"data-mark":`circle`}:{},children:[(0,y.jsx)(`div`,{className:`ag-time`,children:e.time??``}),(0,y.jsxs)(`div`,{className:`ag-body`,children:[(0,y.jsx)(`div`,{className:`ag-title`,children:e.title}),e.location&&(0,y.jsx)(`div`,{className:`ag-location`,children:e.location}),e.note&&(0,y.jsx)(`div`,{className:`ag-note`,children:e.note})]}),e.duration&&(0,y.jsx)(`div`,{className:`ag-dur`,children:e.duration})]},t))}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}function Ie({title:e,icon:t=`spark`,iconColor:n=`var(--warning)`,category:r,items:i,footer:a,delay:c}){let l=o[t]||o.spark,u=i??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`fc-meta`,children:(0,y.jsx)(`span`,{children:r})}),(0,y.jsx)(`div`,{className:`pk-items`,children:u.map((e,t)=>(0,y.jsxs)(`div`,{className:`pk-item`,...t===0?{"data-mark":`circle`}:{},children:[(0,y.jsxs)(`div`,{className:`pk-rank`,children:[`#`,t+1]}),(0,y.jsxs)(`div`,{className:`pk-body`,children:[(0,y.jsx)(`div`,{className:`pk-name`,children:e.name}),e.tagline&&(0,y.jsx)(`div`,{className:`pk-tagline`,children:e.tagline}),e.why&&(0,y.jsx)(`div`,{className:`pk-why`,children:e.why}),(e.price||e.rating||e.badge)&&(0,y.jsxs)(`div`,{className:`pk-meta`,children:[e.price&&(0,y.jsx)(`span`,{className:`pk-price`,children:e.price}),e.rating&&(0,y.jsx)(`span`,{className:`pk-rating`,children:e.rating}),e.badge&&(0,y.jsx)(`span`,{className:`pk-badge`,children:e.badge})]})]})]},t))}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}function Le({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,principal:r,rate:i,term:a,monthlyPayment:c,rows:l,footer:u,delay:d}){let f=o[t]||o.table,p=l??[],m=p.length-1,h=[{label:`Principal`,value:r},{label:`Rate`,value:i},{label:`Term`,value:a},{label:`Monthly payment`,value:c,highlight:!0}];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`am-summary`,children:h.map(e=>(0,y.jsxs)(`div`,{className:`am-field${e.highlight?` highlight`:``}`,children:[(0,y.jsx)(`span`,{className:`am-field-label`,children:e.label}),(0,y.jsx)(`span`,{className:`am-field-value`,...e.highlight?{"data-mark":`underline`}:{},children:e.value})]},e.label))}),(0,y.jsx)(`div`,{style:{overflowX:`auto`},children:(0,y.jsxs)(`table`,{className:`am-table`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{children:`Period`}),(0,y.jsx)(`th`,{children:`Payment`}),(0,y.jsx)(`th`,{children:`Principal`}),(0,y.jsx)(`th`,{children:`Interest`}),(0,y.jsx)(`th`,{children:`Balance`})]})}),(0,y.jsx)(`tbody`,{children:p.map((e,t)=>{let n=t===0||t===m;return(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`td`,{style:{fontWeight:n?500:void 0},children:e.period}),(0,y.jsx)(`td`,{style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`,fontWeight:n?500:void 0},children:e.payment}),(0,y.jsx)(`td`,{style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`,fontWeight:n?500:void 0},children:e.principal}),(0,y.jsx)(`td`,{style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`,fontWeight:n?500:void 0},children:e.interest}),(0,y.jsx)(`td`,{style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`,fontWeight:n?500:void 0},children:e.balance})]},t)})})]})}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}function Re({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,baseTime:r,rows:i,footer:a,delay:c}){let l=o[t]||o.globe,u=i??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsxs)(`div`,{className:`tz-base`,children:[`Reference: `,r]}),(0,y.jsx)(`div`,{className:`tz-rows`,children:u.map((e,t)=>{let n=u.findIndex(e=>e.isHome),r=e.isHome||n===-1&&t===0;return(0,y.jsxs)(`div`,{className:e.isHome?`tz-row home`:`tz-row`,children:[(0,y.jsx)(`span`,{className:`tz-city`,children:e.city}),(0,y.jsx)(`span`,{className:`tz-offset`,children:e.offset}),(0,y.jsx)(`span`,{className:`tz-time`,...r?{"data-mark":`underline`}:{},children:e.localTime??e.timezone})]},t)})}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}function ze({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,origin:r,destination:i,totalTime:a,totalDistance:c,steps:l,footer:u,delay:d}){let f=o[t]||o.globe,p=l??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`tr-endpoints`,children:[(0,y.jsx)(`span`,{className:`tr-origin`,children:r}),(0,y.jsx)(`span`,{className:`tr-arrow`,children:`→`}),(0,y.jsx)(`span`,{className:`tr-dest`,children:i})]}),(a||c)&&(0,y.jsxs)(`div`,{className:`tr-total`,children:[a&&(0,y.jsx)(`span`,{children:a}),a&&c&&(0,y.jsx)(`span`,{children:`·`}),c&&(0,y.jsx)(`span`,{children:c})]}),(0,y.jsx)(`div`,{className:`tr-steps`,children:p.map((e,t)=>{let n=t===p.length-1,r=v(e.mode);return(0,y.jsxs)(`div`,{className:`tr-step${n?` tr-step--arrival`:``}`,style:{position:`relative`,paddingLeft:28},children:[!n&&(0,y.jsx)(`span`,{"aria-hidden":`true`,style:{position:`absolute`,left:9,top:22,bottom:0,width:2,background:`var(--grid-line)`,borderRadius:1}}),(0,y.jsx)(`span`,{"aria-hidden":`true`,style:{position:`absolute`,left:2,top:10,width:16,height:16,borderRadius:`50%`,background:n?`var(--presence)`:`color-mix(in oklab, var(--presence) 18%, var(--surface))`,border:`2px solid var(--presence)`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0}}),(0,y.jsx)(`div`,{className:`tr-mode-ic`,style:{position:`absolute`,left:32},children:(0,y.jsx)(r,{className:`ic`})}),(0,y.jsxs)(`div`,{className:`tr-body`,style:{paddingLeft:20},children:[(0,y.jsx)(`div`,{className:`tr-instruction`,style:n?{fontWeight:700,color:`var(--presence)`}:void 0,...n?{"data-mark":`underline`}:{},children:e.instruction}),(e.line||e.duration||e.distance)&&(0,y.jsxs)(`div`,{className:`tr-meta`,children:[e.line&&(0,y.jsx)(`span`,{className:`tr-line-badge`,children:e.line}),e.duration&&(0,y.jsx)(`span`,{children:e.duration}),e.distance&&(0,y.jsx)(`span`,{children:e.distance})]})]})]},t)})}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}function Be({title:e,icon:t=`cart`,iconColor:n=`var(--presence)`,merchant:r,date:i,lines:a,subtotal:c,tax:l,total:u,footer:d,delay:f}){let p=o[t]||o.cart,m=a??[],h={fontFamily:`var(--font-mono, ui-monospace, monospace)`,fontVariantNumeric:`tabular-nums`};return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(r||i)&&(0,y.jsxs)(`div`,{style:{marginBottom:12},children:[r&&(0,y.jsx)(`div`,{className:`rc-merchant`,children:r}),i&&(0,y.jsx)(`div`,{className:`rc-date`,children:i})]}),(0,y.jsx)(`div`,{className:`rc-lines`,children:m.map((e,t)=>(0,y.jsxs)(`div`,{className:`rc-line`,children:[(0,y.jsx)(`span`,{className:`rc-item`,children:e.item}),e.qty!==void 0&&(0,y.jsxs)(`span`,{className:`rc-qty`,children:[`×`,e.qty]}),e.unit!==void 0&&(0,y.jsx)(`span`,{className:`rc-unit`,style:h,children:e.unit}),(0,y.jsx)(`span`,{className:`rc-total`,style:h,children:e.total})]},t))}),(0,y.jsxs)(`div`,{className:`rc-subtotals`,children:[c!==void 0&&(0,y.jsxs)(`div`,{className:`rc-subtotal-row`,children:[(0,y.jsx)(`span`,{children:`Subtotal`}),(0,y.jsx)(`span`,{style:h,children:c})]}),l!==void 0&&(0,y.jsxs)(`div`,{className:`rc-subtotal-row`,children:[(0,y.jsx)(`span`,{children:`Tax`}),(0,y.jsx)(`span`,{style:h,children:l})]}),(0,y.jsxs)(`div`,{className:`rc-grand`,children:[(0,y.jsx)(`span`,{children:`Total`}),(0,y.jsx)(`span`,{"data-mark":`underline`,style:{...h,color:`var(--presence)`},children:u})]})]}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}var Ve={flex:1,minWidth:0,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`};function He({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,people:r,expenses:i,settlements:a,footer:c,delay:l}){let u=o[t]||o.layers,d=i??[],f=a??[],p=r??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),p.length>0&&(0,y.jsx)(`div`,{className:`su-people`,children:p.map(e=>(0,y.jsx)(`span`,{className:`su-person-chip`,children:e},e))}),d.length>0&&(0,y.jsx)(`div`,{className:`su-expenses`,children:d.map((e,t)=>(0,y.jsxs)(`div`,{className:`su-exp-row`,children:[(0,y.jsx)(`span`,{className:`su-exp-desc`,children:e.description}),(0,y.jsxs)(`span`,{className:`su-exp-paid`,children:[`paid by `,e.paidBy]}),(0,y.jsx)(`span`,{className:`su-exp-amt`,style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`},children:e.amount})]},t))}),(0,y.jsx)(`div`,{className:`su-divider`,children:`Who pays who`}),(0,y.jsx)(`div`,{className:`su-settlements`,children:f.map((e,t)=>(0,y.jsxs)(`div`,{className:`su-settle`,children:[(0,y.jsx)(`span`,{className:`su-from`,style:Ve,title:e.from,children:e.from}),(0,y.jsx)(`span`,{className:`su-arrow`,"aria-hidden":!0,children:`→`}),(0,y.jsx)(`span`,{className:`su-to`,style:Ve,title:e.to,children:e.to}),(0,y.jsx)(`span`,{className:`su-amt-pill`,style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`},...t===0?{"data-mark":`underline`}:{},children:e.amount})]},t))}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}function Ue({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,metric:r,items:i,footer:a,delay:c}){let l=o[t]??o.chart,u=(0,O.useMemo)(()=>[...i??[]].sort((e,t)=>t.value-e.value),[i]),d=(0,O.useMemo)(()=>u.reduce((e,t)=>Math.max(e,t.value),0)||1,[u]);return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`bb-metric`,children:r}),(0,y.jsx)(`div`,{className:`bb-items`,children:u.map((e,t)=>{let n=e.value/d*100,r=t===0,i=r?{width:`${n}%`,background:`var(--presence)`}:{width:`${n}%`,background:`color-mix(in oklab, var(--presence) 85%, transparent)`};return(0,y.jsxs)(`div`,{className:`bb-item`,children:[(0,y.jsx)(`span`,{className:`bb-badge`,children:e.badge??`${t+1}`}),(0,y.jsx)(`span`,{className:`bb-label`,title:e.label,children:e.label}),(0,y.jsx)(`div`,{className:`bb-bar-track`,role:`presentation`,children:(0,y.jsx)(`div`,{className:`bb-bar-fill`,style:i,...r?{"data-mark":`circle`}:{}})}),(0,y.jsx)(`span`,{className:`bb-value`,style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`},children:e.bar??e.value})]},t)})}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}function We({title:e,icon:t=`sparkle`,iconColor:n=`var(--presence)`,servings:r,prepTime:i,cookTime:a,difficulty:c,ingredients:l,steps:u,tips:d,footer:f,delay:p}){let m=o[t]||o.sparkle,[h,g]=(0,O.useState)(!1),_=c===`easy`?`var(--insight)`:c===`hard`?`var(--warning)`:`var(--text-muted)`;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`rc2-meta`,children:[r&&(0,y.jsxs)(`span`,{className:`rc2-chip`,children:[`Serves `,r]}),i&&(0,y.jsxs)(`span`,{className:`rc2-chip`,children:[(0,y.jsx)(o.clock,{className:`ic`,style:{width:11,height:11}}),` Prep `,i]}),a&&(0,y.jsxs)(`span`,{className:`rc2-chip`,children:[(0,y.jsx)(o.sun,{className:`ic`,style:{width:11,height:11}}),` Cook `,a]}),c&&(0,y.jsx)(`span`,{className:`rc2-chip`,style:{color:_},children:c.charAt(0).toUpperCase()+c.slice(1)})]}),(0,y.jsxs)(`div`,{className:`rc2-body`,children:[(0,y.jsxs)(`div`,{className:`rc2-ingredients`,children:[(0,y.jsx)(`div`,{className:`rc2-section-label`,children:`Ingredients`}),(0,y.jsx)(`ul`,{className:`rc2-ing-list`,children:l.map((e,t)=>(0,y.jsxs)(`li`,{className:`rc2-ing`,children:[(e.qty||e.unit)&&(0,y.jsxs)(`span`,{className:`rc2-qty`,children:[e.qty,e.unit?`\xA0`+e.unit:``]}),(0,y.jsx)(`span`,{className:`rc2-ing-name`,children:e.name})]},t))})]}),(0,y.jsxs)(`div`,{className:`rc2-steps`,children:[(0,y.jsx)(`div`,{className:`rc2-section-label`,children:`Steps`}),(0,y.jsx)(`ol`,{className:`rc2-step-list`,children:u.map((e,t)=>(0,y.jsxs)(`li`,{className:`rc2-step`,children:[(0,y.jsx)(`span`,{className:`rc2-step-num`,children:t+1}),(0,y.jsx)(`span`,{className:`rc2-step-text`,children:e})]},t))})]})]}),d&&d.length>0&&(0,y.jsxs)(`div`,{className:`rc2-tips-section`,children:[(0,y.jsxs)(`button`,{className:`rc2-tips-toggle`,onClick:()=>g(!h),children:[(0,y.jsx)(o.sparkle,{className:`ic`,style:{width:12,height:12}}),h?`Hide tips`:`${d.length} pro tip${d.length>1?`s`:``}`]}),h&&(0,y.jsx)(`ul`,{className:`rc2-tips-list`,children:d.map((e,t)=>(0,y.jsx)(`li`,{className:`rc2-tip`,children:e},t))})]}),f&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(f)})]})}function Ge({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,goal:r,weeks:i,sessions:a,footer:c,delay:l}){let u=o[t]||o.chart,[d,f]=(0,O.useState)(0),p=a[d];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(r||i)&&(0,y.jsxs)(`div`,{className:`wp-header`,children:[r&&(0,y.jsx)(`span`,{className:`wp-goal`,children:r}),i&&(0,y.jsxs)(`span`,{className:`wp-weeks`,children:[i,`-week plan`]})]}),(0,y.jsx)(`div`,{className:`wp-tabs`,children:a.map((e,t)=>(0,y.jsx)(`button`,{className:`wp-tab${t===d?` active`:``}`,onClick:()=>f(t),children:e.day},t))}),p&&(0,y.jsxs)(`div`,{className:`wp-session`,children:[p.focus&&(0,y.jsx)(`div`,{className:`wp-focus`,children:p.focus}),(0,y.jsx)(`div`,{className:`wp-exercises`,children:(p.exercises??[]).map((e,t)=>(0,y.jsxs)(`div`,{className:`wp-exercise`,children:[(0,y.jsx)(`div`,{className:`wp-ex-name`,children:e.name}),(0,y.jsxs)(`div`,{className:`wp-ex-badges`,children:[e.sets!==void 0&&(0,y.jsxs)(`span`,{className:`wp-badge`,children:[e.sets,` sets`]}),e.reps&&(0,y.jsxs)(`span`,{className:`wp-badge`,children:[e.reps,` reps`]}),e.duration&&(0,y.jsx)(`span`,{className:`wp-badge`,children:e.duration}),e.rest&&(0,y.jsxs)(`span`,{className:`wp-badge wp-badge--rest`,children:[(0,y.jsx)(o.clock,{className:`ic`,style:{width:10,height:10}}),` `,e.rest]})]}),e.note&&(0,y.jsx)(`div`,{className:`wp-ex-note`,children:e.note})]},t))})]}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}function Ke(e){let t=parseInt(e.split(`:`)[0]??`0`,10);if(!isNaN(t))return t>=6&&t<20?`sun`:`moon`;let n=e.toLowerCase();return n.includes(`morning`)||n.includes(`noon`)||n.includes(`afternoon`)||n.includes(`pm`)?`sun`:n.includes(`night`)||n.includes(`evening`)?`moon`:`clock`}function qe({title:e,icon:t=`bell`,iconColor:n=`var(--presence)`,medications:r,startDate:i,footer:a,delay:c}){let l=o[t]||o.bell;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),i&&(0,y.jsxs)(`div`,{className:`ms-start`,children:[`Starting `,i]}),(0,y.jsx)(`div`,{className:`ms-meds`,children:r.map((e,t)=>(0,y.jsxs)(`div`,{className:`ms-med`,children:[(0,y.jsxs)(`div`,{className:`ms-med-header`,children:[(0,y.jsx)(`div`,{className:`ms-med-name`,children:e.name}),(0,y.jsx)(`div`,{className:`ms-med-dose`,children:e.dose})]}),(0,y.jsxs)(`div`,{className:`ms-times`,children:[e.times.map((e,t)=>{let n=Ke(e),r=o[n];return(0,y.jsxs)(`span`,{className:`ms-time-chip`,children:[(0,y.jsx)(r,{className:`ic`,style:{width:11,height:11}}),` `,e]},t)}),e.withFood&&(0,y.jsx)(`span`,{className:`ms-food-chip`,children:`with food`})]}),(e.frequency||e.notes)&&(0,y.jsxs)(`div`,{className:`ms-meta`,children:[e.frequency&&(0,y.jsx)(`span`,{className:`ms-freq`,children:e.frequency}),e.notes&&(0,y.jsx)(`span`,{className:`ms-note`,children:e.notes})]})]},t))}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}function Je({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,calories:r,protein:i,carbs:a,fat:c,fiber:l,items:u,footer:d,delay:f}){let p=o[t]||o.chart,m=i*4,h=a*4,g=c*9,_=m+h+g||1,v=[{label:`Protein`,value:i,color:`var(--presence)`,pct:m/_*100},{label:`Carbs`,value:a,color:`var(--insight)`,pct:h/_*100},{label:`Fat`,value:c,color:`var(--warning)`,pct:g/_*100},...l===void 0?[]:[{label:`Fiber`,value:l,color:`var(--text-muted)`,pct:0}]];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`mb-calorie`,children:[(0,y.jsx)(`span`,{className:`mb-cal-num`,children:r.toLocaleString()}),(0,y.jsx)(`span`,{className:`mb-cal-unit`,children:`kcal`})]}),(0,y.jsx)(`div`,{className:`mb-stack`,children:v.slice(0,3).map((e,t)=>(0,y.jsx)(`div`,{className:`mb-stack-seg m-stagger-item m-scale-in`,style:{width:`${e.pct}%`,background:e.color,"--i":t},title:`${e.label}: ${e.value}g`},e.label))}),(0,y.jsx)(`div`,{className:`mb-macros`,children:v.map(e=>(0,y.jsxs)(`div`,{className:`mb-macro`,children:[(0,y.jsx)(`span`,{className:`mb-macro-dot`,style:{background:e.color}}),(0,y.jsx)(`span`,{className:`mb-macro-label`,children:e.label}),(0,y.jsxs)(`span`,{className:`mb-macro-value`,children:[e.value,`g`]}),e.pct>0&&(0,y.jsxs)(`span`,{className:`mb-macro-pct`,children:[Math.round(e.pct),`%`]})]},e.label))}),u&&u.length>0&&(0,y.jsxs)(`div`,{className:`mb-items`,children:[(0,y.jsx)(`div`,{className:`mb-items-label`,children:`Per item`}),u.map((e,t)=>(0,y.jsxs)(`div`,{className:`mb-item`,children:[(0,y.jsx)(`span`,{className:`mb-item-name`,children:e.label}),(0,y.jsxs)(`span`,{className:`mb-item-stats`,children:[e.calories!==void 0&&(0,y.jsxs)(`span`,{className:`mb-item-cal`,children:[e.calories,` kcal`]}),e.protein!==void 0&&(0,y.jsxs)(`span`,{className:`mb-item-macro`,children:[`P `,e.protein,`g`]}),e.carbs!==void 0&&(0,y.jsxs)(`span`,{className:`mb-item-macro`,children:[`C `,e.carbs,`g`]}),e.fat!==void 0&&(0,y.jsxs)(`span`,{className:`mb-item-macro`,children:[`F `,e.fat,`g`]})]})]},t))]}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}var Ye=e=>e.trim().toLowerCase();function Xe({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,columns:r,rows:i,summary:a,caption:c,footer:l,delay:u}){let d=o[t]||o.clock,f=r??[],p=i??[],m=`minmax(60px, 0.55fr) repeat(${Math.max(f.length,1)}, minmax(78px, 1fr))`;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),c&&(0,y.jsx)(`div`,{className:`pg-caption`,children:c}),(0,y.jsx)(`div`,{className:`pg-scroll`,children:(0,y.jsxs)(`div`,{className:`pg-grid`,style:{gridTemplateColumns:m},children:[(0,y.jsx)(`div`,{className:`pg-corner`,"aria-hidden":`true`}),f.map((e,t)=>(0,y.jsx)(`div`,{className:`pg-colhead`,children:e},`h${t}`)),p.map((e,t)=>{let n=new Map;return(e.cells??[]).forEach(e=>{e?.col&&n.set(Ye(e.col),e)}),(0,y.jsxs)(O.Fragment,{children:[(0,y.jsx)(`div`,{className:`pg-slot`,children:e.slot}),f.map((e,r)=>{let i=n.get(Ye(e));if(!i||!i.label)return(0,y.jsx)(`div`,{className:`pg-cell pg-cell--free`,children:(0,y.jsx)(`span`,{className:`pg-cell-free`,children:`free`})},`c${t}-${r}`);let a=i.accent?{borderInlineStartColor:i.accent,borderInlineStartWidth:3}:void 0;return(0,y.jsxs)(`div`,{className:`pg-cell${i.done?` done`:``}`,style:a,children:[(0,y.jsx)(`span`,{className:`pg-cell-label`,style:i.accent?{color:i.accent}:void 0,children:i.label}),i.sub&&(0,y.jsx)(`span`,{className:`pg-cell-sub`,children:i.sub})]},`c${t}-${r}`)})]},`r${t}`)}),a&&a.length>0&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`div`,{className:`pg-slot pg-slot--sum`,children:`Total`}),f.map((e,t)=>(0,y.jsx)(`div`,{className:`pg-cell--sum`,children:a[t]??``},`s${t}`))]})]})}),l&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(l)})]})}var Ze={fixed:`var(--presence)`,flexible:`var(--warning)`,savings:`var(--insight)`};function J(e,t){let n=Math.abs(e),r=n.toLocaleString(void 0,{maximumFractionDigits:n%1==0?0:2});return(e<0?`-`:``)+t+r}function Qe({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,income:r,unit:i=`$`,incomeLabel:a=`Money in`,envelopes:c,caption:l,footer:u,delay:d}){let f=o[t]||o.chart,p=c??[],m=Number(r)||0,h=m-p.reduce((e,t)=>e+(Number(t.amount)||0),0),g=h<0,_=e=>m>0?Math.min(100,Math.max(0,e/m*100)):0;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),l&&(0,y.jsx)(`div`,{className:`ba-caption`,children:l}),(0,y.jsxs)(`div`,{className:`ba-income`,children:[(0,y.jsx)(`span`,{className:`ba-income-label`,children:a}),(0,y.jsx)(`span`,{className:`ba-income-val`,children:J(m,i)})]}),(0,y.jsx)(`div`,{className:`ba-envelopes`,children:p.map((e,t)=>{let n=e.accent??(e.group?Ze[e.group]:`var(--presence)`),r=Number(e.amount)||0;return(0,y.jsxs)(`div`,{className:`ba-env`,children:[(0,y.jsxs)(`div`,{className:`ba-env-top`,children:[(0,y.jsxs)(`span`,{className:`ba-env-label`,children:[e.label,e.group&&(0,y.jsx)(`span`,{className:`ba-env-tag`,children:e.group})]}),(0,y.jsx)(`span`,{className:`ba-env-amt`,children:J(r,i)})]}),(0,y.jsx)(`div`,{className:`ba-bar`,children:(0,y.jsx)(`span`,{className:`ba-bar-fill m-stagger-item m-scale-in`,style:{width:_(r)+`%`,background:n,"--i":t}})}),e.note&&(0,y.jsx)(`div`,{className:`ba-env-note`,children:e.note})]},t)})}),(0,y.jsxs)(`div`,{className:`ba-remaining${g?` over`:``}`,children:[(0,y.jsx)(`span`,{className:`ba-rem-label`,children:g?`Over by`:`Left to allocate`}),(0,y.jsx)(`span`,{className:`ba-rem-val`,children:J(Math.abs(h),i)})]}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}var $e={easy:`Easy`,medium:`Medium`,hard:`Hard`};function et({title:e,icon:t=`check`,iconColor:n=`var(--presence)`,time:r,difficulty:i,warning:a,tools:c,steps:l,footer:u,delay:d}){let f=o[t]||o.check,p=l??[],m=c??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(r||i)&&(0,y.jsxs)(`div`,{className:`hts-meta`,children:[r&&(0,y.jsxs)(`span`,{className:`hts-chip`,children:[(0,y.jsx)(o.clock,{className:`ic`,style:{width:11,height:11}}),` `,r]}),i&&(0,y.jsx)(`span`,{className:`hts-chip hts-diff hts-diff--${i}`,children:$e[i]??i})]}),a&&(0,y.jsxs)(`div`,{className:`hts-warning`,children:[(0,y.jsx)(o.alert,{className:`ic`}),(0,y.jsx)(`span`,{children:a})]}),m.length>0&&(0,y.jsxs)(`div`,{className:`hts-tools`,children:[(0,y.jsx)(`span`,{className:`hts-tools-label`,children:`You’ll need`}),(0,y.jsx)(`div`,{className:`hts-tools-chips`,children:m.map((e,t)=>(0,y.jsx)(`span`,{className:`hts-tool`,children:e},t))})]}),(0,y.jsx)(`ol`,{className:`hts-steps`,children:p.map((e,t)=>(0,y.jsxs)(`li`,{className:`hts-step`,children:[(0,y.jsx)(`span`,{className:`hts-num`,children:t+1}),(0,y.jsxs)(`div`,{className:`hts-body`,children:[(0,y.jsx)(`div`,{className:`hts-action`,children:e.action}),e.detail&&(0,y.jsx)(`div`,{className:`hts-detail`,children:e.detail}),e.caution&&(0,y.jsxs)(`div`,{className:`hts-caution`,children:[(0,y.jsx)(o.alert,{className:`ic`,style:{width:11,height:11}}),` `,e.caution]}),e.tip&&(0,y.jsx)(`div`,{className:`hts-tip`,children:e.tip}),e.check&&(0,y.jsxs)(`div`,{className:`hts-check`,children:[(0,y.jsx)(o.check,{className:`ic`,style:{width:11,height:11}}),` Done when:`,` `,e.check]})]})]},t))}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}var tt={"+":1,"-":1,"*":2,"/":2,"^":3};function nt(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r===` `||r===` `||r===`
1
+ import{r as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{t as n}from"./compiler-runtime-qQQXpJgv.js";import{t as r}from"./jsx-runtime-DeHZSEgm.js";import{l as i,u as a}from"./index-BMeoXWPR.js";import{n as o}from"./icons-gLFQTv74.js";import{t as s}from"./richText-BkxJhl9N.js";import{r as c}from"./format-q0LwBjID.js";import{a as l,n as u}from"./scale-Bcgfo6Hp.js";import"./lib-Dkb5WBRc.js";import{n as d}from"./motion-DxHSlPN6.js";import{t as f}from"./registry-types-D3q_LrlV.js";import{t as p}from"./useInterval-DDgFrel2.js";var m=[[/thunder|lightning|\bstorm/,`storm`],[/snow|sleet|flurr|blizzard|\bice\b|wintry/,`snow`],[/rain|drizzle|shower|precip|pour/,`rain`],[/wind|breez|gust|gale/,`wind`],[/cloud|overcast|fog|mist|haze|smoke/,`cloud`],[/sun|clear|fair|\bhot\b|warm/,`sun`]],h=[[/walk|\bfoot\b|pedestrian|stroll/,`walk`],[/subway|metro|underground|\btube\b/,`subway`],[/train|\brail|tram|streetcar/,`train`],[/bus|coach|shuttle/,`bus`],[/bike|bicycl|cycl|scooter/,`bike`],[/ferry|boat|ship|water taxi/,`ferry`],[/car|driv|taxi|\bcab\b|rideshare|uber|lyft/,`car`]];function g(e,t,n){if(e&&e in o)return o[e];let r=(e??``).toLowerCase();for(let[e,n]of t)if(e.test(r))return o[n];return o[n]}var _=e=>g(e,m,`sun`),v=e=>g(e,h,`walk`),y=r(),b={width:`100%`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`};function x({title:e,icon:t=`sun`,iconColor:n=`var(--warning)`,location:r,unit:i,asOf:a,days:c,summary:l,footer:u,delay:d}){let f=o[t]||o.sun,p=c??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(r||i)&&(0,y.jsxs)(`div`,{className:`fc-meta`,children:[r&&(0,y.jsx)(`span`,{children:r}),i&&(0,y.jsxs)(`span`,{children:[`°`,i]})]}),a&&(0,y.jsx)(`div`,{className:`fc-asof`,children:a}),(0,y.jsx)(`div`,{className:`fc-grid`,children:p.map((e,t)=>{let n=_(e.icon||e.condition);return(0,y.jsxs)(`div`,{className:`fc-day`,children:[(0,y.jsx)(`div`,{className:`fc-label`,children:e.label}),(0,y.jsx)(`div`,{className:`fc-icon`,children:(0,y.jsx)(n,{className:`ic`})}),(0,y.jsx)(`div`,{className:`fc-condition`,style:b,title:e.condition,children:e.condition}),(e.hi!==void 0||e.lo!==void 0)&&(0,y.jsxs)(`div`,{className:`fc-temps`,children:[e.hi!==void 0&&(0,y.jsx)(`span`,{className:`fc-hi`,children:e.hi}),e.lo!==void 0&&(0,y.jsx)(`span`,{className:`fc-lo`,children:e.lo})]}),e.precipitation&&(0,y.jsx)(`div`,{className:`fc-precip`,children:e.precipitation})]},t)})}),l&&(0,y.jsx)(`div`,{className:`fc-summary`,children:l}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}var S=e=>Number.isFinite(e)?Math.round(e):null;function C({title:e,icon:t=`sun`,iconColor:n=`var(--warning)`,location:r,tempF:i,feelsLikeF:a,condition:c,hi:l,lo:u,asOf:d,hourly:f,tiles:p,footer:m,delay:h}){let g=o[t]||o.sun,v=_(c),b=f??[],x=p??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(h||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`wn-location`,children:r}),(0,y.jsxs)(`div`,{className:`wn-hero`,children:[(0,y.jsx)(`div`,{className:`wn-hero-icon`,children:(0,y.jsx)(v,{className:`ic`})}),(0,y.jsxs)(`div`,{className:`wn-hero-main`,children:[(0,y.jsxs)(`span`,{className:`wn-hero-temp tab-num`,"data-mark":`underline`,children:[S(i)??`—`,`°`]}),(0,y.jsxs)(`div`,{className:`wn-hero-meta`,children:[(0,y.jsx)(`span`,{className:`wn-condition`,children:c}),S(a)!==null&&(0,y.jsxs)(`span`,{className:`wn-feels`,children:[`Feels like `,S(a),`°`]}),(S(l)!==null||S(u)!==null)&&(0,y.jsxs)(`span`,{className:`wn-hilo`,children:[S(l)!==null&&(0,y.jsxs)(`span`,{className:`wn-hi`,children:[`H `,S(l),`°`]}),S(u)!==null&&(0,y.jsxs)(`span`,{className:`wn-lo`,children:[`L `,S(u),`°`]})]})]})]})]}),d&&(0,y.jsxs)(`div`,{className:`wn-asof`,children:[`As of `,d]}),b.length>0&&(0,y.jsx)(`div`,{className:`wn-hourly-scroll`,children:(0,y.jsx)(`div`,{className:`wn-hourly`,children:b.map((e,t)=>{let n=_(e.icon||void 0);return(0,y.jsxs)(`div`,{className:`wn-hour m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,y.jsx)(`span`,{className:`wn-hour-time`,children:e.time}),(0,y.jsx)(n,{className:`ic wn-hour-icon`}),(0,y.jsxs)(`span`,{className:`wn-hour-temp tab-num`,children:[S(e.tempF)??`—`,`°`]}),S(e.precipPct)!==null&&S(e.precipPct)>0&&(0,y.jsxs)(`span`,{className:`wn-hour-precip`,children:[S(e.precipPct),`%`]})]},t)})})}),x.length>0&&(0,y.jsx)(`div`,{className:`wn-tiles`,children:x.map((e,t)=>{let n=e.icon?o[e.icon]:void 0;return(0,y.jsxs)(`div`,{className:`wn-tile m-stagger-item m-fade-rise`,style:{"--i":t},children:[n&&(0,y.jsx)(n,{className:`ic wn-tile-icon`}),(0,y.jsx)(`span`,{className:`wn-tile-label`,children:e.label}),(0,y.jsx)(`span`,{className:`wn-tile-value tab-num`,children:e.value})]},t)})}),m&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(m)})]})}var w=[`var(--danger)`,`var(--warning)`,`var(--insight)`,`var(--presence)`,`var(--text-muted)`];function T({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,rows:r,caption:i,footer:a,delay:c}){let l=o[t]||o.layers,u=r??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),i&&(0,y.jsx)(`div`,{className:`tier-caption`,children:i}),(0,y.jsx)(`div`,{className:`tier-rows`,children:u.map((e,t)=>{let n=e.color??w[t%w.length],r=e.items??[];return(0,y.jsxs)(`div`,{className:`tier-row m-stagger-item m-fade-rise`,style:{"--i":t,"--tier-c":n},children:[(0,y.jsx)(`div`,{className:`tier-rail`,title:e.tier,children:e.tier}),(0,y.jsx)(`div`,{className:`tier-items`,children:r.length>0?r.map((e,t)=>(0,y.jsx)(`span`,{className:`tier-chip`,children:e},t)):(0,y.jsx)(`span`,{className:`tier-empty`,children:`—`})})]},t)})}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}var E={fontFamily:`var(--font-mono, ui-monospace, monospace)`,fontVariantNumeric:`tabular-nums`};function D({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,employer:r,payPeriod:i,payDate:a,grossPay:c,earnings:l,deductions:u,netPay:d,ytdNet:f,footer:p,delay:m}){let h=o[t]||o.doc,g=l??[],_=u??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(m||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(h,{className:`ic`,style:{color:n}}),` `,e]}),(r||i||a)&&(0,y.jsxs)(`div`,{className:`ps-header`,children:[r&&(0,y.jsx)(`div`,{className:`ps-employer`,children:r}),(0,y.jsxs)(`div`,{className:`ps-period-row`,children:[i&&(0,y.jsx)(`span`,{className:`ps-period`,children:i}),a&&(0,y.jsxs)(`span`,{className:`ps-paydate`,children:[`Paid `,a]})]})]}),(0,y.jsxs)(`div`,{className:`ps-gross-row`,children:[(0,y.jsx)(`span`,{children:`Gross pay`}),(0,y.jsx)(`span`,{style:E,children:c})]}),g.length>0&&(0,y.jsxs)(`div`,{className:`ps-section`,children:[(0,y.jsx)(`div`,{className:`ps-section-label`,children:`Earnings`}),(0,y.jsx)(`div`,{className:`ps-lines`,children:g.map((e,t)=>(0,y.jsxs)(`div`,{className:`ps-line m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,y.jsx)(`span`,{className:`ps-line-label`,children:e.label}),(0,y.jsx)(`span`,{className:`ps-line-amt`,style:E,children:e.amount})]},t))})]}),_.length>0&&(0,y.jsxs)(`div`,{className:`ps-section`,children:[(0,y.jsx)(`div`,{className:`ps-section-label`,children:`Deductions`}),(0,y.jsx)(`div`,{className:`ps-lines`,children:_.map((e,t)=>(0,y.jsxs)(`div`,{className:`ps-line ps-line--deduction m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,y.jsx)(`span`,{className:`ps-line-label`,children:e.label}),(0,y.jsxs)(`span`,{className:`ps-line-amt ps-deduction-amt`,style:E,children:[`−`,e.amount]})]},t))})]}),(0,y.jsxs)(`div`,{className:`ps-net-row`,children:[(0,y.jsx)(`span`,{children:`Net pay`}),(0,y.jsx)(`span`,{"data-mark":`underline`,style:{...E,color:`var(--presence)`},children:d})]}),f&&(0,y.jsxs)(`div`,{className:`ps-ytd-row`,children:[(0,y.jsx)(`span`,{children:`Year-to-date net`}),(0,y.jsx)(`span`,{style:E,children:f})]}),p&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(p)})]})}var O=t();function k(e,t){if(t<=1)return`var(--presence)`;let n=e/(t-1);return n<=.5?`color-mix(in oklab, var(--warning) ${Math.round(n/.5*100)}%, var(--insight))`:`color-mix(in oklab, var(--danger) ${Math.round((n-.5)/.5*100)}%, var(--warning))`}function A(e,t){return t+Math.round(Math.abs(e)).toLocaleString()}function j(e,t){let n=A(e.min,t);return e.max===void 0?`${n}+`:`${n}–${A(e.max,t)}`}function ee(e,t){for(let n=e.length-1;n>=0;n--)if(t>=e[n].min)return e[n];return e[0]}function te(e,t){let n=0;for(let r of e){if(t<=r.min)break;let e=r.max===void 0?t:Math.min(r.max,t);n+=Math.max(0,e-r.min)*(r.rate/100)}return n}function ne({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,bands:r,income:i,filingStatus:a,effectiveRate:c,marginalRate:l,currency:u=`$`,footer:d,delay:f}){let p=o[t]||o.chart,m=Number.isFinite(i)?Math.max(0,i):0,h=(0,O.useMemo)(()=>{let e=[...(r??[]).filter(e=>Number.isFinite(e?.min)&&Number.isFinite(e?.rate)).map(e=>Number.isFinite(e.max)?e:{...e,max:void 0})].sort((e,t)=>e.min-t.min);if(e.length===0)return null;let t=e.map(e=>e.max).filter(e=>Number.isFinite(e)),n=t.length?Math.max(...t):e[0].min,i=Math.max(m,n,1)*1.08,a=ee(e,m),o=te(e,m);return{sorted:e,scaleMax:i,current:a,effective:c??(m>0?o/m*100:0),marginal:l??a?.rate??e[0].rate,needlePct:Math.min(100,Math.max(0,m/i*100))}},[r,m,c,l]);return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),h?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(`div`,{className:`tb-header`,children:[a&&(0,y.jsx)(`span`,{className:`tb-filing`,children:a}),(0,y.jsxs)(`span`,{className:`tb-income`,children:[`Income `,(0,y.jsx)(`span`,{className:`tab-num`,children:A(m,u)})]})]}),(0,y.jsxs)(`div`,{className:`tb-barwrap`,children:[(0,y.jsx)(`div`,{className:`tb-bracket-bar`,role:`img`,"aria-label":`Income tax brackets up to ${A(h.scaleMax,u)}`,children:h.sorted.map((e,t)=>{let n=e.max??h.scaleMax,r=e.min/h.scaleMax*100,i=Math.max(0,(n-e.min)/h.scaleMax*100),a=e===h.current;return(0,y.jsx)(`span`,{className:`tb-seg${a?` current`:``}`,style:{left:`${r}%`,width:`${i}%`,background:k(t,h.sorted.length)},title:`${e.rate}% · ${j(e,u)}`},t)})}),(0,y.jsxs)(`div`,{className:`tb-needle`,style:{left:`${h.needlePct}%`},children:[(0,y.jsx)(`span`,{className:`tb-needle-line`}),(0,y.jsx)(`span`,{className:`tb-needle-tag`,children:`You`})]})]}),(0,y.jsx)(`div`,{className:`tb-legend`,children:h.sorted.map((e,t)=>(0,y.jsxs)(`span`,{className:`tb-leg-item m-stagger-item m-fade-rise${e===h.current?` current`:``}`,style:{"--i":t},children:[(0,y.jsx)(`span`,{className:`tb-leg-dot`,style:{background:k(t,h.sorted.length)}}),(0,y.jsx)(`span`,{className:`tb-leg-range`,children:j(e,u)}),(0,y.jsxs)(`span`,{className:`tb-leg-rate tab-num`,children:[e.rate,`%`]})]},t))}),(0,y.jsxs)(`div`,{className:`tb-rates`,children:[(0,y.jsxs)(`div`,{className:`tb-rate`,children:[(0,y.jsx)(`span`,{className:`tb-rate-label`,children:`Effective rate`}),(0,y.jsxs)(`span`,{className:`tb-rate-value tab-num`,children:[h.effective.toFixed(1),`%`]})]}),(0,y.jsxs)(`div`,{className:`tb-rate`,children:[(0,y.jsx)(`span`,{className:`tb-rate-label`,children:`Marginal rate`}),(0,y.jsxs)(`span`,{className:`tb-rate-value tab-num`,"data-mark":`underline`,children:[h.marginal,`%`]})]})]})]}):(0,y.jsx)(`div`,{className:`tb-note`,children:`No bracket data was given for this chart.`}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}function re({title:e,icon:t=`sparkle`,iconColor:n=`var(--presence)`,venue:r,subtitle:i,sections:a,footer:c,delay:l}){let u=o[t]||o.sparkle,d=a??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(r||i)&&(0,y.jsxs)(`div`,{className:`mc-header`,children:[r&&(0,y.jsx)(`div`,{className:`mc-venue`,children:r}),i&&(0,y.jsx)(`div`,{className:`mc-subtitle`,children:i})]}),(0,y.jsx)(`div`,{className:`mc-sections`,children:d.map((e,t)=>{let n=e.items??[];return(0,y.jsxs)(`div`,{className:`mc-section`,children:[(0,y.jsx)(`div`,{className:`mc-section-name`,children:e.name}),(0,y.jsx)(`div`,{className:`mc-items`,children:n.map((e,n)=>(0,y.jsxs)(`div`,{className:`mc-item m-stagger-item m-fade-rise`,style:{"--i":t*8+n},children:[(0,y.jsxs)(`div`,{className:`mc-item-row`,children:[(0,y.jsx)(`span`,{className:`mc-item-name`,children:e.name}),e.price&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`span`,{className:`mc-leader`,"aria-hidden":`true`}),(0,y.jsx)(`span`,{className:`mc-price`,children:e.price})]})]}),e.desc&&(0,y.jsx)(`div`,{className:`mc-desc`,children:e.desc}),e.tags&&e.tags.length>0&&(0,y.jsx)(`div`,{className:`mc-tags`,children:e.tags.map((e,t)=>(0,y.jsx)(`span`,{className:`mc-tag`,children:e},t))})]},n))})]},t)})}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}var M=n();function N(e){let t=(0,M.c)(6),{x1:n,y1:r,x2:i,y2:a,className:o}=e,s=(0,O.useRef)(null);d(s);let c;return t[0]!==o||t[1]!==n||t[2]!==i||t[3]!==r||t[4]!==a?(c=(0,y.jsx)(`line`,{ref:s,x1:n,y1:r,x2:i,y2:a,className:o}),t[0]=o,t[1]=n,t[2]=i,t[3]=r,t[4]=a,t[5]=c):c=t[5],c}var P=96,F=36,ie=16,ae=20,oe=108,I=128,se=108,ce=14,le=16,ue=[`I`,`II`,`III`,`IV`,`V`,`VI`,`VII`,`VIII`,`IX`,`X`];function de(e,t){return e.length>t?e.slice(0,t-1).trimEnd()+`…`:e}function fe(e,t){return e&&t?`${e}–${t}`:e?`b. ${e}`:t?`d. ${t}`:``}function pe(e,t){let n=new Map;for(let t of e)n.set(t.id,0);for(let t=0;t<e.length+1;t++){let t=!1;for(let r of e){if(!r.parents)continue;let e=r.parents.map(e=>n.get(e)).filter(e=>e!=null);if(e.length===0)continue;let i=Math.max(...e)+1;i>(n.get(r.id)??0)&&(n.set(r.id,i),t=!0)}if(!t)break}for(let r of e)if(r.partner&&t.has(r.partner)){let e=Math.max(n.get(r.id)??0,n.get(r.partner)??0);n.set(r.id,e),n.set(r.partner,e)}for(let r of e)if(r.parents?.length===2&&t.has(r.parents[0])&&t.has(r.parents[1])){let[e,t]=r.parents,i=Math.max(n.get(e)??0,n.get(t)??0);n.set(e,i),n.set(t,i)}return n}function me(e,t){let n=new Map;for(let r of e){let e=(r.parents??[]).filter(e=>t.has(e)&&e!==r.id);if(e.length===0)continue;let i=[...e].sort().join(`\0`),a=n.get(i)??{parentIds:e,childIds:[]};a.childIds.push(r.id),n.set(i,a)}return[...n.values()]}function he({title:e,icon:t=`share`,iconColor:n=`var(--presence)`,people:r=[],rootId:i,footer:a,delay:c}){let l=o[t]??o.share,u=(0,O.useMemo)(()=>{if(r.length===0)return null;let e=new Map;for(let t of r)e.set(t.id,t);let t=pe(r,e),n=me(r,e),i=new Map;for(let e of n)e.parentIds.length===2&&(i.set(e.parentIds[0],e.parentIds[1]),i.set(e.parentIds[1],e.parentIds[0]));for(let t of r)t.partner&&e.has(t.partner)&&!i.has(t.id)&&(i.set(t.id,t.partner),i.set(t.partner,t.id));let a=new Map;for(let e of n){if(e.parentIds.length!==2)continue;let[t,n]=e.parentIds,r=a.get(t)??new Set;r.add(n),a.set(t,r);let i=a.get(n)??new Set;i.add(t),a.set(n,i)}let o=r.reduce((e,n)=>Math.max(e,t.get(n.id)??0),0),s=Array.from({length:o+1},()=>[]);for(let e of r)s[t.get(e.id)??0].push(e);let c=new Map;s.forEach(n=>{let r=0,a=new Set;for(let o of n){if(a.has(o.id))continue;c.set(o.id,r),a.add(o.id),r+=1;let n=i.get(o.id);n&&e.has(n)&&(t.get(n)??0)===(t.get(o.id)??0)&&!a.has(n)&&(c.set(n,r),a.add(n),r+=1)}});for(let e=o;e>=1;e--){for(let r of n){if(r.childIds.reduce((e,n)=>Math.max(e,t.get(n)??0),-1)!==e)continue;let n=r.childIds.map(e=>c.get(e)??0),i=(Math.min(...n)+Math.max(...n))/2;if(r.parentIds.length===2){let e=se/I/2;c.set(r.parentIds[0],i-e),c.set(r.parentIds[1],i+e)}else c.set(r.parentIds[0],i)}let r=s[e-1].slice().sort((e,t)=>(c.get(e.id)??0)-(c.get(t.id)??0));for(let e=1;e<r.length;e++){let t=c.get(r[e-1].id)??0,n=c.get(r[e].id)??0,a=i.get(r[e-1].id)===r[e].id?se/I:1;n-t<a&&c.set(r[e].id,t+a)}}let l=r.map(e=>c.get(e.id)??0),u=Math.min(...l,0),d=Math.max(...l,0),f=e=>82+(e-u)*I,p=e=>36+e*oe,m=r.map(e=>{let n=t.get(e.id)??0;return{...e,gen:n,cx:f(c.get(e.id)??0),cy:p(n)}}),h=new Map;for(let e of m)h.set(e.id,e);return{placed:m,placedById:h,groups:n,matedInGroup:a,partnerOf:i,rows:s,maxGen:o,W:144+(d-u)*I,H:36+o*oe+F/2+ie,rowY:p}},[r]);if(!u)return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`ft-note`,children:`No family data was given for this tree.`})]});let{placed:d,placedById:f,groups:p,matedInGroup:m,partnerOf:h,rows:g,W:_,H:v,rowY:b}=u;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`ft-wrap`,children:(0,y.jsxs)(`svg`,{viewBox:`0 0 ${_} ${v}`,className:`ft-svg`,role:`img`,"aria-label":e,children:[g.map((e,t)=>e.length?(0,y.jsx)(`text`,{x:ae/2,y:b(t)+4,className:`ft-gen`,textAnchor:`middle`,children:ue[t]??t+1},`gen${t}`):null),p.map((e,t)=>{let n=e.childIds.map(e=>f.get(e)).filter(e=>!!e);if(n.length===0)return null;let r=n[0].cy,i,a;if(e.parentIds.length===2){let t=f.get(e.parentIds[0]),n=f.get(e.parentIds[1]);if(!t||!n)return null;i=(t.cx+n.cx)/2,a=t.cy}else{let t=f.get(e.parentIds[0]);if(!t)return null;i=t.cx,a=t.cy}let o=(a+r)/2,s=n.map(e=>e.cx),c=Math.min(...s),l=Math.max(...s);return(0,y.jsxs)(`g`,{className:`ft-links`,children:[e.parentIds.length===2&&(()=>{let t=f.get(e.parentIds[0]),n=f.get(e.parentIds[1]),[r,i]=t.cx<=n.cx?[t,n]:[n,t];return(0,y.jsx)(N,{x1:r.cx+P/2,y1:r.cy,x2:i.cx-P/2,y2:i.cy,className:`ft-line`})})(),(0,y.jsx)(N,{x1:i,y1:a,x2:i,y2:o,className:`ft-line`}),n.length>1&&(0,y.jsx)(N,{x1:c,y1:o,x2:l,y2:o,className:`ft-line`}),n.map(e=>(0,y.jsx)(N,{x1:e.cx,y1:o,x2:e.cx,y2:e.cy-F/2,className:`ft-line`},e.id))]},`grp${t}`)}),d.map(e=>{let t=h.get(e.id);if(!t||e.id>t||m.get(e.id)?.has(t))return null;let n=f.get(e.id),r=f.get(t);if(!n||!r||n.cy!==r.cy)return null;let[i,a]=n.cx<r.cx?[n,r]:[r,n];return(0,y.jsx)(N,{x1:i.cx+P/2,y1:i.cy,x2:a.cx-P/2,y2:a.cy,className:`ft-line`},`mp${e.id}`)}),d.map((e,t)=>{let n=fe(e.birth,e.death),r=de(e.name,ce),a=n?`${e.name} (${n})`:e.name,o=!!i&&e.id===i;return(0,y.jsxs)(`g`,{className:`ft-card m-stagger-item m-scale-in${o?` ft-card--root`:``}${e.death?` ft-card--deceased`:``}`,style:{"--i":t},children:[(0,y.jsx)(`title`,{children:a}),(0,y.jsx)(`rect`,{x:e.cx-P/2,y:e.cy-F/2,width:P,height:F,rx:8,className:`ft-card-rect`}),(0,y.jsx)(`text`,{x:e.cx,y:e.cy+(n?-4:3),textAnchor:`middle`,className:`ft-card-name`,children:r}),n&&(0,y.jsx)(`text`,{x:e.cx,y:e.cy+11,textAnchor:`middle`,className:`ft-card-dates`,children:de(n,le)})]},e.id)})]})}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:s(a)})]})}var L=20,R=30,z=15;function B(e){return Number.isFinite(e.seats)?Math.max(0,e.seats):0}function ge(e){let t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?`?`:((t[0]?.[0]||``)+(t[1]?.[0]||t[0]?.[1]||``)).toUpperCase()}function _e(e,t){return e.length>t?e.slice(0,t-1).trimEnd()+`…`:e}function V(e){return Math.min(52,24+e*2.2)}function H(e){return{w:Math.min(150,56+e*5),h:46}}function U(e){return Math.max(5,9-Math.max(0,e-12)*.15)}function W(e){if(e.shape===`rect`){let{w:t,h:n}=H(B(e));return Math.max(t,n)/2+z+U(B(e))}return V(B(e))+z+U(B(e))}function ve(e,t,n,r,i){let a=n/2,o=r/2,s=2*(n+r),c=(i%s+s)%s;return c<=n?{x:e-a+c,y:t-o-z}:(c-=n,c<=r?{x:e+a+z,y:t-o+c}:(c-=r,c<=n?{x:e+a-c,y:t+o+z}:(c-=n,{x:e-a-z,y:t+o-c})))}function ye(e,t,n,r){let i=Math.max(1,B(e));if(e.shape===`rect`){let{w:a,h:o}=H(B(e)),s=2*(a+o);return ve(t,n,a,o,r/i*s)}let a=V(B(e))+z,o=r/i*Math.PI*2-Math.PI/2;return{x:t+a*Math.cos(o),y:n+a*Math.sin(o)}}function be({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,venue:r,tables:i=[],assignments:a=[],footer:c,delay:l}){let u=o[t]||o.table,d=(0,O.useMemo)(()=>{if(i.length===0)return null;let e=new Map;for(let t of a)e.set(`${t.tableId}:${t.seatIndex}`,t.guest);let t=i.every(e=>e.x!==void 0&&e.y!==void 0),n=new Map;if(t){let e=i.map(e=>e.x),t=i.map(e=>e.y),r=Math.min(...e),a=Math.max(...e),o=Math.min(...t),s=Math.max(...t),c=a-r||1,l=s-o||1,u=Math.max(...i.map(W))*2+R,d=Math.max(1,Math.ceil(Math.sqrt(i.length))),f=d*u,p=Math.ceil(i.length/d)*u,m=Math.max(...i.map(W));i.forEach(e=>{n.set(e.id,{x:L+m+(e.x-r)/c*f,y:L+m+(e.y-o)/l*p})})}else{let e=Math.max(1,Math.ceil(Math.sqrt(i.length))),t=Math.max(...i.map(W)),r=t*2+R;i.forEach((i,a)=>{let o=a%e,s=Math.floor(a/e);n.set(i.id,{x:L+t+o*r,y:L+t+s*r})})}let r=Math.max(...i.map(W)),o=Math.max(1,Math.ceil(Math.sqrt(i.length))),s=Math.ceil(i.length/o),c=r*2+R;return{pos:n,guestAt:e,W:40+r*2+(o-1)*c,H:40+r*2+(s-1)*c,totalSeats:i.reduce((e,t)=>e+Math.max(0,B(t)),0),assignedSeats:a.length}},[i,a]);if(!d)return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`sc-note`,children:`No seating data was given.`})]});let{pos:f,guestAt:p,W:m,H:h,totalSeats:g,assignedSeats:_}=d;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`sc-summary`,children:[r&&(0,y.jsx)(`span`,{className:`sc-venue`,children:r}),(0,y.jsxs)(`span`,{className:`sc-count tab-num`,children:[_,` of `,g,` seated`]})]}),(0,y.jsx)(`div`,{className:`sc-wrap`,children:(0,y.jsx)(`svg`,{viewBox:`0 0 ${m} ${h}`,className:`sc-svg`,role:`img`,"aria-label":e,children:i.map((e,t)=>{let n=f.get(e.id);if(!n)return null;let r=e.shape===`rect`,i=V(B(e)),{w:a,h:o}=H(B(e)),s=U(B(e)),c=_e(e.label,r?14:9);return(0,y.jsxs)(`g`,{className:`sc-table m-stagger-item m-scale-in`,style:{"--i":t},children:[(0,y.jsx)(`title`,{children:e.label}),r?(0,y.jsx)(`rect`,{x:n.x-a/2,y:n.y-o/2,width:a,height:o,rx:6,className:`sc-table-shape`}):(0,y.jsx)(`circle`,{cx:n.x,cy:n.y,r:i,className:`sc-table-shape`}),(0,y.jsx)(`text`,{x:n.x,y:n.y+3,textAnchor:`middle`,className:`sc-table-label`,children:c}),Array.from({length:Math.max(0,B(e))},(t,r)=>{let i=ye(e,n.x,n.y,r),a=p.get(`${e.id}:${r}`);return(0,y.jsxs)(`g`,{children:[a&&(0,y.jsx)(`title`,{children:a}),(0,y.jsx)(`circle`,{cx:i.x,cy:i.y,r:s,className:a?`sc-seat sc-seat--filled`:`sc-seat sc-seat--empty`}),a&&s>=6.5&&(0,y.jsx)(`text`,{x:i.x,y:i.y+s*.34,textAnchor:`middle`,className:`sc-seat-initials`,style:{fontSize:s*.9},children:ge(a)})]},r)})]},e.id)})})}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:s(c)})]})}var xe=520,Se=320,Ce=260,we=160,Te=16,G={family:{color:`var(--presence)`},ally:{color:`var(--insight)`,dash:`5 3`},rival:{color:`var(--danger)`,dash:`1.5 3`},romance:{color:`var(--presence-soft)`},colleague:{color:`var(--warning)`},other:{color:`var(--text-muted)`,dash:`2 3`}},K={family:`Family`,ally:`Ally`,rival:`Rival`,romance:`Romance`,colleague:`Colleague`,other:`Other`},Ee=`M0 3.4 C0 1.1 -2.3 -0.5 -4 0.3 C-5.7 1.1 -5.7 3.4 -4 5.1 L0 9.1 L4 5.1 C5.7 3.4 5.7 1.1 4 0.3 C2.3 -0.5 0 1.1 0 3.4 Z`;function De(e,t){return e.length>t?e.slice(0,t-1).trimEnd()+`…`:e}function q(e){return typeof e==`string`?e.trim().toLocaleLowerCase():``}function Oe(e){return typeof e==`string`&&e in G?e:`other`}function ke(e,t){let n=new Map;return{people:e.map((e,t)=>{let r=typeof e?.id==`string`?e.id.trim():``,i=typeof e?.name==`string`?e.name.trim():``,a=i||`Person ${t+1}`,o=`${r||q(a).replace(/[^a-z0-9]+/g,`-`)||`person`}:${t}`;for(let e of[r,i]){let t=q(e);t&&!n.has(t)&&n.set(t,o)}return{...e,id:r,name:a,renderId:o}}),ties:t.flatMap(e=>{let t=n.get(q(e?.source)),r=n.get(q(e?.target));return!t||!r||t===r?[]:[{...e,source:t,target:r,kind:Oe(e?.kind)}]})}}function Ae({title:e,icon:t=`share`,iconColor:n=`var(--presence)`,people:r=[],ties:i=[],layout:a=`circle`,footer:c,delay:l}){let u=o[t]||o.share,[d,f]=(0,O.useState)(null),p=(0,O.useMemo)(()=>{let e=ke(r,i),t=new Map;if(a===`grid`){let n=Math.ceil(Math.sqrt(e.people.length)),r=440/Math.max(1,n-1||1),i=Math.ceil(e.people.length/n),a=240/Math.max(1,i-1||1);e.people.forEach((e,i)=>{let o=i%n,s=Math.floor(i/n);t.set(e.renderId,{x:40+o*r,y:40+s*a})})}else e.people.forEach((n,r)=>{let i=r/Math.max(1,e.people.length)*Math.PI*2-Math.PI/2;t.set(n.renderId,{x:Ce+120*Math.cos(i),y:we+120*Math.sin(i)})});let n=new Map;return e.people.forEach(e=>n.set(e.renderId,new Set)),e.ties.forEach(e=>{n.get(e.source)?.add(e.target),n.get(e.target)?.add(e.source)}),{...e,pos:t,adj:n}},[r,i,a]),m=d?p.adj.get(d):null,h=e=>!d||e.source===d||e.target===d,g=e=>!d||e===d||!!m?.has(e),_=(0,O.useMemo)(()=>p.people.length?p.people.reduce((e,t)=>(p.adj.get(t.renderId)?.size??0)>(p.adj.get(e.renderId)?.size??0)?t:e,p.people[0]).renderId:null,[p.people,p.adj]),v=(0,O.useMemo)(()=>[...new Set(p.ties.map(e=>e.kind))],[p.ties]);return r.length===0?(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`rm-note`,children:`No relationship data was given.`})]}):(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`svg`,{role:`img`,"aria-label":e,viewBox:`0 0 ${xe} ${Se}`,width:`100%`,className:`rm-svg`,children:[p.ties.map((e,t)=>{let n=p.pos.get(e.source),r=p.pos.get(e.target);if(!n||!r)return null;let i=G[e.kind]??G.other,a=h(e),o=(n.x+r.x)/2,s=(n.y+r.y)/2;return(0,y.jsxs)(`g`,{children:[(0,y.jsx)(`line`,{className:`rm-edge m-stagger-item m-scale-in`,x1:n.x,y1:n.y,x2:r.x,y2:r.y,stroke:i.color,strokeDasharray:i.dash,opacity:a?.9:.2,style:{"--i":t},children:(0,y.jsx)(`title`,{children:e.label?`${K[e.kind]} · ${e.label}`:K[e.kind]})}),e.kind===`romance`&&(0,y.jsx)(`path`,{d:Ee,fill:i.color,opacity:a?1:.3,transform:`translate(${o} ${s})`})]},t)}),p.people.map((e,t)=>{let n=p.pos.get(e.renderId);if(!n)return null;let r=g(e.renderId),i=d===e.renderId,a=De(e.name,12);return(0,y.jsxs)(`g`,{className:`rm-node m-stagger-item m-scale-in`,style:{"--i":t},onMouseEnter:()=>f(e.renderId),onMouseLeave:()=>f(null),children:[(0,y.jsx)(`title`,{children:e.role?`${e.name} · ${e.role}`:e.name}),i&&(0,y.jsx)(`circle`,{cx:n.x,cy:n.y,r:22,className:`rm-node-halo`}),(0,y.jsx)(`circle`,{cx:n.x,cy:n.y,r:Te,className:`rm-node-dot`,opacity:r?1:.32,"data-mark":e.renderId===_?`circle`:void 0}),(0,y.jsx)(`text`,{x:n.x,y:n.y+Te+13,textAnchor:`middle`,className:`rm-node-label`,opacity:r?1:.32,children:a})]},e.renderId)})]}),v.length>0&&(0,y.jsx)(`ul`,{className:`rm-legend`,"aria-label":`Relationship key`,children:v.map(e=>(0,y.jsxs)(`li`,{className:`rm-leg-item`,children:[e===`romance`?(0,y.jsx)(`svg`,{viewBox:`-6 -1 12 11`,className:`rm-leg-heart`,"aria-hidden":`true`,children:(0,y.jsx)(`path`,{d:Ee,transform:`translate(0 0)`,fill:G[e].color})}):(0,y.jsx)(`svg`,{viewBox:`0 0 20 8`,className:`rm-leg-swatch`,"aria-hidden":`true`,children:(0,y.jsx)(`line`,{x1:1,y1:4,x2:19,y2:4,stroke:G[e].color,strokeDasharray:G[e].dash,strokeWidth:2,strokeLinecap:`round`})}),K[e]]},e))}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:s(c)})]})}function je({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,meetingDate:r,attendees:i,discussionPoints:a,decisions:c,actionItems:l,footer:u,delay:d}){let f=o[t]||o.doc,p=i??[],m=a??[],h=c??[],g=l??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`mn-date`,children:r}),p.length>0&&(0,y.jsx)(`div`,{className:`mn-attendees`,children:p.map((e,t)=>(0,y.jsx)(`span`,{className:`mn-attendee`,children:e},t))}),m.length>0&&(0,y.jsxs)(`div`,{className:`mn-section`,children:[(0,y.jsx)(`div`,{className:`mn-section-label`,children:`Discussion`}),(0,y.jsx)(`ul`,{className:`mn-bullets`,children:m.map((e,t)=>(0,y.jsx)(`li`,{className:`mn-bullet`,children:e},t))})]}),h.length>0&&(0,y.jsxs)(`div`,{className:`mn-section`,children:[(0,y.jsx)(`div`,{className:`mn-section-label`,children:`Decisions`}),(0,y.jsx)(`ul`,{className:`mn-bullets mn-bullets--decided`,children:h.map((e,t)=>(0,y.jsx)(`li`,{className:`mn-bullet mn-bullet--decided`,children:e},t))})]}),g.length>0&&(0,y.jsxs)(`div`,{className:`mn-section`,children:[(0,y.jsx)(`div`,{className:`mn-section-label`,children:`Action items`}),(0,y.jsx)(`ul`,{className:`mn-actions`,children:g.map((e,t)=>(0,y.jsxs)(`li`,{className:`mn-action m-stagger-item m-fade-rise${e.done?` done`:``}`,style:{"--i":t},children:[(0,y.jsx)(`span`,{className:`mn-action-check`,"aria-hidden":`true`,children:e.done?(0,y.jsx)(o.check,{className:`ic`}):null}),(0,y.jsx)(`span`,{className:`mn-action-task`,children:e.task}),(e.owner||e.dueDate)&&(0,y.jsxs)(`span`,{className:`mn-action-badges`,children:[e.owner&&(0,y.jsx)(`span`,{className:`mn-badge mn-badge--owner`,children:e.owner}),e.dueDate&&(0,y.jsx)(`span`,{className:`mn-badge mn-badge--due`,children:e.dueDate})]})]},t))})]}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}var Me=`M0 -5 L1.23 -1.7 L4.76 -1.55 L2 0.65 L2.94 4.05 L0 2.1 L-2.94 4.05 L-2 0.65 L-4.76 -1.55 L-1.23 -1.7 Z`;function Ne(e){let t=(0,M.c)(3),{className:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,y.jsx)(`path`,{d:Me}),t[0]=r):r=t[0];let i;return t[1]===n?i=t[2]:(i=(0,y.jsx)(`svg`,{viewBox:`-5 -5 10 10`,className:n,"aria-hidden":`true`,children:r}),t[1]=n,t[2]=i),i}function Pe({title:e,icon:t=`sparkle`,iconColor:n=`var(--warning)`,behavior:r,people:i,days:a,marks:c,rewardAt:l,footer:u,delay:d}){let f=o[t]||o.sparkle,p=a??[],m=c??[],h=!!i&&i.length>0,g=h?i:[``],_=new Set(m.filter(e=>e.earned).map(e=>`${e.person??``}:${e.day}`)),v=m.filter(e=>e.earned).length,b=l!==void 0&&l>0,x=b?Math.min(100,v/l*100):0;return p.length===0?(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`sk-note`,children:`No days were given for this chart.`})]}):(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`sk-behavior`,children:r}),(0,y.jsx)(`div`,{className:`sk-scroll`,children:(0,y.jsxs)(`div`,{className:`sk-grid${h?` sk-grid--labeled`:``}`,style:{"--sk-cols":p.length},children:[h&&(0,y.jsx)(`span`,{className:`sk-corner`,"aria-hidden":`true`}),p.map((e,t)=>(0,y.jsx)(`span`,{className:`sk-day`,children:e},t)),g.map((t,n)=>(0,y.jsxs)(`div`,{className:`sk-row`,style:{display:`contents`},children:[h&&(0,y.jsx)(`span`,{className:`sk-person`,children:t}),p.map((r,i)=>{let a=_.has(`${t}:${r}`);return(0,y.jsx)(`span`,{className:`sk-cell m-stagger-item m-scale-in${a?` earned`:``}`,style:{"--i":n*p.length+i},title:`${t||e} · ${r}${a?` · earned`:``}`,children:a?(0,y.jsx)(Ne,{className:`sk-star`}):(0,y.jsx)(`span`,{className:`sk-empty`})},i)})]},n))]})}),b&&(0,y.jsxs)(`div`,{className:`sk-reward`,children:[(0,y.jsxs)(`div`,{className:`sk-reward-row`,children:[(0,y.jsx)(`span`,{children:`Toward the reward`}),(0,y.jsxs)(`span`,{className:`tab-num`,children:[Math.min(v,l),` of `,l]})]}),(0,y.jsx)(`div`,{className:`sk-reward-bar`,role:`progressbar`,"aria-valuenow":Math.round(x),children:(0,y.jsx)(`span`,{className:`sk-reward-fill`,style:{width:`${x}%`}})})]}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}function Fe({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,date:r,items:i,footer:a,delay:c}){let l=o[t]||o.clock,u=i??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`ag-date`,children:r}),(0,y.jsx)(`div`,{className:`ag-items`,children:u.map((e,t)=>(0,y.jsxs)(`div`,{className:`ag-item${e.done?` done`:``}`,...t===0?{"data-mark":`circle`}:{},children:[(0,y.jsx)(`div`,{className:`ag-time`,children:e.time??``}),(0,y.jsxs)(`div`,{className:`ag-body`,children:[(0,y.jsx)(`div`,{className:`ag-title`,children:e.title}),e.location&&(0,y.jsx)(`div`,{className:`ag-location`,children:e.location}),e.note&&(0,y.jsx)(`div`,{className:`ag-note`,children:e.note})]}),e.duration&&(0,y.jsx)(`div`,{className:`ag-dur`,children:e.duration})]},t))}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}function Ie({title:e,icon:t=`spark`,iconColor:n=`var(--warning)`,category:r,items:i,footer:a,delay:c}){let l=o[t]||o.spark,u=i??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`fc-meta`,children:(0,y.jsx)(`span`,{children:r})}),(0,y.jsx)(`div`,{className:`pk-items`,children:u.map((e,t)=>(0,y.jsxs)(`div`,{className:`pk-item`,...t===0?{"data-mark":`circle`}:{},children:[(0,y.jsxs)(`div`,{className:`pk-rank`,children:[`#`,t+1]}),(0,y.jsxs)(`div`,{className:`pk-body`,children:[(0,y.jsx)(`div`,{className:`pk-name`,children:e.name}),e.tagline&&(0,y.jsx)(`div`,{className:`pk-tagline`,children:e.tagline}),e.why&&(0,y.jsx)(`div`,{className:`pk-why`,children:e.why}),(e.price||e.rating||e.badge)&&(0,y.jsxs)(`div`,{className:`pk-meta`,children:[e.price&&(0,y.jsx)(`span`,{className:`pk-price`,children:e.price}),e.rating&&(0,y.jsx)(`span`,{className:`pk-rating`,children:e.rating}),e.badge&&(0,y.jsx)(`span`,{className:`pk-badge`,children:e.badge})]})]})]},t))}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}function Le({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,principal:r,rate:i,term:a,monthlyPayment:c,rows:l,footer:u,delay:d}){let f=o[t]||o.table,p=l??[],m=p.length-1,h=[{label:`Principal`,value:r},{label:`Rate`,value:i},{label:`Term`,value:a},{label:`Monthly payment`,value:c,highlight:!0}];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`am-summary`,children:h.map(e=>(0,y.jsxs)(`div`,{className:`am-field${e.highlight?` highlight`:``}`,children:[(0,y.jsx)(`span`,{className:`am-field-label`,children:e.label}),(0,y.jsx)(`span`,{className:`am-field-value`,...e.highlight?{"data-mark":`underline`}:{},children:e.value})]},e.label))}),(0,y.jsx)(`div`,{style:{overflowX:`auto`},children:(0,y.jsxs)(`table`,{className:`am-table`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{children:`Period`}),(0,y.jsx)(`th`,{children:`Payment`}),(0,y.jsx)(`th`,{children:`Principal`}),(0,y.jsx)(`th`,{children:`Interest`}),(0,y.jsx)(`th`,{children:`Balance`})]})}),(0,y.jsx)(`tbody`,{children:p.map((e,t)=>{let n=t===0||t===m;return(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`td`,{style:{fontWeight:n?500:void 0},children:e.period}),(0,y.jsx)(`td`,{style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`,fontWeight:n?500:void 0},children:e.payment}),(0,y.jsx)(`td`,{style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`,fontWeight:n?500:void 0},children:e.principal}),(0,y.jsx)(`td`,{style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`,fontWeight:n?500:void 0},children:e.interest}),(0,y.jsx)(`td`,{style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`,fontWeight:n?500:void 0},children:e.balance})]},t)})})]})}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}function Re({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,baseTime:r,rows:i,footer:a,delay:c}){let l=o[t]||o.globe,u=i??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsxs)(`div`,{className:`tz-base`,children:[`Reference: `,r]}),(0,y.jsx)(`div`,{className:`tz-rows`,children:u.map((e,t)=>{let n=u.findIndex(e=>e.isHome),r=e.isHome||n===-1&&t===0;return(0,y.jsxs)(`div`,{className:e.isHome?`tz-row home`:`tz-row`,children:[(0,y.jsx)(`span`,{className:`tz-city`,children:e.city}),(0,y.jsx)(`span`,{className:`tz-offset`,children:e.offset}),(0,y.jsx)(`span`,{className:`tz-time`,...r?{"data-mark":`underline`}:{},children:e.localTime??e.timezone})]},t)})}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}function ze({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,origin:r,destination:i,totalTime:a,totalDistance:c,steps:l,footer:u,delay:d}){let f=o[t]||o.globe,p=l??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`tr-endpoints`,children:[(0,y.jsx)(`span`,{className:`tr-origin`,children:r}),(0,y.jsx)(`span`,{className:`tr-arrow`,children:`→`}),(0,y.jsx)(`span`,{className:`tr-dest`,children:i})]}),(a||c)&&(0,y.jsxs)(`div`,{className:`tr-total`,children:[a&&(0,y.jsx)(`span`,{children:a}),a&&c&&(0,y.jsx)(`span`,{children:`·`}),c&&(0,y.jsx)(`span`,{children:c})]}),(0,y.jsx)(`div`,{className:`tr-steps`,children:p.map((e,t)=>{let n=t===p.length-1,r=v(e.mode);return(0,y.jsxs)(`div`,{className:`tr-step${n?` tr-step--arrival`:``}`,style:{position:`relative`,paddingLeft:28},children:[!n&&(0,y.jsx)(`span`,{"aria-hidden":`true`,style:{position:`absolute`,left:9,top:22,bottom:0,width:2,background:`var(--grid-line)`,borderRadius:1}}),(0,y.jsx)(`span`,{"aria-hidden":`true`,style:{position:`absolute`,left:2,top:10,width:16,height:16,borderRadius:`50%`,background:n?`var(--presence)`:`color-mix(in oklab, var(--presence) 18%, var(--surface))`,border:`2px solid var(--presence)`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0}}),(0,y.jsx)(`div`,{className:`tr-mode-ic`,style:{position:`absolute`,left:32},children:(0,y.jsx)(r,{className:`ic`})}),(0,y.jsxs)(`div`,{className:`tr-body`,style:{paddingLeft:20},children:[(0,y.jsx)(`div`,{className:`tr-instruction`,style:n?{fontWeight:700,color:`var(--presence)`}:void 0,...n?{"data-mark":`underline`}:{},children:e.instruction}),(e.line||e.duration||e.distance)&&(0,y.jsxs)(`div`,{className:`tr-meta`,children:[e.line&&(0,y.jsx)(`span`,{className:`tr-line-badge`,children:e.line}),e.duration&&(0,y.jsx)(`span`,{children:e.duration}),e.distance&&(0,y.jsx)(`span`,{children:e.distance})]})]})]},t)})}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}function Be({title:e,icon:t=`cart`,iconColor:n=`var(--presence)`,merchant:r,date:i,lines:a,subtotal:c,tax:l,total:u,footer:d,delay:f}){let p=o[t]||o.cart,m=a??[],h={fontFamily:`var(--font-mono, ui-monospace, monospace)`,fontVariantNumeric:`tabular-nums`};return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(r||i)&&(0,y.jsxs)(`div`,{style:{marginBottom:12},children:[r&&(0,y.jsx)(`div`,{className:`rc-merchant`,children:r}),i&&(0,y.jsx)(`div`,{className:`rc-date`,children:i})]}),(0,y.jsx)(`div`,{className:`rc-lines`,children:m.map((e,t)=>(0,y.jsxs)(`div`,{className:`rc-line`,children:[(0,y.jsx)(`span`,{className:`rc-item`,children:e.item}),e.qty!==void 0&&(0,y.jsxs)(`span`,{className:`rc-qty`,children:[`×`,e.qty]}),e.unit!==void 0&&(0,y.jsx)(`span`,{className:`rc-unit`,style:h,children:e.unit}),(0,y.jsx)(`span`,{className:`rc-total`,style:h,children:e.total})]},t))}),(0,y.jsxs)(`div`,{className:`rc-subtotals`,children:[c!==void 0&&(0,y.jsxs)(`div`,{className:`rc-subtotal-row`,children:[(0,y.jsx)(`span`,{children:`Subtotal`}),(0,y.jsx)(`span`,{style:h,children:c})]}),l!==void 0&&(0,y.jsxs)(`div`,{className:`rc-subtotal-row`,children:[(0,y.jsx)(`span`,{children:`Tax`}),(0,y.jsx)(`span`,{style:h,children:l})]}),(0,y.jsxs)(`div`,{className:`rc-grand`,children:[(0,y.jsx)(`span`,{children:`Total`}),(0,y.jsx)(`span`,{"data-mark":`underline`,style:{...h,color:`var(--presence)`},children:u})]})]}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}var Ve={flex:1,minWidth:0,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`};function He({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,people:r,expenses:i,settlements:a,footer:c,delay:l}){let u=o[t]||o.layers,d=i??[],f=a??[],p=r??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),p.length>0&&(0,y.jsx)(`div`,{className:`su-people`,children:p.map(e=>(0,y.jsx)(`span`,{className:`su-person-chip`,children:e},e))}),d.length>0&&(0,y.jsx)(`div`,{className:`su-expenses`,children:d.map((e,t)=>(0,y.jsxs)(`div`,{className:`su-exp-row`,children:[(0,y.jsx)(`span`,{className:`su-exp-desc`,children:e.description}),(0,y.jsxs)(`span`,{className:`su-exp-paid`,children:[`paid by `,e.paidBy]}),(0,y.jsx)(`span`,{className:`su-exp-amt`,style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`},children:e.amount})]},t))}),(0,y.jsx)(`div`,{className:`su-divider`,children:`Who pays who`}),(0,y.jsx)(`div`,{className:`su-settlements`,children:f.map((e,t)=>(0,y.jsxs)(`div`,{className:`su-settle`,children:[(0,y.jsx)(`span`,{className:`su-from`,style:Ve,title:e.from,children:e.from}),(0,y.jsx)(`span`,{className:`su-arrow`,"aria-hidden":!0,children:`→`}),(0,y.jsx)(`span`,{className:`su-to`,style:Ve,title:e.to,children:e.to}),(0,y.jsx)(`span`,{className:`su-amt-pill`,style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`},...t===0?{"data-mark":`underline`}:{},children:e.amount})]},t))}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}function Ue({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,metric:r,items:i,footer:a,delay:c}){let l=o[t]??o.chart,u=(0,O.useMemo)(()=>[...i??[]].sort((e,t)=>t.value-e.value),[i]),d=(0,O.useMemo)(()=>u.reduce((e,t)=>Math.max(e,t.value),0)||1,[u]);return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`bb-metric`,children:r}),(0,y.jsx)(`div`,{className:`bb-items`,children:u.map((e,t)=>{let n=e.value/d*100,r=t===0,i=r?{width:`${n}%`,background:`var(--presence)`}:{width:`${n}%`,background:`color-mix(in oklab, var(--presence) 85%, transparent)`};return(0,y.jsxs)(`div`,{className:`bb-item`,children:[(0,y.jsx)(`span`,{className:`bb-badge`,children:e.badge??`${t+1}`}),(0,y.jsx)(`span`,{className:`bb-label`,title:e.label,children:e.label}),(0,y.jsx)(`div`,{className:`bb-bar-track`,role:`presentation`,children:(0,y.jsx)(`div`,{className:`bb-bar-fill`,style:i,...r?{"data-mark":`circle`}:{}})}),(0,y.jsx)(`span`,{className:`bb-value`,style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`},children:e.bar??e.value})]},t)})}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}function We({title:e,icon:t=`sparkle`,iconColor:n=`var(--presence)`,servings:r,prepTime:i,cookTime:a,difficulty:c,ingredients:l,steps:u,tips:d,footer:f,delay:p}){let m=o[t]||o.sparkle,[h,g]=(0,O.useState)(!1),_=c===`easy`?`var(--insight)`:c===`hard`?`var(--warning)`:`var(--text-muted)`;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`rc2-meta`,children:[r&&(0,y.jsxs)(`span`,{className:`rc2-chip`,children:[`Serves `,r]}),i&&(0,y.jsxs)(`span`,{className:`rc2-chip`,children:[(0,y.jsx)(o.clock,{className:`ic`,style:{width:11,height:11}}),` Prep `,i]}),a&&(0,y.jsxs)(`span`,{className:`rc2-chip`,children:[(0,y.jsx)(o.sun,{className:`ic`,style:{width:11,height:11}}),` Cook `,a]}),c&&(0,y.jsx)(`span`,{className:`rc2-chip`,style:{color:_},children:c.charAt(0).toUpperCase()+c.slice(1)})]}),(0,y.jsxs)(`div`,{className:`rc2-body`,children:[(0,y.jsxs)(`div`,{className:`rc2-ingredients`,children:[(0,y.jsx)(`div`,{className:`rc2-section-label`,children:`Ingredients`}),(0,y.jsx)(`ul`,{className:`rc2-ing-list`,children:l.map((e,t)=>(0,y.jsxs)(`li`,{className:`rc2-ing`,children:[(e.qty||e.unit)&&(0,y.jsxs)(`span`,{className:`rc2-qty`,children:[e.qty,e.unit?`\xA0`+e.unit:``]}),(0,y.jsx)(`span`,{className:`rc2-ing-name`,children:e.name})]},t))})]}),(0,y.jsxs)(`div`,{className:`rc2-steps`,children:[(0,y.jsx)(`div`,{className:`rc2-section-label`,children:`Steps`}),(0,y.jsx)(`ol`,{className:`rc2-step-list`,children:u.map((e,t)=>(0,y.jsxs)(`li`,{className:`rc2-step`,children:[(0,y.jsx)(`span`,{className:`rc2-step-num`,children:t+1}),(0,y.jsx)(`span`,{className:`rc2-step-text`,children:e})]},t))})]})]}),d&&d.length>0&&(0,y.jsxs)(`div`,{className:`rc2-tips-section`,children:[(0,y.jsxs)(`button`,{className:`rc2-tips-toggle`,onClick:()=>g(!h),children:[(0,y.jsx)(o.sparkle,{className:`ic`,style:{width:12,height:12}}),h?`Hide tips`:`${d.length} pro tip${d.length>1?`s`:``}`]}),h&&(0,y.jsx)(`ul`,{className:`rc2-tips-list`,children:d.map((e,t)=>(0,y.jsx)(`li`,{className:`rc2-tip`,children:e},t))})]}),f&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(f)})]})}function Ge({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,goal:r,weeks:i,sessions:a,footer:c,delay:l}){let u=o[t]||o.chart,[d,f]=(0,O.useState)(0),p=a[d];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(r||i)&&(0,y.jsxs)(`div`,{className:`wp-header`,children:[r&&(0,y.jsx)(`span`,{className:`wp-goal`,children:r}),i&&(0,y.jsxs)(`span`,{className:`wp-weeks`,children:[i,`-week plan`]})]}),(0,y.jsx)(`div`,{className:`wp-tabs`,children:a.map((e,t)=>(0,y.jsx)(`button`,{className:`wp-tab${t===d?` active`:``}`,onClick:()=>f(t),children:e.day},t))}),p&&(0,y.jsxs)(`div`,{className:`wp-session`,children:[p.focus&&(0,y.jsx)(`div`,{className:`wp-focus`,children:p.focus}),(0,y.jsx)(`div`,{className:`wp-exercises`,children:(p.exercises??[]).map((e,t)=>(0,y.jsxs)(`div`,{className:`wp-exercise`,children:[(0,y.jsx)(`div`,{className:`wp-ex-name`,children:e.name}),(0,y.jsxs)(`div`,{className:`wp-ex-badges`,children:[e.sets!==void 0&&(0,y.jsxs)(`span`,{className:`wp-badge`,children:[e.sets,` sets`]}),e.reps&&(0,y.jsxs)(`span`,{className:`wp-badge`,children:[e.reps,` reps`]}),e.duration&&(0,y.jsx)(`span`,{className:`wp-badge`,children:e.duration}),e.rest&&(0,y.jsxs)(`span`,{className:`wp-badge wp-badge--rest`,children:[(0,y.jsx)(o.clock,{className:`ic`,style:{width:10,height:10}}),` `,e.rest]})]}),e.note&&(0,y.jsx)(`div`,{className:`wp-ex-note`,children:e.note})]},t))})]}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}function Ke(e){let t=parseInt(e.split(`:`)[0]??`0`,10);if(!isNaN(t))return t>=6&&t<20?`sun`:`moon`;let n=e.toLowerCase();return n.includes(`morning`)||n.includes(`noon`)||n.includes(`afternoon`)||n.includes(`pm`)?`sun`:n.includes(`night`)||n.includes(`evening`)?`moon`:`clock`}function qe({title:e,icon:t=`bell`,iconColor:n=`var(--presence)`,medications:r,startDate:i,footer:a,delay:c}){let l=o[t]||o.bell;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),i&&(0,y.jsxs)(`div`,{className:`ms-start`,children:[`Starting `,i]}),(0,y.jsx)(`div`,{className:`ms-meds`,children:r.map((e,t)=>(0,y.jsxs)(`div`,{className:`ms-med`,children:[(0,y.jsxs)(`div`,{className:`ms-med-header`,children:[(0,y.jsx)(`div`,{className:`ms-med-name`,children:e.name}),(0,y.jsx)(`div`,{className:`ms-med-dose`,children:e.dose})]}),(0,y.jsxs)(`div`,{className:`ms-times`,children:[e.times.map((e,t)=>{let n=Ke(e),r=o[n];return(0,y.jsxs)(`span`,{className:`ms-time-chip`,children:[(0,y.jsx)(r,{className:`ic`,style:{width:11,height:11}}),` `,e]},t)}),e.withFood&&(0,y.jsx)(`span`,{className:`ms-food-chip`,children:`with food`})]}),(e.frequency||e.notes)&&(0,y.jsxs)(`div`,{className:`ms-meta`,children:[e.frequency&&(0,y.jsx)(`span`,{className:`ms-freq`,children:e.frequency}),e.notes&&(0,y.jsx)(`span`,{className:`ms-note`,children:e.notes})]})]},t))}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}function Je({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,calories:r,protein:i,carbs:a,fat:c,fiber:l,items:u,footer:d,delay:f}){let p=o[t]||o.chart,m=i*4,h=a*4,g=c*9,_=m+h+g||1,v=[{label:`Protein`,value:i,color:`var(--presence)`,pct:m/_*100},{label:`Carbs`,value:a,color:`var(--insight)`,pct:h/_*100},{label:`Fat`,value:c,color:`var(--warning)`,pct:g/_*100},...l===void 0?[]:[{label:`Fiber`,value:l,color:`var(--text-muted)`,pct:0}]];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`mb-calorie`,children:[(0,y.jsx)(`span`,{className:`mb-cal-num`,children:r.toLocaleString()}),(0,y.jsx)(`span`,{className:`mb-cal-unit`,children:`kcal`})]}),(0,y.jsx)(`div`,{className:`mb-stack`,children:v.slice(0,3).map((e,t)=>(0,y.jsx)(`div`,{className:`mb-stack-seg m-stagger-item m-scale-in`,style:{width:`${e.pct}%`,background:e.color,"--i":t},title:`${e.label}: ${e.value}g`},e.label))}),(0,y.jsx)(`div`,{className:`mb-macros`,children:v.map(e=>(0,y.jsxs)(`div`,{className:`mb-macro`,children:[(0,y.jsx)(`span`,{className:`mb-macro-dot`,style:{background:e.color}}),(0,y.jsx)(`span`,{className:`mb-macro-label`,children:e.label}),(0,y.jsxs)(`span`,{className:`mb-macro-value`,children:[e.value,`g`]}),e.pct>0&&(0,y.jsxs)(`span`,{className:`mb-macro-pct`,children:[Math.round(e.pct),`%`]})]},e.label))}),u&&u.length>0&&(0,y.jsxs)(`div`,{className:`mb-items`,children:[(0,y.jsx)(`div`,{className:`mb-items-label`,children:`Per item`}),u.map((e,t)=>(0,y.jsxs)(`div`,{className:`mb-item`,children:[(0,y.jsx)(`span`,{className:`mb-item-name`,children:e.label}),(0,y.jsxs)(`span`,{className:`mb-item-stats`,children:[e.calories!==void 0&&(0,y.jsxs)(`span`,{className:`mb-item-cal`,children:[e.calories,` kcal`]}),e.protein!==void 0&&(0,y.jsxs)(`span`,{className:`mb-item-macro`,children:[`P `,e.protein,`g`]}),e.carbs!==void 0&&(0,y.jsxs)(`span`,{className:`mb-item-macro`,children:[`C `,e.carbs,`g`]}),e.fat!==void 0&&(0,y.jsxs)(`span`,{className:`mb-item-macro`,children:[`F `,e.fat,`g`]})]})]},t))]}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}var Ye=e=>e.trim().toLowerCase();function Xe({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,columns:r,rows:i,summary:a,caption:c,footer:l,delay:u}){let d=o[t]||o.clock,f=r??[],p=i??[],m=`minmax(60px, 0.55fr) repeat(${Math.max(f.length,1)}, minmax(78px, 1fr))`;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),c&&(0,y.jsx)(`div`,{className:`pg-caption`,children:c}),(0,y.jsx)(`div`,{className:`pg-scroll`,children:(0,y.jsxs)(`div`,{className:`pg-grid`,style:{gridTemplateColumns:m},children:[(0,y.jsx)(`div`,{className:`pg-corner`,"aria-hidden":`true`}),f.map((e,t)=>(0,y.jsx)(`div`,{className:`pg-colhead`,children:e},`h${t}`)),p.map((e,t)=>{let n=new Map;return(e.cells??[]).forEach(e=>{e?.col&&n.set(Ye(e.col),e)}),(0,y.jsxs)(O.Fragment,{children:[(0,y.jsx)(`div`,{className:`pg-slot`,children:e.slot}),f.map((e,r)=>{let i=n.get(Ye(e));if(!i||!i.label)return(0,y.jsx)(`div`,{className:`pg-cell pg-cell--free`,children:(0,y.jsx)(`span`,{className:`pg-cell-free`,children:`free`})},`c${t}-${r}`);let a=i.accent?{borderInlineStartColor:i.accent,borderInlineStartWidth:3}:void 0;return(0,y.jsxs)(`div`,{className:`pg-cell${i.done?` done`:``}`,style:a,children:[(0,y.jsx)(`span`,{className:`pg-cell-label`,style:i.accent?{color:i.accent}:void 0,children:i.label}),i.sub&&(0,y.jsx)(`span`,{className:`pg-cell-sub`,children:i.sub})]},`c${t}-${r}`)})]},`r${t}`)}),a&&a.length>0&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`div`,{className:`pg-slot pg-slot--sum`,children:`Total`}),f.map((e,t)=>(0,y.jsx)(`div`,{className:`pg-cell--sum`,children:a[t]??``},`s${t}`))]})]})}),l&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(l)})]})}var Ze={fixed:`var(--presence)`,flexible:`var(--warning)`,savings:`var(--insight)`};function J(e,t){let n=Math.abs(e),r=n.toLocaleString(void 0,{maximumFractionDigits:n%1==0?0:2});return(e<0?`-`:``)+t+r}function Qe({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,income:r,unit:i=`$`,incomeLabel:a=`Money in`,envelopes:c,caption:l,footer:u,delay:d}){let f=o[t]||o.chart,p=c??[],m=Number(r)||0,h=m-p.reduce((e,t)=>e+(Number(t.amount)||0),0),g=h<0,_=e=>m>0?Math.min(100,Math.max(0,e/m*100)):0;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),l&&(0,y.jsx)(`div`,{className:`ba-caption`,children:l}),(0,y.jsxs)(`div`,{className:`ba-income`,children:[(0,y.jsx)(`span`,{className:`ba-income-label`,children:a}),(0,y.jsx)(`span`,{className:`ba-income-val`,children:J(m,i)})]}),(0,y.jsx)(`div`,{className:`ba-envelopes`,children:p.map((e,t)=>{let n=e.accent??(e.group?Ze[e.group]:`var(--presence)`),r=Number(e.amount)||0;return(0,y.jsxs)(`div`,{className:`ba-env`,children:[(0,y.jsxs)(`div`,{className:`ba-env-top`,children:[(0,y.jsxs)(`span`,{className:`ba-env-label`,children:[e.label,e.group&&(0,y.jsx)(`span`,{className:`ba-env-tag`,children:e.group})]}),(0,y.jsx)(`span`,{className:`ba-env-amt`,children:J(r,i)})]}),(0,y.jsx)(`div`,{className:`ba-bar`,children:(0,y.jsx)(`span`,{className:`ba-bar-fill m-stagger-item m-scale-in`,style:{width:_(r)+`%`,background:n,"--i":t}})}),e.note&&(0,y.jsx)(`div`,{className:`ba-env-note`,children:e.note})]},t)})}),(0,y.jsxs)(`div`,{className:`ba-remaining${g?` over`:``}`,children:[(0,y.jsx)(`span`,{className:`ba-rem-label`,children:g?`Over by`:`Left to allocate`}),(0,y.jsx)(`span`,{className:`ba-rem-val`,children:J(Math.abs(h),i)})]}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}var $e={easy:`Easy`,medium:`Medium`,hard:`Hard`};function et({title:e,icon:t=`check`,iconColor:n=`var(--presence)`,time:r,difficulty:i,warning:a,tools:c,steps:l,footer:u,delay:d}){let f=o[t]||o.check,p=l??[],m=c??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(r||i)&&(0,y.jsxs)(`div`,{className:`hts-meta`,children:[r&&(0,y.jsxs)(`span`,{className:`hts-chip`,children:[(0,y.jsx)(o.clock,{className:`ic`,style:{width:11,height:11}}),` `,r]}),i&&(0,y.jsx)(`span`,{className:`hts-chip hts-diff hts-diff--${i}`,children:$e[i]??i})]}),a&&(0,y.jsxs)(`div`,{className:`hts-warning`,children:[(0,y.jsx)(o.alert,{className:`ic`}),(0,y.jsx)(`span`,{children:a})]}),m.length>0&&(0,y.jsxs)(`div`,{className:`hts-tools`,children:[(0,y.jsx)(`span`,{className:`hts-tools-label`,children:`You’ll need`}),(0,y.jsx)(`div`,{className:`hts-tools-chips`,children:m.map((e,t)=>(0,y.jsx)(`span`,{className:`hts-tool`,children:e},t))})]}),(0,y.jsx)(`ol`,{className:`hts-steps`,children:p.map((e,t)=>(0,y.jsxs)(`li`,{className:`hts-step`,children:[(0,y.jsx)(`span`,{className:`hts-num`,children:t+1}),(0,y.jsxs)(`div`,{className:`hts-body`,children:[(0,y.jsx)(`div`,{className:`hts-action`,children:e.action}),e.detail&&(0,y.jsx)(`div`,{className:`hts-detail`,children:e.detail}),e.caution&&(0,y.jsxs)(`div`,{className:`hts-caution`,children:[(0,y.jsx)(o.alert,{className:`ic`,style:{width:11,height:11}}),` `,e.caution]}),e.tip&&(0,y.jsx)(`div`,{className:`hts-tip`,children:e.tip}),e.check&&(0,y.jsxs)(`div`,{className:`hts-check`,children:[(0,y.jsx)(o.check,{className:`ic`,style:{width:11,height:11}}),` Done when:`,` `,e.check]})]})]},t))}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}var tt={"+":1,"-":1,"*":2,"/":2,"^":3};function nt(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r===` `||r===` `||r===`
2
2
  `){n++;continue}if(r>=`0`&&r<=`9`||r===`.`){let r=n+1;for(;r<e.length&&(e[r]>=`0`&&e[r]<=`9`||e[r]===`.`);)r++;t.push(e.slice(n,r)),n=r;continue}if(/[a-zA-Z_]/.test(r)){let r=n+1;for(;r<e.length&&/[a-zA-Z0-9_]/.test(e[r]);)r++;t.push(e.slice(n,r)),n=r;continue}if(`+-*/^()`.includes(r)){t.push(r),n++;continue}return null}return t}var rt=e=>e[0]>=`0`&&e[0]<=`9`||e[0]===`.`;function it(e,t){let n=nt(e||``);if(!n||!n.length)return NaN;let r=[],i=[],a=null;for(let e of n)if(rt(e)||/[a-zA-Z_]/.test(e[0]))r.push(e),a=`val`;else if(e===`(`)i.push(e),a=`lparen`;else if(e===`)`){for(;i.length&&i[i.length-1]!==`(`;)r.push(i.pop());if(!i.length)return NaN;i.pop(),a=`val`}else{let t=e;(t===`-`||t===`+`)&&(a===null||a===`op`||a===`lparen`)&&(t=t===`-`?`u-`:`u+`);let n=e=>e===`u-`||e===`u+`?4:tt[e]??0,o=t===`^`||t===`u-`||t===`u+`;for(;i.length;){let e=i[i.length-1];if(e===`(`)break;if(n(e)>n(t)||n(e)===n(t)&&!o)r.push(i.pop());else break}i.push(t),a=`op`}for(;i.length;){let e=i.pop();if(e===`(`)return NaN;r.push(e)}let o=[];for(let e of r)if(e===`u-`){if(!o.length)return NaN;o.push(-o.pop())}else if(e===`u+`){if(!o.length)return NaN}else if(e in tt){if(o.length<2)return NaN;let t=o.pop(),n=o.pop();o.push(e===`+`?n+t:e===`-`?n-t:e===`*`?n*t:e===`/`?n/t:n**+t)}else if(rt(e)){let t=Number(e);if(!isFinite(t))return NaN;o.push(t)}else{let n=t[e];if(typeof n!=`number`||!isFinite(n))return NaN;o.push(n)}return o.length===1&&isFinite(o[0])?o[0]:NaN}function at(e,t){return isFinite(e)?e.toLocaleString(void 0,{minimumFractionDigits:t,maximumFractionDigits:t}):`—`}function ot(e,t,n){if(typeof n==`number`&&n>0)return n;let r=Math.abs(t-e)||1;return r<=2?.01:r<=20?.1:r<=200?1:Math.max(1,Math.round(r/200))}function st({title:e,icon:t=`sliders`,iconColor:n=`var(--presence)`,inputs:r,formula:i,output:a,caveat:c,footer:l,delay:u}){let d=o[t]||o.sliders,f=(0,O.useMemo)(()=>r??[],[r]),[p,m]=(0,O.useState)(()=>{let e={};for(let t of f)e[t.key]=typeof t.value==`number`?t.value:t.min;return e}),h=(0,O.useMemo)(()=>it(i||``,p),[i,p]),g=a?.decimals??0;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`lc-output`,children:[(0,y.jsx)(`span`,{className:`lc-out-label`,children:a?.label}),(0,y.jsxs)(`span`,{className:`lc-out-val`,children:[a?.prefix||``,at(h,g),a?.unit?(0,y.jsxs)(`span`,{className:`lc-out-unit`,children:[` `,a.unit]}):null]})]}),(0,y.jsx)(`div`,{className:`lc-levers`,children:f.map(e=>{let t=p[e.key]??e.min;return(0,y.jsxs)(`div`,{className:`lc-lever`,children:[(0,y.jsxs)(`div`,{className:`lc-lever-top`,children:[(0,y.jsx)(`span`,{className:`lc-lever-label`,children:e.label}),(0,y.jsxs)(`span`,{className:`lc-lever-val`,children:[e.prefix||``,at(t,t%1==0?0:2),e.unit?` ${e.unit}`:``]})]}),(0,y.jsx)(`input`,{type:`range`,className:`lc-range`,min:e.min,max:e.max,step:ot(e.min,e.max,e.step),value:t,"aria-label":e.label,onChange:t=>m(n=>({...n,[e.key]:Number(t.target.value)}))})]},e.key)})}),c&&(0,y.jsxs)(`div`,{className:`lc-caveat`,children:[(0,y.jsx)(o.alert,{className:`ic`}),` `,(0,y.jsx)(`span`,{children:c})]}),l&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(l)})]})}function ct(e){let t=Math.max(0,Math.floor(e/1e3));return[{v:Math.floor(t/86400),u:`days`},{v:Math.floor(t%86400/3600),u:`hrs`},{v:Math.floor(t%3600/60),u:`min`},{v:t%60,u:`sec`}]}function lt({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,target:r,label:c,dueWhat:l,consequence:u,footer:d,delay:f}){let m=o[t]||o.clock,[h,g]=(0,O.useState)(()=>Date.now()),[_,v]=(0,O.useState)(i);(0,O.useEffect)(()=>a(e=>{v(e),e||g(Date.now())}),[]),p(()=>g(Date.now()),_?null:1e3);let b=Date.parse(r),x=!Number.isNaN(b),S=x?b-h:0,C=x&&S<=0,w=ct(S);return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),c&&(0,y.jsx)(`div`,{className:`cd-label`,children:c}),x?C?(0,y.jsx)(`div`,{className:`cd-past`,children:`Passed`}):(0,y.jsx)(`div`,{className:`cd-grid`,role:`timer`,children:w.map((e,t)=>(0,y.jsxs)(`div`,{className:`cd-cell`,children:[(0,y.jsx)(`span`,{className:`cd-num cd-num-pulse`,children:String(e.v).padStart(2,`0`)},e.v),(0,y.jsx)(`span`,{className:`cd-unit`,children:e.u})]},t))}):(0,y.jsx)(`div`,{className:`cd-note`,children:`No valid date was given for this countdown.`}),(l||u)&&(0,y.jsxs)(`div`,{className:`cd-meta`,children:[l&&(0,y.jsxs)(`div`,{className:`cd-due`,children:[(0,y.jsx)(`span`,{className:`cd-tag`,children:`Due`}),` `,l]}),u&&(0,y.jsxs)(`div`,{className:`cd-consequence`,children:[(0,y.jsx)(o.alert,{className:`ic`}),(0,y.jsx)(`span`,{children:u})]})]}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}function ut({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,entries:r,unit:i,step:a=1,footer:c,delay:l}){let u=o[t]||o.spark,d=r??[],[f,p]=(0,O.useState)(()=>d.map(e=>Number(e.score)||0)),m=(e,t)=>p(n=>n.map((n,r)=>r===e?Math.max(0,n+t):n)),h=d.map((e,t)=>({e,i:t,v:f[t]??0})).sort((e,t)=>t.v-e.v),g=h.length?h[0].v:0;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`ul`,{className:`lvs-list`,children:h.map(({e,i:t,v:n},r)=>{let o=n===g&&n>0,s=e.color||`var(--presence)`;return(0,y.jsxs)(`li`,{className:`lvs-row m-stagger-item m-fade-rise`+(o?` lead`:``),style:{"--i":r},children:[(0,y.jsx)(`span`,{className:`lvs-rank`,children:r+1}),(0,y.jsx)(`span`,{className:`lvs-dot`,style:{background:s},"aria-hidden":`true`}),(0,y.jsx)(`span`,{className:`lvs-name`,children:e.name}),(0,y.jsxs)(`span`,{className:`lvs-score`,children:[n,i?(0,y.jsxs)(`span`,{className:`lvs-unit`,children:[` `,i]}):null]}),(0,y.jsxs)(`span`,{className:`lvs-btns`,children:[(0,y.jsx)(`button`,{type:`button`,className:`lvs-btn`,"aria-label":`Subtract ${a} from ${e.name}`,onClick:()=>m(t,-a),children:`−`}),(0,y.jsx)(`button`,{type:`button`,className:`lvs-btn lvs-btn--add`,"aria-label":`Add ${a} to ${e.name}`,onClick:()=>m(t,a),children:`+`})]})]},t)})}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}function dt(e){let t=Number(e);return Number.isFinite(t)?Math.min(5,Math.max(1,t)):1}function ft({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,people:r,assignments:i,footer:a,delay:c}){let l=o[t]||o.layers,u=(r??[]).filter(e=>typeof e==`string`&&e.trim().length>0),d=(i??[]).filter(e=>!!e&&typeof e.task==`string`&&typeof e.who==`string`),f=[...u],p=new Map;for(let e of f)p.set(e,[]);for(let e of d)p.has(e.who)||(p.set(e.who,[]),f.push(e.who)),p.get(e.who).push(e);let m=e=>(p.get(e)??[]).reduce((e,t)=>e+dt(t.weight),0),h=f.reduce((e,t)=>Math.max(e,m(t)),0);return f.length===0?null:(0,y.jsxs)(`div`,{className:`card reveal alp-card`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`alp-grid`,children:f.map(e=>{let t=p.get(e)??[],n=m(e),r=h>0?Math.round(n/h*100):0;return(0,y.jsxs)(`div`,{className:`alp-col${h>0&&n===h?` alp-col--lead`:``}`,children:[(0,y.jsxs)(`div`,{className:`alp-col-head`,children:[(0,y.jsx)(`span`,{className:`alp-name`,children:e}),(0,y.jsxs)(`span`,{className:`alp-count`,children:[t.length,` `,t.length===1?`task`:`tasks`]})]}),(0,y.jsx)(`div`,{className:`alp-load`,role:`img`,"aria-label":`Load ${n} of ${h}`,title:`Load ${n}`,children:(0,y.jsx)(`span`,{className:`alp-load-fill`,style:{width:r+`%`}})}),t.length>0?(0,y.jsx)(`ul`,{className:`alp-tasks`,children:t.map((e,t)=>{let n=dt(e.weight);return(0,y.jsxs)(`li`,{className:`alp-task`,children:[(0,y.jsx)(`span`,{className:`alp-task-label`,children:e.task}),e.weight!=null&&(0,y.jsx)(`span`,{className:`alp-task-wt`,"aria-label":`effort ${n} of 5`,title:`Effort ${n}/5`,children:Array.from({length:5},(e,t)=>(0,y.jsx)(`span`,{className:`alp-pip${t<n?` alp-pip--on`:``}`,"aria-hidden":!0},t))})]},t)})}):(0,y.jsx)(`div`,{className:`alp-empty`,children:`No tasks yet`})]},e)})}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}function pt({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,servingSize:r,servings:i,calories:a,nutrients:c,allergens:l,caption:u,footer:d,delay:f}){let p=o[t]||o.doc,m=c.some(e=>e.dv!==void 0);return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[e&&(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),u&&(0,y.jsx)(`div`,{className:`nl-caption`,children:u}),(0,y.jsxs)(`div`,{className:`nl-panel`,children:[(0,y.jsx)(`div`,{className:`nl-heading`,children:`Nutrition Facts`}),(0,y.jsxs)(`div`,{className:`nl-serving-row`,children:[i&&(0,y.jsxs)(`span`,{className:`nl-servings`,children:[i,` servings per container`]}),(0,y.jsxs)(`div`,{className:`nl-serving`,children:[(0,y.jsx)(`span`,{children:`Serving size`}),(0,y.jsx)(`strong`,{children:r})]})]}),(0,y.jsx)(`div`,{className:`nl-rule nl-rule--thick`}),(0,y.jsxs)(`div`,{className:`nl-cal-row`,children:[(0,y.jsx)(`span`,{className:`nl-cal-label`,children:`Calories`}),(0,y.jsx)(`span`,{className:`nl-cal-num`,children:a.toLocaleString()})]}),(0,y.jsx)(`div`,{className:`nl-rule nl-rule--med`}),m&&(0,y.jsx)(`div`,{className:`nl-dv-head`,children:`% Daily Value*`}),(0,y.jsx)(`ul`,{className:`nl-nutrients`,children:c.map((e,t)=>(0,y.jsxs)(`li`,{className:`nl-nutrient${e.indent?` nl-nutrient--sub`:``}${e.bold?` nl-nutrient--bold`:``}`,children:[(0,y.jsx)(`span`,{className:`nl-n-name`,children:e.name}),(0,y.jsx)(`span`,{className:`nl-n-amount`,children:e.amount}),(0,y.jsx)(`span`,{className:`nl-n-dv`,children:e.dv===void 0?``:`${e.dv}%`})]},t))}),l&&l.length>0&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`div`,{className:`nl-rule nl-rule--thick`}),(0,y.jsxs)(`div`,{className:`nl-allergens`,children:[(0,y.jsx)(`strong`,{children:`Contains:`}),` `,l.join(`, `)]})]}),m&&(0,y.jsx)(`div`,{className:`nl-foot`,children:`* Percent Daily Values are based on a 2,000 calorie diet.`})]}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}var mt={flex:1,minWidth:0,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`};function ht({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,quantity:r,from:i,equivalents:a,category:l,caption:u,footer:d,delay:f}){let p=o[t]||o.table;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[e&&(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),u&&(0,y.jsx)(`div`,{className:`uc-caption`,children:u}),(0,y.jsxs)(`div`,{className:`uc-from`,children:[(0,y.jsx)(`span`,{className:`uc-from-qty`,children:c(r)}),(0,y.jsx)(`span`,{className:`uc-from-unit`,children:i}),l&&(0,y.jsx)(`span`,{className:`uc-category`,children:l})]}),(0,y.jsx)(`ul`,{className:`uc-rows`,children:a.map((e,t)=>(0,y.jsxs)(`li`,{className:`uc-row`,children:[(0,y.jsx)(`span`,{className:`uc-eq`,children:`=`}),(0,y.jsx)(`span`,{className:`uc-val`,children:e.value}),(0,y.jsx)(`span`,{className:`uc-unit`,style:mt,title:e.unit,children:e.unit})]},t))}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}function gt({title:e,icon:t=`check`,iconColor:n=`var(--presence)`,context:r,groups:i,caption:a,footer:c,delay:l}){let u=o[t]||o.check,d=i.flatMap(e=>e.items),f=d.length,p=d.filter(e=>e.packed).length,m=f>0?p/f*100:0;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[e&&(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),a&&(0,y.jsx)(`div`,{className:`pl-caption`,children:a}),(0,y.jsxs)(`div`,{className:`pl-overall`,children:[r&&(0,y.jsx)(`span`,{className:`pl-context`,children:r}),(0,y.jsxs)(`span`,{className:`pl-overall-count`,children:[p,` / `,f,` packed`]})]}),(0,y.jsx)(`div`,{className:`pl-bar`,role:`progressbar`,"aria-valuenow":Math.round(m),children:(0,y.jsx)(`span`,{className:`pl-bar-fill`,style:{width:`${m}%`}})}),(0,y.jsx)(`div`,{className:`pl-groups`,children:i.map((e,t)=>{let n=e.items.length,r=e.items.filter(e=>e.packed).length,i=n>0?r/n*100:0;return(0,y.jsxs)(`div`,{className:`pl-group`,children:[(0,y.jsxs)(`div`,{className:`pl-group-head`,children:[(0,y.jsx)(`span`,{className:`pl-group-name`,children:e.name}),(0,y.jsxs)(`span`,{className:`pl-group-count`,children:[r,`/`,n]})]}),(0,y.jsx)(`div`,{className:`pl-group-bar`,children:(0,y.jsx)(`span`,{className:`pl-group-bar-fill`,style:{width:`${i}%`}})}),(0,y.jsx)(`ul`,{className:`pl-items`,children:e.items.map((e,t)=>(0,y.jsxs)(`li`,{className:`pl-item${e.packed?` packed`:``}`,children:[(0,y.jsx)(`span`,{className:`pl-check`,"aria-hidden":!0,children:e.packed?(0,y.jsx)(o.check,{className:`ic`}):null}),(0,y.jsx)(`span`,{className:`pl-item-label`,children:e.label}),e.count!==void 0&&e.count>1&&(0,y.jsxs)(`span`,{className:`pl-item-count`,children:[e.count,`×`]})]},t))})]},t)})}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}var Y=40;function _t(e){return e<=13?1:e<=27?2:3}function vt({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,week:r,trimester:i,fruitSize:a,lengthCm:c,weightG:l,milestones:u,caption:d,footer:f,delay:p}){let m=o[t]||o.clock,h=Math.max(0,Math.min(Y,r)),g=h/Y*100,_=i??_t(h),v=Math.max(0,Y-h),b=28+h/Y*28;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[e&&(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),d&&(0,y.jsx)(`div`,{className:`pw-caption`,children:d}),(0,y.jsxs)(`div`,{className:`pw-head`,children:[(0,y.jsxs)(`div`,{className:`pw-week`,children:[(0,y.jsx)(`span`,{className:`pw-week-num`,children:h}),(0,y.jsx)(`span`,{className:`pw-week-unit`,children:`weeks`})]}),(0,y.jsxs)(`div`,{className:`pw-tri`,children:[(0,y.jsxs)(`span`,{className:`pw-tri-label`,children:[`Trimester `,_]}),(0,y.jsxs)(`span`,{className:`pw-togo`,children:[v,` weeks to go`]})]})]}),(0,y.jsxs)(`div`,{className:`pw-bar`,role:`progressbar`,"aria-valuenow":h,"aria-valuemax":Y,children:[(0,y.jsx)(`span`,{className:`pw-bar-fill`,style:{width:`${g}%`}}),(0,y.jsxs)(`span`,{className:`pw-bar-marks`,"aria-hidden":!0,children:[(0,y.jsx)(`span`,{className:`pw-bar-tick`,style:{left:`${13/Y*100}%`}}),(0,y.jsx)(`span`,{className:`pw-bar-tick`,style:{left:`${27/Y*100}%`}})]})]}),(0,y.jsxs)(`div`,{className:`pw-bar-legend`,children:[(0,y.jsx)(`span`,{children:`1st`}),(0,y.jsx)(`span`,{children:`2nd`}),(0,y.jsx)(`span`,{children:`3rd`})]}),(a||c!==void 0||l!==void 0)&&(0,y.jsxs)(`div`,{className:`pw-stats`,children:[a&&(0,y.jsxs)(`div`,{className:`pw-fruit`,children:[(0,y.jsx)(`span`,{className:`pw-fruit-disc`,style:{width:b,height:b},"aria-hidden":!0}),(0,y.jsxs)(`div`,{className:`pw-fruit-text`,children:[(0,y.jsx)(`span`,{className:`pw-stat-label`,children:`Size of a`}),(0,y.jsx)(`span`,{className:`pw-fruit-name`,children:a})]})]}),(0,y.jsxs)(`div`,{className:`pw-measures`,children:[c!==void 0&&(0,y.jsxs)(`div`,{className:`pw-measure`,children:[(0,y.jsx)(`span`,{className:`pw-stat-label`,children:`Length`}),(0,y.jsxs)(`span`,{className:`pw-stat-val`,children:[c,` cm`]})]}),l!==void 0&&(0,y.jsxs)(`div`,{className:`pw-measure`,children:[(0,y.jsx)(`span`,{className:`pw-stat-label`,children:`Weight`}),(0,y.jsxs)(`span`,{className:`pw-stat-val`,children:[l,` g`]})]})]})]}),u&&u.length>0&&(0,y.jsx)(`ul`,{className:`pw-milestones`,children:u.map((e,t)=>(0,y.jsx)(`li`,{className:`pw-milestone`,children:e},t))}),f&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(f)})]})}function yt({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,cycleLength:r,periodDays:i,currentDay:a,fertileWindow:c,ovulationDay:l,caption:u,footer:d,delay:f}){let p=o[t]||o.clock,m=Math.max(1,Math.round(r)),h=Math.max(0,Math.min(m,Math.round(i))),g=c&&[Math.max(1,Math.min(m,c[0])),Math.max(1,Math.min(m,c[1]))].sort((e,t)=>e-t),_=l===void 0?void 0:Math.max(1,Math.min(m,Math.round(l))),v=a===void 0?void 0:Math.max(1,Math.min(m,Math.round(a))),b=304/m,x=e=>8+(e-1)*b,S=e=>e<=h?`period`:g&&e>=g[0]&&e<=g[1]?`fertile`:`plain`,C=Array.from({length:m},(e,t)=>t+1),w=v===void 0?void 0:x(v)+b/2;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[e&&(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),u&&(0,y.jsx)(`div`,{className:`ct-caption`,children:u}),(0,y.jsxs)(`svg`,{className:`ct-band`,viewBox:`0 0 320 64`,preserveAspectRatio:`none`,role:`img`,"aria-label":`Cycle of ${m} days, ${h} period days`,children:[C.map(e=>{let t=S(e);return(0,y.jsx)(`rect`,{className:`ct-day ct-day--${t}`,x:x(e)+.6,y:26,width:Math.max(.5,b-1.2),height:18,rx:2},e)}),_!==void 0&&(0,y.jsx)(`circle`,{className:`ct-ovulation`,cx:x(_)+b/2,cy:35,r:Math.min(b,18)/2-.5}),w!==void 0&&(0,y.jsxs)(`g`,{className:`ct-today`,children:[(0,y.jsx)(`line`,{x1:w,y1:18,x2:w,y2:46}),(0,y.jsx)(`text`,{x:w,y:15,textAnchor:w<16?`start`:w>304?`end`:`middle`,className:`ct-today-label`,children:`Today`})]}),(0,y.jsx)(`text`,{x:x(1)+b/2,y:60,className:`ct-axis`,children:`1`}),(0,y.jsx)(`text`,{x:x(m)+b/2,y:60,className:`ct-axis ct-axis--end`,children:m})]}),(0,y.jsxs)(`div`,{className:`ct-legend`,children:[(0,y.jsxs)(`span`,{className:`ct-leg ct-leg--period`,children:[`Period · days 1–`,h]}),g&&(0,y.jsxs)(`span`,{className:`ct-leg ct-leg--fertile`,children:[`Fertile · days `,g[0],`–`,g[1]]}),_!==void 0&&(0,y.jsxs)(`span`,{className:`ct-leg ct-leg--ov`,children:[`Ovulation · day `,_]})]}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}function bt({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,contractions:r,rule:i,caption:a,footer:c,delay:l}){let u=o[t]||o.clock,d=r??[],f=d.reduce((e,t)=>Math.max(e,t.durationSec||0),0)||1,p=d.map(e=>e.intervalMin).filter(e=>e!==void 0),m=p.reduce((e,t)=>Math.max(e,t),0)||1,h=d.length?Math.round(d.reduce((e,t)=>e+(t.durationSec||0),0)/d.length):0,g=p.length?Math.round(p.reduce((e,t)=>e+t,0)/p.length*10)/10:void 0,_=e=>{let t=Math.floor(e/60),n=e%60;return t>0?`${t}m ${String(n).padStart(2,`0`)}s`:`${n}s`};return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[e&&(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),a&&(0,y.jsx)(`div`,{className:`cn-caption`,children:a}),(0,y.jsxs)(`div`,{className:`cn-readouts`,children:[(0,y.jsxs)(`div`,{className:`cn-readout`,children:[(0,y.jsx)(`span`,{className:`cn-ro-val`,children:_(h)}),(0,y.jsx)(`span`,{className:`cn-ro-label`,children:`avg duration`})]}),(0,y.jsxs)(`div`,{className:`cn-readout`,children:[(0,y.jsx)(`span`,{className:`cn-ro-val`,children:g===void 0?`—`:`${g} min`}),(0,y.jsx)(`span`,{className:`cn-ro-label`,children:`avg apart`})]}),(0,y.jsxs)(`div`,{className:`cn-readout`,children:[(0,y.jsx)(`span`,{className:`cn-ro-val`,children:d.length}),(0,y.jsx)(`span`,{className:`cn-ro-label`,children:`logged`})]})]}),d.length>0&&(0,y.jsx)(`div`,{className:`cn-strip`,role:`img`,"aria-label":`${d.length} contractions`,children:d.map((e,t)=>{let n=28+e.durationSec/f*40,r=e.intervalMin===void 0?0:e.intervalMin/m*100;return(0,y.jsxs)(`div`,{className:`cn-slot`,style:{flexGrow:t<d.length-1?Math.max(.4,r/100+.4):.4},children:[(0,y.jsx)(`div`,{className:`cn-bar`,style:{height:n},title:`${e.start} · ${_(e.durationSec)}`}),(0,y.jsx)(`span`,{className:`cn-bar-time`,children:e.start}),e.intervalMin!==void 0&&t<d.length-1&&(0,y.jsxs)(`span`,{className:`cn-gap-label`,style:{top:t%2==0?`18%`:`62%`},children:[e.intervalMin,`m`]})]},t)})}),i&&(0,y.jsxs)(`div`,{className:`cn-rule`,children:[(0,y.jsx)(o.bell,{className:`ic`}),(0,y.jsxs)(`span`,{children:[`Go in at the `,(0,y.jsx)(`strong`,{children:i}),` rule — contractions `,i.split(`-`)[0],` min apart, ~`,i.split(`-`)[1],` min each, for `,i.split(`-`)[2],` hour.`]})]}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}function xt(e){return e<=6?{nameSize:11,timeSize:10,maxChars:12}:e<=9?{nameSize:9.5,timeSize:8.5,maxChars:9}:e<=13?{nameSize:8,timeSize:7.2,maxChars:7}:{nameSize:7,timeSize:6.4,maxChars:5}}function St(e,t){return e.length>t?e.slice(0,t-1).trimEnd()+`…`:e}function Ct(e){let t=e.trim().toLowerCase();if(t===`noon`||t===`midday`)return 720;if(t===`midnight`)return 0;let n=t.match(/^(\d{1,2})(?::(\d{1,2}))?\s*(am|pm)?/);if(!n)return null;let r=Number(n[1]),i=n[2]?Number(n[2]):0,a=n[3];return r>23||i>59?null:(a===`pm`&&r<12&&(r+=12),a===`am`&&r===12&&(r=0),r*60+i)}function wt({title:e,icon:t=`sun`,iconColor:n=`var(--warning)`,date:r,location:i,slots:a,next:c,sunArc:l=!0,caption:u,footer:d,delay:f}){let p=o[t]||o.sun,m=(a??[]).map(e=>({...e,mins:Ct(e.time)})).filter(e=>e.mins!==null),h=xt(m.length),g=m.map(e=>e.mins),_=g.length?Math.min(...g):360,v=g.length?Math.max(...g):1080,b=(v>_?v:_+720)-_,x=e=>(e-_)/b,S=c?.trim().toLowerCase(),C=S?m.findIndex(e=>e.name.trim().toLowerCase()===S):-1,w=C>0?m[C].mins-m[C-1].mins:null,T=w!==null&&w>0?w>=60?`${Math.floor(w/60)}h ${w%60}m`.replace(` 0m`,``):`${w}m`:null,E=e=>22+e*276,D=E(0),O=E(1),k=e=>{let t=1-e;return t*t*116+2*t*e*-56+e*e*116};return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[e&&(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(r||i)&&(0,y.jsxs)(`div`,{className:`pt-meta`,children:[r&&(0,y.jsx)(`span`,{className:`pt-date`,children:r}),r&&i&&(0,y.jsx)(`span`,{className:`pt-dot`,"aria-hidden":`true`}),i&&(0,y.jsxs)(`span`,{className:`pt-loc`,children:[(0,y.jsx)(o.globe,{className:`ic`}),` `,i]})]}),u&&(0,y.jsx)(`div`,{className:`pt-caption`,children:u}),l&&m.length>0&&(0,y.jsxs)(`svg`,{className:`pt-arc`,viewBox:`0 0 320 150`,role:`img`,"aria-label":`Day arc of devotional times from dawn to dusk`,children:[(0,y.jsx)(`line`,{className:`pt-horizon`,x1:0,y1:116,x2:320,y2:116}),(0,y.jsx)(`path`,{className:`pt-curve`,d:`M ${D} 116 Q ${(D+O)/2} -56 ${O} 116`,fill:`none`}),m.map((e,t)=>{let n=x(e.mins),r=E(n),i=k(n),a=t===C,o=i<64,s=St(e.name,h.maxChars),c=s!==e.name;return(0,y.jsxs)(`g`,{className:`pt-slot${a?` is-next`:``}`,children:[(0,y.jsx)(`line`,{className:`pt-stem`,x1:r,y1:i,x2:r,y2:116}),(0,y.jsx)(`circle`,{className:`pt-dot`,cx:r,cy:i,r:a?6:3.6}),a&&(0,y.jsx)(`circle`,{className:`pt-halo`,cx:r,cy:i,r:11}),(0,y.jsxs)(`text`,{className:`pt-name`,x:r,y:o?i+18:i-14,textAnchor:`middle`,fontSize:h.nameSize,children:[s,c&&(0,y.jsx)(`title`,{children:e.name})]}),(0,y.jsx)(`text`,{className:`pt-time`,x:r,y:o?i+30:i-4,textAnchor:`middle`,fontSize:h.timeSize,children:e.time})]},t)})]}),(0,y.jsx)(`div`,{className:`pt-list`,children:m.map((e,t)=>(0,y.jsxs)(`div`,{className:`pt-row${t===C?` is-next`:``}`,children:[(0,y.jsx)(`span`,{className:`pt-row-name`,children:e.name}),(0,y.jsx)(`span`,{className:`pt-row-time`,children:e.time}),t===C&&(0,y.jsx)(`span`,{className:`pt-next-tag`,children:T?`Up next · ${T}`:`Up next`})]},t))}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}var Tt={flammable:`Flammable`,corrosive:`Corrosive`,toxic:`Toxic`,oxidizer:`Oxidizer`,irritant:`Irritant`},Et=new Set([`corrosive`,`toxic`]);function Dt(e){let t=(0,M.c)(5),{duration:n,temp:r,small:i}=e;if(!n&&!r)return null;let a=`labp-cond${i?` labp-cond--sm`:``}`,o=n&&r?` · `:``,s;return t[0]!==n||t[1]!==a||t[2]!==o||t[3]!==r?(s=(0,y.jsxs)(`span`,{className:a,children:[n,o,r]}),t[0]=n,t[1]=a,t[2]=o,t[3]=r,t[4]=s):s=t[4],s}function Ot({title:e,icon:t=`sparkle`,iconColor:n=`var(--presence)`,reagents:r,equipment:i,steps:a,cycles:c,footer:l,delay:u}){let d=o[t]||o.sparkle,f=Array.isArray(r)?r:[],p=Array.isArray(i)?i:[],m=Array.isArray(a)?a:[],h=c&&Array.isArray(c.steps)?c.steps:[],g=c&&Number.isFinite(c.repeat)&&c.repeat>0?Math.round(c.repeat):0,_=h.length>0&&g>0,v=f.length>0||p.length>0;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:v?`labp-body`:`labp-body labp-body--full`,children:[v&&(0,y.jsxs)(`div`,{className:`labp-sidebar`,children:[f.length>0&&(0,y.jsxs)(`div`,{className:`labp-section`,children:[(0,y.jsx)(`div`,{className:`labp-section-label`,children:`Reagents`}),(0,y.jsx)(`ul`,{className:`labp-reagent-list`,children:f.map((e,t)=>(0,y.jsxs)(`li`,{className:`labp-reagent`,children:[(0,y.jsxs)(`div`,{className:`labp-reagent-row`,children:[(e.amount||e.conc)&&(0,y.jsxs)(`span`,{className:`labp-reagent-qty`,children:[e.amount,e.amount&&e.conc?` · `:``,e.conc]}),(0,y.jsx)(`span`,{className:`labp-reagent-name`,children:e.name})]}),e.hazard&&Tt[e.hazard]&&(0,y.jsxs)(`span`,{className:Et.has(e.hazard)?`labp-hazard labp-hazard--danger`:`labp-hazard labp-hazard--warning`,children:[(0,y.jsx)(o.alert,{className:`ic`,style:{width:10,height:10}}),Tt[e.hazard]]})]},t))})]}),p.length>0&&(0,y.jsxs)(`div`,{className:`labp-section`,children:[(0,y.jsx)(`div`,{className:`labp-section-label`,children:`Equipment`}),(0,y.jsx)(`ul`,{className:`labp-equip-list`,children:p.map((e,t)=>(0,y.jsx)(`li`,{className:`labp-equip`,children:e},t))})]})]}),(0,y.jsxs)(`div`,{className:`labp-procedure`,children:[(0,y.jsx)(`div`,{className:`labp-section-label`,children:`Procedure`}),(0,y.jsx)(`ol`,{className:`labp-step-list`,children:m.map((e,t)=>(0,y.jsxs)(`li`,{className:`labp-step m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,y.jsx)(`span`,{className:`labp-step-num`,children:t+1}),(0,y.jsxs)(`div`,{className:`labp-step-body`,children:[(0,y.jsxs)(`div`,{className:`labp-step-row`,children:[(0,y.jsx)(`span`,{className:`labp-step-text`,children:e.text}),(0,y.jsx)(Dt,{duration:e.duration,temp:e.temp})]}),e.caution&&(0,y.jsxs)(`div`,{className:`labp-caution`,children:[(0,y.jsx)(o.alert,{className:`ic`,style:{width:11,height:11}}),` `,e.caution]})]})]},t))}),_&&(0,y.jsxs)(`div`,{className:`labp-cycle`,children:[(0,y.jsxs)(`div`,{className:`labp-cycle-header`,children:[(0,y.jsx)(o.refresh,{className:`ic`}),(0,y.jsxs)(`span`,{children:[`Repeat ×`,g]})]}),(0,y.jsx)(`ol`,{className:`labp-cycle-list`,children:h.map((e,t)=>(0,y.jsxs)(`li`,{className:`labp-cycle-step`,children:[(0,y.jsx)(`span`,{className:`labp-cycle-num`,children:t+1}),(0,y.jsx)(`span`,{className:`labp-cycle-text`,children:e.text}),(0,y.jsx)(Dt,{duration:e.duration,temp:e.temp,small:!0})]},t))})]})]})]}),l&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(l)})]})}function kt({title:e,icon:t=`shield`,iconColor:n=`var(--presence)`,personName:r,relation:i,medications:a,appointments:c,contacts:l,footer:u,delay:d}){let f=o[t]||o.shield,p=Array.isArray(a)?a:[],m=Array.isArray(c)?c:[],h=Array.isArray(l)?l:[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`cg-person`,children:[(0,y.jsx)(`span`,{className:`cg-person-name`,children:r}),(0,y.jsx)(`span`,{className:`cg-person-relation`,children:i})]}),(0,y.jsxs)(`div`,{className:`cg-sections`,children:[p.length>0&&(0,y.jsxs)(`div`,{className:`cg-section`,children:[(0,y.jsxs)(`div`,{className:`cg-section-label`,children:[(0,y.jsx)(o.bell,{className:`ic`,style:{width:12,height:12}}),` Medications`]}),(0,y.jsx)(`ul`,{className:`cg-list`,children:p.map((e,t)=>{let n=Array.isArray(e?.times)?e.times:[];return(0,y.jsxs)(`li`,{className:`cg-med-row`,children:[(0,y.jsx)(`span`,{className:`cg-med-name`,children:e?.name}),(0,y.jsx)(`span`,{className:`cg-med-times`,children:n.map((e,t)=>(0,y.jsx)(`span`,{className:`cg-time-chip`,children:e},t))}),e?.takenBy&&(0,y.jsx)(`span`,{className:`cg-taken-by`,children:e.takenBy})]},t)})})]}),m.length>0&&(0,y.jsxs)(`div`,{className:`cg-section`,children:[(0,y.jsxs)(`div`,{className:`cg-section-label`,children:[(0,y.jsx)(o.clock,{className:`ic`,style:{width:12,height:12}}),` Appointments`]}),(0,y.jsx)(`ul`,{className:`cg-list`,children:m.map((e,t)=>(0,y.jsxs)(`li`,{className:`cg-appt-row`,children:[(0,y.jsx)(`span`,{className:`cg-appt-date`,children:e?.date}),(0,y.jsxs)(`span`,{className:`cg-appt-body`,children:[(0,y.jsx)(`span`,{className:`cg-appt-provider`,children:e?.provider}),(0,y.jsx)(`span`,{className:`cg-appt-purpose`,children:e?.purpose})]})]},t))})]}),h.length>0&&(0,y.jsxs)(`div`,{className:`cg-section`,children:[(0,y.jsxs)(`div`,{className:`cg-section-label`,children:[(0,y.jsx)(o.mail,{className:`ic`,style:{width:12,height:12}}),` Care team`]}),(0,y.jsx)(`ul`,{className:`cg-contact-list`,children:h.map((e,t)=>(0,y.jsxs)(`li`,{className:`cg-contact`,children:[(0,y.jsx)(`span`,{className:`cg-contact-name`,children:e?.name}),(0,y.jsx)(`span`,{className:`cg-contact-role`,children:e?.role}),(0,y.jsx)(`span`,{className:`cg-contact-phone`,children:e?.phone})]},t))})]})]}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}var At=[`linear-gradient(160deg, var(--presence), var(--presence-deep))`,`linear-gradient(160deg, var(--insight), var(--presence-deep))`,`linear-gradient(160deg, var(--warning), var(--presence-deep))`,`linear-gradient(160deg, var(--presence-soft), var(--insight))`,`linear-gradient(160deg, var(--insight-soft), var(--presence))`],jt={reading:`Reading`,queued:`Queued`,done:`Done`};function Mt(e){return e===`reading`?`var(--presence)`:e===`done`?`var(--insight)`:`var(--text-muted)`}function Nt({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,books:r,footer:i,delay:a}){let c=o[t]||o.doc,l=Array.isArray(r)?r:[],[u,d]=(0,O.useState)(new Set),f=e=>d(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n});return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`ul`,{className:`rl-books`,children:l.map((e,t)=>{let n=e?.status&&jt[e.status]?e.status:`queued`,r=Number.isFinite(e?.rating)?Math.min(5,Math.max(0,e?.rating)):void 0,i=Array.isArray(e?.discussionQuestions)?(e?.discussionQuestions??[]).filter(e=>typeof e==`string`&&!!e):[],a=u.has(t);return(0,y.jsxs)(`li`,{className:`rl-book m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,y.jsx)(`span`,{className:`rl-cover`,"aria-hidden":`true`,style:{background:At[t%At.length]}}),(0,y.jsxs)(`div`,{className:`rl-book-body`,children:[(0,y.jsxs)(`div`,{className:`rl-book-head`,children:[(0,y.jsx)(`span`,{className:`rl-book-title`,children:e?.title}),(0,y.jsx)(`span`,{className:`rl-status-pill`,style:{color:Mt(n)},children:jt[n]})]}),(0,y.jsxs)(`div`,{className:`rl-book-meta`,children:[(0,y.jsx)(`span`,{className:`rl-author`,children:e?.author}),r!==void 0&&(0,y.jsxs)(`span`,{className:`rl-stars`,"aria-hidden":`true`,children:[(0,y.jsx)(`span`,{className:`rl-stars-fill`,style:{width:r/5*100+`%`},children:`★★★★★`}),(0,y.jsx)(`span`,{className:`rl-stars-track`,children:`★★★★★`})]})]}),i.length>0&&(0,y.jsxs)(`div`,{className:`rl-questions-section`,children:[(0,y.jsxs)(`button`,{className:`rl-questions-toggle`,onClick:()=>f(t),children:[(0,y.jsx)(o.chat,{className:`ic`,style:{width:12,height:12}}),a?`Hide discussion questions`:`${i.length} discussion question${i.length>1?`s`:``}`]}),a&&(0,y.jsx)(`ol`,{className:`rl-questions-list`,children:i.map((e,t)=>(0,y.jsx)(`li`,{className:`rl-question`,children:e},t))})]})]})]},t)})}),i&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(i)})]})}function Pt({title:e,icon:t=`sparkle`,iconColor:n=`var(--presence)`,pours:r,notes:i,rating:a,footer:c,delay:l}){let u=o[t]||o.sparkle,d=Array.isArray(r)?r:[],f=Number.isFinite(a)?Math.min(5,Math.max(0,a)):void 0,p=[];return i?.aroma&&p.push({label:`Aroma`,text:i.aroma}),i?.taste&&p.push({label:`Taste`,text:i.taste}),i?.finish&&p.push({label:`Finish`,text:i.finish}),(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),f!==void 0&&(0,y.jsxs)(`div`,{className:`cc-rating`,children:[(0,y.jsxs)(`span`,{className:`cc-stars`,"aria-hidden":`true`,children:[(0,y.jsx)(`span`,{className:`cc-stars-fill`,style:{width:f/5*100+`%`},children:`★★★★★`}),(0,y.jsx)(`span`,{className:`cc-stars-track`,children:`★★★★★`})]}),(0,y.jsx)(`span`,{className:`cc-rating-val tab-num`,children:f.toFixed(1)})]}),(0,y.jsx)(`div`,{className:`cc-section-label`,children:`Build`}),(0,y.jsx)(`ol`,{className:`cc-pour-list`,children:d.map((e,t)=>(0,y.jsxs)(`li`,{className:`cc-pour`,children:[(0,y.jsx)(`span`,{className:`cc-pour-num`,children:t+1}),e?.qty&&(0,y.jsx)(`span`,{className:`cc-pour-qty`,children:e.qty}),(0,y.jsx)(`span`,{className:`cc-pour-item`,children:e?.item})]},t))}),p.length>0&&(0,y.jsx)(`div`,{className:`cc-notes`,children:p.map(e=>(0,y.jsxs)(`div`,{className:`cc-note-row`,children:[(0,y.jsx)(`span`,{className:`cc-note-label`,children:e.label}),(0,y.jsx)(`span`,{className:`cc-note-text`,children:e.text})]},e.label))}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}var Ft=320,It=150,Lt=30,X=12,Rt=280,Z=116;function zt(e){if(!e)return null;let t=e.trim().match(/^(\d{1,2}):([0-5]\d)$/);return t?Number(t[1])*60+Number(t[2]):null}function Bt(e){return Number.isFinite(e?.distance)?Math.max(0,e.distance):0}function Vt({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,unit:r=`mi`,entries:i,footer:a,delay:c}){let f=o[t]||o.chart,p=Array.isArray(i)?i:[],m=(0,O.useRef)(null),h=(0,O.useRef)(null);d(m,{delay:c}),d(h,{delay:(c||0)+120});let g=(0,O.useMemo)(()=>{let e=Array.isArray(i)?i:[];if(e.length<2)return null;let t=e.map(Bt),[n,r]=u(0,Math.max(...t,1)),a=r-n||1,o=e=>X+(1-(e-n)/a)*Z,s=l(n,r,(r-n)/4||1),c=e.map(e=>zt(e.pace)),d=c.filter(e=>e!==null),f=d.length>=2,p=f?Math.min(...d):0,m=(f?Math.max(...d):1)-p||1,h=e=>X+(e-p)/m*Z,g=e.length,_=e=>Lt+(g>1?e/(g-1)*Rt:Rt/2),v=t.map((e,t)=>({x:_(t),y:o(e)})),y=f?c.map((e,t)=>e===null?null:{x:_(t),y:h(e)}).filter(e=>e!==null):[],b=e=>e.map((e,t)=>`${t===0?`M`:`L`}${e.x} ${e.y}`).join(` `);return{yTicks:s,dMax:r,distPts:v,pacePts:y,hasPace:f,distPath:b(v),pacePath:b(y)}},[i]);return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`ul`,{className:`rn-entries`,children:p.map((e,t)=>(0,y.jsxs)(`li`,{className:`rn-entry`,children:[(0,y.jsx)(`span`,{className:`rn-date`,children:e?.date}),(0,y.jsxs)(`span`,{className:`rn-body`,children:[e?.route&&(0,y.jsx)(`span`,{className:`rn-route`,children:e.route}),Number.isFinite(e?.elevationGainM)&&e?.elevationGainM>0&&(0,y.jsxs)(`span`,{className:`rn-elev`,children:[`+`,Math.round(e.elevationGainM),`m`]})]}),(0,y.jsxs)(`span`,{className:`rn-stats`,children:[(0,y.jsxs)(`span`,{className:`rn-distance tab-num`,children:[Number.isFinite(e?.distance)?e.distance:`—`,` `,r]}),e?.pace&&(0,y.jsxs)(`span`,{className:`rn-pace tab-num`,children:[e.pace,`/`,r]})]})]},t))}),g&&(0,y.jsxs)(`div`,{className:`rn-chart-wrap`,children:[(0,y.jsxs)(`svg`,{viewBox:`0 0 ${Ft} ${It}`,className:`rn-chart`,role:`img`,"aria-label":`${e} distance and pace trend`,children:[g.yTicks.map((e,t)=>{let n=X+(1-e/g.dMax)*Z;return(0,y.jsxs)(`g`,{children:[(0,y.jsx)(`line`,{x1:Lt,y1:n,x2:310,y2:n,className:`rn-grid`}),(0,y.jsx)(`text`,{x:25,y:n+3,textAnchor:`end`,className:`rn-tick`,children:e})]},t)}),g.hasPace&&(0,y.jsx)(`path`,{ref:h,d:g.pacePath,fill:`none`,stroke:`var(--warning)`,strokeWidth:1.8,strokeDasharray:`4 3`,strokeLinejoin:`round`,strokeLinecap:`round`}),(0,y.jsx)(`path`,{ref:m,d:g.distPath,fill:`none`,stroke:`var(--presence)`,strokeWidth:2.2,strokeLinejoin:`round`,strokeLinecap:`round`}),g.distPts.map((e,t)=>(0,y.jsx)(`circle`,{cx:e.x,cy:e.y,r:2.6,fill:`var(--presence)`},t))]}),(0,y.jsxs)(`div`,{className:`rn-legend`,children:[(0,y.jsxs)(`span`,{className:`rn-leg`,children:[(0,y.jsx)(`i`,{className:`solid`}),` Distance (`,r,`)`]}),g.hasPace&&(0,y.jsxs)(`span`,{className:`rn-leg`,children:[(0,y.jsx)(`i`,{className:`dashed`}),` Pace (faster is higher)`]})]})]}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}function Ht(e){let t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?`?`:((t[0]?.[0]||``)+(t[1]?.[0]||t[0]?.[1]||``)).toUpperCase()}function Ut({title:e,icon:t=`eye`,iconColor:n=`var(--presence)`,name:r,role:i,goals:a,frustrations:c,quote:l,behaviors:u,footer:d,delay:f}){let p=o[t]||o.eye,m=Array.isArray(a)?a:[],h=Array.isArray(c)?c:[],g=Array.isArray(u)?u:[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`up-header`,children:[(0,y.jsx)(`span`,{className:`up-portrait`,"aria-hidden":`true`,children:Ht(r||`?`)}),(0,y.jsxs)(`div`,{className:`up-identity`,children:[(0,y.jsx)(`span`,{className:`up-name`,children:r}),i&&(0,y.jsx)(`span`,{className:`up-role`,children:i})]})]}),l&&(0,y.jsxs)(`div`,{className:`up-quote`,children:[`“`,l,`”`]}),(m.length>0||h.length>0)&&(0,y.jsxs)(`div`,{className:`up-columns`,children:[m.length>0&&(0,y.jsxs)(`div`,{className:`up-col up-col--goals`,children:[(0,y.jsxs)(`div`,{className:`up-col-label`,children:[(0,y.jsx)(o.check,{className:`ic`,style:{width:12,height:12}}),` Goals`]}),(0,y.jsx)(`ul`,{className:`up-list`,children:m.map((e,t)=>(0,y.jsx)(`li`,{children:e},t))})]}),h.length>0&&(0,y.jsxs)(`div`,{className:`up-col up-col--frustrations`,children:[(0,y.jsxs)(`div`,{className:`up-col-label`,children:[(0,y.jsx)(o.alert,{className:`ic`,style:{width:12,height:12}}),` Frustrations`]}),(0,y.jsx)(`ul`,{className:`up-list`,children:h.map((e,t)=>(0,y.jsx)(`li`,{children:e},t))})]})]}),g.length>0&&(0,y.jsxs)(`div`,{className:`up-behaviors`,children:[(0,y.jsx)(`div`,{className:`up-col-label`,children:`Observed behaviors`}),(0,y.jsx)(`div`,{className:`up-behavior-chips`,children:g.map((e,t)=>(0,y.jsx)(`span`,{className:`up-behavior-chip`,children:e},t))})]}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}function Wt(e){let t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?`?`:((t[0]?.[0]||``)+(t[1]?.[0]||t[0]?.[1]||``)).toUpperCase()}var Gt={done:`Done`,live:`Live`,next:`Up next`,pending:`Pending`};function Kt({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,eventDate:r,cues:i,footer:a,delay:c}){let l=o[t]||o.clock,u=Array.isArray(i)?i:[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`ro-date`,children:r}),(0,y.jsx)(`ol`,{className:`ro-cues`,children:u.map((e,t)=>{let n=e?.state&&Gt[e.state]?e.state:`pending`,r=n===`live`;return(0,y.jsxs)(`li`,{className:`ro-cue ro-cue--${n}`,...r?{"data-mark":`circle`}:{},children:[(0,y.jsx)(`span`,{className:`ro-time`,children:e?.time}),(0,y.jsxs)(`span`,{className:`ro-rail`,"aria-hidden":`true`,children:[(0,y.jsx)(`span`,{className:`ro-dot`}),t<u.length-1&&(0,y.jsx)(`span`,{className:`ro-line`})]}),(0,y.jsxs)(`span`,{className:`ro-body`,children:[(0,y.jsxs)(`span`,{className:`ro-cue-head`,children:[(0,y.jsx)(`span`,{className:`ro-cue-text`,children:e?.cue}),(0,y.jsx)(`span`,{className:`ro-state-pill`,children:Gt[n]})]}),(0,y.jsxs)(`span`,{className:`ro-meta`,children:[e?.duration&&(0,y.jsx)(`span`,{className:`ro-duration`,children:e.duration}),e?.owner&&(0,y.jsxs)(`span`,{className:`ro-owner`,title:e.owner,children:[(0,y.jsx)(`span`,{className:`ro-owner-chip`,children:Wt(e.owner)}),e.owner]})]})]})]},t)})}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}function qt({title:e,icon:t=`mic`,iconColor:n=`var(--presence)`,guest:r,topics:i,chapters:a,footer:c,delay:l}){let u=o[t]||o.mic,d=Array.isArray(i)?i:[],f=Array.isArray(a)?a:[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsxs)(`div`,{className:`pp-guest`,children:[(0,y.jsx)(o.chat,{className:`ic`,style:{width:13,height:13}}),(0,y.jsx)(`span`,{className:`pp-guest-label`,children:`Guest`}),(0,y.jsx)(`span`,{className:`pp-guest-name`,children:r})]}),d.length>0&&(0,y.jsx)(`ol`,{className:`pp-topics`,children:d.map((e,t)=>{let n=f[t];return(0,y.jsxs)(`li`,{className:`pp-topic`,children:[(0,y.jsx)(`span`,{className:`pp-topic-num`,children:t+1}),(0,y.jsx)(`span`,{className:`pp-topic-text`,children:e}),n?.timecode&&(0,y.jsx)(`span`,{className:`pp-timecode`,children:n.timecode})]},t)})}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}var Jt=320,Yt=116,Xt=24,Q=66;function Zt(e){let t=Date.parse(e);if(!Number.isNaN(t))return t/864e5;let n=e.trim().toLowerCase().match(/(\d+(?:\.\d+)?)\s*(day|week|month|year)/);if(!n)return null;let r=Number(n[1]),i=n[2];return r*(i===`day`?1:i===`week`?7:i===`month`?30.44:365.25)}function Qt(e){return e<=5?{fontSize:9,maxChars:14}:e<=9?{fontSize:8,maxChars:10}:{fontSize:7,maxChars:7}}function $t(e,t){return e.length>t?e.slice(0,t-1).trimEnd()+`…`:e}function en(e){return e===`done`?`var(--insight)`:e===`overdue`?`var(--danger)`:`var(--warning)`}var tn={done:`Done`,due:`Due`,overdue:`Overdue`};function nn({title:e,icon:t=`shield`,iconColor:n=`var(--presence)`,doses:r,footer:i,delay:a}){let c=o[t]||o.shield,l=Array.isArray(r)?r:[],u=l.map((e,t)=>({dose:e,i:t,t:e?.dueAt?Zt(e.dueAt):null})).filter(e=>e.t!==null),d=u.map(e=>e.t),f=d.length?Math.min(...d):0,p=d.length?Math.max(...d):1,m=(p>f?p:f+1)-f,h=e=>Xt+(e-f)/m*272;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),u.length>0&&(0,y.jsxs)(`svg`,{className:`vx-axis`,viewBox:`0 0 ${Jt} ${Yt}`,role:`img`,"aria-label":`Vaccination doses plotted by due date`,children:[(0,y.jsx)(`line`,{className:`vx-line`,x1:Xt,y1:Q,x2:296,y2:Q}),(()=>{let e=Qt(u.length);return u.map(({dose:t,i:n},r)=>{let i=h(u[r].t),a=r%2==1,o=en(t.status),s=$t(t.vaccine??``,e.maxChars),c=s!==(t.vaccine??``);return(0,y.jsxs)(`g`,{children:[(0,y.jsx)(`line`,{x1:i,y1:Q,x2:i,y2:a?82:50,stroke:o,strokeWidth:1.5}),(0,y.jsx)(`circle`,{cx:i,cy:Q,r:4,fill:o}),(0,y.jsxs)(`text`,{x:i,y:a?96:44,textAnchor:`middle`,className:`vx-label`,fontSize:e.fontSize,fill:o,children:[s,c&&(0,y.jsx)(`title`,{children:t.vaccine})]}),(0,y.jsx)(`text`,{x:i,y:a?108:56,textAnchor:`middle`,className:`vx-due`,fontSize:e.fontSize-1,children:t.dueAt})]},n)})})()]}),(0,y.jsx)(`ul`,{className:`vx-list`,children:l.map((e,t)=>{let n=e?.status??`due`,r=en(n);return(0,y.jsxs)(`li`,{className:`vx-item`,children:[(0,y.jsx)(`span`,{className:`vx-dot`,style:{background:r}}),(0,y.jsx)(`span`,{className:`vx-vaccine`,children:e?.vaccine}),(0,y.jsx)(`span`,{className:`vx-dueat`,children:e?.dueAt}),(0,y.jsx)(`span`,{className:`vx-status`,style:{color:r},children:tn[n]??n}),e?.note&&(0,y.jsx)(`span`,{className:`vx-note`,children:e.note})]},t)})}),i&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(i)})]})}var rn=340,an=190,on=44,sn=14,cn=282,ln=152,un=90,dn=[`var(--warning)`,`var(--presence)`,`var(--insight)`],fn={62:`Early`,67:`Full`,70:`Delayed`};function pn(e){return Number.isFinite(e?.monthlyBenefit)?Math.max(0,e?.monthlyBenefit):0}function mn(e){return`$`+Math.round(e).toLocaleString()}function hn({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,ages:r,breakeven:i,footer:a,delay:c}){let f=o[t]||o.chart,p=Array.isArray(r)?r:[],m=(0,O.useRef)(null),h=(0,O.useRef)(null),g=(0,O.useRef)(null),_=[m,h,g];d(m,{delay:c}),d(h,{delay:(c||0)+100}),d(g,{delay:(c||0)+200});let v=i&&Number.isFinite(i.age)?i.age:null,b=(0,O.useMemo)(()=>{let e=(Array.isArray(r)?r:[]).filter(e=>!!e&&(e.age===62||e.age===67||e.age===70));if(e.length===0)return null;let t=v===null?un:Math.min(130,Math.max(un,v+2)),n=e.map((e,n)=>{let r=pn(e),i=[];for(let n=e.age;n<=t;n++)i.push({age:n,total:r*12*(n-e.age)});return{age:e.age,monthly:r,color:dn[n%dn.length],points:i}}),i=n.flatMap(e=>e.points.map(e=>e.total)),[a,o]=u(0,Math.max(...i,1)),s=o-a||1,c=e=>on+(e-62)/(t-62||1)*cn,d=e=>sn+(1-(e-a)/s)*ln,f=l(a,o,(o-a)/4||1);return{series:n,paths:n.map(e=>({...e,d:e.points.map((e,t)=>`${t===0?`M`:`L`}${c(e.age)} ${d(e.total)}`).join(` `)})),yTicks:f,y:d,breakevenX:v!==null&&v>=62&&v<=t?c(v):null}},[r,v]);return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),p.length>0&&(0,y.jsx)(`div`,{className:`cac-kpis`,children:p.map((e,t)=>{let n=e?.age;return(0,y.jsxs)(`div`,{className:`cac-kpi`,children:[(0,y.jsx)(`span`,{className:`cac-kpi-label`,children:n===void 0?`—`:fn[n]??`Age ${n}`}),(0,y.jsx)(`span`,{className:`cac-kpi-age tab-num`,children:n??`—`}),(0,y.jsxs)(`span`,{className:`cac-kpi-value tab-num`,children:[mn(pn(e)),`/mo`]})]},t)})}),b&&(0,y.jsxs)(`svg`,{viewBox:`0 0 ${rn} ${an}`,className:`cac-chart`,role:`img`,"aria-label":`${e} cumulative payout by claiming age`,children:[b.yTicks.map((e,t)=>(0,y.jsxs)(`g`,{children:[(0,y.jsx)(`line`,{x1:on,y1:b.y(e),x2:326,y2:b.y(e),className:`cac-grid`}),(0,y.jsx)(`text`,{x:38,y:b.y(e)+3,textAnchor:`end`,className:`cac-tick`,children:e>=1e3?`${Math.round(e/1e3)}k`:Math.round(e)})]},t)),b.breakevenX!==null&&(0,y.jsx)(`line`,{x1:b.breakevenX,y1:sn,x2:b.breakevenX,y2:166,className:`cac-breakeven`}),b.paths.map((e,t)=>(0,y.jsx)(`path`,{ref:_[t%_.length],d:e.d,fill:`none`,stroke:e.color,strokeWidth:2,strokeLinejoin:`round`,strokeLinecap:`round`},e.age)),b.breakevenX!==null&&(0,y.jsx)(`circle`,{cx:b.breakevenX,cy:166,r:3.5,fill:`var(--text-primary)`})]}),b?.breakevenX!=null&&i&&(0,y.jsxs)(`div`,{className:`cac-breakeven-note`,children:[(0,y.jsx)(o.alert,{className:`ic`,style:{width:12,height:12}}),` Breakeven at age`,` `,i.age,i.note?` — ${i.note}`:``]}),b&&(0,y.jsx)(`div`,{className:`cac-legend`,children:b.series.map(e=>(0,y.jsxs)(`span`,{className:`cac-leg`,children:[(0,y.jsx)(`i`,{style:{background:e.color}}),` Claim at `,e.age]},e.age))}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}var gn=[[`str`,`STR`],[`dex`,`DEX`],[`con`,`CON`],[`int`,`INT`],[`wis`,`WIS`],[`cha`,`CHA`]];function _n(e){let t=Math.floor((e-10)/2);return t<0?`−${-t}`:`+${t}`}function vn(e){let t=typeof e==`string`&&e.trim()!==``?Number(e):e;return typeof t==`number`&&Number.isFinite(t)?t:null}function $(e){return typeof e==`string`?e.trim():``}function yn(e){let t=vn(e);return t===null?$(e)||`—`:String(t)}function bn(e){if(!Array.isArray(e))return[];let t=[];for(let n of e)if(typeof n==`string`)n.trim()&&t.push({name:``,text:n.trim()});else if(n&&typeof n==`object`){let e=n,r=$(e.name),i=$(e.text);(r||i)&&t.push({name:r,text:i})}return t}function xn(e){return typeof e==`string`?e.trim():Array.isArray(e)?e.map(e=>$(e)).filter(Boolean).join(`, `):``}function Sn(){let e=(0,M.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,y.jsx)(`svg`,{className:`sbk-rule`,viewBox:`0 0 400 5`,preserveAspectRatio:`none`,"aria-hidden":`true`,children:(0,y.jsx)(`polygon`,{points:`0,0 400,2.5 0,5`,fill:`currentColor`})}),e[0]=t):t=e[0],t}function Cn(e){let t=(0,M.c)(4),{entries:n}=e,r;t[0]===n?r=t[1]:(r=n.map(wn),t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,y.jsx)(y.Fragment,{children:r}),t[2]=r,t[3]=i),i}function wn(e,t){return(0,y.jsxs)(`p`,{className:`sbk-entry`,children:[e.name&&(0,y.jsxs)(`span`,{className:`sbk-entry-name`,children:[e.name.replace(/\.$/,``),`.`]}),e.name&&e.text?` `:``,e.text]},t)}function Tn({title:e,icon:t=`shield`,iconColor:n=`var(--presence)`,name:r,meta:i,ac:a,hp:c,hpFormula:l,speed:u,abilities:d,saves:f,skills:p,senses:m,languages:h,challenge:g,traits:_,actions:v,reactions:b,footer:x,delay:S}){let C=o[t]||o.shield,w=d&&typeof d==`object`&&!Array.isArray(d)?d:{},T=bn(_),E=bn(v),D=bn(b),O=[],k=xn(f),A=xn(p);k&&O.push([`Saving Throws`,k]),A&&O.push([`Skills`,A]),$(m)&&O.push([`Senses`,$(m)]),$(h)&&O.push([`Languages`,$(h)]),$(g)&&O.push([`Challenge`,$(g)]);let j=T.length+E.length+D.length>0,ee=$(l);return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(S||0)+`ms`},children:[e&&(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(C,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`sbk-panel`,children:[(0,y.jsx)(`div`,{className:`sbk-name`,children:$(r)||`—`}),$(i)&&(0,y.jsx)(`div`,{className:`sbk-meta`,children:$(i)}),(0,y.jsx)(Sn,{}),(0,y.jsxs)(`div`,{className:`sbk-vitals`,children:[(0,y.jsxs)(`div`,{className:`sbk-line`,children:[(0,y.jsx)(`strong`,{children:`Armor Class`}),` `,yn(a)]}),(0,y.jsxs)(`div`,{className:`sbk-line`,children:[(0,y.jsx)(`strong`,{children:`Hit Points`}),` `,yn(c),ee?` (${ee})`:``]}),$(u)&&(0,y.jsxs)(`div`,{className:`sbk-line`,children:[(0,y.jsx)(`strong`,{children:`Speed`}),` `,$(u)]})]}),(0,y.jsx)(Sn,{}),(0,y.jsx)(`div`,{className:`sbk-abilities`,children:gn.map(([e,t])=>{let n=vn(w[e]);return(0,y.jsxs)(`div`,{className:`sbk-ab`,children:[(0,y.jsx)(`div`,{className:`sbk-ab-key`,children:t}),(0,y.jsx)(`div`,{className:`sbk-ab-score`,children:n===null?`—`:n}),(0,y.jsx)(`div`,{className:`sbk-ab-mod`,children:n===null?`\xA0`:_n(n)})]},e)})}),O.length>0&&(0,y.jsx)(`div`,{className:`sbk-details`,children:O.map(([e,t])=>(0,y.jsxs)(`div`,{className:`sbk-line`,children:[(0,y.jsx)(`strong`,{children:e}),` `,t]},e))}),j&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Sn,{}),(0,y.jsxs)(`div`,{className:`sbk-sections`,children:[(0,y.jsx)(Cn,{entries:T}),E.length>0&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`div`,{className:`sbk-heading`,children:`Actions`}),(0,y.jsx)(Cn,{entries:E})]}),D.length>0&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`div`,{className:`sbk-heading`,children:`Reactions`}),(0,y.jsx)(Cn,{entries:D})]})]})]})]}),x&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(x)})]})}var En=e({everydayRegistry:()=>Dn}),Dn={forecast:f(x),weathernow:f(C),tierlist:f(T),paystub:f(D),taxbracket:f(ne),menucard:f(re),familytree:f(he),seatingchart:f(be),relationshipmap:f(Ae),meetingnotes:f(je),stickerchart:f(Pe),agenda:f(Fe),picks:f(Ie),timezones:f(Re),transitroute:f(ze),amortization:f(Le),receipt:f(Be),settleup:f(He),bracketbar:f(Ue),recipecard:f(We),workoutplan:f(Ge),medicationschedule:f(qe),macrobreakdown:f(Je),plangrid:f(Xe),budgetallocator:f(Qe),howtosteps:f(et),livecompute:f(st),countdown:f(lt),livescore:f(ut),allocatepeople:f(ft),nutritionlabel:f(pt),unitconvert:f(ht),packlist:f(gt),pregnancyweek:f(vt),cycletrack:f(yt),contractiontimer:f(bt),prayertimes:f(wt),labprotocol:f(Ot),caregivercoord:f(kt),readinglist:f(Nt),cocktailcard:f(Pt),runninglog:f(Vt),userpersona:f(Ut),runofshow:f(Kt),podcastplanner:f(qt),vaxschedule:f(nn),claimagecompare:f(hn),statblock:f(Tn)};export{En as n,Dn as t};