@mavea/mavea 2.0.0 → 2.0.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 (104) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +6 -2
  3. package/bin/mavea.mjs +40 -8
  4. package/dist/.vite/manifest.json +393 -393
  5. package/dist/assets/{AnnotationLayer-Cccb12ps.js → AnnotationLayer-BsAcAd59.js} +0 -0
  6. package/dist/assets/{AppCommandPalette-DdOPNZ0e.js → AppCommandPalette-Cucwjk5N.js} +1 -1
  7. package/dist/assets/{CheckLogRail-BibJTid0.js → CheckLogRail-vq2lZ7a5.js} +1 -1
  8. package/dist/assets/ConversationVideoStudio-Df892wqs.js +1 -0
  9. package/dist/assets/{CourseLessonReader-D29Kix4f.js → CourseLessonReader-DKQimh2S.js} +2 -2
  10. package/dist/assets/{CoursesApp-DcDsS_ZS.js → CoursesApp-LeqL6dWT.js} +1 -1
  11. package/dist/assets/{DashPresent-BDWgO9am.js → DashPresent-DZcRdu6R.js} +1 -1
  12. package/dist/assets/{DashboardDetail-BrnAdWfy.js → DashboardDetail-2XL-J4rS.js} +2 -2
  13. package/dist/assets/{DashboardLoopGate-NxMcQ4rD.js → DashboardLoopGate-B95S4oKR.js} +2 -2
  14. package/dist/assets/DashboardLoopRuntime-Wzk85QXi.js +1 -0
  15. package/dist/assets/{DashboardsApp-DxyMn3x_.js → DashboardsApp-ZGuT2QBi.js} +2 -2
  16. package/dist/assets/{DeepZoomApp-nNjqoyYE.js → DeepZoomApp-CPOsar8c.js} +1 -1
  17. package/dist/assets/{DelegatePanel-DN_ZL0j7.js → DelegatePanel-BkTtUMSl.js} +1 -1
  18. package/dist/assets/{DemoGallery-DrSlMsnu.js → DemoGallery-BcQ9yz2u.js} +1 -1
  19. package/dist/assets/{DropSelect-GwIXHA5o.js → DropSelect-GKioj__f.js} +1 -1
  20. package/dist/assets/{ExportModal-DBUjC71U.js → ExportModal-1pWr-c7I.js} +1 -1
  21. package/dist/assets/{ExtractionPreview-D4M6eXqb.js → ExtractionPreview-TKyfEqwM.js} +1 -1
  22. package/dist/assets/{FeatureUseNotice-Bda9jr3W.js → FeatureUseNotice-pQe4YHgJ.js} +1 -1
  23. package/dist/assets/{FlagshipCommandPalette-DAO849RC.js → FlagshipCommandPalette-D1pv3hfZ.js} +1 -1
  24. package/dist/assets/{FlagshipShowcase-g2x-1c70.js → FlagshipShowcase-CCFFcaL7.js} +1 -1
  25. package/dist/assets/{FlashcardsApp-BUKzCr65.js → FlashcardsApp-Dbe-8UkQ.js} +1 -1
  26. package/dist/assets/{GalleryApp-ot_A7ZF-.js → GalleryApp-CCLYcEqn.js} +1 -1
  27. package/dist/assets/{HonestByDesign-DgZFEpEx.js → HonestByDesign-ByOR1sRQ.js} +1 -1
  28. package/dist/assets/{HowItWorks-DPFpdeGE.js → HowItWorks-Dllc30ph.js} +1 -1
  29. package/dist/assets/{LegalApp-C56kWdmK.js → LegalApp-CpblxmmB.js} +1 -1
  30. package/dist/assets/{LegalMarkdownDocument-BBTHuW_M.js → LegalMarkdownDocument-CmxHsXlb.js} +1 -1
  31. package/dist/assets/{LegalPageShell-hMA-7JLf.js → LegalPageShell-CDD6D6T_.js} +1 -1
  32. package/dist/assets/{LibraryOverlay-DSUWcUe4.js → LibraryOverlay-CHmubwG3.js} +1 -1
  33. package/dist/assets/{LiveApp-B62EMybC.js → LiveApp-CSbjhgzM.js} +4 -4
  34. package/dist/assets/{LiveSettings-BITIaMoT.js → LiveSettings-B4T6x41n.js} +3 -3
  35. package/dist/assets/{MindMapViewerDrawer-CKdJtHno.js → MindMapViewerDrawer-BLRBWsTz.js} +1 -1
  36. package/dist/assets/{MindShape-B3lg_z4X.js → MindShape-CaDuLyGa.js} +1 -1
  37. package/dist/assets/{PinToDashboard-DpQjBLPa.js → PinToDashboard-ChK2Ou73.js} +1 -1
  38. package/dist/assets/{PlanReview-CrTbmMAd.js → PlanReview-Dg6VE0xF.js} +1 -1
  39. package/dist/assets/{PresentationDeck-CfYadu9V.js → PresentationDeck-oEd6TXdN.js} +1 -1
  40. package/dist/assets/{PrismApp-bRKK_3JA.js → PrismApp-Bju264hL.js} +2 -2
  41. package/dist/assets/{PrismBriefingPlayer-ChJj6hSS.js → PrismBriefingPlayer-BY0RREUu.js} +2 -2
  42. package/dist/assets/{PrismOverlay-Pp6ZKmTc.js → PrismOverlay-DOWyOUVW.js} +3 -3
  43. package/dist/assets/{PrismWorkbench-BCV7r4Oa.js → PrismWorkbench-9RonO2uv.js} +1 -1
  44. package/dist/assets/{PrivacyApp-A2Bu6LVd.js → PrivacyApp-CBPMqUEA.js} +1 -1
  45. package/dist/assets/{ReplayCard-B6NYiYzQ.js → ReplayCard-BnX73r9n.js} +2 -2
  46. package/dist/assets/{ReplayOverlay-BJKtJ-vc.js → ReplayOverlay-B-Ok0mEs.js} +1 -1
  47. package/dist/assets/{RippleApp-BXt7tenS.js → RippleApp-BnIUhIA0.js} +2 -2
  48. package/dist/assets/{RippleOverlay-BSxubBwj.js → RippleOverlay-C9W7uVOp.js} +2 -2
  49. package/dist/assets/{SeeDontRead-0He5hS2C.js → SeeDontRead-ByW9HnOj.js} +1 -1
  50. package/dist/assets/{ShareModal-xYdZWJxy.js → ShareModal-Mo-dkgAZ.js} +2 -2
  51. package/dist/assets/{ShipCourse-Dg6kCWyH.js → ShipCourse-CT_F9oJH.js} +1 -1
  52. package/dist/assets/{SignatureLoop-QPwB2oNN.js → SignatureLoop-DejFTZ-Y.js} +1 -1
  53. package/dist/assets/{SynthesisApp-DrCq6NDa.js → SynthesisApp-6W04mrMU.js} +2 -2
  54. package/dist/assets/{SynthesisOverlay-DCa-2Pz_.js → SynthesisOverlay-DDyFFiO8.js} +1 -1
  55. package/dist/assets/{TermsApp-zcPDYfuh.js → TermsApp-ZzlhrXhd.js} +1 -1
  56. package/dist/assets/{TopicCanvas-Bw4bMFpe.js → TopicCanvas-CkqP92SC.js} +2 -2
  57. package/dist/assets/{TourPrism-DbinDupp.js → TourPrism-Cng4h9Ly.js} +1 -1
  58. package/dist/assets/{TrackerTile-CrT9u1I4.js → TrackerTile-DuUsFQTj.js} +2 -2
  59. package/dist/assets/{TwoSurfaces-L0CDuyOZ.js → TwoSurfaces-BeYMvVuX.js} +1 -1
  60. package/dist/assets/{WorldOverlay-BcjqG1BR.js → WorldOverlay-DeVpS8HE.js} +1 -1
  61. package/dist/assets/{WowFeatures-CwBk4ZMO.js → WowFeatures-D58JgpLg.js} +1 -1
  62. package/dist/assets/{ZoomDeck-DlnesweX.js → ZoomDeck-CPG2XQhr.js} +1 -1
  63. package/dist/assets/{backup-685QrAjt.js → backup-CtEvuZoL.js} +1 -1
  64. package/dist/assets/canvas-Ct-O9Jok.js +1 -0
  65. package/dist/assets/{capture-DgJLQ_0-.js → capture-CgaD86-q.js} +1 -1
  66. package/dist/assets/{catalog-Db9GWM6N.js → catalog-DfIYAG3v.js} +1 -1
  67. package/dist/assets/{confirmAdd-CZ829Mbx.js → confirmAdd-CxWIORcu.js} +1 -1
  68. package/dist/assets/{dashboardEvents-CiayRLrH.js → dashboardEvents-D1OP4ARB.js} +1 -1
  69. package/dist/assets/{deepen-DAeHHFiI.js → deepen-BhP9OmH3.js} +1 -1
  70. package/dist/assets/{effort-jJe4iMIq.js → effort-Bqti44UZ.js} +1 -1
  71. package/dist/assets/{generateBeats-COflu5Zi.js → generateBeats-CtffeoEa.js} +1 -1
  72. package/dist/assets/{generateLive-DGwnpIip.js → generateLive-D5M8v38b.js} +1 -1
  73. package/dist/assets/{index-LiHcEJt_.js → index-CdUH6Eo9.js} +3 -3
  74. package/dist/assets/{kokoro-DXRj0KQX.js → kokoro-D15HDMcP.js} +1 -1
  75. package/dist/assets/{liveSchema-DyfND6P2.js → liveSchema-B8Y9HZxd.js} +1 -1
  76. package/dist/assets/{loader-DgMLGfAC.js → loader-ChcXMM9W.js} +2 -2
  77. package/dist/assets/{notes-DzIAEESd.js → notes-BG5pIVAJ.js} +1 -1
  78. package/dist/assets/{perfProbe-ezVn1mOu.js → perfProbe-DaLsQQBb.js} +1 -1
  79. package/dist/assets/{pin-BPGVDgnq.js → pin-BcKMUOiV.js} +1 -1
  80. package/dist/assets/{portal-B9DmFo6J.js → portal-BIN_aqvw.js} +1 -1
  81. package/dist/assets/{prewarm-BgUqAJbF.js → prewarm-CyvSJKv4.js} +1 -1
  82. package/dist/assets/{quietHours-DyynzDyC.js → quietHours-D1nboK5q.js} +1 -1
  83. package/dist/assets/{registry-BlujNlQJ.js → registry-BFQQpjO2.js} +1 -1
  84. package/dist/assets/{registry-D06LKiUk.js → registry-C8FuGbOr.js} +1 -1
  85. package/dist/assets/{registry-CEV5h2cu.css → registry-CIcGBgtK.css} +1 -1
  86. package/dist/assets/{registry-BJEvFgoL.js → registry-CcHxIYQN.js} +1 -1
  87. package/dist/assets/{registry-BT6ydF33.js → registry-DPBJYRmC.js} +1 -1
  88. package/dist/assets/registry-DdVZGvkL.js +48 -0
  89. package/dist/assets/{registry-7tKTrzeZ.js → registry-DdgeK4fY.js} +1 -1
  90. package/dist/assets/{registry-Bl7zAWKt.js → registry-Dt0wu9rC.js} +1 -1
  91. package/dist/assets/{relate-aQFFr11O.js → relate-CqYpFpsO.js} +1 -1
  92. package/dist/assets/{replay-CalqEgdW.js → replay-NognvQfM.js} +1 -1
  93. package/dist/assets/{select-wEtBn9U6.js → select-Dp-OeZfq.js} +1 -1
  94. package/dist/assets/shard054-CNzJxw2V.js +1 -0
  95. package/dist/assets/{useDashboardLoop-ifcuVRo-.js → useDashboardLoop-C3iCNS8X.js} +3 -3
  96. package/dist/assets/{useStudy-CySgE3Cx.js → useStudy-CwCIyiTb.js} +1 -1
  97. package/dist/assets/{walkSync-DBne70gg.js → walkSync-DC9iE0BX.js} +1 -1
  98. package/dist/index.html +1 -1
  99. package/package.json +1 -1
  100. package/dist/assets/ConversationVideoStudio-DMIPUCcq.js +0 -1
  101. package/dist/assets/DashboardLoopRuntime-Dsy9u1wa.js +0 -1
  102. package/dist/assets/canvas-C3O7MEA3.js +0 -1
  103. package/dist/assets/registry-KRYoVMCh.js +0 -48
  104. package/dist/assets/shard054-BoC-LNYu.js +0 -1
@@ -0,0 +1,48 @@
1
+ import{r as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{t as n}from"./compiler-runtime-qQQXpJgv.js";import{t as r}from"./jsx-runtime-DeHZSEgm.js";import{n as i,t as a}from"./preload-helper-CiWYd9n-.js";import{n as o}from"./icons-gLFQTv74.js";import{t as s}from"./richText-BkxJhl9N.js";import{n as c,r as l}from"./format-q0LwBjID.js";import{r as u,t as d}from"./safeImageUrl-BINWXOTz.js";import{t as f}from"./useValidatedImage-BQi2c66o.js";import{r as p,t as m}from"./scale-Bcgfo6Hp.js";import{t as h}from"./BlockEmpty-B82uCse8.js";import"./lib-u95BsX_B.js";import{t as g}from"./registry-types-D3q_LrlV.js";import{n as _,t as v}from"./fitText-DHbmSS-q.js";import{t as y}from"./useTimeout-Cm4yzted.js";import{t as b}from"./safeCssColor-di93BXgG.js";var x=t(),S=r(),C={chess:8,checkers:8,go:19,hex:8,grid:8},w=100,T=6;function E({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,board:r=`chess`,size:i,pieces:a,highlights:c,moves:l,caption:u,footer:d,delay:f}){let p=o[t]||o.layers,m=(0,x.useId)().replace(/:/g,``),h=C[r]?r:`chess`,g=Math.max(2,Math.min(25,Math.round(i??C[h]))),_=h===`go`,v=88/(_?g-1||1:g),y=e=>T+(_?e*v:(e+.5)*v),b=e=>T+(_?e*v:(e+.5)*v),E=v*(_?.4:.38),D=Math.max(.18,v*.03);return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`gb-wrap`,children:(0,S.jsxs)(`svg`,{viewBox:`0 0 ${w} ${w}`,className:`gb-svg`,role:`img`,"aria-label":e,children:[(0,S.jsx)(`rect`,{x:T,y:T,width:88,height:88,className:`gb-frame`}),(h===`chess`||h===`checkers`)&&Array.from({length:g*g},(e,t)=>{let n=Math.floor(t/g),r=t%g;return(n+r)%2==0?null:(0,S.jsx)(`rect`,{x:T+r*v,y:T+n*v,width:v,height:v,className:`gb-dark`},`sq-${t}`)}),(h===`go`||h===`grid`||h===`hex`)&&Array.from({length:_?g:g+1},(e,t)=>{let n=T+t*v;return(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`line`,{x1:n,y1:T,x2:n,y2:94,className:`gb-grid`}),(0,S.jsx)(`line`,{x1:T,y1:n,x2:94,y2:n,className:`gb-grid`})]},`ln-${t}`)}),h===`hex`&&Array.from({length:g*g},(e,t)=>{let n=Math.floor(t/g),r=t%g,i=n%2*v*.5,a=T+(r+.5)*v+i;return a>94?null:(0,S.jsx)(`circle`,{cx:a,cy:T+(n+.5)*v,r:v*.06,className:`gb-hexdot`},`hx-${t}`)}),h===`go`&&g===19&&[3,9,15].flatMap(e=>[3,9,15].map(t=>(0,S.jsx)(`circle`,{cx:y(t),cy:b(e),r:v*.09,className:`gb-star`},`star-${e}-${t}`))),c?.map((e,t)=>_?(0,S.jsx)(`circle`,{cx:y(e.col),cy:b(e.row),r:E*1.25,className:`gb-hl-dot`},`hl-${t}`):(0,S.jsx)(`rect`,{x:T+e.col*v,y:T+e.row*v,width:v,height:v,className:`gb-hl`},`hl-${t}`)),a.map((e,t)=>{let n=y(e.col),r=b(e.row),i=e.glyph||e.label||``;return(0,S.jsxs)(`g`,{className:`gb-piece side-${e.side===`b`?`b`:`a`}`,children:[(0,S.jsx)(`circle`,{cx:n,cy:r,r:E,className:`gb-disc`,strokeWidth:D}),i&&(0,S.jsx)(`text`,{x:n,y:r,textAnchor:`middle`,dominantBaseline:`central`,className:`gb-glyph`,style:{fontSize:E*1.15},children:i})]},`pc-${t}`)}),(0,S.jsx)(`defs`,{children:(0,S.jsx)(`marker`,{id:`gb-arr-${m}`,markerWidth:`5`,markerHeight:`5`,refX:`3.5`,refY:`2.5`,orient:`auto`,children:(0,S.jsx)(`path`,{d:`M0,0 L0,5 L5,2.5 Z`,className:`gb-arrhead`})})}),l?.map((e,t)=>(0,S.jsx)(`line`,{x1:y(e.from[1]),y1:b(e.from[0]),x2:y(e.to[1]),y2:b(e.to[0]),className:`gb-move`,strokeWidth:Math.max(.6,v*.08),markerEnd:`url(#gb-arr-${m})`},`mv-${t}`))]})}),u&&(0,S.jsx)(`div`,{className:`gb-caption`,children:u}),d&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}var D=.6;function O(e,t,n){let r=Math.max(3,Math.floor(t/(n*D)));return e.length>r?e.slice(0,r-1).trimEnd()+`…`:e}var k=[`color-mix(in oklab, var(--presence) 13%, transparent)`,`color-mix(in oklab, var(--insight) 13%, transparent)`,`color-mix(in oklab, var(--warning) 15%, transparent)`,`color-mix(in oklab, var(--presence) 7%, transparent)`,`color-mix(in oklab, var(--insight) 7%, transparent)`],A=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--presence-soft)`,`var(--insight-soft)`];function j({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,fabric:r,pieces:i,unit:a=`cm`,caption:c,footer:u,delay:d}){let f=o[t]||o.edit,p=(0,x.useId)().replace(/:/g,``),m=Math.max(1,r.w),h=Math.max(1,r.h),g=Math.max(m,h)*.04,_=m+g*2,v=h+g*2,y=i.reduce((e,t)=>e+Math.max(0,Math.min(t.w,m-t.x))*Math.max(0,Math.min(t.h,h-t.y))*Math.max(1,t.qty??1),0),b=Math.min(100,Math.round(y/(m*h)*100));return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`pat-figwrap`,children:(0,S.jsxs)(`svg`,{viewBox:`0 0 ${_} ${v}`,className:`pat-svg`,role:`img`,"aria-label":e,children:[(0,S.jsx)(`defs`,{children:(0,S.jsx)(`marker`,{id:`pat-grain-${p}`,markerWidth:`6`,markerHeight:`6`,refX:`3`,refY:`3`,orient:`auto`,children:(0,S.jsx)(`path`,{d:`M0,3 L5,0.5 L4,3 L5,5.5 Z`,className:`pat-grain-head`})})}),(0,S.jsx)(`rect`,{x:g,y:g,width:m,height:h,className:`pat-fabric`}),(0,S.jsx)(`line`,{x1:g,y1:g,x2:g,y2:g+h,className:`pat-foldedge`,strokeWidth:Math.max(.4,m*.006)}),(0,S.jsx)(`text`,{className:`pat-foldlabel`,transform:`translate(${g+m*.022},${g+h/2}) rotate(-90)`,children:(0,S.jsx)(`tspan`,{x:0,y:0,children:`FOLD`})}),r.label&&(0,S.jsx)(`text`,{x:g+m-1,y:g-g*.35,textAnchor:`end`,className:`pat-fabriclabel`,children:r.label}),i.map((e,t)=>{let n=A[t%A.length],r=k[t%k.length],i=g+e.x,a=g+e.y,o=i+e.w/2,s=a+e.h/2,c=e.h*.14,l=Math.min(e.w,e.h)<Math.max(m,h)*.1,u=Math.max(1,e.qty??1);return(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`rect`,{x:i,y:a,width:e.w,height:e.h,rx:Math.min(1.5,m*.005),fill:r,stroke:n,strokeWidth:m*.004,strokeDasharray:e.fold?void 0:`${m*.012} ${m*.008}`}),e.fold&&(0,S.jsx)(`line`,{x1:i,y1:a,x2:i,y2:a+e.h,className:`pat-onfold`,strokeWidth:m*.006}),(0,S.jsx)(`line`,{x1:o,y1:a+c,x2:o,y2:a+e.h-c,className:`pat-grain`,strokeWidth:Math.max(.3,m*.0035),markerStart:`url(#pat-grain-${p})`,markerEnd:`url(#pat-grain-${p})`}),!l&&(()=>{let t=Math.max(m*.026,2.4),n=O(e.label,e.w-t,t),r=n!==e.label;return(0,S.jsxs)(`text`,{x:o,y:s,textAnchor:`middle`,dominantBaseline:`middle`,className:`pat-piece-lbl`,style:{fontSize:t},children:[r&&(0,S.jsx)(`title`,{children:e.label}),(0,S.jsx)(`tspan`,{x:o,dy:`-0.5em`,children:n}),(u>1||e.fold)&&(0,S.jsx)(`tspan`,{x:o,dy:`1.4em`,className:`pat-piece-sub`,children:e.fold?`cut 1 on fold`:`cut ${u}`})]})})()]},t)})]})}),(0,S.jsxs)(`div`,{className:`pat-stats`,children:[(0,S.jsxs)(`div`,{className:`pat-stat`,children:[(0,S.jsx)(`span`,{className:`pat-stat-k`,children:`Fabric`}),(0,S.jsxs)(`span`,{className:`pat-stat-v`,children:[l(m),` × `,l(h),` `,a]})]}),(0,S.jsxs)(`div`,{className:`pat-stat`,children:[(0,S.jsx)(`span`,{className:`pat-stat-k`,children:`Yield`}),(0,S.jsxs)(`span`,{className:`pat-stat-v pat-yield`,"data-low":b<55?``:void 0,children:[b,`%`]})]})]}),c&&(0,S.jsx)(`div`,{className:`pat-caption`,children:c}),u&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}function M({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,src:r,candidates:i,alt:a,caption:s,footer:c,delay:l,blockId:u,onUnrenderable:d}){let p=o[t]||o.image,m=f([r,...i??[]]),h=m.state===`checking`?`loading`:m.state===`ready`?`ready`:`error`,g=a||s||e||`Photograph`,_=c||s,v=h===`error`,y=!!(e||_||a);if((0,x.useEffect)(()=>{v&&!y&&u&&d?.(u)},[v,y,u,d]),v&&!y)return null;let b={"--delay":(l||0)+`ms`};return v?(0,S.jsxs)(`div`,{className:`card reveal me-photo-card`,style:b,children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`insight-summary`,children:_||g})]}):(0,S.jsxs)(`div`,{className:`card reveal`,style:b,children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`me-photo`+(h===`ready`?` ready`:``),children:[m.src?(0,S.jsx)(`img`,{className:`me-photo-img`,src:m.src,alt:g,loading:`lazy`,decoding:`async`,referrerPolicy:`no-referrer`}):null,h===`loading`&&(0,S.jsx)(`div`,{className:`me-photo-shimmer`,"aria-hidden":`true`})]}),_&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:_})]})}var N=n();function P({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,shapes:r,labels:i,ratio:a=1.6,footer:c,delay:l}){let u=o[t]||o.image,d=`med-diag-arrow-${(0,x.useId)().replace(/:/g,``)}`,f=Math.round(100/Math.max(.4,a)*10)/10,p=e=>e>20?2.1:e>10?2:1.9,m=i.reduce((e,t)=>{let n=t.side??`right`,r=t.text.length*p(t.text.length);return n===`top`?(e.top=Math.max(e.top,7-t.y+2.5),e.x0=Math.min(e.x0,t.x-r/2),e.x1=Math.max(e.x1,t.x+r/2)):n===`bottom`?(e.bottom=Math.max(e.bottom,t.y+7+2.5-f),e.x0=Math.min(e.x0,t.x-r/2),e.x1=Math.max(e.x1,t.x+r/2)):n===`left`?e.x0=Math.min(e.x0,t.x-7-r-1):e.x1=Math.max(e.x1,t.x+7+r+1),e},{x0:0,x1:100,top:0,bottom:0}),h=Math.min(0,Math.round(m.x0*10)/10),g=Math.round(-Math.max(0,m.top)*10)/10,_=Math.round((Math.max(100,m.x1)-h)*10)/10,v=Math.round((f+Math.max(0,m.bottom)-g)*10)/10;return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`med-diag`,children:(0,S.jsxs)(`svg`,{viewBox:`${h} ${g} ${_} ${v}`,className:`med-diag-svg`,role:`img`,children:[(0,S.jsx)(`defs`,{children:(0,S.jsx)(`marker`,{id:d,viewBox:`0 0 10 10`,refX:`8`,refY:`5`,markerWidth:`6`,markerHeight:`6`,orient:`auto-start-reverse`,children:(0,S.jsx)(`path`,{d:`M0,0 L10,5 L0,10 z`,fill:`context-stroke`})})}),r.map((e,t)=>(0,S.jsx)(ee,{s:e,arrowId:d},t)),i.map((e,t)=>{let n=e.side??`right`,r=n===`left`?e.x-7:n===`right`?e.x+7:e.x,i=n===`top`?e.y-7:n===`bottom`?e.y+7:e.y,a=n===`left`?`end`:n===`right`?`start`:`middle`,o=e.color||`var(--text-secondary)`;return(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`line`,{x1:e.x,y1:e.y,x2:r,y2:i,className:`med-diag-lead`}),(0,S.jsx)(`circle`,{cx:e.x,cy:e.y,r:1.1,fill:o,...t===0?{"data-mark":`point`}:{}}),(0,S.jsx)(`text`,{x:r+(n===`right`?1:n===`left`?-1:0),y:i+1.1,textAnchor:a,className:`med-diag-lbl`,fill:o,children:e.text})]},`l${t}`)})]})}),c&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}function ee(e){let t=(0,N.c)(28),{s:n,arrowId:r}=e,i=n.color||`var(--text-muted)`,a=n.fill||`none`;switch(n.kind){case`circle`:{let e;return t[0]!==a||t[1]!==n.cx||t[2]!==n.cy||t[3]!==n.r||t[4]!==i?(e=(0,S.jsx)(`circle`,{cx:n.cx,cy:n.cy,r:n.r,stroke:i,strokeWidth:.7,fill:a}),t[0]=a,t[1]=n.cx,t[2]=n.cy,t[3]=n.r,t[4]=i,t[5]=e):e=t[5],e}case`rect`:{let e;return t[6]!==a||t[7]!==n.h||t[8]!==n.w||t[9]!==n.x||t[10]!==n.y||t[11]!==i?(e=(0,S.jsx)(`rect`,{x:n.x,y:n.y,width:n.w,height:n.h,rx:1.5,stroke:i,strokeWidth:.7,fill:a}),t[6]=a,t[7]=n.h,t[8]=n.w,t[9]=n.x,t[10]=n.y,t[11]=i,t[12]=e):e=t[12],e}case`line`:{let e=n.arrow?`url(#${r})`:void 0,a;return t[13]!==n.x1||t[14]!==n.x2||t[15]!==n.y1||t[16]!==n.y2||t[17]!==i||t[18]!==e?(a=(0,S.jsx)(`line`,{x1:n.x1,y1:n.y1,x2:n.x2,y2:n.y2,stroke:i,strokeWidth:.7,strokeLinecap:`round`,markerEnd:e}),t[13]=n.x1,t[14]=n.x2,t[15]=n.y1,t[16]=n.y2,t[17]=i,t[18]=e,t[19]=a):a=t[19],a}case`polygon`:{let e;return t[20]!==a||t[21]!==n.points||t[22]!==i?(e=(0,S.jsx)(`polygon`,{points:n.points,stroke:i,strokeWidth:.7,fill:a}),t[20]=a,t[21]=n.points,t[22]=i,t[23]=e):e=t[23],e}case`path`:{let e;return t[24]!==a||t[25]!==n.d||t[26]!==i?(e=(0,S.jsx)(`path`,{d:n.d,stroke:i,strokeWidth:.7,fill:a}),t[24]=a,t[25]=n.d,t[26]=i,t[27]=e):e=t[27],e}default:return null}}var F={header:{col:12,rows:1},hero:{col:12,rows:3},nav:{col:12,rows:1},image:{col:6,rows:2},text:{col:6,rows:2},button:{col:3,rows:1},card:{col:4,rows:2},list:{col:6,rows:2},footer:{col:12,rows:1},input:{col:6,rows:1}};function I(e,t){return Math.min(t,Math.max(1,Math.round(e)))||1}function L(e){switch(e){case`header`:case`nav`:return(0,S.jsxs)(`div`,{className:`wf-bar`,children:[(0,S.jsx)(`span`,{className:`wf-dot`}),(0,S.jsx)(`span`,{className:`wf-spacer`}),(0,S.jsx)(`span`,{className:`wf-link`}),(0,S.jsx)(`span`,{className:`wf-link`}),(0,S.jsx)(`span`,{className:`wf-link`})]});case`hero`:return(0,S.jsxs)(`div`,{className:`wf-hero`,children:[(0,S.jsx)(`span`,{className:`wf-line wf-w70 wf-tall`}),(0,S.jsx)(`span`,{className:`wf-line wf-w50`}),(0,S.jsx)(`span`,{className:`wf-pill`})]});case`image`:return(0,S.jsxs)(`div`,{className:`wf-image`,"aria-hidden":!0,children:[(0,S.jsxs)(`svg`,{viewBox:`0 0 100 100`,preserveAspectRatio:`none`,className:`wf-image-x`,children:[(0,S.jsx)(`line`,{x1:`0`,y1:`0`,x2:`100`,y2:`100`}),(0,S.jsx)(`line`,{x1:`100`,y1:`0`,x2:`0`,y2:`100`})]}),(0,S.jsx)(o.image,{className:`wf-image-ic`})]});case`text`:return(0,S.jsxs)(`div`,{className:`wf-text`,children:[(0,S.jsx)(`span`,{className:`wf-line wf-w90`}),(0,S.jsx)(`span`,{className:`wf-line wf-w100`}),(0,S.jsx)(`span`,{className:`wf-line wf-w80`}),(0,S.jsx)(`span`,{className:`wf-line wf-w60`})]});case`button`:return(0,S.jsx)(`span`,{className:`wf-pill wf-pill-solid`});case`card`:return(0,S.jsxs)(`div`,{className:`wf-card`,children:[(0,S.jsx)(`span`,{className:`wf-thumb`}),(0,S.jsx)(`span`,{className:`wf-line wf-w70 wf-strong`}),(0,S.jsx)(`span`,{className:`wf-line wf-w90`}),(0,S.jsx)(`span`,{className:`wf-line wf-w50`})]});case`list`:return(0,S.jsx)(`div`,{className:`wf-list`,children:[0,1,2].map(e=>(0,S.jsxs)(`span`,{className:`wf-row`,children:[(0,S.jsx)(`span`,{className:`wf-row-dot`}),(0,S.jsx)(`span`,{className:`wf-line wf-w80`})]},e))});case`footer`:return(0,S.jsx)(`div`,{className:`wf-foot`,children:[0,1,2].map(e=>(0,S.jsxs)(`span`,{className:`wf-foot-col`,children:[(0,S.jsx)(`span`,{className:`wf-line wf-w60 wf-strong`}),(0,S.jsx)(`span`,{className:`wf-line wf-w90`}),(0,S.jsx)(`span`,{className:`wf-line wf-w70`})]},e))});case`input`:return(0,S.jsxs)(`div`,{className:`wf-input`,children:[(0,S.jsx)(`span`,{className:`wf-line wf-w40`}),(0,S.jsx)(`span`,{className:`wf-input-cta`})]})}}function te({title:e,icon:t,iconColor:n=`var(--presence-soft)`,regions:r,cols:i=12,caption:a,footer:c,delay:l}){let u=I(i,12),d=t&&o[t]||o.screen,f=Array.isArray(r)?r:[];return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l??0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`wireframe`,style:{"--wf-cols":u},role:`img`,"aria-label":e?e+` wireframe`:`page wireframe`,children:f.map((e,t)=>{let n=F[e.kind]??F.card,r=I(e.col??n.col,u),i=Math.min(6,Math.max(1,Math.round(e.rows??n.rows)))||1;return(0,S.jsxs)(`div`,{className:`wf-region wf-`+e.kind,style:{gridColumn:`span `+r,"--wf-rows":i},children:[(0,S.jsx)(`div`,{className:`wf-fill`,children:L(e.kind)}),e.label&&(0,S.jsx)(`span`,{className:`wf-label`,children:e.label})]},t)})}),a&&(0,S.jsx)(`div`,{className:`wf-caption`,dangerouslySetInnerHTML:s(a)}),c&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}var ne=e=>Math.max(3,Math.min(97,e)),re={heart:{outline:(0,S.jsx)(`path`,{d:`M50 88 C26 70 12 54 12 37 C12 24 22 15 33 15 C42 15 48 21 50 27 C52 21 58 15 67 15 C78 15 88 24 88 37 C88 54 74 70 50 88 Z`}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{className:`an-vessel`,d:`M42 18 C40 9 36 6 31 6`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M52 18 C53 8 58 5 63 6`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M59 20 C64 12 70 11 73 14`}),(0,S.jsx)(`path`,{className:`an-septum`,d:`M50 27 L50 84`}),(0,S.jsx)(`path`,{className:`an-septum`,d:`M50 50 C62 48 70 54 72 62`}),(0,S.jsx)(`path`,{className:`an-septum`,d:`M50 50 C38 48 30 54 28 62`})]})},kidney:{outline:(0,S.jsx)(`path`,{d:`M62 14 C78 14 86 30 86 50 C86 72 76 88 60 88 C50 88 46 80 44 70 C42 62 38 60 34 60 C24 60 18 70 18 50 C18 28 30 14 50 14 C55 14 58 14 62 14 Z`}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{className:`an-cavity`,d:`M40 50 C46 46 52 46 56 50 C60 54 60 60 56 64 C52 68 46 68 40 64`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M40 50 C32 50 26 54 22 58`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M48 66 C48 76 50 84 52 90`})]})},nephron:{outline:(0,S.jsx)(`path`,{d:`M22 18 C12 18 8 28 16 34 C8 40 12 50 22 48`}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`circle`,{className:`an-cavity`,cx:`20`,cy:`32`,r:`9`}),(0,S.jsx)(`circle`,{className:`an-node`,cx:`20`,cy:`32`,r:`5`}),(0,S.jsx)(`path`,{className:`an-tube`,d:`M28 30 C40 26 44 36 38 42 C32 48 44 52 50 46 C58 38 62 52 56 60 C50 68 60 72 66 64 C74 54 80 64 78 74 L78 92`}),(0,S.jsx)(`path`,{className:`an-tube an-tube-dn`,d:`M78 74 C72 78 66 76 64 70`})]})},brain:{outline:(0,S.jsx)(`path`,{d:`M30 22 C22 18 12 24 14 34 C8 38 8 48 14 52 C12 60 18 68 26 66 C30 74 42 76 48 70 C54 76 66 74 70 66 C80 68 86 58 82 50 C90 44 88 32 80 30 C82 20 70 14 62 20 C56 14 42 14 38 22 C36 21 33 21 30 22 Z`}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{className:`an-fold`,d:`M48 18 L48 70`}),(0,S.jsx)(`path`,{className:`an-fold`,d:`M26 34 C34 32 36 40 30 44 C36 46 34 54 28 54`}),(0,S.jsx)(`path`,{className:`an-fold`,d:`M68 34 C60 32 58 40 64 44 C58 46 60 54 66 54`}),(0,S.jsx)(`path`,{className:`an-fold`,d:`M40 30 C44 36 44 44 40 50`}),(0,S.jsx)(`path`,{className:`an-fold`,d:`M56 30 C52 36 52 44 56 50`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M44 70 C44 82 44 88 42 92`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M52 70 C52 82 52 88 54 92`})]})},lung:{outline:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{d:`M44 22 C44 40 42 58 36 74 C30 88 18 86 14 74 C10 60 14 40 26 26 C32 19 40 18 44 22 Z`}),(0,S.jsx)(`path`,{d:`M56 22 C56 40 58 58 64 74 C70 88 82 86 86 74 C90 60 86 40 74 26 C68 19 60 18 56 22 Z`})]}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{className:`an-tube`,d:`M50 8 L50 30`}),(0,S.jsx)(`path`,{className:`an-tube`,d:`M50 30 C44 32 40 38 36 46`}),(0,S.jsx)(`path`,{className:`an-tube`,d:`M50 30 C56 32 60 38 64 46`}),(0,S.jsx)(`path`,{className:`an-tube an-tube-dn`,d:`M36 46 C32 52 30 58 28 64`}),(0,S.jsx)(`path`,{className:`an-tube an-tube-dn`,d:`M64 46 C68 52 70 58 72 64`})]})},eye:{outline:(0,S.jsx)(`path`,{d:`M8 50 C24 28 76 28 92 50 C76 72 24 72 8 50 Z`}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`circle`,{className:`an-cavity`,cx:`50`,cy:`50`,r:`20`}),(0,S.jsx)(`circle`,{className:`an-node`,cx:`50`,cy:`50`,r:`9`}),(0,S.jsx)(`circle`,{className:`an-glint`,cx:`44`,cy:`44`,r:`3`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M14 50 C20 46 26 45 30 45`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M86 50 C80 54 74 55 70 55`})]})},ear:{outline:(0,S.jsx)(`path`,{d:`M62 12 C40 8 24 24 24 46 C24 64 32 78 30 88 C28 94 34 96 40 92 C46 88 44 78 50 74 C58 68 60 58 54 54 C48 50 52 42 58 44 C66 46 72 38 70 28 C69 20 67 14 62 12 Z`}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{className:`an-fold`,d:`M58 20 C46 18 36 28 36 42 C36 52 40 58 40 64`}),(0,S.jsx)(`path`,{className:`an-cavity`,d:`M50 40 C44 40 42 48 48 50 C54 52 56 44 50 40 Z`}),(0,S.jsx)(`path`,{className:`an-tube`,d:`M48 50 C40 54 36 60 34 66`})]})},neuron:{outline:(0,S.jsx)(`circle`,{cx:`42`,cy:`50`,r:`14`}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`circle`,{className:`an-node`,cx:`42`,cy:`50`,r:`5`}),(0,S.jsx)(`path`,{className:`an-tube`,d:`M30 42 C20 34 14 32 8 30`}),(0,S.jsx)(`path`,{className:`an-tube`,d:`M30 50 C20 50 14 52 8 54`}),(0,S.jsx)(`path`,{className:`an-tube`,d:`M32 60 C24 66 18 70 12 74`}),(0,S.jsx)(`path`,{className:`an-axon`,d:`M56 50 L82 50`}),(0,S.jsx)(`path`,{className:`an-tube an-tube-dn`,d:`M82 50 C88 44 92 44 96 42`}),(0,S.jsx)(`path`,{className:`an-tube an-tube-dn`,d:`M82 50 C88 56 92 56 96 58`}),(0,S.jsx)(`path`,{className:`an-tube an-tube-dn`,d:`M82 50 L96 50`})]})},skeleton:{outline:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{d:`M50 8 C58 8 62 16 62 22 C62 28 58 32 50 32 C42 32 38 28 38 22 C38 16 42 8 50 8 Z`}),(0,S.jsx)(`path`,{d:`M50 32 L50 66`}),(0,S.jsx)(`path`,{d:`M46 70 C46 66 54 66 54 70 L58 88 C58 92 42 92 42 88 Z`})]}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{className:`an-bone`,d:`M50 38 C40 40 30 44 26 50`}),(0,S.jsx)(`path`,{className:`an-bone`,d:`M50 38 C60 40 70 44 74 50`}),(0,S.jsx)(`path`,{className:`an-bone`,d:`M50 46 C40 48 32 52 28 58`}),(0,S.jsx)(`path`,{className:`an-bone`,d:`M50 46 C60 48 68 52 72 58`}),(0,S.jsx)(`path`,{className:`an-bone`,d:`M50 54 C42 56 36 60 32 66`}),(0,S.jsx)(`path`,{className:`an-bone`,d:`M50 54 C58 56 64 60 68 66`}),(0,S.jsx)(`path`,{className:`an-bone`,d:`M44 36 L56 36 M44 44 L56 44 M44 52 L56 52`})]})},stomach:{outline:(0,S.jsx)(`path`,{d:`M30 14 C30 22 32 28 36 34 C42 42 44 54 44 64 C44 78 54 88 66 88 C80 88 86 76 84 64 C82 52 74 46 66 44 C58 42 54 36 54 28 C54 22 52 18 48 16 C42 13 34 12 30 14 Z`}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{className:`an-tube`,d:`M40 6 C36 6 32 9 30 14`}),(0,S.jsx)(`path`,{className:`an-tube an-tube-dn`,d:`M82 70 C90 70 94 78 94 86`}),(0,S.jsx)(`path`,{className:`an-fold`,d:`M48 40 C56 44 60 52 60 62`}),(0,S.jsx)(`path`,{className:`an-fold`,d:`M44 50 C52 54 56 62 56 70`}),(0,S.jsx)(`path`,{className:`an-fold`,d:`M52 62 C60 66 64 72 64 78`})]})},liver:{outline:(0,S.jsx)(`path`,{d:`M10 38 C10 30 18 26 30 26 C50 26 70 28 86 34 C92 36 92 44 88 50 C80 62 62 70 42 70 C24 70 12 60 10 48 C10 45 10 41 10 38 Z`}),detail:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`path`,{className:`an-septum`,d:`M52 28 L52 66`}),(0,S.jsx)(`path`,{className:`an-cavity`,d:`M40 62 C40 70 36 76 32 76 C28 76 26 70 30 64`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M52 50 C44 52 38 56 34 60`}),(0,S.jsx)(`path`,{className:`an-vessel`,d:`M52 50 C62 52 70 54 76 56`})]})}};function ie({title:e,icon:t=`spark`,iconColor:n=`var(--danger)`,organ:r,pins:i,view:a,caption:c,footer:l,delay:u}){let d=o[t]||o.spark,[f,p]=(0,x.useState)(0),m=re[r]??re.heart;return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`an-wrap`,children:[(0,S.jsxs)(`div`,{className:`an-figbox`,children:[a&&(0,S.jsx)(`span`,{className:`an-view`,children:a}),(0,S.jsxs)(`svg`,{viewBox:`0 0 100 100`,className:`an-svg`,role:`img`,"aria-label":e||r,children:[(0,S.jsx)(`g`,{className:`an-organ`,children:m.outline}),m.detail&&(0,S.jsx)(`g`,{className:`an-organ-detail`,children:m.detail}),i.map((e,t)=>{let n=t===f,r=ne(e.x),i=ne(e.y);return(0,S.jsxs)(`g`,{className:`an-pin`+(n?` on`:``),onMouseEnter:()=>p(t),onClick:()=>p(t),children:[n&&(0,S.jsx)(`circle`,{cx:r,cy:i,r:5.4,className:`an-pin-halo`}),(0,S.jsx)(`circle`,{cx:r,cy:i,r:3.4,className:`an-pin-dot`,...t===0?{"data-mark":`point`}:{}}),(0,S.jsx)(`text`,{x:r,y:i,className:`an-pin-num`,children:t+1})]},t)})]})]}),(0,S.jsx)(`div`,{className:`an-list`,children:i.map((e,t)=>(0,S.jsxs)(`button`,{className:`an-row`+(t===f?` on`:``),onMouseEnter:()=>p(t),onClick:()=>p(t),children:[(0,S.jsx)(`span`,{className:`an-rownum`,children:t+1}),(0,S.jsxs)(`span`,{className:`an-rowbody`,children:[(0,S.jsx)(`span`,{className:`an-rowtitle`,children:e.label}),e.note&&(0,S.jsx)(`span`,{className:`an-rownote`,children:e.note})]})]},t))})]}),c&&(0,S.jsx)(`div`,{className:`an-caption`,children:c}),l&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(l)})]})}var R=[{axis:`aperture`,label:`Aperture`,x:50,y:16,trade:`depth of field`,accent:`var(--presence)`},{axis:`shutter`,label:`Shutter`,x:16,y:78,trade:`motion`,accent:`var(--insight)`},{axis:`iso`,label:`ISO`,x:84,y:78,trade:`noise`,accent:`var(--warning)`}];function ae({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,aperture:r,shutter:i,iso:a,ev:c,effects:l,caption:u,footer:d,delay:f}){let p=o[t]||o.image,m={aperture:r,shutter:i,iso:`ISO ${a}`},h=e=>l?.find(t=>t.axis===e)?.note;return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`ex-figwrap`,children:(0,S.jsxs)(`svg`,{viewBox:`0 0 100 96`,className:`ex-svg`,role:`img`,"aria-label":e,children:[(0,S.jsx)(`polygon`,{points:R.map(e=>`${e.x},${e.y}`).join(` `),className:`ex-tri`}),R.map((e,t)=>{let n=R[(t+1)%R.length],r=(e.x+n.x)/2,i=(e.y+n.y)/2;return(0,S.jsx)(`line`,{x1:e.x,y1:e.y,x2:r,y2:i,className:`ex-edge`,markerEnd:`url(#ex-arrow)`},`e${t}`)}),(0,S.jsx)(`defs`,{children:(0,S.jsx)(`marker`,{id:`ex-arrow`,viewBox:`0 0 10 10`,refX:`8`,refY:`5`,markerWidth:`5`,markerHeight:`5`,orient:`auto`,children:(0,S.jsx)(`path`,{d:`M0,0 L10,5 L0,10 z`,fill:`context-stroke`})})}),(0,S.jsx)(`circle`,{cx:50,cy:57,r:13,className:`ex-ev`}),(0,S.jsx)(`text`,{x:50,y:54,className:`ex-ev-k`,children:`EXPOSURE`}),(0,S.jsx)(`text`,{x:50,y:62,className:`ex-ev-v`,children:c||`balanced`}),R.map((e,t)=>(0,S.jsxs)(`g`,{style:{"--cc":e.accent},children:[(0,S.jsx)(`circle`,{cx:e.x,cy:e.y,r:4,className:`ex-node`,...t===0?{"data-mark":`point`}:{}}),(0,S.jsx)(`text`,{x:e.x,y:e.y-7,className:`ex-node-k`,children:e.label.toUpperCase()}),(0,S.jsx)(`text`,{x:e.x,y:e.y+(e.y<40?-14:11),className:`ex-node-v`,children:m[e.axis]})]},e.axis))]})}),(0,S.jsx)(`div`,{className:`ex-cues`,children:R.map(e=>{let t=h(e.axis);return(0,S.jsxs)(`div`,{className:`ex-cue`,style:{"--cc":e.accent},children:[(0,S.jsx)(`span`,{className:`ex-cue-dot`}),(0,S.jsxs)(`span`,{className:`ex-cue-body`,children:[(0,S.jsx)(`span`,{className:`ex-cue-k`,children:e.trade}),(0,S.jsx)(`span`,{className:`ex-cue-v`,children:t||m[e.axis]})]})]},e.axis)})}),u&&(0,S.jsx)(`div`,{className:`ex-caption`,children:u}),d&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}var oe=50,se=50,ce=44,le=30,ue={complementary:[0,180],analogous:[0,30,-30],triad:[0,120,240],split:[0,150,210],tetrad:[0,90,180,270]},de=e=>(e%360+360)%360;function fe(e,t){let n=(de(e)-90)*(Math.PI/180);return[oe+t*Math.cos(n),se+t*Math.sin(n)]}function pe(e,t){let[n,r]=fe(e,ce),[i,a]=fe(t,ce),[o,s]=fe(t,le),[c,l]=fe(e,le),u=+(t-e>180);return`M${n} ${r} A${ce} ${ce} 0 ${u} 1 ${i} ${a} L${o} ${s} A${le} ${le} 0 ${u} 0 ${c} ${l} Z`}function me(e){let t=de(e)/360,n=.6479999999999999,r=n*(1-Math.abs(t*6%2-1)),i=Math.floor(t*6)%6,[a,o,s]=[[n,r,0],[r,n,0],[0,n,r],[0,r,n],[r,0,n],[n,0,r]][i],c=e=>Math.round((e+.2260000000000001)*255).toString(16).padStart(2,`0`);return`#${c(a)}${c(o)}${c(s)}`}function he({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,baseHue:r,harmony:i=`complementary`,swatches:a,caption:c,footer:l,delay:u}){let d=o[t]||o.spark,f=ue[i]??ue.complementary,p=a&&a.length>0?a:f.map((e,t)=>({hue:de(r+e),hex:me(r+e),role:t===0?`base`:`accent`})),m=p.map(e=>de(e.hue));return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`cw-wrap`,children:[(0,S.jsx)(`div`,{className:`cw-figbox`,children:(0,S.jsxs)(`svg`,{viewBox:`0 0 100 100`,className:`cw-svg`,role:`img`,"aria-label":e,children:[Array.from({length:60},(e,t)=>(0,S.jsx)(`path`,{d:pe(t*6,(t+1)*6),fill:me(t*6)},t)),(0,S.jsx)(`circle`,{cx:oe,cy:se,r:le,className:`cw-hub`}),m.map((e,t)=>{let[n,r]=fe(e,le),[i,a]=fe(e,48),o=p[t]?.hex??me(e),s=t===0;return(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`line`,{x1:oe,y1:se,x2:n,y2:r,className:`cw-spoke`}),(0,S.jsx)(`circle`,{cx:i,cy:a,r:s?4:3,className:`cw-marker`+(s?` base`:``),fill:o,...s?{"data-mark":`point`}:{}})]},`m${t}`)}),(0,S.jsx)(`circle`,{cx:oe,cy:se,r:2.4,className:`cw-center`})]})}),(0,S.jsxs)(`div`,{className:`cw-list`,children:[(0,S.jsx)(`div`,{className:`cw-harmony`,children:i}),p.map((e,t)=>(0,S.jsxs)(`div`,{className:`cw-chip`,children:[(0,S.jsx)(`span`,{className:`cw-chip-sw`,style:{background:e.hex}}),(0,S.jsxs)(`span`,{className:`cw-chip-body`,children:[(0,S.jsx)(`span`,{className:`cw-chip-hex tab-num`,children:e.hex}),e.role&&(0,S.jsx)(`span`,{className:`cw-chip-role`,children:e.role})]})]},t))]})]}),c&&(0,S.jsx)(`div`,{className:`cw-caption`,children:c}),l&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(l)})]})}var z=160,B=100,ge=e=>e/100*z,_e=e=>e/100*B,ve=(e,t,n)=>Math.max(t,Math.min(n,e)),ye=2.6;function be(e,t){let n=Math.max(3,Math.floor((t-5)/ye));return e.length>n?e.slice(0,n-1).trimEnd()+`…`:e}function xe(e){switch(e){case`leadinglines`:{let e=2/3*z,t=1/3*B;return(0,S.jsxs)(`g`,{className:`art-guide`,children:[(0,S.jsx)(`line`,{x1:0,y1:B,x2:e,y2:t}),(0,S.jsx)(`line`,{x1:z,y1:B,x2:e,y2:t}),(0,S.jsx)(`line`,{x1:0,y1:0,x2:e,y2:t}),(0,S.jsx)(`circle`,{cx:e,cy:t,r:3.2,className:`art-guide-node`})]})}case`goldenratio`:{let e=1.618,t=z/e,n=B/e,r=61.11248454882572,i=t-61.11248454882572/e;return(0,S.jsxs)(`g`,{className:`art-guide`,children:[(0,S.jsx)(`line`,{x1:t,y1:0,x2:t,y2:B}),(0,S.jsx)(`line`,{x1:0,y1:n,x2:z,y2:n}),(0,S.jsx)(`path`,{d:`M${z} ${n} A${r} ${r} 0 0 1 ${t} ${B} A${t} ${t} 0 0 1 0 ${n} A${i} ${i} 0 0 1 37.77038600051033 ${B-i*e}`,className:`art-guide-arc`}),(0,S.jsx)(`circle`,{cx:t,cy:n,r:3.2,className:`art-guide-node`})]})}case`symmetry`:{let e=z/2;return(0,S.jsxs)(`g`,{className:`art-guide`,children:[(0,S.jsx)(`line`,{x1:e,y1:0,x2:e,y2:B,className:`art-guide-axis`}),[.3,.5,.7].map((e,t)=>(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`line`,{x1:58,y1:B*e,x2:68,y2:B*e}),(0,S.jsx)(`line`,{x1:92,y1:B*e,x2:102,y2:B*e})]},t))]})}default:{let e=[z/3,320/3],t=[B/3,200/3];return(0,S.jsxs)(`g`,{className:`art-guide`,children:[e.map((e,t)=>(0,S.jsx)(`line`,{x1:e,y1:0,x2:e,y2:B},`c${t}`)),t.map((e,t)=>(0,S.jsx)(`line`,{x1:0,y1:e,x2:z,y2:e},`r${t}`)),e.flatMap(e=>t.map(t=>[e,t])).map(([e,t],n)=>(0,S.jsx)(`circle`,{cx:e,cy:t,r:2.4,className:`art-guide-node`},`p${n}`))]})}}}function Se({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,overlay:r=`thirds`,regions:i,palette:a,notes:c,caption:l,footer:u,delay:d}){let f=o[t]||o.image;return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`art-figwrap`,children:(0,S.jsxs)(`svg`,{viewBox:`0 0 ${z} ${B}`,className:`art-svg`,role:`img`,"aria-label":e,children:[(0,S.jsx)(`defs`,{children:(0,S.jsxs)(`linearGradient`,{id:`art-field`,x1:`0`,y1:`0`,x2:`1`,y2:`1`,children:[(0,S.jsx)(`stop`,{offset:`0%`,stopColor:`color-mix(in oklab, var(--presence) 22%, var(--surface-elevated))`}),(0,S.jsx)(`stop`,{offset:`55%`,stopColor:`var(--surface-elevated)`}),(0,S.jsx)(`stop`,{offset:`100%`,stopColor:`color-mix(in oklab, var(--insight) 20%, var(--surface-elevated))`})]})}),(0,S.jsx)(`rect`,{x:0,y:0,width:z,height:B,fill:`url(#art-field)`}),xe(r),(i??[]).map((e,t)=>{let n=ge(ve(e.x,0,100)),r=_e(ve(e.y,0,100)),i=Math.min(ge(e.w),z-n),a=Math.min(_e(e.h),B-r);return(0,S.jsxs)(`g`,{className:`art-region`,children:[(0,S.jsx)(`rect`,{x:n,y:r,width:i,height:a,rx:2,className:`art-region-box`,...t===0?{"data-mark":`box`}:{}}),(0,S.jsxs)(`text`,{x:n+2.5,y:r+6.5,className:`art-region-lbl`,children:[be(e.label,i)!==e.label&&(0,S.jsx)(`title`,{children:e.label}),be(e.label,i)]})]},t)})]})}),a&&a.length>0&&(0,S.jsx)(`div`,{className:`art-palette`,children:a.map((e,t)=>(0,S.jsxs)(`div`,{className:`art-pal-chip`,title:e.hex,children:[(0,S.jsx)(`span`,{className:`art-pal-sw`,style:{background:e.hex}}),(0,S.jsxs)(`span`,{className:`art-pal-meta`,children:[(0,S.jsx)(`span`,{className:`art-pal-hex tab-num`,children:e.hex}),e.role&&(0,S.jsx)(`span`,{className:`art-pal-role`,children:e.role})]})]},t))}),c&&c.length>0&&(0,S.jsx)(`div`,{className:`art-notes`,children:c.map((e,t)=>(0,S.jsxs)(`div`,{className:`art-note`,children:[(0,S.jsx)(`span`,{className:`art-note-k`,children:e.label}),(0,S.jsx)(`span`,{className:`art-note-v`,children:e.text})]},t))}),l&&(0,S.jsx)(`div`,{className:`art-caption`,children:l}),u&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}var Ce=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--presence-soft)`,`var(--insight-soft)`];function we(e){return(e.clips??[]).reduce((e,t)=>Math.max(e,t.start+Math.max(0,t.len)),0)}function Te({title:e,icon:t=`sliders`,iconColor:n=`var(--presence)`,tracks:r,bars:i,caption:a,footer:c,delay:l}){let u=o[t]||o.sliders,d=Math.max(4,i??(r.reduce((e,t)=>Math.max(e,we(t)),0)||4)),f=d<=16?1:Math.ceil(d/12),p=[];for(let e=0;e<=d;e+=f)p.push(e);return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`mx-board`,children:[(0,S.jsxs)(`div`,{className:`mx-ruler`,children:[(0,S.jsx)(`span`,{className:`mx-ruler-head`}),(0,S.jsx)(`div`,{className:`mx-ruler-track`,children:p.map(e=>(0,S.jsx)(`span`,{className:`mx-ruler-tick`,style:{left:e/d*100+`%`},children:e+1},e))})]}),r.map((e,t)=>{let n=e.color||Ce[t%Ce.length],r=Math.max(0,Math.min(100,e.volume??80)),i=Math.max(-100,Math.min(100,e.pan??0)),a=(i+100)/2,o=i===0?`C`:(i<0?`L`:`R`)+Math.round(Math.abs(i));return(0,S.jsxs)(`div`,{className:`mx-lane`+(e.mute?` muted`:``)+(e.solo?` soloed`:``),style:{"--cc":n},children:[(0,S.jsxs)(`div`,{className:`mx-head`,children:[(0,S.jsxs)(`div`,{className:`mx-head-top`,children:[(0,S.jsx)(`span`,{className:`mx-name`,children:e.name}),(0,S.jsxs)(`span`,{className:`mx-flags`,children:[(0,S.jsx)(`span`,{className:`mx-flag m`+(e.mute?` on`:``),children:`M`}),(0,S.jsx)(`span`,{className:`mx-flag s`+(e.solo?` on`:``),children:`S`})]})]}),(0,S.jsxs)(`div`,{className:`mx-controls`,children:[(0,S.jsx)(`span`,{className:`mx-vol`,title:`Volume ${r}`,children:(0,S.jsx)(`span`,{className:`mx-vol-fill`,style:{width:r+`%`}})}),(0,S.jsxs)(`span`,{className:`mx-pan`,title:`Pan ${o}`,children:[(0,S.jsx)(`span`,{className:`mx-pan-mid`}),(0,S.jsx)(`span`,{className:`mx-pan-thumb`,style:{left:a+`%`}})]}),(0,S.jsx)(`span`,{className:`mx-pan-lbl tab-num`,children:o})]})]}),(0,S.jsxs)(`div`,{className:`mx-timeline`,children:[p.map(e=>(0,S.jsx)(`span`,{className:`mx-grid`,style:{left:e/d*100+`%`},"aria-hidden":!0},e)),(e.clips??[]).map((e,n)=>{let r=Math.max(0,e.start)/d*100,i=Math.max(0,Math.min(e.len,d-e.start))/d*100;return(0,S.jsx)(`span`,{className:`mx-clip`,style:{left:r+`%`,width:i+`%`},title:e.label,...t===0&&n===0?{"data-mark":`box`}:{},children:e.label&&(0,S.jsx)(`span`,{className:`mx-clip-lbl`,children:e.label})},n)})]})]},t)})]}),a&&(0,S.jsx)(`div`,{className:`mx-caption`,children:a}),c&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}function Ee({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,before:r,after:i,position:a=50,footer:s,delay:c}){let l=o[t]||o.image,[u,f]=(0,x.useState)(Math.max(2,Math.min(98,a))),[p,m]=(0,x.useState)(!1),h=(0,x.useRef)(null),g=d(r.src),_=d(i.src),v=e=>{let t=h.current;if(!t)return;let n=t.getBoundingClientRect(),r=(e-n.left)/n.width*100;f(Math.max(2,Math.min(98,r)))},y=e=>{m(!0),e.target.setPointerCapture?.(e.pointerId),v(e.clientX)},C=e=>{p&&v(e.clientX)},w=()=>m(!1);return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`me-ba`+(p?` dragging`:``),ref:h,onPointerMove:C,onPointerUp:w,onPointerLeave:w,children:[(0,S.jsxs)(`div`,{className:`me-ba-plate`,style:{background:`linear-gradient(135deg, ${b(i.from,`var(--presence-deep)`)}, ${b(i.to,`var(--presence-soft)`)})`},children:[_&&(0,S.jsx)(`img`,{className:`me-img-fill`,src:_,alt:``,decoding:`async`,onError:e=>{e.currentTarget.style.display=`none`}}),(0,S.jsx)(`span`,{className:`me-ba-tag right`,children:i.label})]}),(0,S.jsxs)(`div`,{className:`me-ba-plate me-ba-before`,style:{background:`linear-gradient(135deg, ${b(r.from,`var(--presence-deep)`)}, ${b(r.to,`var(--presence-soft)`)})`,clipPath:`inset(0 ${100-u}% 0 0)`},children:[g&&(0,S.jsx)(`img`,{className:`me-img-fill`,src:g,alt:``,decoding:`async`,onError:e=>{e.currentTarget.style.display=`none`}}),(0,S.jsx)(`span`,{className:`me-ba-tag left`,children:r.label})]}),(0,S.jsx)(`div`,{className:`me-ba-divider`,style:{left:u+`%`},"data-interactive":!0,onPointerDown:y,children:(0,S.jsxs)(`span`,{className:`me-ba-handle`,children:[(0,S.jsx)(o.chevR,{className:`me-ba-arrow flip`}),(0,S.jsx)(o.chevR,{className:`me-ba-arrow`})]})})]}),(0,S.jsxs)(`div`,{className:`me-ba-caps`,children:[(0,S.jsx)(`span`,{className:`faint`,children:r.caption||`Before`}),(0,S.jsxs)(`span`,{className:`tab-num me-ba-pct`,children:[Math.round(u),`%`]}),(0,S.jsx)(`span`,{className:`faint`,children:i.caption||`After`})]}),(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:s||(0,S.jsx)(`span`,{className:`faint`,children:`Drag the divider to wipe between the two versions`})})]})}function De({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,slides:r,start:i=0,footer:a,delay:s}){let c=o[t]||o.image,l=r.length,[u,f]=(0,x.useState)(Math.max(0,Math.min(l-1,i))),[p,m]=(0,x.useState)(0),h=(0,x.useRef)(null),g=e=>f(l>0?(e+l)%l:0),_=e=>{h.current=e.clientX,e.target.setPointerCapture?.(e.pointerId)},v=e=>{h.current!=null&&m(e.clientX-h.current)},y=()=>{Math.abs(p)>48&&g(u+(p<0?1:-1)),h.current=null,m(0)};return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`me-carousel`,children:[(0,S.jsx)(`div`,{className:`me-car-track`,style:{transform:`translateX(calc(${-u*100}% + ${p}px))`},"data-interactive":!0,onPointerDown:_,onPointerMove:v,onPointerUp:y,onPointerLeave:y,children:r.map((e,t)=>{let n=d(e.src);return(0,S.jsxs)(`div`,{className:`me-car-slide`,children:[(0,S.jsxs)(`div`,{className:`me-car-img`,style:{background:`linear-gradient(135deg, ${b(e.from,`var(--presence-deep)`)}, ${b(e.to,`var(--presence-soft)`)})`},...t===0?{"data-mark":`circle`}:{},children:[n&&(0,S.jsx)(`img`,{className:`me-img-fill`,src:n,alt:``,loading:`lazy`,decoding:`async`,onError:e=>{e.currentTarget.style.display=`none`}}),e.tag&&(0,S.jsx)(`span`,{className:`me-car-tag`,children:e.tag}),(0,S.jsx)(`span`,{className:`me-car-label`,children:e.label})]}),e.caption&&(0,S.jsx)(`div`,{className:`me-car-cap`,children:e.caption})]},t)})}),(0,S.jsx)(`button`,{className:`me-car-arrow left`,onClick:()=>g(u-1),"aria-label":`Previous`,children:(0,S.jsx)(o.chevR,{className:`flip`})}),(0,S.jsx)(`button`,{className:`me-car-arrow right`,onClick:()=>g(u+1),"aria-label":`Next`,children:(0,S.jsx)(o.chevR,{})})]}),(0,S.jsxs)(`div`,{className:`me-car-dots`,children:[r.map((e,t)=>(0,S.jsx)(`button`,{className:`me-dot`+(t===u?` on`:``),onClick:()=>f(t),"aria-label":`Slide ${t+1}`},t)),(0,S.jsxs)(`span`,{className:`tab-num me-car-count`,children:[u+1,`/`,l]})]}),a&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:a})]})}var Oe=e=>Math.max(2,Math.min(98,e));function ke({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,image:r,callouts:i,footer:a,delay:s}){let c=o[t]||o.image,[l,u]=(0,x.useState)(0),f=d(r.src);return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`me-ico-wrap`,children:[(0,S.jsxs)(`div`,{className:`me-ico-img`,style:{background:`linear-gradient(135deg, ${b(r.from,`var(--presence-deep)`)}, ${b(r.to,`var(--presence-soft)`)})`},children:[f&&(0,S.jsx)(`img`,{className:`me-img-fill`,src:f,alt:``,loading:`lazy`,decoding:`async`,onError:e=>{e.currentTarget.style.display=`none`}}),r.label&&(0,S.jsx)(`span`,{className:`me-ico-imglabel`,children:r.label}),i.map((e,t)=>{let n=e.color||`var(--presence)`;return(0,S.jsx)(`button`,{className:`me-ico-pin`+(t===l?` on`:``),style:{left:Oe(e.x)+`%`,top:Oe(e.y)+`%`,"--cc":n},onMouseEnter:()=>u(t),onClick:()=>u(t),"aria-label":e.label,...t===0?{"data-mark":`circle`}:{},children:(0,S.jsx)(`span`,{className:`me-ico-num`,children:t+1})},t)})]}),(0,S.jsx)(`div`,{className:`me-ico-list`,children:i.map((e,t)=>{let n=e.color||`var(--presence)`;return(0,S.jsxs)(`button`,{className:`me-ico-row`+(t===l?` on`:``),style:{"--cc":n},onMouseEnter:()=>u(t),onClick:()=>u(t),children:[(0,S.jsx)(`span`,{className:`me-ico-rownum`,children:t+1}),(0,S.jsxs)(`span`,{className:`me-ico-rowbody`,children:[(0,S.jsx)(`span`,{className:`me-ico-rowtitle`,children:e.label}),e.detail&&(0,S.jsx)(`span`,{className:`me-ico-rowdetail`,children:e.detail})]})]},t)})})]}),a&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:a})]})}function Ae(e,t){let n=(t||`0:00`).split(`:`).map(e=>parseInt(e,10)||0),r=n.length===2?n[0]*60+n[1]:n[0],i=Math.round(r*e/100);return`${Math.floor(i/60)}:${String(i%60).padStart(2,`0`)}`}function je({title:e,icon:t=`speaker`,iconColor:n=`var(--presence)`,bars:r,durationLabel:i=`3:24`,color:a=`var(--presence)`,position:s=32,markers:c=[],footer:l,delay:u}){let d=o[t]||o.speaker,[f,p]=(0,x.useState)(Math.max(0,Math.min(100,s))),[m,h]=(0,x.useState)(!0),[g,_]=(0,x.useState)(!1),v=(0,x.useRef)(null),y=e=>{let t=v.current;if(!t)return;let n=t.getBoundingClientRect();p(Math.max(0,Math.min(100,(e-n.left)/n.width*100)))};return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`me-wave-row`,children:[(0,S.jsx)(`button`,{className:`me-wave-play`+(m?` on`:``),style:{"--cc":a},onClick:()=>h(e=>!e),"aria-label":m?`Pause`:`Play`,children:m?(0,S.jsxs)(`span`,{className:`me-wave-pause`,children:[(0,S.jsx)(`i`,{}),(0,S.jsx)(`i`,{})]}):(0,S.jsx)(o.play,{})}),(0,S.jsxs)(`div`,{className:`me-wave`+(g?` dragging`:``),ref:v,"data-interactive":!0,onPointerDown:e=>{_(!0),e.target.setPointerCapture?.(e.pointerId),y(e.clientX)},onPointerMove:e=>g&&y(e.clientX),onPointerUp:()=>_(!1),onPointerLeave:()=>_(!1),children:[r.map((e,t)=>{let n=(r.length>1?t/(r.length-1)*100:0)<=f;return(0,S.jsx)(`span`,{className:`me-wave-bar`,style:{height:Math.max(8,e*100)+`%`,background:n?a:`var(--track)`}},t)}),c.map((e,t)=>(0,S.jsx)(`span`,{className:`me-wave-marker`,style:{left:e.at+`%`},title:e.label,...t===0?{"data-mark":`point`}:{}},t)),(0,S.jsx)(`span`,{className:`me-wave-head`,style:{left:f+`%`,"--cc":a}})]}),(0,S.jsxs)(`span`,{className:`tab-num me-wave-time`,children:[Ae(f,i),` `,(0,S.jsxs)(`span`,{className:`faint`,children:[`/ `,i]})]})]}),(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:l||(0,S.jsx)(`span`,{className:`faint`,children:`Click or drag the waveform to scrub`})})]})}function Me({title:e,icon:t=`play`,iconColor:n=`var(--presence)`,thumb:r,video:i,poster:a,durationLabel:s=`12:40`,chapters:c,active:l=0,footer:f,delay:p}){let m=o[t]||o.play,h=d(a),g=u(i),[_,v]=(0,x.useState)(Math.max(0,Math.min(c.length-1,l))),[y,C]=(0,x.useState)(!1),w=(0,x.useRef)(null),T=e=>Math.max(0,Math.min(100,c[e]?.at??0)),E=T(_),D=e=>{v(e);let t=w.current;t&&t.duration&&(t.currentTime=T(e)/100*t.duration)};return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`me-vid`,children:[g?(0,S.jsx)(`video`,{ref:w,className:`me-vid-real`,src:g,poster:h,controls:!0,preload:`metadata`,playsInline:!0,children:(0,S.jsx)(`track`,{kind:`captions`,srcLang:`en`,label:`English`,src:`data:text/vtt,WEBVTT`})}):(0,S.jsxs)(`div`,{className:`me-vid-thumb`,style:{background:`linear-gradient(135deg, ${b(r.from,`var(--presence-deep)`)}, ${b(r.to,`var(--presence-soft)`)})`},children:[r.label&&(0,S.jsx)(`span`,{className:`me-vid-overlaylabel`,children:r.label}),(0,S.jsx)(`span`,{className:`me-vid-dur tab-num`,children:s}),(0,S.jsx)(`button`,{className:`me-vid-playbtn`+(y?` playing`:``),onClick:()=>C(e=>!e),"aria-label":y?`Pause`:`Play`,children:y?(0,S.jsxs)(`span`,{className:`me-vid-pause`,children:[(0,S.jsx)(`i`,{}),(0,S.jsx)(`i`,{})]}):(0,S.jsx)(o.play,{})}),(0,S.jsxs)(`div`,{className:`me-vid-scrub`,children:[(0,S.jsx)(`span`,{className:`me-vid-scrub-fill`,style:{width:E+`%`}}),c.map((e,t)=>(0,S.jsx)(`span`,{className:`me-vid-tick`+(t===_?` on`:``),style:{left:T(t)+`%`}},t))]})]}),c.length>0&&(0,S.jsx)(`div`,{className:`me-vid-chapters`,role:`listbox`,"aria-label":`Chapters`,tabIndex:0,onKeyDown:e=>{e.key===`ArrowDown`||e.key===`ArrowRight`?(e.preventDefault(),D(Math.min(c.length-1,_+1))):(e.key===`ArrowUp`||e.key===`ArrowLeft`)&&(e.preventDefault(),D(Math.max(0,_-1)))},children:c.map((e,t)=>(0,S.jsxs)(`button`,{className:`me-vid-chap`+(t===_?` on`:``),onClick:()=>D(t),role:`option`,"aria-selected":t===_,children:[(0,S.jsx)(`span`,{className:`me-vid-chaptime tab-num`,children:e.time}),(0,S.jsx)(`span`,{className:`me-vid-chaptitle`,...t===_?{"data-mark":`underline`}:{},children:e.title}),t===_&&(0,S.jsx)(o.play,{className:`me-vid-chapnow`})]},t))})]}),(f||c.length>0)&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:f||(0,S.jsxs)(`span`,{children:[`Now at`,` `,(0,S.jsx)(`strong`,{style:{color:`var(--text-primary)`},children:c[_]?.title})]})})]})}var Ne=`/assets/maplibre-gl-worker-DZ7nj4vd.js`;i();async function Pe(){let e=await a(()=>import(`./maplibre-gl-CrDadnl3.js`),[]).catch(()=>null);return e?.Map?(e.setWorkerUrl(Ne),e.getWorkerCount()!==1&&e.setWorkerCount(1),e):null}var Fe=`https://www.openstreetmap.org/copyright`;function Ie(){let e=(0,N.c)(3),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,S.jsx)(`a`,{href:`https://openfreemap.org/`,target:`_blank`,rel:`noopener noreferrer`,children:`OpenFreeMap`}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,S.jsx)(`a`,{href:`https://openmaptiles.org/`,target:`_blank`,rel:`noopener noreferrer`,children:`OpenMapTiles`}),e[1]=n):n=e[1];let r;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,S.jsxs)(`p`,{className:`geo-map-credit`,"aria-label":`Map attribution`,children:[`Map:`,` `,t,` `,`· ©`,` `,n,` `,`· Data © OpenStreetMap contributors (ODbL) ·`,` `,(0,S.jsx)(`a`,{href:Fe,target:`_blank`,rel:`noopener noreferrer`,children:Fe})]}),e[2]=r):r=e[2],r}var Le=e=>`https://tiles.openfreemap.org/styles/${e?`positron`:`dark`}`,Re=e=>{let t=e?.closest(`.figure-embed`);return t?t.getAttribute(`data-theme-mode`)!==`dark`:typeof document<`u`&&document.documentElement.getAttribute(`data-theme`)===`light`},ze=new Set([`residential`,`commercial`,`industrial`,`mixed`,`open-space`]),Be={residential:`var(--presence)`,commercial:`var(--warning)`,industrial:`var(--danger)`,mixed:`var(--presence-soft)`,"open-space":`var(--insight)`},Ve={residential:`Residential`,commercial:`Commercial`,industrial:`Industrial`,mixed:`Mixed use`,"open-space":`Open space`};function He(e){return Array.isArray(e)?e.map(e=>{let t=(Array.isArray(e?.coords)?e.coords:[]).filter(e=>Array.isArray(e)&&e.length===2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Math.abs(e[0])<=90&&Math.abs(e[1])<=180);if(t.length<3)return null;let n=ze.has(e?.category)?e.category:`mixed`;return{coords:t,category:n,label:typeof e?.label==`string`&&e.label.trim()?e.label.trim():Ve[n]}}).filter(e=>e!==null):[]}function Ue(e,t){let n=/^var\((--[^)]+)\)$/.exec(t)?.[1];return n?getComputedStyle(e).getPropertyValue(n).trim()||`transparent`:t}function We(e){return!!e&&e.replace(/[\p{Cf}\p{Cc}]/gu,``).trim().length>0}function Ge(e,t){let n=document.createElement(`div`);n.className=`geo-pop`;let r=document.createElement(`b`);if(r.textContent=e,n.append(r),t){let e=document.createElement(`div`);e.className=`geo-pop-d`,e.textContent=t,n.append(e)}return n}function Ke({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,markers:r,zoom:i,zones:a,footer:s,delay:c}){let l=o[t]||o.globe,u=(0,x.useRef)(null),[d,f]=(0,x.useState)(!1),[p,m]=(0,x.useState)(!1),h=(0,x.useMemo)(()=>(r||[]).filter(e=>Number.isFinite(e.lat)&&Number.isFinite(e.lng)&&Math.abs(e.lat)<=90&&Math.abs(e.lng)<=180),[r]),g=(0,x.useMemo)(()=>He(a),[a]),_=g.reduce((e,t)=>(e.includes(t.category)||e.push(t.category),e),[]);(0,x.useEffect)(()=>{if(!u.current||!h.length)return;let e=!1,t=null,n=[],r=null;f(!1);let a=0,o=()=>{window.clearTimeout(a),a=0,e||f(!0)};return a=window.setTimeout(o,8e3),(async()=>{let s=await Pe();if(e||!u.current)return;if(!s){window.clearTimeout(a),m(!0);return}t=new s.Map({container:u.current,style:Le(Re(u.current)),center:[h[0].lng,h[0].lat],zoom:i??13,attributionControl:{compact:!1},scrollZoom:!1,dragRotate:!1,pitchWithRotate:!1,fadeDuration:0,maxTileCacheSize:48,canvasContextAttributes:{preserveDrawingBuffer:!0,powerPreference:`low-power`}}),t.on(`styledata`,()=>{if(!t||!u.current||!t.isStyleLoaded()||t.getSource(`mavea-zones`))return;let e=g.map((e,t)=>({type:`Feature`,id:t,properties:{label:e.label,category:Ve[e.category],color:Ue(u.current,Be[e.category])},geometry:{type:`Polygon`,coordinates:[[...e.coords.map(([e,t])=>[t,e]),[e.coords[0][1],e.coords[0][0]]]]}}));t.addSource(`mavea-zones`,{type:`geojson`,data:{type:`FeatureCollection`,features:e}}),t.addLayer({id:`mavea-zones-fill`,type:`fill`,source:`mavea-zones`,paint:{"fill-color":[`get`,`color`],"fill-opacity":.22}}),t.addLayer({id:`mavea-zones-line`,type:`line`,source:`mavea-zones`,paint:{"line-color":[`get`,`color`],"line-width":1.5}})}),t.on(`idle`,o),n=h.map((e,n)=>{let r=document.createElement(`span`);r.className=`geo-pin`,r.style.setProperty(`--geo-c`,b(e.color)),r.textContent=String(n+1),r.setAttribute(`role`,`button`),r.setAttribute(`aria-label`,e.name);let i=Ge(e.name,e.detail),a=document.createElement(`a`);return a.className=`geo-pop-a`,a.href=`https://www.google.com/maps/search/?api=1&query=${e.lat},${e.lng}`,a.target=`_blank`,a.rel=`noopener noreferrer`,a.textContent=`Open in Google Maps ↗`,i.append(a),new s.Marker({element:r}).setLngLat([e.lng,e.lat]).setPopup(new s.Popup({offset:18}).setDOMContent(i)).addTo(t)});let c=new s.LngLatBounds;for(let e of h)c.extend([e.lng,e.lat]);for(let e of g)for(let[t,n]of e.coords)c.extend([n,t]);h.length+g.flatMap(e=>e.coords).length>1&&t.fitBounds(c,{padding:34,duration:0});let l=Le(Re(u.current));r=new MutationObserver(()=>{let e=Le(Re(u.current));!t||e===l||(l=e,f(!1),window.clearTimeout(a),a=window.setTimeout(o,8e3),t.setStyle(e))}),r.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-theme`]})})(),()=>{e=!0,window.clearTimeout(a),r?.disconnect();for(let e of n)e.remove();n=[],t?.remove()}},[h,g,i]);let v=h.length>0&&!p;return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),p?(0,S.jsx)(`div`,{className:`geo-map geo-map-empty faint`,children:`Map couldn’t load.`}):h.length?(0,S.jsx)(`div`,{ref:u,className:`geo-map`,"data-tiles":d?`ready`:`loading`,"aria-busy":!d}):(0,S.jsx)(`div`,{className:`geo-map geo-map-empty faint`,children:`No locations to map.`}),v&&(0,S.jsx)(Ie,{}),v&&_.length>0&&(0,S.jsx)(`div`,{className:`geo-zone-legend`,children:_.map(e=>(0,S.jsxs)(`span`,{className:`geo-zone-chip`,children:[(0,S.jsx)(`span`,{className:`geo-zone-swatch`,style:{background:Be[e]}}),Ve[e]]},e))}),h.length>0&&(0,S.jsx)(`ol`,{className:`geo-list`,children:h.map((e,t)=>(0,S.jsxs)(`li`,{className:`geo-row`,children:[(0,S.jsx)(`span`,{className:`geo-row-n`,style:{"--geo-c":b(e.color)},"aria-hidden":`true`,children:t+1}),(0,S.jsxs)(`div`,{className:`geo-row-body`,children:[(0,S.jsx)(`span`,{className:`geo-row-label`,children:We(e.name)?e.name.trim():`Unnamed place`}),We(e.detail)&&(0,S.jsx)(`span`,{className:`geo-row-detail`,children:e.detail.trim()})]})]},t))}),(s||v)&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:s||(0,S.jsxs)(`span`,{className:`faint`,children:[`Real map · `,h.length,` location`,h.length===1?``:`s`,` · drag to explore`]})})]})}function qe({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,items:r,footer:i,delay:a}){let s=o[t]||o.image,[c,l]=(0,x.useState)(null),u=r.length,f=e=>l(u>0?(e%u+u)%u:null),p=c==null?null:r[c],m=p?d(p.src):void 0;return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(s,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`me-lb-grid`,children:r.map((e,t)=>{let n=d(e.src);return(0,S.jsxs)(`button`,{className:`me-lb-thumb`,style:{background:`linear-gradient(135deg, ${b(e.from,`var(--presence-deep)`)}, ${b(e.to,`var(--presence-soft)`)})`},onClick:()=>l(t),"aria-label":e.label,children:[n&&(0,S.jsx)(`img`,{className:`me-img-fill`,src:n,alt:``,loading:`lazy`,decoding:`async`,onError:e=>{e.currentTarget.style.display=`none`}}),(0,S.jsx)(`span`,{className:`me-lb-thumblabel`,children:e.label}),(0,S.jsx)(`span`,{className:`me-lb-expand`,children:(0,S.jsx)(o.external,{})})]},t)})}),p&&c!=null&&(0,S.jsx)(`div`,{className:`me-lb-modal`,onClick:()=>l(null),role:`button`,tabIndex:0,"aria-label":`Close`,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),l(null))},children:(0,S.jsxs)(`div`,{className:`me-lb-stage`,role:`presentation`,onClick:e=>e.stopPropagation(),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&e.stopPropagation()},children:[(0,S.jsxs)(`div`,{className:`me-lb-hero`,style:{background:`linear-gradient(135deg, ${b(p.from,`var(--presence-deep)`)}, ${b(p.to,`var(--presence-soft)`)})`},children:[m&&(0,S.jsx)(`img`,{className:`me-img-fill`,src:m,alt:``,loading:`lazy`,decoding:`async`,onError:e=>{e.currentTarget.style.display=`none`}}),(0,S.jsx)(`span`,{className:`me-lb-herolabel`,children:p.label})]}),(0,S.jsxs)(`div`,{className:`me-lb-bar`,children:[(0,S.jsxs)(`div`,{className:`me-lb-meta`,children:[(0,S.jsx)(`span`,{className:`me-lb-metatitle`,children:p.label}),p.caption&&(0,S.jsx)(`span`,{className:`me-lb-metacap faint`,children:p.caption})]}),(0,S.jsxs)(`span`,{className:`tab-num faint`,children:[c+1,` / `,u]})]}),(0,S.jsx)(`button`,{className:`me-lb-nav left`,onClick:()=>f(c-1),"aria-label":`Previous`,children:(0,S.jsx)(o.chevR,{className:`flip`})}),(0,S.jsx)(`button`,{className:`me-lb-nav right`,onClick:()=>f(c+1),"aria-label":`Next`,children:(0,S.jsx)(o.chevR,{})}),(0,S.jsx)(`button`,{className:`me-lb-close`,onClick:()=>l(null),"aria-label":`Close`,children:(0,S.jsx)(o.x,{})})]})}),(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:i||(0,S.jsxs)(`span`,{className:`faint`,children:[`Click any thumbnail to open the lightbox · `,u,` images`]})})]})}function Je(e){let t={gridColumn:`span ${e.span===2?2:1}`,gridRow:`span ${e.rows===2?2:1}`};return e.kind===`image`?t.background=`linear-gradient(135deg, ${b(e.from)}, ${b(e.to,`var(--presence-soft)`)})`:e.kind===`color`&&(t.background=b(e.swatch)),t}function Ye({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,tiles:r,footer:i,delay:a}){let s=o[t]||o.layers,[c,l]=(0,x.useState)(null);return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(s,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`me-mood`,children:r.map((e,t)=>{let n=d(e.src);return(0,S.jsxs)(`div`,{className:`me-mood-tile k-`+e.kind+(c===t?` lift`:``)+(c!=null&&c!==t?` fade`:``),style:Je(e),onMouseEnter:()=>l(t),onMouseLeave:()=>l(null),children:[e.kind===`image`&&n&&(0,S.jsx)(`img`,{className:`me-img-fill`,src:n,alt:``,loading:`lazy`,decoding:`async`,onError:e=>{e.currentTarget.style.display=`none`}}),e.kind===`text`&&(0,S.jsx)(`span`,{className:`me-mood-text`,children:e.text||e.label}),e.kind===`color`&&(0,S.jsx)(`span`,{className:`me-mood-hex tab-num`,children:e.hex||``}),e.kind===`image`&&e.label&&(0,S.jsx)(`span`,{className:`me-mood-imglabel`,children:e.label})]},t)})}),i&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:i})]})}function Xe({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,swatches:r,footer:i,delay:a}){let s=o[t]||o.image,[c,l]=(0,x.useState)(null),[u,d]=(0,x.useState)(null);y(()=>l(null),c===null?null:900),y(()=>d(null),u?1400:null);let f=(e,t)=>{l(e);let n=window;typeof n.toast==`function`?n.toast(`Copied ${t}`):(navigator.clipboard?.writeText(t).catch(()=>{}),d(`Copied ${t}`))};return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(s,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`me-pal`,children:r.map((e,t)=>(0,S.jsxs)(`button`,{className:`me-pal-swatch`+(e.light?` light`:``)+(c===t?` copied`:``),style:{background:e.hex},onClick:()=>f(t,e.hex),title:`Copy ${e.hex}`,children:[(0,S.jsxs)(`span`,{className:`me-pal-top`,children:[e.contrast&&(0,S.jsx)(`span`,{className:`me-pal-contrast`,children:e.contrast}),(0,S.jsx)(`span`,{className:`me-pal-copyicon`,children:c===t?(0,S.jsx)(o.check,{}):(0,S.jsx)(o.layers,{})})]}),(0,S.jsxs)(`span`,{className:`me-pal-meta`,children:[(0,S.jsx)(`span`,{className:`me-pal-name`,children:e.name}),(0,S.jsx)(`span`,{className:`me-pal-hex tab-num`,children:c===t?`Copied`:e.hex})]})]},t))}),u&&(0,S.jsxs)(`div`,{className:`me-pal-toast`,children:[(0,S.jsx)(o.check,{}),` `,u]}),(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:i||(0,S.jsx)(`span`,{className:`faint`,children:`Click a swatch to copy its hex`})})]})}var Ze=6e3,Qe=80,$e=20,et=new Set(`svg.g.defs.title.desc.path.rect.circle.ellipse.line.polyline.polygon.text.tspan.textpath.lineargradient.radialgradient.stop.clippath.mask.pattern.marker.symbol.use.filter.fegaussianblur.feoffset.feblend.fecolormatrix.fecomposite.feflood.femerge.femergenode.femorphology.fedropshadow.fecomponenttransfer.fefuncr.fefuncg.fefuncb.fefunca.fedisplacementmap.feturbulence.fetile.fespecularlighting.fediffuselighting.fepointlight.fespotlight.fedistantlight`.split(`.`)),tt=new Set([`href`,`xlink:href`,`src`]),nt=/url\(\s*['"]?\s*(?!#)/i,rt=/javascript:/i,it=/expression\s*\(|@import|behavior\s*:|-moz-binding/i,at=new Set([`fill`,`stroke`,`stop-color`,`flood-color`,`lighting-color`]),ot=new Set([`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--danger)`,`var(--text-primary)`,`var(--text-secondary)`,`var(--text-muted)`,`var(--surface-card)`]),st=new Set([`none`,`currentcolor`,`transparent`,`context-fill`,`context-stroke`]),ct=/^url\(#[\w-]+\)$/,lt=/\b(?:fill|stroke|color|stop-color)\s*:\s*(?!var\(--)[^;]+/i,ut=9.5,dt=640,ft=440,pt=16,mt=/^\s*([\d.]+)(?:px)?\s*$/,ht=/^\s*font-size\s*:/i;function gt(e){let t=e.trim();return ot.has(t)||st.has(t.toLowerCase())||ct.test(t)}function _t(e,t){if(e===`fill`){let e=t.localName.toLowerCase();return e===`text`||e===`tspan`?`var(--text-primary)`:`var(--surface-card)`}return`var(--text-secondary)`}function vt(e){let t=e?.split(`;`).find(e=>ht.test(e));return t?t.slice(t.indexOf(`:`)+1):null}function yt(e){for(let t=e;t;t=t.parentElement){let e=vt(t.getAttribute(`style`))??t.getAttribute(`font-size`);if(e==null)continue;let n=mt.exec(e);return n?Number(n[1]):null}return pt}function bt(e,t,n){let r=ut*Math.max(t/dt,n/ft);for(let t of Array.from(e.querySelectorAll(`text, tspan`))){let e=yt(t);if(e===null||e>=r)continue;t.setAttribute(`font-size`,String(Math.round(r*100)/100));let n=t.getAttribute(`style`);if(n===null)continue;let i=n.split(`;`).filter(e=>e.trim()&&!ht.test(e));i.length?t.setAttribute(`style`,i.join(`;`)):t.removeAttribute(`style`)}}function xt(e){if(typeof e!=`string`)return null;let t=e.trim();if(!t||t.length>Ze||/<!doctype|<!entity/i.test(t)||typeof DOMParser>`u`||typeof XMLSerializer>`u`)return null;let n;try{n=new DOMParser().parseFromString(t,`image/svg+xml`)}catch{return null}if(n.getElementsByTagName(`parsererror`).length>0)return null;let r=n.documentElement;if(!r||r.localName.toLowerCase()!==`svg`||(St(r),r.getElementsByTagName(`*`).length>Qe)||r.getElementsByTagName(`text`).length>$e)return null;let i=r.getAttribute(`viewBox`);if(!i)return null;let a=i.trim().split(/[\s,]+/).map(Number);if(a.length!==4||a.some(e=>!Number.isFinite(e))||a[2]<=0||a[3]<=0)return null;bt(r,a[2],a[3]),r.removeAttribute(`width`),r.removeAttribute(`height`),r.setAttribute(`width`,`100%`),r.getAttribute(`xmlns`)||r.setAttribute(`xmlns`,`http://www.w3.org/2000/svg`);try{return new XMLSerializer().serializeToString(r)}catch{return null}}function St(e){for(let t of Array.from(e.attributes)){let n=t.name.toLowerCase(),r=t.value;if(n.startsWith(`on`)){e.removeAttribute(t.name);continue}if(tt.has(n)||n.endsWith(`:href`)){r.trim().startsWith(`#`)||e.removeAttribute(t.name);continue}if(at.has(n)){gt(r)||e.setAttribute(t.name,_t(n,e));continue}if(n===`style`){(nt.test(r)||rt.test(r)||it.test(r)||lt.test(r))&&e.removeAttribute(t.name);continue}(rt.test(r)||nt.test(r))&&e.removeAttribute(t.name)}for(let t of Array.from(e.childNodes)){let n=t.nodeType;if(n===1){let e=t;et.has(e.localName.toLowerCase())?St(e):e.remove()}else(n===7||n===8)&&e.removeChild(t)}}function Ct({title:e,icon:t=`sparkle`,iconColor:n=`var(--presence)`,svg:r,caption:i,footer:a,delay:c}){let l=o[t]||o.sparkle,u=(0,x.useMemo)(()=>xt(r),[r]);return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(l,{className:`ic`,style:{color:n}}),(0,S.jsx)(`span`,{className:`svgb-title`,children:e}),(0,S.jsxs)(`span`,{className:`svgb-badge`,children:[(0,S.jsx)(o.sparkle,{}),` Generated`]})]}),u===null?(0,S.jsx)(`p`,{className:`svgb-err`,children:`Couldn’t render this illustration.`}):(0,S.jsx)(`div`,{className:`svgb-wrap`,children:(0,S.jsx)(`div`,{className:`svgb-inner`,role:`img`,"aria-label":e,dangerouslySetInnerHTML:{__html:u}})}),i&&(0,S.jsx)(`p`,{className:`svgb-caption`,children:i}),u!==null&&(0,S.jsxs)(`p`,{className:`svgb-disclaimer`,role:`note`,children:[(0,S.jsx)(o.alert,{"aria-hidden":`true`}),(0,S.jsxs)(`span`,{children:[(0,S.jsx)(`strong`,{children:`AI-generated visual.`}),` It may be inaccurate or entirely wrong, including its labels, scale, relationships, or depictions. Verify important details with authoritative sources; do not treat it as evidence.`]})]}),a&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:8},dangerouslySetInnerHTML:s(a)})]})}var wt={soccer:{viewBox:`0 0 100 65`,bg:`#2d7a3a`,aspectRatio:65/100,markings:`
2
+ <rect x="0" y="0" width="100" height="65" fill="#2d7a3a"/>
3
+ <rect x="1" y="1" width="98" height="63" fill="none" stroke="rgba(255,255,255,0.7)" stroke-width="0.6"/>
4
+ <line x1="50" y1="1" x2="50" y2="64" stroke="rgba(255,255,255,0.5)" stroke-width="0.5"/>
5
+ <circle cx="50" cy="32.5" r="9.15" fill="none" stroke="rgba(255,255,255,0.5)" stroke-width="0.5"/>
6
+ <circle cx="50" cy="32.5" r="0.5" fill="rgba(255,255,255,0.7)"/>
7
+ <rect x="1" y="20.25" width="16" height="24.5" fill="none" stroke="rgba(255,255,255,0.5)" stroke-width="0.5"/>
8
+ <rect x="83" y="20.25" width="16" height="24.5" fill="none" stroke="rgba(255,255,255,0.5)" stroke-width="0.5"/>
9
+ <rect x="1" y="26.5" width="5.5" height="12" fill="none" stroke="rgba(255,255,255,0.4)" stroke-width="0.4"/>
10
+ <rect x="93.5" y="26.5" width="5.5" height="12" fill="none" stroke="rgba(255,255,255,0.4)" stroke-width="0.4"/>
11
+ `},basketball:{viewBox:`0 0 100 55`,bg:`#c45c2a`,aspectRatio:55/100,markings:`
12
+ <rect x="0" y="0" width="100" height="55" fill="#c45c2a"/>
13
+ <rect x="1" y="1" width="98" height="53" fill="none" stroke="rgba(255,255,255,0.7)" stroke-width="0.6"/>
14
+ <line x1="50" y1="1" x2="50" y2="54" stroke="rgba(255,255,255,0.5)" stroke-width="0.5"/>
15
+ <circle cx="50" cy="27.5" r="6" fill="none" stroke="rgba(255,255,255,0.5)" stroke-width="0.5"/>
16
+ <circle cx="50" cy="27.5" r="0.5" fill="rgba(255,255,255,0.7)"/>
17
+ <rect x="1" y="12" width="19" height="31" fill="none" stroke="rgba(255,255,255,0.5)" stroke-width="0.5"/>
18
+ <rect x="80" y="12" width="19" height="31" fill="none" stroke="rgba(255,255,255,0.5)" stroke-width="0.5"/>
19
+ <circle cx="19" cy="27.5" r="6" fill="none" stroke="rgba(255,255,255,0.4)" stroke-width="0.4" stroke-dasharray="2,2"/>
20
+ <circle cx="81" cy="27.5" r="6" fill="none" stroke="rgba(255,255,255,0.4)" stroke-width="0.4" stroke-dasharray="2,2"/>
21
+ `},football:{viewBox:`0 0 100 55`,bg:`#3d7a44`,aspectRatio:55/100,markings:`
22
+ <rect x="0" y="0" width="100" height="55" fill="#3d7a44"/>
23
+ <rect x="1" y="1" width="98" height="53" fill="none" stroke="rgba(255,255,255,0.7)" stroke-width="0.6"/>
24
+ <rect x="1" y="1" width="10" height="53" fill="rgba(255,255,255,0.06)"/>
25
+ <rect x="89" y="1" width="10" height="53" fill="rgba(255,255,255,0.06)"/>
26
+ ${Array.from({length:10},(e,t)=>`<line x1="${11+t*8}" y1="1" x2="${11+t*8}" y2="54" stroke="rgba(255,255,255,0.35)" stroke-width="0.4"/>`).join(``)}
27
+ <line x1="50" y1="1" x2="50" y2="54" stroke="rgba(255,255,255,0.5)" stroke-width="0.6"/>
28
+ `},tennis:{viewBox:`0 0 100 55`,bg:`#6aaa55`,aspectRatio:55/100,markings:`
29
+ <rect x="0" y="0" width="100" height="55" fill="#6aaa55"/>
30
+ <rect x="5" y="5" width="90" height="45" fill="none" stroke="rgba(255,255,255,0.8)" stroke-width="0.7"/>
31
+ <line x1="50" y1="5" x2="50" y2="50" stroke="rgba(255,255,255,0.7)" stroke-width="0.6"/>
32
+ <line x1="5" y1="27.5" x2="95" y2="27.5" stroke="rgba(255,255,255,0.7)" stroke-width="0.6"/>
33
+ <rect x="5" y="13.5" width="90" height="28" fill="none" stroke="rgba(255,255,255,0.5)" stroke-width="0.4"/>
34
+ <line x1="50" y1="1" x2="50" y2="5" stroke="rgba(255,255,255,0.7)" stroke-width="0.6"/>
35
+ <line x1="50" y1="50" x2="50" y2="54" stroke="rgba(255,255,255,0.7)" stroke-width="0.6"/>
36
+ `},baseball:{viewBox:`0 0 100 90`,bg:`#5a8a3a`,aspectRatio:90/100,markings:`
37
+ <rect x="0" y="0" width="100" height="90" fill="#5a8a3a"/>
38
+ <path d="M50 85 L5 85 L5 40 Q50 5 95 40 L95 85 Z" fill="rgba(200,160,80,0.3)" stroke="rgba(255,255,255,0.5)" stroke-width="0.5"/>
39
+ <rect x="42" y="77" width="16" height="8" fill="rgba(200,160,80,0.5)" stroke="rgba(255,255,255,0.5)" stroke-width="0.4"/>
40
+ <circle cx="50" cy="50" r="3" fill="rgba(255,255,255,0.6)"/>
41
+ <circle cx="20" cy="60" r="3" fill="rgba(255,255,255,0.6)"/>
42
+ <circle cx="80" cy="60" r="3" fill="rgba(255,255,255,0.6)"/>
43
+ <circle cx="50" cy="30" r="3" fill="rgba(255,255,255,0.6)"/>
44
+ <line x1="50" y1="50" x2="20" y2="60" stroke="rgba(255,255,255,0.3)" stroke-width="0.4"/>
45
+ <line x1="20" y1="60" x2="50" y2="30" stroke="rgba(255,255,255,0.3)" stroke-width="0.4"/>
46
+ <line x1="50" y1="30" x2="80" y2="60" stroke="rgba(255,255,255,0.3)" stroke-width="0.4"/>
47
+ <line x1="80" y1="60" x2="50" y2="50" stroke="rgba(255,255,255,0.3)" stroke-width="0.4"/>
48
+ `}},Tt={pass:`#fff`,run:`#ffdd55`,shot:`#ff6644`};function Et(e){let t=Math.max(0,e.length-2);return Math.max(1.6,2.8-t*.6)}var Dt=1.1,Ot=22;function kt(e){let t=Math.max(3,Math.floor(Ot/Dt));return e.length>t?e.slice(0,19).trimEnd()+`…`:e}function At({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,sport:r,positions:i,plays:a,footer:c,delay:l}){let u=o[t]||o.chart,d=(0,x.useId)().replace(/:/g,``),f=wt[r]??wt.soccer;return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`sp-wrap`,children:(0,S.jsxs)(`svg`,{viewBox:f.viewBox,width:`100%`,style:{display:`block`,borderRadius:6,overflow:`hidden`},"aria-hidden":`true`,children:[(0,S.jsx)(`g`,{dangerouslySetInnerHTML:{__html:f.markings}}),a?.map((e,t)=>{let[n,r]=e.from,[i,a]=e.to,o=Tt[e.kind??`pass`],s=e.kind===`run`?`2,2`:void 0,c=e.kind===`shot`?1.2:.8;return(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`defs`,{children:(0,S.jsx)(`marker`,{id:`sp-arr-${d}-${t}`,markerWidth:`4`,markerHeight:`4`,refX:`3`,refY:`2`,orient:`auto`,children:(0,S.jsx)(`path`,{d:`M0,0 L0,4 L4,2 Z`,fill:o})})}),(0,S.jsx)(`line`,{x1:n,y1:r,x2:i,y2:a,stroke:o,strokeWidth:c,strokeDasharray:s,markerEnd:`url(#sp-arr-${d}-${t})`,strokeOpacity:.85})]},t)}),i?.map((e,t)=>(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`circle`,{cx:e.x,cy:e.y,r:`3.5`,fill:`rgba(255,255,255,0.9)`,stroke:`rgba(0,0,0,0.4)`,strokeWidth:`0.5`}),(0,S.jsxs)(`text`,{x:e.x,y:e.y+.5,textAnchor:`middle`,dominantBaseline:`middle`,fontSize:Et(e.label),fontWeight:`700`,fill:`#1a1a1a`,children:[e.label,e.label.length>2&&(0,S.jsx)(`title`,{children:e.label})]}),e.name&&(0,S.jsxs)(`text`,{x:e.x,y:e.y+6,textAnchor:`middle`,fontSize:`2`,fill:`rgba(255,255,255,0.8)`,children:[kt(e.name),e.name.length>kt(e.name).length&&(0,S.jsx)(`title`,{children:e.name})]})]},t))]})}),c&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}var jt=[`rgba(var(--presence-rgb,99,102,241),0.08)`,`rgba(var(--insight-rgb,16,185,129),0.06)`,`rgba(var(--warning-rgb,245,158,11),0.06)`,`rgba(99,102,241,0.04)`,`rgba(16,185,129,0.04)`,`rgba(245,158,11,0.04)`],Mt=.62;function Nt(e,t,n){let r=Math.max(3,Math.floor(t/(n*Mt)));return e.length>r?e.slice(0,r-1).trimEnd()+`…`:e}var Pt=2.4;function Ft({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,rooms:r,scale:i,footer:a,delay:c}){let l=o[t]||o.layers;return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`fp-wrap`,children:(0,S.jsxs)(`svg`,{viewBox:`0 0 100 100`,width:`100%`,style:{display:`block`,borderRadius:6,overflow:`hidden`},"aria-label":e,children:[(0,S.jsx)(`rect`,{width:`100`,height:`100`,fill:`var(--surface-glass, #f8f8f8)`}),r.map((e,t)=>{let n=jt[t%jt.length],r=e.x+e.w/2,i=e.y+e.h/2,a=Math.max(0,e.w-2),o=Math.min(e.w,e.h)<14?2.5:3,s=Nt(e.name,a,o),c=s!==e.name,l=e.note&&Nt(e.note,a,Pt);return(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`rect`,{className:`fp-room-rect`,x:e.x,y:e.y,width:e.w,height:e.h,fill:n,stroke:`var(--line, #ccc)`,strokeWidth:`0.8`}),(0,S.jsxs)(`text`,{className:`fp-room-name`,x:r,y:i-(e.note?1.5:0),textAnchor:`middle`,dominantBaseline:`middle`,fontSize:o,fontWeight:`600`,fill:`var(--text-primary, #111)`,children:[c&&(0,S.jsx)(`title`,{children:e.name}),s]}),e.note&&(0,S.jsxs)(`text`,{className:`fp-room-note`,x:r,y:i+4,textAnchor:`middle`,dominantBaseline:`middle`,fontSize:Pt,fill:`var(--text-muted, #888)`,children:[l!==e.note&&(0,S.jsx)(`title`,{children:e.note}),l]})]},t)})]})}),i&&(0,S.jsx)(`div`,{className:`fp-scale`,children:i}),a&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}function It({title:e,icon:t=`play`,iconColor:n=`var(--presence)`,cover:r,year:i,runtime:a,rating:c,score:l,genres:u,logline:f,providers:p,footer:m,delay:h}){let g=o[t]||o.play,_=b(r?.from,`var(--presence-deep)`),v=b(r?.to,`var(--presence-soft)`),y=d(r?.src),x=typeof l==`number`?Math.max(0,Math.min(100,Math.round(l))):null,C=x==null?`var(--text-muted)`:x>=75?`var(--insight)`:x>=55?`var(--warning)`:`var(--text-muted)`,w=[i,a,c].filter(Boolean),T=u??[],E=p??[];return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(h||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`mc-body`,children:[(0,S.jsxs)(`div`,{className:`mc-cover`,style:{background:`linear-gradient(150deg, ${_}, ${v})`},children:[y&&(0,S.jsx)(`img`,{className:`me-img-fill`,src:y,alt:``,loading:`lazy`,decoding:`async`,referrerPolicy:`no-referrer`,onError:e=>{e.currentTarget.style.display=`none`}}),x!=null&&(0,S.jsxs)(`span`,{className:`mc-score`,style:{"--mc-sc":C},children:[(0,S.jsx)(`span`,{className:`mc-score-val tab-num`,children:x}),(0,S.jsx)(`span`,{className:`mc-score-unit`,children:`/100`})]})]}),(0,S.jsxs)(`div`,{className:`mc-main`,children:[w.length>0&&(0,S.jsx)(`div`,{className:`mc-meta`,children:w.map((e,t)=>(0,S.jsx)(`span`,{className:`mc-chip`,children:e},t))}),f&&(0,S.jsx)(`p`,{className:`mc-logline`,children:f}),T.length>0&&(0,S.jsx)(`div`,{className:`mc-genres`,children:T.map((e,t)=>(0,S.jsx)(`span`,{className:`mc-genre`,children:e},t))}),E.length>0&&(0,S.jsxs)(`div`,{className:`mc-where`,children:[(0,S.jsxs)(`span`,{className:`mc-where-h`,children:[(0,S.jsx)(o.play,{className:`ic mc-where-ic`}),` Where to watch`]}),(0,S.jsx)(`div`,{className:`mc-providers`,children:E.map((e,t)=>(0,S.jsx)(`span`,{className:`mc-provider`,children:e},t))})]})]})]}),m&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(m)})]})}var Lt=200,Rt=130;function zt({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,outline:r,dimensions:i,tolerance:a,titleBlock:c,caption:l,footer:u,delay:d}){let f=o[t]||o.edit,p=`med-dim-arrow-${(0,x.useId)().replace(/:/g,``)}`,h=[],g=[];for(let e of r)h.push(e.x),g.push(e.y);for(let e of i)h.push(e.from[0],e.to[0]),g.push(e.from[1],e.to[1]);let _=m(h),v=m(g),[y,b]=_??[0,1],[C,w]=v??[0,1],T=b-y||1,E=w-C||1,D=Math.min(140/T,70/E),O=T*D,k=E*D,A=(Lt-O)/2,j=(Rt-k)/2,M=e=>A+(e-y)*D,N=e=>j+(w-e)*D,P=r.length>=3?r.map((e,t)=>`${t===0?`M`:`L`}${M(e.x)},${N(e.y)}`).join(` `)+` Z`:``;return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`dim-wrap`,children:(0,S.jsxs)(`svg`,{viewBox:`0 0 ${Lt} ${Rt}`,className:`dim-svg`,role:`img`,"aria-label":e,children:[(0,S.jsx)(`defs`,{children:(0,S.jsx)(`marker`,{id:p,viewBox:`0 0 10 10`,refX:`9`,refY:`5`,markerWidth:`7`,markerHeight:`7`,orient:`auto-start-reverse`,children:(0,S.jsx)(`path`,{d:`M0,0 L10,5 L0,10 z`,fill:`context-stroke`})})}),(0,S.jsx)(`path`,{d:P,className:`dim-part`,"data-mark":`circle`}),i.map((e,t)=>(0,S.jsx)(Bt,{d:e,tx:M,ty:N,k:D,arrowId:p},t))]})}),(c||a)&&(0,S.jsxs)(`div`,{className:`dim-block`,children:[c?.part&&(0,S.jsxs)(`div`,{className:`dim-block-cell`,children:[(0,S.jsx)(`span`,{className:`dim-block-k`,children:`Part`}),(0,S.jsx)(`span`,{className:`dim-block-v`,children:c.part})]}),c?.scale&&(0,S.jsxs)(`div`,{className:`dim-block-cell`,children:[(0,S.jsx)(`span`,{className:`dim-block-k`,children:`Scale`}),(0,S.jsx)(`span`,{className:`dim-block-v`,children:c.scale})]}),c?.units&&(0,S.jsxs)(`div`,{className:`dim-block-cell`,children:[(0,S.jsx)(`span`,{className:`dim-block-k`,children:`Units`}),(0,S.jsx)(`span`,{className:`dim-block-v`,children:c.units})]}),a&&(0,S.jsxs)(`div`,{className:`dim-block-cell dim-block-tol`,children:[(0,S.jsx)(`span`,{className:`dim-block-k`,children:`Tol`}),(0,S.jsx)(`span`,{className:`dim-block-v`,children:a})]})]}),l&&(0,S.jsx)(`div`,{className:`dim-caption`,children:l}),u&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}function Bt(e){let t=(0,N.c)(66),{d:n,tx:r,ty:i,k:a,arrowId:o}=e,[s,c]=n.from,[l,u]=n.to,d=Math.abs(l-s)>=Math.abs(u-c),f=(n.offset??10)*a,p;t[0]!==s||t[1]!==r?(p=r(s),t[0]=s,t[1]=r,t[2]=p):p=t[2];let m;t[3]!==c||t[4]!==i?(m=i(c),t[3]=c,t[4]=i,t[5]=m):m=t[5];let h;t[6]!==p||t[7]!==m?(h={x:p,y:m},t[6]=p,t[7]=m,t[8]=h):h=t[8];let g=h,_;t[9]!==l||t[10]!==r?(_=r(l),t[9]=l,t[10]=r,t[11]=_):_=t[11];let v;t[12]!==u||t[13]!==i?(v=i(u),t[12]=u,t[13]=i,t[14]=v):v=t[14];let y;t[15]!==_||t[16]!==v?(y={x:_,y:v},t[15]=_,t[16]=v,t[17]=y):y=t[17];let b=y,x,C,w;if(d){let e;t[18]===f?e=t[19]:(e=Math.abs(f),t[18]=f,t[19]=e);let n=-e,r=Math.min(g.y,b.y)+n,i;t[20]!==g.x||t[21]!==r?(i={x:g.x,y:r},t[20]=g.x,t[21]=r,t[22]=i):i=t[22],x=i;let a=Math.min(g.y,b.y)+n,o;t[23]!==b.x||t[24]!==a?(o={x:b.x,y:a},t[23]=b.x,t[24]=a,t[25]=o):o=t[25],C=o;let s=(x.x+C.x)/2,c=x.y-2,l;t[26]!==s||t[27]!==c?(l={x:s,y:c},t[26]=s,t[27]=c,t[28]=l):l=t[28],w=l}else{let e=Math.abs(f),n=Math.max(g.x,b.x)+e,r;t[29]!==g.y||t[30]!==n?(r={x:n,y:g.y},t[29]=g.y,t[30]=n,t[31]=r):r=t[31],x=r;let i=Math.max(g.x,b.x)+e,a;t[32]!==b.y||t[33]!==i?(a={x:i,y:b.y},t[32]=b.y,t[33]=i,t[34]=a):a=t[34],C=a;let o=x.x+3,s=(x.y+C.y)/2,c;t[35]!==o||t[36]!==s?(c={x:o,y:s},t[35]=o,t[36]=s,t[37]=c):c=t[37],w=c}let T=n.label.length*3/2,E=d?`middle`:`start`,D=w.x;d?D=Math.min(Math.max(w.x,T+2),Lt-T-2):w.x+n.label.length*3>198&&(D=x.x-3);let O=!d&&D!==w.x?`end`:E,k;t[38]!==x.x||t[39]!==x.y||t[40]!==g.x||t[41]!==g.y?(k=(0,S.jsx)(`line`,{x1:g.x,y1:g.y,x2:x.x,y2:x.y,className:`dim-ext`}),t[38]=x.x,t[39]=x.y,t[40]=g.x,t[41]=g.y,t[42]=k):k=t[42];let A;t[43]!==C.x||t[44]!==C.y||t[45]!==b.x||t[46]!==b.y?(A=(0,S.jsx)(`line`,{x1:b.x,y1:b.y,x2:C.x,y2:C.y,className:`dim-ext`}),t[43]=C.x,t[44]=C.y,t[45]=b.x,t[46]=b.y,t[47]=A):A=t[47];let j=`url(#${o})`,M=`url(#${o})`,P;t[48]!==x.x||t[49]!==x.y||t[50]!==C.x||t[51]!==C.y||t[52]!==M||t[53]!==j?(P=(0,S.jsx)(`line`,{x1:x.x,y1:x.y,x2:C.x,y2:C.y,className:`dim-line`,markerStart:j,markerEnd:M}),t[48]=x.x,t[49]=x.y,t[50]=C.x,t[51]=C.y,t[52]=M,t[53]=j,t[54]=P):P=t[54];let ee=d?`auto`:`middle`,F;t[55]!==n.label||t[56]!==O||t[57]!==w.y||t[58]!==ee||t[59]!==D?(F=(0,S.jsx)(`text`,{x:D,y:w.y,className:`dim-text`,textAnchor:O,dominantBaseline:ee,children:n.label}),t[55]=n.label,t[56]=O,t[57]=w.y,t[58]=ee,t[59]=D,t[60]=F):F=t[60];let I;return t[61]!==P||t[62]!==F||t[63]!==k||t[64]!==A?(I=(0,S.jsxs)(`g`,{children:[k,A,P,F]}),t[61]=P,t[62]=F,t[63]=k,t[64]=A,t[65]=I):I=t[65],I}var Vt=100,Ht=150;function Ut({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,parts:r,axis:i=`vertical`,caption:a,footer:c,delay:l}){let u=o[t]||o.layers,d=i===`diagonal`,f=Math.max(1,r.length),p=f>1?122/(f-1):0,m=d?36:50,h=d?26/Math.max(1,f-1):0,g=d?34:46,_=Math.min(16,(p||24)*.62),v=Math.max(3.2,Math.min(6.4,(p||24)*.4));return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`exp-wrap`,children:[(0,S.jsx)(`div`,{className:`exp-fig`,children:(0,S.jsxs)(`svg`,{viewBox:`0 0 ${Vt} ${Ht}`,className:`exp-svg`,role:`img`,"aria-label":e,children:[(0,S.jsx)(`line`,{x1:m+0,y1:14,x2:m+h*(f-1),y2:136,className:`exp-axis`}),r.map((e,t)=>{let n=14+p*t,r=m+h*t,i=r-g/2,a=n-_/2;return(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`line`,{x1:r,y1:n,x2:i-6,y2:n,className:`exp-leader`}),(0,S.jsx)(`rect`,{x:i,y:a,width:g,height:_,rx:2,className:`exp-plate`,...t===0?{"data-mark":`circle`}:{}}),(0,S.jsx)(`line`,{x1:i,y1:a+_*.34,x2:i+g,y2:a+_*.34,className:`exp-plate-line`}),(0,S.jsx)(`circle`,{cx:r,cy:n,r:1.4,className:`exp-node`}),(0,S.jsx)(`circle`,{cx:i-11,cy:n,r:v,className:`exp-balloon`}),(0,S.jsx)(`text`,{x:i-11,y:n,className:`exp-balloon-num`,style:{fontSize:Math.min(6,v*.94)},children:e.n})]},t)})]})}),(0,S.jsx)(`ol`,{className:`exp-list`,children:r.map((e,t)=>(0,S.jsxs)(`li`,{className:`exp-row`,children:[(0,S.jsx)(`span`,{className:`exp-row-n`,children:e.n}),(0,S.jsx)(`span`,{className:`exp-row-name`,children:e.name}),e.qty!=null&&e.qty>1&&(0,S.jsxs)(`span`,{className:`exp-row-qty`,children:[`×`,e.qty]})]},t))})]}),a&&(0,S.jsx)(`div`,{className:`exp-caption`,children:a}),c&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}var Wt={fillet:`Fillet joint (tee)`,groove:`V-groove joint`,lap:`Lap joint`,butt:`Butt joint`,tee:`Tee joint`},Gt=6,Kt=.8,qt=134,Jt=30,Yt=46,Xt=.3,Zt=118;function Qt(e){let t=Gt*Kt,n=Math.max(2,Math.floor((Yt*.7-2)/t)),r=e.length>n?e.slice(0,5).trimEnd()+`…`:e,i=r.length*t,a=Math.min(Yt,Math.max(Jt,(i+2)/.7)),o=qt-a;return{text:r,full:e,x:o,textX:o+a*Xt+i/2}}function $t({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,joint:r,side:i=`arrow`,size:a,length:c,pitch:l,process:u,caption:d,footer:f,delay:p}){let m=o[t]||o.edit,h=`wld-ah-${(0,x.useId)().replace(/:/g,``)}`,g=c&&l?`${c}-${l}`:c??``,_=i===`arrow`||i===`both`,v=i===`other`||i===`both`,y=u?Qt(u):null;return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`wld-wrap`,children:(0,S.jsxs)(`div`,{className:`wld-grid`,children:[(0,S.jsxs)(`div`,{className:`wld-cell`,children:[(0,S.jsx)(`svg`,{viewBox:`0 0 100 80`,className:`wld-svg`,role:`img`,"aria-label":Wt[r],children:(0,S.jsx)(en,{joint:r})}),(0,S.jsx)(`div`,{className:`wld-cap`,children:Wt[r]})]}),(0,S.jsxs)(`div`,{className:`wld-cell`,children:[(0,S.jsxs)(`svg`,{viewBox:`0 0 140 80`,className:`wld-svg`,role:`img`,"aria-label":`AWS weld symbol`,children:[(0,S.jsx)(`defs`,{children:(0,S.jsx)(`marker`,{id:h,viewBox:`0 0 10 10`,refX:`8`,refY:`5`,markerWidth:`6`,markerHeight:`6`,orient:`auto-start-reverse`,children:(0,S.jsx)(`path`,{d:`M0,0 L10,5 L0,10 z`,fill:`context-stroke`})})}),(0,S.jsx)(`line`,{x1:`6`,y1:`64`,x2:`34`,y2:`40`,className:`wld-arrow`,markerEnd:`url(#${h})`}),(0,S.jsx)(`line`,{x1:`34`,y1:`40`,x2:y?y.x:Zt,y2:`40`,className:`wld-ref`,"data-mark":`line`}),y&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`line`,{x1:y.x,y1:`40`,x2:qt,y2:29,className:`wld-ref`}),(0,S.jsx)(`line`,{x1:y.x,y1:`40`,x2:qt,y2:51,className:`wld-ref`}),(0,S.jsxs)(`text`,{x:y.textX,y:`40`,className:`wld-process`,style:{fontSize:Gt},children:[y.text!==y.full&&(0,S.jsx)(`title`,{children:y.full}),y.text]})]}),_&&(0,S.jsx)(tn,{joint:r,side:`below`}),v&&(0,S.jsx)(tn,{joint:r,side:`above`}),a&&(0,S.jsx)(`text`,{x:`44`,y:_?56:30,className:`wld-dim`,children:a}),g&&(0,S.jsx)(`text`,{x:`78`,y:_?56:30,className:`wld-dim`,children:g})]}),(0,S.jsx)(`div`,{className:`wld-cap`,children:`AWS weld symbol`})]})]})}),(0,S.jsxs)(`ul`,{className:`wld-legend`,children:[(0,S.jsxs)(`li`,{children:[(0,S.jsx)(`span`,{className:`wld-leg-key`,children:`Arrow`}),(0,S.jsx)(`span`,{className:`wld-leg-val`,children:`points to the joint`})]}),(0,S.jsxs)(`li`,{children:[(0,S.jsx)(`span`,{className:`wld-leg-key`,children:`Reference line`}),(0,S.jsx)(`span`,{className:`wld-leg-val`,children:`below = arrow side, above = other side`})]}),a&&(0,S.jsxs)(`li`,{children:[(0,S.jsx)(`span`,{className:`wld-leg-key`,children:`Size`}),(0,S.jsxs)(`span`,{className:`wld-leg-val`,children:[a,` weld leg / throat`]})]}),g&&(0,S.jsxs)(`li`,{children:[(0,S.jsx)(`span`,{className:`wld-leg-key`,children:`Length-pitch`}),(0,S.jsx)(`span`,{className:`wld-leg-val`,children:c&&l?`${c} long, every ${l} (intermittent)`:`${c} long`})]}),u&&(0,S.jsxs)(`li`,{children:[(0,S.jsx)(`span`,{className:`wld-leg-key`,children:`Tail`}),(0,S.jsxs)(`span`,{className:`wld-leg-val`,children:[u,` process`]})]})]}),d&&(0,S.jsx)(`div`,{className:`wld-caption`,children:d}),f&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(f)})]})}function en(e){let t=(0,N.c)(4),{joint:n}=e;switch(n){case`fillet`:case`tee`:{let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`rect`,{x:`44`,y:`8`,width:`12`,height:`44`,className:`wld-metal`}),(0,S.jsx)(`rect`,{x:`14`,y:`52`,width:`72`,height:`14`,className:`wld-metal`}),(0,S.jsx)(`path`,{d:`M44,52 L44,38 L30,52 Z`,className:`wld-weld`}),(0,S.jsx)(`path`,{d:`M56,52 L56,38 L70,52 Z`,className:`wld-weld`})]}),t[0]=e):e=t[0],e}case`lap`:{let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`rect`,{x:`14`,y:`30`,width:`50`,height:`13`,className:`wld-metal`}),(0,S.jsx)(`rect`,{x:`40`,y:`43`,width:`46`,height:`13`,className:`wld-metal`}),(0,S.jsx)(`path`,{d:`M64,30 L64,43 L51,43 Z`,className:`wld-weld`})]}),t[1]=e):e=t[1],e}case`groove`:{let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`path`,{d:`M14,30 L44,30 L50,52 L14,52 Z`,className:`wld-metal`}),(0,S.jsx)(`path`,{d:`M86,30 L56,30 L50,52 L86,52 Z`,className:`wld-metal`}),(0,S.jsx)(`path`,{d:`M44,30 L56,30 L50,52 Z`,className:`wld-weld`})]}),t[2]=e):e=t[2],e}default:{let e;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`rect`,{x:`14`,y:`34`,width:`33`,height:`14`,className:`wld-metal`}),(0,S.jsx)(`rect`,{x:`53`,y:`34`,width:`33`,height:`14`,className:`wld-metal`}),(0,S.jsx)(`rect`,{x:`47`,y:`32`,width:`6`,height:`18`,className:`wld-weld`})]}),t[3]=e):e=t[3],e}}}function tn(e){let t=(0,N.c)(4),{joint:n,side:r}=e,i=9*(r===`below`?1:-1);if(n===`groove`||n===`butt`){let e=`M57,40 L64,${40+i} L71,40`,n;return t[0]===e?n=t[1]:(n=(0,S.jsx)(`path`,{d:e,className:`wld-glyph`,fill:`none`}),t[0]=e,t[1]=n),n}let a=`M57,40 L57,${40+i} L69,40 Z`,o;return t[2]===a?o=t[3]:(o=(0,S.jsx)(`path`,{d:a,className:`wld-glyph`}),t[2]=a,t[3]=o),o}var nn=[`color-mix(in oklab, var(--presence) 14%, transparent)`,`color-mix(in oklab, var(--insight) 14%, transparent)`,`color-mix(in oklab, var(--warning) 16%, transparent)`,`color-mix(in oklab, var(--presence) 8%, transparent)`,`color-mix(in oklab, var(--insight) 8%, transparent)`],rn=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--presence-soft)`,`var(--insight-soft)`],an=.6;function on(e,t,n){let r=Math.max(3,Math.floor(t/(n*an)));return e.length>r?e.slice(0,r-1).trimEnd()+`…`:e}var sn=.028,cn=.026,ln=.008;function un({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,stock:r,parts:i,unit:a=`mm`,caption:c,footer:u,delay:d}){let f=o[t]||o.layers,p=Math.max(1,r.w),m=Math.max(1,r.h),h=dn(i,p,m),g=h.reduce((e,t)=>e+t.w*t.h,0),_=p*m,v=Math.round(g/_*100),y=p*ln,b=p*cn,x=r.label?b*1.4:y,C=p+y*2,w=m+x+y,T=p*sn;return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`cut-grid`,children:[(0,S.jsxs)(`div`,{className:`cut-tablewrap`,children:[(0,S.jsxs)(`table`,{className:`cut-table`,children:[(0,S.jsx)(`thead`,{children:(0,S.jsxs)(`tr`,{children:[(0,S.jsx)(`th`,{children:`Part`}),(0,S.jsx)(`th`,{className:`cut-num`,children:`Size`}),(0,S.jsx)(`th`,{className:`cut-num`,children:`Qty`})]})}),(0,S.jsx)(`tbody`,{children:i.map((e,t)=>(0,S.jsxs)(`tr`,{children:[(0,S.jsxs)(`td`,{children:[(0,S.jsx)(`span`,{className:`cut-swatch`,style:{background:rn[t%rn.length]}}),(0,S.jsx)(`span`,{className:`cut-label`,children:e.label})]}),(0,S.jsxs)(`td`,{className:`cut-num cut-mono`,children:[l(e.w),` × `,l(e.h)]}),(0,S.jsx)(`td`,{className:`cut-num cut-mono`,children:e.qty})]},t))})]}),(0,S.jsxs)(`div`,{className:`cut-stats`,children:[(0,S.jsxs)(`div`,{className:`cut-stat`,children:[(0,S.jsx)(`span`,{className:`cut-stat-k`,children:`Sheet`}),(0,S.jsxs)(`span`,{className:`cut-stat-v`,children:[l(p),` × `,l(m),` `,a]})]}),(0,S.jsxs)(`div`,{className:`cut-stat`,children:[(0,S.jsx)(`span`,{className:`cut-stat-k`,children:`Yield`}),(0,S.jsxs)(`span`,{className:`cut-stat-v cut-yield`,"data-low":v<60?``:void 0,children:[v,`%`]})]})]})]}),(0,S.jsx)(`div`,{className:`cut-figwrap`,children:(0,S.jsxs)(`svg`,{viewBox:`0 0 ${C} ${w}`,className:`cut-svg`,role:`img`,"aria-label":e,children:[(0,S.jsx)(`rect`,{x:y,y:x,width:p,height:m,className:`cut-sheet`}),h.map((e,t)=>{let n=rn[e.ci%rn.length],r=nn[e.ci%nn.length],i=Math.min(e.w,e.h)<p*.12;return(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`rect`,{x:y+e.x,y:x+e.y,width:e.w,height:e.h,rx:p*.006,fill:r,stroke:n,strokeWidth:p*.0028,...t===0?{"data-mark":`circle`}:{}}),!i&&(()=>{let t=on(e.label,e.w-T*.5,T),n=t!==e.label;return(0,S.jsxs)(`text`,{x:y+e.x+e.w/2,y:x+e.y+e.h/2,textAnchor:`middle`,dominantBaseline:`middle`,className:`cut-piece-lbl`,style:{fontSize:T},children:[n&&(0,S.jsx)(`title`,{children:e.label}),t]})})()]},t)}),r.label&&(()=>{let e=on(r.label,p,b);return(0,S.jsxs)(`text`,{x:y,y:x-b*.3,className:`cut-sheet-lbl`,style:{fontSize:b},children:[e!==r.label&&(0,S.jsx)(`title`,{children:r.label}),e]})})()]})})]}),c&&(0,S.jsx)(`div`,{className:`cut-caption`,children:c}),u&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}function dn(e,t,n){let r=[],i=t*.008,a=0,o=0,s=0;return e.forEach((e,c)=>{let l=Math.max(1,e.qty);for(let u=0;u<l;u++){if(e.x!=null&&e.y!=null&&u===0){r.push({label:e.label,x:e.x,y:e.y,w:e.w,h:e.h,ci:c}),a=e.x+e.w+i,o=e.y,s=e.h;continue}a+e.w>t&&(a=0,o+=s+i,s=0),!(o+e.h>n||e.w>t)&&(r.push({label:e.label,x:a,y:o,w:e.w,h:e.h,ci:c}),a+=e.w+i,s=Math.max(s,e.h))}}),r}var fn=.9,pn=.56;function mn(e,t,n){let r=Math.max(2,Math.floor(t/(n*pn)));return e.length>r?e.slice(0,r-1).trimEnd()+`…`:e}var hn=[`color-mix(in oklab, var(--presence) 16%, transparent)`,`color-mix(in oklab, var(--insight) 16%, transparent)`,`color-mix(in oklab, var(--warning) 18%, transparent)`,`color-mix(in oklab, var(--presence) 9%, transparent)`,`color-mix(in oklab, var(--insight) 9%, transparent)`],gn=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--presence-soft)`,`var(--insight-soft)`];function _n({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,room:r,items:i,clearances:a,caption:c,footer:u,delay:d}){let f=o[t]||o.layers,m=r.unit??`m`,h=Math.max(1,r.w),g=Math.max(1,r.d),_=Math.max(h,g)*.06,v=h+_*2,y=g+_*2,b=p(Math.max(h,g),4);return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`spf-figwrap`,children:(0,S.jsxs)(`svg`,{viewBox:`0 0 ${v} ${y}`,className:`spf-svg`,role:`img`,"aria-label":e,children:[(0,S.jsx)(`rect`,{x:_,y:_,width:h,height:g,className:`spf-room`,strokeWidth:Math.max(h,g)*.012}),i.map((e,t)=>{let n=hn[t%hn.length],r=gn[t%gn.length],i=_+e.x+e.w/2,a=_+e.y+e.d/2,o=e.rot??0,s=v*.027,c=Math.min(s,e.w*.84/Math.max(e.label.length*.52,1)),l=Math.min(e.w,e.d)>Math.max(h,g)*.12,u=mn(e.label,e.w*.84,c),d=u!==e.label;return(0,S.jsxs)(`g`,{transform:`rotate(${o} ${i} ${a})`,children:[(0,S.jsx)(`rect`,{x:_+e.x,y:_+e.y,width:e.w,height:e.d,rx:Math.min(e.w,e.d)*.08,fill:n,stroke:r,strokeWidth:Math.max(h,g)*.005,...t===0?{"data-mark":`circle`}:{}}),l&&(0,S.jsxs)(`text`,{x:i,y:a,textAnchor:`middle`,dominantBaseline:`middle`,className:`spf-item-lbl`,style:{fontSize:c},children:[d&&(0,S.jsx)(`title`,{children:e.label}),u]})]},t)}),(0,S.jsxs)(`g`,{className:`spf-ruler`,children:[(0,S.jsx)(`line`,{x1:_,y1:y-_*.4,x2:_+b,y2:y-_*.4,strokeWidth:Math.max(h,g)*.006}),(0,S.jsx)(`line`,{x1:_,y1:y-_*.4-_*.25,x2:_,y2:y-_*.4+_*.25,strokeWidth:Math.max(h,g)*.006}),(0,S.jsx)(`line`,{x1:_+b,y1:y-_*.4-_*.25,x2:_+b,y2:y-_*.4+_*.25,strokeWidth:Math.max(h,g)*.006}),(0,S.jsxs)(`text`,{x:_+b/2,y:y-_*.4-_*.35,textAnchor:`middle`,className:`spf-ruler-lbl`,style:{fontSize:v*.026},children:[l(b),` `,m]})]})]})}),(0,S.jsx)(`div`,{className:`spf-dims`,children:(0,S.jsxs)(`span`,{className:`spf-dim`,children:[`Room `,l(h),` × `,l(g),` `,m]})}),a&&a.length>0&&(0,S.jsx)(`div`,{className:`spf-clear`,children:a.map((e,t)=>{let n=e.gap<=fn;return(0,S.jsxs)(`div`,{className:`spf-clear-row`+(n?` tight`:``),children:[(0,S.jsx)(`span`,{className:`spf-clear-dot`}),(0,S.jsx)(`span`,{className:`spf-clear-label`,children:e.label}),(0,S.jsxs)(`span`,{className:`spf-clear-gap`,children:[l(e.gap),` `,m]}),n&&(0,S.jsx)(`span`,{className:`spf-clear-flag`,children:`tight`})]},t)})}),c&&(0,S.jsx)(`div`,{className:`spf-caption`,children:c}),u&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}var vn=e=>`https://tiles.openfreemap.org/styles/${e?`positron`:`dark`}`,yn=e=>{let t=e?.closest(`.figure-embed`);return t?t.getAttribute(`data-theme-mode`)!==`dark`:typeof document<`u`&&document.documentElement.getAttribute(`data-theme`)===`light`};function bn(e,t,n){let r=document.createElement(`div`);r.className=`geo-pop`;let i=document.createElement(`b`);if(i.textContent=`${e+1}. ${t}`,r.append(i),n){let e=document.createElement(`div`);e.className=`geo-pop-d`,e.textContent=n,r.append(e)}return r}function xn(e,t){return getComputedStyle(e).getPropertyValue(t).trim()||`transparent`}function Sn({title:e,icon:t=`walk`,iconColor:n=`var(--presence)`,center:r,zoom:i,waypoints:a,distanceKm:c,elevationGainM:u,caption:d,footer:f,delay:p}){let m=o[t]||o.walk,h=(0,x.useRef)(null),[g,_]=(0,x.useState)(!1),[v,y]=(0,x.useState)(!1),b=(0,x.useMemo)(()=>(a||[]).filter(e=>Number.isFinite(e.lat)&&Number.isFinite(e.lng)&&Math.abs(e.lat)<=90&&Math.abs(e.lng)<=180),[a]);(0,x.useEffect)(()=>{if(!h.current||!b.length)return;let e=!1,t=null,n=[],a=null;_(!1);let o=0,s=()=>{window.clearTimeout(o),o=0,e||_(!0)};return o=window.setTimeout(s,8e3),(async()=>{let c=await Pe();if(e||!h.current)return;if(!c){window.clearTimeout(o),y(!0);return}let l=r&&Number.isFinite(r[0])&&Number.isFinite(r[1])&&Math.abs(r[0])<=90&&Math.abs(r[1])<=180?r:[b[0].lat,b[0].lng];t=new c.Map({container:h.current,style:vn(yn(h.current)),center:[l[1],l[0]],zoom:i??14,attributionControl:{compact:!1},scrollZoom:!1,dragRotate:!1,pitchWithRotate:!1,fadeDuration:0,maxTileCacheSize:48,canvasContextAttributes:{preserveDrawingBuffer:!0,powerPreference:`low-power`}});let u={type:`Feature`,properties:{},geometry:{type:`LineString`,coordinates:b.map(e=>[e.lng,e.lat])}};if(t.on(`styledata`,()=>{!t||!h.current||b.length<2||!t.isStyleLoaded()||t.getSource(`mavea-route`)||(t.addSource(`mavea-route`,{type:`geojson`,data:u}),t.addLayer({id:`mavea-route-line`,type:`line`,source:`mavea-route`,paint:{"line-color":xn(h.current,`--presence`),"line-width":4,"line-opacity":.85},layout:{"line-join":`round`,"line-cap":`round`}}))}),t.on(`idle`,s),n=b.map((e,n)=>{let r=document.createElement(`span`);r.className=`geo-pin mr-pin`,r.textContent=String(n+1),r.setAttribute(`role`,`button`),r.setAttribute(`aria-label`,`Stop ${n+1}: ${e.label}`);let i=bn(n,e.label,e.leg),a=document.createElement(`a`);return a.className=`geo-pop-a`,a.href=`https://www.google.com/maps/search/?api=1&query=${e.lat},${e.lng}`,a.target=`_blank`,a.rel=`noopener noreferrer`,a.textContent=`Open in Google Maps ↗`,i.append(a),new c.Marker({element:r}).setLngLat([e.lng,e.lat]).setPopup(new c.Popup({offset:18}).setDOMContent(i)).addTo(t)}),b.length>1){let e=new c.LngLatBounds;for(let t of b)e.extend([t.lng,t.lat]);t.fitBounds(e,{padding:36,duration:0})}let d=vn(yn(h.current));a=new MutationObserver(()=>{let e=vn(yn(h.current));!t||e===d||(d=e,_(!1),window.clearTimeout(o),o=window.setTimeout(s,8e3),t.setStyle(e))}),a.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-theme`]})})(),()=>{e=!0,window.clearTimeout(o),a?.disconnect();for(let e of n)e.remove();n=[],t?.remove()}},[b,i,r]);let C=c!==void 0||u!==void 0,w=b.length>0&&!v;return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),v?(0,S.jsx)(`div`,{className:`geo-map geo-map-empty faint`,children:`Map couldn’t load.`}):b.length?(0,S.jsx)(`div`,{ref:h,className:`geo-map mr-map`,"data-tiles":g?`ready`:`loading`,"aria-busy":!g}):(0,S.jsx)(`div`,{className:`geo-map geo-map-empty faint`,children:`No route to map.`}),w&&(0,S.jsx)(Ie,{}),C&&(0,S.jsxs)(`div`,{className:`mr-summary`,children:[c!==void 0&&Number.isFinite(c)&&(0,S.jsxs)(`div`,{className:`mr-stat`,children:[(0,S.jsx)(`span`,{className:`mr-stat-v`,children:l(c,{unit:`km`})}),(0,S.jsx)(`span`,{className:`mr-stat-k`,children:`distance`})]}),u!==void 0&&Number.isFinite(u)&&(0,S.jsxs)(`div`,{className:`mr-stat`,children:[(0,S.jsx)(`span`,{className:`mr-stat-v`,children:l(u,{unit:`m`})}),(0,S.jsx)(`span`,{className:`mr-stat-k`,children:`elevation gain`})]}),(0,S.jsxs)(`div`,{className:`mr-stat`,children:[(0,S.jsx)(`span`,{className:`mr-stat-v`,children:b.length}),(0,S.jsxs)(`span`,{className:`mr-stat-k`,children:[`stop`,b.length===1?``:`s`]})]})]}),b.length>0&&(0,S.jsx)(`ol`,{className:`mr-list`,children:b.map((e,t)=>(0,S.jsxs)(`li`,{className:`mr-row`,children:[(0,S.jsx)(`span`,{className:`mr-row-n`,children:t+1}),(0,S.jsxs)(`div`,{className:`mr-row-body`,children:[(0,S.jsx)(`span`,{className:`mr-row-label`,children:e.label}),e.leg&&(0,S.jsx)(`span`,{className:`mr-row-leg`,children:e.leg})]})]},t))}),d&&(0,S.jsx)(`p`,{className:`mr-caption`,children:d}),f&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:s(f)})]})}var V=50,Cn=50,H=42;function wn(e,t){let n=Math.min(1,Math.max(0,e)),r=H*Math.abs(1-2*n),i=+!!t;return`M ${V} 8 A ${H} ${H} 0 0 ${i} ${V} 92 A ${r} ${H} 0 0 ${n>.5?i:1-i} ${V} 8 Z`}function Tn(e){let t=(0,N.c)(9),{night:n,gradId:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,S.jsx)(`circle`,{cx:V,cy:Cn,r:H,className:`mp-dark`}),t[0]=i):i=t[0];let a;t[1]===n.illumination?a=t[2]:(a=wn(n.illumination,!0),t[1]=n.illumination,t[2]=a);let o=`url(#${r})`,s;t[3]!==a||t[4]!==o?(s=(0,S.jsx)(`path`,{d:a,fill:o,className:`mp-lit`}),t[3]=a,t[4]=o,t[5]=s):s=t[5];let c;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,S.jsx)(`circle`,{cx:V,cy:Cn,r:H,className:`mp-rim`}),t[6]=c):c=t[6];let l;return t[7]===s?l=t[8]:(l=(0,S.jsxs)(`svg`,{viewBox:`0 0 100 100`,className:`mp-mini-svg`,role:`img`,"aria-hidden":!0,children:[i,s,c]}),t[7]=s,t[8]=l),l}function En({title:e,icon:t=`moon`,iconColor:n=`var(--presence)`,illumination:r,waxing:i=!0,phaseName:a,date:l,upcoming:u,caption:d,footer:f,delay:p}){let m=o[t]||o.moon,h=(0,x.useId)().replace(/:/g,``),g=`mp-lit-${h}`,_=`mp-mini-${h}`,v=Math.min(1,Math.max(0,Number.isFinite(r)?r:0)),y=(u||[]).filter(e=>Number.isFinite(e.illumination)).slice(0,7);return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`mp-main`,children:[(0,S.jsx)(`div`,{className:`mp-diskwrap`,children:(0,S.jsxs)(`svg`,{viewBox:`0 0 100 100`,className:`mp-svg`,role:`img`,"aria-label":a||`Moon phase`,children:[(0,S.jsxs)(`defs`,{children:[(0,S.jsxs)(`radialGradient`,{id:g,cx:`42%`,cy:`38%`,r:`72%`,children:[(0,S.jsx)(`stop`,{offset:`0%`,stopColor:`var(--mp-glow-hi)`}),(0,S.jsx)(`stop`,{offset:`70%`,stopColor:`var(--mp-glow)`}),(0,S.jsx)(`stop`,{offset:`100%`,stopColor:`var(--mp-glow-lo)`})]}),(0,S.jsxs)(`radialGradient`,{id:_,cx:`42%`,cy:`38%`,r:`72%`,children:[(0,S.jsx)(`stop`,{offset:`0%`,stopColor:`var(--mp-glow-hi)`}),(0,S.jsx)(`stop`,{offset:`100%`,stopColor:`var(--mp-glow)`})]})]}),(0,S.jsx)(`circle`,{cx:V,cy:Cn,r:H,className:`mp-dark`}),(0,S.jsx)(`path`,{d:wn(v,i),fill:`url(#${g})`,className:`mp-lit`,"data-mark":`point`}),(0,S.jsx)(`circle`,{cx:V,cy:Cn,r:H,className:`mp-rim`})]})}),(0,S.jsxs)(`div`,{className:`mp-info`,children:[a&&(0,S.jsx)(`div`,{className:`mp-phase`,children:a}),(0,S.jsxs)(`div`,{className:`mp-illum`,children:[(0,S.jsx)(`span`,{className:`mp-illum-v`,children:c(v)}),(0,S.jsx)(`span`,{className:`mp-illum-k`,children:`illuminated`})]}),(0,S.jsx)(`div`,{className:`mp-side`,children:i?`Waxing · growing`:`Waning · shrinking`}),l&&(0,S.jsx)(`div`,{className:`mp-date`,children:l})]})]}),y.length>0&&(0,S.jsx)(`div`,{className:`mp-upcoming`,children:y.map((e,t)=>(0,S.jsxs)(`div`,{className:`mp-night`,children:[(0,S.jsx)(Tn,{night:e,gradId:_}),(0,S.jsx)(`span`,{className:`mp-night-date`,children:e.date}),(0,S.jsx)(`span`,{className:`mp-night-pct`,children:c(e.illumination)})]},t))}),d&&(0,S.jsx)(`p`,{className:`mp-caption`,children:d}),f&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:s(f)})]})}var U=100,W=100,Dn=92,G=e=>U+(e-.5)*2*88,K=e=>W+(e-.5)*2*88,On=e=>Math.max(.7,Math.min(2.8,2.6-(Number.isFinite(e)?e:3)*.36)),kn=e=>{let t=G(e.x)-U,n=K(e.y)-W;return Number.isFinite(e.x)&&Number.isFinite(e.y)&&t*t+n*n<=8464},An=e=>e>U?`end`:`start`,jn=(e,t)=>e>U?-t:t;function Mn({title:e,icon:t=`sparkle`,iconColor:n=`var(--presence)`,stars:r,constellations:i,planets:a,caption:c,footer:l,delay:u}){let d=o[t]||o.sparkle,f=`sky-clip-${(0,x.useId)().replace(/:/g,``)}`,p=(r||[]).filter(kn),m=(a||[]).filter(kn);return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`sky-wrap`,children:(0,S.jsxs)(`svg`,{viewBox:`0 0 200 200`,className:`sky-svg`,role:`img`,"aria-label":e||`Night sky`,children:[(0,S.jsxs)(`defs`,{children:[(0,S.jsxs)(`radialGradient`,{id:`${f}-bg`,cx:`50%`,cy:`42%`,r:`62%`,children:[(0,S.jsx)(`stop`,{offset:`0%`,stopColor:`var(--sky-zenith)`}),(0,S.jsx)(`stop`,{offset:`100%`,stopColor:`var(--sky-horizon)`})]}),(0,S.jsx)(`clipPath`,{id:f,children:(0,S.jsx)(`circle`,{cx:U,cy:W,r:Dn})})]}),(0,S.jsx)(`circle`,{cx:U,cy:W,r:Dn,fill:`url(#${f}-bg)`,className:`sky-dome`}),(0,S.jsxs)(`g`,{clipPath:`url(#${f})`,className:`sky-grid`,children:[(0,S.jsx)(`circle`,{cx:U,cy:W,r:Dn*.66}),(0,S.jsx)(`circle`,{cx:U,cy:W,r:Dn*.33}),(0,S.jsx)(`line`,{x1:U,y1:8,x2:U,y2:192}),(0,S.jsx)(`line`,{x1:8,y1:W,x2:192,y2:W})]}),(0,S.jsx)(`g`,{clipPath:`url(#${f})`,children:(i||[]).map((e,t)=>(e.lines||[]).map(([e,n],i)=>{let a=r?.[e],o=r?.[n];return!a||!o||!kn(a)||!kn(o)?null:(0,S.jsx)(`line`,{x1:G(a.x),y1:K(a.y),x2:G(o.x),y2:K(o.y),className:`sky-line`},`${t}-${i}`)}))}),(0,S.jsx)(`g`,{clipPath:`url(#${f})`,children:p.map((e,t)=>{let n=On(e.mag);return(0,S.jsxs)(`g`,{children:[n>1.8&&(0,S.jsx)(`circle`,{cx:G(e.x),cy:K(e.y),r:n*2.4,className:`sky-glow`}),(0,S.jsx)(`circle`,{cx:G(e.x),cy:K(e.y),r:n,className:`sky-star`,...t===0?{"data-mark":`point`}:{}})]},t)})}),m.map((e,t)=>{let n=G(e.x);return(0,S.jsxs)(`g`,{className:`sky-planet`,children:[(0,S.jsx)(`circle`,{cx:n,cy:K(e.y),r:2.4,className:`sky-planet-dot`}),(0,S.jsx)(`text`,{x:n+jn(n,4),y:K(e.y)+1.2,textAnchor:An(n),className:`sky-planet-lbl`,children:e.name})]},`p${t}`)}),p.map((e,t)=>{if(!e.name)return null;let n=G(e.x);return(0,S.jsx)(`text`,{x:n+jn(n,3.2),y:K(e.y)-2.4,textAnchor:An(n),className:`sky-star-lbl`,children:e.name},`l${t}`)}),(0,S.jsx)(`text`,{x:U,y:15,className:`sky-card`,children:`N`}),(0,S.jsx)(`text`,{x:U,y:189,className:`sky-card`,children:`S`}),(0,S.jsx)(`text`,{x:12,y:102.5,className:`sky-card`,children:`W`}),(0,S.jsx)(`text`,{x:188,y:102.5,className:`sky-card`,children:`E`})]})}),c&&(0,S.jsx)(`p`,{className:`sky-caption`,children:c}),l&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:s(l)})]})}var Nn=100,Pn=100,Fn=26,In=e=>2.6+(Number.isFinite(e)?Math.min(5,Math.max(1,e)):2)*1.2,Ln=[-58,122,28,208,-126,74,160,320],Rn=9;function zn(e){return e.length>Rn?e.slice(0,8).trimEnd()+`…`:e}function Bn({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,center:r,bodies:i,toScale:a=!1,caption:c,footer:l,delay:u}){let d=o[t]||o.globe,f=`orb-star-${(0,x.useId)().replace(/:/g,``)}`,p=(i||[]).filter(e=>Number.isFinite(e.orbitRadius)&&e.orbitRadius>0).slice().sort((e,t)=>e.orbitRadius-t.orbitRadius),m=p.map(e=>e.orbitRadius),h=m.length?Math.min(...m):0,g=(m.length?Math.max(...m):1)-h||1,_=e=>{let t=(e-h)/g;return a?t:Math.sqrt(t)},v=p.map((e,t)=>{let n=p.length===1?59:Fn+_(e.orbitRadius)*66,r=(Ln[t%Ln.length]-90)*Math.PI/180;return{...e,ring:n,x:Nn+n*Math.cos(r),y:Pn+n*Math.sin(r),r:In(e.size)}});return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`orb-wrap`,children:(0,S.jsxs)(`svg`,{viewBox:`0 0 200 200`,className:`orb-svg`,role:`img`,"aria-label":e||r,children:[(0,S.jsx)(`defs`,{children:(0,S.jsxs)(`radialGradient`,{id:f,cx:`50%`,cy:`50%`,r:`50%`,children:[(0,S.jsx)(`stop`,{offset:`0%`,stopColor:`var(--orb-star-hi)`}),(0,S.jsx)(`stop`,{offset:`100%`,stopColor:`var(--orb-star)`})]})}),v.map((e,t)=>(0,S.jsx)(`circle`,{cx:Nn,cy:Pn,r:e.ring,className:`orb-ring`},`ring${t}`)),(0,S.jsx)(`circle`,{cx:Nn,cy:Pn,r:11,fill:`url(#${f})`,className:`orb-center`}),(0,S.jsx)(`text`,{x:Nn,y:100.6,className:`orb-center-lbl`,children:r}),v.map((e,t)=>{let n=e.color||`var(--presence)`,r=(e.x-Nn)/(e.ring||1),i=(e.y-Pn)/(e.ring||1),a=e.x+r*(e.r+4),o=e.y+i*(e.r+4),s=r>.25?`start`:r<-.25?`end`:`middle`,c=[e.distance,e.period].filter(Boolean).join(` · `),l=zn(e.name);return(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`circle`,{cx:e.x,cy:e.y,r:e.r,fill:n,className:`orb-body`,...t===0?{"data-mark":`point`}:{}}),(0,S.jsxs)(`text`,{x:a,y:o-(c?1.4:-1.4),textAnchor:s,className:`orb-body-lbl`,children:[l,l!==e.name&&(0,S.jsx)(`title`,{children:e.name})]}),c&&(0,S.jsx)(`text`,{x:a,y:o+4.2,textAnchor:s,className:`orb-body-annot`,children:c})]},`b${t}`)})]})}),c&&(0,S.jsx)(`p`,{className:`orb-caption`,children:c}),l&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:s(l)})]})}var Vn=50,Hn=50,Un=44,Wn=[`primary`,`secondary`,`tertiary`],Gn=new Set(Wn),Kn={primary:[30,Un],secondary:[20,30],tertiary:[12,20]};function qn(e){return e.intensity&&Gn.has(e.intensity)?e.intensity:`primary`}var Jn=[{label:`joy`},{label:`trust`},{label:`fear`},{label:`surprise`},{label:`sadness`},{label:`disgust`},{label:`anger`},{label:`anticipation`}],Yn={joy:`var(--warning)`,trust:`var(--insight)`,fear:`var(--text-muted)`,surprise:`var(--insight-soft)`,sadness:`var(--presence-deep)`,disgust:`var(--presence)`,anger:`var(--danger)`,anticipation:`var(--warning-soft)`},Xn=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--danger)`,`var(--presence-deep)`,`var(--insight-soft)`,`var(--warning-soft)`,`var(--text-muted)`,`var(--presence-soft)`],Zn=e=>(e%360+360)%360;function Qn(e,t){let n=(Zn(e)-90)*(Math.PI/180);return[Vn+t*Math.cos(n),Hn+t*Math.sin(n)]}function $n(e,t,n,r){let[i,a]=Qn(e,r),[o,s]=Qn(t,r),[c,l]=Qn(t,n),[u,d]=Qn(e,n),f=+(t-e>180);return`M${i} ${a} A${r} ${r} 0 ${f} 1 ${o} ${s} L${c} ${l} A${n} ${n} 0 ${f} 0 ${u} ${d} Z`}function er(e,t){return e.color?e.color:Yn[e.label.trim().toLowerCase()]??Xn[t%Xn.length]}function tr({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,segments:r,highlight:i,caption:a,footer:c,delay:l}){let u=o[t]||o.spark,d=r&&r.length>0?r:Jn,f=i?.trim().toLowerCase(),p={primary:[],secondary:[],tertiary:[]};d.forEach((e,t)=>p[qn(e)].push({seg:e,i:t}));let m=Wn.filter(e=>p[e].length>0),h=m.length?Kn[m[m.length-1]][0]:Kn.primary[0],g=m.flatMap(e=>{let t=p[e],[n,r]=Kn[e],i=t.length,a=i===1?359.98:360/i;return t.map(({seg:t,i},o)=>{let s=t.angle??o*a;return{seg:t,tier:e,color:er(t,i),isHot:f!=null&&t.label.trim().toLowerCase()===f,mid:s,d:$n(s-a/2,s+a/2,n,r),markerR:r+4}})}),_=g.find(e=>e.isHot),v=_?{x:Qn(_.mid,_.markerR)[0],y:Qn(_.mid,_.markerR)[1],color:_.color}:null;return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`ew-wrap`,children:[(0,S.jsx)(`div`,{className:`ew-figbox`,children:(0,S.jsxs)(`svg`,{viewBox:`0 0 100 100`,className:`ew-svg`,role:`img`,"aria-label":e||`Feeling wheel`,children:[g.map((e,t)=>(0,S.jsx)(`path`,{d:e.d,fill:e.color,className:`ew-wedge m-stagger-item m-scale-in`+(e.isHot?` hot`:``),style:{"--i":t}},t)),(0,S.jsx)(`circle`,{cx:Vn,cy:Hn,r:h,className:`ew-hub`}),v&&(0,S.jsx)(`circle`,{cx:v.x,cy:v.y,r:4,className:`ew-marker`,fill:v.color,"data-mark":`point`})]})}),(0,S.jsx)(`div`,{className:`ew-list`,children:g.map((e,t)=>(0,S.jsxs)(`div`,{className:`ew-chip`+(e.isHot?` hot`:``)+` m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,S.jsx)(`span`,{className:`ew-chip-sw`,style:{background:e.color}}),(0,S.jsxs)(`span`,{className:`ew-chip-body`,children:[(0,S.jsx)(`span`,{className:`ew-chip-label`,children:e.seg.label}),e.tier!==`primary`&&(0,S.jsx)(`span`,{className:`ew-chip-tier`,children:e.tier})]})]},t))})]}),a&&(0,S.jsx)(`div`,{className:`ew-caption`,children:a}),c&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}var nr=[[`var(--presence-deep)`,`var(--presence-soft)`],[`var(--insight)`,`var(--presence)`],[`var(--warning)`,`var(--presence-deep)`],[`var(--text-muted)`,`var(--insight-soft)`]];function rr(e){return typeof e==`string`?e.trim():``}function ir(e){let t=(0,N.c)(17),{metric:n}=e,r=n?.value,i;t[0]===r?i=t[1]:(i=rr(r),t[0]=r,t[1]=i);let a=i;if(!a)return null;let o=n?.label,s;t[2]===o?s=t[3]:(s=rr(o),t[2]=o,t[3]=s);let c=s,l=n?.delta,u;t[4]===l?u=t[5]:(u=rr(l),t[4]=l,t[5]=u);let d=u,f=n?.deltaDir===`good`||n?.deltaDir===`bad`?n.deltaDir:``,p;t[6]===c?p=t[7]:(p=c&&(0,S.jsx)(`span`,{className:`crt-metric-label`,children:c}),t[6]=c,t[7]=p);let m;t[8]===a?m=t[9]:(m=(0,S.jsx)(`span`,{className:`crt-metric-value tab-num`,children:a}),t[8]=a,t[9]=m);let h;t[10]!==d||t[11]!==f?(h=d&&(0,S.jsx)(`span`,{className:`crt-metric-delta`+(f?` `+f:``),children:d}),t[10]=d,t[11]=f,t[12]=h):h=t[12];let g;return t[13]!==p||t[14]!==m||t[15]!==h?(g=(0,S.jsxs)(`span`,{className:`crt-metric`,children:[p,m,h]}),t[13]=p,t[14]=m,t[15]=h,t[16]=g):g=t[16],g}function ar({variant:e,index:t,isWinner:n}){let r=rr(e?.label)||`Variant ${t+1}`,i=rr(e?.headline),a=d(rr(e?.src)),s=Array.isArray(e?.metrics)?e.metrics:[],[c,l]=nr[t%nr.length];return(0,S.jsxs)(`div`,{className:`crt-card m-stagger-item m-fade-rise`+(n?` winner`:``),style:{"--i":t},children:[n&&(0,S.jsxs)(`span`,{className:`crt-ribbon`,children:[(0,S.jsx)(o.check,{className:`ic`}),` Winner`]}),(0,S.jsxs)(`div`,{className:`crt-media`,style:{background:`linear-gradient(135deg, ${c}, ${l})`},children:[a&&(0,S.jsx)(`img`,{className:`me-img-fill`,src:a,alt:``,loading:`lazy`,decoding:`async`,onError:e=>{e.currentTarget.style.display=`none`}}),i&&(0,S.jsx)(`span`,{className:`crt-headline`,children:i})]}),(0,S.jsx)(`div`,{className:`crt-cardlabel`,children:r}),s.length>0&&(0,S.jsx)(`div`,{className:`crt-metrics`,children:s.map((e,t)=>(0,S.jsx)(ir,{metric:e},t))})]})}function or({title:e,icon:t=`image`,iconColor:n=`var(--presence)`,variants:r,winner:i,footer:a,delay:c}){let l=o[t]||o.image,u=Array.isArray(r)?r:[],d=Number.isInteger(i)&&i>=0&&i<u.length?i:null;return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),u.length?(0,S.jsx)(`div`,{className:`crt-grid`,children:u.map((e,t)=>(0,S.jsx)(ar,{variant:e,index:t,isWinner:t===d},t))}):(0,S.jsx)(h,{message:`No creative variants to compare`}),a&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:s(a)})]})}function sr(e){return typeof e==`string`?e.trim():``}function cr(e){let t=(0,N.c)(22),{spec:n}=e,r=n?.name,i;t[0]===r?i=t[1]:(i=sr(r),t[0]=r,t[1]=i);let a=i,o=n?.sample,s;t[2]===o?s=t[3]:(s=sr(o),t[2]=o,t[3]=s);let c=s,l=n?.weight,u;t[4]===l?u=t[5]:(u=sr(l),t[4]=l,t[5]=u);let d=u;if(!a&&!c)return null;let f=a||`Untitled`,p;t[6]===f?p=t[7]:(p=(0,S.jsx)(`span`,{className:`brg-type-name`,children:f}),t[6]=f,t[7]=p);let m;t[8]===c?m=t[9]:(m=c&&(0,S.jsx)(`span`,{className:`brg-type-family faint`,children:c}),t[8]=c,t[9]=m);let h;t[10]===d?h=t[11]:(h=d&&(0,S.jsx)(`span`,{className:`brg-type-weight`,children:d}),t[10]=d,t[11]=h);let g;t[12]!==h||t[13]!==p||t[14]!==m?(g=(0,S.jsxs)(`div`,{className:`brg-type-meta`,children:[p,m,h]}),t[12]=h,t[13]=p,t[14]=m,t[15]=g):g=t[15];let _=c||`inherit`,v=d||void 0,y;t[16]!==_||t[17]!==v?(y=(0,S.jsx)(`div`,{className:`brg-type-preview`,style:{fontFamily:_,fontWeight:v},children:`Aa Bb Cc 123`}),t[16]=_,t[17]=v,t[18]=y):y=t[18];let b;return t[19]!==g||t[20]!==y?(b=(0,S.jsxs)(`div`,{className:`brg-type-row`,children:[g,y]}),t[19]=g,t[20]=y,t[21]=b):b=t[21],b}function lr({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,colors:r,typography:i,voiceNotes:a,footer:c,delay:l}){let u=o[t]||o.doc,[d,f]=(0,x.useState)(null),[p,m]=(0,x.useState)(null);y(()=>f(null),d===null?null:900),y(()=>m(null),p?1400:null);let g=Array.isArray(r)?r:[],_=Array.isArray(i)?i:[],v=Array.isArray(a)?a.filter(e=>typeof e==`string`&&e.trim().length>0):[],b=(e,t)=>{f(e);let n=window;typeof n.toast==`function`?n.toast(`Copied ${t}`):(navigator.clipboard?.writeText(t).catch(()=>{}),m(`Copied ${t}`))};return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),g.length?(0,S.jsx)(`div`,{className:`me-pal`,children:g.map((e,t)=>{let n=sr(e?.hex),r=sr(e?.name)||`Color ${t+1}`;return(0,S.jsxs)(`button`,{className:`me-pal-swatch`+(e?.light?` light`:``)+(d===t?` copied`:``),style:{background:n||`var(--surface-glass-strong)`},onClick:()=>n&&b(t,n),disabled:!n,title:n?`Copy ${n}`:r,children:[(0,S.jsxs)(`span`,{className:`me-pal-top`,children:[e?.contrast&&(0,S.jsx)(`span`,{className:`me-pal-contrast`,children:e.contrast}),(0,S.jsx)(`span`,{className:`me-pal-copyicon`,children:d===t?(0,S.jsx)(o.check,{}):(0,S.jsx)(o.layers,{})})]}),(0,S.jsxs)(`span`,{className:`me-pal-meta`,children:[(0,S.jsx)(`span`,{className:`me-pal-name`,children:r}),(0,S.jsx)(`span`,{className:`me-pal-hex tab-num`,children:d===t?`Copied`:n||`—`})]})]},t)})}):(0,S.jsx)(h,{message:`No brand colors to show`}),p&&(0,S.jsxs)(`div`,{className:`me-pal-toast`,children:[(0,S.jsx)(o.check,{}),` `,p]}),_.length>0&&(0,S.jsx)(`div`,{className:`brg-type-stack`,children:_.map((e,t)=>(0,S.jsx)(cr,{spec:e},t))}),v.length>0&&(0,S.jsx)(`ul`,{className:`brg-voice`,children:v.map((e,t)=>(0,S.jsx)(`li`,{className:`brg-voice-item`,children:e},t))}),c&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:s(c)})]})}var ur=200,dr=140,fr=[`var(--warning)`,`var(--presence)`,`var(--insight)`,`var(--danger)`],pr=[`var(--danger)`,`var(--warning-soft)`,`var(--presence-soft)`];function mr(e){return Array.isArray(e)&&e.length===2&&Number.isFinite(e[0])&&Number.isFinite(e[1])}function hr(e){return Array.isArray(e)?e.filter(mr):[]}function gr(e,t,n){return Math.min(n,Math.max(t,e))}function _r(e){let t=e.length;if(t===0)return[0,0];let n=0,r=0;for(let[t,i]of e)n+=t,r+=i;return[n/t,r/t]}function vr(e,t){let[n,r]=_r(e);return e.map(([e,i])=>{let a=e-n,o=i-r,s=Math.hypot(a,o)||1e-6,c=gr(s-t,s*.08,s*3)/s;return[n+a*c,r+o*c]})}function yr({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,boundary:r,structureFootprint:i,setbackLines:a,easements:c,footer:u,delay:d}){let f=o[t]||o.layers,p=(0,x.useId)().replace(/:/g,``),g=hr(r),_=hr(i),v=(Array.isArray(c)?c:[]).map(e=>{let t=hr(e?.path);return t.length<3?null:{path:t,label:typeof e?.label==`string`?e.label.trim():``}}).filter(e=>e!==null),y=(Array.isArray(a)?a:[]).map(e=>{if(!Number.isFinite(e?.offset))return null;let t=typeof e?.label==`string`?e.label.trim():``;return{offset:Math.max(0,e.offset),label:t}}).filter(e=>e!==null);if(g.length<3)return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(h,{message:`No property boundary to draw`})]});let b=[],C=[];for(let[e,t]of g)b.push(e),C.push(t);for(let[e,t]of _)b.push(e),C.push(t);for(let e of v)for(let[t,n]of e.path)b.push(t),C.push(n);let w=m(b),T=m(C),[E,D]=w??[0,1],[O,k]=T??[0,1],A=D-E||1,j=k-O||1,M=Math.min(168/A,108/j),N=A*M,P=j*M,ee=(ur-N)/2,F=(dr-P)/2,I=e=>ee+(e-E)*M,L=e=>F+(e-O)*M,te=e=>e.map(([e,t])=>`${I(e)},${L(t)}`).join(` `),[ne,re]=_r(g);return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`splan-wrap`,children:(0,S.jsxs)(`svg`,{viewBox:`0 0 ${ur} ${dr}`,className:`splan-svg`,role:`img`,"aria-label":e,children:[(0,S.jsx)(`defs`,{children:v.map((e,t)=>{let n=pr[t%pr.length];return(0,S.jsx)(`pattern`,{id:`splan-hatch-${p}-${t}`,width:`4.5`,height:`4.5`,patternUnits:`userSpaceOnUse`,patternTransform:`rotate(45)`,children:(0,S.jsx)(`line`,{x1:`0`,y1:`0`,x2:`0`,y2:`4.5`,stroke:n,strokeWidth:`1.1`})},t)})}),(0,S.jsx)(`rect`,{x:ee-2,y:F-2,width:N+4,height:P+4,fill:`var(--surface-glass)`,rx:2}),y.map((e,t)=>{let n=vr(g,e.offset),r=n[t%n.length],[i,a]=[r[0]-ne,r[1]-re],o=Math.hypot(i,a)||1e-6,s=r[0]+i/o*(o*.12),c=r[1]+a/o*(o*.12),l=fr[t%fr.length];return(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`polygon`,{points:te(n),fill:`none`,stroke:l,strokeWidth:.7,strokeDasharray:`3.2 2.2`}),(0,S.jsx)(`circle`,{cx:I(s),cy:L(c),r:4.2,className:`splan-badge`,fill:l}),(0,S.jsx)(`text`,{x:I(s),y:L(c),textAnchor:`middle`,dominantBaseline:`middle`,className:`splan-badge-text`,children:`S${t+1}`})]},t)}),v.map((e,t)=>{let[n,r]=_r(e.path),i=pr[t%pr.length];return(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`polygon`,{points:te(e.path),fill:`url(#splan-hatch-${p}-${t})`,fillOpacity:.55,stroke:i,strokeWidth:.6,strokeDasharray:`1.8 1.4`}),(0,S.jsx)(`circle`,{cx:I(n),cy:L(r),r:4.2,className:`splan-badge`,fill:i}),(0,S.jsx)(`text`,{x:I(n),y:L(r),textAnchor:`middle`,dominantBaseline:`middle`,className:`splan-badge-text`,children:`E${t+1}`})]},t)}),_.length>=3&&(0,S.jsx)(`polygon`,{points:te(_),className:`splan-structure`}),(0,S.jsx)(`polygon`,{points:te(g),className:`splan-boundary`,"data-mark":`circle`})]})}),(y.length>0||v.length>0)&&(0,S.jsxs)(`div`,{className:`splan-legend`,children:[y.map((e,t)=>(0,S.jsxs)(`div`,{className:`splan-legend-row`,children:[(0,S.jsx)(`span`,{className:`splan-legend-dot`,style:{background:fr[t%fr.length]}}),(0,S.jsx)(`span`,{className:`splan-legend-label`,children:e.label||`Setback ${t+1}`}),(0,S.jsx)(`span`,{className:`splan-legend-val tab-num`,children:l(e.offset)})]},`s${t}`)),v.map((e,t)=>(0,S.jsxs)(`div`,{className:`splan-legend-row`,children:[(0,S.jsx)(`span`,{className:`splan-legend-dot hatched`,style:{background:pr[t%pr.length]}}),(0,S.jsx)(`span`,{className:`splan-legend-label`,children:e.label||`Easement ${t+1}`})]},`e${t}`))]}),u&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:s(u)})]})}function br(e,t){let n=(0,N.c)(2),[r,i]=(0,x.useState)(e),[a,o]=(0,x.useState)(t);Object.is(a,t)||(o(t),i(e));let s;return n[0]===r?s=n[1]:(s=[r,i],n[0]=r,n[1]=s),s}function xr(e){let t=1779033703^e.length;for(let n=0;n<e.length;n++)t=Math.imul(t^e.charCodeAt(n),3432918353),t=t<<13|t>>>19;return t>>>0}function Sr(e){let t=e>>>0;return()=>{t=t+1831565813|0;let e=Math.imul(t^t>>>15,1|t);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}var Cr=[82,15,28,43,127,22,20,61,70,2,8,40,24,67,75,19,1,60,63,91,28,10,24,2,20,1],wr=Cr.reduce((e,t)=>e+t,0);function Tr(e){let t=e()*wr;for(let e=0;e<26;e++)if(t-=Cr[e],t<=0)return String.fromCharCode(65+e);return`E`}var Er=[[0,1],[1,0],[1,1],[-1,1],[0,-1],[-1,0],[-1,-1],[1,-1]];function Dr(e,t,n,r,i,a,o){for(let s=0;s<n.length;s++){let c=e[(r+a*s)*t+(i+o*s)];if(c!==``&&c!==n[s])return!1}return!0}function Or(e,t,n,r,i,a,o){for(let s=0;s<n.length;s++)e[(r+a*s)*t+(i+o*s)]=n[s]}function kr(e,t,n){let r=n<0?t-1:0,i=n>0?e-t:e-1;return{lo:r,span:Math.max(1,i-r+1)}}function Ar(e,t,n){let r=e.reduce((e,t)=>Math.max(e,t.length),0),i=Number.isFinite(t)?Math.round(t):r+2,a=Math.min(15,Math.max(8,i)),o=Array(a*a).fill(``),s=Sr(xr(n)),c=[],l=[],u=[...e].sort((e,t)=>t.length-e.length);for(let e of u){if(e.length>a){l.push(e);continue}let t=!1;for(let n=0;n<240&&!t;n++){let[n,r]=Er[Math.floor(s()*Er.length)%Er.length],i=kr(a,e.length,n),l=kr(a,e.length,r),u=i.lo+Math.floor(s()*i.span),d=l.lo+Math.floor(s()*l.span);Dr(o,a,e,u,d,n,r)&&(Or(o,a,e,u,d,n,r),c.push({word:e,row:u,col:d,dr:n,dc:r}),t=!0)}if(!t){let n=a*a,r=Math.floor(s()*n);outer:for(let i=0;i<n;i++){let s=(i+r)%n,l=Math.floor(s/a),u=s%a;for(let[n,r]of Er){let i=l+n*(e.length-1),s=u+r*(e.length-1);if(!(i<0||i>=a||s<0||s>=a)&&Dr(o,a,e,l,u,n,r)){Or(o,a,e,l,u,n,r),c.push({word:e,row:l,col:u,dr:n,dc:r}),t=!0;break outer}}}t||l.push(e)}}for(let e=0;e<o.length;e++)o[e]===``&&(o[e]=Tr(s));return{n:a,letters:o,placed:c,skipped:l}}function jr(e){return(typeof e==`string`?e:e&&typeof e==`object`?String(e.text??e.word??e.label??``):``).toUpperCase().replace(/[^A-Z]/g,``)}var Mr=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--presence-deep)`,`var(--insight-soft)`],q=10;function Nr({title:e,icon:t=`search`,iconColor:n=`var(--presence)`,words:r,size:i,seed:a,footer:c,delay:l}){let u=o[t]||o.search,d=(0,x.useMemo)(()=>{let e=Array.isArray(r)?r:[],t=new Set,n=[];for(let r of e){let e=jr(r);if(e&&!t.has(e)&&(t.add(e),n.push(e)),n.length>=18)break}return n},[r]),f=(0,x.useMemo)(()=>Ar(d,i,typeof a==`string`&&a?a:d.join(`|`)),[d,i,a]),[p,m]=br([],f.letters.join(``)+f.placed.length),g=new Set(p),_=f.placed.length>0&&p.length>=f.placed.length;if(d.length===0||f.placed.length===0)return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(h,{message:`No words to hide`,hint:d.length?`None of the words fit this grid`:void 0})]});let{n:v,letters:y,placed:b,skipped:C}=f,w=v*q,T=e=>Mr[Math.max(0,b.findIndex(t=>t.word===e))%Mr.length],E=e=>{m(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])};return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`wsr-wrap`,children:[(0,S.jsx)(`div`,{className:`wsr-gridbox`,children:(0,S.jsxs)(`svg`,{viewBox:`0 0 ${w} ${w}`,className:`wsr-svg`,role:`img`,"aria-label":e||`Word search grid`,children:[Array.from({length:v+1},(e,t)=>(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`line`,{x1:t*q,y1:0,x2:t*q,y2:w,className:`wsr-grid`}),(0,S.jsx)(`line`,{x1:0,y1:t*q,x2:w,y2:t*q,className:`wsr-grid`})]},t)),b.map(e=>g.has(e.word)?(0,S.jsx)(`line`,{x1:(e.col+.5)*q,y1:(e.row+.5)*q,x2:(e.col+e.dc*(e.word.length-1)+.5)*q,y2:(e.row+e.dr*(e.word.length-1)+.5)*q,className:`wsr-hit`,style:{stroke:T(e.word)},strokeWidth:q*.82},e.word):null),y.map((e,t)=>(0,S.jsx)(`text`,{x:t%v*q+q/2,y:Math.floor(t/v)*q+q/2,className:`wsr-letter`,textAnchor:`middle`,dominantBaseline:`central`,children:e},t))]})}),(0,S.jsxs)(`div`,{className:`wsr-side`,children:[(0,S.jsx)(`div`,{className:`wsr-words`,children:d.filter(e=>b.some(t=>t.word===e)).map(e=>{let t=g.has(e);return(0,S.jsxs)(`button`,{type:`button`,className:`wsr-word`+(t?` on`:``),"aria-pressed":t,onClick:()=>E(e),children:[(0,S.jsx)(`span`,{className:`wsr-dot`,style:{background:T(e)},"aria-hidden":!0}),e]},e)})}),(0,S.jsx)(`button`,{type:`button`,className:`wsr-reveal`,onClick:()=>m(_?[]:b.map(e=>e.word)),children:_?`Hide all`:`Reveal all`}),C.length>0&&(0,S.jsxs)(`div`,{className:`wsr-skip`,children:[`Didn’t fit this grid: `,C.join(`, `)]})]})]}),c&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}var Pr=250,Fr=350,Ir=Pr/2,Lr=Fr/2,Rr={diamonds:`M0 -46 L32 0 L0 46 L-32 0 Z`,hearts:`M0 42 C-28 18 -42 2 -42 -14 C-42 -30 -30 -40 -18 -40 C-10 -40 -3 -35 0 -27 C3 -35 10 -40 18 -40 C30 -40 42 -30 42 -14 C42 2 28 18 0 42 Z`,spades:`M0 -44 C-24 -16 -40 -4 -40 12 C-40 26 -29 34 -19 34 C-12 34 -6 31 -2 25 C-4 36 -8 42 -14 47 L14 47 C8 42 4 36 2 25 C6 31 12 34 19 34 C29 34 40 26 40 12 C40 -4 24 -16 0 -44 Z`},zr=new Set([`hearts`,`diamonds`]),Br=new Set([`spades`,`hearts`,`diamonds`,`clubs`]);function Vr(e){let t=(0,N.c)(11),{x:n,y:r,s:i,suit:a,flip:o}=e,s=`translate(${n},${r}) scale(${i/100})${o?` rotate(180)`:``}`;if(a===`clubs`){let e,n,r,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,S.jsx)(`circle`,{cx:0,cy:-22,r:18}),n=(0,S.jsx)(`circle`,{cx:-17,cy:4,r:18}),r=(0,S.jsx)(`circle`,{cx:17,cy:4,r:18}),i=(0,S.jsx)(`path`,{d:`M-2 6 C-3 22 -7 34 -13 44 L13 44 C7 34 3 22 2 6 Z`}),t[0]=e,t[1]=n,t[2]=r,t[3]=i):(e=t[0],n=t[1],r=t[2],i=t[3]);let a;return t[4]===s?a=t[5]:(a=(0,S.jsxs)(`g`,{transform:s,children:[e,n,r,i]}),t[4]=s,t[5]=a),a}let c=Rr[a]??Rr.spades,l;t[6]===c?l=t[7]:(l=(0,S.jsx)(`path`,{d:c}),t[6]=c,t[7]=l);let u;return t[8]!==l||t[9]!==s?(u=(0,S.jsx)(`g`,{transform:s,children:l}),t[8]=l,t[9]=s,t[10]=u):u=t[10],u}var J=55,Hr={2:[[0,-100],[0,100]],3:[[0,-100],[0,0],[0,100]],4:[[-55,-100],[J,-100],[-55,100],[J,100]],5:[[-55,-100],[J,-100],[0,0],[-55,100],[J,100]],6:[[-55,-100],[J,-100],[-55,0],[J,0],[-55,100],[J,100]],7:[[-55,-100],[J,-100],[0,-50],[-55,0],[J,0],[-55,100],[J,100]],8:[[-55,-100],[J,-100],[0,-50],[-55,0],[J,0],[0,50],[-55,100],[J,100]],9:[[-55,-100],[J,-100],[-55,-33],[J,-33],[0,0],[-55,33],[J,33],[-55,100],[J,100]],10:[[-55,-100],[J,-100],[0,-66],[-55,-33],[J,-33],[-55,33],[J,33],[0,66],[-55,100],[J,100]]};function Ur(e){let t=(0,N.c)(58),{card:n,backId:r}=e,i=n.suit&&Br.has(n.suit)?n.suit:`spades`,a;t[0]===n.rank?a=t[1]:(a=String(n.rank??``).trim().slice(0,3)||`?`,t[0]=n.rank,t[1]=a);let o=a,s=zr.has(i);if(n.faceDown){let e;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,S.jsx)(`rect`,{x:3,y:3,width:244,height:344,rx:18,className:`pcd-face`}),t[2]=e):e=t[2];let n=`url(#${r})`,i;return t[3]===n?i=t[4]:(i=(0,S.jsxs)(`svg`,{viewBox:`0 0 ${Pr} ${Fr}`,className:`pcd-svg`,role:`img`,"aria-label":`Face-down card`,children:[e,(0,S.jsx)(`rect`,{x:16,y:16,width:218,height:318,rx:10,className:`pcd-back`,fill:n})]}),t[3]=n,t[4]=i),i}let c=Hr[o],l=!c,u=o.length>2?30:o.length===2?38:46,d=s?`pcd-red`:`pcd-blk`,f;t[5]===u?f=t[6]:(f={fontSize:u},t[5]=u,t[6]=f);let p;t[7]!==o||t[8]!==f?(p=(0,S.jsx)(`text`,{x:30,y:30,className:`pcd-rank`,style:f,children:o}),t[7]=o,t[8]=f,t[9]=p):p=t[9];let m;t[10]===i?m=t[11]:(m=(0,S.jsx)(Vr,{x:30,y:78,s:34,suit:i}),t[10]=i,t[11]=m);let h;t[12]!==d||t[13]!==p||t[14]!==m?(h=(0,S.jsxs)(`g`,{className:d,children:[p,m]}),t[12]=d,t[13]=p,t[14]=m,t[15]=h):h=t[15];let g=h,_;if(o===`A`){let e=s?`pcd-red`:`pcd-blk`,n;t[16]===i?n=t[17]:(n=(0,S.jsx)(Vr,{x:Ir,y:Lr,s:120,suit:i}),t[16]=i,t[17]=n);let r;t[18]!==e||t[19]!==n?(r=(0,S.jsx)(`g`,{className:e,children:n}),t[18]=e,t[19]=n,t[20]=r):r=t[20],_=r}else if(l){let e=s?`pcd-red`:`pcd-blk`,n;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,S.jsx)(`rect`,{x:54,y:70,width:142,height:210,rx:8,className:`pcd-frame`}),t[21]=n):n=t[21];let r=o.length>1?58:86,a;t[22]===r?a=t[23]:(a={fontSize:r},t[22]=r,t[23]=a);let c;t[24]!==o||t[25]!==a?(c=(0,S.jsx)(`text`,{x:Ir,y:149,className:`pcd-court`,style:a,children:o}),t[24]=o,t[25]=a,t[26]=c):c=t[26];let l;t[27]===i?l=t[28]:(l=(0,S.jsx)(Vr,{x:Ir,y:227,s:54,suit:i}),t[27]=i,t[28]=l);let u;t[29]!==c||t[30]!==l||t[31]!==e?(u=(0,S.jsxs)(`g`,{className:e,children:[n,c,l]}),t[29]=c,t[30]=l,t[31]=e,t[32]=u):u=t[32],_=u}else{let e=s?`pcd-red`:`pcd-blk`,n;if(t[33]!==c||t[34]!==i){let e;t[36]===i?e=t[37]:(e=(e,t)=>{let[n,r]=e;return(0,S.jsx)(Vr,{x:Ir+n,y:Lr+r*.92,s:48,suit:i,flip:r>0},t)},t[36]=i,t[37]=e),n=c.map(e),t[33]=c,t[34]=i,t[35]=n}else n=t[35];let r;t[38]!==e||t[39]!==n?(r=(0,S.jsx)(`g`,{className:e,children:n}),t[38]=e,t[39]=n,t[40]=r):r=t[40],_=r}let v=`${o} of ${i}`,y;t[41]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,S.jsx)(`rect`,{x:3,y:3,width:244,height:344,rx:18,className:`pcd-face`}),t[41]=y):y=t[41];let b=s?`pcd-red`:`pcd-blk`,x;t[42]===u?x=t[43]:(x={fontSize:u},t[42]=u,t[43]=x);let C;t[44]!==o||t[45]!==x?(C=(0,S.jsx)(`text`,{x:30,y:30,className:`pcd-rank`,style:x,children:o}),t[44]=o,t[45]=x,t[46]=C):C=t[46];let w;t[47]===i?w=t[48]:(w=(0,S.jsx)(Vr,{x:30,y:78,s:34,suit:i}),t[47]=i,t[48]=w);let T;t[49]!==C||t[50]!==w||t[51]!==b?(T=(0,S.jsxs)(`g`,{transform:`rotate(180 ${Ir} ${Lr})`,className:b,children:[C,w]}),t[49]=C,t[50]=w,t[51]=b,t[52]=T):T=t[52];let E;return t[53]!==_||t[54]!==g||t[55]!==T||t[56]!==v?(E=(0,S.jsxs)(`svg`,{viewBox:`0 0 ${Pr} ${Fr}`,className:`pcd-svg`,role:`img`,"aria-label":v,children:[y,g,T,_]}),t[53]=_,t[54]=g,t[55]=T,t[56]=v,t[57]=E):E=t[57],E}function Wr(e){let t=Math.min(58,320/Math.max(1,e-1)),n=1+(e-1)*t/100;return{widthPct:Math.min(24,94/n),stepPct:t,stepDeg:Math.min(8,44/Math.max(1,e-1))}}var Gr=26;function Kr({group:e,backId:t}){let n=Array.isArray(e.cards)?e.cards.filter(e=>e&&typeof e==`object`):[],r=n.slice(0,Gr),i=n.length-r.length,a=e.layout===`fan`||e.layout===`stack`?e.layout:`row`,o=r.length,s;if(o===0)s=(0,S.jsx)(`div`,{className:`pcd-none`,children:`No cards`});else if(a===`fan`){let{widthPct:e,stepPct:n,stepDeg:i}=Wr(o),a=(o-1)/2;s=(0,S.jsx)(`div`,{className:`pcd-fan`,children:r.map((r,o)=>(0,S.jsx)(`div`,{className:`pcd-fancard`,style:{width:`${e}%`,transform:`translateX(${(o-a)*n}%) rotate(${(o-a)*i}deg) translateY(${Math.abs(o-a)*Math.abs(o-a)*i*.16}px)`},children:(0,S.jsx)(Ur,{card:r,backId:t})},o))})}else if(a===`stack`){let e=Math.min(o,7);s=(0,S.jsxs)(`div`,{className:`pcd-stackrow`,children:[(0,S.jsx)(`div`,{className:`pcd-stack`,children:r.slice(0,e).map((e,n)=>(0,S.jsx)(`div`,{className:`pcd-stackcard`,style:{transform:`translate(${n*4}%, ${n*3}%)`},children:(0,S.jsx)(Ur,{card:e,backId:t})},n))}),o>1&&(0,S.jsxs)(`span`,{className:`pcd-count tab-num`,children:[`×`,o]})]})}else s=(0,S.jsx)(`div`,{className:`pcd-row`,children:r.map((e,n)=>(0,S.jsx)(`div`,{className:`pcd-rowcard`,style:{"--pcd-n":o},children:(0,S.jsx)(Ur,{card:e,backId:t})},n))});return(0,S.jsxs)(`div`,{className:`pcd-group`,children:[e.label&&(0,S.jsx)(`div`,{className:`pcd-glabel`,children:e.label}),s,i>0&&(0,S.jsxs)(`div`,{className:`pcd-more`,children:[`+`,i,` more`]})]})}function qr({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,groups:r,note:i,footer:a,delay:c}){let l=o[t]||o.layers,u=`pcd-back-${(0,x.useId)().replace(/:/g,``)}`,d=Array.isArray(r)?r.filter(e=>e&&typeof e==`object`):[],f=d.some(e=>Array.isArray(e.cards)&&e.cards.length>0);return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),f?(0,S.jsxs)(`div`,{className:`pcd-wrap`,children:[(0,S.jsx)(`svg`,{width:`0`,height:`0`,className:`pcd-defs`,"aria-hidden":!0,focusable:`false`,children:(0,S.jsx)(`defs`,{children:(0,S.jsxs)(`pattern`,{id:u,patternUnits:`userSpaceOnUse`,width:`26`,height:`26`,children:[(0,S.jsx)(`rect`,{width:`26`,height:`26`,className:`pcd-backfill`}),(0,S.jsx)(`path`,{d:`M0 26 L26 0 M-6 6 L6 -6 M20 32 L32 20`,className:`pcd-backline`}),(0,S.jsx)(`path`,{d:`M0 0 L26 26 M20 -6 L32 6 M-6 20 L6 32`,className:`pcd-backline`})]})})}),d.map((e,t)=>(0,S.jsx)(Kr,{group:e,backId:u},t))]}):(0,S.jsx)(h,{message:`No cards to show`}),i&&(0,S.jsx)(`div`,{className:`pcd-note`,children:i}),a&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}var Y=10,X=14,Jr=60,Yr=60,Xr={k:`knit on RS · purl on WS`,p:`purl on RS · knit on WS`,yo:`yarn over`,k2tog:`knit 2 together (right-leaning decrease)`,ssk:`slip, slip, knit (left-leaning decrease)`,c4f:`cable 4 front (left cross)`,c4b:`cable 4 back (right cross)`,sl:`slip stitch purlwise`,bo:`bind off`,co:`cast on`,mb:`make bobble`};function Zr(e,t,n){let r=Y/2;switch(e){case`k`:return null;case`p`:return(0,S.jsx)(`circle`,{cx:t+r,cy:n+r,r:1.15,className:`stc-fill`});case`yo`:return(0,S.jsx)(`circle`,{cx:t+r,cy:n+r,r:2.7,className:`stc-stroke`});case`k2tog`:return(0,S.jsx)(`path`,{d:`M${t+2.2} ${n+7.8} L${t+7.8} ${n+2.2}`,className:`stc-stroke`});case`ssk`:return(0,S.jsx)(`path`,{d:`M${t+2.2} ${n+2.2} L${t+7.8} ${n+7.8}`,className:`stc-stroke`});case`sl`:return(0,S.jsx)(`path`,{d:`M${t+2.6} ${n+3} L${t+5} ${n+7.4} L${t+7.4} ${n+3}`,className:`stc-stroke`});case`c4f`:return(0,S.jsxs)(`g`,{className:`stc-stroke`,children:[(0,S.jsx)(`path`,{d:`M${t+1.6} ${n+8.4} L${t+8.4} ${n+1.6}`}),(0,S.jsx)(`path`,{d:`M${t+1.6} ${n+1.6} L${t+3.7} ${n+3.7} M${t+6.3} ${n+6.3} L${t+8.4} ${n+8.4}`})]});case`c4b`:return(0,S.jsxs)(`g`,{className:`stc-stroke`,children:[(0,S.jsx)(`path`,{d:`M${t+1.6} ${n+1.6} L${t+8.4} ${n+8.4}`}),(0,S.jsx)(`path`,{d:`M${t+1.6} ${n+8.4} L${t+3.7} ${n+6.3} M${t+6.3} ${n+3.7} L${t+8.4} ${n+1.6}`})]});case`bo`:return(0,S.jsx)(`path`,{d:`M${t+2} ${n+r} L${t+8} ${n+r}`,className:`stc-stroke stc-heavy`});case`co`:return(0,S.jsx)(`path`,{d:`M${t+5} ${n+2.6} L${t+7.9} ${n+7.4} L${t+2.1} ${n+7.4} Z`,className:`stc-stroke`});case`mb`:return(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`circle`,{cx:t+r,cy:n+r,r:2.7,className:`stc-stroke`}),(0,S.jsx)(`circle`,{cx:t+r,cy:n+r,r:1,className:`stc-fill`})]});default:{let i=3.6;for(;i>1.8&&v(e,i)>8.4;)i-=.2;let a=v(e,i)>8.4;return(0,S.jsx)(`text`,{x:t+r,y:n+r,className:`stc-cellText`,style:{fontSize:i},...a?{textLength:8.4,lengthAdjust:`spacingAndGlyphs`}:{},children:e})}}}function Qr(e){if(typeof e==`string`)return e.trim();if(e&&typeof e==`object`){let t=e,n=t.text??t.key??t.stitch??t.label;if(typeof n==`string`)return n.trim()}return``}function $r(e){if(typeof e==`string`)return e.split(/\s+/).filter(Boolean);if(!e||typeof e!=`object`)return[];let t=e.stitches;return Array.isArray(t)?t.flatMap(e=>Qr(e).split(/\s+/)).filter(Boolean):typeof t==`string`?t.split(/\s+/).filter(Boolean):[]}function ei({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,rows:r,legend:i,gauge:a,caption:c,footer:l,delay:u}){let d=o[t]||o.edit,f=(Array.isArray(r)?r:[]).map((e,t)=>{let n=e&&typeof e==`object`?e:{},r=typeof n.number==`number`&&Number.isFinite(n.number)?Math.round(n.number):t+1;return{num:r,side:n.side===`WS`?`WS`:n.side===`RS`?`RS`:r%2==0?`WS`:`RS`,stitches:$r(e).slice(0,Yr)}}).filter(e=>e.stitches.length>0).slice(0,Jr);if(f.length===0)return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(h,{message:`No chart rows to draw`})]});let p=f.reduce((e,t)=>Math.max(e,t.stitches.length),0),m=p*Y,g=f.length*Y,_=m+28,v=g+4,y=new Map;for(let e of Array.isArray(i)?i:[])e&&typeof e==`object`&&typeof e.key==`string`&&typeof e.meaning==`string`&&y.set(e.key.trim(),e.meaning);let b=[];for(let e of f)for(let t of e.stitches)b.includes(t)||b.push(t);return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(`div`,{className:`stc-figwrap`,children:(0,S.jsxs)(`svg`,{viewBox:`0 0 ${_} ${v}`,className:`stc-svg`,role:`img`,"aria-label":e||`Stitch chart`,children:[(0,S.jsx)(`rect`,{x:X,y:2,width:m,height:g,className:`stc-frame`}),Array.from({length:p-1},(e,t)=>(0,S.jsx)(`line`,{x1:X+(t+1)*Y,y1:2,x2:X+(t+1)*Y,y2:2+g,className:`stc-grid`},`v${t}`)),Array.from({length:f.length-1},(e,t)=>(0,S.jsx)(`line`,{x1:X,y1:2+(t+1)*Y,x2:X+m,y2:2+(t+1)*Y,className:`stc-grid`},`h${t}`)),f.map((e,t)=>{let n=2+(f.length-1-t)*Y,r=e.side===`RS`;return(0,S.jsxs)(`g`,{children:[e.stitches.map((e,t)=>{let i=X+(r?p-1-t:t)*Y;return(0,S.jsx)(`g`,{children:Zr(e,i,n)},t)}),(0,S.jsx)(`text`,{x:r?X+m+3:11,y:n+Y/2,className:`stc-rownum`+(r?` rs`:` ws`),children:e.num})]},t)})]})}),(0,S.jsx)(`div`,{className:`stc-legend`,children:b.map(e=>(0,S.jsxs)(`span`,{className:`stc-legchip`,children:[(0,S.jsxs)(`svg`,{viewBox:`0 0 10 10`,className:`stc-legswatch`,"aria-hidden":!0,children:[(0,S.jsx)(`rect`,{x:.4,y:.4,width:9.2,height:9.2,className:`stc-frame`}),Zr(e,0,0)]}),(0,S.jsx)(`span`,{className:`stc-legkey`,children:e}),(0,S.jsx)(`span`,{className:`stc-legmeaning`,children:y.get(e)??Xr[e]??`pattern stitch`})]},e))}),a&&(0,S.jsxs)(`div`,{className:`stc-gauge`,children:[(0,S.jsx)(`span`,{className:`stc-gauge-k`,children:`Gauge`}),(0,S.jsx)(`span`,{className:`stc-gauge-v`,children:a})]}),c&&(0,S.jsx)(`div`,{className:`stc-caption`,children:c}),l&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(l)})]})}var ti={c:0,d:2,e:4,f:5,g:7,a:9,b:11},ni=new Set([1,3,6,8,10]),ri=/^([a-gA-G])([#♯b♭]?)(-?\d{1,2})$/;function ii(e){if(typeof e==`number`&&Number.isFinite(e)){let t=Math.round(e);return t>=0&&t<=127?t:null}if(typeof e!=`string`)return null;let t=e.trim();if(!t)return null;if(/^\d{1,3}$/.test(t)){let e=Number(t);return e>=0&&e<=127?e:null}let n=ri.exec(t);if(!n)return null;let r=ti[n[1].toLowerCase()],i=n[2]===`#`||n[2]===`♯`?1:n[2]===`b`||n[2]===`♭`?-1:0,a=(Number(n[3])+1)*12+r+i;return a>=0&&a<=127?a:null}var ai=[`C`,`C#`,`D`,`D#`,`E`,`F`,`F#`,`G`,`G#`,`A`,`A#`,`B`];function oi(e){return`${ai[e%12]}${Math.floor(e/12)-1}`}var Z=44,Q=14,$=4,si=6,ci=26,li=128;function ui({title:e,icon:t=`play`,iconColor:n=`var(--presence)`,notes:r,beatsPerBar:i,tempo:a,caption:c,footer:l,delay:u}){let d=o[t]||o.play,f=e=>typeof e==`number`?e:typeof e==`string`&&e.trim()?Number(e):NaN,p=Array.isArray(r)?r:[],m=Math.max(0,p.length-96),g=[];for(let e of p.slice(0,96)){if(!e||typeof e!=`object`){m++;continue}let t=ii(e.pitch),n=f(e.start),r=Number.isFinite(n)?Math.max(0,n):NaN,i=f(e.duration);if(t===null||!Number.isFinite(r)||!(i>0)||r>=li){m++;continue}let a=typeof e.velocity==`number`&&Number.isFinite(e.velocity)?Math.min(1,Math.max(0,e.velocity)):.75;g.push({midi:t,start:r,dur:Math.min(i,li-r),vel:a,label:typeof e.label==`string`&&e.label.trim()?e.label.trim():void 0})}if(g.length===0)return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsx)(h,{message:`No playable notes`,hint:m?`${m} malformed note${m===1?``:`s`} skipped`:void 0})]});let v=Math.min(16,Math.max(1,Math.round(Number(i)||4))),y=Math.max(0,Math.min(...g.map(e=>e.midi))-1),b=Math.min(127,Math.max(...g.map(e=>e.midi))+1);for(;b-y+1<8&&(y>0||b<127);)y>0&&y--,b-y+1<8&&b<127&&b++;let x=b-y+1,C=g.reduce((e,t)=>Math.max(e,t.start+t.dur),0),w=Math.max(1,Math.ceil(Math.ceil(Math.max(1,C))/v)),T=w*v,E=Z+T*24+si,D=$+x*Q+ci,O=e=>$+(b-e)*Q,k=w<=16?1:Math.ceil(w/12);return(0,S.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[e&&(0,S.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,S.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,S.jsxs)(`div`,{className:`pnr-meta`,children:[a&&(0,S.jsx)(`span`,{className:`pnr-chip`,children:a}),(0,S.jsxs)(`span`,{className:`pnr-chip`,children:[v,` beats/bar`]}),(0,S.jsxs)(`span`,{className:`pnr-chip pnr-chip-dim`,children:[oi(y+1),`–`,oi(b-1)]})]}),(0,S.jsx)(`div`,{className:`pnr-figwrap`,children:(0,S.jsxs)(`svg`,{viewBox:`0 0 ${E} ${D}`,className:`pnr-svg`,role:`img`,"aria-label":e||`Piano roll`,children:[Array.from({length:x},(e,t)=>{let n=b-t;return ni.has(n%12)?(0,S.jsx)(`rect`,{x:Z,y:$+t*Q,width:T*24,height:Q,className:`pnr-blackband`},n):null}),Array.from({length:T+1},(e,t)=>(0,S.jsx)(`line`,{x1:Z+t*24,y1:$,x2:Z+t*24,y2:$+x*Q,className:t%v===0?`pnr-barline`:`pnr-beatline`},t)),Array.from({length:x+1},(e,t)=>(0,S.jsx)(`line`,{x1:Z,y1:$+t*Q,x2:Z+T*24,y2:$+t*Q,className:`pnr-rowline`},t)),Array.from({length:x},(e,t)=>{let n=b-t,r=ni.has(n%12),i=$+t*Q;return(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`rect`,{x:2,y:i+.5,width:38,height:13,rx:2,className:r?`pnr-key-black`:`pnr-key-white`}),n%12==0&&(0,S.jsx)(`text`,{x:34,y:i+Q/2,className:`pnr-octave`,children:oi(n)})]},n)}),g.map((e,t)=>{let n=Z+e.start*24,r=Math.max(2.5,e.dur*24-1.2),i=O(e.midi)+1.6,a=e.label??oi(e.midi),o=r>=16?_(a,{maxWidth:r-7,fontSize:7.5,minFontSize:5.5,maxLines:1}):null,s=o&&o.lines.length===1?o:null;return(0,S.jsxs)(`g`,{children:[(0,S.jsx)(`rect`,{x:n,y:i,width:r,height:10.8,rx:2.4,className:`pnr-note`,fill:`color-mix(in oklab, var(--presence) ${Math.round(30+e.vel*55)}%, transparent)`,children:(0,S.jsx)(`title`,{children:`${oi(e.midi)} · beat ${Math.round((e.start+1)*100)/100} · ${Math.round(e.dur*100)/100} beat${e.dur===1?``:`s`}`})}),s&&(0,S.jsx)(`text`,{x:n+3.5,y:i+10.8/2,className:`pnr-notelabel`,style:{fontSize:s.fontSize},children:s.lines[0]})]},t)}),Array.from({length:w},(e,t)=>t%k===0?(0,S.jsx)(`text`,{x:Z+t*v*24+3,y:$+x*Q+12,className:`pnr-barnum tab-num`,children:t+1},t):null)]})}),m>0&&(0,S.jsxs)(`div`,{className:`pnr-skip`,children:[m,` note`,m===1?``:`s`,` skipped (unpitched or out of range)`]}),c&&(0,S.jsx)(`div`,{className:`pnr-caption`,children:c}),l&&(0,S.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(l)})]})}var di=e({mediaRegistry:()=>fi}),fi={gameboard:g(E),patternpiece:g(j),photo:(e,t)=>(0,S.jsx)(M,{...e,delay:t.delay,blockId:t.blockId,onUnrenderable:t.onUnrenderable}),diagram:g(P),wireframe:g(te),anatomyfigure:g(ie),exposuretriangle:g(ae),colorwheel:g(he),artanalysis:g(Se),mixerboard:g(Te),beforeafter:g(Ee),carousel:g(De),imagecallouts:g(ke),waveform:g(je),videoembed:g(Me),geomap:g(Ke),lightbox:g(qe),moodboard:g(Ye),palette:g(Xe),svgblock:g(Ct),sportspitch:g(At),floorplan:g(Ft),mediacard:g(It),dimensiondrawing:g(zt),explodedview:g(Ut),weldsymbol:g($t),cutlist:g(un),spacefit:g(_n),maproute:g(Sn),moonphase:g(En),skychart:g(Mn),orbitdiagram:g(Bn),emotionwheel:g(tr),creativetest:g(or),brandguide:g(lr),siteplan:g(yr),zoningmap:g(Ke),wordsearch:g(Nr),playingcards:g(qr),stitchchart:g(ei),pianoroll:g(ui)};export{di as n,fi as t};
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{t as n}from"./jsx-runtime-DeHZSEgm.js";import{n as r}from"./icons-gLFQTv74.js";import{t as i}from"./useFocusTrap-CJmpNZv2.js";import{t as a}from"./richText-BkxJhl9N.js";import{t as o}from"./registry-types-D3q_LrlV.js";import{t as s}from"./portal-B9DmFo6J.js";var c=t(),l=n();function u({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,trigger:o=`Open dialog`,triggerIcon:u=`external`,description:d=`A centered modal dialog with a focus ring, backdrop, and Escape&#8209;to&#8209;close.`,heading:f=`Publish this version?`,body:p=`Publishing makes <strong>Revision 12</strong> the live version everyone sees. You can roll back to any earlier revision at any time.`,confirm:m=`Publish`,cancel:h=`Cancel`,color:g=`var(--presence)`,delay:_}){let v=r[t]||r.layers,y=r[u]||r.external,[b,x]=(0,c.useState)(!1),[S,C]=(0,c.useState)(!1),w=(0,c.useRef)(null);return i(w,{active:b}),(0,c.useEffect)(()=>{if(!b)return;let e=e=>{e.key===`Escape`&&x(!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[b]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(_||0)+`ms`,"--ov-c":g},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(v,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-trigger-wrap`,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-trigger`,onClick:()=>x(!0),children:[(0,l.jsx)(y,{className:`ic`}),` `,o]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(S?`Published — <strong>Revision 12</strong> is now live.`:d)})]}),b&&(0,l.jsx)(s,{accent:g,children:(0,l.jsxs)(`div`,{className:`ov-portal`,children:[(0,l.jsx)(`div`,{className:`ov-backdrop`,onClick:()=>x(!1),role:`button`,tabIndex:0,"aria-label":`Close`,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),x(!1))}}),(0,l.jsxs)(`div`,{className:`ov-dialog`,ref:w,tabIndex:-1,role:`dialog`,"aria-modal":`true`,"aria-label":f,children:[(0,l.jsxs)(`div`,{className:`ov-dialog-head`,children:[(0,l.jsx)(`div`,{className:`ov-dialog-title`,children:f}),(0,l.jsx)(`button`,{type:`button`,className:`ov-x`,"aria-label":`Close`,onClick:()=>x(!1),children:(0,l.jsx)(r.x,{className:`ic`})})]}),(0,l.jsx)(`div`,{className:`ov-dialog-body`,dangerouslySetInnerHTML:a(p)}),(0,l.jsxs)(`div`,{className:`ov-dialog-foot`,children:[(0,l.jsx)(`button`,{type:`button`,className:`ov-btn ghost`,onClick:()=>x(!1),children:h}),(0,l.jsx)(`button`,{type:`button`,className:`ov-btn solid`,onClick:()=>{C(!0),x(!1)},children:m})]})]})]})})]})}function d({title:e,icon:t=`alert`,iconColor:n=`var(--danger)`,trigger:i=`Delete project`,triggerIcon:o=`x`,description:u=`A destructive&#8209;action confirm with a warning badge, Cancel, and Confirm.`,heading:d=`Delete “Q3 Forecast”?`,body:f=`This permanently removes the project and all <strong>34 documents</strong> inside it. This action cannot be undone.`,alertIcon:p=`alert`,confirm:m=`Delete forever`,cancel:h=`Cancel`,color:g=`var(--danger)`,delay:_}){let v=r[t]||r.alert,y=r[o]||r.x,b=r[p]||r.alert,[x,S]=(0,c.useState)(!1),[C,w]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{if(!x)return;let e=e=>e.key===`Escape`&&S(!1);return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[x]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(_||0)+`ms`,"--ov-c":g},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(v,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-trigger-wrap`,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-trigger danger`+(C?` is-done`:``),onClick:()=>!C&&S(!0),children:[C?(0,l.jsx)(r.check,{className:`ic`}):(0,l.jsx)(y,{className:`ic`}),` `,C?`Deleted`:i]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(C?`Project deleted. <strong>34 documents</strong> removed.`:u)})]}),x&&(0,l.jsx)(s,{accent:g,children:(0,l.jsxs)(`div`,{className:`ov-portal`,children:[(0,l.jsx)(`div`,{className:`ov-backdrop`,onClick:()=>S(!1),role:`button`,tabIndex:0,"aria-label":`Close`,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),S(!1))}}),(0,l.jsxs)(`div`,{className:`ov-dialog ov-alert`,role:`alertdialog`,"aria-modal":`true`,"aria-label":d,children:[(0,l.jsx)(`div`,{className:`ov-alert-badge`,children:(0,l.jsx)(b,{className:`ic`})}),(0,l.jsx)(`div`,{className:`ov-dialog-title ov-alert-title`,children:d}),(0,l.jsx)(`div`,{className:`ov-dialog-body ov-alert-body`,dangerouslySetInnerHTML:a(f)}),(0,l.jsxs)(`div`,{className:`ov-dialog-foot`,children:[(0,l.jsx)(`button`,{type:`button`,className:`ov-btn ghost`,onClick:()=>S(!1),children:h}),(0,l.jsxs)(`button`,{type:`button`,className:`ov-btn solid danger`,onClick:()=>{w(!0),S(!1)},children:[(0,l.jsx)(r.x,{className:`ic`}),` `,m]})]})]})]})})]})}var f=[{label:`Status`,value:`In review`,icon:`clock`},{label:`Owner`,value:`Maya Chen`,icon:`mail`},{label:`Pages`,value:`24`,icon:`doc`},{label:`Last edited`,value:`2h ago`,icon:`edit`},{label:`Visibility`,value:`Team`,icon:`eye`},{label:`Sources`,value:`8 linked`,icon:`link`},{label:`Confidence`,value:`Strong`,icon:`shield`}];function p({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,trigger:o=`View details`,triggerIcon:u=`external`,description:d=`A right&#8209;side drawer slides in with a header, scrollable body, and footer.`,heading:p=`Q3 Forecast.pdf`,subhead:m=`Document properties`,rows:h=f,confirm:g=`Open document`,cancel:_=`Close`,color:v=`var(--presence)`,delay:y}){let b=r[t]||r.layers,x=r[u]||r.external,[S,C]=(0,c.useState)(!1),w=(0,c.useRef)(null);return i(w,{active:S}),(0,c.useEffect)(()=>{if(!S)return;let e=e=>{e.key===`Escape`&&C(!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[S]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(y||0)+`ms`,"--ov-c":v},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(b,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-trigger-wrap`,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-trigger`,onClick:()=>C(!0),children:[(0,l.jsx)(x,{className:`ic`}),` `,o]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(d)})]}),S&&(0,l.jsx)(s,{accent:v,children:(0,l.jsxs)(`div`,{className:`ov-portal`,children:[(0,l.jsx)(`div`,{className:`ov-backdrop`,onClick:()=>C(!1),role:`button`,tabIndex:0,"aria-label":`Close`,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),C(!1))}}),(0,l.jsxs)(`div`,{className:`ov-drawer`,ref:w,tabIndex:-1,role:`dialog`,"aria-modal":`true`,"aria-label":p,children:[(0,l.jsxs)(`div`,{className:`ov-drawer-head`,children:[(0,l.jsxs)(`div`,{className:`ov-drawer-titles`,children:[(0,l.jsx)(`div`,{className:`ov-drawer-sub`,children:m}),(0,l.jsx)(`div`,{className:`ov-drawer-title`,children:p})]}),(0,l.jsx)(`button`,{type:`button`,className:`ov-x`,"aria-label":`Close`,onClick:()=>C(!1),children:(0,l.jsx)(r.x,{className:`ic`})})]}),(0,l.jsx)(`div`,{className:`ov-drawer-body`,children:h.map(e=>{let t=e.icon?r[e.icon]:null;return(0,l.jsxs)(`div`,{className:`ov-drawer-row`,children:[(0,l.jsxs)(`span`,{className:`ov-drawer-row-l`,children:[t&&(0,l.jsx)(t,{className:`ic`}),` `,e.label]}),(0,l.jsx)(`span`,{className:`ov-drawer-row-v`,children:e.value})]},e.label)})}),(0,l.jsxs)(`div`,{className:`ov-drawer-foot`,children:[(0,l.jsx)(`button`,{type:`button`,className:`ov-btn ghost`,onClick:()=>C(!1),children:_}),(0,l.jsxs)(`button`,{type:`button`,className:`ov-btn solid`,onClick:()=>C(!1),children:[(0,l.jsx)(r.external,{className:`ic`}),` `,g]})]})]})]})})]})}var m=[{label:`Copy link`,icon:`link`,meta:`Anyone with the link`},{label:`Share to team`,icon:`share`,meta:`12 members`,selected:!0},{label:`Email a copy`,icon:`mail`},{label:`Export as PDF`,icon:`export`}];function h({title:e,icon:t=`share`,iconColor:n=`var(--presence)`,trigger:i=`Share`,triggerIcon:o=`share`,description:u=`A bottom sheet slides up with a grabber handle — mobile&#8209;style.`,heading:d=`Share this report`,subhead:f=`Choose how you want to send it`,options:p=m,color:h=`var(--presence)`,delay:g}){let _=r[t]||r.share,v=r[o]||r.share,[y,b]=(0,c.useState)(!1),x=Math.max(0,p.findIndex(e=>e.selected)),[S,C]=(0,c.useState)(x===-1?0:x);return(0,c.useEffect)(()=>{if(!y)return;let e=e=>e.key===`Escape`&&b(!1);return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[y]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g||0)+`ms`,"--ov-c":h},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(_,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-trigger-wrap`,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-trigger`,onClick:()=>b(!0),children:[(0,l.jsx)(v,{className:`ic`}),` `,i]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(u)})]}),y&&(0,l.jsx)(s,{accent:h,children:(0,l.jsxs)(`div`,{className:`ov-portal`,children:[(0,l.jsx)(`div`,{className:`ov-backdrop`,onClick:()=>b(!1),role:`button`,tabIndex:0,"aria-label":`Close`,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),b(!1))}}),(0,l.jsxs)(`div`,{className:`ov-sheet`,role:`dialog`,"aria-modal":`true`,"aria-label":d,children:[(0,l.jsx)(`div`,{className:`ov-sheet-grab`}),(0,l.jsxs)(`div`,{className:`ov-sheet-head`,children:[(0,l.jsx)(`div`,{className:`ov-sheet-title`,children:d}),(0,l.jsx)(`div`,{className:`ov-sheet-sub`,children:f})]}),(0,l.jsx)(`div`,{className:`ov-sheet-list`,children:p.map((e,t)=>{let n=e.icon?r[e.icon]:r.chevR;return(0,l.jsxs)(`button`,{type:`button`,className:`ov-sheet-opt`+(S===t?` on`:``),onClick:()=>C(t),children:[(0,l.jsx)(`span`,{className:`ov-sheet-opt-ic`,children:(0,l.jsx)(n,{className:`ic`})}),(0,l.jsxs)(`span`,{className:`ov-sheet-opt-meta`,children:[(0,l.jsx)(`span`,{className:`ov-sheet-opt-label`,children:e.label}),e.meta&&(0,l.jsx)(`span`,{className:`ov-sheet-opt-sub`,children:e.meta})]}),(0,l.jsx)(`span`,{className:`ov-sheet-radio`,children:S===t&&(0,l.jsx)(r.check,{className:`ic`})})]},e.label)})}),(0,l.jsxs)(`button`,{type:`button`,className:`ov-btn solid ov-sheet-cta`,onClick:()=>b(!1),children:[(0,l.jsx)(r.send,{className:`ic`}),` Continue`]})]})]})})]})}function g({title:e,icon:t=`bell`,iconColor:n=`var(--presence)`,trigger:i=`Notifications`,triggerIcon:o=`bell`,description:s=`An anchored panel opens beside the trigger with a pointer arrow.`,heading:u=`What's new`,body:d=`3 sources finished syncing and <strong>2 new findings</strong> are ready to review in your workspace.`,stat:f=`+2`,statLabel:p=`new findings`,action:m=`Review now`,color:h=`var(--presence)`,delay:g}){let _=r[t]||r.bell,v=r[o]||r.bell,[y,b]=(0,c.useState)(!1),x=(0,c.useRef)(null);return(0,c.useEffect)(()=>{if(!y)return;let e=e=>e.key===`Escape`&&b(!1),t=e=>{x.current&&!x.current.contains(e.target)&&b(!1)};return window.addEventListener(`keydown`,e),window.addEventListener(`mousedown`,t),()=>{window.removeEventListener(`keydown`,e),window.removeEventListener(`mousedown`,t)}},[y]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g||0)+`ms`,"--ov-c":h},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(_,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-anchor`,ref:x,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-trigger`+(y?` active`:``),"aria-expanded":y,onClick:()=>b(e=>!e),children:[(0,l.jsx)(v,{className:`ic`}),` `,i,(0,l.jsx)(`span`,{className:`ov-trigger-badge`,children:f})]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(s)}),y&&(0,l.jsxs)(`div`,{className:`ov-pop`,role:`dialog`,"aria-label":u,children:[(0,l.jsx)(`div`,{className:`ov-pop-arrow`}),(0,l.jsx)(`div`,{className:`ov-pop-head`,children:u}),(0,l.jsxs)(`div`,{className:`ov-pop-stat`,children:[(0,l.jsx)(`span`,{className:`ov-pop-stat-val tab-num`,children:f}),(0,l.jsx)(`span`,{className:`ov-pop-stat-label`,children:p})]}),(0,l.jsx)(`div`,{className:`ov-pop-body`,dangerouslySetInnerHTML:a(d)}),(0,l.jsxs)(`button`,{type:`button`,className:`ov-pop-action`,onClick:()=>b(!1),children:[m,` `,(0,l.jsx)(r.chevR,{className:`ic`})]})]})]})]})}var _=[{label:`Reports`,value:`47`},{label:`Sources`,value:`312`},{label:`Followers`,value:`1.2k`}];function v({title:e,icon:t=`chat`,iconColor:n=`var(--presence)`,mention:i=`@maya.chen`,lead:o=`Reviewed and approved by `,name:s=`Maya Chen`,handle:u=`@maya.chen`,bio:d=`Lead research analyst. Covers macro &amp; market intelligence for the strategy team.`,avatar:f=`MC`,stats:p=_,action:m=`Follow`,color:h=`var(--presence)`,delay:g}){let v=r[t]||r.chat,[y,b]=(0,c.useState)(!1),[x,S]=(0,c.useState)(!1),C=(0,c.useRef)(null),w=()=>{C.current&&clearTimeout(C.current),C.current=setTimeout(()=>b(!0),320)},T=()=>{C.current&&clearTimeout(C.current),C.current=setTimeout(()=>b(!1),140)};return(0,c.useEffect)(()=>()=>{C.current&&clearTimeout(C.current)},[]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g||0)+`ms`,"--ov-c":h},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(v,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`p`,{className:`ov-hc-lead`,children:[(0,l.jsx)(`span`,{dangerouslySetInnerHTML:a(o)}),(0,l.jsxs)(`span`,{className:`ov-hc-anchor`,onMouseEnter:w,onMouseLeave:T,children:[(0,l.jsx)(`button`,{type:`button`,className:`ov-mention`+(y?` active`:``),onClick:()=>b(e=>!e),children:i}),y&&(0,l.jsxs)(`span`,{className:`ov-hc-card`,role:`dialog`,"aria-label":s,onMouseEnter:w,onMouseLeave:T,children:[(0,l.jsxs)(`span`,{className:`ov-hc-top`,children:[(0,l.jsx)(`span`,{className:`ov-hc-avatar`,children:f}),(0,l.jsxs)(`span`,{className:`ov-hc-names`,children:[(0,l.jsx)(`span`,{className:`ov-hc-name`,children:s}),(0,l.jsx)(`span`,{className:`ov-hc-handle`,children:u})]}),(0,l.jsx)(`button`,{type:`button`,className:`ov-hc-follow`+(x?` on`:``),onClick:()=>S(e=>!e),children:x?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.check,{className:`ic`}),` Following`]}):m})]}),(0,l.jsx)(`span`,{className:`ov-hc-bio`,dangerouslySetInnerHTML:a(d)}),(0,l.jsx)(`span`,{className:`ov-hc-stats`,children:p.map(e=>(0,l.jsxs)(`span`,{className:`ov-hc-stat`,children:[(0,l.jsx)(`span`,{className:`ov-hc-stat-val tab-num`,children:e.value}),(0,l.jsx)(`span`,{className:`ov-hc-stat-label`,children:e.label})]},e.label))})]})]}),(0,l.jsx)(`span`,{children:` after a full source audit.`})]}),(0,l.jsx)(`p`,{className:`ov-desc ov-hc-hint`,children:`Hover the mention to preview the profile card.`})]})}var y=[{label:`Share`,icon:`share`,tip:`Share with your team`,placement:`top`},{label:`Export`,icon:`export`,tip:`Download as PDF or CSV`,placement:`bottom`},{label:`Sources`,icon:`link`,tip:`8 verified sources linked`,placement:`left`},{label:`Lock`,icon:`lock`,tip:`Restrict editing to owners`,placement:`right`}];function b({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,prompt:i=`Hover any control to see a placed tooltip.`,targets:o=y,color:s=`var(--presence)`,delay:u}){let d=r[t]||r.spark,[f,p]=(0,c.useState)(null);return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`,"--ov-c":s},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(`p`,{className:`ov-desc ov-tip-prompt`,dangerouslySetInnerHTML:a(i)}),(0,l.jsx)(`div`,{className:`ov-tip-grid`,children:o.map((e,t)=>{let n=e.icon?r[e.icon]:r.spark,i=e.placement||`top`;return(0,l.jsxs)(`div`,{className:`ov-tip-cell`,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-tip-target`+(f===t?` on`:``),onMouseEnter:()=>p(t),onMouseLeave:()=>p(e=>e===t?null:e),onFocus:()=>p(t),onBlur:()=>p(e=>e===t?null:e),children:[(0,l.jsx)(n,{className:`ic`}),(0,l.jsx)(`span`,{children:e.label})]}),f===t&&(0,l.jsxs)(`span`,{className:`ov-tip-bubble place-`+i,role:`tooltip`,children:[e.tip,(0,l.jsx)(`span`,{className:`ov-tip-arrow`})]})]},e.label)})})]})}var x=[{label:`Edit report`,icon:`edit`,shortcut:`⌘E`},{label:`Duplicate`,icon:`layers`,shortcut:`⌘D`},{label:`Add to favorites`,icon:`spark`},{label:`Share`,icon:`share`,shortcut:`⌘⇧S`,separator:!0},{label:`Export PDF`,icon:`export`},{label:`Delete`,icon:`x`,danger:!0,separator:!0}];function S({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,trigger:i=`Options`,triggerIcon:o=`plus`,description:s=`A dropdown menu with icons, shortcut hints, separators, and a destructive item.`,menuLabel:u=`Q3 Forecast.pdf`,items:d=x,color:f=`var(--presence)`,delay:p}){let m=r[t]||r.layers,h=r[o]||r.plus,[g,_]=(0,c.useState)(!1),[v,y]=(0,c.useState)(null),b=(0,c.useRef)(null);return(0,c.useEffect)(()=>{if(!g)return;let e=e=>e.key===`Escape`&&_(!1),t=e=>{b.current&&!b.current.contains(e.target)&&_(!1)};return window.addEventListener(`keydown`,e),window.addEventListener(`mousedown`,t),()=>{window.removeEventListener(`keydown`,e),window.removeEventListener(`mousedown`,t)}},[g]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`,"--ov-c":f},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-anchor`,ref:b,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-trigger`+(g?` active`:``),"aria-haspopup":`menu`,"aria-expanded":g,onClick:()=>_(e=>!e),children:[(0,l.jsx)(h,{className:`ic`}),` `,i,(0,l.jsx)(r.chevR,{className:`ic ov-trigger-caret`+(g?` up`:``)})]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(s)}),g&&(0,l.jsxs)(`div`,{className:`ov-menu`,role:`menu`,children:[u&&(0,l.jsx)(`div`,{className:`ov-menu-label`,children:u}),d.map((e,t)=>{let n=e.icon?r[e.icon]:null;return(0,l.jsxs)(`div`,{children:[e.separator&&(0,l.jsx)(`div`,{className:`ov-menu-sep`}),(0,l.jsxs)(`button`,{type:`button`,role:`menuitem`,className:`ov-menu-item`+(e.danger?` danger`:``)+(v===t?` on`:``),onMouseEnter:()=>y(t),onClick:()=>_(!1),children:[n&&(0,l.jsx)(n,{className:`ic ov-menu-ic`}),(0,l.jsx)(`span`,{className:`ov-menu-text`,children:e.label}),e.shortcut&&(0,l.jsx)(`kbd`,{className:`ov-kbd`,children:e.shortcut})]})]},e.label)})]})]})]})}var C=196,w=[{label:`Open`,icon:`external`,shortcut:`↵`},{label:`Rename`,icon:`edit`,shortcut:`F2`},{label:`Copy link`,icon:`link`,shortcut:`⌘C`},{label:`Download`,icon:`export`,separator:!0},{label:`Move to trash`,icon:`x`,danger:!0,separator:!0}];function T({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,target:i=`Right-click this file`,targetIcon:o=`doc`,description:s=`Right&#8209;click (or click) the target to open a context menu at the pointer.`,items:u=w,color:d=`var(--presence)`,delay:f}){let p=r[t]||r.table,m=r[o]||r.doc,[h,g]=(0,c.useState)(null),[_,v]=(0,c.useState)(null),y=(0,c.useRef)(null),b=e=>{e.preventDefault();let t=y.current?.getBoundingClientRect(),n=t?Math.min(e.clientX-t.left,t.width-C):12,r=t?e.clientY-t.top:12;g({x:Math.max(8,n),y:Math.max(8,r)})};return(0,c.useEffect)(()=>{if(!h)return;let e=e=>e.key===`Escape`&&g(null),t=e=>{let t=y.current?.querySelector(`.ov-ctx`);t&&!t.contains(e.target)&&g(null)};return window.addEventListener(`keydown`,e),window.addEventListener(`mousedown`,t),()=>{window.removeEventListener(`keydown`,e),window.removeEventListener(`mousedown`,t)}},[h]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`,"--ov-c":d},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-ctx-host`,ref:y,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-ctx-zone`+(h?` active`:``),onContextMenu:b,onClick:b,children:[(0,l.jsx)(m,{className:`ic ov-ctx-zone-ic`}),(0,l.jsx)(`span`,{children:i})]}),h&&(0,l.jsx)(`div`,{className:`ov-ctx`,role:`menu`,style:{left:h.x,top:h.y,maxWidth:C},children:u.map((e,t)=>{let n=e.icon?r[e.icon]:null;return(0,l.jsxs)(`div`,{children:[e.separator&&(0,l.jsx)(`div`,{className:`ov-menu-sep`}),(0,l.jsxs)(`button`,{type:`button`,role:`menuitem`,className:`ov-menu-item`+(e.danger?` danger`:``)+(_===t?` on`:``),onMouseEnter:()=>v(t),onClick:()=>g(null),children:[n&&(0,l.jsx)(n,{className:`ic ov-menu-ic`}),(0,l.jsx)(`span`,{className:`ov-menu-text`,style:{whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`},children:e.label}),e.shortcut&&(0,l.jsx)(`kbd`,{className:`ov-kbd`,children:e.shortcut})]})]},e.label)})})]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(s)})]})}var E=[{label:`Actions`,commands:[{label:`New report`,icon:`plus`,shortcut:`⌘N`,hint:`Start a blank canvas`},{label:`Import sources`,icon:`upload`,shortcut:`⌘I`},{label:`Share workspace`,icon:`share`}]},{label:`Navigate`,commands:[{label:`Go to dashboard`,icon:`chart`,shortcut:`G D`},{label:`Open documents`,icon:`doc`,shortcut:`G O`},{label:`Search sources`,icon:`globe`}]},{label:`Preferences`,commands:[{label:`Toggle theme`,icon:`moon`,shortcut:`⌘\\`},{label:`Notification settings`,icon:`bell`}]}];function D({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,trigger:o=`Search commands`,triggerIcon:u=`spark`,description:d=`A ⌘K command palette — search, ↑/↓ to highlight, Enter to run.`,placeholder:f=`Type a command or search…`,groups:p=E,color:m=`var(--presence)`,delay:h}){let g=r[t]||r.spark,_=r[u]||r.spark,[v,y]=(0,c.useState)(!1),[b,x]=(0,c.useState)(``),[S,C]=(0,c.useState)(0),w=(0,c.useRef)(null),T=(0,c.useRef)(null);i(T,{active:v});let D=(0,c.useMemo)(()=>p.flatMap(e=>e.commands.map(t=>({...t,group:e.label}))),[p]),O=(0,c.useMemo)(()=>{let e=b.trim().toLowerCase();return e?D.filter(t=>t.label.toLowerCase().includes(e)||(t.hint||``).toLowerCase().includes(e)):D},[D,b]),k=(0,c.useMemo)(()=>{let e=new Map;for(let t of O)e.has(t.group)||e.set(t.group,[]),e.get(t.group).push(t);return Array.from(e.entries())},[O]);(0,c.useEffect)(()=>{if(v){C(0);let e=setTimeout(()=>w.current?.focus(),30);return()=>clearTimeout(e)}},[v]),(0,c.useEffect)(()=>C(0),[b]),(0,c.useEffect)(()=>{if(!v)return;let e=e=>{e.key===`Escape`?y(!1):e.key===`ArrowDown`?(e.preventDefault(),C(e=>Math.max(0,Math.min(O.length-1,e+1)))):e.key===`ArrowUp`?(e.preventDefault(),C(e=>Math.max(0,e-1))):e.key===`Enter`&&(e.preventDefault(),y(!1))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[v,O.length]);let A=-1;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(h||0)+`ms`,"--ov-c":m},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-trigger-wrap`,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-trigger ov-ck-trigger`,onClick:()=>y(!0),children:[(0,l.jsx)(_,{className:`ic`}),` `,o,(0,l.jsx)(`kbd`,{className:`ov-kbd ov-ck-kbd`,children:`⌘K`})]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(d)})]}),v&&(0,l.jsx)(s,{accent:m,children:(0,l.jsxs)(`div`,{className:`ov-portal`,children:[(0,l.jsx)(`div`,{className:`ov-backdrop`,onClick:()=>y(!1),role:`button`,tabIndex:0,"aria-label":`Close`,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),y(!1))}}),(0,l.jsxs)(`div`,{className:`ov-ck`,ref:T,tabIndex:-1,role:`dialog`,"aria-modal":`true`,"aria-label":`Command palette`,children:[(0,l.jsxs)(`div`,{className:`ov-ck-search`,children:[(0,l.jsx)(r.globe,{className:`ic ov-ck-search-ic`}),(0,l.jsx)(`input`,{ref:w,className:`ov-ck-input`,placeholder:f,value:b,onChange:e=>x(e.target.value),spellCheck:!1}),(0,l.jsx)(`kbd`,{className:`ov-kbd`,children:`esc`})]}),(0,l.jsxs)(`div`,{className:`ov-ck-list`,children:[k.length===0&&(0,l.jsxs)(`div`,{className:`ov-ck-empty`,children:[`No commands match “`,(0,l.jsx)(`strong`,{children:b}),`”`]}),k.map(([e,t])=>(0,l.jsxs)(`div`,{className:`ov-ck-group`,children:[(0,l.jsx)(`div`,{className:`ov-ck-group-label`,children:e}),t.map(e=>{A+=1;let t=A,n=e.icon?r[e.icon]:r.chevR;return(0,l.jsxs)(`button`,{type:`button`,className:`ov-ck-item`+(S===t?` on`:``),onMouseEnter:()=>C(t),onClick:()=>y(!1),children:[(0,l.jsx)(`span`,{className:`ov-ck-item-ic`,children:(0,l.jsx)(n,{className:`ic`})}),(0,l.jsxs)(`span`,{className:`ov-ck-item-meta`,children:[(0,l.jsx)(`span`,{className:`ov-ck-item-label`,children:e.label}),e.hint&&(0,l.jsx)(`span`,{className:`ov-ck-item-hint`,children:e.hint})]}),e.shortcut&&(0,l.jsx)(`kbd`,{className:`ov-kbd`,children:e.shortcut}),(0,l.jsx)(r.chevR,{className:`ic ov-ck-item-go`})]},e.label)})]},e))]}),(0,l.jsxs)(`div`,{className:`ov-ck-foot`,children:[(0,l.jsxs)(`span`,{className:`ov-ck-foot-hint`,children:[(0,l.jsx)(`kbd`,{className:`ov-kbd`,children:`↑`}),(0,l.jsx)(`kbd`,{className:`ov-kbd`,children:`↓`}),` navigate`]}),(0,l.jsxs)(`span`,{className:`ov-ck-foot-hint`,children:[(0,l.jsx)(`kbd`,{className:`ov-kbd`,children:`↵`}),` select`]}),(0,l.jsxs)(`span`,{className:`ov-ck-foot-count`,children:[O.length,` commands`]})]})]})]})})]})}var O=e({overlaysRegistry:()=>k}),k={modal:o(u),confirmdialog:o(d),drawer:o(p),sheet:o(h),popover:o(g),hovercard:o(v),tooltip:o(b),menu:o(S),contextmenu:o(T),commandk:o(D)};export{O as n,k as t};
1
+ import{r as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{t as n}from"./jsx-runtime-DeHZSEgm.js";import{n as r}from"./icons-gLFQTv74.js";import{t as i}from"./useFocusTrap-CJmpNZv2.js";import{t as a}from"./richText-BkxJhl9N.js";import{t as o}from"./registry-types-D3q_LrlV.js";import{t as s}from"./portal-BIN_aqvw.js";var c=t(),l=n();function u({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,trigger:o=`Open dialog`,triggerIcon:u=`external`,description:d=`A centered modal dialog with a focus ring, backdrop, and Escape&#8209;to&#8209;close.`,heading:f=`Publish this version?`,body:p=`Publishing makes <strong>Revision 12</strong> the live version everyone sees. You can roll back to any earlier revision at any time.`,confirm:m=`Publish`,cancel:h=`Cancel`,color:g=`var(--presence)`,delay:_}){let v=r[t]||r.layers,y=r[u]||r.external,[b,x]=(0,c.useState)(!1),[S,C]=(0,c.useState)(!1),w=(0,c.useRef)(null);return i(w,{active:b}),(0,c.useEffect)(()=>{if(!b)return;let e=e=>{e.key===`Escape`&&x(!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[b]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(_||0)+`ms`,"--ov-c":g},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(v,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-trigger-wrap`,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-trigger`,onClick:()=>x(!0),children:[(0,l.jsx)(y,{className:`ic`}),` `,o]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(S?`Published — <strong>Revision 12</strong> is now live.`:d)})]}),b&&(0,l.jsx)(s,{accent:g,children:(0,l.jsxs)(`div`,{className:`ov-portal`,children:[(0,l.jsx)(`div`,{className:`ov-backdrop`,onClick:()=>x(!1),role:`button`,tabIndex:0,"aria-label":`Close`,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),x(!1))}}),(0,l.jsxs)(`div`,{className:`ov-dialog`,ref:w,tabIndex:-1,role:`dialog`,"aria-modal":`true`,"aria-label":f,children:[(0,l.jsxs)(`div`,{className:`ov-dialog-head`,children:[(0,l.jsx)(`div`,{className:`ov-dialog-title`,children:f}),(0,l.jsx)(`button`,{type:`button`,className:`ov-x`,"aria-label":`Close`,onClick:()=>x(!1),children:(0,l.jsx)(r.x,{className:`ic`})})]}),(0,l.jsx)(`div`,{className:`ov-dialog-body`,dangerouslySetInnerHTML:a(p)}),(0,l.jsxs)(`div`,{className:`ov-dialog-foot`,children:[(0,l.jsx)(`button`,{type:`button`,className:`ov-btn ghost`,onClick:()=>x(!1),children:h}),(0,l.jsx)(`button`,{type:`button`,className:`ov-btn solid`,onClick:()=>{C(!0),x(!1)},children:m})]})]})]})})]})}function d({title:e,icon:t=`alert`,iconColor:n=`var(--danger)`,trigger:i=`Delete project`,triggerIcon:o=`x`,description:u=`A destructive&#8209;action confirm with a warning badge, Cancel, and Confirm.`,heading:d=`Delete “Q3 Forecast”?`,body:f=`This permanently removes the project and all <strong>34 documents</strong> inside it. This action cannot be undone.`,alertIcon:p=`alert`,confirm:m=`Delete forever`,cancel:h=`Cancel`,color:g=`var(--danger)`,delay:_}){let v=r[t]||r.alert,y=r[o]||r.x,b=r[p]||r.alert,[x,S]=(0,c.useState)(!1),[C,w]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{if(!x)return;let e=e=>e.key===`Escape`&&S(!1);return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[x]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(_||0)+`ms`,"--ov-c":g},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(v,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-trigger-wrap`,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-trigger danger`+(C?` is-done`:``),onClick:()=>!C&&S(!0),children:[C?(0,l.jsx)(r.check,{className:`ic`}):(0,l.jsx)(y,{className:`ic`}),` `,C?`Deleted`:i]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(C?`Project deleted. <strong>34 documents</strong> removed.`:u)})]}),x&&(0,l.jsx)(s,{accent:g,children:(0,l.jsxs)(`div`,{className:`ov-portal`,children:[(0,l.jsx)(`div`,{className:`ov-backdrop`,onClick:()=>S(!1),role:`button`,tabIndex:0,"aria-label":`Close`,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),S(!1))}}),(0,l.jsxs)(`div`,{className:`ov-dialog ov-alert`,role:`alertdialog`,"aria-modal":`true`,"aria-label":d,children:[(0,l.jsx)(`div`,{className:`ov-alert-badge`,children:(0,l.jsx)(b,{className:`ic`})}),(0,l.jsx)(`div`,{className:`ov-dialog-title ov-alert-title`,children:d}),(0,l.jsx)(`div`,{className:`ov-dialog-body ov-alert-body`,dangerouslySetInnerHTML:a(f)}),(0,l.jsxs)(`div`,{className:`ov-dialog-foot`,children:[(0,l.jsx)(`button`,{type:`button`,className:`ov-btn ghost`,onClick:()=>S(!1),children:h}),(0,l.jsxs)(`button`,{type:`button`,className:`ov-btn solid danger`,onClick:()=>{w(!0),S(!1)},children:[(0,l.jsx)(r.x,{className:`ic`}),` `,m]})]})]})]})})]})}var f=[{label:`Status`,value:`In review`,icon:`clock`},{label:`Owner`,value:`Maya Chen`,icon:`mail`},{label:`Pages`,value:`24`,icon:`doc`},{label:`Last edited`,value:`2h ago`,icon:`edit`},{label:`Visibility`,value:`Team`,icon:`eye`},{label:`Sources`,value:`8 linked`,icon:`link`},{label:`Confidence`,value:`Strong`,icon:`shield`}];function p({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,trigger:o=`View details`,triggerIcon:u=`external`,description:d=`A right&#8209;side drawer slides in with a header, scrollable body, and footer.`,heading:p=`Q3 Forecast.pdf`,subhead:m=`Document properties`,rows:h=f,confirm:g=`Open document`,cancel:_=`Close`,color:v=`var(--presence)`,delay:y}){let b=r[t]||r.layers,x=r[u]||r.external,[S,C]=(0,c.useState)(!1),w=(0,c.useRef)(null);return i(w,{active:S}),(0,c.useEffect)(()=>{if(!S)return;let e=e=>{e.key===`Escape`&&C(!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[S]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(y||0)+`ms`,"--ov-c":v},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(b,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-trigger-wrap`,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-trigger`,onClick:()=>C(!0),children:[(0,l.jsx)(x,{className:`ic`}),` `,o]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(d)})]}),S&&(0,l.jsx)(s,{accent:v,children:(0,l.jsxs)(`div`,{className:`ov-portal`,children:[(0,l.jsx)(`div`,{className:`ov-backdrop`,onClick:()=>C(!1),role:`button`,tabIndex:0,"aria-label":`Close`,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),C(!1))}}),(0,l.jsxs)(`div`,{className:`ov-drawer`,ref:w,tabIndex:-1,role:`dialog`,"aria-modal":`true`,"aria-label":p,children:[(0,l.jsxs)(`div`,{className:`ov-drawer-head`,children:[(0,l.jsxs)(`div`,{className:`ov-drawer-titles`,children:[(0,l.jsx)(`div`,{className:`ov-drawer-sub`,children:m}),(0,l.jsx)(`div`,{className:`ov-drawer-title`,children:p})]}),(0,l.jsx)(`button`,{type:`button`,className:`ov-x`,"aria-label":`Close`,onClick:()=>C(!1),children:(0,l.jsx)(r.x,{className:`ic`})})]}),(0,l.jsx)(`div`,{className:`ov-drawer-body`,children:h.map(e=>{let t=e.icon?r[e.icon]:null;return(0,l.jsxs)(`div`,{className:`ov-drawer-row`,children:[(0,l.jsxs)(`span`,{className:`ov-drawer-row-l`,children:[t&&(0,l.jsx)(t,{className:`ic`}),` `,e.label]}),(0,l.jsx)(`span`,{className:`ov-drawer-row-v`,children:e.value})]},e.label)})}),(0,l.jsxs)(`div`,{className:`ov-drawer-foot`,children:[(0,l.jsx)(`button`,{type:`button`,className:`ov-btn ghost`,onClick:()=>C(!1),children:_}),(0,l.jsxs)(`button`,{type:`button`,className:`ov-btn solid`,onClick:()=>C(!1),children:[(0,l.jsx)(r.external,{className:`ic`}),` `,g]})]})]})]})})]})}var m=[{label:`Copy link`,icon:`link`,meta:`Anyone with the link`},{label:`Share to team`,icon:`share`,meta:`12 members`,selected:!0},{label:`Email a copy`,icon:`mail`},{label:`Export as PDF`,icon:`export`}];function h({title:e,icon:t=`share`,iconColor:n=`var(--presence)`,trigger:i=`Share`,triggerIcon:o=`share`,description:u=`A bottom sheet slides up with a grabber handle — mobile&#8209;style.`,heading:d=`Share this report`,subhead:f=`Choose how you want to send it`,options:p=m,color:h=`var(--presence)`,delay:g}){let _=r[t]||r.share,v=r[o]||r.share,[y,b]=(0,c.useState)(!1),x=Math.max(0,p.findIndex(e=>e.selected)),[S,C]=(0,c.useState)(x===-1?0:x);return(0,c.useEffect)(()=>{if(!y)return;let e=e=>e.key===`Escape`&&b(!1);return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[y]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g||0)+`ms`,"--ov-c":h},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(_,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-trigger-wrap`,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-trigger`,onClick:()=>b(!0),children:[(0,l.jsx)(v,{className:`ic`}),` `,i]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(u)})]}),y&&(0,l.jsx)(s,{accent:h,children:(0,l.jsxs)(`div`,{className:`ov-portal`,children:[(0,l.jsx)(`div`,{className:`ov-backdrop`,onClick:()=>b(!1),role:`button`,tabIndex:0,"aria-label":`Close`,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),b(!1))}}),(0,l.jsxs)(`div`,{className:`ov-sheet`,role:`dialog`,"aria-modal":`true`,"aria-label":d,children:[(0,l.jsx)(`div`,{className:`ov-sheet-grab`}),(0,l.jsxs)(`div`,{className:`ov-sheet-head`,children:[(0,l.jsx)(`div`,{className:`ov-sheet-title`,children:d}),(0,l.jsx)(`div`,{className:`ov-sheet-sub`,children:f})]}),(0,l.jsx)(`div`,{className:`ov-sheet-list`,children:p.map((e,t)=>{let n=e.icon?r[e.icon]:r.chevR;return(0,l.jsxs)(`button`,{type:`button`,className:`ov-sheet-opt`+(S===t?` on`:``),onClick:()=>C(t),children:[(0,l.jsx)(`span`,{className:`ov-sheet-opt-ic`,children:(0,l.jsx)(n,{className:`ic`})}),(0,l.jsxs)(`span`,{className:`ov-sheet-opt-meta`,children:[(0,l.jsx)(`span`,{className:`ov-sheet-opt-label`,children:e.label}),e.meta&&(0,l.jsx)(`span`,{className:`ov-sheet-opt-sub`,children:e.meta})]}),(0,l.jsx)(`span`,{className:`ov-sheet-radio`,children:S===t&&(0,l.jsx)(r.check,{className:`ic`})})]},e.label)})}),(0,l.jsxs)(`button`,{type:`button`,className:`ov-btn solid ov-sheet-cta`,onClick:()=>b(!1),children:[(0,l.jsx)(r.send,{className:`ic`}),` Continue`]})]})]})})]})}function g({title:e,icon:t=`bell`,iconColor:n=`var(--presence)`,trigger:i=`Notifications`,triggerIcon:o=`bell`,description:s=`An anchored panel opens beside the trigger with a pointer arrow.`,heading:u=`What's new`,body:d=`3 sources finished syncing and <strong>2 new findings</strong> are ready to review in your workspace.`,stat:f=`+2`,statLabel:p=`new findings`,action:m=`Review now`,color:h=`var(--presence)`,delay:g}){let _=r[t]||r.bell,v=r[o]||r.bell,[y,b]=(0,c.useState)(!1),x=(0,c.useRef)(null);return(0,c.useEffect)(()=>{if(!y)return;let e=e=>e.key===`Escape`&&b(!1),t=e=>{x.current&&!x.current.contains(e.target)&&b(!1)};return window.addEventListener(`keydown`,e),window.addEventListener(`mousedown`,t),()=>{window.removeEventListener(`keydown`,e),window.removeEventListener(`mousedown`,t)}},[y]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g||0)+`ms`,"--ov-c":h},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(_,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-anchor`,ref:x,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-trigger`+(y?` active`:``),"aria-expanded":y,onClick:()=>b(e=>!e),children:[(0,l.jsx)(v,{className:`ic`}),` `,i,(0,l.jsx)(`span`,{className:`ov-trigger-badge`,children:f})]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(s)}),y&&(0,l.jsxs)(`div`,{className:`ov-pop`,role:`dialog`,"aria-label":u,children:[(0,l.jsx)(`div`,{className:`ov-pop-arrow`}),(0,l.jsx)(`div`,{className:`ov-pop-head`,children:u}),(0,l.jsxs)(`div`,{className:`ov-pop-stat`,children:[(0,l.jsx)(`span`,{className:`ov-pop-stat-val tab-num`,children:f}),(0,l.jsx)(`span`,{className:`ov-pop-stat-label`,children:p})]}),(0,l.jsx)(`div`,{className:`ov-pop-body`,dangerouslySetInnerHTML:a(d)}),(0,l.jsxs)(`button`,{type:`button`,className:`ov-pop-action`,onClick:()=>b(!1),children:[m,` `,(0,l.jsx)(r.chevR,{className:`ic`})]})]})]})]})}var _=[{label:`Reports`,value:`47`},{label:`Sources`,value:`312`},{label:`Followers`,value:`1.2k`}];function v({title:e,icon:t=`chat`,iconColor:n=`var(--presence)`,mention:i=`@maya.chen`,lead:o=`Reviewed and approved by `,name:s=`Maya Chen`,handle:u=`@maya.chen`,bio:d=`Lead research analyst. Covers macro &amp; market intelligence for the strategy team.`,avatar:f=`MC`,stats:p=_,action:m=`Follow`,color:h=`var(--presence)`,delay:g}){let v=r[t]||r.chat,[y,b]=(0,c.useState)(!1),[x,S]=(0,c.useState)(!1),C=(0,c.useRef)(null),w=()=>{C.current&&clearTimeout(C.current),C.current=setTimeout(()=>b(!0),320)},T=()=>{C.current&&clearTimeout(C.current),C.current=setTimeout(()=>b(!1),140)};return(0,c.useEffect)(()=>()=>{C.current&&clearTimeout(C.current)},[]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g||0)+`ms`,"--ov-c":h},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(v,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`p`,{className:`ov-hc-lead`,children:[(0,l.jsx)(`span`,{dangerouslySetInnerHTML:a(o)}),(0,l.jsxs)(`span`,{className:`ov-hc-anchor`,onMouseEnter:w,onMouseLeave:T,children:[(0,l.jsx)(`button`,{type:`button`,className:`ov-mention`+(y?` active`:``),onClick:()=>b(e=>!e),children:i}),y&&(0,l.jsxs)(`span`,{className:`ov-hc-card`,role:`dialog`,"aria-label":s,onMouseEnter:w,onMouseLeave:T,children:[(0,l.jsxs)(`span`,{className:`ov-hc-top`,children:[(0,l.jsx)(`span`,{className:`ov-hc-avatar`,children:f}),(0,l.jsxs)(`span`,{className:`ov-hc-names`,children:[(0,l.jsx)(`span`,{className:`ov-hc-name`,children:s}),(0,l.jsx)(`span`,{className:`ov-hc-handle`,children:u})]}),(0,l.jsx)(`button`,{type:`button`,className:`ov-hc-follow`+(x?` on`:``),onClick:()=>S(e=>!e),children:x?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.check,{className:`ic`}),` Following`]}):m})]}),(0,l.jsx)(`span`,{className:`ov-hc-bio`,dangerouslySetInnerHTML:a(d)}),(0,l.jsx)(`span`,{className:`ov-hc-stats`,children:p.map(e=>(0,l.jsxs)(`span`,{className:`ov-hc-stat`,children:[(0,l.jsx)(`span`,{className:`ov-hc-stat-val tab-num`,children:e.value}),(0,l.jsx)(`span`,{className:`ov-hc-stat-label`,children:e.label})]},e.label))})]})]}),(0,l.jsx)(`span`,{children:` after a full source audit.`})]}),(0,l.jsx)(`p`,{className:`ov-desc ov-hc-hint`,children:`Hover the mention to preview the profile card.`})]})}var y=[{label:`Share`,icon:`share`,tip:`Share with your team`,placement:`top`},{label:`Export`,icon:`export`,tip:`Download as PDF or CSV`,placement:`bottom`},{label:`Sources`,icon:`link`,tip:`8 verified sources linked`,placement:`left`},{label:`Lock`,icon:`lock`,tip:`Restrict editing to owners`,placement:`right`}];function b({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,prompt:i=`Hover any control to see a placed tooltip.`,targets:o=y,color:s=`var(--presence)`,delay:u}){let d=r[t]||r.spark,[f,p]=(0,c.useState)(null);return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`,"--ov-c":s},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(`p`,{className:`ov-desc ov-tip-prompt`,dangerouslySetInnerHTML:a(i)}),(0,l.jsx)(`div`,{className:`ov-tip-grid`,children:o.map((e,t)=>{let n=e.icon?r[e.icon]:r.spark,i=e.placement||`top`;return(0,l.jsxs)(`div`,{className:`ov-tip-cell`,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-tip-target`+(f===t?` on`:``),onMouseEnter:()=>p(t),onMouseLeave:()=>p(e=>e===t?null:e),onFocus:()=>p(t),onBlur:()=>p(e=>e===t?null:e),children:[(0,l.jsx)(n,{className:`ic`}),(0,l.jsx)(`span`,{children:e.label})]}),f===t&&(0,l.jsxs)(`span`,{className:`ov-tip-bubble place-`+i,role:`tooltip`,children:[e.tip,(0,l.jsx)(`span`,{className:`ov-tip-arrow`})]})]},e.label)})})]})}var x=[{label:`Edit report`,icon:`edit`,shortcut:`⌘E`},{label:`Duplicate`,icon:`layers`,shortcut:`⌘D`},{label:`Add to favorites`,icon:`spark`},{label:`Share`,icon:`share`,shortcut:`⌘⇧S`,separator:!0},{label:`Export PDF`,icon:`export`},{label:`Delete`,icon:`x`,danger:!0,separator:!0}];function S({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,trigger:i=`Options`,triggerIcon:o=`plus`,description:s=`A dropdown menu with icons, shortcut hints, separators, and a destructive item.`,menuLabel:u=`Q3 Forecast.pdf`,items:d=x,color:f=`var(--presence)`,delay:p}){let m=r[t]||r.layers,h=r[o]||r.plus,[g,_]=(0,c.useState)(!1),[v,y]=(0,c.useState)(null),b=(0,c.useRef)(null);return(0,c.useEffect)(()=>{if(!g)return;let e=e=>e.key===`Escape`&&_(!1),t=e=>{b.current&&!b.current.contains(e.target)&&_(!1)};return window.addEventListener(`keydown`,e),window.addEventListener(`mousedown`,t),()=>{window.removeEventListener(`keydown`,e),window.removeEventListener(`mousedown`,t)}},[g]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`,"--ov-c":f},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-anchor`,ref:b,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-trigger`+(g?` active`:``),"aria-haspopup":`menu`,"aria-expanded":g,onClick:()=>_(e=>!e),children:[(0,l.jsx)(h,{className:`ic`}),` `,i,(0,l.jsx)(r.chevR,{className:`ic ov-trigger-caret`+(g?` up`:``)})]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(s)}),g&&(0,l.jsxs)(`div`,{className:`ov-menu`,role:`menu`,children:[u&&(0,l.jsx)(`div`,{className:`ov-menu-label`,children:u}),d.map((e,t)=>{let n=e.icon?r[e.icon]:null;return(0,l.jsxs)(`div`,{children:[e.separator&&(0,l.jsx)(`div`,{className:`ov-menu-sep`}),(0,l.jsxs)(`button`,{type:`button`,role:`menuitem`,className:`ov-menu-item`+(e.danger?` danger`:``)+(v===t?` on`:``),onMouseEnter:()=>y(t),onClick:()=>_(!1),children:[n&&(0,l.jsx)(n,{className:`ic ov-menu-ic`}),(0,l.jsx)(`span`,{className:`ov-menu-text`,children:e.label}),e.shortcut&&(0,l.jsx)(`kbd`,{className:`ov-kbd`,children:e.shortcut})]})]},e.label)})]})]})]})}var C=196,w=[{label:`Open`,icon:`external`,shortcut:`↵`},{label:`Rename`,icon:`edit`,shortcut:`F2`},{label:`Copy link`,icon:`link`,shortcut:`⌘C`},{label:`Download`,icon:`export`,separator:!0},{label:`Move to trash`,icon:`x`,danger:!0,separator:!0}];function T({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,target:i=`Right-click this file`,targetIcon:o=`doc`,description:s=`Right&#8209;click (or click) the target to open a context menu at the pointer.`,items:u=w,color:d=`var(--presence)`,delay:f}){let p=r[t]||r.table,m=r[o]||r.doc,[h,g]=(0,c.useState)(null),[_,v]=(0,c.useState)(null),y=(0,c.useRef)(null),b=e=>{e.preventDefault();let t=y.current?.getBoundingClientRect(),n=t?Math.min(e.clientX-t.left,t.width-C):12,r=t?e.clientY-t.top:12;g({x:Math.max(8,n),y:Math.max(8,r)})};return(0,c.useEffect)(()=>{if(!h)return;let e=e=>e.key===`Escape`&&g(null),t=e=>{let t=y.current?.querySelector(`.ov-ctx`);t&&!t.contains(e.target)&&g(null)};return window.addEventListener(`keydown`,e),window.addEventListener(`mousedown`,t),()=>{window.removeEventListener(`keydown`,e),window.removeEventListener(`mousedown`,t)}},[h]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`,"--ov-c":d},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-ctx-host`,ref:y,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-ctx-zone`+(h?` active`:``),onContextMenu:b,onClick:b,children:[(0,l.jsx)(m,{className:`ic ov-ctx-zone-ic`}),(0,l.jsx)(`span`,{children:i})]}),h&&(0,l.jsx)(`div`,{className:`ov-ctx`,role:`menu`,style:{left:h.x,top:h.y,maxWidth:C},children:u.map((e,t)=>{let n=e.icon?r[e.icon]:null;return(0,l.jsxs)(`div`,{children:[e.separator&&(0,l.jsx)(`div`,{className:`ov-menu-sep`}),(0,l.jsxs)(`button`,{type:`button`,role:`menuitem`,className:`ov-menu-item`+(e.danger?` danger`:``)+(_===t?` on`:``),onMouseEnter:()=>v(t),onClick:()=>g(null),children:[n&&(0,l.jsx)(n,{className:`ic ov-menu-ic`}),(0,l.jsx)(`span`,{className:`ov-menu-text`,style:{whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`},children:e.label}),e.shortcut&&(0,l.jsx)(`kbd`,{className:`ov-kbd`,children:e.shortcut})]})]},e.label)})})]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(s)})]})}var E=[{label:`Actions`,commands:[{label:`New report`,icon:`plus`,shortcut:`⌘N`,hint:`Start a blank canvas`},{label:`Import sources`,icon:`upload`,shortcut:`⌘I`},{label:`Share workspace`,icon:`share`}]},{label:`Navigate`,commands:[{label:`Go to dashboard`,icon:`chart`,shortcut:`G D`},{label:`Open documents`,icon:`doc`,shortcut:`G O`},{label:`Search sources`,icon:`globe`}]},{label:`Preferences`,commands:[{label:`Toggle theme`,icon:`moon`,shortcut:`⌘\\`},{label:`Notification settings`,icon:`bell`}]}];function D({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,trigger:o=`Search commands`,triggerIcon:u=`spark`,description:d=`A ⌘K command palette — search, ↑/↓ to highlight, Enter to run.`,placeholder:f=`Type a command or search…`,groups:p=E,color:m=`var(--presence)`,delay:h}){let g=r[t]||r.spark,_=r[u]||r.spark,[v,y]=(0,c.useState)(!1),[b,x]=(0,c.useState)(``),[S,C]=(0,c.useState)(0),w=(0,c.useRef)(null),T=(0,c.useRef)(null);i(T,{active:v});let D=(0,c.useMemo)(()=>p.flatMap(e=>e.commands.map(t=>({...t,group:e.label}))),[p]),O=(0,c.useMemo)(()=>{let e=b.trim().toLowerCase();return e?D.filter(t=>t.label.toLowerCase().includes(e)||(t.hint||``).toLowerCase().includes(e)):D},[D,b]),k=(0,c.useMemo)(()=>{let e=new Map;for(let t of O)e.has(t.group)||e.set(t.group,[]),e.get(t.group).push(t);return Array.from(e.entries())},[O]);(0,c.useEffect)(()=>{if(v){C(0);let e=setTimeout(()=>w.current?.focus(),30);return()=>clearTimeout(e)}},[v]),(0,c.useEffect)(()=>C(0),[b]),(0,c.useEffect)(()=>{if(!v)return;let e=e=>{e.key===`Escape`?y(!1):e.key===`ArrowDown`?(e.preventDefault(),C(e=>Math.max(0,Math.min(O.length-1,e+1)))):e.key===`ArrowUp`?(e.preventDefault(),C(e=>Math.max(0,e-1))):e.key===`Enter`&&(e.preventDefault(),y(!1))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[v,O.length]);let A=-1;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(h||0)+`ms`,"--ov-c":m},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-trigger-wrap`,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-trigger ov-ck-trigger`,onClick:()=>y(!0),children:[(0,l.jsx)(_,{className:`ic`}),` `,o,(0,l.jsx)(`kbd`,{className:`ov-kbd ov-ck-kbd`,children:`⌘K`})]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(d)})]}),v&&(0,l.jsx)(s,{accent:m,children:(0,l.jsxs)(`div`,{className:`ov-portal`,children:[(0,l.jsx)(`div`,{className:`ov-backdrop`,onClick:()=>y(!1),role:`button`,tabIndex:0,"aria-label":`Close`,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),y(!1))}}),(0,l.jsxs)(`div`,{className:`ov-ck`,ref:T,tabIndex:-1,role:`dialog`,"aria-modal":`true`,"aria-label":`Command palette`,children:[(0,l.jsxs)(`div`,{className:`ov-ck-search`,children:[(0,l.jsx)(r.globe,{className:`ic ov-ck-search-ic`}),(0,l.jsx)(`input`,{ref:w,className:`ov-ck-input`,placeholder:f,value:b,onChange:e=>x(e.target.value),spellCheck:!1}),(0,l.jsx)(`kbd`,{className:`ov-kbd`,children:`esc`})]}),(0,l.jsxs)(`div`,{className:`ov-ck-list`,children:[k.length===0&&(0,l.jsxs)(`div`,{className:`ov-ck-empty`,children:[`No commands match “`,(0,l.jsx)(`strong`,{children:b}),`”`]}),k.map(([e,t])=>(0,l.jsxs)(`div`,{className:`ov-ck-group`,children:[(0,l.jsx)(`div`,{className:`ov-ck-group-label`,children:e}),t.map(e=>{A+=1;let t=A,n=e.icon?r[e.icon]:r.chevR;return(0,l.jsxs)(`button`,{type:`button`,className:`ov-ck-item`+(S===t?` on`:``),onMouseEnter:()=>C(t),onClick:()=>y(!1),children:[(0,l.jsx)(`span`,{className:`ov-ck-item-ic`,children:(0,l.jsx)(n,{className:`ic`})}),(0,l.jsxs)(`span`,{className:`ov-ck-item-meta`,children:[(0,l.jsx)(`span`,{className:`ov-ck-item-label`,children:e.label}),e.hint&&(0,l.jsx)(`span`,{className:`ov-ck-item-hint`,children:e.hint})]}),e.shortcut&&(0,l.jsx)(`kbd`,{className:`ov-kbd`,children:e.shortcut}),(0,l.jsx)(r.chevR,{className:`ic ov-ck-item-go`})]},e.label)})]},e))]}),(0,l.jsxs)(`div`,{className:`ov-ck-foot`,children:[(0,l.jsxs)(`span`,{className:`ov-ck-foot-hint`,children:[(0,l.jsx)(`kbd`,{className:`ov-kbd`,children:`↑`}),(0,l.jsx)(`kbd`,{className:`ov-kbd`,children:`↓`}),` navigate`]}),(0,l.jsxs)(`span`,{className:`ov-ck-foot-hint`,children:[(0,l.jsx)(`kbd`,{className:`ov-kbd`,children:`↵`}),` select`]}),(0,l.jsxs)(`span`,{className:`ov-ck-foot-count`,children:[O.length,` commands`]})]})]})]})})]})}var O=e({overlaysRegistry:()=>k}),k={modal:o(u),confirmdialog:o(d),drawer:o(p),sheet:o(h),popover:o(g),hovercard:o(v),tooltip:o(b),menu:o(S),contextmenu:o(T),commandk:o(D)};export{O as n,k as t};